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 COMPILER_SUPPORTS_TARGET_BITS_FLAG 688 ZERO_ARCHFLAG 689 LDFLAGS_TESTEXE_SUFFIX 690 LDFLAGS_TESTLIB_SUFFIX 691 LDFLAGS_TESTEXE 692 LDFLAGS_TESTLIB 693 LDFLAGS_CXX_JDK 694 LDFLAGS_JDKEXE_SUFFIX 695 LDFLAGS_JDKLIB_SUFFIX 696 LDFLAGS_JDKEXE 697 LDFLAGS_JDKLIB 698 CXXFLAGS_TESTEXE 699 CXXFLAGS_TESTLIB 700 CFLAGS_TESTEXE 701 CFLAGS_TESTLIB 702 CXXFLAGS_JDKEXE 703 CXXFLAGS_JDKLIB 704 CFLAGS_JDKEXE 705 CFLAGS_JDKLIB 706 MACOSX_VERSION_MIN 707 LEGACY_EXTRA_LDFLAGS 708 LEGACY_EXTRA_CXXFLAGS 709 LEGACY_EXTRA_CFLAGS 710 CXX_O_FLAG_NONE 711 CXX_O_FLAG_DEBUG 712 CXX_O_FLAG_NORM 713 CXX_O_FLAG_HI 714 CXX_O_FLAG_HIGHEST 715 C_O_FLAG_NONE 716 C_O_FLAG_DEBUG 717 C_O_FLAG_NORM 718 C_O_FLAG_HI 719 C_O_FLAG_HIGHEST 720 CXXFLAGS_DEBUG_OPTIONS 721 CFLAGS_DEBUG_OPTIONS 722 CXXFLAGS_DEBUG_SYMBOLS 723 CFLAGS_DEBUG_SYMBOLS 724 CXX_FLAG_DEPS 725 C_FLAG_DEPS 726 SET_SHARED_LIBRARY_MAPFILE 727 SET_SHARED_LIBRARY_NAME 728 SET_SHARED_LIBRARY_ORIGIN 729 SET_EXECUTABLE_ORIGIN 730 SHARED_LIBRARY_FLAGS 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 USE_CLANG 749 HOTSPOT_LD 750 HOTSPOT_CXX 751 HOTSPOT_RC 752 HOTSPOT_MT 753 BUILD_LD 754 BUILD_CXX 755 BUILD_CC 756 ac_ct_OBJDUMP 757 OBJDUMP 758 ac_ct_OBJCOPY 759 OBJCOPY 760 ac_ct_NM 761 ac_ct_STRIP 762 MCS 763 GNM 764 NM 765 STRIP 766 MSBUILD 767 DUMPBIN 768 RC 769 MT 770 LIPO 771 ac_ct_AR 772 AR 773 AS 774 LDCXX 775 LD 776 CXXCPP 777 CPP 778 ac_ct_CXX 779 CXXFLAGS 780 CXX 781 ac_ct_PROPER_COMPILER_CXX 782 PROPER_COMPILER_CXX 783 TOOLCHAIN_PATH_CXX 784 POTENTIAL_CXX 785 OBJEXT 786 EXEEXT 787 ac_ct_CC 788 CPPFLAGS 789 LDFLAGS 790 CFLAGS 791 CC 792 ac_ct_PROPER_COMPILER_CC 793 PROPER_COMPILER_CC 794 TOOLCHAIN_PATH_CC 795 POTENTIAL_CC 796 VS_LIB 797 VS_INCLUDE 798 VS_PATH 799 CYGWIN_LINK 800 EXE_SUFFIX 801 OBJ_SUFFIX 802 STATIC_LIBRARY 803 SHARED_LIBRARY 804 STATIC_LIBRARY_SUFFIX 805 SHARED_LIBRARY_SUFFIX 806 LIBRARY_PREFIX 807 TOOLCHAIN_TYPE 808 BUILD_HOTSPOT 809 HOTSPOT_DIST 810 BUILD_OUTPUT 811 OVERRIDE_SRC_ROOT 812 ADD_SRC_ROOT 813 JDK_TOPDIR 814 NASHORN_TOPDIR 815 HOTSPOT_TOPDIR 816 JAXWS_TOPDIR 817 JAXP_TOPDIR 818 CORBA_TOPDIR 819 LANGTOOLS_TOPDIR 820 JAVAC_FLAGS 821 BOOT_JDK_SOURCETARGET 822 JARSIGNER 823 NATIVE2ASCII 824 JAR 825 JAVAH 826 JAVAC 827 JAVA 828 BOOT_JDK 829 JAVA_CHECK 830 JAVAC_CHECK 831 COOKED_BUILD_NUMBER 832 JDK_VERSION 833 COPYRIGHT_YEAR 834 MACOSX_BUNDLE_ID_BASE 835 MACOSX_BUNDLE_NAME_BASE 836 COMPANY_NAME 837 JDK_RC_PLATFORM_NAME 838 PRODUCT_SUFFIX 839 PRODUCT_NAME 840 LAUNCHER_NAME 841 MILESTONE 842 JDK_BUILD_NUMBER 843 JDK_UPDATE_VERSION 844 JDK_MICRO_VERSION 845 JDK_MINOR_VERSION 846 JDK_MAJOR_VERSION 847 USER_RELEASE_SUFFIX 848 COMPRESS_JARS 849 RMICONNECTOR_IIOP 850 UNLIMITED_CRYPTO 851 CACERTS_FILE 852 TEST_IN_BUILD 853 BUILD_HEADLESS 854 SUPPORT_HEADFUL 855 SUPPORT_HEADLESS 856 BDEPS_FTP 857 BDEPS_UNZIP 858 OS_VERSION_MICRO 859 OS_VERSION_MINOR 860 OS_VERSION_MAJOR 861 PKG_CONFIG 862 BASH_ARGS 863 CODESIGN 864 XATTR 865 DSYMUTIL 866 IS_GNU_TIME 867 TIME 868 STAT 869 HG 870 READELF 871 OTOOL 872 LDD 873 ZIP 874 UNZIP 875 FIND_DELETE 876 OUTPUT_SYNC 877 OUTPUT_SYNC_SUPPORTED 878 MAKE 879 CHECK_TOOLSDIR_MAKE 880 CHECK_TOOLSDIR_GMAKE 881 CHECK_MAKE 882 CHECK_GMAKE 883 PKGHANDLER 884 CONFIGURESUPPORT_OUTPUTDIR 885 OUTPUT_ROOT 886 CONF_NAME 887 SPEC 888 SDKROOT 889 XCODEBUILD 890 BUILD_VARIANT_RELEASE 891 DEBUG_CLASSFILES 892 FASTDEBUG 893 VARIANT 894 DEBUG_LEVEL 895 MACOSX_UNIVERSAL 896 INCLUDE_SA 897 JVM_VARIANT_CORE 898 JVM_VARIANT_ZEROSHARK 899 JVM_VARIANT_ZERO 900 JVM_VARIANT_KERNEL 901 JVM_VARIANT_MINIMAL1 902 JVM_VARIANT_CLIENT 903 JVM_VARIANT_SERVER 904 JVM_VARIANTS 905 JVM_INTERPRETER 906 JDK_VARIANT 907 SET_OPENJDK 908 CANONICAL_TOPDIR 909 ORIGINAL_TOPDIR 910 TOPDIR 911 PATH_SEP 912 ZERO_ARCHDEF 913 DEFINE_CROSS_COMPILE_ARCH 914 LP64 915 OPENJDK_TARGET_OS_EXPORT_DIR 916 OPENJDK_TARGET_CPU_JLI_CFLAGS 917 OPENJDK_TARGET_CPU_OSARCH 918 OPENJDK_TARGET_CPU_ISADIR 919 OPENJDK_TARGET_CPU_LIBDIR 920 OPENJDK_TARGET_CPU_LEGACY_LIB 921 OPENJDK_TARGET_CPU_LEGACY 922 REQUIRED_OS_VERSION 923 REQUIRED_OS_NAME 924 COMPILE_TYPE 925 OPENJDK_TARGET_CPU_ENDIAN 926 OPENJDK_TARGET_CPU_BITS 927 OPENJDK_TARGET_CPU_ARCH 928 OPENJDK_TARGET_CPU 929 OPENJDK_TARGET_OS_ENV 930 OPENJDK_TARGET_OS_TYPE 931 OPENJDK_TARGET_OS 932 OPENJDK_BUILD_CPU_ENDIAN 933 OPENJDK_BUILD_CPU_BITS 934 OPENJDK_BUILD_CPU_ARCH 935 OPENJDK_BUILD_CPU 936 OPENJDK_BUILD_OS_ENV 937 OPENJDK_BUILD_OS_TYPE 938 OPENJDK_BUILD_OS 939 OPENJDK_BUILD_AUTOCONF_NAME 940 OPENJDK_TARGET_AUTOCONF_NAME 941 target_os 942 target_vendor 943 target_cpu 944 target 945 host_os 946 host_vendor 947 host_cpu 948 host 949 build_os 950 build_vendor 951 build_cpu 952 build 953 CPIO 954 SETFILE 955 DF 956 READLINK 957 CYGPATH 958 SED 959 FGREP 960 EGREP 961 GREP 962 AWK 963 XARGS 964 WHICH 965 WC 966 UNIQ 967 UNAME 968 TR 969 TOUCH 970 TEE 971 TAR 972 TAIL 973 SORT 974 SH 975 RM 976 PRINTF 977 NAWK 978 MV 979 MKTEMP 980 MKDIR 981 LS 982 LN 983 HEAD 984 FIND 985 FILE 986 EXPR 987 ECHO 988 DIRNAME 989 DIFF 990 DATE 991 CUT 992 CP 993 COMM 994 CMP 995 CHMOD 996 CAT 997 BASH 998 BASENAME 999 DATE_WHEN_CONFIGURED 1000 ORIGINAL_PATH 1001 CONFIGURE_COMMAND_LINE 1002 target_alias 1003 host_alias 1004 build_alias 1005 LIBS 1006 ECHO_T 1007 ECHO_N 1008 ECHO_C 1009 DEFS 1010 mandir 1011 localedir 1012 libdir 1013 psdir 1014 pdfdir 1015 dvidir 1016 htmldir 1017 infodir 1018 docdir 1019 oldincludedir 1020 includedir 1021 localstatedir 1022 sharedstatedir 1023 sysconfdir 1024 datadir 1025 datarootdir 1026 libexecdir 1027 sbindir 1028 bindir 1029 program_transform_name 1030 prefix 1031 exec_prefix 1032 PACKAGE_URL 1033 PACKAGE_BUGREPORT 1034 PACKAGE_STRING 1035 PACKAGE_VERSION 1036 PACKAGE_TARNAME 1037 PACKAGE_NAME 1038 PATH_SEPARATOR 1039 SHELL' 1040 ac_subst_files='' 1041 ac_user_opts=' 1042 enable_option_checking 1043 with_target_bits 1044 enable_openjdk_only 1045 with_custom_make_dir 1046 with_jdk_variant 1047 with_jvm_interpreter 1048 with_jvm_variants 1049 enable_debug 1050 with_debug_level 1051 with_devkit 1052 with_sys_root 1053 with_sysroot 1054 with_tools_dir 1055 with_toolchain_path 1056 with_extra_path 1057 with_sdk_name 1058 with_conf_name 1059 with_output_sync 1060 with_builddeps_conf 1061 with_builddeps_server 1062 with_builddeps_dir 1063 with_builddeps_group 1064 enable_headful 1065 enable_hotspot_test_in_build 1066 with_cacerts_file 1067 enable_unlimited_crypto 1068 enable_rmiconnector_iiop 1069 with_milestone 1070 with_update_version 1071 with_user_release_suffix 1072 with_build_number 1073 with_copyright_year 1074 with_boot_jdk 1075 with_add_source_root 1076 with_override_source_root 1077 with_adds_and_overrides 1078 with_override_langtools 1079 with_override_corba 1080 with_override_jaxp 1081 with_override_jaxws 1082 with_override_hotspot 1083 with_override_nashorn 1084 with_override_jdk 1085 with_import_hotspot 1086 with_toolchain_type 1087 with_toolchain_version 1088 with_jtreg 1089 with_extra_cflags 1090 with_extra_cxxflags 1091 with_extra_ldflags 1092 enable_debug_symbols 1093 enable_zip_debug_info 1094 enable_native_coverage 1095 with_x 1096 with_cups 1097 with_cups_include 1098 with_freetype 1099 with_freetype_include 1100 with_freetype_lib 1101 with_freetype_src 1102 enable_freetype_bundling 1103 with_alsa 1104 with_alsa_include 1105 with_alsa_lib 1106 with_libjpeg 1107 with_giflib 1108 with_lcms 1109 with_libpng 1110 with_zlib 1111 with_stdc__lib 1112 with_msvcr_dll 1113 with_msvcp_dll 1114 with_dxsdk 1115 with_dxsdk_lib 1116 with_dxsdk_include 1117 with_num_cores 1118 with_memory_size 1119 with_jobs 1120 with_boot_jdk_jvmargs 1121 with_sjavac_server_java 1122 enable_sjavac 1123 enable_precompiled_headers 1124 enable_ccache 1125 with_ccache_dir 1126 ' 1127 ac_precious_vars='build_alias 1128 host_alias 1129 target_alias 1130 BASENAME 1131 BASH 1132 CAT 1133 CHMOD 1134 CMP 1135 COMM 1136 CP 1137 CUT 1138 DATE 1139 DIFF 1140 DIRNAME 1141 ECHO 1142 EXPR 1143 FILE 1144 FIND 1145 HEAD 1146 LN 1147 LS 1148 MKDIR 1149 MKTEMP 1150 MV 1151 NAWK 1152 PRINTF 1153 RM 1154 SH 1155 SORT 1156 TAIL 1157 TAR 1158 TEE 1159 TOUCH 1160 TR 1161 UNAME 1162 UNIQ 1163 WC 1164 WHICH 1165 XARGS 1166 AWK 1167 GREP 1168 EGREP 1169 FGREP 1170 SED 1171 CYGPATH 1172 READLINK 1173 DF 1174 SETFILE 1175 CPIO 1176 UNZIP 1177 ZIP 1178 LDD 1179 OTOOL 1180 READELF 1181 HG 1182 STAT 1183 TIME 1184 DSYMUTIL 1185 XATTR 1186 CODESIGN 1187 PKG_CONFIG 1188 JAVA 1189 JAVAC 1190 JAVAH 1191 JAR 1192 NATIVE2ASCII 1193 JARSIGNER 1194 CC 1195 CFLAGS 1196 LDFLAGS 1197 LIBS 1198 CPPFLAGS 1199 CXX 1200 CXXFLAGS 1201 CCC 1202 CPP 1203 CXXCPP 1204 AS 1205 AR 1206 LIPO 1207 STRIP 1208 NM 1209 GNM 1210 MCS 1211 OBJCOPY 1212 OBJDUMP 1213 BUILD_CC 1214 BUILD_CXX 1215 BUILD_LD 1216 JTREGEXE 1217 XMKMF 1218 FREETYPE_CFLAGS 1219 FREETYPE_LIBS 1220 ALSA_CFLAGS 1221 ALSA_LIBS 1222 LCMS_CFLAGS 1223 LCMS_LIBS 1224 PNG_CFLAGS 1225 PNG_LIBS 1226 LIBFFI_CFLAGS 1227 LIBFFI_LIBS 1228 CCACHE' 1229 1230 1231 # Initialize some variables set by options. 1232 ac_init_help= 1233 ac_init_version=false 1234 ac_unrecognized_opts= 1235 ac_unrecognized_sep= 1236 # The variables have the same names as the options, with 1237 # dashes changed to underlines. 1238 cache_file=/dev/null 1239 exec_prefix=NONE 1240 no_create= 1241 no_recursion= 1242 prefix=NONE 1243 program_prefix=NONE 1244 program_suffix=NONE 1245 program_transform_name=s,x,x, 1246 silent= 1247 site= 1248 srcdir= 1249 verbose= 1250 x_includes=NONE 1251 x_libraries=NONE 1252 1253 # Installation directory options. 1254 # These are left unexpanded so users can "make install exec_prefix=/foo" 1255 # and all the variables that are supposed to be based on exec_prefix 1256 # by default will actually change. 1257 # Use braces instead of parens because sh, perl, etc. also accept them. 1258 # (The list follows the same order as the GNU Coding Standards.) 1259 bindir='${exec_prefix}/bin' 1260 sbindir='${exec_prefix}/sbin' 1261 libexecdir='${exec_prefix}/libexec' 1262 datarootdir='${prefix}/share' 1263 datadir='${datarootdir}' 1264 sysconfdir='${prefix}/etc' 1265 sharedstatedir='${prefix}/com' 1266 localstatedir='${prefix}/var' 1267 includedir='${prefix}/include' 1268 oldincludedir='/usr/include' 1269 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1270 infodir='${datarootdir}/info' 1271 htmldir='${docdir}' 1272 dvidir='${docdir}' 1273 pdfdir='${docdir}' 1274 psdir='${docdir}' 1275 libdir='${exec_prefix}/lib' 1276 localedir='${datarootdir}/locale' 1277 mandir='${datarootdir}/man' 1278 1279 ac_prev= 1280 ac_dashdash= 1281 for ac_option 1282 do 1283 # If the previous option needs an argument, assign it. 1284 if test -n "$ac_prev"; then 1285 eval $ac_prev=\$ac_option 1286 ac_prev= 1287 continue 1288 fi 1289 1290 case $ac_option in 1291 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1292 *=) ac_optarg= ;; 1293 *) ac_optarg=yes ;; 1294 esac 1295 1296 # Accept the important Cygnus configure options, so we can diagnose typos. 1297 1298 case $ac_dashdash$ac_option in 1299 --) 1300 ac_dashdash=yes ;; 1301 1302 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1303 ac_prev=bindir ;; 1304 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1305 bindir=$ac_optarg ;; 1306 1307 -build | --build | --buil | --bui | --bu) 1308 ac_prev=build_alias ;; 1309 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1310 build_alias=$ac_optarg ;; 1311 1312 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1313 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1314 ac_prev=cache_file ;; 1315 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1316 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1317 cache_file=$ac_optarg ;; 1318 1319 --config-cache | -C) 1320 cache_file=config.cache ;; 1321 1322 -datadir | --datadir | --datadi | --datad) 1323 ac_prev=datadir ;; 1324 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1325 datadir=$ac_optarg ;; 1326 1327 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1328 | --dataroo | --dataro | --datar) 1329 ac_prev=datarootdir ;; 1330 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1331 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1332 datarootdir=$ac_optarg ;; 1333 1334 -disable-* | --disable-*) 1335 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1336 # Reject names that are not valid shell variable names. 1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1338 as_fn_error $? "invalid feature name: $ac_useropt" 1339 ac_useropt_orig=$ac_useropt 1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1341 case $ac_user_opts in 1342 *" 1343 "enable_$ac_useropt" 1344 "*) ;; 1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1346 ac_unrecognized_sep=', ';; 1347 esac 1348 eval enable_$ac_useropt=no ;; 1349 1350 -docdir | --docdir | --docdi | --doc | --do) 1351 ac_prev=docdir ;; 1352 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1353 docdir=$ac_optarg ;; 1354 1355 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1356 ac_prev=dvidir ;; 1357 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1358 dvidir=$ac_optarg ;; 1359 1360 -enable-* | --enable-*) 1361 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1362 # Reject names that are not valid shell variable names. 1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1364 as_fn_error $? "invalid feature name: $ac_useropt" 1365 ac_useropt_orig=$ac_useropt 1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1367 case $ac_user_opts in 1368 *" 1369 "enable_$ac_useropt" 1370 "*) ;; 1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1372 ac_unrecognized_sep=', ';; 1373 esac 1374 eval enable_$ac_useropt=\$ac_optarg ;; 1375 1376 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1377 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1378 | --exec | --exe | --ex) 1379 ac_prev=exec_prefix ;; 1380 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1381 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1382 | --exec=* | --exe=* | --ex=*) 1383 exec_prefix=$ac_optarg ;; 1384 1385 -gas | --gas | --ga | --g) 1386 # Obsolete; use --with-gas. 1387 with_gas=yes ;; 1388 1389 -help | --help | --hel | --he | -h) 1390 ac_init_help=long ;; 1391 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1392 ac_init_help=recursive ;; 1393 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1394 ac_init_help=short ;; 1395 1396 -host | --host | --hos | --ho) 1397 ac_prev=host_alias ;; 1398 -host=* | --host=* | --hos=* | --ho=*) 1399 host_alias=$ac_optarg ;; 1400 1401 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1402 ac_prev=htmldir ;; 1403 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1404 | --ht=*) 1405 htmldir=$ac_optarg ;; 1406 1407 -includedir | --includedir | --includedi | --included | --include \ 1408 | --includ | --inclu | --incl | --inc) 1409 ac_prev=includedir ;; 1410 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1411 | --includ=* | --inclu=* | --incl=* | --inc=*) 1412 includedir=$ac_optarg ;; 1413 1414 -infodir | --infodir | --infodi | --infod | --info | --inf) 1415 ac_prev=infodir ;; 1416 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1417 infodir=$ac_optarg ;; 1418 1419 -libdir | --libdir | --libdi | --libd) 1420 ac_prev=libdir ;; 1421 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1422 libdir=$ac_optarg ;; 1423 1424 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1425 | --libexe | --libex | --libe) 1426 ac_prev=libexecdir ;; 1427 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1428 | --libexe=* | --libex=* | --libe=*) 1429 libexecdir=$ac_optarg ;; 1430 1431 -localedir | --localedir | --localedi | --localed | --locale) 1432 ac_prev=localedir ;; 1433 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1434 localedir=$ac_optarg ;; 1435 1436 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1437 | --localstate | --localstat | --localsta | --localst | --locals) 1438 ac_prev=localstatedir ;; 1439 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1440 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1441 localstatedir=$ac_optarg ;; 1442 1443 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1444 ac_prev=mandir ;; 1445 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1446 mandir=$ac_optarg ;; 1447 1448 -nfp | --nfp | --nf) 1449 # Obsolete; use --without-fp. 1450 with_fp=no ;; 1451 1452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1453 | --no-cr | --no-c | -n) 1454 no_create=yes ;; 1455 1456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1458 no_recursion=yes ;; 1459 1460 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1461 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1462 | --oldin | --oldi | --old | --ol | --o) 1463 ac_prev=oldincludedir ;; 1464 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1465 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1466 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1467 oldincludedir=$ac_optarg ;; 1468 1469 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1470 ac_prev=prefix ;; 1471 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1472 prefix=$ac_optarg ;; 1473 1474 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1475 | --program-pre | --program-pr | --program-p) 1476 ac_prev=program_prefix ;; 1477 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1478 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1479 program_prefix=$ac_optarg ;; 1480 1481 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1482 | --program-suf | --program-su | --program-s) 1483 ac_prev=program_suffix ;; 1484 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1485 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1486 program_suffix=$ac_optarg ;; 1487 1488 -program-transform-name | --program-transform-name \ 1489 | --program-transform-nam | --program-transform-na \ 1490 | --program-transform-n | --program-transform- \ 1491 | --program-transform | --program-transfor \ 1492 | --program-transfo | --program-transf \ 1493 | --program-trans | --program-tran \ 1494 | --progr-tra | --program-tr | --program-t) 1495 ac_prev=program_transform_name ;; 1496 -program-transform-name=* | --program-transform-name=* \ 1497 | --program-transform-nam=* | --program-transform-na=* \ 1498 | --program-transform-n=* | --program-transform-=* \ 1499 | --program-transform=* | --program-transfor=* \ 1500 | --program-transfo=* | --program-transf=* \ 1501 | --program-trans=* | --program-tran=* \ 1502 | --progr-tra=* | --program-tr=* | --program-t=*) 1503 program_transform_name=$ac_optarg ;; 1504 1505 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1506 ac_prev=pdfdir ;; 1507 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1508 pdfdir=$ac_optarg ;; 1509 1510 -psdir | --psdir | --psdi | --psd | --ps) 1511 ac_prev=psdir ;; 1512 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1513 psdir=$ac_optarg ;; 1514 1515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1516 | -silent | --silent | --silen | --sile | --sil) 1517 silent=yes ;; 1518 1519 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1520 ac_prev=sbindir ;; 1521 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1522 | --sbi=* | --sb=*) 1523 sbindir=$ac_optarg ;; 1524 1525 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1526 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1527 | --sharedst | --shareds | --shared | --share | --shar \ 1528 | --sha | --sh) 1529 ac_prev=sharedstatedir ;; 1530 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1531 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1532 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1533 | --sha=* | --sh=*) 1534 sharedstatedir=$ac_optarg ;; 1535 1536 -site | --site | --sit) 1537 ac_prev=site ;; 1538 -site=* | --site=* | --sit=*) 1539 site=$ac_optarg ;; 1540 1541 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1542 ac_prev=srcdir ;; 1543 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1544 srcdir=$ac_optarg ;; 1545 1546 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1547 | --syscon | --sysco | --sysc | --sys | --sy) 1548 ac_prev=sysconfdir ;; 1549 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1550 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1551 sysconfdir=$ac_optarg ;; 1552 1553 -target | --target | --targe | --targ | --tar | --ta | --t) 1554 ac_prev=target_alias ;; 1555 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1556 target_alias=$ac_optarg ;; 1557 1558 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1559 verbose=yes ;; 1560 1561 -version | --version | --versio | --versi | --vers | -V) 1562 ac_init_version=: ;; 1563 1564 -with-* | --with-*) 1565 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1566 # Reject names that are not valid shell variable names. 1567 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1568 as_fn_error $? "invalid package name: $ac_useropt" 1569 ac_useropt_orig=$ac_useropt 1570 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1571 case $ac_user_opts in 1572 *" 1573 "with_$ac_useropt" 1574 "*) ;; 1575 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1576 ac_unrecognized_sep=', ';; 1577 esac 1578 eval with_$ac_useropt=\$ac_optarg ;; 1579 1580 -without-* | --without-*) 1581 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1582 # Reject names that are not valid shell variable names. 1583 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1584 as_fn_error $? "invalid package name: $ac_useropt" 1585 ac_useropt_orig=$ac_useropt 1586 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1587 case $ac_user_opts in 1588 *" 1589 "with_$ac_useropt" 1590 "*) ;; 1591 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1592 ac_unrecognized_sep=', ';; 1593 esac 1594 eval with_$ac_useropt=no ;; 1595 1596 --x) 1597 # Obsolete; use --with-x. 1598 with_x=yes ;; 1599 1600 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1601 | --x-incl | --x-inc | --x-in | --x-i) 1602 ac_prev=x_includes ;; 1603 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1604 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1605 x_includes=$ac_optarg ;; 1606 1607 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1608 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1609 ac_prev=x_libraries ;; 1610 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1611 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1612 x_libraries=$ac_optarg ;; 1613 1614 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1615 Try \`$0 --help' for more information" 1616 ;; 1617 1618 *=*) 1619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1620 # Reject names that are not valid shell variable names. 1621 case $ac_envvar in #( 1622 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1623 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1624 esac 1625 eval $ac_envvar=\$ac_optarg 1626 export $ac_envvar ;; 1627 1628 *) 1629 # FIXME: should be removed in autoconf 3.0. 1630 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1632 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1633 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1634 ;; 1635 1636 esac 1637 done 1638 1639 if test -n "$ac_prev"; then 1640 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1641 as_fn_error $? "missing argument to $ac_option" 1642 fi 1643 1644 if test -n "$ac_unrecognized_opts"; then 1645 case $enable_option_checking in 1646 no) ;; 1647 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1648 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1649 esac 1650 fi 1651 1652 # Check all directory arguments for consistency. 1653 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1654 datadir sysconfdir sharedstatedir localstatedir includedir \ 1655 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1656 libdir localedir mandir 1657 do 1658 eval ac_val=\$$ac_var 1659 # Remove trailing slashes. 1660 case $ac_val in 1661 */ ) 1662 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1663 eval $ac_var=\$ac_val;; 1664 esac 1665 # Be sure to have absolute directory names. 1666 case $ac_val in 1667 [\\/$]* | ?:[\\/]* ) continue;; 1668 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1669 esac 1670 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1671 done 1672 1673 # There might be people who depend on the old broken behavior: `$host' 1674 # used to hold the argument of --host etc. 1675 # FIXME: To remove some day. 1676 build=$build_alias 1677 host=$host_alias 1678 target=$target_alias 1679 1680 # FIXME: To remove some day. 1681 if test "x$host_alias" != x; then 1682 if test "x$build_alias" = x; then 1683 cross_compiling=maybe 1684 elif test "x$build_alias" != "x$host_alias"; then 1685 cross_compiling=yes 1686 fi 1687 fi 1688 1689 ac_tool_prefix= 1690 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1691 1692 test "$silent" = yes && exec 6>/dev/null 1693 1694 1695 ac_pwd=`pwd` && test -n "$ac_pwd" && 1696 ac_ls_di=`ls -di .` && 1697 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1698 as_fn_error $? "working directory cannot be determined" 1699 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1700 as_fn_error $? "pwd does not report name of working directory" 1701 1702 1703 # Find the source files, if location was not specified. 1704 if test -z "$srcdir"; then 1705 ac_srcdir_defaulted=yes 1706 # Try the directory containing this script, then the parent directory. 1707 ac_confdir=`$as_dirname -- "$as_myself" || 1708 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1709 X"$as_myself" : 'X\(//\)[^/]' \| \ 1710 X"$as_myself" : 'X\(//\)$' \| \ 1711 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1712 $as_echo X"$as_myself" | 1713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1714 s//\1/ 1715 q 1716 } 1717 /^X\(\/\/\)[^/].*/{ 1718 s//\1/ 1719 q 1720 } 1721 /^X\(\/\/\)$/{ 1722 s//\1/ 1723 q 1724 } 1725 /^X\(\/\).*/{ 1726 s//\1/ 1727 q 1728 } 1729 s/.*/./; q'` 1730 srcdir=$ac_confdir 1731 if test ! -r "$srcdir/$ac_unique_file"; then 1732 srcdir=.. 1733 fi 1734 else 1735 ac_srcdir_defaulted=no 1736 fi 1737 if test ! -r "$srcdir/$ac_unique_file"; then 1738 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1739 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1740 fi 1741 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1742 ac_abs_confdir=`( 1743 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1744 pwd)` 1745 # When building in place, set srcdir=. 1746 if test "$ac_abs_confdir" = "$ac_pwd"; then 1747 srcdir=. 1748 fi 1749 # Remove unnecessary trailing slashes from srcdir. 1750 # Double slashes in file names in object file debugging info 1751 # mess up M-x gdb in Emacs. 1752 case $srcdir in 1753 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1754 esac 1755 for ac_var in $ac_precious_vars; do 1756 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1757 eval ac_env_${ac_var}_value=\$${ac_var} 1758 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1759 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1760 done 1761 1762 # 1763 # Report the --help message. 1764 # 1765 if test "$ac_init_help" = "long"; then 1766 # Omit some internal or obsolete options to make the list less imposing. 1767 # This message is too long to be a string in the A/UX 3.1 sh. 1768 cat <<_ACEOF 1769 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1770 1771 Usage: $0 [OPTION]... [VAR=VALUE]... 1772 1773 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1774 VAR=VALUE. See below for descriptions of some of the useful variables. 1775 1776 Defaults for the options are specified in brackets. 1777 1778 Configuration: 1779 -h, --help display this help and exit 1780 --help=short display options specific to this package 1781 --help=recursive display the short help of all the included packages 1782 -V, --version display version information and exit 1783 -q, --quiet, --silent do not print \`checking ...' messages 1784 --cache-file=FILE cache test results in FILE [disabled] 1785 -C, --config-cache alias for \`--cache-file=config.cache' 1786 -n, --no-create do not create output files 1787 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1788 1789 Installation directories: 1790 --prefix=PREFIX install architecture-independent files in PREFIX 1791 [$ac_default_prefix] 1792 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1793 [PREFIX] 1794 1795 By default, \`make install' will install all the files in 1796 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1797 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1798 for instance \`--prefix=\$HOME'. 1799 1800 For better control, use the options below. 1801 1802 Fine tuning of the installation directories: 1803 --bindir=DIR user executables [EPREFIX/bin] 1804 --sbindir=DIR system admin executables [EPREFIX/sbin] 1805 --libexecdir=DIR program executables [EPREFIX/libexec] 1806 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1807 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1808 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1809 --libdir=DIR object code libraries [EPREFIX/lib] 1810 --includedir=DIR C header files [PREFIX/include] 1811 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1812 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1813 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1814 --infodir=DIR info documentation [DATAROOTDIR/info] 1815 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1816 --mandir=DIR man documentation [DATAROOTDIR/man] 1817 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1818 --htmldir=DIR html documentation [DOCDIR] 1819 --dvidir=DIR dvi documentation [DOCDIR] 1820 --pdfdir=DIR pdf documentation [DOCDIR] 1821 --psdir=DIR ps documentation [DOCDIR] 1822 _ACEOF 1823 1824 cat <<\_ACEOF 1825 1826 X features: 1827 --x-includes=DIR X include files are in DIR 1828 --x-libraries=DIR X library files are in DIR 1829 1830 System types: 1831 --build=BUILD configure for building on BUILD [guessed] 1832 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1833 --target=TARGET configure for building compilers for TARGET [HOST] 1834 _ACEOF 1835 fi 1836 1837 if test -n "$ac_init_help"; then 1838 case $ac_init_help in 1839 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1840 esac 1841 cat <<\_ACEOF 1842 1843 Optional Features: 1844 --disable-option-checking ignore unrecognized --enable/--with options 1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1847 --enable-openjdk-only suppress building custom source even if present 1848 [disabled] 1849 --enable-debug set the debug level to fastdebug (shorthand for 1850 --with-debug-level=fastdebug) [disabled] 1851 --disable-headful disable building headful support (graphical UI 1852 support) [enabled] 1853 --enable-hotspot-test-in-build 1854 run the Queens test after Hotspot build [disabled] 1855 --enable-unlimited-crypto 1856 Enable unlimited crypto policy [disabled] 1857 --enable-rmiconnector-iiop 1858 enable the JMX RMIConnector iiop transport 1859 [disabled] 1860 --disable-debug-symbols disable generation of debug symbols [enabled] 1861 --disable-zip-debug-info 1862 disable zipping of debug-info files [enabled] 1863 --enable-native-coverage 1864 enable native compilation with code coverage 1865 data[disabled] 1866 --disable-freetype-bundling 1867 disable bundling of the freetype library with the 1868 build result [enabled on Windows or when using 1869 --with-freetype, disabled otherwise] 1870 --enable-sjavac use sjavac to do fast incremental compiles 1871 [disabled] 1872 --disable-precompiled-headers 1873 disable using precompiled headers when compiling C++ 1874 [enabled] 1875 --enable-ccache enable using ccache to speed up recompilations 1876 [disabled] 1877 1878 Optional Packages: 1879 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1880 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1881 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1882 support it), e.g. --with-target-bits=32 [guessed] 1883 --with-custom-make-dir Deprecated. Option is kept for backwards 1884 compatibility and is ignored 1885 --with-jdk-variant JDK variant to build (normal) [normal] 1886 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1887 --with-jvm-variants JVM variants (separated by commas) to build (server, 1888 client, minimal1, kernel, zero, zeroshark, core) 1889 [server] 1890 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1891 optimized (HotSpot build only)) [release] 1892 --with-devkit use this devkit for compilers, tools and resources 1893 --with-sys-root alias for --with-sysroot for backwards compatability 1894 --with-sysroot use this directory as sysroot 1895 --with-tools-dir alias for --with-toolchain-path for backwards 1896 compatibility 1897 --with-toolchain-path prepend these directories when searching for 1898 toolchain binaries (compilers etc) 1899 --with-extra-path prepend these directories to the default path 1900 --with-sdk-name use the platform SDK of the given name. [macosx] 1901 --with-conf-name use this as the name of the configuration [generated 1902 from important configuration options] 1903 --with-output-sync set make output sync type if supported by make. 1904 [recurse] 1905 --with-builddeps-conf use this configuration file for the builddeps 1906 --with-builddeps-server download and use build dependencies from this server 1907 url 1908 --with-builddeps-dir store downloaded build dependencies here 1909 [/localhome/builddeps] 1910 --with-builddeps-group chgrp the downloaded build dependencies to this 1911 group 1912 --with-cacerts-file specify alternative cacerts file 1913 --with-milestone Set milestone value for build [internal] 1914 --with-update-version Set update version value for build [b00] 1915 --with-user-release-suffix 1916 Add a custom string to the version string if build 1917 number is not set.[username_builddateb00] 1918 --with-build-number Set build number value for build [b00] 1919 --with-copyright-year Set copyright year value for build [current year] 1920 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1921 --with-add-source-root for each and every source directory, look in this 1922 additional source root for the same directory; if it 1923 exists and have files in it, include it in the build 1924 --with-override-source-root 1925 for each and every source directory, look in this 1926 override source root for the same directory; if it 1927 exists, use that directory instead and ignore the 1928 directory in the original source root 1929 --with-adds-and-overrides 1930 use the subdirs 'adds' and 'overrides' in the 1931 specified directory as add-source-root and 1932 override-source-root 1933 --with-override-langtools 1934 use this langtools dir for the build 1935 --with-override-corba use this corba dir for the build 1936 --with-override-jaxp use this jaxp dir for the build 1937 --with-override-jaxws use this jaxws dir for the build 1938 --with-override-hotspot use this hotspot dir for the build 1939 --with-override-nashorn use this nashorn dir for the build 1940 --with-override-jdk use this jdk dir for the build 1941 --with-import-hotspot import hotspot binaries from this jdk image or 1942 hotspot build dist dir instead of building from 1943 source 1944 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1945 to show possible values [platform dependent] 1946 --with-toolchain-version 1947 the version of the toolchain to look for, use 1948 '--help' to show possible values [platform 1949 dependent] 1950 --with-jtreg Regression Test Harness [probed] 1951 --with-extra-cflags extra flags to be used when compiling jdk c-files 1952 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1953 --with-extra-ldflags extra flags to be used when linking jdk 1954 --with-x use the X Window System 1955 --with-cups specify prefix directory for the cups package 1956 (expecting the headers under PATH/include) 1957 --with-cups-include specify directory for the cups include files 1958 --with-freetype specify prefix directory for the freetype package 1959 (expecting the libraries under PATH/lib and the 1960 headers under PATH/include) 1961 --with-freetype-include specify directory for the freetype include files 1962 --with-freetype-lib specify directory for the freetype library 1963 --with-freetype-src specify directory with freetype sources to 1964 automatically build the library (experimental, 1965 Windows-only) 1966 --with-alsa specify prefix directory for the alsa package 1967 (expecting the libraries under PATH/lib and the 1968 headers under PATH/include) 1969 --with-alsa-include specify directory for the alsa include files 1970 --with-alsa-lib specify directory for the alsa library 1971 --with-libjpeg use libjpeg from build system or OpenJDK source 1972 (system, bundled) [bundled] 1973 --with-giflib use giflib from build system or OpenJDK source 1974 (system, bundled) [bundled] 1975 --with-lcms use lcms2 from build system or OpenJDK source 1976 (system, bundled) [bundled] 1977 --with-libpng use libpng from build system or OpenJDK source 1978 (system, bundled) [bundled] 1979 --with-zlib use zlib from build system or OpenJDK source 1980 (system, bundled) [bundled] 1981 --with-stdc++lib=<static>,<dynamic>,<default> 1982 force linking of the C++ runtime on Linux to either 1983 static or dynamic, default is static with dynamic as 1984 fallback 1985 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 1986 (Windows only) [probed] 1987 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 1988 (Windows only) [probed] 1989 --with-dxsdk Deprecated. Option is kept for backwards 1990 compatibility and is ignored 1991 --with-dxsdk-lib Deprecated. Option is kept for backwards 1992 compatibility and is ignored 1993 --with-dxsdk-include Deprecated. Option is kept for backwards 1994 compatibility and is ignored 1995 --with-num-cores number of cores in the build system, e.g. 1996 --with-num-cores=8 [probed] 1997 --with-memory-size memory (in MB) available in the build system, e.g. 1998 --with-memory-size=1024 [probed] 1999 --with-jobs number of parallel jobs to let make run [calculated 2000 based on cores and memory] 2001 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2002 invocations of boot JDK, overriding the default 2003 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2004 -enableassertions" 2005 --with-sjavac-server-java 2006 use this java binary for running the sjavac 2007 background server [Boot JDK java] 2008 --with-ccache-dir where to store ccache files [~/.ccache] 2009 2010 Some influential environment variables: 2011 BASENAME Override default value for BASENAME 2012 BASH Override default value for BASH 2013 CAT Override default value for CAT 2014 CHMOD Override default value for CHMOD 2015 CMP Override default value for CMP 2016 COMM Override default value for COMM 2017 CP Override default value for CP 2018 CUT Override default value for CUT 2019 DATE Override default value for DATE 2020 DIFF Override default value for DIFF 2021 DIRNAME Override default value for DIRNAME 2022 ECHO Override default value for ECHO 2023 EXPR Override default value for EXPR 2024 FILE Override default value for FILE 2025 FIND Override default value for FIND 2026 HEAD Override default value for HEAD 2027 LN Override default value for LN 2028 LS Override default value for LS 2029 MKDIR Override default value for MKDIR 2030 MKTEMP Override default value for MKTEMP 2031 MV Override default value for MV 2032 NAWK Override default value for NAWK 2033 PRINTF Override default value for PRINTF 2034 RM Override default value for RM 2035 SH Override default value for SH 2036 SORT Override default value for SORT 2037 TAIL Override default value for TAIL 2038 TAR Override default value for TAR 2039 TEE Override default value for TEE 2040 TOUCH Override default value for TOUCH 2041 TR Override default value for TR 2042 UNAME Override default value for UNAME 2043 UNIQ Override default value for UNIQ 2044 WC Override default value for WC 2045 WHICH Override default value for WHICH 2046 XARGS Override default value for XARGS 2047 AWK Override default value for AWK 2048 GREP Override default value for GREP 2049 EGREP Override default value for EGREP 2050 FGREP Override default value for FGREP 2051 SED Override default value for SED 2052 CYGPATH Override default value for CYGPATH 2053 READLINK Override default value for READLINK 2054 DF Override default value for DF 2055 SETFILE Override default value for SETFILE 2056 CPIO Override default value for CPIO 2057 UNZIP Override default value for UNZIP 2058 ZIP Override default value for ZIP 2059 LDD Override default value for LDD 2060 OTOOL Override default value for OTOOL 2061 READELF Override default value for READELF 2062 HG Override default value for HG 2063 STAT Override default value for STAT 2064 TIME Override default value for TIME 2065 DSYMUTIL Override default value for DSYMUTIL 2066 XATTR Override default value for XATTR 2067 CODESIGN Override default value for CODESIGN 2068 PKG_CONFIG path to pkg-config utility 2069 JAVA Override default value for JAVA 2070 JAVAC Override default value for JAVAC 2071 JAVAH Override default value for JAVAH 2072 JAR Override default value for JAR 2073 NATIVE2ASCII 2074 Override default value for NATIVE2ASCII 2075 JARSIGNER Override default value for JARSIGNER 2076 CC C compiler command 2077 CFLAGS C compiler flags 2078 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2079 nonstandard directory <lib dir> 2080 LIBS libraries to pass to the linker, e.g. -l<library> 2081 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2082 you have headers in a nonstandard directory <include dir> 2083 CXX C++ compiler command 2084 CXXFLAGS C++ compiler flags 2085 CPP C preprocessor 2086 CXXCPP C++ preprocessor 2087 AS Override default value for AS 2088 AR Override default value for AR 2089 LIPO Override default value for LIPO 2090 STRIP Override default value for STRIP 2091 NM Override default value for NM 2092 GNM Override default value for GNM 2093 MCS Override default value for MCS 2094 OBJCOPY Override default value for OBJCOPY 2095 OBJDUMP Override default value for OBJDUMP 2096 BUILD_CC Override default value for BUILD_CC 2097 BUILD_CXX Override default value for BUILD_CXX 2098 BUILD_LD Override default value for BUILD_LD 2099 JTREGEXE Override default value for JTREGEXE 2100 XMKMF Path to xmkmf, Makefile generator for X Window System 2101 FREETYPE_CFLAGS 2102 C compiler flags for FREETYPE, overriding pkg-config 2103 FREETYPE_LIBS 2104 linker flags for FREETYPE, overriding pkg-config 2105 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2106 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2107 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2108 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2109 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2110 PNG_LIBS linker flags for PNG, overriding pkg-config 2111 LIBFFI_CFLAGS 2112 C compiler flags for LIBFFI, overriding pkg-config 2113 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2114 CCACHE Override default value for CCACHE 2115 2116 Use these variables to override the choices made by `configure' or to help 2117 it to find libraries and programs with nonstandard names/locations. 2118 2119 Report bugs to <build-dev@openjdk.java.net>. 2120 OpenJDK home page: <http://openjdk.java.net>. 2121 _ACEOF 2122 ac_status=$? 2123 fi 2124 2125 if test "$ac_init_help" = "recursive"; then 2126 # If there are subdirs, report their specific --help. 2127 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2128 test -d "$ac_dir" || 2129 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2130 continue 2131 ac_builddir=. 2132 2133 case "$ac_dir" in 2134 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2135 *) 2136 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2137 # A ".." for each directory in $ac_dir_suffix. 2138 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2139 case $ac_top_builddir_sub in 2140 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2141 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2142 esac ;; 2143 esac 2144 ac_abs_top_builddir=$ac_pwd 2145 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2146 # for backward compatibility: 2147 ac_top_builddir=$ac_top_build_prefix 2148 2149 case $srcdir in 2150 .) # We are building in place. 2151 ac_srcdir=. 2152 ac_top_srcdir=$ac_top_builddir_sub 2153 ac_abs_top_srcdir=$ac_pwd ;; 2154 [\\/]* | ?:[\\/]* ) # Absolute name. 2155 ac_srcdir=$srcdir$ac_dir_suffix; 2156 ac_top_srcdir=$srcdir 2157 ac_abs_top_srcdir=$srcdir ;; 2158 *) # Relative name. 2159 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2160 ac_top_srcdir=$ac_top_build_prefix$srcdir 2161 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2162 esac 2163 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2164 2165 cd "$ac_dir" || { ac_status=$?; continue; } 2166 # Check for guested configure. 2167 if test -f "$ac_srcdir/configure.gnu"; then 2168 echo && 2169 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2170 elif test -f "$ac_srcdir/configure"; then 2171 echo && 2172 $SHELL "$ac_srcdir/configure" --help=recursive 2173 else 2174 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2175 fi || ac_status=$? 2176 cd "$ac_pwd" || { ac_status=$?; break; } 2177 done 2178 fi 2179 2180 test -n "$ac_init_help" && exit $ac_status 2181 if $ac_init_version; then 2182 cat <<\_ACEOF 2183 OpenJDK configure jdk9 2184 generated by GNU Autoconf 2.69 2185 2186 Copyright (C) 2012 Free Software Foundation, Inc. 2187 This configure script is free software; the Free Software Foundation 2188 gives unlimited permission to copy, distribute and modify it. 2189 _ACEOF 2190 exit 2191 fi 2192 2193 ## ------------------------ ## 2194 ## Autoconf initialization. ## 2195 ## ------------------------ ## 2196 2197 # ac_fn_c_try_compile LINENO 2198 # -------------------------- 2199 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2200 ac_fn_c_try_compile () 2201 { 2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2203 rm -f conftest.$ac_objext 2204 if { { ac_try="$ac_compile" 2205 case "(($ac_try" in 2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2207 *) ac_try_echo=$ac_try;; 2208 esac 2209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2210 $as_echo "$ac_try_echo"; } >&5 2211 (eval "$ac_compile") 2>conftest.err 2212 ac_status=$? 2213 if test -s conftest.err; then 2214 grep -v '^ *+' conftest.err >conftest.er1 2215 cat conftest.er1 >&5 2216 mv -f conftest.er1 conftest.err 2217 fi 2218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2219 test $ac_status = 0; } && { 2220 test -z "$ac_c_werror_flag" || 2221 test ! -s conftest.err 2222 } && test -s conftest.$ac_objext; then : 2223 ac_retval=0 2224 else 2225 $as_echo "$as_me: failed program was:" >&5 2226 sed 's/^/| /' conftest.$ac_ext >&5 2227 2228 ac_retval=1 2229 fi 2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2231 as_fn_set_status $ac_retval 2232 2233 } # ac_fn_c_try_compile 2234 2235 # ac_fn_cxx_try_compile LINENO 2236 # ---------------------------- 2237 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2238 ac_fn_cxx_try_compile () 2239 { 2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2241 rm -f conftest.$ac_objext 2242 if { { ac_try="$ac_compile" 2243 case "(($ac_try" in 2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2245 *) ac_try_echo=$ac_try;; 2246 esac 2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2248 $as_echo "$ac_try_echo"; } >&5 2249 (eval "$ac_compile") 2>conftest.err 2250 ac_status=$? 2251 if test -s conftest.err; then 2252 grep -v '^ *+' conftest.err >conftest.er1 2253 cat conftest.er1 >&5 2254 mv -f conftest.er1 conftest.err 2255 fi 2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2257 test $ac_status = 0; } && { 2258 test -z "$ac_cxx_werror_flag" || 2259 test ! -s conftest.err 2260 } && test -s conftest.$ac_objext; then : 2261 ac_retval=0 2262 else 2263 $as_echo "$as_me: failed program was:" >&5 2264 sed 's/^/| /' conftest.$ac_ext >&5 2265 2266 ac_retval=1 2267 fi 2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2269 as_fn_set_status $ac_retval 2270 2271 } # ac_fn_cxx_try_compile 2272 2273 # ac_fn_c_try_cpp LINENO 2274 # ---------------------- 2275 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2276 ac_fn_c_try_cpp () 2277 { 2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2279 if { { ac_try="$ac_cpp conftest.$ac_ext" 2280 case "(($ac_try" in 2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2282 *) ac_try_echo=$ac_try;; 2283 esac 2284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2285 $as_echo "$ac_try_echo"; } >&5 2286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2287 ac_status=$? 2288 if test -s conftest.err; then 2289 grep -v '^ *+' conftest.err >conftest.er1 2290 cat conftest.er1 >&5 2291 mv -f conftest.er1 conftest.err 2292 fi 2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2294 test $ac_status = 0; } > conftest.i && { 2295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2296 test ! -s conftest.err 2297 }; then : 2298 ac_retval=0 2299 else 2300 $as_echo "$as_me: failed program was:" >&5 2301 sed 's/^/| /' conftest.$ac_ext >&5 2302 2303 ac_retval=1 2304 fi 2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2306 as_fn_set_status $ac_retval 2307 2308 } # ac_fn_c_try_cpp 2309 2310 # ac_fn_cxx_try_cpp LINENO 2311 # ------------------------ 2312 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2313 ac_fn_cxx_try_cpp () 2314 { 2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2316 if { { ac_try="$ac_cpp conftest.$ac_ext" 2317 case "(($ac_try" in 2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2319 *) ac_try_echo=$ac_try;; 2320 esac 2321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2322 $as_echo "$ac_try_echo"; } >&5 2323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2324 ac_status=$? 2325 if test -s conftest.err; then 2326 grep -v '^ *+' conftest.err >conftest.er1 2327 cat conftest.er1 >&5 2328 mv -f conftest.er1 conftest.err 2329 fi 2330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2331 test $ac_status = 0; } > conftest.i && { 2332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2333 test ! -s conftest.err 2334 }; then : 2335 ac_retval=0 2336 else 2337 $as_echo "$as_me: failed program was:" >&5 2338 sed 's/^/| /' conftest.$ac_ext >&5 2339 2340 ac_retval=1 2341 fi 2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2343 as_fn_set_status $ac_retval 2344 2345 } # ac_fn_cxx_try_cpp 2346 2347 # ac_fn_c_try_link LINENO 2348 # ----------------------- 2349 # Try to link conftest.$ac_ext, and return whether this succeeded. 2350 ac_fn_c_try_link () 2351 { 2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2353 rm -f conftest.$ac_objext conftest$ac_exeext 2354 if { { ac_try="$ac_link" 2355 case "(($ac_try" in 2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2357 *) ac_try_echo=$ac_try;; 2358 esac 2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2360 $as_echo "$ac_try_echo"; } >&5 2361 (eval "$ac_link") 2>conftest.err 2362 ac_status=$? 2363 if test -s conftest.err; then 2364 grep -v '^ *+' conftest.err >conftest.er1 2365 cat conftest.er1 >&5 2366 mv -f conftest.er1 conftest.err 2367 fi 2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2369 test $ac_status = 0; } && { 2370 test -z "$ac_c_werror_flag" || 2371 test ! -s conftest.err 2372 } && test -s conftest$ac_exeext && { 2373 test "$cross_compiling" = yes || 2374 test -x conftest$ac_exeext 2375 }; then : 2376 ac_retval=0 2377 else 2378 $as_echo "$as_me: failed program was:" >&5 2379 sed 's/^/| /' conftest.$ac_ext >&5 2380 2381 ac_retval=1 2382 fi 2383 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2384 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2385 # interfere with the next link command; also delete a directory that is 2386 # left behind by Apple's compiler. We do this before executing the actions. 2387 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2389 as_fn_set_status $ac_retval 2390 2391 } # ac_fn_c_try_link 2392 2393 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2394 # --------------------------------------------------------- 2395 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2396 # the include files in INCLUDES and setting the cache variable VAR 2397 # accordingly. 2398 ac_fn_cxx_check_header_mongrel () 2399 { 2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2401 if eval \${$3+:} false; then : 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2403 $as_echo_n "checking for $2... " >&6; } 2404 if eval \${$3+:} false; then : 2405 $as_echo_n "(cached) " >&6 2406 fi 2407 eval ac_res=\$$3 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2409 $as_echo "$ac_res" >&6; } 2410 else 2411 # Is the header compilable? 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2413 $as_echo_n "checking $2 usability... " >&6; } 2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2415 /* end confdefs.h. */ 2416 $4 2417 #include <$2> 2418 _ACEOF 2419 if ac_fn_cxx_try_compile "$LINENO"; then : 2420 ac_header_compiler=yes 2421 else 2422 ac_header_compiler=no 2423 fi 2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2426 $as_echo "$ac_header_compiler" >&6; } 2427 2428 # Is the header present? 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2430 $as_echo_n "checking $2 presence... " >&6; } 2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2432 /* end confdefs.h. */ 2433 #include <$2> 2434 _ACEOF 2435 if ac_fn_cxx_try_cpp "$LINENO"; then : 2436 ac_header_preproc=yes 2437 else 2438 ac_header_preproc=no 2439 fi 2440 rm -f conftest.err conftest.i conftest.$ac_ext 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2442 $as_echo "$ac_header_preproc" >&6; } 2443 2444 # So? What about this header? 2445 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2446 yes:no: ) 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2448 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2450 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2451 ;; 2452 no:yes:* ) 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2454 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2456 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2458 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2460 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2462 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2463 ( $as_echo "## ----------------------------------------- ## 2464 ## Report this to build-dev@openjdk.java.net ## 2465 ## ----------------------------------------- ##" 2466 ) | sed "s/^/$as_me: WARNING: /" >&2 2467 ;; 2468 esac 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2470 $as_echo_n "checking for $2... " >&6; } 2471 if eval \${$3+:} false; then : 2472 $as_echo_n "(cached) " >&6 2473 else 2474 eval "$3=\$ac_header_compiler" 2475 fi 2476 eval ac_res=\$$3 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2478 $as_echo "$ac_res" >&6; } 2479 fi 2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2481 2482 } # ac_fn_cxx_check_header_mongrel 2483 2484 # ac_fn_cxx_try_run LINENO 2485 # ------------------------ 2486 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2487 # that executables *can* be run. 2488 ac_fn_cxx_try_run () 2489 { 2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2491 if { { ac_try="$ac_link" 2492 case "(($ac_try" in 2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2494 *) ac_try_echo=$ac_try;; 2495 esac 2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2497 $as_echo "$ac_try_echo"; } >&5 2498 (eval "$ac_link") 2>&5 2499 ac_status=$? 2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2501 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2502 { { case "(($ac_try" in 2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2504 *) ac_try_echo=$ac_try;; 2505 esac 2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2507 $as_echo "$ac_try_echo"; } >&5 2508 (eval "$ac_try") 2>&5 2509 ac_status=$? 2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2511 test $ac_status = 0; }; }; then : 2512 ac_retval=0 2513 else 2514 $as_echo "$as_me: program exited with status $ac_status" >&5 2515 $as_echo "$as_me: failed program was:" >&5 2516 sed 's/^/| /' conftest.$ac_ext >&5 2517 2518 ac_retval=$ac_status 2519 fi 2520 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2522 as_fn_set_status $ac_retval 2523 2524 } # ac_fn_cxx_try_run 2525 2526 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2527 # --------------------------------------------------------- 2528 # Tests whether HEADER exists and can be compiled using the include files in 2529 # INCLUDES, setting the cache variable VAR accordingly. 2530 ac_fn_cxx_check_header_compile () 2531 { 2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2534 $as_echo_n "checking for $2... " >&6; } 2535 if eval \${$3+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537 else 2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2539 /* end confdefs.h. */ 2540 $4 2541 #include <$2> 2542 _ACEOF 2543 if ac_fn_cxx_try_compile "$LINENO"; then : 2544 eval "$3=yes" 2545 else 2546 eval "$3=no" 2547 fi 2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2549 fi 2550 eval ac_res=\$$3 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2552 $as_echo "$ac_res" >&6; } 2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2554 2555 } # ac_fn_cxx_check_header_compile 2556 2557 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2558 # ---------------------------------------------- 2559 # Tries to find the compile-time value of EXPR in a program that includes 2560 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2561 # computed 2562 ac_fn_cxx_compute_int () 2563 { 2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2565 if test "$cross_compiling" = yes; then 2566 # Depending upon the size, compute the lo and hi bounds. 2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2568 /* end confdefs.h. */ 2569 $4 2570 int 2571 main () 2572 { 2573 static int test_array [1 - 2 * !(($2) >= 0)]; 2574 test_array [0] = 0; 2575 return test_array [0]; 2576 2577 ; 2578 return 0; 2579 } 2580 _ACEOF 2581 if ac_fn_cxx_try_compile "$LINENO"; then : 2582 ac_lo=0 ac_mid=0 2583 while :; do 2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2585 /* end confdefs.h. */ 2586 $4 2587 int 2588 main () 2589 { 2590 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2591 test_array [0] = 0; 2592 return test_array [0]; 2593 2594 ; 2595 return 0; 2596 } 2597 _ACEOF 2598 if ac_fn_cxx_try_compile "$LINENO"; then : 2599 ac_hi=$ac_mid; break 2600 else 2601 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2602 if test $ac_lo -le $ac_mid; then 2603 ac_lo= ac_hi= 2604 break 2605 fi 2606 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2607 fi 2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2609 done 2610 else 2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2612 /* end confdefs.h. */ 2613 $4 2614 int 2615 main () 2616 { 2617 static int test_array [1 - 2 * !(($2) < 0)]; 2618 test_array [0] = 0; 2619 return test_array [0]; 2620 2621 ; 2622 return 0; 2623 } 2624 _ACEOF 2625 if ac_fn_cxx_try_compile "$LINENO"; then : 2626 ac_hi=-1 ac_mid=-1 2627 while :; do 2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2629 /* end confdefs.h. */ 2630 $4 2631 int 2632 main () 2633 { 2634 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2635 test_array [0] = 0; 2636 return test_array [0]; 2637 2638 ; 2639 return 0; 2640 } 2641 _ACEOF 2642 if ac_fn_cxx_try_compile "$LINENO"; then : 2643 ac_lo=$ac_mid; break 2644 else 2645 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2646 if test $ac_mid -le $ac_hi; then 2647 ac_lo= ac_hi= 2648 break 2649 fi 2650 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2651 fi 2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2653 done 2654 else 2655 ac_lo= ac_hi= 2656 fi 2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2658 fi 2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2660 # Binary search between lo and hi bounds. 2661 while test "x$ac_lo" != "x$ac_hi"; do 2662 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2664 /* end confdefs.h. */ 2665 $4 2666 int 2667 main () 2668 { 2669 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2670 test_array [0] = 0; 2671 return test_array [0]; 2672 2673 ; 2674 return 0; 2675 } 2676 _ACEOF 2677 if ac_fn_cxx_try_compile "$LINENO"; then : 2678 ac_hi=$ac_mid 2679 else 2680 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2681 fi 2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2683 done 2684 case $ac_lo in #(( 2685 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2686 '') ac_retval=1 ;; 2687 esac 2688 else 2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2690 /* end confdefs.h. */ 2691 $4 2692 static long int longval () { return $2; } 2693 static unsigned long int ulongval () { return $2; } 2694 #include <stdio.h> 2695 #include <stdlib.h> 2696 int 2697 main () 2698 { 2699 2700 FILE *f = fopen ("conftest.val", "w"); 2701 if (! f) 2702 return 1; 2703 if (($2) < 0) 2704 { 2705 long int i = longval (); 2706 if (i != ($2)) 2707 return 1; 2708 fprintf (f, "%ld", i); 2709 } 2710 else 2711 { 2712 unsigned long int i = ulongval (); 2713 if (i != ($2)) 2714 return 1; 2715 fprintf (f, "%lu", i); 2716 } 2717 /* Do not output a trailing newline, as this causes \r\n confusion 2718 on some platforms. */ 2719 return ferror (f) || fclose (f) != 0; 2720 2721 ; 2722 return 0; 2723 } 2724 _ACEOF 2725 if ac_fn_cxx_try_run "$LINENO"; then : 2726 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2727 else 2728 ac_retval=1 2729 fi 2730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2731 conftest.$ac_objext conftest.beam conftest.$ac_ext 2732 rm -f conftest.val 2733 2734 fi 2735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2736 as_fn_set_status $ac_retval 2737 2738 } # ac_fn_cxx_compute_int 2739 2740 # ac_fn_cxx_try_link LINENO 2741 # ------------------------- 2742 # Try to link conftest.$ac_ext, and return whether this succeeded. 2743 ac_fn_cxx_try_link () 2744 { 2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2746 rm -f conftest.$ac_objext conftest$ac_exeext 2747 if { { ac_try="$ac_link" 2748 case "(($ac_try" in 2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2750 *) ac_try_echo=$ac_try;; 2751 esac 2752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2753 $as_echo "$ac_try_echo"; } >&5 2754 (eval "$ac_link") 2>conftest.err 2755 ac_status=$? 2756 if test -s conftest.err; then 2757 grep -v '^ *+' conftest.err >conftest.er1 2758 cat conftest.er1 >&5 2759 mv -f conftest.er1 conftest.err 2760 fi 2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2762 test $ac_status = 0; } && { 2763 test -z "$ac_cxx_werror_flag" || 2764 test ! -s conftest.err 2765 } && test -s conftest$ac_exeext && { 2766 test "$cross_compiling" = yes || 2767 test -x conftest$ac_exeext 2768 }; then : 2769 ac_retval=0 2770 else 2771 $as_echo "$as_me: failed program was:" >&5 2772 sed 's/^/| /' conftest.$ac_ext >&5 2773 2774 ac_retval=1 2775 fi 2776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2778 # interfere with the next link command; also delete a directory that is 2779 # left behind by Apple's compiler. We do this before executing the actions. 2780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2782 as_fn_set_status $ac_retval 2783 2784 } # ac_fn_cxx_try_link 2785 2786 # ac_fn_cxx_check_func LINENO FUNC VAR 2787 # ------------------------------------ 2788 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2789 ac_fn_cxx_check_func () 2790 { 2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2793 $as_echo_n "checking for $2... " >&6; } 2794 if eval \${$3+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796 else 2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2798 /* end confdefs.h. */ 2799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2800 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2801 #define $2 innocuous_$2 2802 2803 /* System header to define __stub macros and hopefully few prototypes, 2804 which can conflict with char $2 (); below. 2805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2806 <limits.h> exists even on freestanding compilers. */ 2807 2808 #ifdef __STDC__ 2809 # include <limits.h> 2810 #else 2811 # include <assert.h> 2812 #endif 2813 2814 #undef $2 2815 2816 /* Override any GCC internal prototype to avoid an error. 2817 Use char because int might match the return type of a GCC 2818 builtin and then its argument prototype would still apply. */ 2819 #ifdef __cplusplus 2820 extern "C" 2821 #endif 2822 char $2 (); 2823 /* The GNU C library defines this for functions which it implements 2824 to always fail with ENOSYS. Some functions are actually named 2825 something starting with __ and the normal name is an alias. */ 2826 #if defined __stub_$2 || defined __stub___$2 2827 choke me 2828 #endif 2829 2830 int 2831 main () 2832 { 2833 return $2 (); 2834 ; 2835 return 0; 2836 } 2837 _ACEOF 2838 if ac_fn_cxx_try_link "$LINENO"; then : 2839 eval "$3=yes" 2840 else 2841 eval "$3=no" 2842 fi 2843 rm -f core conftest.err conftest.$ac_objext \ 2844 conftest$ac_exeext conftest.$ac_ext 2845 fi 2846 eval ac_res=\$$3 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2848 $as_echo "$ac_res" >&6; } 2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2850 2851 } # ac_fn_cxx_check_func 2852 2853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2854 # ------------------------------------------------------- 2855 # Tests whether HEADER exists and can be compiled using the include files in 2856 # INCLUDES, setting the cache variable VAR accordingly. 2857 ac_fn_c_check_header_compile () 2858 { 2859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2861 $as_echo_n "checking for $2... " >&6; } 2862 if eval \${$3+:} false; then : 2863 $as_echo_n "(cached) " >&6 2864 else 2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2866 /* end confdefs.h. */ 2867 $4 2868 #include <$2> 2869 _ACEOF 2870 if ac_fn_c_try_compile "$LINENO"; then : 2871 eval "$3=yes" 2872 else 2873 eval "$3=no" 2874 fi 2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2876 fi 2877 eval ac_res=\$$3 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2879 $as_echo "$ac_res" >&6; } 2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2881 2882 } # ac_fn_c_check_header_compile 2883 cat >config.log <<_ACEOF 2884 This file contains any messages produced by compilers while 2885 running configure, to aid debugging if configure makes a mistake. 2886 2887 It was created by OpenJDK $as_me jdk9, which was 2888 generated by GNU Autoconf 2.69. Invocation command line was 2889 2890 $ $0 $@ 2891 2892 _ACEOF 2893 exec 5>>config.log 2894 { 2895 cat <<_ASUNAME 2896 ## --------- ## 2897 ## Platform. ## 2898 ## --------- ## 2899 2900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2901 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2902 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2903 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2904 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2905 2906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2908 2909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2916 2917 _ASUNAME 2918 2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2920 for as_dir in $PATH 2921 do 2922 IFS=$as_save_IFS 2923 test -z "$as_dir" && as_dir=. 2924 $as_echo "PATH: $as_dir" 2925 done 2926 IFS=$as_save_IFS 2927 2928 } >&5 2929 2930 cat >&5 <<_ACEOF 2931 2932 2933 ## ----------- ## 2934 ## Core tests. ## 2935 ## ----------- ## 2936 2937 _ACEOF 2938 2939 2940 # Keep a trace of the command line. 2941 # Strip out --no-create and --no-recursion so they do not pile up. 2942 # Strip out --silent because we don't want to record it for future runs. 2943 # Also quote any args containing shell meta-characters. 2944 # Make two passes to allow for proper duplicate-argument suppression. 2945 ac_configure_args= 2946 ac_configure_args0= 2947 ac_configure_args1= 2948 ac_must_keep_next=false 2949 for ac_pass in 1 2 2950 do 2951 for ac_arg 2952 do 2953 case $ac_arg in 2954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2956 | -silent | --silent | --silen | --sile | --sil) 2957 continue ;; 2958 *\'*) 2959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2960 esac 2961 case $ac_pass in 2962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2963 2) 2964 as_fn_append ac_configure_args1 " '$ac_arg'" 2965 if test $ac_must_keep_next = true; then 2966 ac_must_keep_next=false # Got value, back to normal. 2967 else 2968 case $ac_arg in 2969 *=* | --config-cache | -C | -disable-* | --disable-* \ 2970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2972 | -with-* | --with-* | -without-* | --without-* | --x) 2973 case "$ac_configure_args0 " in 2974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2975 esac 2976 ;; 2977 -* ) ac_must_keep_next=true ;; 2978 esac 2979 fi 2980 as_fn_append ac_configure_args " '$ac_arg'" 2981 ;; 2982 esac 2983 done 2984 done 2985 { ac_configure_args0=; unset ac_configure_args0;} 2986 { ac_configure_args1=; unset ac_configure_args1;} 2987 2988 # When interrupted or exit'd, cleanup temporary files, and complete 2989 # config.log. We remove comments because anyway the quotes in there 2990 # would cause problems or look ugly. 2991 # WARNING: Use '\'' to represent an apostrophe within the trap. 2992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2993 trap 'exit_status=$? 2994 # Save into config.log some information that might help in debugging. 2995 { 2996 echo 2997 2998 $as_echo "## ---------------- ## 2999 ## Cache variables. ## 3000 ## ---------------- ##" 3001 echo 3002 # The following way of writing the cache mishandles newlines in values, 3003 ( 3004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3005 eval ac_val=\$$ac_var 3006 case $ac_val in #( 3007 *${as_nl}*) 3008 case $ac_var in #( 3009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3011 esac 3012 case $ac_var in #( 3013 _ | IFS | as_nl) ;; #( 3014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3015 *) { eval $ac_var=; unset $ac_var;} ;; 3016 esac ;; 3017 esac 3018 done 3019 (set) 2>&1 | 3020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3021 *${as_nl}ac_space=\ *) 3022 sed -n \ 3023 "s/'\''/'\''\\\\'\'''\''/g; 3024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3025 ;; #( 3026 *) 3027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3028 ;; 3029 esac | 3030 sort 3031 ) 3032 echo 3033 3034 $as_echo "## ----------------- ## 3035 ## Output variables. ## 3036 ## ----------------- ##" 3037 echo 3038 for ac_var in $ac_subst_vars 3039 do 3040 eval ac_val=\$$ac_var 3041 case $ac_val in 3042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3043 esac 3044 $as_echo "$ac_var='\''$ac_val'\''" 3045 done | sort 3046 echo 3047 3048 if test -n "$ac_subst_files"; then 3049 $as_echo "## ------------------- ## 3050 ## File substitutions. ## 3051 ## ------------------- ##" 3052 echo 3053 for ac_var in $ac_subst_files 3054 do 3055 eval ac_val=\$$ac_var 3056 case $ac_val in 3057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3058 esac 3059 $as_echo "$ac_var='\''$ac_val'\''" 3060 done | sort 3061 echo 3062 fi 3063 3064 if test -s confdefs.h; then 3065 $as_echo "## ----------- ## 3066 ## confdefs.h. ## 3067 ## ----------- ##" 3068 echo 3069 cat confdefs.h 3070 echo 3071 fi 3072 test "$ac_signal" != 0 && 3073 $as_echo "$as_me: caught signal $ac_signal" 3074 $as_echo "$as_me: exit $exit_status" 3075 } >&5 3076 rm -f core *.core core.conftest.* && 3077 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3078 exit $exit_status 3079 ' 0 3080 for ac_signal in 1 2 13 15; do 3081 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3082 done 3083 ac_signal=0 3084 3085 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3086 rm -f -r conftest* confdefs.h 3087 3088 $as_echo "/* confdefs.h */" > confdefs.h 3089 3090 # Predefined preprocessor variables. 3091 3092 cat >>confdefs.h <<_ACEOF 3093 #define PACKAGE_NAME "$PACKAGE_NAME" 3094 _ACEOF 3095 3096 cat >>confdefs.h <<_ACEOF 3097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3098 _ACEOF 3099 3100 cat >>confdefs.h <<_ACEOF 3101 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3102 _ACEOF 3103 3104 cat >>confdefs.h <<_ACEOF 3105 #define PACKAGE_STRING "$PACKAGE_STRING" 3106 _ACEOF 3107 3108 cat >>confdefs.h <<_ACEOF 3109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3110 _ACEOF 3111 3112 cat >>confdefs.h <<_ACEOF 3113 #define PACKAGE_URL "$PACKAGE_URL" 3114 _ACEOF 3115 3116 3117 # Let the site file select an alternate cache file if it wants to. 3118 # Prefer an explicitly selected file to automatically selected ones. 3119 ac_site_file1=NONE 3120 ac_site_file2=NONE 3121 if test -n "$CONFIG_SITE"; then 3122 # We do not want a PATH search for config.site. 3123 case $CONFIG_SITE in #(( 3124 -*) ac_site_file1=./$CONFIG_SITE;; 3125 */*) ac_site_file1=$CONFIG_SITE;; 3126 *) ac_site_file1=./$CONFIG_SITE;; 3127 esac 3128 elif test "x$prefix" != xNONE; then 3129 ac_site_file1=$prefix/share/config.site 3130 ac_site_file2=$prefix/etc/config.site 3131 else 3132 ac_site_file1=$ac_default_prefix/share/config.site 3133 ac_site_file2=$ac_default_prefix/etc/config.site 3134 fi 3135 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3136 do 3137 test "x$ac_site_file" = xNONE && continue 3138 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3140 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3141 sed 's/^/| /' "$ac_site_file" >&5 3142 . "$ac_site_file" \ 3143 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3145 as_fn_error $? "failed to load site script $ac_site_file 3146 See \`config.log' for more details" "$LINENO" 5; } 3147 fi 3148 done 3149 3150 if test -r "$cache_file"; then 3151 # Some versions of bash will fail to source /dev/null (special files 3152 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3153 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3155 $as_echo "$as_me: loading cache $cache_file" >&6;} 3156 case $cache_file in 3157 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3158 *) . "./$cache_file";; 3159 esac 3160 fi 3161 else 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3163 $as_echo "$as_me: creating cache $cache_file" >&6;} 3164 >$cache_file 3165 fi 3166 3167 # Check that the precious variables saved in the cache have kept the same 3168 # value. 3169 ac_cache_corrupted=false 3170 for ac_var in $ac_precious_vars; do 3171 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3172 eval ac_new_set=\$ac_env_${ac_var}_set 3173 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3174 eval ac_new_val=\$ac_env_${ac_var}_value 3175 case $ac_old_set,$ac_new_set in 3176 set,) 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3178 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3179 ac_cache_corrupted=: ;; 3180 ,set) 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3182 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3183 ac_cache_corrupted=: ;; 3184 ,);; 3185 *) 3186 if test "x$ac_old_val" != "x$ac_new_val"; then 3187 # differences in whitespace do not lead to failure. 3188 ac_old_val_w=`echo x $ac_old_val` 3189 ac_new_val_w=`echo x $ac_new_val` 3190 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3192 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3193 ac_cache_corrupted=: 3194 else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3196 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3197 eval $ac_var=\$ac_old_val 3198 fi 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3200 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3202 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3203 fi;; 3204 esac 3205 # Pass precious variables to config.status. 3206 if test "$ac_new_set" = set; then 3207 case $ac_new_val in 3208 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3209 *) ac_arg=$ac_var=$ac_new_val ;; 3210 esac 3211 case " $ac_configure_args " in 3212 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3213 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3214 esac 3215 fi 3216 done 3217 if $ac_cache_corrupted; then 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3221 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3222 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3223 fi 3224 ## -------------------- ## 3225 ## Main body of script. ## 3226 ## -------------------- ## 3227 3228 ac_ext=c 3229 ac_cpp='$CPP $CPPFLAGS' 3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3233 3234 3235 3236 ac_aux_dir= 3237 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3238 if test -f "$ac_dir/install-sh"; then 3239 ac_aux_dir=$ac_dir 3240 ac_install_sh="$ac_aux_dir/install-sh -c" 3241 break 3242 elif test -f "$ac_dir/install.sh"; then 3243 ac_aux_dir=$ac_dir 3244 ac_install_sh="$ac_aux_dir/install.sh -c" 3245 break 3246 elif test -f "$ac_dir/shtool"; then 3247 ac_aux_dir=$ac_dir 3248 ac_install_sh="$ac_aux_dir/shtool install -c" 3249 break 3250 fi 3251 done 3252 if test -z "$ac_aux_dir"; then 3253 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 3254 fi 3255 3256 # These three variables are undocumented and unsupported, 3257 # and are intended to be withdrawn in a future Autoconf release. 3258 # They can cause serious problems if a builder's source tree is in a directory 3259 # whose full name contains unusual characters. 3260 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3261 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3262 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3263 3264 3265 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3266 3267 # 3268 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3269 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3270 # 3271 # This code is free software; you can redistribute it and/or modify it 3272 # under the terms of the GNU General Public License version 2 only, as 3273 # published by the Free Software Foundation. Oracle designates this 3274 # particular file as subject to the "Classpath" exception as provided 3275 # by Oracle in the LICENSE file that accompanied this code. 3276 # 3277 # This code is distributed in the hope that it will be useful, but WITHOUT 3278 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3279 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3280 # version 2 for more details (a copy is included in the LICENSE file that 3281 # accompanied this code). 3282 # 3283 # You should have received a copy of the GNU General Public License version 3284 # 2 along with this work; if not, write to the Free Software Foundation, 3285 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3286 # 3287 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3288 # or visit www.oracle.com if you need additional information or have any 3289 # questions. 3290 # 3291 3292 # 3293 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3294 # 3295 # This program is free software; you can redistribute it and/or modify 3296 # it under the terms of the GNU General Public License as published by 3297 # the Free Software Foundation; either version 2 of the License, or 3298 # (at your option) any later version. 3299 # 3300 # This program is distributed in the hope that it will be useful, but 3301 # WITHOUT ANY WARRANTY; without even the implied warranty of 3302 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3303 # General Public License for more details. 3304 # 3305 # You should have received a copy of the GNU General Public License 3306 # along with this program; if not, write to the Free Software 3307 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3308 # 3309 # As a special exception to the GNU General Public License, if you 3310 # distribute this file as part of a program that contains a 3311 # configuration script generated by Autoconf, you may include it under 3312 # the same distribution terms that you use for the rest of that program. 3313 3314 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3315 # ---------------------------------- 3316 # PKG_PROG_PKG_CONFIG 3317 3318 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3319 # 3320 # Check to see whether a particular set of modules exists. Similar 3321 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3322 # 3323 # 3324 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3325 # this or PKG_CHECK_MODULES is called, or make sure to call 3326 # PKG_CHECK_EXISTS manually 3327 # -------------------------------------------------------------- 3328 3329 3330 3331 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3332 # --------------------------------------------- 3333 # _PKG_CONFIG 3334 3335 # _PKG_SHORT_ERRORS_SUPPORTED 3336 # ----------------------------- 3337 # _PKG_SHORT_ERRORS_SUPPORTED 3338 3339 3340 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3341 # [ACTION-IF-NOT-FOUND]) 3342 # 3343 # 3344 # Note that if there is a possibility the first call to 3345 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3346 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3347 # 3348 # 3349 # -------------------------------------------------------------- 3350 # PKG_CHECK_MODULES 3351 3352 3353 # Include these first... 3354 # 3355 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3356 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3357 # 3358 # This code is free software; you can redistribute it and/or modify it 3359 # under the terms of the GNU General Public License version 2 only, as 3360 # published by the Free Software Foundation. Oracle designates this 3361 # particular file as subject to the "Classpath" exception as provided 3362 # by Oracle in the LICENSE file that accompanied this code. 3363 # 3364 # This code is distributed in the hope that it will be useful, but WITHOUT 3365 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3366 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3367 # version 2 for more details (a copy is included in the LICENSE file that 3368 # accompanied this code). 3369 # 3370 # You should have received a copy of the GNU General Public License version 3371 # 2 along with this work; if not, write to the Free Software Foundation, 3372 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3373 # 3374 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3375 # or visit www.oracle.com if you need additional information or have any 3376 # questions. 3377 # 3378 3379 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3380 # If so, then append $1 to $2 \ 3381 # Also set JVM_ARG_OK to true/false depending on outcome. 3382 3383 3384 # Appends a string to a path variable, only adding the : when needed. 3385 3386 3387 # Prepends a string to a path variable, only adding the : when needed. 3388 3389 3390 # This will make sure the given variable points to a full and proper 3391 # path. This means: 3392 # 1) There will be no spaces in the path. On unix platforms, 3393 # spaces in the path will result in an error. On Windows, 3394 # the path will be rewritten using short-style to be space-free. 3395 # 2) The path will be absolute, and it will be in unix-style (on 3396 # cygwin). 3397 # $1: The name of the variable to fix 3398 3399 3400 # This will make sure the given variable points to a executable 3401 # with a full and proper path. This means: 3402 # 1) There will be no spaces in the path. On unix platforms, 3403 # spaces in the path will result in an error. On Windows, 3404 # the path will be rewritten using short-style to be space-free. 3405 # 2) The path will be absolute, and it will be in unix-style (on 3406 # cygwin). 3407 # Any arguments given to the executable is preserved. 3408 # If the input variable does not have a directory specification, then 3409 # it need to be in the PATH. 3410 # $1: The name of the variable to fix 3411 3412 3413 3414 3415 # Register a --with argument but mark it as deprecated 3416 # $1: The name of the with argument to deprecate, not including --with- 3417 3418 3419 # Register a --enable argument but mark it as deprecated 3420 # $1: The name of the with argument to deprecate, not including --enable- 3421 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3422 3423 3424 3425 3426 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3427 # $1: variable to check 3428 3429 3430 # Check that there are no unprocessed overridden variables left. 3431 # If so, they are an incorrect argument and we will exit with an error. 3432 3433 3434 # Setup a tool for the given variable. If correctly specified by the user, 3435 # use that value, otherwise search for the tool using the supplied code snippet. 3436 # $1: variable to set 3437 # $2: code snippet to call to look for the tool 3438 3439 3440 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3441 # $1: variable to set 3442 # $2: executable name (or list of names) to look for 3443 3444 3445 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3446 # $1: variable to set 3447 # $2: executable name (or list of names) to look for 3448 3449 3450 # Like BASIC_PATH_PROGS but fails if no tool was found. 3451 # $1: variable to set 3452 # $2: executable name (or list of names) to look for 3453 3454 3455 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3456 # $1: variable to set 3457 # $2: autoconf macro to call to look for the special tool 3458 3459 3460 # Setup the most fundamental tools that relies on not much else to set up, 3461 # but is used by much of the early bootstrap code. 3462 3463 3464 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3465 3466 3467 3468 3469 3470 3471 #%%% Simple tools %%% 3472 3473 # Check if we have found a usable version of make 3474 # $1: the path to a potential make binary (or empty) 3475 # $2: the description on how we found this 3476 3477 3478 3479 3480 # Goes looking for a usable version of GNU make. 3481 3482 3483 3484 3485 3486 3487 # Check if build directory is on local disk. If not possible to determine, 3488 # we prefer to claim it's local. 3489 # Argument 1: directory to test 3490 # Argument 2: what to do if it is on local disk 3491 # Argument 3: what to do otherwise (remote disk or failure) 3492 3493 3494 # Check that source files have basic read permissions set. This might 3495 # not be the case in cygwin in certain conditions. 3496 3497 3498 3499 3500 # Check for support for specific options in bash 3501 3502 3503 # 3504 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3505 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3506 # 3507 # This code is free software; you can redistribute it and/or modify it 3508 # under the terms of the GNU General Public License version 2 only, as 3509 # published by the Free Software Foundation. Oracle designates this 3510 # particular file as subject to the "Classpath" exception as provided 3511 # by Oracle in the LICENSE file that accompanied this code. 3512 # 3513 # This code is distributed in the hope that it will be useful, but WITHOUT 3514 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3515 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3516 # version 2 for more details (a copy is included in the LICENSE file that 3517 # accompanied this code). 3518 # 3519 # You should have received a copy of the GNU General Public License version 3520 # 2 along with this work; if not, write to the Free Software Foundation, 3521 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3522 # 3523 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3524 # or visit www.oracle.com if you need additional information or have any 3525 # questions. 3526 # 3527 3528 3529 3530 3531 3532 # Helper function which possibly converts a path using DOS-style short mode. 3533 # If so, the updated path is stored in $new_path. 3534 # $1: The path to check 3535 3536 3537 # Helper function which possibly converts a path using DOS-style short mode. 3538 # If so, the updated path is stored in $new_path. 3539 # $1: The path to check 3540 3541 3542 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3543 # and could probably be heavily simplified. However, all changes in this 3544 # area tend to need lot of testing in different scenarios, and in lack of 3545 # proper unit testing, cleaning this up has not been deemed worth the effort 3546 # at the moment. 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3557 3558 3559 3560 3561 # 3562 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3563 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3564 # 3565 # This code is free software; you can redistribute it and/or modify it 3566 # under the terms of the GNU General Public License version 2 only, as 3567 # published by the Free Software Foundation. Oracle designates this 3568 # particular file as subject to the "Classpath" exception as provided 3569 # by Oracle in the LICENSE file that accompanied this code. 3570 # 3571 # This code is distributed in the hope that it will be useful, but WITHOUT 3572 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3573 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3574 # version 2 for more details (a copy is included in the LICENSE file that 3575 # accompanied this code). 3576 # 3577 # You should have received a copy of the GNU General Public License version 3578 # 2 along with this work; if not, write to the Free Software Foundation, 3579 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3580 # 3581 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3582 # or visit www.oracle.com if you need additional information or have any 3583 # questions. 3584 # 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 # ... then the rest 3597 # 3598 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3599 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3600 # 3601 # This code is free software; you can redistribute it and/or modify it 3602 # under the terms of the GNU General Public License version 2 only, as 3603 # published by the Free Software Foundation. Oracle designates this 3604 # particular file as subject to the "Classpath" exception as provided 3605 # by Oracle in the LICENSE file that accompanied this code. 3606 # 3607 # This code is distributed in the hope that it will be useful, but WITHOUT 3608 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3609 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3610 # version 2 for more details (a copy is included in the LICENSE file that 3611 # accompanied this code). 3612 # 3613 # You should have received a copy of the GNU General Public License version 3614 # 2 along with this work; if not, write to the Free Software Foundation, 3615 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3616 # 3617 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3618 # or visit www.oracle.com if you need additional information or have any 3619 # questions. 3620 # 3621 3622 ######################################################################## 3623 # This file handles detection of the Boot JDK. The Boot JDK detection 3624 # process has been developed as a response to solve a complex real-world 3625 # problem. Initially, it was simple, but it has grown as platform after 3626 # platform, idiosyncracy after idiosyncracy has been supported. 3627 # 3628 # The basic idea is this: 3629 # 1) You need an acceptable *) JDK to use as a Boot JDK 3630 # 2) There are several ways to locate a JDK, that are mostly platform 3631 # dependent **) 3632 # 3) You can have multiple JDKs installed 3633 # 4) If possible, configure should try to dig out an acceptable JDK 3634 # automatically, without having to resort to command-line options 3635 # 3636 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3637 # javac) and not a JRE, etc. 3638 # 3639 # **) On Windows we typically use a well-known path. 3640 # On MacOSX we typically use the tool java_home. 3641 # On Linux we typically find javac in the $PATH, and then follow a 3642 # chain of symlinks that often ends up in a real JDK. 3643 # 3644 # This leads to the code where we check in different ways to locate a 3645 # JDK, and if one is found, check if it is acceptable. If not, we print 3646 # our reasons for rejecting it (useful when debugging non-working 3647 # configure situations) and continue checking the next one. 3648 ######################################################################## 3649 3650 # Execute the check given as argument, and verify the result 3651 # If the Boot JDK was previously found, do nothing 3652 # $1 A command line (typically autoconf macro) to execute 3653 3654 3655 # Test: Is bootjdk explicitely set by command line arguments? 3656 3657 3658 # Test: Is bootjdk available from builddeps? 3659 3660 3661 # Test: Is $JAVA_HOME set? 3662 3663 3664 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3665 3666 3667 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3668 # $1: Argument to the java_home binary (optional) 3669 3670 3671 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3672 3673 3674 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3675 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3676 # $1 = Path to directory containing jdk installations. 3677 # $2 = String to append to the found JDK directory to get the proper JDK home 3678 3679 3680 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3681 # environmental variable as base for where to look. 3682 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3683 3684 3685 # Test: Is there a JDK installed in default, well-known locations? 3686 3687 3688 # Check that a command-line tool in the Boot JDK is correct 3689 # $1 = name of variable to assign 3690 # $2 = name of binary 3691 3692 3693 ############################################################################### 3694 # 3695 # We need a Boot JDK to bootstrap the build. 3696 # 3697 3698 3699 3700 3701 3702 # 3703 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3704 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3705 # 3706 # This code is free software; you can redistribute it and/or modify it 3707 # under the terms of the GNU General Public License version 2 only, as 3708 # published by the Free Software Foundation. Oracle designates this 3709 # particular file as subject to the "Classpath" exception as provided 3710 # by Oracle in the LICENSE file that accompanied this code. 3711 # 3712 # This code is distributed in the hope that it will be useful, but WITHOUT 3713 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3714 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3715 # version 2 for more details (a copy is included in the LICENSE file that 3716 # accompanied this code). 3717 # 3718 # You should have received a copy of the GNU General Public License version 3719 # 2 along with this work; if not, write to the Free Software Foundation, 3720 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3721 # 3722 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3723 # or visit www.oracle.com if you need additional information or have any 3724 # questions. 3725 # 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 # 3747 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3748 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3749 # 3750 # This code is free software; you can redistribute it and/or modify it 3751 # under the terms of the GNU General Public License version 2 only, as 3752 # published by the Free Software Foundation. Oracle designates this 3753 # particular file as subject to the "Classpath" exception as provided 3754 # by Oracle in the LICENSE file that accompanied this code. 3755 # 3756 # This code is distributed in the hope that it will be useful, but WITHOUT 3757 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3758 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3759 # version 2 for more details (a copy is included in the LICENSE file that 3760 # accompanied this code). 3761 # 3762 # You should have received a copy of the GNU General Public License version 3763 # 2 along with this work; if not, write to the Free Software Foundation, 3764 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3765 # 3766 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3767 # or visit www.oracle.com if you need additional information or have any 3768 # questions. 3769 # 3770 3771 3772 3773 3774 3775 # Documentation on common flags used for solstudio in HIGHEST. 3776 # 3777 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3778 # done with care, there are some assumptions below that need to 3779 # be understood about the use of pointers, and IEEE behavior. 3780 # 3781 # -fns: Use non-standard floating point mode (not IEEE 754) 3782 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3783 # -fsingle: Use single precision floating point with 'float' 3784 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3785 # (Source with excessing pointer casting and data access with mixed 3786 # pointer types are not recommended) 3787 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3788 # (If you expect perfect errno behavior, do not use this) 3789 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3790 # -xrestrict: Pointer parameters to functions do not overlap 3791 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3792 # If you pass in multiple pointers to the same data, do not use this) 3793 # -xlibmil: Inline some library routines 3794 # (If you expect perfect errno behavior, do not use this) 3795 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3796 # (If you expect perfect errno behavior, do not use this) 3797 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3798 3799 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3800 # Bug? 3801 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3802 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3803 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3804 #fi 3805 3806 3807 3808 3809 3810 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3811 # [RUN-IF-FALSE]) 3812 # ------------------------------------------------------------ 3813 # Check that the c and c++ compilers support an argument 3814 3815 3816 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3817 # [RUN-IF-FALSE]) 3818 # ------------------------------------------------------------ 3819 # Check that the linker support an argument 3820 3821 3822 3823 3824 # 3825 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3826 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3827 # 3828 # This code is free software; you can redistribute it and/or modify it 3829 # under the terms of the GNU General Public License version 2 only, as 3830 # published by the Free Software Foundation. Oracle designates this 3831 # particular file as subject to the "Classpath" exception as provided 3832 # by Oracle in the LICENSE file that accompanied this code. 3833 # 3834 # This code is distributed in the hope that it will be useful, but WITHOUT 3835 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3836 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3837 # version 2 for more details (a copy is included in the LICENSE file that 3838 # accompanied this code). 3839 # 3840 # You should have received a copy of the GNU General Public License version 3841 # 2 along with this work; if not, write to the Free Software Foundation, 3842 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3843 # 3844 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3845 # or visit www.oracle.com if you need additional information or have any 3846 # questions. 3847 # 3848 3849 3850 3851 3852 3853 cygwin_help() { 3854 case $1 in 3855 unzip) 3856 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3857 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3858 ;; 3859 zip) 3860 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3861 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3862 ;; 3863 make) 3864 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3865 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3866 ;; 3867 freetype) 3868 HELP_MSG=" 3869 The freetype library can now be build during the configure process. 3870 Download the freetype sources and unpack them into an arbitrary directory: 3871 3872 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3873 tar -xzf freetype-2.5.3.tar.gz 3874 3875 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3876 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3877 builds or into '<freetype_src>/lib32' for 32-bit builds. 3878 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3879 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3880 ;; 3881 esac 3882 } 3883 3884 msys_help() { 3885 PKGHANDLER_COMMAND="" 3886 } 3887 3888 apt_help() { 3889 case $1 in 3890 devkit) 3891 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3892 openjdk) 3893 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3894 alsa) 3895 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3896 cups) 3897 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3898 freetype) 3899 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3900 pulse) 3901 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3902 x11) 3903 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3904 ccache) 3905 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3906 esac 3907 } 3908 3909 yum_help() { 3910 case $1 in 3911 devkit) 3912 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3913 openjdk) 3914 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3915 alsa) 3916 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3917 cups) 3918 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3919 freetype) 3920 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3921 pulse) 3922 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3923 x11) 3924 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3925 ccache) 3926 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3927 esac 3928 } 3929 3930 port_help() { 3931 PKGHANDLER_COMMAND="" 3932 } 3933 3934 pkgutil_help() { 3935 PKGHANDLER_COMMAND="" 3936 } 3937 3938 pkgadd_help() { 3939 PKGHANDLER_COMMAND="" 3940 } 3941 3942 # This function will check if we're called from the "configure" wrapper while 3943 # printing --help. If so, we will print out additional information that can 3944 # only be extracted within the autoconf script, and then exit. This must be 3945 # called at the very beginning in configure.ac. 3946 3947 3948 3949 3950 3951 3952 # 3953 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3954 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3955 # 3956 # This code is free software; you can redistribute it and/or modify it 3957 # under the terms of the GNU General Public License version 2 only, as 3958 # published by the Free Software Foundation. Oracle designates this 3959 # particular file as subject to the "Classpath" exception as provided 3960 # by Oracle in the LICENSE file that accompanied this code. 3961 # 3962 # This code is distributed in the hope that it will be useful, but WITHOUT 3963 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3964 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3965 # version 2 for more details (a copy is included in the LICENSE file that 3966 # accompanied this code). 3967 # 3968 # You should have received a copy of the GNU General Public License version 3969 # 2 along with this work; if not, write to the Free Software Foundation, 3970 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3971 # 3972 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3973 # or visit www.oracle.com if you need additional information or have any 3974 # questions. 3975 # 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 ############################################################################### 3987 # 3988 # Should we build only OpenJDK even if closed sources are present? 3989 # 3990 3991 3992 3993 3994 ############################################################################### 3995 # 3996 # Setup version numbers 3997 # 3998 3999 4000 4001 4002 4003 4004 ################################################################################ 4005 # 4006 # Gcov coverage data for hotspot 4007 # 4008 4009 4010 # 4011 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4012 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4013 # 4014 # This code is free software; you can redistribute it and/or modify it 4015 # under the terms of the GNU General Public License version 2 only, as 4016 # published by the Free Software Foundation. Oracle designates this 4017 # particular file as subject to the "Classpath" exception as provided 4018 # by Oracle in the LICENSE file that accompanied this code. 4019 # 4020 # This code is distributed in the hope that it will be useful, but WITHOUT 4021 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4022 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4023 # version 2 for more details (a copy is included in the LICENSE file that 4024 # accompanied this code). 4025 # 4026 # You should have received a copy of the GNU General Public License version 4027 # 2 along with this work; if not, write to the Free Software Foundation, 4028 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4029 # 4030 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4031 # or visit www.oracle.com if you need additional information or have any 4032 # questions. 4033 # 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 # 4056 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4057 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4058 # 4059 # This code is free software; you can redistribute it and/or modify it 4060 # under the terms of the GNU General Public License version 2 only, as 4061 # published by the Free Software Foundation. Oracle designates this 4062 # particular file as subject to the "Classpath" exception as provided 4063 # by Oracle in the LICENSE file that accompanied this code. 4064 # 4065 # This code is distributed in the hope that it will be useful, but WITHOUT 4066 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4067 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4068 # version 2 for more details (a copy is included in the LICENSE file that 4069 # accompanied this code). 4070 # 4071 # You should have received a copy of the GNU General Public License version 4072 # 2 along with this work; if not, write to the Free Software Foundation, 4073 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4074 # 4075 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4076 # or visit www.oracle.com if you need additional information or have any 4077 # questions. 4078 # 4079 4080 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4081 # Converts autoconf style CPU name to OpenJDK style, into 4082 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4083 4084 4085 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4086 # Converts autoconf style OS name to OpenJDK style, into 4087 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4088 4089 4090 # Expects $host_os $host_cpu $build_os and $build_cpu 4091 # and $with_target_bits to have been setup! 4092 # 4093 # Translate the standard triplet(quadruplet) definition 4094 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4095 # OPENJDK_BUILD_OS, etc. 4096 4097 4098 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4099 # accordingly. Must be done after setting up build and target system, but before 4100 # doing anything else with these values. 4101 4102 4103 # Setup the legacy variables, for controlling the old makefiles. 4104 # 4105 4106 4107 4108 4109 #%%% Build and target systems %%% 4110 4111 4112 4113 4114 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4115 # Add -mX to various FLAGS variables. 4116 4117 4118 4119 4120 4121 4122 # 4123 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4124 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4125 # 4126 # This code is free software; you can redistribute it and/or modify it 4127 # under the terms of the GNU General Public License version 2 only, as 4128 # published by the Free Software Foundation. Oracle designates this 4129 # particular file as subject to the "Classpath" exception as provided 4130 # by Oracle in the LICENSE file that accompanied this code. 4131 # 4132 # This code is distributed in the hope that it will be useful, but WITHOUT 4133 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4134 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4135 # version 2 for more details (a copy is included in the LICENSE file that 4136 # accompanied this code). 4137 # 4138 # You should have received a copy of the GNU General Public License version 4139 # 2 along with this work; if not, write to the Free Software Foundation, 4140 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4141 # 4142 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4143 # or visit www.oracle.com if you need additional information or have any 4144 # questions. 4145 # 4146 4147 4148 4149 4150 4151 4152 4153 4154 # 4155 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4156 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4157 # 4158 # This code is free software; you can redistribute it and/or modify it 4159 # under the terms of the GNU General Public License version 2 only, as 4160 # published by the Free Software Foundation. Oracle designates this 4161 # particular file as subject to the "Classpath" exception as provided 4162 # by Oracle in the LICENSE file that accompanied this code. 4163 # 4164 # This code is distributed in the hope that it will be useful, but WITHOUT 4165 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4166 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4167 # version 2 for more details (a copy is included in the LICENSE file that 4168 # accompanied this code). 4169 # 4170 # You should have received a copy of the GNU General Public License version 4171 # 2 along with this work; if not, write to the Free Software Foundation, 4172 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4173 # 4174 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4175 # or visit www.oracle.com if you need additional information or have any 4176 # questions. 4177 # 4178 4179 ######################################################################## 4180 # This file is responsible for detecting, verifying and setting up the 4181 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4182 # proper paths to the binaries, but it will not setup any flags. 4183 # 4184 # The binaries used is determined by the toolchain type, which is the family of 4185 # compilers and related tools that are used. 4186 ######################################################################## 4187 4188 4189 # All valid toolchains, regardless of platform (used by help.m4) 4190 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4191 4192 # These toolchains are valid on different platforms 4193 VALID_TOOLCHAINS_linux="gcc clang" 4194 VALID_TOOLCHAINS_solaris="solstudio" 4195 VALID_TOOLCHAINS_macosx="gcc clang" 4196 VALID_TOOLCHAINS_aix="xlc" 4197 VALID_TOOLCHAINS_windows="microsoft" 4198 4199 # Toolchain descriptions 4200 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4201 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4202 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4203 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4204 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4205 4206 # Setup a number of variables describing how native output files are 4207 # named on this platform/toolchain. 4208 4209 4210 # Determine which toolchain type to use, and make sure it is valid for this 4211 # platform. Setup various information about the selected toolchain. 4212 4213 4214 # Before we start detecting the toolchain executables, we might need some 4215 # special setup, e.g. additional paths etc. 4216 4217 4218 # Restore path, etc 4219 4220 4221 # Check if a compiler is of the toolchain type we expect, and save the version 4222 # information from it. If the compiler does not match the expected type, 4223 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4224 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4225 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4226 # 4227 # $1 = compiler to test (CC or CXX) 4228 # $2 = human readable name of compiler (C or C++) 4229 4230 4231 # Try to locate the given C or C++ compiler in the path, or otherwise. 4232 # 4233 # $1 = compiler to test (CC or CXX) 4234 # $2 = human readable name of compiler (C or C++) 4235 # $3 = list of compiler names to search for 4236 4237 4238 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4239 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4240 # archiver (AR). Verify that the compilers are correct according to the 4241 # toolchain type. 4242 4243 4244 # Setup additional tools that is considered a part of the toolchain, but not the 4245 # core part. Many of these are highly platform-specific and do not exist, 4246 # and/or are not needed on all platforms. 4247 4248 4249 # Setup the build tools (i.e, the compiler and linker used to build programs 4250 # that should be run on the build platform, not the target platform, as a build 4251 # helper). Since the non-cross-compile case uses the normal, target compilers 4252 # for this, we can only do this after these have been setup. 4253 4254 4255 # Setup legacy variables that are still needed as alternative ways to refer to 4256 # parts of the toolchain. 4257 4258 4259 # Do some additional checks on the detected tools. 4260 4261 4262 # Setup the JTReg Regression Test Harness. 4263 4264 4265 # 4266 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4267 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4268 # 4269 # This code is free software; you can redistribute it and/or modify it 4270 # under the terms of the GNU General Public License version 2 only, as 4271 # published by the Free Software Foundation. Oracle designates this 4272 # particular file as subject to the "Classpath" exception as provided 4273 # by Oracle in the LICENSE file that accompanied this code. 4274 # 4275 # This code is distributed in the hope that it will be useful, but WITHOUT 4276 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4277 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4278 # version 2 for more details (a copy is included in the LICENSE file that 4279 # accompanied this code). 4280 # 4281 # You should have received a copy of the GNU General Public License version 4282 # 2 along with this work; if not, write to the Free Software Foundation, 4283 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4284 # 4285 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4286 # or visit www.oracle.com if you need additional information or have any 4287 # questions. 4288 # 4289 4290 ################################################################################ 4291 # The order of these defines the priority by which we try to find them. 4292 VALID_VS_VERSIONS="2013 2012 2010" 4293 4294 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4295 VS_VERSION_INTERNAL_2010=100 4296 VS_MSVCR_2010=msvcr100.dll 4297 # We don't use msvcp on Visual Studio 2010 4298 #VS_MSVCP_2010=msvcp100.dll 4299 VS_ENVVAR_2010="VS100COMNTOOLS" 4300 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4301 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4302 VS_VS_PLATFORM_NAME_2010="v100" 4303 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4304 4305 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4306 VS_VERSION_INTERNAL_2012=110 4307 VS_MSVCR_2012=msvcr110.dll 4308 VS_MSVCP_2012=msvcp110.dll 4309 VS_ENVVAR_2012="VS110COMNTOOLS" 4310 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4311 VS_SDK_INSTALLDIR_2012= 4312 VS_VS_PLATFORM_NAME_2012="v110" 4313 VS_SDK_PLATFORM_NAME_2012= 4314 4315 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4316 VS_VERSION_INTERNAL_2013=120 4317 VS_MSVCR_2013=msvcr120.dll 4318 VS_MSVCP_2013=msvcp120.dll 4319 VS_ENVVAR_2013="VS120COMNTOOLS" 4320 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4321 VS_SDK_INSTALLDIR_2013= 4322 VS_VS_PLATFORM_NAME_2013="v120" 4323 VS_SDK_PLATFORM_NAME_2013= 4324 4325 ################################################################################ 4326 4327 4328 4329 ################################################################################ 4330 4331 4332 4333 ################################################################################ 4334 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4335 # build environment and assigns it to VS_ENV_CMD 4336 4337 4338 ################################################################################ 4339 4340 4341 4342 ################################################################################ 4343 # Check if the VS env variables were setup prior to running configure. 4344 # If not, then find vcvarsall.bat and run it automatically, and integrate 4345 # the set env variables into the spec file. 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 # This line needs to be here, verbatim, after all includes and the dummy hook 4361 # definitions. It is replaced with custom functionality when building 4362 # custom sources. 4363 #CUSTOM_AUTOCONF_INCLUDE 4364 4365 # Do not change or remove the following line, it is needed for consistency checks: 4366 DATE_WHEN_GENERATED=1429004472 4367 4368 ############################################################################### 4369 # 4370 # Initialization / Boot-strapping 4371 # 4372 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4373 # thus it jumps back and forth, each time gaining something needed later on. 4374 # 4375 ############################################################################### 4376 4377 # If we are requested to print additional help, do that and then exit. 4378 # This must be the very first call. 4379 4380 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4381 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4382 $PRINTF "Which are valid to use depends on the build platform.\n" 4383 for toolchain in $VALID_TOOLCHAINS_all; do 4384 # Use indirect variable referencing 4385 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4386 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4387 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4388 done 4389 4390 # And now exit directly 4391 exit 0 4392 fi 4393 4394 4395 # Basic initialization that must happen first of all in the normal process. 4396 4397 # Save the original command line. This is passed to us by the wrapper configure script. 4398 4399 # Save the path variable before it gets changed 4400 ORIGINAL_PATH="$PATH" 4401 4402 DATE_WHEN_CONFIGURED=`LANG=C date` 4403 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4405 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4407 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4408 4409 4410 # Start with tools that do not need have cross compilation support 4411 # and can be expected to be found in the default PATH. These tools are 4412 # used by configure. Nor are these tools expected to be found in the 4413 # devkit from the builddeps server either, since they are 4414 # needed to download the devkit. 4415 4416 # First are all the simple required tools. 4417 4418 4419 4420 # Publish this variable in the help. 4421 4422 4423 if test "x$BASENAME" = x; then 4424 # The variable is not set by user, try to locate tool using the code snippet 4425 for ac_prog in basename 4426 do 4427 # Extract the first word of "$ac_prog", so it can be a program name with args. 4428 set dummy $ac_prog; ac_word=$2 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4430 $as_echo_n "checking for $ac_word... " >&6; } 4431 if ${ac_cv_path_BASENAME+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433 else 4434 case $BASENAME in 4435 [\\/]* | ?:[\\/]*) 4436 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4437 ;; 4438 *) 4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4440 for as_dir in $PATH 4441 do 4442 IFS=$as_save_IFS 4443 test -z "$as_dir" && as_dir=. 4444 for ac_exec_ext in '' $ac_executable_extensions; do 4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4446 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4448 break 2 4449 fi 4450 done 4451 done 4452 IFS=$as_save_IFS 4453 4454 ;; 4455 esac 4456 fi 4457 BASENAME=$ac_cv_path_BASENAME 4458 if test -n "$BASENAME"; then 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4460 $as_echo "$BASENAME" >&6; } 4461 else 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4463 $as_echo "no" >&6; } 4464 fi 4465 4466 4467 test -n "$BASENAME" && break 4468 done 4469 4470 else 4471 # The variable is set, but is it from the command line or the environment? 4472 4473 # Try to remove the string !BASENAME! from our list. 4474 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4475 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4476 # If it failed, the variable was not from the command line. Ignore it, 4477 # but warn the user (except for BASH, which is always set by the calling BASH). 4478 if test "xBASENAME" != xBASH; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4480 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4481 fi 4482 # Try to locate tool using the code snippet 4483 for ac_prog in basename 4484 do 4485 # Extract the first word of "$ac_prog", so it can be a program name with args. 4486 set dummy $ac_prog; ac_word=$2 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4488 $as_echo_n "checking for $ac_word... " >&6; } 4489 if ${ac_cv_path_BASENAME+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491 else 4492 case $BASENAME in 4493 [\\/]* | ?:[\\/]*) 4494 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4495 ;; 4496 *) 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498 for as_dir in $PATH 4499 do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4504 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4506 break 2 4507 fi 4508 done 4509 done 4510 IFS=$as_save_IFS 4511 4512 ;; 4513 esac 4514 fi 4515 BASENAME=$ac_cv_path_BASENAME 4516 if test -n "$BASENAME"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4518 $as_echo "$BASENAME" >&6; } 4519 else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4521 $as_echo "no" >&6; } 4522 fi 4523 4524 4525 test -n "$BASENAME" && break 4526 done 4527 4528 else 4529 # If it succeeded, then it was overridden by the user. We will use it 4530 # for the tool. 4531 4532 # First remove it from the list of overridden variables, so we can test 4533 # for unknown variables in the end. 4534 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4535 4536 # Check if the provided tool contains a complete path. 4537 tool_specified="$BASENAME" 4538 tool_basename="${tool_specified##*/}" 4539 if test "x$tool_basename" = "x$tool_specified"; then 4540 # A command without a complete path is provided, search $PATH. 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4542 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4543 # Extract the first word of "$tool_basename", so it can be a program name with args. 4544 set dummy $tool_basename; ac_word=$2 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4546 $as_echo_n "checking for $ac_word... " >&6; } 4547 if ${ac_cv_path_BASENAME+:} false; then : 4548 $as_echo_n "(cached) " >&6 4549 else 4550 case $BASENAME in 4551 [\\/]* | ?:[\\/]*) 4552 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4553 ;; 4554 *) 4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556 for as_dir in $PATH 4557 do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4562 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4564 break 2 4565 fi 4566 done 4567 done 4568 IFS=$as_save_IFS 4569 4570 ;; 4571 esac 4572 fi 4573 BASENAME=$ac_cv_path_BASENAME 4574 if test -n "$BASENAME"; then 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4576 $as_echo "$BASENAME" >&6; } 4577 else 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4579 $as_echo "no" >&6; } 4580 fi 4581 4582 4583 if test "x$BASENAME" = x; then 4584 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4585 fi 4586 else 4587 # Otherwise we believe it is a complete path. Use it as it is. 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4589 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4591 $as_echo_n "checking for BASENAME... " >&6; } 4592 if test ! -x "$tool_specified"; then 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4594 $as_echo "not found" >&6; } 4595 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4596 fi 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4598 $as_echo "$tool_specified" >&6; } 4599 fi 4600 fi 4601 fi 4602 4603 4604 4605 if test "x$BASENAME" = x; then 4606 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4607 fi 4608 4609 4610 4611 4612 4613 # Publish this variable in the help. 4614 4615 4616 if test "x$BASH" = x; then 4617 # The variable is not set by user, try to locate tool using the code snippet 4618 for ac_prog in bash 4619 do 4620 # Extract the first word of "$ac_prog", so it can be a program name with args. 4621 set dummy $ac_prog; ac_word=$2 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4623 $as_echo_n "checking for $ac_word... " >&6; } 4624 if ${ac_cv_path_BASH+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626 else 4627 case $BASH in 4628 [\\/]* | ?:[\\/]*) 4629 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4630 ;; 4631 *) 4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4633 for as_dir in $PATH 4634 do 4635 IFS=$as_save_IFS 4636 test -z "$as_dir" && as_dir=. 4637 for ac_exec_ext in '' $ac_executable_extensions; do 4638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4639 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4641 break 2 4642 fi 4643 done 4644 done 4645 IFS=$as_save_IFS 4646 4647 ;; 4648 esac 4649 fi 4650 BASH=$ac_cv_path_BASH 4651 if test -n "$BASH"; then 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4653 $as_echo "$BASH" >&6; } 4654 else 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4656 $as_echo "no" >&6; } 4657 fi 4658 4659 4660 test -n "$BASH" && break 4661 done 4662 4663 else 4664 # The variable is set, but is it from the command line or the environment? 4665 4666 # Try to remove the string !BASH! from our list. 4667 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4668 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4669 # If it failed, the variable was not from the command line. Ignore it, 4670 # but warn the user (except for BASH, which is always set by the calling BASH). 4671 if test "xBASH" != xBASH; then 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4673 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4674 fi 4675 # Try to locate tool using the code snippet 4676 for ac_prog in bash 4677 do 4678 # Extract the first word of "$ac_prog", so it can be a program name with args. 4679 set dummy $ac_prog; ac_word=$2 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4681 $as_echo_n "checking for $ac_word... " >&6; } 4682 if ${ac_cv_path_BASH+:} false; then : 4683 $as_echo_n "(cached) " >&6 4684 else 4685 case $BASH in 4686 [\\/]* | ?:[\\/]*) 4687 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4688 ;; 4689 *) 4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4691 for as_dir in $PATH 4692 do 4693 IFS=$as_save_IFS 4694 test -z "$as_dir" && as_dir=. 4695 for ac_exec_ext in '' $ac_executable_extensions; do 4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4697 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4699 break 2 4700 fi 4701 done 4702 done 4703 IFS=$as_save_IFS 4704 4705 ;; 4706 esac 4707 fi 4708 BASH=$ac_cv_path_BASH 4709 if test -n "$BASH"; then 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4711 $as_echo "$BASH" >&6; } 4712 else 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4714 $as_echo "no" >&6; } 4715 fi 4716 4717 4718 test -n "$BASH" && break 4719 done 4720 4721 else 4722 # If it succeeded, then it was overridden by the user. We will use it 4723 # for the tool. 4724 4725 # First remove it from the list of overridden variables, so we can test 4726 # for unknown variables in the end. 4727 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4728 4729 # Check if the provided tool contains a complete path. 4730 tool_specified="$BASH" 4731 tool_basename="${tool_specified##*/}" 4732 if test "x$tool_basename" = "x$tool_specified"; then 4733 # A command without a complete path is provided, search $PATH. 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4735 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4736 # Extract the first word of "$tool_basename", so it can be a program name with args. 4737 set dummy $tool_basename; ac_word=$2 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4739 $as_echo_n "checking for $ac_word... " >&6; } 4740 if ${ac_cv_path_BASH+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742 else 4743 case $BASH in 4744 [\\/]* | ?:[\\/]*) 4745 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4746 ;; 4747 *) 4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4749 for as_dir in $PATH 4750 do 4751 IFS=$as_save_IFS 4752 test -z "$as_dir" && as_dir=. 4753 for ac_exec_ext in '' $ac_executable_extensions; do 4754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4755 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4757 break 2 4758 fi 4759 done 4760 done 4761 IFS=$as_save_IFS 4762 4763 ;; 4764 esac 4765 fi 4766 BASH=$ac_cv_path_BASH 4767 if test -n "$BASH"; then 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4769 $as_echo "$BASH" >&6; } 4770 else 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4772 $as_echo "no" >&6; } 4773 fi 4774 4775 4776 if test "x$BASH" = x; then 4777 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4778 fi 4779 else 4780 # Otherwise we believe it is a complete path. Use it as it is. 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4782 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4784 $as_echo_n "checking for BASH... " >&6; } 4785 if test ! -x "$tool_specified"; then 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4787 $as_echo "not found" >&6; } 4788 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4789 fi 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4791 $as_echo "$tool_specified" >&6; } 4792 fi 4793 fi 4794 fi 4795 4796 4797 4798 if test "x$BASH" = x; then 4799 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4800 fi 4801 4802 4803 4804 4805 4806 # Publish this variable in the help. 4807 4808 4809 if test "x$CAT" = x; then 4810 # The variable is not set by user, try to locate tool using the code snippet 4811 for ac_prog in cat 4812 do 4813 # Extract the first word of "$ac_prog", so it can be a program name with args. 4814 set dummy $ac_prog; ac_word=$2 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4816 $as_echo_n "checking for $ac_word... " >&6; } 4817 if ${ac_cv_path_CAT+:} false; then : 4818 $as_echo_n "(cached) " >&6 4819 else 4820 case $CAT in 4821 [\\/]* | ?:[\\/]*) 4822 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4823 ;; 4824 *) 4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826 for as_dir in $PATH 4827 do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4832 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4834 break 2 4835 fi 4836 done 4837 done 4838 IFS=$as_save_IFS 4839 4840 ;; 4841 esac 4842 fi 4843 CAT=$ac_cv_path_CAT 4844 if test -n "$CAT"; then 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4846 $as_echo "$CAT" >&6; } 4847 else 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4849 $as_echo "no" >&6; } 4850 fi 4851 4852 4853 test -n "$CAT" && break 4854 done 4855 4856 else 4857 # The variable is set, but is it from the command line or the environment? 4858 4859 # Try to remove the string !CAT! from our list. 4860 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4861 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4862 # If it failed, the variable was not from the command line. Ignore it, 4863 # but warn the user (except for BASH, which is always set by the calling BASH). 4864 if test "xCAT" != xBASH; then 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4866 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4867 fi 4868 # Try to locate tool using the code snippet 4869 for ac_prog in cat 4870 do 4871 # Extract the first word of "$ac_prog", so it can be a program name with args. 4872 set dummy $ac_prog; ac_word=$2 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4874 $as_echo_n "checking for $ac_word... " >&6; } 4875 if ${ac_cv_path_CAT+:} false; then : 4876 $as_echo_n "(cached) " >&6 4877 else 4878 case $CAT in 4879 [\\/]* | ?:[\\/]*) 4880 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4881 ;; 4882 *) 4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4884 for as_dir in $PATH 4885 do 4886 IFS=$as_save_IFS 4887 test -z "$as_dir" && as_dir=. 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4890 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4892 break 2 4893 fi 4894 done 4895 done 4896 IFS=$as_save_IFS 4897 4898 ;; 4899 esac 4900 fi 4901 CAT=$ac_cv_path_CAT 4902 if test -n "$CAT"; then 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4904 $as_echo "$CAT" >&6; } 4905 else 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4907 $as_echo "no" >&6; } 4908 fi 4909 4910 4911 test -n "$CAT" && break 4912 done 4913 4914 else 4915 # If it succeeded, then it was overridden by the user. We will use it 4916 # for the tool. 4917 4918 # First remove it from the list of overridden variables, so we can test 4919 # for unknown variables in the end. 4920 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4921 4922 # Check if the provided tool contains a complete path. 4923 tool_specified="$CAT" 4924 tool_basename="${tool_specified##*/}" 4925 if test "x$tool_basename" = "x$tool_specified"; then 4926 # A command without a complete path is provided, search $PATH. 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4928 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4929 # Extract the first word of "$tool_basename", so it can be a program name with args. 4930 set dummy $tool_basename; ac_word=$2 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4932 $as_echo_n "checking for $ac_word... " >&6; } 4933 if ${ac_cv_path_CAT+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935 else 4936 case $CAT in 4937 [\\/]* | ?:[\\/]*) 4938 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4939 ;; 4940 *) 4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4942 for as_dir in $PATH 4943 do 4944 IFS=$as_save_IFS 4945 test -z "$as_dir" && as_dir=. 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4948 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4950 break 2 4951 fi 4952 done 4953 done 4954 IFS=$as_save_IFS 4955 4956 ;; 4957 esac 4958 fi 4959 CAT=$ac_cv_path_CAT 4960 if test -n "$CAT"; then 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4962 $as_echo "$CAT" >&6; } 4963 else 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965 $as_echo "no" >&6; } 4966 fi 4967 4968 4969 if test "x$CAT" = x; then 4970 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4971 fi 4972 else 4973 # Otherwise we believe it is a complete path. Use it as it is. 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4975 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4977 $as_echo_n "checking for CAT... " >&6; } 4978 if test ! -x "$tool_specified"; then 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4980 $as_echo "not found" >&6; } 4981 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4982 fi 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4984 $as_echo "$tool_specified" >&6; } 4985 fi 4986 fi 4987 fi 4988 4989 4990 4991 if test "x$CAT" = x; then 4992 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4993 fi 4994 4995 4996 4997 4998 4999 # Publish this variable in the help. 5000 5001 5002 if test "x$CHMOD" = x; then 5003 # The variable is not set by user, try to locate tool using the code snippet 5004 for ac_prog in chmod 5005 do 5006 # Extract the first word of "$ac_prog", so it can be a program name with args. 5007 set dummy $ac_prog; ac_word=$2 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5009 $as_echo_n "checking for $ac_word... " >&6; } 5010 if ${ac_cv_path_CHMOD+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012 else 5013 case $CHMOD in 5014 [\\/]* | ?:[\\/]*) 5015 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5016 ;; 5017 *) 5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019 for as_dir in $PATH 5020 do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5025 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5027 break 2 5028 fi 5029 done 5030 done 5031 IFS=$as_save_IFS 5032 5033 ;; 5034 esac 5035 fi 5036 CHMOD=$ac_cv_path_CHMOD 5037 if test -n "$CHMOD"; then 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5039 $as_echo "$CHMOD" >&6; } 5040 else 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5042 $as_echo "no" >&6; } 5043 fi 5044 5045 5046 test -n "$CHMOD" && break 5047 done 5048 5049 else 5050 # The variable is set, but is it from the command line or the environment? 5051 5052 # Try to remove the string !CHMOD! from our list. 5053 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5054 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5055 # If it failed, the variable was not from the command line. Ignore it, 5056 # but warn the user (except for BASH, which is always set by the calling BASH). 5057 if test "xCHMOD" != xBASH; then 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5059 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5060 fi 5061 # Try to locate tool using the code snippet 5062 for ac_prog in chmod 5063 do 5064 # Extract the first word of "$ac_prog", so it can be a program name with args. 5065 set dummy $ac_prog; ac_word=$2 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5067 $as_echo_n "checking for $ac_word... " >&6; } 5068 if ${ac_cv_path_CHMOD+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070 else 5071 case $CHMOD in 5072 [\\/]* | ?:[\\/]*) 5073 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5074 ;; 5075 *) 5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5077 for as_dir in $PATH 5078 do 5079 IFS=$as_save_IFS 5080 test -z "$as_dir" && as_dir=. 5081 for ac_exec_ext in '' $ac_executable_extensions; do 5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5083 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5085 break 2 5086 fi 5087 done 5088 done 5089 IFS=$as_save_IFS 5090 5091 ;; 5092 esac 5093 fi 5094 CHMOD=$ac_cv_path_CHMOD 5095 if test -n "$CHMOD"; then 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5097 $as_echo "$CHMOD" >&6; } 5098 else 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5100 $as_echo "no" >&6; } 5101 fi 5102 5103 5104 test -n "$CHMOD" && break 5105 done 5106 5107 else 5108 # If it succeeded, then it was overridden by the user. We will use it 5109 # for the tool. 5110 5111 # First remove it from the list of overridden variables, so we can test 5112 # for unknown variables in the end. 5113 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5114 5115 # Check if the provided tool contains a complete path. 5116 tool_specified="$CHMOD" 5117 tool_basename="${tool_specified##*/}" 5118 if test "x$tool_basename" = "x$tool_specified"; then 5119 # A command without a complete path is provided, search $PATH. 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5121 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5122 # Extract the first word of "$tool_basename", so it can be a program name with args. 5123 set dummy $tool_basename; ac_word=$2 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5125 $as_echo_n "checking for $ac_word... " >&6; } 5126 if ${ac_cv_path_CHMOD+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128 else 5129 case $CHMOD in 5130 [\\/]* | ?:[\\/]*) 5131 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5132 ;; 5133 *) 5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5135 for as_dir in $PATH 5136 do 5137 IFS=$as_save_IFS 5138 test -z "$as_dir" && as_dir=. 5139 for ac_exec_ext in '' $ac_executable_extensions; do 5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5141 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5143 break 2 5144 fi 5145 done 5146 done 5147 IFS=$as_save_IFS 5148 5149 ;; 5150 esac 5151 fi 5152 CHMOD=$ac_cv_path_CHMOD 5153 if test -n "$CHMOD"; then 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5155 $as_echo "$CHMOD" >&6; } 5156 else 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5158 $as_echo "no" >&6; } 5159 fi 5160 5161 5162 if test "x$CHMOD" = x; then 5163 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5164 fi 5165 else 5166 # Otherwise we believe it is a complete path. Use it as it is. 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5168 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5170 $as_echo_n "checking for CHMOD... " >&6; } 5171 if test ! -x "$tool_specified"; then 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5173 $as_echo "not found" >&6; } 5174 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5175 fi 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5177 $as_echo "$tool_specified" >&6; } 5178 fi 5179 fi 5180 fi 5181 5182 5183 5184 if test "x$CHMOD" = x; then 5185 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5186 fi 5187 5188 5189 5190 5191 5192 # Publish this variable in the help. 5193 5194 5195 if test "x$CMP" = x; then 5196 # The variable is not set by user, try to locate tool using the code snippet 5197 for ac_prog in cmp 5198 do 5199 # Extract the first word of "$ac_prog", so it can be a program name with args. 5200 set dummy $ac_prog; ac_word=$2 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5202 $as_echo_n "checking for $ac_word... " >&6; } 5203 if ${ac_cv_path_CMP+:} false; then : 5204 $as_echo_n "(cached) " >&6 5205 else 5206 case $CMP in 5207 [\\/]* | ?:[\\/]*) 5208 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5209 ;; 5210 *) 5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212 for as_dir in $PATH 5213 do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5218 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5220 break 2 5221 fi 5222 done 5223 done 5224 IFS=$as_save_IFS 5225 5226 ;; 5227 esac 5228 fi 5229 CMP=$ac_cv_path_CMP 5230 if test -n "$CMP"; then 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5232 $as_echo "$CMP" >&6; } 5233 else 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5235 $as_echo "no" >&6; } 5236 fi 5237 5238 5239 test -n "$CMP" && break 5240 done 5241 5242 else 5243 # The variable is set, but is it from the command line or the environment? 5244 5245 # Try to remove the string !CMP! from our list. 5246 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5247 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5248 # If it failed, the variable was not from the command line. Ignore it, 5249 # but warn the user (except for BASH, which is always set by the calling BASH). 5250 if test "xCMP" != xBASH; then 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5252 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5253 fi 5254 # Try to locate tool using the code snippet 5255 for ac_prog in cmp 5256 do 5257 # Extract the first word of "$ac_prog", so it can be a program name with args. 5258 set dummy $ac_prog; ac_word=$2 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5260 $as_echo_n "checking for $ac_word... " >&6; } 5261 if ${ac_cv_path_CMP+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263 else 5264 case $CMP in 5265 [\\/]* | ?:[\\/]*) 5266 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5267 ;; 5268 *) 5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5270 for as_dir in $PATH 5271 do 5272 IFS=$as_save_IFS 5273 test -z "$as_dir" && as_dir=. 5274 for ac_exec_ext in '' $ac_executable_extensions; do 5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5276 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5278 break 2 5279 fi 5280 done 5281 done 5282 IFS=$as_save_IFS 5283 5284 ;; 5285 esac 5286 fi 5287 CMP=$ac_cv_path_CMP 5288 if test -n "$CMP"; then 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5290 $as_echo "$CMP" >&6; } 5291 else 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5293 $as_echo "no" >&6; } 5294 fi 5295 5296 5297 test -n "$CMP" && break 5298 done 5299 5300 else 5301 # If it succeeded, then it was overridden by the user. We will use it 5302 # for the tool. 5303 5304 # First remove it from the list of overridden variables, so we can test 5305 # for unknown variables in the end. 5306 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5307 5308 # Check if the provided tool contains a complete path. 5309 tool_specified="$CMP" 5310 tool_basename="${tool_specified##*/}" 5311 if test "x$tool_basename" = "x$tool_specified"; then 5312 # A command without a complete path is provided, search $PATH. 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5314 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5315 # Extract the first word of "$tool_basename", so it can be a program name with args. 5316 set dummy $tool_basename; ac_word=$2 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5318 $as_echo_n "checking for $ac_word... " >&6; } 5319 if ${ac_cv_path_CMP+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321 else 5322 case $CMP in 5323 [\\/]* | ?:[\\/]*) 5324 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5325 ;; 5326 *) 5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5328 for as_dir in $PATH 5329 do 5330 IFS=$as_save_IFS 5331 test -z "$as_dir" && as_dir=. 5332 for ac_exec_ext in '' $ac_executable_extensions; do 5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5334 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5336 break 2 5337 fi 5338 done 5339 done 5340 IFS=$as_save_IFS 5341 5342 ;; 5343 esac 5344 fi 5345 CMP=$ac_cv_path_CMP 5346 if test -n "$CMP"; then 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5348 $as_echo "$CMP" >&6; } 5349 else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351 $as_echo "no" >&6; } 5352 fi 5353 5354 5355 if test "x$CMP" = x; then 5356 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5357 fi 5358 else 5359 # Otherwise we believe it is a complete path. Use it as it is. 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5361 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5363 $as_echo_n "checking for CMP... " >&6; } 5364 if test ! -x "$tool_specified"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5366 $as_echo "not found" >&6; } 5367 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5368 fi 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5370 $as_echo "$tool_specified" >&6; } 5371 fi 5372 fi 5373 fi 5374 5375 5376 5377 if test "x$CMP" = x; then 5378 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5379 fi 5380 5381 5382 5383 5384 5385 # Publish this variable in the help. 5386 5387 5388 if test "x$COMM" = x; then 5389 # The variable is not set by user, try to locate tool using the code snippet 5390 for ac_prog in comm 5391 do 5392 # Extract the first word of "$ac_prog", so it can be a program name with args. 5393 set dummy $ac_prog; ac_word=$2 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5395 $as_echo_n "checking for $ac_word... " >&6; } 5396 if ${ac_cv_path_COMM+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398 else 5399 case $COMM in 5400 [\\/]* | ?:[\\/]*) 5401 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5402 ;; 5403 *) 5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5405 for as_dir in $PATH 5406 do 5407 IFS=$as_save_IFS 5408 test -z "$as_dir" && as_dir=. 5409 for ac_exec_ext in '' $ac_executable_extensions; do 5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5411 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 break 2 5414 fi 5415 done 5416 done 5417 IFS=$as_save_IFS 5418 5419 ;; 5420 esac 5421 fi 5422 COMM=$ac_cv_path_COMM 5423 if test -n "$COMM"; then 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5425 $as_echo "$COMM" >&6; } 5426 else 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5428 $as_echo "no" >&6; } 5429 fi 5430 5431 5432 test -n "$COMM" && break 5433 done 5434 5435 else 5436 # The variable is set, but is it from the command line or the environment? 5437 5438 # Try to remove the string !COMM! from our list. 5439 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5440 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5441 # If it failed, the variable was not from the command line. Ignore it, 5442 # but warn the user (except for BASH, which is always set by the calling BASH). 5443 if test "xCOMM" != xBASH; then 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5445 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5446 fi 5447 # Try to locate tool using the code snippet 5448 for ac_prog in comm 5449 do 5450 # Extract the first word of "$ac_prog", so it can be a program name with args. 5451 set dummy $ac_prog; ac_word=$2 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5453 $as_echo_n "checking for $ac_word... " >&6; } 5454 if ${ac_cv_path_COMM+:} false; then : 5455 $as_echo_n "(cached) " >&6 5456 else 5457 case $COMM in 5458 [\\/]* | ?:[\\/]*) 5459 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5460 ;; 5461 *) 5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463 for as_dir in $PATH 5464 do 5465 IFS=$as_save_IFS 5466 test -z "$as_dir" && as_dir=. 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5469 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 break 2 5472 fi 5473 done 5474 done 5475 IFS=$as_save_IFS 5476 5477 ;; 5478 esac 5479 fi 5480 COMM=$ac_cv_path_COMM 5481 if test -n "$COMM"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5483 $as_echo "$COMM" >&6; } 5484 else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486 $as_echo "no" >&6; } 5487 fi 5488 5489 5490 test -n "$COMM" && break 5491 done 5492 5493 else 5494 # If it succeeded, then it was overridden by the user. We will use it 5495 # for the tool. 5496 5497 # First remove it from the list of overridden variables, so we can test 5498 # for unknown variables in the end. 5499 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5500 5501 # Check if the provided tool contains a complete path. 5502 tool_specified="$COMM" 5503 tool_basename="${tool_specified##*/}" 5504 if test "x$tool_basename" = "x$tool_specified"; then 5505 # A command without a complete path is provided, search $PATH. 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5507 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5508 # Extract the first word of "$tool_basename", so it can be a program name with args. 5509 set dummy $tool_basename; ac_word=$2 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5511 $as_echo_n "checking for $ac_word... " >&6; } 5512 if ${ac_cv_path_COMM+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514 else 5515 case $COMM in 5516 [\\/]* | ?:[\\/]*) 5517 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5518 ;; 5519 *) 5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521 for as_dir in $PATH 5522 do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5527 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531 done 5532 done 5533 IFS=$as_save_IFS 5534 5535 ;; 5536 esac 5537 fi 5538 COMM=$ac_cv_path_COMM 5539 if test -n "$COMM"; then 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5541 $as_echo "$COMM" >&6; } 5542 else 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5544 $as_echo "no" >&6; } 5545 fi 5546 5547 5548 if test "x$COMM" = x; then 5549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5550 fi 5551 else 5552 # Otherwise we believe it is a complete path. Use it as it is. 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5554 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5556 $as_echo_n "checking for COMM... " >&6; } 5557 if test ! -x "$tool_specified"; then 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5559 $as_echo "not found" >&6; } 5560 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5561 fi 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5563 $as_echo "$tool_specified" >&6; } 5564 fi 5565 fi 5566 fi 5567 5568 5569 5570 if test "x$COMM" = x; then 5571 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5572 fi 5573 5574 5575 5576 5577 5578 # Publish this variable in the help. 5579 5580 5581 if test "x$CP" = x; then 5582 # The variable is not set by user, try to locate tool using the code snippet 5583 for ac_prog in cp 5584 do 5585 # Extract the first word of "$ac_prog", so it can be a program name with args. 5586 set dummy $ac_prog; ac_word=$2 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5588 $as_echo_n "checking for $ac_word... " >&6; } 5589 if ${ac_cv_path_CP+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591 else 5592 case $CP in 5593 [\\/]* | ?:[\\/]*) 5594 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5595 ;; 5596 *) 5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5598 for as_dir in $PATH 5599 do 5600 IFS=$as_save_IFS 5601 test -z "$as_dir" && as_dir=. 5602 for ac_exec_ext in '' $ac_executable_extensions; do 5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5604 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5606 break 2 5607 fi 5608 done 5609 done 5610 IFS=$as_save_IFS 5611 5612 ;; 5613 esac 5614 fi 5615 CP=$ac_cv_path_CP 5616 if test -n "$CP"; then 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5618 $as_echo "$CP" >&6; } 5619 else 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5621 $as_echo "no" >&6; } 5622 fi 5623 5624 5625 test -n "$CP" && break 5626 done 5627 5628 else 5629 # The variable is set, but is it from the command line or the environment? 5630 5631 # Try to remove the string !CP! from our list. 5632 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5633 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5634 # If it failed, the variable was not from the command line. Ignore it, 5635 # but warn the user (except for BASH, which is always set by the calling BASH). 5636 if test "xCP" != xBASH; then 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5638 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5639 fi 5640 # Try to locate tool using the code snippet 5641 for ac_prog in cp 5642 do 5643 # Extract the first word of "$ac_prog", so it can be a program name with args. 5644 set dummy $ac_prog; ac_word=$2 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5646 $as_echo_n "checking for $ac_word... " >&6; } 5647 if ${ac_cv_path_CP+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649 else 5650 case $CP in 5651 [\\/]* | ?:[\\/]*) 5652 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5653 ;; 5654 *) 5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5656 for as_dir in $PATH 5657 do 5658 IFS=$as_save_IFS 5659 test -z "$as_dir" && as_dir=. 5660 for ac_exec_ext in '' $ac_executable_extensions; do 5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5662 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5664 break 2 5665 fi 5666 done 5667 done 5668 IFS=$as_save_IFS 5669 5670 ;; 5671 esac 5672 fi 5673 CP=$ac_cv_path_CP 5674 if test -n "$CP"; then 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5676 $as_echo "$CP" >&6; } 5677 else 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5679 $as_echo "no" >&6; } 5680 fi 5681 5682 5683 test -n "$CP" && break 5684 done 5685 5686 else 5687 # If it succeeded, then it was overridden by the user. We will use it 5688 # for the tool. 5689 5690 # First remove it from the list of overridden variables, so we can test 5691 # for unknown variables in the end. 5692 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5693 5694 # Check if the provided tool contains a complete path. 5695 tool_specified="$CP" 5696 tool_basename="${tool_specified##*/}" 5697 if test "x$tool_basename" = "x$tool_specified"; then 5698 # A command without a complete path is provided, search $PATH. 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5700 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5701 # Extract the first word of "$tool_basename", so it can be a program name with args. 5702 set dummy $tool_basename; ac_word=$2 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5704 $as_echo_n "checking for $ac_word... " >&6; } 5705 if ${ac_cv_path_CP+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707 else 5708 case $CP in 5709 [\\/]* | ?:[\\/]*) 5710 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5711 ;; 5712 *) 5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5714 for as_dir in $PATH 5715 do 5716 IFS=$as_save_IFS 5717 test -z "$as_dir" && as_dir=. 5718 for ac_exec_ext in '' $ac_executable_extensions; do 5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5720 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5722 break 2 5723 fi 5724 done 5725 done 5726 IFS=$as_save_IFS 5727 5728 ;; 5729 esac 5730 fi 5731 CP=$ac_cv_path_CP 5732 if test -n "$CP"; then 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5734 $as_echo "$CP" >&6; } 5735 else 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5737 $as_echo "no" >&6; } 5738 fi 5739 5740 5741 if test "x$CP" = x; then 5742 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5743 fi 5744 else 5745 # Otherwise we believe it is a complete path. Use it as it is. 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5747 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5749 $as_echo_n "checking for CP... " >&6; } 5750 if test ! -x "$tool_specified"; then 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5752 $as_echo "not found" >&6; } 5753 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5754 fi 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5756 $as_echo "$tool_specified" >&6; } 5757 fi 5758 fi 5759 fi 5760 5761 5762 5763 if test "x$CP" = x; then 5764 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5765 fi 5766 5767 5768 5769 5770 5771 # Publish this variable in the help. 5772 5773 5774 if test "x$CUT" = x; then 5775 # The variable is not set by user, try to locate tool using the code snippet 5776 for ac_prog in cut 5777 do 5778 # Extract the first word of "$ac_prog", so it can be a program name with args. 5779 set dummy $ac_prog; ac_word=$2 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5781 $as_echo_n "checking for $ac_word... " >&6; } 5782 if ${ac_cv_path_CUT+:} false; then : 5783 $as_echo_n "(cached) " >&6 5784 else 5785 case $CUT in 5786 [\\/]* | ?:[\\/]*) 5787 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5788 ;; 5789 *) 5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791 for as_dir in $PATH 5792 do 5793 IFS=$as_save_IFS 5794 test -z "$as_dir" && as_dir=. 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5797 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801 done 5802 done 5803 IFS=$as_save_IFS 5804 5805 ;; 5806 esac 5807 fi 5808 CUT=$ac_cv_path_CUT 5809 if test -n "$CUT"; then 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5811 $as_echo "$CUT" >&6; } 5812 else 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5814 $as_echo "no" >&6; } 5815 fi 5816 5817 5818 test -n "$CUT" && break 5819 done 5820 5821 else 5822 # The variable is set, but is it from the command line or the environment? 5823 5824 # Try to remove the string !CUT! from our list. 5825 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5826 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5827 # If it failed, the variable was not from the command line. Ignore it, 5828 # but warn the user (except for BASH, which is always set by the calling BASH). 5829 if test "xCUT" != xBASH; then 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5831 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5832 fi 5833 # Try to locate tool using the code snippet 5834 for ac_prog in cut 5835 do 5836 # Extract the first word of "$ac_prog", so it can be a program name with args. 5837 set dummy $ac_prog; ac_word=$2 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5839 $as_echo_n "checking for $ac_word... " >&6; } 5840 if ${ac_cv_path_CUT+:} false; then : 5841 $as_echo_n "(cached) " >&6 5842 else 5843 case $CUT in 5844 [\\/]* | ?:[\\/]*) 5845 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5846 ;; 5847 *) 5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849 for as_dir in $PATH 5850 do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5855 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859 done 5860 done 5861 IFS=$as_save_IFS 5862 5863 ;; 5864 esac 5865 fi 5866 CUT=$ac_cv_path_CUT 5867 if test -n "$CUT"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5869 $as_echo "$CUT" >&6; } 5870 else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872 $as_echo "no" >&6; } 5873 fi 5874 5875 5876 test -n "$CUT" && break 5877 done 5878 5879 else 5880 # If it succeeded, then it was overridden by the user. We will use it 5881 # for the tool. 5882 5883 # First remove it from the list of overridden variables, so we can test 5884 # for unknown variables in the end. 5885 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5886 5887 # Check if the provided tool contains a complete path. 5888 tool_specified="$CUT" 5889 tool_basename="${tool_specified##*/}" 5890 if test "x$tool_basename" = "x$tool_specified"; then 5891 # A command without a complete path is provided, search $PATH. 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5893 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5894 # Extract the first word of "$tool_basename", so it can be a program name with args. 5895 set dummy $tool_basename; ac_word=$2 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5897 $as_echo_n "checking for $ac_word... " >&6; } 5898 if ${ac_cv_path_CUT+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900 else 5901 case $CUT in 5902 [\\/]* | ?:[\\/]*) 5903 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5904 ;; 5905 *) 5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5907 for as_dir in $PATH 5908 do 5909 IFS=$as_save_IFS 5910 test -z "$as_dir" && as_dir=. 5911 for ac_exec_ext in '' $ac_executable_extensions; do 5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5913 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5915 break 2 5916 fi 5917 done 5918 done 5919 IFS=$as_save_IFS 5920 5921 ;; 5922 esac 5923 fi 5924 CUT=$ac_cv_path_CUT 5925 if test -n "$CUT"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5927 $as_echo "$CUT" >&6; } 5928 else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930 $as_echo "no" >&6; } 5931 fi 5932 5933 5934 if test "x$CUT" = x; then 5935 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5936 fi 5937 else 5938 # Otherwise we believe it is a complete path. Use it as it is. 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5940 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5942 $as_echo_n "checking for CUT... " >&6; } 5943 if test ! -x "$tool_specified"; then 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5945 $as_echo "not found" >&6; } 5946 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5947 fi 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5949 $as_echo "$tool_specified" >&6; } 5950 fi 5951 fi 5952 fi 5953 5954 5955 5956 if test "x$CUT" = x; then 5957 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5958 fi 5959 5960 5961 5962 5963 5964 # Publish this variable in the help. 5965 5966 5967 if test "x$DATE" = x; then 5968 # The variable is not set by user, try to locate tool using the code snippet 5969 for ac_prog in date 5970 do 5971 # Extract the first word of "$ac_prog", so it can be a program name with args. 5972 set dummy $ac_prog; ac_word=$2 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5974 $as_echo_n "checking for $ac_word... " >&6; } 5975 if ${ac_cv_path_DATE+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977 else 5978 case $DATE in 5979 [\\/]* | ?:[\\/]*) 5980 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5981 ;; 5982 *) 5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5984 for as_dir in $PATH 5985 do 5986 IFS=$as_save_IFS 5987 test -z "$as_dir" && as_dir=. 5988 for ac_exec_ext in '' $ac_executable_extensions; do 5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5990 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5992 break 2 5993 fi 5994 done 5995 done 5996 IFS=$as_save_IFS 5997 5998 ;; 5999 esac 6000 fi 6001 DATE=$ac_cv_path_DATE 6002 if test -n "$DATE"; then 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6004 $as_echo "$DATE" >&6; } 6005 else 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6007 $as_echo "no" >&6; } 6008 fi 6009 6010 6011 test -n "$DATE" && break 6012 done 6013 6014 else 6015 # The variable is set, but is it from the command line or the environment? 6016 6017 # Try to remove the string !DATE! from our list. 6018 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6019 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6020 # If it failed, the variable was not from the command line. Ignore it, 6021 # but warn the user (except for BASH, which is always set by the calling BASH). 6022 if test "xDATE" != xBASH; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6024 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6025 fi 6026 # Try to locate tool using the code snippet 6027 for ac_prog in date 6028 do 6029 # Extract the first word of "$ac_prog", so it can be a program name with args. 6030 set dummy $ac_prog; ac_word=$2 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6032 $as_echo_n "checking for $ac_word... " >&6; } 6033 if ${ac_cv_path_DATE+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035 else 6036 case $DATE in 6037 [\\/]* | ?:[\\/]*) 6038 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6039 ;; 6040 *) 6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6042 for as_dir in $PATH 6043 do 6044 IFS=$as_save_IFS 6045 test -z "$as_dir" && as_dir=. 6046 for ac_exec_ext in '' $ac_executable_extensions; do 6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6048 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6050 break 2 6051 fi 6052 done 6053 done 6054 IFS=$as_save_IFS 6055 6056 ;; 6057 esac 6058 fi 6059 DATE=$ac_cv_path_DATE 6060 if test -n "$DATE"; then 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6062 $as_echo "$DATE" >&6; } 6063 else 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6065 $as_echo "no" >&6; } 6066 fi 6067 6068 6069 test -n "$DATE" && break 6070 done 6071 6072 else 6073 # If it succeeded, then it was overridden by the user. We will use it 6074 # for the tool. 6075 6076 # First remove it from the list of overridden variables, so we can test 6077 # for unknown variables in the end. 6078 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6079 6080 # Check if the provided tool contains a complete path. 6081 tool_specified="$DATE" 6082 tool_basename="${tool_specified##*/}" 6083 if test "x$tool_basename" = "x$tool_specified"; then 6084 # A command without a complete path is provided, search $PATH. 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6086 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6087 # Extract the first word of "$tool_basename", so it can be a program name with args. 6088 set dummy $tool_basename; ac_word=$2 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6090 $as_echo_n "checking for $ac_word... " >&6; } 6091 if ${ac_cv_path_DATE+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093 else 6094 case $DATE in 6095 [\\/]* | ?:[\\/]*) 6096 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6097 ;; 6098 *) 6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6100 for as_dir in $PATH 6101 do 6102 IFS=$as_save_IFS 6103 test -z "$as_dir" && as_dir=. 6104 for ac_exec_ext in '' $ac_executable_extensions; do 6105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6106 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6108 break 2 6109 fi 6110 done 6111 done 6112 IFS=$as_save_IFS 6113 6114 ;; 6115 esac 6116 fi 6117 DATE=$ac_cv_path_DATE 6118 if test -n "$DATE"; then 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6120 $as_echo "$DATE" >&6; } 6121 else 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6123 $as_echo "no" >&6; } 6124 fi 6125 6126 6127 if test "x$DATE" = x; then 6128 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6129 fi 6130 else 6131 # Otherwise we believe it is a complete path. Use it as it is. 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6133 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6135 $as_echo_n "checking for DATE... " >&6; } 6136 if test ! -x "$tool_specified"; then 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6138 $as_echo "not found" >&6; } 6139 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6140 fi 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6142 $as_echo "$tool_specified" >&6; } 6143 fi 6144 fi 6145 fi 6146 6147 6148 6149 if test "x$DATE" = x; then 6150 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6151 fi 6152 6153 6154 6155 6156 6157 # Publish this variable in the help. 6158 6159 6160 if test "x$DIFF" = x; then 6161 # The variable is not set by user, try to locate tool using the code snippet 6162 for ac_prog in gdiff diff 6163 do 6164 # Extract the first word of "$ac_prog", so it can be a program name with args. 6165 set dummy $ac_prog; ac_word=$2 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6167 $as_echo_n "checking for $ac_word... " >&6; } 6168 if ${ac_cv_path_DIFF+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170 else 6171 case $DIFF in 6172 [\\/]* | ?:[\\/]*) 6173 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6174 ;; 6175 *) 6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6177 for as_dir in $PATH 6178 do 6179 IFS=$as_save_IFS 6180 test -z "$as_dir" && as_dir=. 6181 for ac_exec_ext in '' $ac_executable_extensions; do 6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6183 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6185 break 2 6186 fi 6187 done 6188 done 6189 IFS=$as_save_IFS 6190 6191 ;; 6192 esac 6193 fi 6194 DIFF=$ac_cv_path_DIFF 6195 if test -n "$DIFF"; then 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6197 $as_echo "$DIFF" >&6; } 6198 else 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6200 $as_echo "no" >&6; } 6201 fi 6202 6203 6204 test -n "$DIFF" && break 6205 done 6206 6207 else 6208 # The variable is set, but is it from the command line or the environment? 6209 6210 # Try to remove the string !DIFF! from our list. 6211 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6212 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6213 # If it failed, the variable was not from the command line. Ignore it, 6214 # but warn the user (except for BASH, which is always set by the calling BASH). 6215 if test "xDIFF" != xBASH; then 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6217 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6218 fi 6219 # Try to locate tool using the code snippet 6220 for ac_prog in gdiff diff 6221 do 6222 # Extract the first word of "$ac_prog", so it can be a program name with args. 6223 set dummy $ac_prog; ac_word=$2 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6225 $as_echo_n "checking for $ac_word... " >&6; } 6226 if ${ac_cv_path_DIFF+:} false; then : 6227 $as_echo_n "(cached) " >&6 6228 else 6229 case $DIFF in 6230 [\\/]* | ?:[\\/]*) 6231 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6232 ;; 6233 *) 6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6235 for as_dir in $PATH 6236 do 6237 IFS=$as_save_IFS 6238 test -z "$as_dir" && as_dir=. 6239 for ac_exec_ext in '' $ac_executable_extensions; do 6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6241 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6243 break 2 6244 fi 6245 done 6246 done 6247 IFS=$as_save_IFS 6248 6249 ;; 6250 esac 6251 fi 6252 DIFF=$ac_cv_path_DIFF 6253 if test -n "$DIFF"; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6255 $as_echo "$DIFF" >&6; } 6256 else 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6258 $as_echo "no" >&6; } 6259 fi 6260 6261 6262 test -n "$DIFF" && break 6263 done 6264 6265 else 6266 # If it succeeded, then it was overridden by the user. We will use it 6267 # for the tool. 6268 6269 # First remove it from the list of overridden variables, so we can test 6270 # for unknown variables in the end. 6271 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6272 6273 # Check if the provided tool contains a complete path. 6274 tool_specified="$DIFF" 6275 tool_basename="${tool_specified##*/}" 6276 if test "x$tool_basename" = "x$tool_specified"; then 6277 # A command without a complete path is provided, search $PATH. 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6279 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6280 # Extract the first word of "$tool_basename", so it can be a program name with args. 6281 set dummy $tool_basename; ac_word=$2 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6283 $as_echo_n "checking for $ac_word... " >&6; } 6284 if ${ac_cv_path_DIFF+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286 else 6287 case $DIFF in 6288 [\\/]* | ?:[\\/]*) 6289 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6290 ;; 6291 *) 6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6293 for as_dir in $PATH 6294 do 6295 IFS=$as_save_IFS 6296 test -z "$as_dir" && as_dir=. 6297 for ac_exec_ext in '' $ac_executable_extensions; do 6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6299 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6301 break 2 6302 fi 6303 done 6304 done 6305 IFS=$as_save_IFS 6306 6307 ;; 6308 esac 6309 fi 6310 DIFF=$ac_cv_path_DIFF 6311 if test -n "$DIFF"; then 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6313 $as_echo "$DIFF" >&6; } 6314 else 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6316 $as_echo "no" >&6; } 6317 fi 6318 6319 6320 if test "x$DIFF" = x; then 6321 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6322 fi 6323 else 6324 # Otherwise we believe it is a complete path. Use it as it is. 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6326 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6328 $as_echo_n "checking for DIFF... " >&6; } 6329 if test ! -x "$tool_specified"; then 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6331 $as_echo "not found" >&6; } 6332 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6333 fi 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6335 $as_echo "$tool_specified" >&6; } 6336 fi 6337 fi 6338 fi 6339 6340 6341 6342 if test "x$DIFF" = x; then 6343 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6344 fi 6345 6346 6347 6348 6349 6350 # Publish this variable in the help. 6351 6352 6353 if test "x$DIRNAME" = x; then 6354 # The variable is not set by user, try to locate tool using the code snippet 6355 for ac_prog in dirname 6356 do 6357 # Extract the first word of "$ac_prog", so it can be a program name with args. 6358 set dummy $ac_prog; ac_word=$2 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6360 $as_echo_n "checking for $ac_word... " >&6; } 6361 if ${ac_cv_path_DIRNAME+:} false; then : 6362 $as_echo_n "(cached) " >&6 6363 else 6364 case $DIRNAME in 6365 [\\/]* | ?:[\\/]*) 6366 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6367 ;; 6368 *) 6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6370 for as_dir in $PATH 6371 do 6372 IFS=$as_save_IFS 6373 test -z "$as_dir" && as_dir=. 6374 for ac_exec_ext in '' $ac_executable_extensions; do 6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6376 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6378 break 2 6379 fi 6380 done 6381 done 6382 IFS=$as_save_IFS 6383 6384 ;; 6385 esac 6386 fi 6387 DIRNAME=$ac_cv_path_DIRNAME 6388 if test -n "$DIRNAME"; then 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6390 $as_echo "$DIRNAME" >&6; } 6391 else 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6393 $as_echo "no" >&6; } 6394 fi 6395 6396 6397 test -n "$DIRNAME" && break 6398 done 6399 6400 else 6401 # The variable is set, but is it from the command line or the environment? 6402 6403 # Try to remove the string !DIRNAME! from our list. 6404 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6405 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6406 # If it failed, the variable was not from the command line. Ignore it, 6407 # but warn the user (except for BASH, which is always set by the calling BASH). 6408 if test "xDIRNAME" != xBASH; then 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6410 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6411 fi 6412 # Try to locate tool using the code snippet 6413 for ac_prog in dirname 6414 do 6415 # Extract the first word of "$ac_prog", so it can be a program name with args. 6416 set dummy $ac_prog; ac_word=$2 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6418 $as_echo_n "checking for $ac_word... " >&6; } 6419 if ${ac_cv_path_DIRNAME+:} false; then : 6420 $as_echo_n "(cached) " >&6 6421 else 6422 case $DIRNAME in 6423 [\\/]* | ?:[\\/]*) 6424 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6425 ;; 6426 *) 6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6428 for as_dir in $PATH 6429 do 6430 IFS=$as_save_IFS 6431 test -z "$as_dir" && as_dir=. 6432 for ac_exec_ext in '' $ac_executable_extensions; do 6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6434 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6436 break 2 6437 fi 6438 done 6439 done 6440 IFS=$as_save_IFS 6441 6442 ;; 6443 esac 6444 fi 6445 DIRNAME=$ac_cv_path_DIRNAME 6446 if test -n "$DIRNAME"; then 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6448 $as_echo "$DIRNAME" >&6; } 6449 else 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6451 $as_echo "no" >&6; } 6452 fi 6453 6454 6455 test -n "$DIRNAME" && break 6456 done 6457 6458 else 6459 # If it succeeded, then it was overridden by the user. We will use it 6460 # for the tool. 6461 6462 # First remove it from the list of overridden variables, so we can test 6463 # for unknown variables in the end. 6464 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6465 6466 # Check if the provided tool contains a complete path. 6467 tool_specified="$DIRNAME" 6468 tool_basename="${tool_specified##*/}" 6469 if test "x$tool_basename" = "x$tool_specified"; then 6470 # A command without a complete path is provided, search $PATH. 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6472 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6473 # Extract the first word of "$tool_basename", so it can be a program name with args. 6474 set dummy $tool_basename; ac_word=$2 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6476 $as_echo_n "checking for $ac_word... " >&6; } 6477 if ${ac_cv_path_DIRNAME+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479 else 6480 case $DIRNAME in 6481 [\\/]* | ?:[\\/]*) 6482 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6483 ;; 6484 *) 6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6486 for as_dir in $PATH 6487 do 6488 IFS=$as_save_IFS 6489 test -z "$as_dir" && as_dir=. 6490 for ac_exec_ext in '' $ac_executable_extensions; do 6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6492 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6494 break 2 6495 fi 6496 done 6497 done 6498 IFS=$as_save_IFS 6499 6500 ;; 6501 esac 6502 fi 6503 DIRNAME=$ac_cv_path_DIRNAME 6504 if test -n "$DIRNAME"; then 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6506 $as_echo "$DIRNAME" >&6; } 6507 else 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6509 $as_echo "no" >&6; } 6510 fi 6511 6512 6513 if test "x$DIRNAME" = x; then 6514 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6515 fi 6516 else 6517 # Otherwise we believe it is a complete path. Use it as it is. 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6519 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6521 $as_echo_n "checking for DIRNAME... " >&6; } 6522 if test ! -x "$tool_specified"; then 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6524 $as_echo "not found" >&6; } 6525 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6526 fi 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6528 $as_echo "$tool_specified" >&6; } 6529 fi 6530 fi 6531 fi 6532 6533 6534 6535 if test "x$DIRNAME" = x; then 6536 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6537 fi 6538 6539 6540 6541 6542 6543 # Publish this variable in the help. 6544 6545 6546 if test "x$ECHO" = x; then 6547 # The variable is not set by user, try to locate tool using the code snippet 6548 for ac_prog in echo 6549 do 6550 # Extract the first word of "$ac_prog", so it can be a program name with args. 6551 set dummy $ac_prog; ac_word=$2 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6553 $as_echo_n "checking for $ac_word... " >&6; } 6554 if ${ac_cv_path_ECHO+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556 else 6557 case $ECHO in 6558 [\\/]* | ?:[\\/]*) 6559 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6560 ;; 6561 *) 6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563 for as_dir in $PATH 6564 do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6569 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573 done 6574 done 6575 IFS=$as_save_IFS 6576 6577 ;; 6578 esac 6579 fi 6580 ECHO=$ac_cv_path_ECHO 6581 if test -n "$ECHO"; then 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6583 $as_echo "$ECHO" >&6; } 6584 else 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6586 $as_echo "no" >&6; } 6587 fi 6588 6589 6590 test -n "$ECHO" && break 6591 done 6592 6593 else 6594 # The variable is set, but is it from the command line or the environment? 6595 6596 # Try to remove the string !ECHO! from our list. 6597 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6598 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6599 # If it failed, the variable was not from the command line. Ignore it, 6600 # but warn the user (except for BASH, which is always set by the calling BASH). 6601 if test "xECHO" != xBASH; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6603 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6604 fi 6605 # Try to locate tool using the code snippet 6606 for ac_prog in echo 6607 do 6608 # Extract the first word of "$ac_prog", so it can be a program name with args. 6609 set dummy $ac_prog; ac_word=$2 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6611 $as_echo_n "checking for $ac_word... " >&6; } 6612 if ${ac_cv_path_ECHO+:} false; then : 6613 $as_echo_n "(cached) " >&6 6614 else 6615 case $ECHO in 6616 [\\/]* | ?:[\\/]*) 6617 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6618 ;; 6619 *) 6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621 for as_dir in $PATH 6622 do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631 done 6632 done 6633 IFS=$as_save_IFS 6634 6635 ;; 6636 esac 6637 fi 6638 ECHO=$ac_cv_path_ECHO 6639 if test -n "$ECHO"; then 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6641 $as_echo "$ECHO" >&6; } 6642 else 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6644 $as_echo "no" >&6; } 6645 fi 6646 6647 6648 test -n "$ECHO" && break 6649 done 6650 6651 else 6652 # If it succeeded, then it was overridden by the user. We will use it 6653 # for the tool. 6654 6655 # First remove it from the list of overridden variables, so we can test 6656 # for unknown variables in the end. 6657 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6658 6659 # Check if the provided tool contains a complete path. 6660 tool_specified="$ECHO" 6661 tool_basename="${tool_specified##*/}" 6662 if test "x$tool_basename" = "x$tool_specified"; then 6663 # A command without a complete path is provided, search $PATH. 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6665 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6666 # Extract the first word of "$tool_basename", so it can be a program name with args. 6667 set dummy $tool_basename; ac_word=$2 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669 $as_echo_n "checking for $ac_word... " >&6; } 6670 if ${ac_cv_path_ECHO+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672 else 6673 case $ECHO in 6674 [\\/]* | ?:[\\/]*) 6675 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6676 ;; 6677 *) 6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679 for as_dir in $PATH 6680 do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6685 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689 done 6690 done 6691 IFS=$as_save_IFS 6692 6693 ;; 6694 esac 6695 fi 6696 ECHO=$ac_cv_path_ECHO 6697 if test -n "$ECHO"; then 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6699 $as_echo "$ECHO" >&6; } 6700 else 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6702 $as_echo "no" >&6; } 6703 fi 6704 6705 6706 if test "x$ECHO" = x; then 6707 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6708 fi 6709 else 6710 # Otherwise we believe it is a complete path. Use it as it is. 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6712 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6714 $as_echo_n "checking for ECHO... " >&6; } 6715 if test ! -x "$tool_specified"; then 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6717 $as_echo "not found" >&6; } 6718 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6719 fi 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6721 $as_echo "$tool_specified" >&6; } 6722 fi 6723 fi 6724 fi 6725 6726 6727 6728 if test "x$ECHO" = x; then 6729 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6730 fi 6731 6732 6733 6734 6735 6736 # Publish this variable in the help. 6737 6738 6739 if test "x$EXPR" = x; then 6740 # The variable is not set by user, try to locate tool using the code snippet 6741 for ac_prog in expr 6742 do 6743 # Extract the first word of "$ac_prog", so it can be a program name with args. 6744 set dummy $ac_prog; ac_word=$2 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6746 $as_echo_n "checking for $ac_word... " >&6; } 6747 if ${ac_cv_path_EXPR+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749 else 6750 case $EXPR in 6751 [\\/]* | ?:[\\/]*) 6752 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6753 ;; 6754 *) 6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756 for as_dir in $PATH 6757 do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766 done 6767 done 6768 IFS=$as_save_IFS 6769 6770 ;; 6771 esac 6772 fi 6773 EXPR=$ac_cv_path_EXPR 6774 if test -n "$EXPR"; then 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6776 $as_echo "$EXPR" >&6; } 6777 else 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6779 $as_echo "no" >&6; } 6780 fi 6781 6782 6783 test -n "$EXPR" && break 6784 done 6785 6786 else 6787 # The variable is set, but is it from the command line or the environment? 6788 6789 # Try to remove the string !EXPR! from our list. 6790 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6791 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6792 # If it failed, the variable was not from the command line. Ignore it, 6793 # but warn the user (except for BASH, which is always set by the calling BASH). 6794 if test "xEXPR" != xBASH; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6796 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6797 fi 6798 # Try to locate tool using the code snippet 6799 for ac_prog in expr 6800 do 6801 # Extract the first word of "$ac_prog", so it can be a program name with args. 6802 set dummy $ac_prog; ac_word=$2 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6804 $as_echo_n "checking for $ac_word... " >&6; } 6805 if ${ac_cv_path_EXPR+:} false; then : 6806 $as_echo_n "(cached) " >&6 6807 else 6808 case $EXPR in 6809 [\\/]* | ?:[\\/]*) 6810 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6811 ;; 6812 *) 6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814 for as_dir in $PATH 6815 do 6816 IFS=$as_save_IFS 6817 test -z "$as_dir" && as_dir=. 6818 for ac_exec_ext in '' $ac_executable_extensions; do 6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6820 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6822 break 2 6823 fi 6824 done 6825 done 6826 IFS=$as_save_IFS 6827 6828 ;; 6829 esac 6830 fi 6831 EXPR=$ac_cv_path_EXPR 6832 if test -n "$EXPR"; then 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6834 $as_echo "$EXPR" >&6; } 6835 else 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6837 $as_echo "no" >&6; } 6838 fi 6839 6840 6841 test -n "$EXPR" && break 6842 done 6843 6844 else 6845 # If it succeeded, then it was overridden by the user. We will use it 6846 # for the tool. 6847 6848 # First remove it from the list of overridden variables, so we can test 6849 # for unknown variables in the end. 6850 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6851 6852 # Check if the provided tool contains a complete path. 6853 tool_specified="$EXPR" 6854 tool_basename="${tool_specified##*/}" 6855 if test "x$tool_basename" = "x$tool_specified"; then 6856 # A command without a complete path is provided, search $PATH. 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6858 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6859 # Extract the first word of "$tool_basename", so it can be a program name with args. 6860 set dummy $tool_basename; ac_word=$2 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6862 $as_echo_n "checking for $ac_word... " >&6; } 6863 if ${ac_cv_path_EXPR+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865 else 6866 case $EXPR in 6867 [\\/]* | ?:[\\/]*) 6868 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6869 ;; 6870 *) 6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6872 for as_dir in $PATH 6873 do 6874 IFS=$as_save_IFS 6875 test -z "$as_dir" && as_dir=. 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6878 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882 done 6883 done 6884 IFS=$as_save_IFS 6885 6886 ;; 6887 esac 6888 fi 6889 EXPR=$ac_cv_path_EXPR 6890 if test -n "$EXPR"; then 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6892 $as_echo "$EXPR" >&6; } 6893 else 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6895 $as_echo "no" >&6; } 6896 fi 6897 6898 6899 if test "x$EXPR" = x; then 6900 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6901 fi 6902 else 6903 # Otherwise we believe it is a complete path. Use it as it is. 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6905 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6907 $as_echo_n "checking for EXPR... " >&6; } 6908 if test ! -x "$tool_specified"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6910 $as_echo "not found" >&6; } 6911 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6912 fi 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6914 $as_echo "$tool_specified" >&6; } 6915 fi 6916 fi 6917 fi 6918 6919 6920 6921 if test "x$EXPR" = x; then 6922 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6923 fi 6924 6925 6926 6927 6928 6929 # Publish this variable in the help. 6930 6931 6932 if test "x$FILE" = x; then 6933 # The variable is not set by user, try to locate tool using the code snippet 6934 for ac_prog in file 6935 do 6936 # Extract the first word of "$ac_prog", so it can be a program name with args. 6937 set dummy $ac_prog; ac_word=$2 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939 $as_echo_n "checking for $ac_word... " >&6; } 6940 if ${ac_cv_path_FILE+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942 else 6943 case $FILE in 6944 [\\/]* | ?:[\\/]*) 6945 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6946 ;; 6947 *) 6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949 for as_dir in $PATH 6950 do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6955 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959 done 6960 done 6961 IFS=$as_save_IFS 6962 6963 ;; 6964 esac 6965 fi 6966 FILE=$ac_cv_path_FILE 6967 if test -n "$FILE"; then 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6969 $as_echo "$FILE" >&6; } 6970 else 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6972 $as_echo "no" >&6; } 6973 fi 6974 6975 6976 test -n "$FILE" && break 6977 done 6978 6979 else 6980 # The variable is set, but is it from the command line or the environment? 6981 6982 # Try to remove the string !FILE! from our list. 6983 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6984 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6985 # If it failed, the variable was not from the command line. Ignore it, 6986 # but warn the user (except for BASH, which is always set by the calling BASH). 6987 if test "xFILE" != xBASH; then 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6989 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6990 fi 6991 # Try to locate tool using the code snippet 6992 for ac_prog in file 6993 do 6994 # Extract the first word of "$ac_prog", so it can be a program name with args. 6995 set dummy $ac_prog; ac_word=$2 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6997 $as_echo_n "checking for $ac_word... " >&6; } 6998 if ${ac_cv_path_FILE+:} false; then : 6999 $as_echo_n "(cached) " >&6 7000 else 7001 case $FILE in 7002 [\\/]* | ?:[\\/]*) 7003 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7004 ;; 7005 *) 7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7007 for as_dir in $PATH 7008 do 7009 IFS=$as_save_IFS 7010 test -z "$as_dir" && as_dir=. 7011 for ac_exec_ext in '' $ac_executable_extensions; do 7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7013 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7015 break 2 7016 fi 7017 done 7018 done 7019 IFS=$as_save_IFS 7020 7021 ;; 7022 esac 7023 fi 7024 FILE=$ac_cv_path_FILE 7025 if test -n "$FILE"; then 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7027 $as_echo "$FILE" >&6; } 7028 else 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7030 $as_echo "no" >&6; } 7031 fi 7032 7033 7034 test -n "$FILE" && break 7035 done 7036 7037 else 7038 # If it succeeded, then it was overridden by the user. We will use it 7039 # for the tool. 7040 7041 # First remove it from the list of overridden variables, so we can test 7042 # for unknown variables in the end. 7043 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7044 7045 # Check if the provided tool contains a complete path. 7046 tool_specified="$FILE" 7047 tool_basename="${tool_specified##*/}" 7048 if test "x$tool_basename" = "x$tool_specified"; then 7049 # A command without a complete path is provided, search $PATH. 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7051 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7052 # Extract the first word of "$tool_basename", so it can be a program name with args. 7053 set dummy $tool_basename; ac_word=$2 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7055 $as_echo_n "checking for $ac_word... " >&6; } 7056 if ${ac_cv_path_FILE+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058 else 7059 case $FILE in 7060 [\\/]* | ?:[\\/]*) 7061 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7062 ;; 7063 *) 7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7065 for as_dir in $PATH 7066 do 7067 IFS=$as_save_IFS 7068 test -z "$as_dir" && as_dir=. 7069 for ac_exec_ext in '' $ac_executable_extensions; do 7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7071 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7073 break 2 7074 fi 7075 done 7076 done 7077 IFS=$as_save_IFS 7078 7079 ;; 7080 esac 7081 fi 7082 FILE=$ac_cv_path_FILE 7083 if test -n "$FILE"; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7085 $as_echo "$FILE" >&6; } 7086 else 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7088 $as_echo "no" >&6; } 7089 fi 7090 7091 7092 if test "x$FILE" = x; then 7093 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7094 fi 7095 else 7096 # Otherwise we believe it is a complete path. Use it as it is. 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7098 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7100 $as_echo_n "checking for FILE... " >&6; } 7101 if test ! -x "$tool_specified"; then 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7103 $as_echo "not found" >&6; } 7104 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7105 fi 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7107 $as_echo "$tool_specified" >&6; } 7108 fi 7109 fi 7110 fi 7111 7112 7113 7114 if test "x$FILE" = x; then 7115 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7116 fi 7117 7118 7119 7120 7121 7122 # Publish this variable in the help. 7123 7124 7125 if test "x$FIND" = x; then 7126 # The variable is not set by user, try to locate tool using the code snippet 7127 for ac_prog in find 7128 do 7129 # Extract the first word of "$ac_prog", so it can be a program name with args. 7130 set dummy $ac_prog; ac_word=$2 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7132 $as_echo_n "checking for $ac_word... " >&6; } 7133 if ${ac_cv_path_FIND+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135 else 7136 case $FIND in 7137 [\\/]* | ?:[\\/]*) 7138 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7139 ;; 7140 *) 7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7142 for as_dir in $PATH 7143 do 7144 IFS=$as_save_IFS 7145 test -z "$as_dir" && as_dir=. 7146 for ac_exec_ext in '' $ac_executable_extensions; do 7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7148 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7150 break 2 7151 fi 7152 done 7153 done 7154 IFS=$as_save_IFS 7155 7156 ;; 7157 esac 7158 fi 7159 FIND=$ac_cv_path_FIND 7160 if test -n "$FIND"; then 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7162 $as_echo "$FIND" >&6; } 7163 else 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7165 $as_echo "no" >&6; } 7166 fi 7167 7168 7169 test -n "$FIND" && break 7170 done 7171 7172 else 7173 # The variable is set, but is it from the command line or the environment? 7174 7175 # Try to remove the string !FIND! from our list. 7176 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7177 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7178 # If it failed, the variable was not from the command line. Ignore it, 7179 # but warn the user (except for BASH, which is always set by the calling BASH). 7180 if test "xFIND" != xBASH; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7182 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7183 fi 7184 # Try to locate tool using the code snippet 7185 for ac_prog in find 7186 do 7187 # Extract the first word of "$ac_prog", so it can be a program name with args. 7188 set dummy $ac_prog; ac_word=$2 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7190 $as_echo_n "checking for $ac_word... " >&6; } 7191 if ${ac_cv_path_FIND+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193 else 7194 case $FIND in 7195 [\\/]* | ?:[\\/]*) 7196 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7197 ;; 7198 *) 7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7200 for as_dir in $PATH 7201 do 7202 IFS=$as_save_IFS 7203 test -z "$as_dir" && as_dir=. 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7206 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210 done 7211 done 7212 IFS=$as_save_IFS 7213 7214 ;; 7215 esac 7216 fi 7217 FIND=$ac_cv_path_FIND 7218 if test -n "$FIND"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7220 $as_echo "$FIND" >&6; } 7221 else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223 $as_echo "no" >&6; } 7224 fi 7225 7226 7227 test -n "$FIND" && break 7228 done 7229 7230 else 7231 # If it succeeded, then it was overridden by the user. We will use it 7232 # for the tool. 7233 7234 # First remove it from the list of overridden variables, so we can test 7235 # for unknown variables in the end. 7236 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7237 7238 # Check if the provided tool contains a complete path. 7239 tool_specified="$FIND" 7240 tool_basename="${tool_specified##*/}" 7241 if test "x$tool_basename" = "x$tool_specified"; then 7242 # A command without a complete path is provided, search $PATH. 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7244 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7245 # Extract the first word of "$tool_basename", so it can be a program name with args. 7246 set dummy $tool_basename; ac_word=$2 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248 $as_echo_n "checking for $ac_word... " >&6; } 7249 if ${ac_cv_path_FIND+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251 else 7252 case $FIND in 7253 [\\/]* | ?:[\\/]*) 7254 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7255 ;; 7256 *) 7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258 for as_dir in $PATH 7259 do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7264 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268 done 7269 done 7270 IFS=$as_save_IFS 7271 7272 ;; 7273 esac 7274 fi 7275 FIND=$ac_cv_path_FIND 7276 if test -n "$FIND"; then 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7278 $as_echo "$FIND" >&6; } 7279 else 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7281 $as_echo "no" >&6; } 7282 fi 7283 7284 7285 if test "x$FIND" = x; then 7286 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7287 fi 7288 else 7289 # Otherwise we believe it is a complete path. Use it as it is. 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7291 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7293 $as_echo_n "checking for FIND... " >&6; } 7294 if test ! -x "$tool_specified"; then 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7296 $as_echo "not found" >&6; } 7297 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7298 fi 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7300 $as_echo "$tool_specified" >&6; } 7301 fi 7302 fi 7303 fi 7304 7305 7306 7307 if test "x$FIND" = x; then 7308 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7309 fi 7310 7311 7312 7313 7314 7315 # Publish this variable in the help. 7316 7317 7318 if test "x$HEAD" = x; then 7319 # The variable is not set by user, try to locate tool using the code snippet 7320 for ac_prog in head 7321 do 7322 # Extract the first word of "$ac_prog", so it can be a program name with args. 7323 set dummy $ac_prog; ac_word=$2 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7325 $as_echo_n "checking for $ac_word... " >&6; } 7326 if ${ac_cv_path_HEAD+:} false; then : 7327 $as_echo_n "(cached) " >&6 7328 else 7329 case $HEAD in 7330 [\\/]* | ?:[\\/]*) 7331 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7332 ;; 7333 *) 7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335 for as_dir in $PATH 7336 do 7337 IFS=$as_save_IFS 7338 test -z "$as_dir" && as_dir=. 7339 for ac_exec_ext in '' $ac_executable_extensions; do 7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7341 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7343 break 2 7344 fi 7345 done 7346 done 7347 IFS=$as_save_IFS 7348 7349 ;; 7350 esac 7351 fi 7352 HEAD=$ac_cv_path_HEAD 7353 if test -n "$HEAD"; then 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7355 $as_echo "$HEAD" >&6; } 7356 else 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7358 $as_echo "no" >&6; } 7359 fi 7360 7361 7362 test -n "$HEAD" && break 7363 done 7364 7365 else 7366 # The variable is set, but is it from the command line or the environment? 7367 7368 # Try to remove the string !HEAD! from our list. 7369 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7370 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7371 # If it failed, the variable was not from the command line. Ignore it, 7372 # but warn the user (except for BASH, which is always set by the calling BASH). 7373 if test "xHEAD" != xBASH; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7375 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7376 fi 7377 # Try to locate tool using the code snippet 7378 for ac_prog in head 7379 do 7380 # Extract the first word of "$ac_prog", so it can be a program name with args. 7381 set dummy $ac_prog; ac_word=$2 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7383 $as_echo_n "checking for $ac_word... " >&6; } 7384 if ${ac_cv_path_HEAD+:} false; then : 7385 $as_echo_n "(cached) " >&6 7386 else 7387 case $HEAD in 7388 [\\/]* | ?:[\\/]*) 7389 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7390 ;; 7391 *) 7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7393 for as_dir in $PATH 7394 do 7395 IFS=$as_save_IFS 7396 test -z "$as_dir" && as_dir=. 7397 for ac_exec_ext in '' $ac_executable_extensions; do 7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7399 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7401 break 2 7402 fi 7403 done 7404 done 7405 IFS=$as_save_IFS 7406 7407 ;; 7408 esac 7409 fi 7410 HEAD=$ac_cv_path_HEAD 7411 if test -n "$HEAD"; then 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7413 $as_echo "$HEAD" >&6; } 7414 else 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7416 $as_echo "no" >&6; } 7417 fi 7418 7419 7420 test -n "$HEAD" && break 7421 done 7422 7423 else 7424 # If it succeeded, then it was overridden by the user. We will use it 7425 # for the tool. 7426 7427 # First remove it from the list of overridden variables, so we can test 7428 # for unknown variables in the end. 7429 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7430 7431 # Check if the provided tool contains a complete path. 7432 tool_specified="$HEAD" 7433 tool_basename="${tool_specified##*/}" 7434 if test "x$tool_basename" = "x$tool_specified"; then 7435 # A command without a complete path is provided, search $PATH. 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7437 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7438 # Extract the first word of "$tool_basename", so it can be a program name with args. 7439 set dummy $tool_basename; ac_word=$2 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7441 $as_echo_n "checking for $ac_word... " >&6; } 7442 if ${ac_cv_path_HEAD+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444 else 7445 case $HEAD in 7446 [\\/]* | ?:[\\/]*) 7447 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7448 ;; 7449 *) 7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7451 for as_dir in $PATH 7452 do 7453 IFS=$as_save_IFS 7454 test -z "$as_dir" && as_dir=. 7455 for ac_exec_ext in '' $ac_executable_extensions; do 7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7457 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7459 break 2 7460 fi 7461 done 7462 done 7463 IFS=$as_save_IFS 7464 7465 ;; 7466 esac 7467 fi 7468 HEAD=$ac_cv_path_HEAD 7469 if test -n "$HEAD"; then 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7471 $as_echo "$HEAD" >&6; } 7472 else 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7474 $as_echo "no" >&6; } 7475 fi 7476 7477 7478 if test "x$HEAD" = x; then 7479 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7480 fi 7481 else 7482 # Otherwise we believe it is a complete path. Use it as it is. 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7484 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7486 $as_echo_n "checking for HEAD... " >&6; } 7487 if test ! -x "$tool_specified"; then 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7489 $as_echo "not found" >&6; } 7490 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7491 fi 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7493 $as_echo "$tool_specified" >&6; } 7494 fi 7495 fi 7496 fi 7497 7498 7499 7500 if test "x$HEAD" = x; then 7501 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7502 fi 7503 7504 7505 7506 7507 7508 # Publish this variable in the help. 7509 7510 7511 if test "x$LN" = x; then 7512 # The variable is not set by user, try to locate tool using the code snippet 7513 for ac_prog in ln 7514 do 7515 # Extract the first word of "$ac_prog", so it can be a program name with args. 7516 set dummy $ac_prog; ac_word=$2 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7518 $as_echo_n "checking for $ac_word... " >&6; } 7519 if ${ac_cv_path_LN+:} false; then : 7520 $as_echo_n "(cached) " >&6 7521 else 7522 case $LN in 7523 [\\/]* | ?:[\\/]*) 7524 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7525 ;; 7526 *) 7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7528 for as_dir in $PATH 7529 do 7530 IFS=$as_save_IFS 7531 test -z "$as_dir" && as_dir=. 7532 for ac_exec_ext in '' $ac_executable_extensions; do 7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7534 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7536 break 2 7537 fi 7538 done 7539 done 7540 IFS=$as_save_IFS 7541 7542 ;; 7543 esac 7544 fi 7545 LN=$ac_cv_path_LN 7546 if test -n "$LN"; then 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7548 $as_echo "$LN" >&6; } 7549 else 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7551 $as_echo "no" >&6; } 7552 fi 7553 7554 7555 test -n "$LN" && break 7556 done 7557 7558 else 7559 # The variable is set, but is it from the command line or the environment? 7560 7561 # Try to remove the string !LN! from our list. 7562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7564 # If it failed, the variable was not from the command line. Ignore it, 7565 # but warn the user (except for BASH, which is always set by the calling BASH). 7566 if test "xLN" != xBASH; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7568 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7569 fi 7570 # Try to locate tool using the code snippet 7571 for ac_prog in ln 7572 do 7573 # Extract the first word of "$ac_prog", so it can be a program name with args. 7574 set dummy $ac_prog; ac_word=$2 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7576 $as_echo_n "checking for $ac_word... " >&6; } 7577 if ${ac_cv_path_LN+:} false; then : 7578 $as_echo_n "(cached) " >&6 7579 else 7580 case $LN in 7581 [\\/]* | ?:[\\/]*) 7582 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7583 ;; 7584 *) 7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7586 for as_dir in $PATH 7587 do 7588 IFS=$as_save_IFS 7589 test -z "$as_dir" && as_dir=. 7590 for ac_exec_ext in '' $ac_executable_extensions; do 7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7592 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7594 break 2 7595 fi 7596 done 7597 done 7598 IFS=$as_save_IFS 7599 7600 ;; 7601 esac 7602 fi 7603 LN=$ac_cv_path_LN 7604 if test -n "$LN"; then 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7606 $as_echo "$LN" >&6; } 7607 else 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7609 $as_echo "no" >&6; } 7610 fi 7611 7612 7613 test -n "$LN" && break 7614 done 7615 7616 else 7617 # If it succeeded, then it was overridden by the user. We will use it 7618 # for the tool. 7619 7620 # First remove it from the list of overridden variables, so we can test 7621 # for unknown variables in the end. 7622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7623 7624 # Check if the provided tool contains a complete path. 7625 tool_specified="$LN" 7626 tool_basename="${tool_specified##*/}" 7627 if test "x$tool_basename" = "x$tool_specified"; then 7628 # A command without a complete path is provided, search $PATH. 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7630 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7631 # Extract the first word of "$tool_basename", so it can be a program name with args. 7632 set dummy $tool_basename; ac_word=$2 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7634 $as_echo_n "checking for $ac_word... " >&6; } 7635 if ${ac_cv_path_LN+:} false; then : 7636 $as_echo_n "(cached) " >&6 7637 else 7638 case $LN in 7639 [\\/]* | ?:[\\/]*) 7640 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7641 ;; 7642 *) 7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7644 for as_dir in $PATH 7645 do 7646 IFS=$as_save_IFS 7647 test -z "$as_dir" && as_dir=. 7648 for ac_exec_ext in '' $ac_executable_extensions; do 7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7650 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7652 break 2 7653 fi 7654 done 7655 done 7656 IFS=$as_save_IFS 7657 7658 ;; 7659 esac 7660 fi 7661 LN=$ac_cv_path_LN 7662 if test -n "$LN"; then 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7664 $as_echo "$LN" >&6; } 7665 else 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7667 $as_echo "no" >&6; } 7668 fi 7669 7670 7671 if test "x$LN" = x; then 7672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7673 fi 7674 else 7675 # Otherwise we believe it is a complete path. Use it as it is. 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7677 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7679 $as_echo_n "checking for LN... " >&6; } 7680 if test ! -x "$tool_specified"; then 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7682 $as_echo "not found" >&6; } 7683 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7684 fi 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7686 $as_echo "$tool_specified" >&6; } 7687 fi 7688 fi 7689 fi 7690 7691 7692 7693 if test "x$LN" = x; then 7694 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7695 fi 7696 7697 7698 7699 7700 7701 # Publish this variable in the help. 7702 7703 7704 if test "x$LS" = x; then 7705 # The variable is not set by user, try to locate tool using the code snippet 7706 for ac_prog in ls 7707 do 7708 # Extract the first word of "$ac_prog", so it can be a program name with args. 7709 set dummy $ac_prog; ac_word=$2 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7711 $as_echo_n "checking for $ac_word... " >&6; } 7712 if ${ac_cv_path_LS+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714 else 7715 case $LS in 7716 [\\/]* | ?:[\\/]*) 7717 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7718 ;; 7719 *) 7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7721 for as_dir in $PATH 7722 do 7723 IFS=$as_save_IFS 7724 test -z "$as_dir" && as_dir=. 7725 for ac_exec_ext in '' $ac_executable_extensions; do 7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7727 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7729 break 2 7730 fi 7731 done 7732 done 7733 IFS=$as_save_IFS 7734 7735 ;; 7736 esac 7737 fi 7738 LS=$ac_cv_path_LS 7739 if test -n "$LS"; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7741 $as_echo "$LS" >&6; } 7742 else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7744 $as_echo "no" >&6; } 7745 fi 7746 7747 7748 test -n "$LS" && break 7749 done 7750 7751 else 7752 # The variable is set, but is it from the command line or the environment? 7753 7754 # Try to remove the string !LS! from our list. 7755 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7756 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7757 # If it failed, the variable was not from the command line. Ignore it, 7758 # but warn the user (except for BASH, which is always set by the calling BASH). 7759 if test "xLS" != xBASH; then 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7761 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7762 fi 7763 # Try to locate tool using the code snippet 7764 for ac_prog in ls 7765 do 7766 # Extract the first word of "$ac_prog", so it can be a program name with args. 7767 set dummy $ac_prog; ac_word=$2 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7769 $as_echo_n "checking for $ac_word... " >&6; } 7770 if ${ac_cv_path_LS+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772 else 7773 case $LS in 7774 [\\/]* | ?:[\\/]*) 7775 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7776 ;; 7777 *) 7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7779 for as_dir in $PATH 7780 do 7781 IFS=$as_save_IFS 7782 test -z "$as_dir" && as_dir=. 7783 for ac_exec_ext in '' $ac_executable_extensions; do 7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7785 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7787 break 2 7788 fi 7789 done 7790 done 7791 IFS=$as_save_IFS 7792 7793 ;; 7794 esac 7795 fi 7796 LS=$ac_cv_path_LS 7797 if test -n "$LS"; then 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7799 $as_echo "$LS" >&6; } 7800 else 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7802 $as_echo "no" >&6; } 7803 fi 7804 7805 7806 test -n "$LS" && break 7807 done 7808 7809 else 7810 # If it succeeded, then it was overridden by the user. We will use it 7811 # for the tool. 7812 7813 # First remove it from the list of overridden variables, so we can test 7814 # for unknown variables in the end. 7815 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7816 7817 # Check if the provided tool contains a complete path. 7818 tool_specified="$LS" 7819 tool_basename="${tool_specified##*/}" 7820 if test "x$tool_basename" = "x$tool_specified"; then 7821 # A command without a complete path is provided, search $PATH. 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7823 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7824 # Extract the first word of "$tool_basename", so it can be a program name with args. 7825 set dummy $tool_basename; ac_word=$2 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7827 $as_echo_n "checking for $ac_word... " >&6; } 7828 if ${ac_cv_path_LS+:} false; then : 7829 $as_echo_n "(cached) " >&6 7830 else 7831 case $LS in 7832 [\\/]* | ?:[\\/]*) 7833 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7834 ;; 7835 *) 7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7837 for as_dir in $PATH 7838 do 7839 IFS=$as_save_IFS 7840 test -z "$as_dir" && as_dir=. 7841 for ac_exec_ext in '' $ac_executable_extensions; do 7842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7843 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7845 break 2 7846 fi 7847 done 7848 done 7849 IFS=$as_save_IFS 7850 7851 ;; 7852 esac 7853 fi 7854 LS=$ac_cv_path_LS 7855 if test -n "$LS"; then 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7857 $as_echo "$LS" >&6; } 7858 else 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7860 $as_echo "no" >&6; } 7861 fi 7862 7863 7864 if test "x$LS" = x; then 7865 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7866 fi 7867 else 7868 # Otherwise we believe it is a complete path. Use it as it is. 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7870 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7872 $as_echo_n "checking for LS... " >&6; } 7873 if test ! -x "$tool_specified"; then 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7875 $as_echo "not found" >&6; } 7876 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7877 fi 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7879 $as_echo "$tool_specified" >&6; } 7880 fi 7881 fi 7882 fi 7883 7884 7885 7886 if test "x$LS" = x; then 7887 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7888 fi 7889 7890 7891 7892 7893 7894 # Publish this variable in the help. 7895 7896 7897 if test "x$MKDIR" = x; then 7898 # The variable is not set by user, try to locate tool using the code snippet 7899 for ac_prog in mkdir 7900 do 7901 # Extract the first word of "$ac_prog", so it can be a program name with args. 7902 set dummy $ac_prog; ac_word=$2 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7904 $as_echo_n "checking for $ac_word... " >&6; } 7905 if ${ac_cv_path_MKDIR+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907 else 7908 case $MKDIR in 7909 [\\/]* | ?:[\\/]*) 7910 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7911 ;; 7912 *) 7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7914 for as_dir in $PATH 7915 do 7916 IFS=$as_save_IFS 7917 test -z "$as_dir" && as_dir=. 7918 for ac_exec_ext in '' $ac_executable_extensions; do 7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7920 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7922 break 2 7923 fi 7924 done 7925 done 7926 IFS=$as_save_IFS 7927 7928 ;; 7929 esac 7930 fi 7931 MKDIR=$ac_cv_path_MKDIR 7932 if test -n "$MKDIR"; then 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7934 $as_echo "$MKDIR" >&6; } 7935 else 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7937 $as_echo "no" >&6; } 7938 fi 7939 7940 7941 test -n "$MKDIR" && break 7942 done 7943 7944 else 7945 # The variable is set, but is it from the command line or the environment? 7946 7947 # Try to remove the string !MKDIR! from our list. 7948 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7949 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7950 # If it failed, the variable was not from the command line. Ignore it, 7951 # but warn the user (except for BASH, which is always set by the calling BASH). 7952 if test "xMKDIR" != xBASH; then 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7954 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7955 fi 7956 # Try to locate tool using the code snippet 7957 for ac_prog in mkdir 7958 do 7959 # Extract the first word of "$ac_prog", so it can be a program name with args. 7960 set dummy $ac_prog; ac_word=$2 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7962 $as_echo_n "checking for $ac_word... " >&6; } 7963 if ${ac_cv_path_MKDIR+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965 else 7966 case $MKDIR in 7967 [\\/]* | ?:[\\/]*) 7968 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7969 ;; 7970 *) 7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7972 for as_dir in $PATH 7973 do 7974 IFS=$as_save_IFS 7975 test -z "$as_dir" && as_dir=. 7976 for ac_exec_ext in '' $ac_executable_extensions; do 7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7978 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7980 break 2 7981 fi 7982 done 7983 done 7984 IFS=$as_save_IFS 7985 7986 ;; 7987 esac 7988 fi 7989 MKDIR=$ac_cv_path_MKDIR 7990 if test -n "$MKDIR"; then 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7992 $as_echo "$MKDIR" >&6; } 7993 else 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7995 $as_echo "no" >&6; } 7996 fi 7997 7998 7999 test -n "$MKDIR" && break 8000 done 8001 8002 else 8003 # If it succeeded, then it was overridden by the user. We will use it 8004 # for the tool. 8005 8006 # First remove it from the list of overridden variables, so we can test 8007 # for unknown variables in the end. 8008 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8009 8010 # Check if the provided tool contains a complete path. 8011 tool_specified="$MKDIR" 8012 tool_basename="${tool_specified##*/}" 8013 if test "x$tool_basename" = "x$tool_specified"; then 8014 # A command without a complete path is provided, search $PATH. 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8016 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8017 # Extract the first word of "$tool_basename", so it can be a program name with args. 8018 set dummy $tool_basename; ac_word=$2 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8020 $as_echo_n "checking for $ac_word... " >&6; } 8021 if ${ac_cv_path_MKDIR+:} false; then : 8022 $as_echo_n "(cached) " >&6 8023 else 8024 case $MKDIR in 8025 [\\/]* | ?:[\\/]*) 8026 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8027 ;; 8028 *) 8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8030 for as_dir in $PATH 8031 do 8032 IFS=$as_save_IFS 8033 test -z "$as_dir" && as_dir=. 8034 for ac_exec_ext in '' $ac_executable_extensions; do 8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8036 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8038 break 2 8039 fi 8040 done 8041 done 8042 IFS=$as_save_IFS 8043 8044 ;; 8045 esac 8046 fi 8047 MKDIR=$ac_cv_path_MKDIR 8048 if test -n "$MKDIR"; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8050 $as_echo "$MKDIR" >&6; } 8051 else 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8053 $as_echo "no" >&6; } 8054 fi 8055 8056 8057 if test "x$MKDIR" = x; then 8058 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8059 fi 8060 else 8061 # Otherwise we believe it is a complete path. Use it as it is. 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8063 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8065 $as_echo_n "checking for MKDIR... " >&6; } 8066 if test ! -x "$tool_specified"; then 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8068 $as_echo "not found" >&6; } 8069 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8070 fi 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8072 $as_echo "$tool_specified" >&6; } 8073 fi 8074 fi 8075 fi 8076 8077 8078 8079 if test "x$MKDIR" = x; then 8080 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8081 fi 8082 8083 8084 8085 8086 8087 # Publish this variable in the help. 8088 8089 8090 if test "x$MKTEMP" = x; then 8091 # The variable is not set by user, try to locate tool using the code snippet 8092 for ac_prog in mktemp 8093 do 8094 # Extract the first word of "$ac_prog", so it can be a program name with args. 8095 set dummy $ac_prog; ac_word=$2 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8097 $as_echo_n "checking for $ac_word... " >&6; } 8098 if ${ac_cv_path_MKTEMP+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100 else 8101 case $MKTEMP in 8102 [\\/]* | ?:[\\/]*) 8103 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8104 ;; 8105 *) 8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8107 for as_dir in $PATH 8108 do 8109 IFS=$as_save_IFS 8110 test -z "$as_dir" && as_dir=. 8111 for ac_exec_ext in '' $ac_executable_extensions; do 8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8113 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8115 break 2 8116 fi 8117 done 8118 done 8119 IFS=$as_save_IFS 8120 8121 ;; 8122 esac 8123 fi 8124 MKTEMP=$ac_cv_path_MKTEMP 8125 if test -n "$MKTEMP"; then 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8127 $as_echo "$MKTEMP" >&6; } 8128 else 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8130 $as_echo "no" >&6; } 8131 fi 8132 8133 8134 test -n "$MKTEMP" && break 8135 done 8136 8137 else 8138 # The variable is set, but is it from the command line or the environment? 8139 8140 # Try to remove the string !MKTEMP! from our list. 8141 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8142 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8143 # If it failed, the variable was not from the command line. Ignore it, 8144 # but warn the user (except for BASH, which is always set by the calling BASH). 8145 if test "xMKTEMP" != xBASH; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8147 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8148 fi 8149 # Try to locate tool using the code snippet 8150 for ac_prog in mktemp 8151 do 8152 # Extract the first word of "$ac_prog", so it can be a program name with args. 8153 set dummy $ac_prog; ac_word=$2 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8155 $as_echo_n "checking for $ac_word... " >&6; } 8156 if ${ac_cv_path_MKTEMP+:} false; then : 8157 $as_echo_n "(cached) " >&6 8158 else 8159 case $MKTEMP in 8160 [\\/]* | ?:[\\/]*) 8161 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8162 ;; 8163 *) 8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8165 for as_dir in $PATH 8166 do 8167 IFS=$as_save_IFS 8168 test -z "$as_dir" && as_dir=. 8169 for ac_exec_ext in '' $ac_executable_extensions; do 8170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8171 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8173 break 2 8174 fi 8175 done 8176 done 8177 IFS=$as_save_IFS 8178 8179 ;; 8180 esac 8181 fi 8182 MKTEMP=$ac_cv_path_MKTEMP 8183 if test -n "$MKTEMP"; then 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8185 $as_echo "$MKTEMP" >&6; } 8186 else 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8188 $as_echo "no" >&6; } 8189 fi 8190 8191 8192 test -n "$MKTEMP" && break 8193 done 8194 8195 else 8196 # If it succeeded, then it was overridden by the user. We will use it 8197 # for the tool. 8198 8199 # First remove it from the list of overridden variables, so we can test 8200 # for unknown variables in the end. 8201 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8202 8203 # Check if the provided tool contains a complete path. 8204 tool_specified="$MKTEMP" 8205 tool_basename="${tool_specified##*/}" 8206 if test "x$tool_basename" = "x$tool_specified"; then 8207 # A command without a complete path is provided, search $PATH. 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8209 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8210 # Extract the first word of "$tool_basename", so it can be a program name with args. 8211 set dummy $tool_basename; ac_word=$2 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8213 $as_echo_n "checking for $ac_word... " >&6; } 8214 if ${ac_cv_path_MKTEMP+:} false; then : 8215 $as_echo_n "(cached) " >&6 8216 else 8217 case $MKTEMP in 8218 [\\/]* | ?:[\\/]*) 8219 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8220 ;; 8221 *) 8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8223 for as_dir in $PATH 8224 do 8225 IFS=$as_save_IFS 8226 test -z "$as_dir" && as_dir=. 8227 for ac_exec_ext in '' $ac_executable_extensions; do 8228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8229 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8231 break 2 8232 fi 8233 done 8234 done 8235 IFS=$as_save_IFS 8236 8237 ;; 8238 esac 8239 fi 8240 MKTEMP=$ac_cv_path_MKTEMP 8241 if test -n "$MKTEMP"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8243 $as_echo "$MKTEMP" >&6; } 8244 else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246 $as_echo "no" >&6; } 8247 fi 8248 8249 8250 if test "x$MKTEMP" = x; then 8251 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8252 fi 8253 else 8254 # Otherwise we believe it is a complete path. Use it as it is. 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8256 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8258 $as_echo_n "checking for MKTEMP... " >&6; } 8259 if test ! -x "$tool_specified"; then 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8261 $as_echo "not found" >&6; } 8262 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8263 fi 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8265 $as_echo "$tool_specified" >&6; } 8266 fi 8267 fi 8268 fi 8269 8270 8271 8272 if test "x$MKTEMP" = x; then 8273 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8274 fi 8275 8276 8277 8278 8279 8280 # Publish this variable in the help. 8281 8282 8283 if test "x$MV" = x; then 8284 # The variable is not set by user, try to locate tool using the code snippet 8285 for ac_prog in mv 8286 do 8287 # Extract the first word of "$ac_prog", so it can be a program name with args. 8288 set dummy $ac_prog; ac_word=$2 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8290 $as_echo_n "checking for $ac_word... " >&6; } 8291 if ${ac_cv_path_MV+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293 else 8294 case $MV in 8295 [\\/]* | ?:[\\/]*) 8296 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8297 ;; 8298 *) 8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8300 for as_dir in $PATH 8301 do 8302 IFS=$as_save_IFS 8303 test -z "$as_dir" && as_dir=. 8304 for ac_exec_ext in '' $ac_executable_extensions; do 8305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8306 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8308 break 2 8309 fi 8310 done 8311 done 8312 IFS=$as_save_IFS 8313 8314 ;; 8315 esac 8316 fi 8317 MV=$ac_cv_path_MV 8318 if test -n "$MV"; then 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8320 $as_echo "$MV" >&6; } 8321 else 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8323 $as_echo "no" >&6; } 8324 fi 8325 8326 8327 test -n "$MV" && break 8328 done 8329 8330 else 8331 # The variable is set, but is it from the command line or the environment? 8332 8333 # Try to remove the string !MV! from our list. 8334 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8335 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8336 # If it failed, the variable was not from the command line. Ignore it, 8337 # but warn the user (except for BASH, which is always set by the calling BASH). 8338 if test "xMV" != xBASH; then 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8340 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8341 fi 8342 # Try to locate tool using the code snippet 8343 for ac_prog in mv 8344 do 8345 # Extract the first word of "$ac_prog", so it can be a program name with args. 8346 set dummy $ac_prog; ac_word=$2 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8348 $as_echo_n "checking for $ac_word... " >&6; } 8349 if ${ac_cv_path_MV+:} false; then : 8350 $as_echo_n "(cached) " >&6 8351 else 8352 case $MV in 8353 [\\/]* | ?:[\\/]*) 8354 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8355 ;; 8356 *) 8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8358 for as_dir in $PATH 8359 do 8360 IFS=$as_save_IFS 8361 test -z "$as_dir" && as_dir=. 8362 for ac_exec_ext in '' $ac_executable_extensions; do 8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8364 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8366 break 2 8367 fi 8368 done 8369 done 8370 IFS=$as_save_IFS 8371 8372 ;; 8373 esac 8374 fi 8375 MV=$ac_cv_path_MV 8376 if test -n "$MV"; then 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8378 $as_echo "$MV" >&6; } 8379 else 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8381 $as_echo "no" >&6; } 8382 fi 8383 8384 8385 test -n "$MV" && break 8386 done 8387 8388 else 8389 # If it succeeded, then it was overridden by the user. We will use it 8390 # for the tool. 8391 8392 # First remove it from the list of overridden variables, so we can test 8393 # for unknown variables in the end. 8394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8395 8396 # Check if the provided tool contains a complete path. 8397 tool_specified="$MV" 8398 tool_basename="${tool_specified##*/}" 8399 if test "x$tool_basename" = "x$tool_specified"; then 8400 # A command without a complete path is provided, search $PATH. 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8402 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8403 # Extract the first word of "$tool_basename", so it can be a program name with args. 8404 set dummy $tool_basename; ac_word=$2 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8406 $as_echo_n "checking for $ac_word... " >&6; } 8407 if ${ac_cv_path_MV+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409 else 8410 case $MV in 8411 [\\/]* | ?:[\\/]*) 8412 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8413 ;; 8414 *) 8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8416 for as_dir in $PATH 8417 do 8418 IFS=$as_save_IFS 8419 test -z "$as_dir" && as_dir=. 8420 for ac_exec_ext in '' $ac_executable_extensions; do 8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8422 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8424 break 2 8425 fi 8426 done 8427 done 8428 IFS=$as_save_IFS 8429 8430 ;; 8431 esac 8432 fi 8433 MV=$ac_cv_path_MV 8434 if test -n "$MV"; then 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8436 $as_echo "$MV" >&6; } 8437 else 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8439 $as_echo "no" >&6; } 8440 fi 8441 8442 8443 if test "x$MV" = x; then 8444 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8445 fi 8446 else 8447 # Otherwise we believe it is a complete path. Use it as it is. 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8449 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8451 $as_echo_n "checking for MV... " >&6; } 8452 if test ! -x "$tool_specified"; then 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8454 $as_echo "not found" >&6; } 8455 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8456 fi 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8458 $as_echo "$tool_specified" >&6; } 8459 fi 8460 fi 8461 fi 8462 8463 8464 8465 if test "x$MV" = x; then 8466 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8467 fi 8468 8469 8470 8471 8472 8473 # Publish this variable in the help. 8474 8475 8476 if test "x$NAWK" = x; then 8477 # The variable is not set by user, try to locate tool using the code snippet 8478 for ac_prog in nawk gawk awk 8479 do 8480 # Extract the first word of "$ac_prog", so it can be a program name with args. 8481 set dummy $ac_prog; ac_word=$2 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8483 $as_echo_n "checking for $ac_word... " >&6; } 8484 if ${ac_cv_path_NAWK+:} false; then : 8485 $as_echo_n "(cached) " >&6 8486 else 8487 case $NAWK in 8488 [\\/]* | ?:[\\/]*) 8489 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8490 ;; 8491 *) 8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8493 for as_dir in $PATH 8494 do 8495 IFS=$as_save_IFS 8496 test -z "$as_dir" && as_dir=. 8497 for ac_exec_ext in '' $ac_executable_extensions; do 8498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8499 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8501 break 2 8502 fi 8503 done 8504 done 8505 IFS=$as_save_IFS 8506 8507 ;; 8508 esac 8509 fi 8510 NAWK=$ac_cv_path_NAWK 8511 if test -n "$NAWK"; then 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8513 $as_echo "$NAWK" >&6; } 8514 else 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8516 $as_echo "no" >&6; } 8517 fi 8518 8519 8520 test -n "$NAWK" && break 8521 done 8522 8523 else 8524 # The variable is set, but is it from the command line or the environment? 8525 8526 # Try to remove the string !NAWK! from our list. 8527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8529 # If it failed, the variable was not from the command line. Ignore it, 8530 # but warn the user (except for BASH, which is always set by the calling BASH). 8531 if test "xNAWK" != xBASH; then 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8533 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8534 fi 8535 # Try to locate tool using the code snippet 8536 for ac_prog in nawk gawk awk 8537 do 8538 # Extract the first word of "$ac_prog", so it can be a program name with args. 8539 set dummy $ac_prog; ac_word=$2 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8541 $as_echo_n "checking for $ac_word... " >&6; } 8542 if ${ac_cv_path_NAWK+:} false; then : 8543 $as_echo_n "(cached) " >&6 8544 else 8545 case $NAWK in 8546 [\\/]* | ?:[\\/]*) 8547 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8548 ;; 8549 *) 8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8551 for as_dir in $PATH 8552 do 8553 IFS=$as_save_IFS 8554 test -z "$as_dir" && as_dir=. 8555 for ac_exec_ext in '' $ac_executable_extensions; do 8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8557 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8559 break 2 8560 fi 8561 done 8562 done 8563 IFS=$as_save_IFS 8564 8565 ;; 8566 esac 8567 fi 8568 NAWK=$ac_cv_path_NAWK 8569 if test -n "$NAWK"; then 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8571 $as_echo "$NAWK" >&6; } 8572 else 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8574 $as_echo "no" >&6; } 8575 fi 8576 8577 8578 test -n "$NAWK" && break 8579 done 8580 8581 else 8582 # If it succeeded, then it was overridden by the user. We will use it 8583 # for the tool. 8584 8585 # First remove it from the list of overridden variables, so we can test 8586 # for unknown variables in the end. 8587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8588 8589 # Check if the provided tool contains a complete path. 8590 tool_specified="$NAWK" 8591 tool_basename="${tool_specified##*/}" 8592 if test "x$tool_basename" = "x$tool_specified"; then 8593 # A command without a complete path is provided, search $PATH. 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8595 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8596 # Extract the first word of "$tool_basename", so it can be a program name with args. 8597 set dummy $tool_basename; ac_word=$2 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8599 $as_echo_n "checking for $ac_word... " >&6; } 8600 if ${ac_cv_path_NAWK+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602 else 8603 case $NAWK in 8604 [\\/]* | ?:[\\/]*) 8605 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8606 ;; 8607 *) 8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8609 for as_dir in $PATH 8610 do 8611 IFS=$as_save_IFS 8612 test -z "$as_dir" && as_dir=. 8613 for ac_exec_ext in '' $ac_executable_extensions; do 8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8615 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8617 break 2 8618 fi 8619 done 8620 done 8621 IFS=$as_save_IFS 8622 8623 ;; 8624 esac 8625 fi 8626 NAWK=$ac_cv_path_NAWK 8627 if test -n "$NAWK"; then 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8629 $as_echo "$NAWK" >&6; } 8630 else 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8632 $as_echo "no" >&6; } 8633 fi 8634 8635 8636 if test "x$NAWK" = x; then 8637 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8638 fi 8639 else 8640 # Otherwise we believe it is a complete path. Use it as it is. 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8642 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8644 $as_echo_n "checking for NAWK... " >&6; } 8645 if test ! -x "$tool_specified"; then 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8647 $as_echo "not found" >&6; } 8648 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8649 fi 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8651 $as_echo "$tool_specified" >&6; } 8652 fi 8653 fi 8654 fi 8655 8656 8657 8658 if test "x$NAWK" = x; then 8659 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8660 fi 8661 8662 8663 8664 8665 8666 # Publish this variable in the help. 8667 8668 8669 if test "x$PRINTF" = x; then 8670 # The variable is not set by user, try to locate tool using the code snippet 8671 for ac_prog in printf 8672 do 8673 # Extract the first word of "$ac_prog", so it can be a program name with args. 8674 set dummy $ac_prog; ac_word=$2 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8676 $as_echo_n "checking for $ac_word... " >&6; } 8677 if ${ac_cv_path_PRINTF+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679 else 8680 case $PRINTF in 8681 [\\/]* | ?:[\\/]*) 8682 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8683 ;; 8684 *) 8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8686 for as_dir in $PATH 8687 do 8688 IFS=$as_save_IFS 8689 test -z "$as_dir" && as_dir=. 8690 for ac_exec_ext in '' $ac_executable_extensions; do 8691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8692 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8694 break 2 8695 fi 8696 done 8697 done 8698 IFS=$as_save_IFS 8699 8700 ;; 8701 esac 8702 fi 8703 PRINTF=$ac_cv_path_PRINTF 8704 if test -n "$PRINTF"; then 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8706 $as_echo "$PRINTF" >&6; } 8707 else 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8709 $as_echo "no" >&6; } 8710 fi 8711 8712 8713 test -n "$PRINTF" && break 8714 done 8715 8716 else 8717 # The variable is set, but is it from the command line or the environment? 8718 8719 # Try to remove the string !PRINTF! from our list. 8720 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8721 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8722 # If it failed, the variable was not from the command line. Ignore it, 8723 # but warn the user (except for BASH, which is always set by the calling BASH). 8724 if test "xPRINTF" != xBASH; then 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8726 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8727 fi 8728 # Try to locate tool using the code snippet 8729 for ac_prog in printf 8730 do 8731 # Extract the first word of "$ac_prog", so it can be a program name with args. 8732 set dummy $ac_prog; ac_word=$2 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8734 $as_echo_n "checking for $ac_word... " >&6; } 8735 if ${ac_cv_path_PRINTF+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737 else 8738 case $PRINTF in 8739 [\\/]* | ?:[\\/]*) 8740 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8741 ;; 8742 *) 8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8744 for as_dir in $PATH 8745 do 8746 IFS=$as_save_IFS 8747 test -z "$as_dir" && as_dir=. 8748 for ac_exec_ext in '' $ac_executable_extensions; do 8749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8750 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8752 break 2 8753 fi 8754 done 8755 done 8756 IFS=$as_save_IFS 8757 8758 ;; 8759 esac 8760 fi 8761 PRINTF=$ac_cv_path_PRINTF 8762 if test -n "$PRINTF"; then 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8764 $as_echo "$PRINTF" >&6; } 8765 else 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8767 $as_echo "no" >&6; } 8768 fi 8769 8770 8771 test -n "$PRINTF" && break 8772 done 8773 8774 else 8775 # If it succeeded, then it was overridden by the user. We will use it 8776 # for the tool. 8777 8778 # First remove it from the list of overridden variables, so we can test 8779 # for unknown variables in the end. 8780 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8781 8782 # Check if the provided tool contains a complete path. 8783 tool_specified="$PRINTF" 8784 tool_basename="${tool_specified##*/}" 8785 if test "x$tool_basename" = "x$tool_specified"; then 8786 # A command without a complete path is provided, search $PATH. 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8788 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8789 # Extract the first word of "$tool_basename", so it can be a program name with args. 8790 set dummy $tool_basename; ac_word=$2 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8792 $as_echo_n "checking for $ac_word... " >&6; } 8793 if ${ac_cv_path_PRINTF+:} false; then : 8794 $as_echo_n "(cached) " >&6 8795 else 8796 case $PRINTF in 8797 [\\/]* | ?:[\\/]*) 8798 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8799 ;; 8800 *) 8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8802 for as_dir in $PATH 8803 do 8804 IFS=$as_save_IFS 8805 test -z "$as_dir" && as_dir=. 8806 for ac_exec_ext in '' $ac_executable_extensions; do 8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8808 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8810 break 2 8811 fi 8812 done 8813 done 8814 IFS=$as_save_IFS 8815 8816 ;; 8817 esac 8818 fi 8819 PRINTF=$ac_cv_path_PRINTF 8820 if test -n "$PRINTF"; then 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8822 $as_echo "$PRINTF" >&6; } 8823 else 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8825 $as_echo "no" >&6; } 8826 fi 8827 8828 8829 if test "x$PRINTF" = x; then 8830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8831 fi 8832 else 8833 # Otherwise we believe it is a complete path. Use it as it is. 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8835 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8837 $as_echo_n "checking for PRINTF... " >&6; } 8838 if test ! -x "$tool_specified"; then 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8840 $as_echo "not found" >&6; } 8841 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8842 fi 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8844 $as_echo "$tool_specified" >&6; } 8845 fi 8846 fi 8847 fi 8848 8849 8850 8851 if test "x$PRINTF" = x; then 8852 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8853 fi 8854 8855 8856 8857 8858 8859 # Publish this variable in the help. 8860 8861 8862 if test "x$RM" = x; then 8863 # The variable is not set by user, try to locate tool using the code snippet 8864 for ac_prog in rm 8865 do 8866 # Extract the first word of "$ac_prog", so it can be a program name with args. 8867 set dummy $ac_prog; ac_word=$2 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8869 $as_echo_n "checking for $ac_word... " >&6; } 8870 if ${ac_cv_path_RM+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872 else 8873 case $RM in 8874 [\\/]* | ?:[\\/]*) 8875 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8876 ;; 8877 *) 8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8879 for as_dir in $PATH 8880 do 8881 IFS=$as_save_IFS 8882 test -z "$as_dir" && as_dir=. 8883 for ac_exec_ext in '' $ac_executable_extensions; do 8884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8885 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8887 break 2 8888 fi 8889 done 8890 done 8891 IFS=$as_save_IFS 8892 8893 ;; 8894 esac 8895 fi 8896 RM=$ac_cv_path_RM 8897 if test -n "$RM"; then 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8899 $as_echo "$RM" >&6; } 8900 else 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8902 $as_echo "no" >&6; } 8903 fi 8904 8905 8906 test -n "$RM" && break 8907 done 8908 8909 else 8910 # The variable is set, but is it from the command line or the environment? 8911 8912 # Try to remove the string !RM! from our list. 8913 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8914 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8915 # If it failed, the variable was not from the command line. Ignore it, 8916 # but warn the user (except for BASH, which is always set by the calling BASH). 8917 if test "xRM" != xBASH; then 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8919 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8920 fi 8921 # Try to locate tool using the code snippet 8922 for ac_prog in rm 8923 do 8924 # Extract the first word of "$ac_prog", so it can be a program name with args. 8925 set dummy $ac_prog; ac_word=$2 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8927 $as_echo_n "checking for $ac_word... " >&6; } 8928 if ${ac_cv_path_RM+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930 else 8931 case $RM in 8932 [\\/]* | ?:[\\/]*) 8933 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8934 ;; 8935 *) 8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8937 for as_dir in $PATH 8938 do 8939 IFS=$as_save_IFS 8940 test -z "$as_dir" && as_dir=. 8941 for ac_exec_ext in '' $ac_executable_extensions; do 8942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8943 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8945 break 2 8946 fi 8947 done 8948 done 8949 IFS=$as_save_IFS 8950 8951 ;; 8952 esac 8953 fi 8954 RM=$ac_cv_path_RM 8955 if test -n "$RM"; then 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8957 $as_echo "$RM" >&6; } 8958 else 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8960 $as_echo "no" >&6; } 8961 fi 8962 8963 8964 test -n "$RM" && break 8965 done 8966 8967 else 8968 # If it succeeded, then it was overridden by the user. We will use it 8969 # for the tool. 8970 8971 # First remove it from the list of overridden variables, so we can test 8972 # for unknown variables in the end. 8973 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8974 8975 # Check if the provided tool contains a complete path. 8976 tool_specified="$RM" 8977 tool_basename="${tool_specified##*/}" 8978 if test "x$tool_basename" = "x$tool_specified"; then 8979 # A command without a complete path is provided, search $PATH. 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8981 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8982 # Extract the first word of "$tool_basename", so it can be a program name with args. 8983 set dummy $tool_basename; ac_word=$2 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8985 $as_echo_n "checking for $ac_word... " >&6; } 8986 if ${ac_cv_path_RM+:} false; then : 8987 $as_echo_n "(cached) " >&6 8988 else 8989 case $RM in 8990 [\\/]* | ?:[\\/]*) 8991 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8992 ;; 8993 *) 8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8995 for as_dir in $PATH 8996 do 8997 IFS=$as_save_IFS 8998 test -z "$as_dir" && as_dir=. 8999 for ac_exec_ext in '' $ac_executable_extensions; do 9000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9001 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9003 break 2 9004 fi 9005 done 9006 done 9007 IFS=$as_save_IFS 9008 9009 ;; 9010 esac 9011 fi 9012 RM=$ac_cv_path_RM 9013 if test -n "$RM"; then 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9015 $as_echo "$RM" >&6; } 9016 else 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9018 $as_echo "no" >&6; } 9019 fi 9020 9021 9022 if test "x$RM" = x; then 9023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9024 fi 9025 else 9026 # Otherwise we believe it is a complete path. Use it as it is. 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9028 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9030 $as_echo_n "checking for RM... " >&6; } 9031 if test ! -x "$tool_specified"; then 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9033 $as_echo "not found" >&6; } 9034 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9035 fi 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9037 $as_echo "$tool_specified" >&6; } 9038 fi 9039 fi 9040 fi 9041 9042 9043 9044 if test "x$RM" = x; then 9045 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9046 fi 9047 9048 9049 9050 9051 9052 # Publish this variable in the help. 9053 9054 9055 if test "x$SH" = x; then 9056 # The variable is not set by user, try to locate tool using the code snippet 9057 for ac_prog in sh 9058 do 9059 # Extract the first word of "$ac_prog", so it can be a program name with args. 9060 set dummy $ac_prog; ac_word=$2 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9062 $as_echo_n "checking for $ac_word... " >&6; } 9063 if ${ac_cv_path_SH+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065 else 9066 case $SH in 9067 [\\/]* | ?:[\\/]*) 9068 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9069 ;; 9070 *) 9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9072 for as_dir in $PATH 9073 do 9074 IFS=$as_save_IFS 9075 test -z "$as_dir" && as_dir=. 9076 for ac_exec_ext in '' $ac_executable_extensions; do 9077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9078 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9080 break 2 9081 fi 9082 done 9083 done 9084 IFS=$as_save_IFS 9085 9086 ;; 9087 esac 9088 fi 9089 SH=$ac_cv_path_SH 9090 if test -n "$SH"; then 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9092 $as_echo "$SH" >&6; } 9093 else 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9095 $as_echo "no" >&6; } 9096 fi 9097 9098 9099 test -n "$SH" && break 9100 done 9101 9102 else 9103 # The variable is set, but is it from the command line or the environment? 9104 9105 # Try to remove the string !SH! from our list. 9106 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9107 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9108 # If it failed, the variable was not from the command line. Ignore it, 9109 # but warn the user (except for BASH, which is always set by the calling BASH). 9110 if test "xSH" != xBASH; then 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9112 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9113 fi 9114 # Try to locate tool using the code snippet 9115 for ac_prog in sh 9116 do 9117 # Extract the first word of "$ac_prog", so it can be a program name with args. 9118 set dummy $ac_prog; ac_word=$2 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9120 $as_echo_n "checking for $ac_word... " >&6; } 9121 if ${ac_cv_path_SH+:} false; then : 9122 $as_echo_n "(cached) " >&6 9123 else 9124 case $SH in 9125 [\\/]* | ?:[\\/]*) 9126 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9127 ;; 9128 *) 9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9130 for as_dir in $PATH 9131 do 9132 IFS=$as_save_IFS 9133 test -z "$as_dir" && as_dir=. 9134 for ac_exec_ext in '' $ac_executable_extensions; do 9135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9136 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9138 break 2 9139 fi 9140 done 9141 done 9142 IFS=$as_save_IFS 9143 9144 ;; 9145 esac 9146 fi 9147 SH=$ac_cv_path_SH 9148 if test -n "$SH"; then 9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9150 $as_echo "$SH" >&6; } 9151 else 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9153 $as_echo "no" >&6; } 9154 fi 9155 9156 9157 test -n "$SH" && break 9158 done 9159 9160 else 9161 # If it succeeded, then it was overridden by the user. We will use it 9162 # for the tool. 9163 9164 # First remove it from the list of overridden variables, so we can test 9165 # for unknown variables in the end. 9166 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9167 9168 # Check if the provided tool contains a complete path. 9169 tool_specified="$SH" 9170 tool_basename="${tool_specified##*/}" 9171 if test "x$tool_basename" = "x$tool_specified"; then 9172 # A command without a complete path is provided, search $PATH. 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9174 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9175 # Extract the first word of "$tool_basename", so it can be a program name with args. 9176 set dummy $tool_basename; ac_word=$2 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9178 $as_echo_n "checking for $ac_word... " >&6; } 9179 if ${ac_cv_path_SH+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181 else 9182 case $SH in 9183 [\\/]* | ?:[\\/]*) 9184 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9185 ;; 9186 *) 9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9188 for as_dir in $PATH 9189 do 9190 IFS=$as_save_IFS 9191 test -z "$as_dir" && as_dir=. 9192 for ac_exec_ext in '' $ac_executable_extensions; do 9193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9194 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9196 break 2 9197 fi 9198 done 9199 done 9200 IFS=$as_save_IFS 9201 9202 ;; 9203 esac 9204 fi 9205 SH=$ac_cv_path_SH 9206 if test -n "$SH"; then 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9208 $as_echo "$SH" >&6; } 9209 else 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9211 $as_echo "no" >&6; } 9212 fi 9213 9214 9215 if test "x$SH" = x; then 9216 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9217 fi 9218 else 9219 # Otherwise we believe it is a complete path. Use it as it is. 9220 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9221 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9223 $as_echo_n "checking for SH... " >&6; } 9224 if test ! -x "$tool_specified"; then 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9226 $as_echo "not found" >&6; } 9227 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9228 fi 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9230 $as_echo "$tool_specified" >&6; } 9231 fi 9232 fi 9233 fi 9234 9235 9236 9237 if test "x$SH" = x; then 9238 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9239 fi 9240 9241 9242 9243 9244 9245 # Publish this variable in the help. 9246 9247 9248 if test "x$SORT" = x; then 9249 # The variable is not set by user, try to locate tool using the code snippet 9250 for ac_prog in sort 9251 do 9252 # Extract the first word of "$ac_prog", so it can be a program name with args. 9253 set dummy $ac_prog; ac_word=$2 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9255 $as_echo_n "checking for $ac_word... " >&6; } 9256 if ${ac_cv_path_SORT+:} false; then : 9257 $as_echo_n "(cached) " >&6 9258 else 9259 case $SORT in 9260 [\\/]* | ?:[\\/]*) 9261 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9262 ;; 9263 *) 9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9265 for as_dir in $PATH 9266 do 9267 IFS=$as_save_IFS 9268 test -z "$as_dir" && as_dir=. 9269 for ac_exec_ext in '' $ac_executable_extensions; do 9270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9271 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9273 break 2 9274 fi 9275 done 9276 done 9277 IFS=$as_save_IFS 9278 9279 ;; 9280 esac 9281 fi 9282 SORT=$ac_cv_path_SORT 9283 if test -n "$SORT"; then 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9285 $as_echo "$SORT" >&6; } 9286 else 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9288 $as_echo "no" >&6; } 9289 fi 9290 9291 9292 test -n "$SORT" && break 9293 done 9294 9295 else 9296 # The variable is set, but is it from the command line or the environment? 9297 9298 # Try to remove the string !SORT! from our list. 9299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9301 # If it failed, the variable was not from the command line. Ignore it, 9302 # but warn the user (except for BASH, which is always set by the calling BASH). 9303 if test "xSORT" != xBASH; then 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9305 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9306 fi 9307 # Try to locate tool using the code snippet 9308 for ac_prog in sort 9309 do 9310 # Extract the first word of "$ac_prog", so it can be a program name with args. 9311 set dummy $ac_prog; ac_word=$2 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9313 $as_echo_n "checking for $ac_word... " >&6; } 9314 if ${ac_cv_path_SORT+:} false; then : 9315 $as_echo_n "(cached) " >&6 9316 else 9317 case $SORT in 9318 [\\/]* | ?:[\\/]*) 9319 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9320 ;; 9321 *) 9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9323 for as_dir in $PATH 9324 do 9325 IFS=$as_save_IFS 9326 test -z "$as_dir" && as_dir=. 9327 for ac_exec_ext in '' $ac_executable_extensions; do 9328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9329 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9331 break 2 9332 fi 9333 done 9334 done 9335 IFS=$as_save_IFS 9336 9337 ;; 9338 esac 9339 fi 9340 SORT=$ac_cv_path_SORT 9341 if test -n "$SORT"; then 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9343 $as_echo "$SORT" >&6; } 9344 else 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9346 $as_echo "no" >&6; } 9347 fi 9348 9349 9350 test -n "$SORT" && break 9351 done 9352 9353 else 9354 # If it succeeded, then it was overridden by the user. We will use it 9355 # for the tool. 9356 9357 # First remove it from the list of overridden variables, so we can test 9358 # for unknown variables in the end. 9359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9360 9361 # Check if the provided tool contains a complete path. 9362 tool_specified="$SORT" 9363 tool_basename="${tool_specified##*/}" 9364 if test "x$tool_basename" = "x$tool_specified"; then 9365 # A command without a complete path is provided, search $PATH. 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9367 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9368 # Extract the first word of "$tool_basename", so it can be a program name with args. 9369 set dummy $tool_basename; ac_word=$2 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9371 $as_echo_n "checking for $ac_word... " >&6; } 9372 if ${ac_cv_path_SORT+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374 else 9375 case $SORT in 9376 [\\/]* | ?:[\\/]*) 9377 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9378 ;; 9379 *) 9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9381 for as_dir in $PATH 9382 do 9383 IFS=$as_save_IFS 9384 test -z "$as_dir" && as_dir=. 9385 for ac_exec_ext in '' $ac_executable_extensions; do 9386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9387 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9389 break 2 9390 fi 9391 done 9392 done 9393 IFS=$as_save_IFS 9394 9395 ;; 9396 esac 9397 fi 9398 SORT=$ac_cv_path_SORT 9399 if test -n "$SORT"; then 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9401 $as_echo "$SORT" >&6; } 9402 else 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9404 $as_echo "no" >&6; } 9405 fi 9406 9407 9408 if test "x$SORT" = x; then 9409 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9410 fi 9411 else 9412 # Otherwise we believe it is a complete path. Use it as it is. 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9414 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9416 $as_echo_n "checking for SORT... " >&6; } 9417 if test ! -x "$tool_specified"; then 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9419 $as_echo "not found" >&6; } 9420 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9421 fi 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9423 $as_echo "$tool_specified" >&6; } 9424 fi 9425 fi 9426 fi 9427 9428 9429 9430 if test "x$SORT" = x; then 9431 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9432 fi 9433 9434 9435 9436 9437 9438 # Publish this variable in the help. 9439 9440 9441 if test "x$TAIL" = x; then 9442 # The variable is not set by user, try to locate tool using the code snippet 9443 for ac_prog in tail 9444 do 9445 # Extract the first word of "$ac_prog", so it can be a program name with args. 9446 set dummy $ac_prog; ac_word=$2 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9448 $as_echo_n "checking for $ac_word... " >&6; } 9449 if ${ac_cv_path_TAIL+:} false; then : 9450 $as_echo_n "(cached) " >&6 9451 else 9452 case $TAIL in 9453 [\\/]* | ?:[\\/]*) 9454 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9455 ;; 9456 *) 9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9458 for as_dir in $PATH 9459 do 9460 IFS=$as_save_IFS 9461 test -z "$as_dir" && as_dir=. 9462 for ac_exec_ext in '' $ac_executable_extensions; do 9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9464 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9466 break 2 9467 fi 9468 done 9469 done 9470 IFS=$as_save_IFS 9471 9472 ;; 9473 esac 9474 fi 9475 TAIL=$ac_cv_path_TAIL 9476 if test -n "$TAIL"; then 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9478 $as_echo "$TAIL" >&6; } 9479 else 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9481 $as_echo "no" >&6; } 9482 fi 9483 9484 9485 test -n "$TAIL" && break 9486 done 9487 9488 else 9489 # The variable is set, but is it from the command line or the environment? 9490 9491 # Try to remove the string !TAIL! from our list. 9492 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9493 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9494 # If it failed, the variable was not from the command line. Ignore it, 9495 # but warn the user (except for BASH, which is always set by the calling BASH). 9496 if test "xTAIL" != xBASH; then 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9498 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9499 fi 9500 # Try to locate tool using the code snippet 9501 for ac_prog in tail 9502 do 9503 # Extract the first word of "$ac_prog", so it can be a program name with args. 9504 set dummy $ac_prog; ac_word=$2 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9506 $as_echo_n "checking for $ac_word... " >&6; } 9507 if ${ac_cv_path_TAIL+:} false; then : 9508 $as_echo_n "(cached) " >&6 9509 else 9510 case $TAIL in 9511 [\\/]* | ?:[\\/]*) 9512 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9513 ;; 9514 *) 9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9516 for as_dir in $PATH 9517 do 9518 IFS=$as_save_IFS 9519 test -z "$as_dir" && as_dir=. 9520 for ac_exec_ext in '' $ac_executable_extensions; do 9521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9522 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9524 break 2 9525 fi 9526 done 9527 done 9528 IFS=$as_save_IFS 9529 9530 ;; 9531 esac 9532 fi 9533 TAIL=$ac_cv_path_TAIL 9534 if test -n "$TAIL"; then 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9536 $as_echo "$TAIL" >&6; } 9537 else 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9539 $as_echo "no" >&6; } 9540 fi 9541 9542 9543 test -n "$TAIL" && break 9544 done 9545 9546 else 9547 # If it succeeded, then it was overridden by the user. We will use it 9548 # for the tool. 9549 9550 # First remove it from the list of overridden variables, so we can test 9551 # for unknown variables in the end. 9552 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9553 9554 # Check if the provided tool contains a complete path. 9555 tool_specified="$TAIL" 9556 tool_basename="${tool_specified##*/}" 9557 if test "x$tool_basename" = "x$tool_specified"; then 9558 # A command without a complete path is provided, search $PATH. 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9560 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9561 # Extract the first word of "$tool_basename", so it can be a program name with args. 9562 set dummy $tool_basename; ac_word=$2 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9564 $as_echo_n "checking for $ac_word... " >&6; } 9565 if ${ac_cv_path_TAIL+:} false; then : 9566 $as_echo_n "(cached) " >&6 9567 else 9568 case $TAIL in 9569 [\\/]* | ?:[\\/]*) 9570 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9571 ;; 9572 *) 9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9574 for as_dir in $PATH 9575 do 9576 IFS=$as_save_IFS 9577 test -z "$as_dir" && as_dir=. 9578 for ac_exec_ext in '' $ac_executable_extensions; do 9579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9580 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9582 break 2 9583 fi 9584 done 9585 done 9586 IFS=$as_save_IFS 9587 9588 ;; 9589 esac 9590 fi 9591 TAIL=$ac_cv_path_TAIL 9592 if test -n "$TAIL"; then 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9594 $as_echo "$TAIL" >&6; } 9595 else 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9597 $as_echo "no" >&6; } 9598 fi 9599 9600 9601 if test "x$TAIL" = x; then 9602 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9603 fi 9604 else 9605 # Otherwise we believe it is a complete path. Use it as it is. 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9607 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9609 $as_echo_n "checking for TAIL... " >&6; } 9610 if test ! -x "$tool_specified"; then 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9612 $as_echo "not found" >&6; } 9613 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9614 fi 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9616 $as_echo "$tool_specified" >&6; } 9617 fi 9618 fi 9619 fi 9620 9621 9622 9623 if test "x$TAIL" = x; then 9624 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9625 fi 9626 9627 9628 9629 9630 9631 # Publish this variable in the help. 9632 9633 9634 if test "x$TAR" = x; then 9635 # The variable is not set by user, try to locate tool using the code snippet 9636 for ac_prog in tar 9637 do 9638 # Extract the first word of "$ac_prog", so it can be a program name with args. 9639 set dummy $ac_prog; ac_word=$2 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9641 $as_echo_n "checking for $ac_word... " >&6; } 9642 if ${ac_cv_path_TAR+:} false; then : 9643 $as_echo_n "(cached) " >&6 9644 else 9645 case $TAR in 9646 [\\/]* | ?:[\\/]*) 9647 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9648 ;; 9649 *) 9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9651 for as_dir in $PATH 9652 do 9653 IFS=$as_save_IFS 9654 test -z "$as_dir" && as_dir=. 9655 for ac_exec_ext in '' $ac_executable_extensions; do 9656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9657 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9659 break 2 9660 fi 9661 done 9662 done 9663 IFS=$as_save_IFS 9664 9665 ;; 9666 esac 9667 fi 9668 TAR=$ac_cv_path_TAR 9669 if test -n "$TAR"; then 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9671 $as_echo "$TAR" >&6; } 9672 else 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9674 $as_echo "no" >&6; } 9675 fi 9676 9677 9678 test -n "$TAR" && break 9679 done 9680 9681 else 9682 # The variable is set, but is it from the command line or the environment? 9683 9684 # Try to remove the string !TAR! from our list. 9685 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9686 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9687 # If it failed, the variable was not from the command line. Ignore it, 9688 # but warn the user (except for BASH, which is always set by the calling BASH). 9689 if test "xTAR" != xBASH; then 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9691 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9692 fi 9693 # Try to locate tool using the code snippet 9694 for ac_prog in tar 9695 do 9696 # Extract the first word of "$ac_prog", so it can be a program name with args. 9697 set dummy $ac_prog; ac_word=$2 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9699 $as_echo_n "checking for $ac_word... " >&6; } 9700 if ${ac_cv_path_TAR+:} false; then : 9701 $as_echo_n "(cached) " >&6 9702 else 9703 case $TAR in 9704 [\\/]* | ?:[\\/]*) 9705 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9706 ;; 9707 *) 9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9709 for as_dir in $PATH 9710 do 9711 IFS=$as_save_IFS 9712 test -z "$as_dir" && as_dir=. 9713 for ac_exec_ext in '' $ac_executable_extensions; do 9714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9715 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9717 break 2 9718 fi 9719 done 9720 done 9721 IFS=$as_save_IFS 9722 9723 ;; 9724 esac 9725 fi 9726 TAR=$ac_cv_path_TAR 9727 if test -n "$TAR"; then 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9729 $as_echo "$TAR" >&6; } 9730 else 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9732 $as_echo "no" >&6; } 9733 fi 9734 9735 9736 test -n "$TAR" && break 9737 done 9738 9739 else 9740 # If it succeeded, then it was overridden by the user. We will use it 9741 # for the tool. 9742 9743 # First remove it from the list of overridden variables, so we can test 9744 # for unknown variables in the end. 9745 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9746 9747 # Check if the provided tool contains a complete path. 9748 tool_specified="$TAR" 9749 tool_basename="${tool_specified##*/}" 9750 if test "x$tool_basename" = "x$tool_specified"; then 9751 # A command without a complete path is provided, search $PATH. 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9753 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9754 # Extract the first word of "$tool_basename", so it can be a program name with args. 9755 set dummy $tool_basename; ac_word=$2 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9757 $as_echo_n "checking for $ac_word... " >&6; } 9758 if ${ac_cv_path_TAR+:} false; then : 9759 $as_echo_n "(cached) " >&6 9760 else 9761 case $TAR in 9762 [\\/]* | ?:[\\/]*) 9763 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9764 ;; 9765 *) 9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9767 for as_dir in $PATH 9768 do 9769 IFS=$as_save_IFS 9770 test -z "$as_dir" && as_dir=. 9771 for ac_exec_ext in '' $ac_executable_extensions; do 9772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9773 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9775 break 2 9776 fi 9777 done 9778 done 9779 IFS=$as_save_IFS 9780 9781 ;; 9782 esac 9783 fi 9784 TAR=$ac_cv_path_TAR 9785 if test -n "$TAR"; then 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9787 $as_echo "$TAR" >&6; } 9788 else 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9790 $as_echo "no" >&6; } 9791 fi 9792 9793 9794 if test "x$TAR" = x; then 9795 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9796 fi 9797 else 9798 # Otherwise we believe it is a complete path. Use it as it is. 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9800 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9802 $as_echo_n "checking for TAR... " >&6; } 9803 if test ! -x "$tool_specified"; then 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9805 $as_echo "not found" >&6; } 9806 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9807 fi 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9809 $as_echo "$tool_specified" >&6; } 9810 fi 9811 fi 9812 fi 9813 9814 9815 9816 if test "x$TAR" = x; then 9817 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9818 fi 9819 9820 9821 9822 9823 9824 # Publish this variable in the help. 9825 9826 9827 if test "x$TEE" = x; then 9828 # The variable is not set by user, try to locate tool using the code snippet 9829 for ac_prog in tee 9830 do 9831 # Extract the first word of "$ac_prog", so it can be a program name with args. 9832 set dummy $ac_prog; ac_word=$2 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9834 $as_echo_n "checking for $ac_word... " >&6; } 9835 if ${ac_cv_path_TEE+:} false; then : 9836 $as_echo_n "(cached) " >&6 9837 else 9838 case $TEE in 9839 [\\/]* | ?:[\\/]*) 9840 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9841 ;; 9842 *) 9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9844 for as_dir in $PATH 9845 do 9846 IFS=$as_save_IFS 9847 test -z "$as_dir" && as_dir=. 9848 for ac_exec_ext in '' $ac_executable_extensions; do 9849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9850 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9852 break 2 9853 fi 9854 done 9855 done 9856 IFS=$as_save_IFS 9857 9858 ;; 9859 esac 9860 fi 9861 TEE=$ac_cv_path_TEE 9862 if test -n "$TEE"; then 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9864 $as_echo "$TEE" >&6; } 9865 else 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9867 $as_echo "no" >&6; } 9868 fi 9869 9870 9871 test -n "$TEE" && break 9872 done 9873 9874 else 9875 # The variable is set, but is it from the command line or the environment? 9876 9877 # Try to remove the string !TEE! from our list. 9878 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9879 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9880 # If it failed, the variable was not from the command line. Ignore it, 9881 # but warn the user (except for BASH, which is always set by the calling BASH). 9882 if test "xTEE" != xBASH; then 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9884 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9885 fi 9886 # Try to locate tool using the code snippet 9887 for ac_prog in tee 9888 do 9889 # Extract the first word of "$ac_prog", so it can be a program name with args. 9890 set dummy $ac_prog; ac_word=$2 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9892 $as_echo_n "checking for $ac_word... " >&6; } 9893 if ${ac_cv_path_TEE+:} false; then : 9894 $as_echo_n "(cached) " >&6 9895 else 9896 case $TEE in 9897 [\\/]* | ?:[\\/]*) 9898 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9899 ;; 9900 *) 9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9902 for as_dir in $PATH 9903 do 9904 IFS=$as_save_IFS 9905 test -z "$as_dir" && as_dir=. 9906 for ac_exec_ext in '' $ac_executable_extensions; do 9907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9908 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9910 break 2 9911 fi 9912 done 9913 done 9914 IFS=$as_save_IFS 9915 9916 ;; 9917 esac 9918 fi 9919 TEE=$ac_cv_path_TEE 9920 if test -n "$TEE"; then 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9922 $as_echo "$TEE" >&6; } 9923 else 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9925 $as_echo "no" >&6; } 9926 fi 9927 9928 9929 test -n "$TEE" && break 9930 done 9931 9932 else 9933 # If it succeeded, then it was overridden by the user. We will use it 9934 # for the tool. 9935 9936 # First remove it from the list of overridden variables, so we can test 9937 # for unknown variables in the end. 9938 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9939 9940 # Check if the provided tool contains a complete path. 9941 tool_specified="$TEE" 9942 tool_basename="${tool_specified##*/}" 9943 if test "x$tool_basename" = "x$tool_specified"; then 9944 # A command without a complete path is provided, search $PATH. 9945 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9946 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9947 # Extract the first word of "$tool_basename", so it can be a program name with args. 9948 set dummy $tool_basename; ac_word=$2 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9950 $as_echo_n "checking for $ac_word... " >&6; } 9951 if ${ac_cv_path_TEE+:} false; then : 9952 $as_echo_n "(cached) " >&6 9953 else 9954 case $TEE in 9955 [\\/]* | ?:[\\/]*) 9956 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9957 ;; 9958 *) 9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9960 for as_dir in $PATH 9961 do 9962 IFS=$as_save_IFS 9963 test -z "$as_dir" && as_dir=. 9964 for ac_exec_ext in '' $ac_executable_extensions; do 9965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9966 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9968 break 2 9969 fi 9970 done 9971 done 9972 IFS=$as_save_IFS 9973 9974 ;; 9975 esac 9976 fi 9977 TEE=$ac_cv_path_TEE 9978 if test -n "$TEE"; then 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9980 $as_echo "$TEE" >&6; } 9981 else 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9983 $as_echo "no" >&6; } 9984 fi 9985 9986 9987 if test "x$TEE" = x; then 9988 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9989 fi 9990 else 9991 # Otherwise we believe it is a complete path. Use it as it is. 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9993 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9995 $as_echo_n "checking for TEE... " >&6; } 9996 if test ! -x "$tool_specified"; then 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9998 $as_echo "not found" >&6; } 9999 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10000 fi 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10002 $as_echo "$tool_specified" >&6; } 10003 fi 10004 fi 10005 fi 10006 10007 10008 10009 if test "x$TEE" = x; then 10010 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10011 fi 10012 10013 10014 10015 10016 10017 # Publish this variable in the help. 10018 10019 10020 if test "x$TOUCH" = x; then 10021 # The variable is not set by user, try to locate tool using the code snippet 10022 for ac_prog in touch 10023 do 10024 # Extract the first word of "$ac_prog", so it can be a program name with args. 10025 set dummy $ac_prog; ac_word=$2 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10027 $as_echo_n "checking for $ac_word... " >&6; } 10028 if ${ac_cv_path_TOUCH+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030 else 10031 case $TOUCH in 10032 [\\/]* | ?:[\\/]*) 10033 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10034 ;; 10035 *) 10036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10037 for as_dir in $PATH 10038 do 10039 IFS=$as_save_IFS 10040 test -z "$as_dir" && as_dir=. 10041 for ac_exec_ext in '' $ac_executable_extensions; do 10042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10043 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10045 break 2 10046 fi 10047 done 10048 done 10049 IFS=$as_save_IFS 10050 10051 ;; 10052 esac 10053 fi 10054 TOUCH=$ac_cv_path_TOUCH 10055 if test -n "$TOUCH"; then 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10057 $as_echo "$TOUCH" >&6; } 10058 else 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10060 $as_echo "no" >&6; } 10061 fi 10062 10063 10064 test -n "$TOUCH" && break 10065 done 10066 10067 else 10068 # The variable is set, but is it from the command line or the environment? 10069 10070 # Try to remove the string !TOUCH! from our list. 10071 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10072 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10073 # If it failed, the variable was not from the command line. Ignore it, 10074 # but warn the user (except for BASH, which is always set by the calling BASH). 10075 if test "xTOUCH" != xBASH; then 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10077 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10078 fi 10079 # Try to locate tool using the code snippet 10080 for ac_prog in touch 10081 do 10082 # Extract the first word of "$ac_prog", so it can be a program name with args. 10083 set dummy $ac_prog; ac_word=$2 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10085 $as_echo_n "checking for $ac_word... " >&6; } 10086 if ${ac_cv_path_TOUCH+:} false; then : 10087 $as_echo_n "(cached) " >&6 10088 else 10089 case $TOUCH in 10090 [\\/]* | ?:[\\/]*) 10091 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10092 ;; 10093 *) 10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10095 for as_dir in $PATH 10096 do 10097 IFS=$as_save_IFS 10098 test -z "$as_dir" && as_dir=. 10099 for ac_exec_ext in '' $ac_executable_extensions; do 10100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10101 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10103 break 2 10104 fi 10105 done 10106 done 10107 IFS=$as_save_IFS 10108 10109 ;; 10110 esac 10111 fi 10112 TOUCH=$ac_cv_path_TOUCH 10113 if test -n "$TOUCH"; then 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10115 $as_echo "$TOUCH" >&6; } 10116 else 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10118 $as_echo "no" >&6; } 10119 fi 10120 10121 10122 test -n "$TOUCH" && break 10123 done 10124 10125 else 10126 # If it succeeded, then it was overridden by the user. We will use it 10127 # for the tool. 10128 10129 # First remove it from the list of overridden variables, so we can test 10130 # for unknown variables in the end. 10131 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10132 10133 # Check if the provided tool contains a complete path. 10134 tool_specified="$TOUCH" 10135 tool_basename="${tool_specified##*/}" 10136 if test "x$tool_basename" = "x$tool_specified"; then 10137 # A command without a complete path is provided, search $PATH. 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10139 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10140 # Extract the first word of "$tool_basename", so it can be a program name with args. 10141 set dummy $tool_basename; ac_word=$2 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10143 $as_echo_n "checking for $ac_word... " >&6; } 10144 if ${ac_cv_path_TOUCH+:} false; then : 10145 $as_echo_n "(cached) " >&6 10146 else 10147 case $TOUCH in 10148 [\\/]* | ?:[\\/]*) 10149 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10150 ;; 10151 *) 10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10153 for as_dir in $PATH 10154 do 10155 IFS=$as_save_IFS 10156 test -z "$as_dir" && as_dir=. 10157 for ac_exec_ext in '' $ac_executable_extensions; do 10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10159 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10161 break 2 10162 fi 10163 done 10164 done 10165 IFS=$as_save_IFS 10166 10167 ;; 10168 esac 10169 fi 10170 TOUCH=$ac_cv_path_TOUCH 10171 if test -n "$TOUCH"; then 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10173 $as_echo "$TOUCH" >&6; } 10174 else 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10176 $as_echo "no" >&6; } 10177 fi 10178 10179 10180 if test "x$TOUCH" = x; then 10181 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10182 fi 10183 else 10184 # Otherwise we believe it is a complete path. Use it as it is. 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10186 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10188 $as_echo_n "checking for TOUCH... " >&6; } 10189 if test ! -x "$tool_specified"; then 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10191 $as_echo "not found" >&6; } 10192 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10193 fi 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10195 $as_echo "$tool_specified" >&6; } 10196 fi 10197 fi 10198 fi 10199 10200 10201 10202 if test "x$TOUCH" = x; then 10203 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10204 fi 10205 10206 10207 10208 10209 10210 # Publish this variable in the help. 10211 10212 10213 if test "x$TR" = x; then 10214 # The variable is not set by user, try to locate tool using the code snippet 10215 for ac_prog in tr 10216 do 10217 # Extract the first word of "$ac_prog", so it can be a program name with args. 10218 set dummy $ac_prog; ac_word=$2 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10220 $as_echo_n "checking for $ac_word... " >&6; } 10221 if ${ac_cv_path_TR+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223 else 10224 case $TR in 10225 [\\/]* | ?:[\\/]*) 10226 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10227 ;; 10228 *) 10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10230 for as_dir in $PATH 10231 do 10232 IFS=$as_save_IFS 10233 test -z "$as_dir" && as_dir=. 10234 for ac_exec_ext in '' $ac_executable_extensions; do 10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10236 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10238 break 2 10239 fi 10240 done 10241 done 10242 IFS=$as_save_IFS 10243 10244 ;; 10245 esac 10246 fi 10247 TR=$ac_cv_path_TR 10248 if test -n "$TR"; then 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10250 $as_echo "$TR" >&6; } 10251 else 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10253 $as_echo "no" >&6; } 10254 fi 10255 10256 10257 test -n "$TR" && break 10258 done 10259 10260 else 10261 # The variable is set, but is it from the command line or the environment? 10262 10263 # Try to remove the string !TR! from our list. 10264 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10265 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10266 # If it failed, the variable was not from the command line. Ignore it, 10267 # but warn the user (except for BASH, which is always set by the calling BASH). 10268 if test "xTR" != xBASH; then 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10270 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10271 fi 10272 # Try to locate tool using the code snippet 10273 for ac_prog in tr 10274 do 10275 # Extract the first word of "$ac_prog", so it can be a program name with args. 10276 set dummy $ac_prog; ac_word=$2 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10278 $as_echo_n "checking for $ac_word... " >&6; } 10279 if ${ac_cv_path_TR+:} false; then : 10280 $as_echo_n "(cached) " >&6 10281 else 10282 case $TR in 10283 [\\/]* | ?:[\\/]*) 10284 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10285 ;; 10286 *) 10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10288 for as_dir in $PATH 10289 do 10290 IFS=$as_save_IFS 10291 test -z "$as_dir" && as_dir=. 10292 for ac_exec_ext in '' $ac_executable_extensions; do 10293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10294 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10296 break 2 10297 fi 10298 done 10299 done 10300 IFS=$as_save_IFS 10301 10302 ;; 10303 esac 10304 fi 10305 TR=$ac_cv_path_TR 10306 if test -n "$TR"; then 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10308 $as_echo "$TR" >&6; } 10309 else 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10311 $as_echo "no" >&6; } 10312 fi 10313 10314 10315 test -n "$TR" && break 10316 done 10317 10318 else 10319 # If it succeeded, then it was overridden by the user. We will use it 10320 # for the tool. 10321 10322 # First remove it from the list of overridden variables, so we can test 10323 # for unknown variables in the end. 10324 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10325 10326 # Check if the provided tool contains a complete path. 10327 tool_specified="$TR" 10328 tool_basename="${tool_specified##*/}" 10329 if test "x$tool_basename" = "x$tool_specified"; then 10330 # A command without a complete path is provided, search $PATH. 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10332 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10333 # Extract the first word of "$tool_basename", so it can be a program name with args. 10334 set dummy $tool_basename; ac_word=$2 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10336 $as_echo_n "checking for $ac_word... " >&6; } 10337 if ${ac_cv_path_TR+:} false; then : 10338 $as_echo_n "(cached) " >&6 10339 else 10340 case $TR in 10341 [\\/]* | ?:[\\/]*) 10342 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10343 ;; 10344 *) 10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10346 for as_dir in $PATH 10347 do 10348 IFS=$as_save_IFS 10349 test -z "$as_dir" && as_dir=. 10350 for ac_exec_ext in '' $ac_executable_extensions; do 10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10352 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10354 break 2 10355 fi 10356 done 10357 done 10358 IFS=$as_save_IFS 10359 10360 ;; 10361 esac 10362 fi 10363 TR=$ac_cv_path_TR 10364 if test -n "$TR"; then 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10366 $as_echo "$TR" >&6; } 10367 else 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10369 $as_echo "no" >&6; } 10370 fi 10371 10372 10373 if test "x$TR" = x; then 10374 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10375 fi 10376 else 10377 # Otherwise we believe it is a complete path. Use it as it is. 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10379 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10381 $as_echo_n "checking for TR... " >&6; } 10382 if test ! -x "$tool_specified"; then 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10384 $as_echo "not found" >&6; } 10385 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10386 fi 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10388 $as_echo "$tool_specified" >&6; } 10389 fi 10390 fi 10391 fi 10392 10393 10394 10395 if test "x$TR" = x; then 10396 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10397 fi 10398 10399 10400 10401 10402 10403 # Publish this variable in the help. 10404 10405 10406 if test "x$UNAME" = x; then 10407 # The variable is not set by user, try to locate tool using the code snippet 10408 for ac_prog in uname 10409 do 10410 # Extract the first word of "$ac_prog", so it can be a program name with args. 10411 set dummy $ac_prog; ac_word=$2 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10413 $as_echo_n "checking for $ac_word... " >&6; } 10414 if ${ac_cv_path_UNAME+:} false; then : 10415 $as_echo_n "(cached) " >&6 10416 else 10417 case $UNAME in 10418 [\\/]* | ?:[\\/]*) 10419 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10420 ;; 10421 *) 10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10423 for as_dir in $PATH 10424 do 10425 IFS=$as_save_IFS 10426 test -z "$as_dir" && as_dir=. 10427 for ac_exec_ext in '' $ac_executable_extensions; do 10428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10429 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10431 break 2 10432 fi 10433 done 10434 done 10435 IFS=$as_save_IFS 10436 10437 ;; 10438 esac 10439 fi 10440 UNAME=$ac_cv_path_UNAME 10441 if test -n "$UNAME"; then 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10443 $as_echo "$UNAME" >&6; } 10444 else 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10446 $as_echo "no" >&6; } 10447 fi 10448 10449 10450 test -n "$UNAME" && break 10451 done 10452 10453 else 10454 # The variable is set, but is it from the command line or the environment? 10455 10456 # Try to remove the string !UNAME! from our list. 10457 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10458 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10459 # If it failed, the variable was not from the command line. Ignore it, 10460 # but warn the user (except for BASH, which is always set by the calling BASH). 10461 if test "xUNAME" != xBASH; then 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10463 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10464 fi 10465 # Try to locate tool using the code snippet 10466 for ac_prog in uname 10467 do 10468 # Extract the first word of "$ac_prog", so it can be a program name with args. 10469 set dummy $ac_prog; ac_word=$2 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10471 $as_echo_n "checking for $ac_word... " >&6; } 10472 if ${ac_cv_path_UNAME+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474 else 10475 case $UNAME in 10476 [\\/]* | ?:[\\/]*) 10477 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10478 ;; 10479 *) 10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10481 for as_dir in $PATH 10482 do 10483 IFS=$as_save_IFS 10484 test -z "$as_dir" && as_dir=. 10485 for ac_exec_ext in '' $ac_executable_extensions; do 10486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10487 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10489 break 2 10490 fi 10491 done 10492 done 10493 IFS=$as_save_IFS 10494 10495 ;; 10496 esac 10497 fi 10498 UNAME=$ac_cv_path_UNAME 10499 if test -n "$UNAME"; then 10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10501 $as_echo "$UNAME" >&6; } 10502 else 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10504 $as_echo "no" >&6; } 10505 fi 10506 10507 10508 test -n "$UNAME" && break 10509 done 10510 10511 else 10512 # If it succeeded, then it was overridden by the user. We will use it 10513 # for the tool. 10514 10515 # First remove it from the list of overridden variables, so we can test 10516 # for unknown variables in the end. 10517 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10518 10519 # Check if the provided tool contains a complete path. 10520 tool_specified="$UNAME" 10521 tool_basename="${tool_specified##*/}" 10522 if test "x$tool_basename" = "x$tool_specified"; then 10523 # A command without a complete path is provided, search $PATH. 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10525 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10526 # Extract the first word of "$tool_basename", so it can be a program name with args. 10527 set dummy $tool_basename; ac_word=$2 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10529 $as_echo_n "checking for $ac_word... " >&6; } 10530 if ${ac_cv_path_UNAME+:} false; then : 10531 $as_echo_n "(cached) " >&6 10532 else 10533 case $UNAME in 10534 [\\/]* | ?:[\\/]*) 10535 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10536 ;; 10537 *) 10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10539 for as_dir in $PATH 10540 do 10541 IFS=$as_save_IFS 10542 test -z "$as_dir" && as_dir=. 10543 for ac_exec_ext in '' $ac_executable_extensions; do 10544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10545 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10547 break 2 10548 fi 10549 done 10550 done 10551 IFS=$as_save_IFS 10552 10553 ;; 10554 esac 10555 fi 10556 UNAME=$ac_cv_path_UNAME 10557 if test -n "$UNAME"; then 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10559 $as_echo "$UNAME" >&6; } 10560 else 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10562 $as_echo "no" >&6; } 10563 fi 10564 10565 10566 if test "x$UNAME" = x; then 10567 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10568 fi 10569 else 10570 # Otherwise we believe it is a complete path. Use it as it is. 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10572 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10574 $as_echo_n "checking for UNAME... " >&6; } 10575 if test ! -x "$tool_specified"; then 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10577 $as_echo "not found" >&6; } 10578 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10579 fi 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10581 $as_echo "$tool_specified" >&6; } 10582 fi 10583 fi 10584 fi 10585 10586 10587 10588 if test "x$UNAME" = x; then 10589 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10590 fi 10591 10592 10593 10594 10595 10596 # Publish this variable in the help. 10597 10598 10599 if test "x$UNIQ" = x; then 10600 # The variable is not set by user, try to locate tool using the code snippet 10601 for ac_prog in uniq 10602 do 10603 # Extract the first word of "$ac_prog", so it can be a program name with args. 10604 set dummy $ac_prog; ac_word=$2 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10606 $as_echo_n "checking for $ac_word... " >&6; } 10607 if ${ac_cv_path_UNIQ+:} false; then : 10608 $as_echo_n "(cached) " >&6 10609 else 10610 case $UNIQ in 10611 [\\/]* | ?:[\\/]*) 10612 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10613 ;; 10614 *) 10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10616 for as_dir in $PATH 10617 do 10618 IFS=$as_save_IFS 10619 test -z "$as_dir" && as_dir=. 10620 for ac_exec_ext in '' $ac_executable_extensions; do 10621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10622 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10624 break 2 10625 fi 10626 done 10627 done 10628 IFS=$as_save_IFS 10629 10630 ;; 10631 esac 10632 fi 10633 UNIQ=$ac_cv_path_UNIQ 10634 if test -n "$UNIQ"; then 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10636 $as_echo "$UNIQ" >&6; } 10637 else 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10639 $as_echo "no" >&6; } 10640 fi 10641 10642 10643 test -n "$UNIQ" && break 10644 done 10645 10646 else 10647 # The variable is set, but is it from the command line or the environment? 10648 10649 # Try to remove the string !UNIQ! from our list. 10650 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10651 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10652 # If it failed, the variable was not from the command line. Ignore it, 10653 # but warn the user (except for BASH, which is always set by the calling BASH). 10654 if test "xUNIQ" != xBASH; then 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10656 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10657 fi 10658 # Try to locate tool using the code snippet 10659 for ac_prog in uniq 10660 do 10661 # Extract the first word of "$ac_prog", so it can be a program name with args. 10662 set dummy $ac_prog; ac_word=$2 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10664 $as_echo_n "checking for $ac_word... " >&6; } 10665 if ${ac_cv_path_UNIQ+:} false; then : 10666 $as_echo_n "(cached) " >&6 10667 else 10668 case $UNIQ in 10669 [\\/]* | ?:[\\/]*) 10670 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10671 ;; 10672 *) 10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10674 for as_dir in $PATH 10675 do 10676 IFS=$as_save_IFS 10677 test -z "$as_dir" && as_dir=. 10678 for ac_exec_ext in '' $ac_executable_extensions; do 10679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10680 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10682 break 2 10683 fi 10684 done 10685 done 10686 IFS=$as_save_IFS 10687 10688 ;; 10689 esac 10690 fi 10691 UNIQ=$ac_cv_path_UNIQ 10692 if test -n "$UNIQ"; then 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10694 $as_echo "$UNIQ" >&6; } 10695 else 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10697 $as_echo "no" >&6; } 10698 fi 10699 10700 10701 test -n "$UNIQ" && break 10702 done 10703 10704 else 10705 # If it succeeded, then it was overridden by the user. We will use it 10706 # for the tool. 10707 10708 # First remove it from the list of overridden variables, so we can test 10709 # for unknown variables in the end. 10710 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10711 10712 # Check if the provided tool contains a complete path. 10713 tool_specified="$UNIQ" 10714 tool_basename="${tool_specified##*/}" 10715 if test "x$tool_basename" = "x$tool_specified"; then 10716 # A command without a complete path is provided, search $PATH. 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10718 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10719 # Extract the first word of "$tool_basename", so it can be a program name with args. 10720 set dummy $tool_basename; ac_word=$2 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10722 $as_echo_n "checking for $ac_word... " >&6; } 10723 if ${ac_cv_path_UNIQ+:} false; then : 10724 $as_echo_n "(cached) " >&6 10725 else 10726 case $UNIQ in 10727 [\\/]* | ?:[\\/]*) 10728 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10729 ;; 10730 *) 10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10732 for as_dir in $PATH 10733 do 10734 IFS=$as_save_IFS 10735 test -z "$as_dir" && as_dir=. 10736 for ac_exec_ext in '' $ac_executable_extensions; do 10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10738 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10740 break 2 10741 fi 10742 done 10743 done 10744 IFS=$as_save_IFS 10745 10746 ;; 10747 esac 10748 fi 10749 UNIQ=$ac_cv_path_UNIQ 10750 if test -n "$UNIQ"; then 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10752 $as_echo "$UNIQ" >&6; } 10753 else 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10755 $as_echo "no" >&6; } 10756 fi 10757 10758 10759 if test "x$UNIQ" = x; then 10760 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10761 fi 10762 else 10763 # Otherwise we believe it is a complete path. Use it as it is. 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10765 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10767 $as_echo_n "checking for UNIQ... " >&6; } 10768 if test ! -x "$tool_specified"; then 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10770 $as_echo "not found" >&6; } 10771 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10772 fi 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10774 $as_echo "$tool_specified" >&6; } 10775 fi 10776 fi 10777 fi 10778 10779 10780 10781 if test "x$UNIQ" = x; then 10782 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10783 fi 10784 10785 10786 10787 10788 10789 # Publish this variable in the help. 10790 10791 10792 if test "x$WC" = x; then 10793 # The variable is not set by user, try to locate tool using the code snippet 10794 for ac_prog in wc 10795 do 10796 # Extract the first word of "$ac_prog", so it can be a program name with args. 10797 set dummy $ac_prog; ac_word=$2 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10799 $as_echo_n "checking for $ac_word... " >&6; } 10800 if ${ac_cv_path_WC+:} false; then : 10801 $as_echo_n "(cached) " >&6 10802 else 10803 case $WC in 10804 [\\/]* | ?:[\\/]*) 10805 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10806 ;; 10807 *) 10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10809 for as_dir in $PATH 10810 do 10811 IFS=$as_save_IFS 10812 test -z "$as_dir" && as_dir=. 10813 for ac_exec_ext in '' $ac_executable_extensions; do 10814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10815 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10817 break 2 10818 fi 10819 done 10820 done 10821 IFS=$as_save_IFS 10822 10823 ;; 10824 esac 10825 fi 10826 WC=$ac_cv_path_WC 10827 if test -n "$WC"; then 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10829 $as_echo "$WC" >&6; } 10830 else 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10832 $as_echo "no" >&6; } 10833 fi 10834 10835 10836 test -n "$WC" && break 10837 done 10838 10839 else 10840 # The variable is set, but is it from the command line or the environment? 10841 10842 # Try to remove the string !WC! from our list. 10843 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10844 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10845 # If it failed, the variable was not from the command line. Ignore it, 10846 # but warn the user (except for BASH, which is always set by the calling BASH). 10847 if test "xWC" != xBASH; then 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10849 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10850 fi 10851 # Try to locate tool using the code snippet 10852 for ac_prog in wc 10853 do 10854 # Extract the first word of "$ac_prog", so it can be a program name with args. 10855 set dummy $ac_prog; ac_word=$2 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10857 $as_echo_n "checking for $ac_word... " >&6; } 10858 if ${ac_cv_path_WC+:} false; then : 10859 $as_echo_n "(cached) " >&6 10860 else 10861 case $WC in 10862 [\\/]* | ?:[\\/]*) 10863 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10864 ;; 10865 *) 10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10867 for as_dir in $PATH 10868 do 10869 IFS=$as_save_IFS 10870 test -z "$as_dir" && as_dir=. 10871 for ac_exec_ext in '' $ac_executable_extensions; do 10872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10873 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10875 break 2 10876 fi 10877 done 10878 done 10879 IFS=$as_save_IFS 10880 10881 ;; 10882 esac 10883 fi 10884 WC=$ac_cv_path_WC 10885 if test -n "$WC"; then 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10887 $as_echo "$WC" >&6; } 10888 else 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10890 $as_echo "no" >&6; } 10891 fi 10892 10893 10894 test -n "$WC" && break 10895 done 10896 10897 else 10898 # If it succeeded, then it was overridden by the user. We will use it 10899 # for the tool. 10900 10901 # First remove it from the list of overridden variables, so we can test 10902 # for unknown variables in the end. 10903 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10904 10905 # Check if the provided tool contains a complete path. 10906 tool_specified="$WC" 10907 tool_basename="${tool_specified##*/}" 10908 if test "x$tool_basename" = "x$tool_specified"; then 10909 # A command without a complete path is provided, search $PATH. 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10911 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10912 # Extract the first word of "$tool_basename", so it can be a program name with args. 10913 set dummy $tool_basename; ac_word=$2 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10915 $as_echo_n "checking for $ac_word... " >&6; } 10916 if ${ac_cv_path_WC+:} false; then : 10917 $as_echo_n "(cached) " >&6 10918 else 10919 case $WC in 10920 [\\/]* | ?:[\\/]*) 10921 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10922 ;; 10923 *) 10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10925 for as_dir in $PATH 10926 do 10927 IFS=$as_save_IFS 10928 test -z "$as_dir" && as_dir=. 10929 for ac_exec_ext in '' $ac_executable_extensions; do 10930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10931 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10933 break 2 10934 fi 10935 done 10936 done 10937 IFS=$as_save_IFS 10938 10939 ;; 10940 esac 10941 fi 10942 WC=$ac_cv_path_WC 10943 if test -n "$WC"; then 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10945 $as_echo "$WC" >&6; } 10946 else 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10948 $as_echo "no" >&6; } 10949 fi 10950 10951 10952 if test "x$WC" = x; then 10953 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10954 fi 10955 else 10956 # Otherwise we believe it is a complete path. Use it as it is. 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10958 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10960 $as_echo_n "checking for WC... " >&6; } 10961 if test ! -x "$tool_specified"; then 10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10963 $as_echo "not found" >&6; } 10964 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10965 fi 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10967 $as_echo "$tool_specified" >&6; } 10968 fi 10969 fi 10970 fi 10971 10972 10973 10974 if test "x$WC" = x; then 10975 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10976 fi 10977 10978 10979 10980 10981 10982 # Publish this variable in the help. 10983 10984 10985 if test "x$WHICH" = x; then 10986 # The variable is not set by user, try to locate tool using the code snippet 10987 for ac_prog in which 10988 do 10989 # Extract the first word of "$ac_prog", so it can be a program name with args. 10990 set dummy $ac_prog; ac_word=$2 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10992 $as_echo_n "checking for $ac_word... " >&6; } 10993 if ${ac_cv_path_WHICH+:} false; then : 10994 $as_echo_n "(cached) " >&6 10995 else 10996 case $WHICH in 10997 [\\/]* | ?:[\\/]*) 10998 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10999 ;; 11000 *) 11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11002 for as_dir in $PATH 11003 do 11004 IFS=$as_save_IFS 11005 test -z "$as_dir" && as_dir=. 11006 for ac_exec_ext in '' $ac_executable_extensions; do 11007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11008 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11010 break 2 11011 fi 11012 done 11013 done 11014 IFS=$as_save_IFS 11015 11016 ;; 11017 esac 11018 fi 11019 WHICH=$ac_cv_path_WHICH 11020 if test -n "$WHICH"; then 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11022 $as_echo "$WHICH" >&6; } 11023 else 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11025 $as_echo "no" >&6; } 11026 fi 11027 11028 11029 test -n "$WHICH" && break 11030 done 11031 11032 else 11033 # The variable is set, but is it from the command line or the environment? 11034 11035 # Try to remove the string !WHICH! from our list. 11036 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11037 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11038 # If it failed, the variable was not from the command line. Ignore it, 11039 # but warn the user (except for BASH, which is always set by the calling BASH). 11040 if test "xWHICH" != xBASH; then 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11042 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11043 fi 11044 # Try to locate tool using the code snippet 11045 for ac_prog in which 11046 do 11047 # Extract the first word of "$ac_prog", so it can be a program name with args. 11048 set dummy $ac_prog; ac_word=$2 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11050 $as_echo_n "checking for $ac_word... " >&6; } 11051 if ${ac_cv_path_WHICH+:} false; then : 11052 $as_echo_n "(cached) " >&6 11053 else 11054 case $WHICH in 11055 [\\/]* | ?:[\\/]*) 11056 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11057 ;; 11058 *) 11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11060 for as_dir in $PATH 11061 do 11062 IFS=$as_save_IFS 11063 test -z "$as_dir" && as_dir=. 11064 for ac_exec_ext in '' $ac_executable_extensions; do 11065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11066 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11068 break 2 11069 fi 11070 done 11071 done 11072 IFS=$as_save_IFS 11073 11074 ;; 11075 esac 11076 fi 11077 WHICH=$ac_cv_path_WHICH 11078 if test -n "$WHICH"; then 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11080 $as_echo "$WHICH" >&6; } 11081 else 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11083 $as_echo "no" >&6; } 11084 fi 11085 11086 11087 test -n "$WHICH" && break 11088 done 11089 11090 else 11091 # If it succeeded, then it was overridden by the user. We will use it 11092 # for the tool. 11093 11094 # First remove it from the list of overridden variables, so we can test 11095 # for unknown variables in the end. 11096 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11097 11098 # Check if the provided tool contains a complete path. 11099 tool_specified="$WHICH" 11100 tool_basename="${tool_specified##*/}" 11101 if test "x$tool_basename" = "x$tool_specified"; then 11102 # A command without a complete path is provided, search $PATH. 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11104 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11105 # Extract the first word of "$tool_basename", so it can be a program name with args. 11106 set dummy $tool_basename; ac_word=$2 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11108 $as_echo_n "checking for $ac_word... " >&6; } 11109 if ${ac_cv_path_WHICH+:} false; then : 11110 $as_echo_n "(cached) " >&6 11111 else 11112 case $WHICH in 11113 [\\/]* | ?:[\\/]*) 11114 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11115 ;; 11116 *) 11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11118 for as_dir in $PATH 11119 do 11120 IFS=$as_save_IFS 11121 test -z "$as_dir" && as_dir=. 11122 for ac_exec_ext in '' $ac_executable_extensions; do 11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11124 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11126 break 2 11127 fi 11128 done 11129 done 11130 IFS=$as_save_IFS 11131 11132 ;; 11133 esac 11134 fi 11135 WHICH=$ac_cv_path_WHICH 11136 if test -n "$WHICH"; then 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11138 $as_echo "$WHICH" >&6; } 11139 else 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11141 $as_echo "no" >&6; } 11142 fi 11143 11144 11145 if test "x$WHICH" = x; then 11146 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11147 fi 11148 else 11149 # Otherwise we believe it is a complete path. Use it as it is. 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11151 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11153 $as_echo_n "checking for WHICH... " >&6; } 11154 if test ! -x "$tool_specified"; then 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11156 $as_echo "not found" >&6; } 11157 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11158 fi 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11160 $as_echo "$tool_specified" >&6; } 11161 fi 11162 fi 11163 fi 11164 11165 11166 11167 if test "x$WHICH" = x; then 11168 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11169 fi 11170 11171 11172 11173 11174 11175 # Publish this variable in the help. 11176 11177 11178 if test "x$XARGS" = x; then 11179 # The variable is not set by user, try to locate tool using the code snippet 11180 for ac_prog in xargs 11181 do 11182 # Extract the first word of "$ac_prog", so it can be a program name with args. 11183 set dummy $ac_prog; ac_word=$2 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11185 $as_echo_n "checking for $ac_word... " >&6; } 11186 if ${ac_cv_path_XARGS+:} false; then : 11187 $as_echo_n "(cached) " >&6 11188 else 11189 case $XARGS in 11190 [\\/]* | ?:[\\/]*) 11191 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11192 ;; 11193 *) 11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11195 for as_dir in $PATH 11196 do 11197 IFS=$as_save_IFS 11198 test -z "$as_dir" && as_dir=. 11199 for ac_exec_ext in '' $ac_executable_extensions; do 11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11201 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11203 break 2 11204 fi 11205 done 11206 done 11207 IFS=$as_save_IFS 11208 11209 ;; 11210 esac 11211 fi 11212 XARGS=$ac_cv_path_XARGS 11213 if test -n "$XARGS"; then 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11215 $as_echo "$XARGS" >&6; } 11216 else 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11218 $as_echo "no" >&6; } 11219 fi 11220 11221 11222 test -n "$XARGS" && break 11223 done 11224 11225 else 11226 # The variable is set, but is it from the command line or the environment? 11227 11228 # Try to remove the string !XARGS! from our list. 11229 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11230 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11231 # If it failed, the variable was not from the command line. Ignore it, 11232 # but warn the user (except for BASH, which is always set by the calling BASH). 11233 if test "xXARGS" != xBASH; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11235 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11236 fi 11237 # Try to locate tool using the code snippet 11238 for ac_prog in xargs 11239 do 11240 # Extract the first word of "$ac_prog", so it can be a program name with args. 11241 set dummy $ac_prog; ac_word=$2 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11243 $as_echo_n "checking for $ac_word... " >&6; } 11244 if ${ac_cv_path_XARGS+:} false; then : 11245 $as_echo_n "(cached) " >&6 11246 else 11247 case $XARGS in 11248 [\\/]* | ?:[\\/]*) 11249 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11250 ;; 11251 *) 11252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11253 for as_dir in $PATH 11254 do 11255 IFS=$as_save_IFS 11256 test -z "$as_dir" && as_dir=. 11257 for ac_exec_ext in '' $ac_executable_extensions; do 11258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11259 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11261 break 2 11262 fi 11263 done 11264 done 11265 IFS=$as_save_IFS 11266 11267 ;; 11268 esac 11269 fi 11270 XARGS=$ac_cv_path_XARGS 11271 if test -n "$XARGS"; then 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11273 $as_echo "$XARGS" >&6; } 11274 else 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11276 $as_echo "no" >&6; } 11277 fi 11278 11279 11280 test -n "$XARGS" && break 11281 done 11282 11283 else 11284 # If it succeeded, then it was overridden by the user. We will use it 11285 # for the tool. 11286 11287 # First remove it from the list of overridden variables, so we can test 11288 # for unknown variables in the end. 11289 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11290 11291 # Check if the provided tool contains a complete path. 11292 tool_specified="$XARGS" 11293 tool_basename="${tool_specified##*/}" 11294 if test "x$tool_basename" = "x$tool_specified"; then 11295 # A command without a complete path is provided, search $PATH. 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11297 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11298 # Extract the first word of "$tool_basename", so it can be a program name with args. 11299 set dummy $tool_basename; ac_word=$2 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11301 $as_echo_n "checking for $ac_word... " >&6; } 11302 if ${ac_cv_path_XARGS+:} false; then : 11303 $as_echo_n "(cached) " >&6 11304 else 11305 case $XARGS in 11306 [\\/]* | ?:[\\/]*) 11307 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11308 ;; 11309 *) 11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11311 for as_dir in $PATH 11312 do 11313 IFS=$as_save_IFS 11314 test -z "$as_dir" && as_dir=. 11315 for ac_exec_ext in '' $ac_executable_extensions; do 11316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11317 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11319 break 2 11320 fi 11321 done 11322 done 11323 IFS=$as_save_IFS 11324 11325 ;; 11326 esac 11327 fi 11328 XARGS=$ac_cv_path_XARGS 11329 if test -n "$XARGS"; then 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11331 $as_echo "$XARGS" >&6; } 11332 else 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11334 $as_echo "no" >&6; } 11335 fi 11336 11337 11338 if test "x$XARGS" = x; then 11339 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11340 fi 11341 else 11342 # Otherwise we believe it is a complete path. Use it as it is. 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11344 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11346 $as_echo_n "checking for XARGS... " >&6; } 11347 if test ! -x "$tool_specified"; then 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11349 $as_echo "not found" >&6; } 11350 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11351 fi 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11353 $as_echo "$tool_specified" >&6; } 11354 fi 11355 fi 11356 fi 11357 11358 11359 11360 if test "x$XARGS" = x; then 11361 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11362 fi 11363 11364 11365 11366 # Then required tools that require some special treatment. 11367 11368 11369 # Publish this variable in the help. 11370 11371 11372 if test "x$AWK" = x; then 11373 # The variable is not set by user, try to locate tool using the code snippet 11374 for ac_prog in gawk mawk nawk awk 11375 do 11376 # Extract the first word of "$ac_prog", so it can be a program name with args. 11377 set dummy $ac_prog; ac_word=$2 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11379 $as_echo_n "checking for $ac_word... " >&6; } 11380 if ${ac_cv_prog_AWK+:} false; then : 11381 $as_echo_n "(cached) " >&6 11382 else 11383 if test -n "$AWK"; then 11384 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11385 else 11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11387 for as_dir in $PATH 11388 do 11389 IFS=$as_save_IFS 11390 test -z "$as_dir" && as_dir=. 11391 for ac_exec_ext in '' $ac_executable_extensions; do 11392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11393 ac_cv_prog_AWK="$ac_prog" 11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11395 break 2 11396 fi 11397 done 11398 done 11399 IFS=$as_save_IFS 11400 11401 fi 11402 fi 11403 AWK=$ac_cv_prog_AWK 11404 if test -n "$AWK"; then 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11406 $as_echo "$AWK" >&6; } 11407 else 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11409 $as_echo "no" >&6; } 11410 fi 11411 11412 11413 test -n "$AWK" && break 11414 done 11415 11416 else 11417 # The variable is set, but is it from the command line or the environment? 11418 11419 # Try to remove the string !AWK! from our list. 11420 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11421 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11422 # If it failed, the variable was not from the command line. Ignore it, 11423 # but warn the user (except for BASH, which is always set by the calling BASH). 11424 if test "xAWK" != xBASH; then 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11426 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11427 fi 11428 # Try to locate tool using the code snippet 11429 for ac_prog in gawk mawk nawk awk 11430 do 11431 # Extract the first word of "$ac_prog", so it can be a program name with args. 11432 set dummy $ac_prog; ac_word=$2 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11434 $as_echo_n "checking for $ac_word... " >&6; } 11435 if ${ac_cv_prog_AWK+:} false; then : 11436 $as_echo_n "(cached) " >&6 11437 else 11438 if test -n "$AWK"; then 11439 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11440 else 11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11442 for as_dir in $PATH 11443 do 11444 IFS=$as_save_IFS 11445 test -z "$as_dir" && as_dir=. 11446 for ac_exec_ext in '' $ac_executable_extensions; do 11447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11448 ac_cv_prog_AWK="$ac_prog" 11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11450 break 2 11451 fi 11452 done 11453 done 11454 IFS=$as_save_IFS 11455 11456 fi 11457 fi 11458 AWK=$ac_cv_prog_AWK 11459 if test -n "$AWK"; then 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11461 $as_echo "$AWK" >&6; } 11462 else 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11464 $as_echo "no" >&6; } 11465 fi 11466 11467 11468 test -n "$AWK" && break 11469 done 11470 11471 else 11472 # If it succeeded, then it was overridden by the user. We will use it 11473 # for the tool. 11474 11475 # First remove it from the list of overridden variables, so we can test 11476 # for unknown variables in the end. 11477 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11478 11479 # Check if the provided tool contains a complete path. 11480 tool_specified="$AWK" 11481 tool_basename="${tool_specified##*/}" 11482 if test "x$tool_basename" = "x$tool_specified"; then 11483 # A command without a complete path is provided, search $PATH. 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11485 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11486 # Extract the first word of "$tool_basename", so it can be a program name with args. 11487 set dummy $tool_basename; ac_word=$2 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11489 $as_echo_n "checking for $ac_word... " >&6; } 11490 if ${ac_cv_path_AWK+:} false; then : 11491 $as_echo_n "(cached) " >&6 11492 else 11493 case $AWK in 11494 [\\/]* | ?:[\\/]*) 11495 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11496 ;; 11497 *) 11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11499 for as_dir in $PATH 11500 do 11501 IFS=$as_save_IFS 11502 test -z "$as_dir" && as_dir=. 11503 for ac_exec_ext in '' $ac_executable_extensions; do 11504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11505 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11507 break 2 11508 fi 11509 done 11510 done 11511 IFS=$as_save_IFS 11512 11513 ;; 11514 esac 11515 fi 11516 AWK=$ac_cv_path_AWK 11517 if test -n "$AWK"; then 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11519 $as_echo "$AWK" >&6; } 11520 else 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11522 $as_echo "no" >&6; } 11523 fi 11524 11525 11526 if test "x$AWK" = x; then 11527 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11528 fi 11529 else 11530 # Otherwise we believe it is a complete path. Use it as it is. 11531 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11532 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11534 $as_echo_n "checking for AWK... " >&6; } 11535 if test ! -x "$tool_specified"; then 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11537 $as_echo "not found" >&6; } 11538 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11539 fi 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11541 $as_echo "$tool_specified" >&6; } 11542 fi 11543 fi 11544 fi 11545 11546 11547 if test "x$AWK" = x; then 11548 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11549 fi 11550 11551 11552 11553 11554 # Publish this variable in the help. 11555 11556 11557 if test "x$GREP" = x; then 11558 # The variable is not set by user, try to locate tool using the code snippet 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11560 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11561 if ${ac_cv_path_GREP+:} false; then : 11562 $as_echo_n "(cached) " >&6 11563 else 11564 if test -z "$GREP"; then 11565 ac_path_GREP_found=false 11566 # Loop through the user's path and test for each of PROGNAME-LIST 11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11569 do 11570 IFS=$as_save_IFS 11571 test -z "$as_dir" && as_dir=. 11572 for ac_prog in grep ggrep; do 11573 for ac_exec_ext in '' $ac_executable_extensions; do 11574 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11575 as_fn_executable_p "$ac_path_GREP" || continue 11576 # Check for GNU ac_path_GREP and select it if it is found. 11577 # Check for GNU $ac_path_GREP 11578 case `"$ac_path_GREP" --version 2>&1` in 11579 *GNU*) 11580 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11581 *) 11582 ac_count=0 11583 $as_echo_n 0123456789 >"conftest.in" 11584 while : 11585 do 11586 cat "conftest.in" "conftest.in" >"conftest.tmp" 11587 mv "conftest.tmp" "conftest.in" 11588 cp "conftest.in" "conftest.nl" 11589 $as_echo 'GREP' >> "conftest.nl" 11590 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11592 as_fn_arith $ac_count + 1 && ac_count=$as_val 11593 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11594 # Best one so far, save it but keep looking for a better one 11595 ac_cv_path_GREP="$ac_path_GREP" 11596 ac_path_GREP_max=$ac_count 11597 fi 11598 # 10*(2^10) chars as input seems more than enough 11599 test $ac_count -gt 10 && break 11600 done 11601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11602 esac 11603 11604 $ac_path_GREP_found && break 3 11605 done 11606 done 11607 done 11608 IFS=$as_save_IFS 11609 if test -z "$ac_cv_path_GREP"; then 11610 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11611 fi 11612 else 11613 ac_cv_path_GREP=$GREP 11614 fi 11615 11616 fi 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11618 $as_echo "$ac_cv_path_GREP" >&6; } 11619 GREP="$ac_cv_path_GREP" 11620 11621 11622 else 11623 # The variable is set, but is it from the command line or the environment? 11624 11625 # Try to remove the string !GREP! from our list. 11626 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11627 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11628 # If it failed, the variable was not from the command line. Ignore it, 11629 # but warn the user (except for BASH, which is always set by the calling BASH). 11630 if test "xGREP" != xBASH; then 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11632 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11633 fi 11634 # Try to locate tool using the code snippet 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11636 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11637 if ${ac_cv_path_GREP+:} false; then : 11638 $as_echo_n "(cached) " >&6 11639 else 11640 if test -z "$GREP"; then 11641 ac_path_GREP_found=false 11642 # Loop through the user's path and test for each of PROGNAME-LIST 11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11645 do 11646 IFS=$as_save_IFS 11647 test -z "$as_dir" && as_dir=. 11648 for ac_prog in grep ggrep; do 11649 for ac_exec_ext in '' $ac_executable_extensions; do 11650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11651 as_fn_executable_p "$ac_path_GREP" || continue 11652 # Check for GNU ac_path_GREP and select it if it is found. 11653 # Check for GNU $ac_path_GREP 11654 case `"$ac_path_GREP" --version 2>&1` in 11655 *GNU*) 11656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11657 *) 11658 ac_count=0 11659 $as_echo_n 0123456789 >"conftest.in" 11660 while : 11661 do 11662 cat "conftest.in" "conftest.in" >"conftest.tmp" 11663 mv "conftest.tmp" "conftest.in" 11664 cp "conftest.in" "conftest.nl" 11665 $as_echo 'GREP' >> "conftest.nl" 11666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11668 as_fn_arith $ac_count + 1 && ac_count=$as_val 11669 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11670 # Best one so far, save it but keep looking for a better one 11671 ac_cv_path_GREP="$ac_path_GREP" 11672 ac_path_GREP_max=$ac_count 11673 fi 11674 # 10*(2^10) chars as input seems more than enough 11675 test $ac_count -gt 10 && break 11676 done 11677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11678 esac 11679 11680 $ac_path_GREP_found && break 3 11681 done 11682 done 11683 done 11684 IFS=$as_save_IFS 11685 if test -z "$ac_cv_path_GREP"; then 11686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11687 fi 11688 else 11689 ac_cv_path_GREP=$GREP 11690 fi 11691 11692 fi 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11694 $as_echo "$ac_cv_path_GREP" >&6; } 11695 GREP="$ac_cv_path_GREP" 11696 11697 11698 else 11699 # If it succeeded, then it was overridden by the user. We will use it 11700 # for the tool. 11701 11702 # First remove it from the list of overridden variables, so we can test 11703 # for unknown variables in the end. 11704 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11705 11706 # Check if the provided tool contains a complete path. 11707 tool_specified="$GREP" 11708 tool_basename="${tool_specified##*/}" 11709 if test "x$tool_basename" = "x$tool_specified"; then 11710 # A command without a complete path is provided, search $PATH. 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11712 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11713 # Extract the first word of "$tool_basename", so it can be a program name with args. 11714 set dummy $tool_basename; ac_word=$2 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11716 $as_echo_n "checking for $ac_word... " >&6; } 11717 if ${ac_cv_path_GREP+:} false; then : 11718 $as_echo_n "(cached) " >&6 11719 else 11720 case $GREP in 11721 [\\/]* | ?:[\\/]*) 11722 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11723 ;; 11724 *) 11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11726 for as_dir in $PATH 11727 do 11728 IFS=$as_save_IFS 11729 test -z "$as_dir" && as_dir=. 11730 for ac_exec_ext in '' $ac_executable_extensions; do 11731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11732 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11734 break 2 11735 fi 11736 done 11737 done 11738 IFS=$as_save_IFS 11739 11740 ;; 11741 esac 11742 fi 11743 GREP=$ac_cv_path_GREP 11744 if test -n "$GREP"; then 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11746 $as_echo "$GREP" >&6; } 11747 else 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11749 $as_echo "no" >&6; } 11750 fi 11751 11752 11753 if test "x$GREP" = x; then 11754 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11755 fi 11756 else 11757 # Otherwise we believe it is a complete path. Use it as it is. 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11759 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11761 $as_echo_n "checking for GREP... " >&6; } 11762 if test ! -x "$tool_specified"; then 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11764 $as_echo "not found" >&6; } 11765 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11766 fi 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11768 $as_echo "$tool_specified" >&6; } 11769 fi 11770 fi 11771 fi 11772 11773 11774 if test "x$GREP" = x; then 11775 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11776 fi 11777 11778 11779 11780 11781 # Publish this variable in the help. 11782 11783 11784 if test "x$EGREP" = x; then 11785 # The variable is not set by user, try to locate tool using the code snippet 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11787 $as_echo_n "checking for egrep... " >&6; } 11788 if ${ac_cv_path_EGREP+:} false; then : 11789 $as_echo_n "(cached) " >&6 11790 else 11791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11792 then ac_cv_path_EGREP="$GREP -E" 11793 else 11794 if test -z "$EGREP"; then 11795 ac_path_EGREP_found=false 11796 # Loop through the user's path and test for each of PROGNAME-LIST 11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11799 do 11800 IFS=$as_save_IFS 11801 test -z "$as_dir" && as_dir=. 11802 for ac_prog in egrep; do 11803 for ac_exec_ext in '' $ac_executable_extensions; do 11804 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11805 as_fn_executable_p "$ac_path_EGREP" || continue 11806 # Check for GNU ac_path_EGREP and select it if it is found. 11807 # Check for GNU $ac_path_EGREP 11808 case `"$ac_path_EGREP" --version 2>&1` in 11809 *GNU*) 11810 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11811 *) 11812 ac_count=0 11813 $as_echo_n 0123456789 >"conftest.in" 11814 while : 11815 do 11816 cat "conftest.in" "conftest.in" >"conftest.tmp" 11817 mv "conftest.tmp" "conftest.in" 11818 cp "conftest.in" "conftest.nl" 11819 $as_echo 'EGREP' >> "conftest.nl" 11820 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11822 as_fn_arith $ac_count + 1 && ac_count=$as_val 11823 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11824 # Best one so far, save it but keep looking for a better one 11825 ac_cv_path_EGREP="$ac_path_EGREP" 11826 ac_path_EGREP_max=$ac_count 11827 fi 11828 # 10*(2^10) chars as input seems more than enough 11829 test $ac_count -gt 10 && break 11830 done 11831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11832 esac 11833 11834 $ac_path_EGREP_found && break 3 11835 done 11836 done 11837 done 11838 IFS=$as_save_IFS 11839 if test -z "$ac_cv_path_EGREP"; then 11840 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11841 fi 11842 else 11843 ac_cv_path_EGREP=$EGREP 11844 fi 11845 11846 fi 11847 fi 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11849 $as_echo "$ac_cv_path_EGREP" >&6; } 11850 EGREP="$ac_cv_path_EGREP" 11851 11852 11853 else 11854 # The variable is set, but is it from the command line or the environment? 11855 11856 # Try to remove the string !EGREP! from our list. 11857 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11858 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11859 # If it failed, the variable was not from the command line. Ignore it, 11860 # but warn the user (except for BASH, which is always set by the calling BASH). 11861 if test "xEGREP" != xBASH; then 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11863 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11864 fi 11865 # Try to locate tool using the code snippet 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11867 $as_echo_n "checking for egrep... " >&6; } 11868 if ${ac_cv_path_EGREP+:} false; then : 11869 $as_echo_n "(cached) " >&6 11870 else 11871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11872 then ac_cv_path_EGREP="$GREP -E" 11873 else 11874 if test -z "$EGREP"; then 11875 ac_path_EGREP_found=false 11876 # Loop through the user's path and test for each of PROGNAME-LIST 11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11879 do 11880 IFS=$as_save_IFS 11881 test -z "$as_dir" && as_dir=. 11882 for ac_prog in egrep; do 11883 for ac_exec_ext in '' $ac_executable_extensions; do 11884 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11885 as_fn_executable_p "$ac_path_EGREP" || continue 11886 # Check for GNU ac_path_EGREP and select it if it is found. 11887 # Check for GNU $ac_path_EGREP 11888 case `"$ac_path_EGREP" --version 2>&1` in 11889 *GNU*) 11890 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11891 *) 11892 ac_count=0 11893 $as_echo_n 0123456789 >"conftest.in" 11894 while : 11895 do 11896 cat "conftest.in" "conftest.in" >"conftest.tmp" 11897 mv "conftest.tmp" "conftest.in" 11898 cp "conftest.in" "conftest.nl" 11899 $as_echo 'EGREP' >> "conftest.nl" 11900 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11902 as_fn_arith $ac_count + 1 && ac_count=$as_val 11903 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11904 # Best one so far, save it but keep looking for a better one 11905 ac_cv_path_EGREP="$ac_path_EGREP" 11906 ac_path_EGREP_max=$ac_count 11907 fi 11908 # 10*(2^10) chars as input seems more than enough 11909 test $ac_count -gt 10 && break 11910 done 11911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11912 esac 11913 11914 $ac_path_EGREP_found && break 3 11915 done 11916 done 11917 done 11918 IFS=$as_save_IFS 11919 if test -z "$ac_cv_path_EGREP"; then 11920 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11921 fi 11922 else 11923 ac_cv_path_EGREP=$EGREP 11924 fi 11925 11926 fi 11927 fi 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11929 $as_echo "$ac_cv_path_EGREP" >&6; } 11930 EGREP="$ac_cv_path_EGREP" 11931 11932 11933 else 11934 # If it succeeded, then it was overridden by the user. We will use it 11935 # for the tool. 11936 11937 # First remove it from the list of overridden variables, so we can test 11938 # for unknown variables in the end. 11939 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11940 11941 # Check if the provided tool contains a complete path. 11942 tool_specified="$EGREP" 11943 tool_basename="${tool_specified##*/}" 11944 if test "x$tool_basename" = "x$tool_specified"; then 11945 # A command without a complete path is provided, search $PATH. 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11947 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11948 # Extract the first word of "$tool_basename", so it can be a program name with args. 11949 set dummy $tool_basename; ac_word=$2 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11951 $as_echo_n "checking for $ac_word... " >&6; } 11952 if ${ac_cv_path_EGREP+:} false; then : 11953 $as_echo_n "(cached) " >&6 11954 else 11955 case $EGREP in 11956 [\\/]* | ?:[\\/]*) 11957 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11958 ;; 11959 *) 11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11961 for as_dir in $PATH 11962 do 11963 IFS=$as_save_IFS 11964 test -z "$as_dir" && as_dir=. 11965 for ac_exec_ext in '' $ac_executable_extensions; do 11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11967 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11969 break 2 11970 fi 11971 done 11972 done 11973 IFS=$as_save_IFS 11974 11975 ;; 11976 esac 11977 fi 11978 EGREP=$ac_cv_path_EGREP 11979 if test -n "$EGREP"; then 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11981 $as_echo "$EGREP" >&6; } 11982 else 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11984 $as_echo "no" >&6; } 11985 fi 11986 11987 11988 if test "x$EGREP" = x; then 11989 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11990 fi 11991 else 11992 # Otherwise we believe it is a complete path. Use it as it is. 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11994 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11996 $as_echo_n "checking for EGREP... " >&6; } 11997 if test ! -x "$tool_specified"; then 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11999 $as_echo "not found" >&6; } 12000 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12001 fi 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12003 $as_echo "$tool_specified" >&6; } 12004 fi 12005 fi 12006 fi 12007 12008 12009 if test "x$EGREP" = x; then 12010 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12011 fi 12012 12013 12014 12015 12016 # Publish this variable in the help. 12017 12018 12019 if test "x$FGREP" = x; then 12020 # The variable is not set by user, try to locate tool using the code snippet 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12022 $as_echo_n "checking for fgrep... " >&6; } 12023 if ${ac_cv_path_FGREP+:} false; then : 12024 $as_echo_n "(cached) " >&6 12025 else 12026 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12027 then ac_cv_path_FGREP="$GREP -F" 12028 else 12029 if test -z "$FGREP"; then 12030 ac_path_FGREP_found=false 12031 # Loop through the user's path and test for each of PROGNAME-LIST 12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12034 do 12035 IFS=$as_save_IFS 12036 test -z "$as_dir" && as_dir=. 12037 for ac_prog in fgrep; do 12038 for ac_exec_ext in '' $ac_executable_extensions; do 12039 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12040 as_fn_executable_p "$ac_path_FGREP" || continue 12041 # Check for GNU ac_path_FGREP and select it if it is found. 12042 # Check for GNU $ac_path_FGREP 12043 case `"$ac_path_FGREP" --version 2>&1` in 12044 *GNU*) 12045 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12046 *) 12047 ac_count=0 12048 $as_echo_n 0123456789 >"conftest.in" 12049 while : 12050 do 12051 cat "conftest.in" "conftest.in" >"conftest.tmp" 12052 mv "conftest.tmp" "conftest.in" 12053 cp "conftest.in" "conftest.nl" 12054 $as_echo 'FGREP' >> "conftest.nl" 12055 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12057 as_fn_arith $ac_count + 1 && ac_count=$as_val 12058 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12059 # Best one so far, save it but keep looking for a better one 12060 ac_cv_path_FGREP="$ac_path_FGREP" 12061 ac_path_FGREP_max=$ac_count 12062 fi 12063 # 10*(2^10) chars as input seems more than enough 12064 test $ac_count -gt 10 && break 12065 done 12066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12067 esac 12068 12069 $ac_path_FGREP_found && break 3 12070 done 12071 done 12072 done 12073 IFS=$as_save_IFS 12074 if test -z "$ac_cv_path_FGREP"; then 12075 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12076 fi 12077 else 12078 ac_cv_path_FGREP=$FGREP 12079 fi 12080 12081 fi 12082 fi 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12084 $as_echo "$ac_cv_path_FGREP" >&6; } 12085 FGREP="$ac_cv_path_FGREP" 12086 12087 12088 else 12089 # The variable is set, but is it from the command line or the environment? 12090 12091 # Try to remove the string !FGREP! from our list. 12092 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12093 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12094 # If it failed, the variable was not from the command line. Ignore it, 12095 # but warn the user (except for BASH, which is always set by the calling BASH). 12096 if test "xFGREP" != xBASH; then 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12098 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12099 fi 12100 # Try to locate tool using the code snippet 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12102 $as_echo_n "checking for fgrep... " >&6; } 12103 if ${ac_cv_path_FGREP+:} false; then : 12104 $as_echo_n "(cached) " >&6 12105 else 12106 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12107 then ac_cv_path_FGREP="$GREP -F" 12108 else 12109 if test -z "$FGREP"; then 12110 ac_path_FGREP_found=false 12111 # Loop through the user's path and test for each of PROGNAME-LIST 12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12114 do 12115 IFS=$as_save_IFS 12116 test -z "$as_dir" && as_dir=. 12117 for ac_prog in fgrep; do 12118 for ac_exec_ext in '' $ac_executable_extensions; do 12119 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12120 as_fn_executable_p "$ac_path_FGREP" || continue 12121 # Check for GNU ac_path_FGREP and select it if it is found. 12122 # Check for GNU $ac_path_FGREP 12123 case `"$ac_path_FGREP" --version 2>&1` in 12124 *GNU*) 12125 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12126 *) 12127 ac_count=0 12128 $as_echo_n 0123456789 >"conftest.in" 12129 while : 12130 do 12131 cat "conftest.in" "conftest.in" >"conftest.tmp" 12132 mv "conftest.tmp" "conftest.in" 12133 cp "conftest.in" "conftest.nl" 12134 $as_echo 'FGREP' >> "conftest.nl" 12135 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12137 as_fn_arith $ac_count + 1 && ac_count=$as_val 12138 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12139 # Best one so far, save it but keep looking for a better one 12140 ac_cv_path_FGREP="$ac_path_FGREP" 12141 ac_path_FGREP_max=$ac_count 12142 fi 12143 # 10*(2^10) chars as input seems more than enough 12144 test $ac_count -gt 10 && break 12145 done 12146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12147 esac 12148 12149 $ac_path_FGREP_found && break 3 12150 done 12151 done 12152 done 12153 IFS=$as_save_IFS 12154 if test -z "$ac_cv_path_FGREP"; then 12155 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12156 fi 12157 else 12158 ac_cv_path_FGREP=$FGREP 12159 fi 12160 12161 fi 12162 fi 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12164 $as_echo "$ac_cv_path_FGREP" >&6; } 12165 FGREP="$ac_cv_path_FGREP" 12166 12167 12168 else 12169 # If it succeeded, then it was overridden by the user. We will use it 12170 # for the tool. 12171 12172 # First remove it from the list of overridden variables, so we can test 12173 # for unknown variables in the end. 12174 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12175 12176 # Check if the provided tool contains a complete path. 12177 tool_specified="$FGREP" 12178 tool_basename="${tool_specified##*/}" 12179 if test "x$tool_basename" = "x$tool_specified"; then 12180 # A command without a complete path is provided, search $PATH. 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12182 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12183 # Extract the first word of "$tool_basename", so it can be a program name with args. 12184 set dummy $tool_basename; ac_word=$2 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12186 $as_echo_n "checking for $ac_word... " >&6; } 12187 if ${ac_cv_path_FGREP+:} false; then : 12188 $as_echo_n "(cached) " >&6 12189 else 12190 case $FGREP in 12191 [\\/]* | ?:[\\/]*) 12192 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12193 ;; 12194 *) 12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12196 for as_dir in $PATH 12197 do 12198 IFS=$as_save_IFS 12199 test -z "$as_dir" && as_dir=. 12200 for ac_exec_ext in '' $ac_executable_extensions; do 12201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12202 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12204 break 2 12205 fi 12206 done 12207 done 12208 IFS=$as_save_IFS 12209 12210 ;; 12211 esac 12212 fi 12213 FGREP=$ac_cv_path_FGREP 12214 if test -n "$FGREP"; then 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12216 $as_echo "$FGREP" >&6; } 12217 else 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12219 $as_echo "no" >&6; } 12220 fi 12221 12222 12223 if test "x$FGREP" = x; then 12224 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12225 fi 12226 else 12227 # Otherwise we believe it is a complete path. Use it as it is. 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12229 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12231 $as_echo_n "checking for FGREP... " >&6; } 12232 if test ! -x "$tool_specified"; then 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12234 $as_echo "not found" >&6; } 12235 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12236 fi 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12238 $as_echo "$tool_specified" >&6; } 12239 fi 12240 fi 12241 fi 12242 12243 12244 if test "x$FGREP" = x; then 12245 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12246 fi 12247 12248 12249 12250 12251 # Publish this variable in the help. 12252 12253 12254 if test "x$SED" = x; then 12255 # The variable is not set by user, try to locate tool using the code snippet 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12257 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12258 if ${ac_cv_path_SED+:} false; then : 12259 $as_echo_n "(cached) " >&6 12260 else 12261 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12262 for ac_i in 1 2 3 4 5 6 7; do 12263 ac_script="$ac_script$as_nl$ac_script" 12264 done 12265 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12266 { ac_script=; unset ac_script;} 12267 if test -z "$SED"; then 12268 ac_path_SED_found=false 12269 # Loop through the user's path and test for each of PROGNAME-LIST 12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12271 for as_dir in $PATH 12272 do 12273 IFS=$as_save_IFS 12274 test -z "$as_dir" && as_dir=. 12275 for ac_prog in sed gsed; do 12276 for ac_exec_ext in '' $ac_executable_extensions; do 12277 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12278 as_fn_executable_p "$ac_path_SED" || continue 12279 # Check for GNU ac_path_SED and select it if it is found. 12280 # Check for GNU $ac_path_SED 12281 case `"$ac_path_SED" --version 2>&1` in 12282 *GNU*) 12283 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12284 *) 12285 ac_count=0 12286 $as_echo_n 0123456789 >"conftest.in" 12287 while : 12288 do 12289 cat "conftest.in" "conftest.in" >"conftest.tmp" 12290 mv "conftest.tmp" "conftest.in" 12291 cp "conftest.in" "conftest.nl" 12292 $as_echo '' >> "conftest.nl" 12293 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12295 as_fn_arith $ac_count + 1 && ac_count=$as_val 12296 if test $ac_count -gt ${ac_path_SED_max-0}; then 12297 # Best one so far, save it but keep looking for a better one 12298 ac_cv_path_SED="$ac_path_SED" 12299 ac_path_SED_max=$ac_count 12300 fi 12301 # 10*(2^10) chars as input seems more than enough 12302 test $ac_count -gt 10 && break 12303 done 12304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12305 esac 12306 12307 $ac_path_SED_found && break 3 12308 done 12309 done 12310 done 12311 IFS=$as_save_IFS 12312 if test -z "$ac_cv_path_SED"; then 12313 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12314 fi 12315 else 12316 ac_cv_path_SED=$SED 12317 fi 12318 12319 fi 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12321 $as_echo "$ac_cv_path_SED" >&6; } 12322 SED="$ac_cv_path_SED" 12323 rm -f conftest.sed 12324 12325 else 12326 # The variable is set, but is it from the command line or the environment? 12327 12328 # Try to remove the string !SED! from our list. 12329 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12330 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12331 # If it failed, the variable was not from the command line. Ignore it, 12332 # but warn the user (except for BASH, which is always set by the calling BASH). 12333 if test "xSED" != xBASH; then 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12335 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12336 fi 12337 # Try to locate tool using the code snippet 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12339 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12340 if ${ac_cv_path_SED+:} false; then : 12341 $as_echo_n "(cached) " >&6 12342 else 12343 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12344 for ac_i in 1 2 3 4 5 6 7; do 12345 ac_script="$ac_script$as_nl$ac_script" 12346 done 12347 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12348 { ac_script=; unset ac_script;} 12349 if test -z "$SED"; then 12350 ac_path_SED_found=false 12351 # Loop through the user's path and test for each of PROGNAME-LIST 12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12353 for as_dir in $PATH 12354 do 12355 IFS=$as_save_IFS 12356 test -z "$as_dir" && as_dir=. 12357 for ac_prog in sed gsed; do 12358 for ac_exec_ext in '' $ac_executable_extensions; do 12359 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12360 as_fn_executable_p "$ac_path_SED" || continue 12361 # Check for GNU ac_path_SED and select it if it is found. 12362 # Check for GNU $ac_path_SED 12363 case `"$ac_path_SED" --version 2>&1` in 12364 *GNU*) 12365 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12366 *) 12367 ac_count=0 12368 $as_echo_n 0123456789 >"conftest.in" 12369 while : 12370 do 12371 cat "conftest.in" "conftest.in" >"conftest.tmp" 12372 mv "conftest.tmp" "conftest.in" 12373 cp "conftest.in" "conftest.nl" 12374 $as_echo '' >> "conftest.nl" 12375 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12377 as_fn_arith $ac_count + 1 && ac_count=$as_val 12378 if test $ac_count -gt ${ac_path_SED_max-0}; then 12379 # Best one so far, save it but keep looking for a better one 12380 ac_cv_path_SED="$ac_path_SED" 12381 ac_path_SED_max=$ac_count 12382 fi 12383 # 10*(2^10) chars as input seems more than enough 12384 test $ac_count -gt 10 && break 12385 done 12386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12387 esac 12388 12389 $ac_path_SED_found && break 3 12390 done 12391 done 12392 done 12393 IFS=$as_save_IFS 12394 if test -z "$ac_cv_path_SED"; then 12395 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12396 fi 12397 else 12398 ac_cv_path_SED=$SED 12399 fi 12400 12401 fi 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12403 $as_echo "$ac_cv_path_SED" >&6; } 12404 SED="$ac_cv_path_SED" 12405 rm -f conftest.sed 12406 12407 else 12408 # If it succeeded, then it was overridden by the user. We will use it 12409 # for the tool. 12410 12411 # First remove it from the list of overridden variables, so we can test 12412 # for unknown variables in the end. 12413 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12414 12415 # Check if the provided tool contains a complete path. 12416 tool_specified="$SED" 12417 tool_basename="${tool_specified##*/}" 12418 if test "x$tool_basename" = "x$tool_specified"; then 12419 # A command without a complete path is provided, search $PATH. 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12421 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12422 # Extract the first word of "$tool_basename", so it can be a program name with args. 12423 set dummy $tool_basename; ac_word=$2 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12425 $as_echo_n "checking for $ac_word... " >&6; } 12426 if ${ac_cv_path_SED+:} false; then : 12427 $as_echo_n "(cached) " >&6 12428 else 12429 case $SED in 12430 [\\/]* | ?:[\\/]*) 12431 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12432 ;; 12433 *) 12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12435 for as_dir in $PATH 12436 do 12437 IFS=$as_save_IFS 12438 test -z "$as_dir" && as_dir=. 12439 for ac_exec_ext in '' $ac_executable_extensions; do 12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12441 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12443 break 2 12444 fi 12445 done 12446 done 12447 IFS=$as_save_IFS 12448 12449 ;; 12450 esac 12451 fi 12452 SED=$ac_cv_path_SED 12453 if test -n "$SED"; then 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12455 $as_echo "$SED" >&6; } 12456 else 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12458 $as_echo "no" >&6; } 12459 fi 12460 12461 12462 if test "x$SED" = x; then 12463 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12464 fi 12465 else 12466 # Otherwise we believe it is a complete path. Use it as it is. 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12468 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12470 $as_echo_n "checking for SED... " >&6; } 12471 if test ! -x "$tool_specified"; then 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12473 $as_echo "not found" >&6; } 12474 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12475 fi 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12477 $as_echo "$tool_specified" >&6; } 12478 fi 12479 fi 12480 fi 12481 12482 12483 if test "x$SED" = x; then 12484 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12485 fi 12486 12487 12488 12489 # Always force rm. 12490 RM="$RM -f" 12491 12492 # pwd behaves differently on various platforms and some don't support the -L flag. 12493 # Always use the bash builtin pwd to get uniform behavior. 12494 THEPWDCMD=pwd 12495 12496 # These are not required on all platforms 12497 12498 12499 # Publish this variable in the help. 12500 12501 12502 if test "x$CYGPATH" = x; then 12503 # The variable is not set by user, try to locate tool using the code snippet 12504 for ac_prog in cygpath 12505 do 12506 # Extract the first word of "$ac_prog", so it can be a program name with args. 12507 set dummy $ac_prog; ac_word=$2 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12509 $as_echo_n "checking for $ac_word... " >&6; } 12510 if ${ac_cv_path_CYGPATH+:} false; then : 12511 $as_echo_n "(cached) " >&6 12512 else 12513 case $CYGPATH in 12514 [\\/]* | ?:[\\/]*) 12515 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12516 ;; 12517 *) 12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12519 for as_dir in $PATH 12520 do 12521 IFS=$as_save_IFS 12522 test -z "$as_dir" && as_dir=. 12523 for ac_exec_ext in '' $ac_executable_extensions; do 12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12525 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12527 break 2 12528 fi 12529 done 12530 done 12531 IFS=$as_save_IFS 12532 12533 ;; 12534 esac 12535 fi 12536 CYGPATH=$ac_cv_path_CYGPATH 12537 if test -n "$CYGPATH"; then 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12539 $as_echo "$CYGPATH" >&6; } 12540 else 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542 $as_echo "no" >&6; } 12543 fi 12544 12545 12546 test -n "$CYGPATH" && break 12547 done 12548 12549 else 12550 # The variable is set, but is it from the command line or the environment? 12551 12552 # Try to remove the string !CYGPATH! from our list. 12553 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12554 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12555 # If it failed, the variable was not from the command line. Ignore it, 12556 # but warn the user (except for BASH, which is always set by the calling BASH). 12557 if test "xCYGPATH" != xBASH; then 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12559 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12560 fi 12561 # Try to locate tool using the code snippet 12562 for ac_prog in cygpath 12563 do 12564 # Extract the first word of "$ac_prog", so it can be a program name with args. 12565 set dummy $ac_prog; ac_word=$2 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12567 $as_echo_n "checking for $ac_word... " >&6; } 12568 if ${ac_cv_path_CYGPATH+:} false; then : 12569 $as_echo_n "(cached) " >&6 12570 else 12571 case $CYGPATH in 12572 [\\/]* | ?:[\\/]*) 12573 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12574 ;; 12575 *) 12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12577 for as_dir in $PATH 12578 do 12579 IFS=$as_save_IFS 12580 test -z "$as_dir" && as_dir=. 12581 for ac_exec_ext in '' $ac_executable_extensions; do 12582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12583 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12585 break 2 12586 fi 12587 done 12588 done 12589 IFS=$as_save_IFS 12590 12591 ;; 12592 esac 12593 fi 12594 CYGPATH=$ac_cv_path_CYGPATH 12595 if test -n "$CYGPATH"; then 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12597 $as_echo "$CYGPATH" >&6; } 12598 else 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12600 $as_echo "no" >&6; } 12601 fi 12602 12603 12604 test -n "$CYGPATH" && break 12605 done 12606 12607 else 12608 # If it succeeded, then it was overridden by the user. We will use it 12609 # for the tool. 12610 12611 # First remove it from the list of overridden variables, so we can test 12612 # for unknown variables in the end. 12613 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12614 12615 # Check if the provided tool contains a complete path. 12616 tool_specified="$CYGPATH" 12617 tool_basename="${tool_specified##*/}" 12618 if test "x$tool_basename" = "x$tool_specified"; then 12619 # A command without a complete path is provided, search $PATH. 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12621 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12622 # Extract the first word of "$tool_basename", so it can be a program name with args. 12623 set dummy $tool_basename; ac_word=$2 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12625 $as_echo_n "checking for $ac_word... " >&6; } 12626 if ${ac_cv_path_CYGPATH+:} false; then : 12627 $as_echo_n "(cached) " >&6 12628 else 12629 case $CYGPATH in 12630 [\\/]* | ?:[\\/]*) 12631 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12632 ;; 12633 *) 12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12635 for as_dir in $PATH 12636 do 12637 IFS=$as_save_IFS 12638 test -z "$as_dir" && as_dir=. 12639 for ac_exec_ext in '' $ac_executable_extensions; do 12640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12641 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12643 break 2 12644 fi 12645 done 12646 done 12647 IFS=$as_save_IFS 12648 12649 ;; 12650 esac 12651 fi 12652 CYGPATH=$ac_cv_path_CYGPATH 12653 if test -n "$CYGPATH"; then 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12655 $as_echo "$CYGPATH" >&6; } 12656 else 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12658 $as_echo "no" >&6; } 12659 fi 12660 12661 12662 if test "x$CYGPATH" = x; then 12663 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12664 fi 12665 else 12666 # Otherwise we believe it is a complete path. Use it as it is. 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12668 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12670 $as_echo_n "checking for CYGPATH... " >&6; } 12671 if test ! -x "$tool_specified"; then 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12673 $as_echo "not found" >&6; } 12674 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12675 fi 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12677 $as_echo "$tool_specified" >&6; } 12678 fi 12679 fi 12680 fi 12681 12682 12683 12684 12685 # Publish this variable in the help. 12686 12687 12688 if test "x$READLINK" = x; then 12689 # The variable is not set by user, try to locate tool using the code snippet 12690 for ac_prog in greadlink readlink 12691 do 12692 # Extract the first word of "$ac_prog", so it can be a program name with args. 12693 set dummy $ac_prog; ac_word=$2 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12695 $as_echo_n "checking for $ac_word... " >&6; } 12696 if ${ac_cv_path_READLINK+:} false; then : 12697 $as_echo_n "(cached) " >&6 12698 else 12699 case $READLINK in 12700 [\\/]* | ?:[\\/]*) 12701 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12702 ;; 12703 *) 12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12705 for as_dir in $PATH 12706 do 12707 IFS=$as_save_IFS 12708 test -z "$as_dir" && as_dir=. 12709 for ac_exec_ext in '' $ac_executable_extensions; do 12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12711 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12713 break 2 12714 fi 12715 done 12716 done 12717 IFS=$as_save_IFS 12718 12719 ;; 12720 esac 12721 fi 12722 READLINK=$ac_cv_path_READLINK 12723 if test -n "$READLINK"; then 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12725 $as_echo "$READLINK" >&6; } 12726 else 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12728 $as_echo "no" >&6; } 12729 fi 12730 12731 12732 test -n "$READLINK" && break 12733 done 12734 12735 else 12736 # The variable is set, but is it from the command line or the environment? 12737 12738 # Try to remove the string !READLINK! from our list. 12739 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12740 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12741 # If it failed, the variable was not from the command line. Ignore it, 12742 # but warn the user (except for BASH, which is always set by the calling BASH). 12743 if test "xREADLINK" != xBASH; then 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12745 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12746 fi 12747 # Try to locate tool using the code snippet 12748 for ac_prog in greadlink readlink 12749 do 12750 # Extract the first word of "$ac_prog", so it can be a program name with args. 12751 set dummy $ac_prog; ac_word=$2 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12753 $as_echo_n "checking for $ac_word... " >&6; } 12754 if ${ac_cv_path_READLINK+:} false; then : 12755 $as_echo_n "(cached) " >&6 12756 else 12757 case $READLINK in 12758 [\\/]* | ?:[\\/]*) 12759 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12760 ;; 12761 *) 12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12763 for as_dir in $PATH 12764 do 12765 IFS=$as_save_IFS 12766 test -z "$as_dir" && as_dir=. 12767 for ac_exec_ext in '' $ac_executable_extensions; do 12768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12769 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12771 break 2 12772 fi 12773 done 12774 done 12775 IFS=$as_save_IFS 12776 12777 ;; 12778 esac 12779 fi 12780 READLINK=$ac_cv_path_READLINK 12781 if test -n "$READLINK"; then 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12783 $as_echo "$READLINK" >&6; } 12784 else 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12786 $as_echo "no" >&6; } 12787 fi 12788 12789 12790 test -n "$READLINK" && break 12791 done 12792 12793 else 12794 # If it succeeded, then it was overridden by the user. We will use it 12795 # for the tool. 12796 12797 # First remove it from the list of overridden variables, so we can test 12798 # for unknown variables in the end. 12799 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12800 12801 # Check if the provided tool contains a complete path. 12802 tool_specified="$READLINK" 12803 tool_basename="${tool_specified##*/}" 12804 if test "x$tool_basename" = "x$tool_specified"; then 12805 # A command without a complete path is provided, search $PATH. 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12807 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12808 # Extract the first word of "$tool_basename", so it can be a program name with args. 12809 set dummy $tool_basename; ac_word=$2 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12811 $as_echo_n "checking for $ac_word... " >&6; } 12812 if ${ac_cv_path_READLINK+:} false; then : 12813 $as_echo_n "(cached) " >&6 12814 else 12815 case $READLINK in 12816 [\\/]* | ?:[\\/]*) 12817 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12818 ;; 12819 *) 12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12821 for as_dir in $PATH 12822 do 12823 IFS=$as_save_IFS 12824 test -z "$as_dir" && as_dir=. 12825 for ac_exec_ext in '' $ac_executable_extensions; do 12826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12827 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12829 break 2 12830 fi 12831 done 12832 done 12833 IFS=$as_save_IFS 12834 12835 ;; 12836 esac 12837 fi 12838 READLINK=$ac_cv_path_READLINK 12839 if test -n "$READLINK"; then 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12841 $as_echo "$READLINK" >&6; } 12842 else 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12844 $as_echo "no" >&6; } 12845 fi 12846 12847 12848 if test "x$READLINK" = x; then 12849 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12850 fi 12851 else 12852 # Otherwise we believe it is a complete path. Use it as it is. 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12854 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12856 $as_echo_n "checking for READLINK... " >&6; } 12857 if test ! -x "$tool_specified"; then 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12859 $as_echo "not found" >&6; } 12860 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12861 fi 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12863 $as_echo "$tool_specified" >&6; } 12864 fi 12865 fi 12866 fi 12867 12868 12869 12870 12871 # Publish this variable in the help. 12872 12873 12874 if test "x$DF" = x; then 12875 # The variable is not set by user, try to locate tool using the code snippet 12876 for ac_prog in df 12877 do 12878 # Extract the first word of "$ac_prog", so it can be a program name with args. 12879 set dummy $ac_prog; ac_word=$2 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12881 $as_echo_n "checking for $ac_word... " >&6; } 12882 if ${ac_cv_path_DF+:} false; then : 12883 $as_echo_n "(cached) " >&6 12884 else 12885 case $DF in 12886 [\\/]* | ?:[\\/]*) 12887 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12888 ;; 12889 *) 12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12891 for as_dir in $PATH 12892 do 12893 IFS=$as_save_IFS 12894 test -z "$as_dir" && as_dir=. 12895 for ac_exec_ext in '' $ac_executable_extensions; do 12896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12897 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12899 break 2 12900 fi 12901 done 12902 done 12903 IFS=$as_save_IFS 12904 12905 ;; 12906 esac 12907 fi 12908 DF=$ac_cv_path_DF 12909 if test -n "$DF"; then 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12911 $as_echo "$DF" >&6; } 12912 else 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12914 $as_echo "no" >&6; } 12915 fi 12916 12917 12918 test -n "$DF" && break 12919 done 12920 12921 else 12922 # The variable is set, but is it from the command line or the environment? 12923 12924 # Try to remove the string !DF! from our list. 12925 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12926 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12927 # If it failed, the variable was not from the command line. Ignore it, 12928 # but warn the user (except for BASH, which is always set by the calling BASH). 12929 if test "xDF" != xBASH; then 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12931 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12932 fi 12933 # Try to locate tool using the code snippet 12934 for ac_prog in df 12935 do 12936 # Extract the first word of "$ac_prog", so it can be a program name with args. 12937 set dummy $ac_prog; ac_word=$2 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12939 $as_echo_n "checking for $ac_word... " >&6; } 12940 if ${ac_cv_path_DF+:} false; then : 12941 $as_echo_n "(cached) " >&6 12942 else 12943 case $DF in 12944 [\\/]* | ?:[\\/]*) 12945 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12946 ;; 12947 *) 12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12949 for as_dir in $PATH 12950 do 12951 IFS=$as_save_IFS 12952 test -z "$as_dir" && as_dir=. 12953 for ac_exec_ext in '' $ac_executable_extensions; do 12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12955 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12957 break 2 12958 fi 12959 done 12960 done 12961 IFS=$as_save_IFS 12962 12963 ;; 12964 esac 12965 fi 12966 DF=$ac_cv_path_DF 12967 if test -n "$DF"; then 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12969 $as_echo "$DF" >&6; } 12970 else 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12972 $as_echo "no" >&6; } 12973 fi 12974 12975 12976 test -n "$DF" && break 12977 done 12978 12979 else 12980 # If it succeeded, then it was overridden by the user. We will use it 12981 # for the tool. 12982 12983 # First remove it from the list of overridden variables, so we can test 12984 # for unknown variables in the end. 12985 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12986 12987 # Check if the provided tool contains a complete path. 12988 tool_specified="$DF" 12989 tool_basename="${tool_specified##*/}" 12990 if test "x$tool_basename" = "x$tool_specified"; then 12991 # A command without a complete path is provided, search $PATH. 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12993 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12994 # Extract the first word of "$tool_basename", so it can be a program name with args. 12995 set dummy $tool_basename; ac_word=$2 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12997 $as_echo_n "checking for $ac_word... " >&6; } 12998 if ${ac_cv_path_DF+:} false; then : 12999 $as_echo_n "(cached) " >&6 13000 else 13001 case $DF in 13002 [\\/]* | ?:[\\/]*) 13003 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13004 ;; 13005 *) 13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13007 for as_dir in $PATH 13008 do 13009 IFS=$as_save_IFS 13010 test -z "$as_dir" && as_dir=. 13011 for ac_exec_ext in '' $ac_executable_extensions; do 13012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13013 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13015 break 2 13016 fi 13017 done 13018 done 13019 IFS=$as_save_IFS 13020 13021 ;; 13022 esac 13023 fi 13024 DF=$ac_cv_path_DF 13025 if test -n "$DF"; then 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13027 $as_echo "$DF" >&6; } 13028 else 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13030 $as_echo "no" >&6; } 13031 fi 13032 13033 13034 if test "x$DF" = x; then 13035 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13036 fi 13037 else 13038 # Otherwise we believe it is a complete path. Use it as it is. 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13040 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13042 $as_echo_n "checking for DF... " >&6; } 13043 if test ! -x "$tool_specified"; then 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13045 $as_echo "not found" >&6; } 13046 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13047 fi 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13049 $as_echo "$tool_specified" >&6; } 13050 fi 13051 fi 13052 fi 13053 13054 13055 13056 13057 # Publish this variable in the help. 13058 13059 13060 if test "x$SETFILE" = x; then 13061 # The variable is not set by user, try to locate tool using the code snippet 13062 for ac_prog in SetFile 13063 do 13064 # Extract the first word of "$ac_prog", so it can be a program name with args. 13065 set dummy $ac_prog; ac_word=$2 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13067 $as_echo_n "checking for $ac_word... " >&6; } 13068 if ${ac_cv_path_SETFILE+:} false; then : 13069 $as_echo_n "(cached) " >&6 13070 else 13071 case $SETFILE in 13072 [\\/]* | ?:[\\/]*) 13073 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13074 ;; 13075 *) 13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13077 for as_dir in $PATH 13078 do 13079 IFS=$as_save_IFS 13080 test -z "$as_dir" && as_dir=. 13081 for ac_exec_ext in '' $ac_executable_extensions; do 13082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13083 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13085 break 2 13086 fi 13087 done 13088 done 13089 IFS=$as_save_IFS 13090 13091 ;; 13092 esac 13093 fi 13094 SETFILE=$ac_cv_path_SETFILE 13095 if test -n "$SETFILE"; then 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13097 $as_echo "$SETFILE" >&6; } 13098 else 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13100 $as_echo "no" >&6; } 13101 fi 13102 13103 13104 test -n "$SETFILE" && break 13105 done 13106 13107 else 13108 # The variable is set, but is it from the command line or the environment? 13109 13110 # Try to remove the string !SETFILE! from our list. 13111 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13112 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13113 # If it failed, the variable was not from the command line. Ignore it, 13114 # but warn the user (except for BASH, which is always set by the calling BASH). 13115 if test "xSETFILE" != xBASH; then 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13117 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13118 fi 13119 # Try to locate tool using the code snippet 13120 for ac_prog in SetFile 13121 do 13122 # Extract the first word of "$ac_prog", so it can be a program name with args. 13123 set dummy $ac_prog; ac_word=$2 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13125 $as_echo_n "checking for $ac_word... " >&6; } 13126 if ${ac_cv_path_SETFILE+:} false; then : 13127 $as_echo_n "(cached) " >&6 13128 else 13129 case $SETFILE in 13130 [\\/]* | ?:[\\/]*) 13131 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13132 ;; 13133 *) 13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13135 for as_dir in $PATH 13136 do 13137 IFS=$as_save_IFS 13138 test -z "$as_dir" && as_dir=. 13139 for ac_exec_ext in '' $ac_executable_extensions; do 13140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13141 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13143 break 2 13144 fi 13145 done 13146 done 13147 IFS=$as_save_IFS 13148 13149 ;; 13150 esac 13151 fi 13152 SETFILE=$ac_cv_path_SETFILE 13153 if test -n "$SETFILE"; then 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13155 $as_echo "$SETFILE" >&6; } 13156 else 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13158 $as_echo "no" >&6; } 13159 fi 13160 13161 13162 test -n "$SETFILE" && break 13163 done 13164 13165 else 13166 # If it succeeded, then it was overridden by the user. We will use it 13167 # for the tool. 13168 13169 # First remove it from the list of overridden variables, so we can test 13170 # for unknown variables in the end. 13171 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13172 13173 # Check if the provided tool contains a complete path. 13174 tool_specified="$SETFILE" 13175 tool_basename="${tool_specified##*/}" 13176 if test "x$tool_basename" = "x$tool_specified"; then 13177 # A command without a complete path is provided, search $PATH. 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13179 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13180 # Extract the first word of "$tool_basename", so it can be a program name with args. 13181 set dummy $tool_basename; ac_word=$2 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13183 $as_echo_n "checking for $ac_word... " >&6; } 13184 if ${ac_cv_path_SETFILE+:} false; then : 13185 $as_echo_n "(cached) " >&6 13186 else 13187 case $SETFILE in 13188 [\\/]* | ?:[\\/]*) 13189 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13190 ;; 13191 *) 13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13193 for as_dir in $PATH 13194 do 13195 IFS=$as_save_IFS 13196 test -z "$as_dir" && as_dir=. 13197 for ac_exec_ext in '' $ac_executable_extensions; do 13198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13199 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13201 break 2 13202 fi 13203 done 13204 done 13205 IFS=$as_save_IFS 13206 13207 ;; 13208 esac 13209 fi 13210 SETFILE=$ac_cv_path_SETFILE 13211 if test -n "$SETFILE"; then 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13213 $as_echo "$SETFILE" >&6; } 13214 else 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13216 $as_echo "no" >&6; } 13217 fi 13218 13219 13220 if test "x$SETFILE" = x; then 13221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13222 fi 13223 else 13224 # Otherwise we believe it is a complete path. Use it as it is. 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13226 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13228 $as_echo_n "checking for SETFILE... " >&6; } 13229 if test ! -x "$tool_specified"; then 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13231 $as_echo "not found" >&6; } 13232 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13233 fi 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13235 $as_echo "$tool_specified" >&6; } 13236 fi 13237 fi 13238 fi 13239 13240 13241 13242 13243 # Publish this variable in the help. 13244 13245 13246 if test "x$CPIO" = x; then 13247 # The variable is not set by user, try to locate tool using the code snippet 13248 for ac_prog in cpio bsdcpio 13249 do 13250 # Extract the first word of "$ac_prog", so it can be a program name with args. 13251 set dummy $ac_prog; ac_word=$2 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13253 $as_echo_n "checking for $ac_word... " >&6; } 13254 if ${ac_cv_path_CPIO+:} false; then : 13255 $as_echo_n "(cached) " >&6 13256 else 13257 case $CPIO in 13258 [\\/]* | ?:[\\/]*) 13259 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13260 ;; 13261 *) 13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13263 for as_dir in $PATH 13264 do 13265 IFS=$as_save_IFS 13266 test -z "$as_dir" && as_dir=. 13267 for ac_exec_ext in '' $ac_executable_extensions; do 13268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13269 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13271 break 2 13272 fi 13273 done 13274 done 13275 IFS=$as_save_IFS 13276 13277 ;; 13278 esac 13279 fi 13280 CPIO=$ac_cv_path_CPIO 13281 if test -n "$CPIO"; then 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13283 $as_echo "$CPIO" >&6; } 13284 else 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13286 $as_echo "no" >&6; } 13287 fi 13288 13289 13290 test -n "$CPIO" && break 13291 done 13292 13293 else 13294 # The variable is set, but is it from the command line or the environment? 13295 13296 # Try to remove the string !CPIO! from our list. 13297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13299 # If it failed, the variable was not from the command line. Ignore it, 13300 # but warn the user (except for BASH, which is always set by the calling BASH). 13301 if test "xCPIO" != xBASH; then 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13303 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13304 fi 13305 # Try to locate tool using the code snippet 13306 for ac_prog in cpio bsdcpio 13307 do 13308 # Extract the first word of "$ac_prog", so it can be a program name with args. 13309 set dummy $ac_prog; ac_word=$2 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13311 $as_echo_n "checking for $ac_word... " >&6; } 13312 if ${ac_cv_path_CPIO+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314 else 13315 case $CPIO in 13316 [\\/]* | ?:[\\/]*) 13317 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13318 ;; 13319 *) 13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13321 for as_dir in $PATH 13322 do 13323 IFS=$as_save_IFS 13324 test -z "$as_dir" && as_dir=. 13325 for ac_exec_ext in '' $ac_executable_extensions; do 13326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13327 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13329 break 2 13330 fi 13331 done 13332 done 13333 IFS=$as_save_IFS 13334 13335 ;; 13336 esac 13337 fi 13338 CPIO=$ac_cv_path_CPIO 13339 if test -n "$CPIO"; then 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13341 $as_echo "$CPIO" >&6; } 13342 else 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13344 $as_echo "no" >&6; } 13345 fi 13346 13347 13348 test -n "$CPIO" && break 13349 done 13350 13351 else 13352 # If it succeeded, then it was overridden by the user. We will use it 13353 # for the tool. 13354 13355 # First remove it from the list of overridden variables, so we can test 13356 # for unknown variables in the end. 13357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13358 13359 # Check if the provided tool contains a complete path. 13360 tool_specified="$CPIO" 13361 tool_basename="${tool_specified##*/}" 13362 if test "x$tool_basename" = "x$tool_specified"; then 13363 # A command without a complete path is provided, search $PATH. 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13365 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13366 # Extract the first word of "$tool_basename", so it can be a program name with args. 13367 set dummy $tool_basename; ac_word=$2 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13369 $as_echo_n "checking for $ac_word... " >&6; } 13370 if ${ac_cv_path_CPIO+:} false; then : 13371 $as_echo_n "(cached) " >&6 13372 else 13373 case $CPIO in 13374 [\\/]* | ?:[\\/]*) 13375 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13376 ;; 13377 *) 13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13379 for as_dir in $PATH 13380 do 13381 IFS=$as_save_IFS 13382 test -z "$as_dir" && as_dir=. 13383 for ac_exec_ext in '' $ac_executable_extensions; do 13384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13385 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13387 break 2 13388 fi 13389 done 13390 done 13391 IFS=$as_save_IFS 13392 13393 ;; 13394 esac 13395 fi 13396 CPIO=$ac_cv_path_CPIO 13397 if test -n "$CPIO"; then 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13399 $as_echo "$CPIO" >&6; } 13400 else 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13402 $as_echo "no" >&6; } 13403 fi 13404 13405 13406 if test "x$CPIO" = x; then 13407 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13408 fi 13409 else 13410 # Otherwise we believe it is a complete path. Use it as it is. 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13412 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13414 $as_echo_n "checking for CPIO... " >&6; } 13415 if test ! -x "$tool_specified"; then 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13417 $as_echo "not found" >&6; } 13418 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13419 fi 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13421 $as_echo "$tool_specified" >&6; } 13422 fi 13423 fi 13424 fi 13425 13426 13427 13428 13429 # Now we can determine OpenJDK build and target platforms. This is required to 13430 # have early on. 13431 # Make sure we can run config.sub. 13432 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13433 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13434 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13436 $as_echo_n "checking build system type... " >&6; } 13437 if ${ac_cv_build+:} false; then : 13438 $as_echo_n "(cached) " >&6 13439 else 13440 ac_build_alias=$build_alias 13441 test "x$ac_build_alias" = x && 13442 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13443 test "x$ac_build_alias" = x && 13444 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13447 13448 fi 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13450 $as_echo "$ac_cv_build" >&6; } 13451 case $ac_cv_build in 13452 *-*-*) ;; 13453 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13454 esac 13455 build=$ac_cv_build 13456 ac_save_IFS=$IFS; IFS='-' 13457 set x $ac_cv_build 13458 shift 13459 build_cpu=$1 13460 build_vendor=$2 13461 shift; shift 13462 # Remember, the first character of IFS is used to create $*, 13463 # except with old shells: 13464 build_os=$* 13465 IFS=$ac_save_IFS 13466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13467 13468 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13470 $as_echo_n "checking host system type... " >&6; } 13471 if ${ac_cv_host+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473 else 13474 if test "x$host_alias" = x; then 13475 ac_cv_host=$ac_cv_build 13476 else 13477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13479 fi 13480 13481 fi 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13483 $as_echo "$ac_cv_host" >&6; } 13484 case $ac_cv_host in 13485 *-*-*) ;; 13486 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13487 esac 13488 host=$ac_cv_host 13489 ac_save_IFS=$IFS; IFS='-' 13490 set x $ac_cv_host 13491 shift 13492 host_cpu=$1 13493 host_vendor=$2 13494 shift; shift 13495 # Remember, the first character of IFS is used to create $*, 13496 # except with old shells: 13497 host_os=$* 13498 IFS=$ac_save_IFS 13499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13500 13501 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13503 $as_echo_n "checking target system type... " >&6; } 13504 if ${ac_cv_target+:} false; then : 13505 $as_echo_n "(cached) " >&6 13506 else 13507 if test "x$target_alias" = x; then 13508 ac_cv_target=$ac_cv_host 13509 else 13510 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13512 fi 13513 13514 fi 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13516 $as_echo "$ac_cv_target" >&6; } 13517 case $ac_cv_target in 13518 *-*-*) ;; 13519 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13520 esac 13521 target=$ac_cv_target 13522 ac_save_IFS=$IFS; IFS='-' 13523 set x $ac_cv_target 13524 shift 13525 target_cpu=$1 13526 target_vendor=$2 13527 shift; shift 13528 # Remember, the first character of IFS is used to create $*, 13529 # except with old shells: 13530 target_os=$* 13531 IFS=$ac_save_IFS 13532 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13533 13534 13535 # The aliases save the names the user supplied, while $host etc. 13536 # will get canonicalized. 13537 test -n "$target_alias" && 13538 test "$program_prefix$program_suffix$program_transform_name" = \ 13539 NONENONEs,x,x, && 13540 program_prefix=${target_alias}- 13541 13542 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13543 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13544 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13545 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13546 # to use the configure naming style. 13547 13548 13549 13550 13551 13552 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13553 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13554 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13555 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13556 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13557 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13558 13559 13560 13561 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13562 13563 case "$build_os" in 13564 *linux*) 13565 VAR_OS=linux 13566 VAR_OS_TYPE=unix 13567 ;; 13568 *solaris*) 13569 VAR_OS=solaris 13570 VAR_OS_TYPE=unix 13571 ;; 13572 *darwin*) 13573 VAR_OS=macosx 13574 VAR_OS_TYPE=unix 13575 ;; 13576 *bsd*) 13577 VAR_OS=bsd 13578 VAR_OS_TYPE=unix 13579 ;; 13580 *cygwin*) 13581 VAR_OS=windows 13582 VAR_OS_ENV=windows.cygwin 13583 ;; 13584 *mingw*) 13585 VAR_OS=windows 13586 VAR_OS_ENV=windows.msys 13587 ;; 13588 *aix*) 13589 VAR_OS=aix 13590 VAR_OS_TYPE=unix 13591 ;; 13592 *) 13593 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13594 ;; 13595 esac 13596 13597 13598 # First argument is the cpu name from the trip/quad 13599 case "$build_cpu" in 13600 x86_64) 13601 VAR_CPU=x86_64 13602 VAR_CPU_ARCH=x86 13603 VAR_CPU_BITS=64 13604 VAR_CPU_ENDIAN=little 13605 ;; 13606 i?86) 13607 VAR_CPU=x86 13608 VAR_CPU_ARCH=x86 13609 VAR_CPU_BITS=32 13610 VAR_CPU_ENDIAN=little 13611 ;; 13612 arm*) 13613 VAR_CPU=arm 13614 VAR_CPU_ARCH=arm 13615 VAR_CPU_BITS=32 13616 VAR_CPU_ENDIAN=little 13617 ;; 13618 aarch64) 13619 VAR_CPU=aarch64 13620 VAR_CPU_ARCH=aarch64 13621 VAR_CPU_BITS=64 13622 VAR_CPU_ENDIAN=little 13623 ;; 13624 powerpc) 13625 VAR_CPU=ppc 13626 VAR_CPU_ARCH=ppc 13627 VAR_CPU_BITS=32 13628 VAR_CPU_ENDIAN=big 13629 ;; 13630 powerpc64) 13631 VAR_CPU=ppc64 13632 VAR_CPU_ARCH=ppc 13633 VAR_CPU_BITS=64 13634 VAR_CPU_ENDIAN=big 13635 ;; 13636 powerpc64le) 13637 VAR_CPU=ppc64 13638 VAR_CPU_ARCH=ppc 13639 VAR_CPU_BITS=64 13640 VAR_CPU_ENDIAN=little 13641 ;; 13642 s390) 13643 VAR_CPU=s390 13644 VAR_CPU_ARCH=s390 13645 VAR_CPU_BITS=32 13646 VAR_CPU_ENDIAN=big 13647 ;; 13648 s390x) 13649 VAR_CPU=s390x 13650 VAR_CPU_ARCH=s390 13651 VAR_CPU_BITS=64 13652 VAR_CPU_ENDIAN=big 13653 ;; 13654 sparc) 13655 VAR_CPU=sparc 13656 VAR_CPU_ARCH=sparc 13657 VAR_CPU_BITS=32 13658 VAR_CPU_ENDIAN=big 13659 ;; 13660 sparcv9|sparc64) 13661 VAR_CPU=sparcv9 13662 VAR_CPU_ARCH=sparc 13663 VAR_CPU_BITS=64 13664 VAR_CPU_ENDIAN=big 13665 ;; 13666 *) 13667 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13668 ;; 13669 esac 13670 13671 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13672 OPENJDK_BUILD_OS="$VAR_OS" 13673 if test "x$VAR_OS_TYPE" != x; then 13674 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 13675 else 13676 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 13677 fi 13678 if test "x$VAR_OS_ENV" != x; then 13679 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13680 else 13681 OPENJDK_BUILD_OS_ENV="$VAR_OS" 13682 fi 13683 OPENJDK_BUILD_CPU="$VAR_CPU" 13684 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13685 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13686 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13687 13688 13689 13690 13691 13692 13693 13694 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13696 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13698 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13699 13700 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13701 13702 case "$host_os" in 13703 *linux*) 13704 VAR_OS=linux 13705 VAR_OS_TYPE=unix 13706 ;; 13707 *solaris*) 13708 VAR_OS=solaris 13709 VAR_OS_TYPE=unix 13710 ;; 13711 *darwin*) 13712 VAR_OS=macosx 13713 VAR_OS_TYPE=unix 13714 ;; 13715 *bsd*) 13716 VAR_OS=bsd 13717 VAR_OS_TYPE=unix 13718 ;; 13719 *cygwin*) 13720 VAR_OS=windows 13721 VAR_OS_ENV=windows.cygwin 13722 ;; 13723 *mingw*) 13724 VAR_OS=windows 13725 VAR_OS_ENV=windows.msys 13726 ;; 13727 *aix*) 13728 VAR_OS=aix 13729 VAR_OS_TYPE=unix 13730 ;; 13731 *) 13732 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13733 ;; 13734 esac 13735 13736 13737 # First argument is the cpu name from the trip/quad 13738 case "$host_cpu" in 13739 x86_64) 13740 VAR_CPU=x86_64 13741 VAR_CPU_ARCH=x86 13742 VAR_CPU_BITS=64 13743 VAR_CPU_ENDIAN=little 13744 ;; 13745 i?86) 13746 VAR_CPU=x86 13747 VAR_CPU_ARCH=x86 13748 VAR_CPU_BITS=32 13749 VAR_CPU_ENDIAN=little 13750 ;; 13751 arm*) 13752 VAR_CPU=arm 13753 VAR_CPU_ARCH=arm 13754 VAR_CPU_BITS=32 13755 VAR_CPU_ENDIAN=little 13756 ;; 13757 aarch64) 13758 VAR_CPU=aarch64 13759 VAR_CPU_ARCH=aarch64 13760 VAR_CPU_BITS=64 13761 VAR_CPU_ENDIAN=little 13762 ;; 13763 powerpc) 13764 VAR_CPU=ppc 13765 VAR_CPU_ARCH=ppc 13766 VAR_CPU_BITS=32 13767 VAR_CPU_ENDIAN=big 13768 ;; 13769 powerpc64) 13770 VAR_CPU=ppc64 13771 VAR_CPU_ARCH=ppc 13772 VAR_CPU_BITS=64 13773 VAR_CPU_ENDIAN=big 13774 ;; 13775 powerpc64le) 13776 VAR_CPU=ppc64 13777 VAR_CPU_ARCH=ppc 13778 VAR_CPU_BITS=64 13779 VAR_CPU_ENDIAN=little 13780 ;; 13781 s390) 13782 VAR_CPU=s390 13783 VAR_CPU_ARCH=s390 13784 VAR_CPU_BITS=32 13785 VAR_CPU_ENDIAN=big 13786 ;; 13787 s390x) 13788 VAR_CPU=s390x 13789 VAR_CPU_ARCH=s390 13790 VAR_CPU_BITS=64 13791 VAR_CPU_ENDIAN=big 13792 ;; 13793 sparc) 13794 VAR_CPU=sparc 13795 VAR_CPU_ARCH=sparc 13796 VAR_CPU_BITS=32 13797 VAR_CPU_ENDIAN=big 13798 ;; 13799 sparcv9|sparc64) 13800 VAR_CPU=sparcv9 13801 VAR_CPU_ARCH=sparc 13802 VAR_CPU_BITS=64 13803 VAR_CPU_ENDIAN=big 13804 ;; 13805 *) 13806 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13807 ;; 13808 esac 13809 13810 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13811 OPENJDK_TARGET_OS="$VAR_OS" 13812 if test "x$VAR_OS_TYPE" != x; then 13813 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 13814 else 13815 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 13816 fi 13817 if test "x$VAR_OS_ENV" != x; then 13818 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13819 else 13820 OPENJDK_TARGET_OS_ENV="$VAR_OS" 13821 fi 13822 OPENJDK_TARGET_CPU="$VAR_CPU" 13823 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13824 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13825 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13826 13827 13828 13829 13830 13831 13832 13833 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13835 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13837 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13838 13839 13840 13841 # Check whether --with-target-bits was given. 13842 if test "${with_target_bits+set}" = set; then : 13843 withval=$with_target_bits; 13844 fi 13845 13846 13847 # We have three types of compiles: 13848 # native == normal compilation, target system == build system 13849 # cross == traditional cross compilation, target system != build system; special toolchain needed 13850 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13851 # 13852 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13853 # We're doing a proper cross-compilation 13854 COMPILE_TYPE="cross" 13855 else 13856 COMPILE_TYPE="native" 13857 fi 13858 13859 if test "x$with_target_bits" != x; then 13860 if test "x$COMPILE_TYPE" = "xcross"; then 13861 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13862 fi 13863 13864 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13865 # A reduced build is requested 13866 COMPILE_TYPE="reduced" 13867 OPENJDK_TARGET_CPU_BITS=32 13868 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13869 OPENJDK_TARGET_CPU=x86 13870 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13871 OPENJDK_TARGET_CPU=sparc 13872 else 13873 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13874 fi 13875 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13876 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 13877 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13879 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13880 else 13881 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13882 fi 13883 fi 13884 13885 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13887 $as_echo_n "checking compilation type... " >&6; } 13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13889 $as_echo "$COMPILE_TYPE" >&6; } 13890 13891 13892 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13893 REQUIRED_OS_NAME=SunOS 13894 REQUIRED_OS_VERSION=5.10 13895 fi 13896 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13897 REQUIRED_OS_NAME=Linux 13898 REQUIRED_OS_VERSION=2.6 13899 fi 13900 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13901 REQUIRED_OS_NAME=Windows 13902 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13903 REQUIRED_OS_VERSION=5.2 13904 else 13905 REQUIRED_OS_VERSION=5.1 13906 fi 13907 fi 13908 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13909 REQUIRED_OS_NAME=Darwin 13910 REQUIRED_OS_VERSION=11.2 13911 fi 13912 13913 13914 13915 13916 13917 # Also store the legacy naming of the cpu. 13918 # Ie i586 and amd64 instead of x86 and x86_64 13919 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13920 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13921 OPENJDK_TARGET_CPU_LEGACY="i586" 13922 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13923 # On all platforms except MacOSX replace x86_64 with amd64. 13924 OPENJDK_TARGET_CPU_LEGACY="amd64" 13925 fi 13926 13927 13928 # And the second legacy naming of the cpu. 13929 # Ie i386 and amd64 instead of x86 and x86_64. 13930 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13931 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13932 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13933 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13934 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13935 fi 13936 13937 13938 # This is the name of the cpu (but using i386 and amd64 instead of 13939 # x86 and x86_64, respectively), preceeded by a /, to be used when 13940 # locating libraries. On macosx, it's empty, though. 13941 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13942 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13943 OPENJDK_TARGET_CPU_LIBDIR="" 13944 fi 13945 13946 13947 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13948 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13949 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13950 OPENJDK_TARGET_CPU_ISADIR="" 13951 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13952 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13953 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13954 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13955 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13956 fi 13957 fi 13958 13959 13960 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13961 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13962 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13963 # On linux only, we replace x86 with i386. 13964 OPENJDK_TARGET_CPU_OSARCH="i386" 13965 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13966 # On all platforms except macosx, we replace x86_64 with amd64. 13967 OPENJDK_TARGET_CPU_OSARCH="amd64" 13968 fi 13969 13970 13971 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13972 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13973 OPENJDK_TARGET_CPU_JLI="i386" 13974 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13975 # On all platforms except macosx, we replace x86_64 with amd64. 13976 OPENJDK_TARGET_CPU_JLI="amd64" 13977 fi 13978 # Now setup the -D flags for building libjli. 13979 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13980 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13981 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13982 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13983 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13984 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13985 fi 13986 fi 13987 13988 13989 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13990 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13991 else 13992 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 13993 fi 13994 13995 13996 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13997 A_LP64="LP64:=" 13998 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13999 # unpack200.exe 14000 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14001 ADD_LP64="-D_LP64=1" 14002 fi 14003 fi 14004 LP64=$A_LP64 14005 14006 14007 if test "x$COMPILE_TYPE" = "xcross"; then 14008 # FIXME: ... or should this include reduced builds..? 14009 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14010 else 14011 DEFINE_CROSS_COMPILE_ARCH="" 14012 fi 14013 14014 14015 # ZERO_ARCHDEF is used to enable architecture-specific code 14016 case "${OPENJDK_TARGET_CPU}" in 14017 ppc) ZERO_ARCHDEF=PPC32 ;; 14018 ppc64) ZERO_ARCHDEF=PPC64 ;; 14019 s390*) ZERO_ARCHDEF=S390 ;; 14020 sparc*) ZERO_ARCHDEF=SPARC ;; 14021 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14022 x86) ZERO_ARCHDEF=IA32 ;; 14023 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14024 esac 14025 14026 14027 14028 14029 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14030 14031 # Save the current directory this script was started from 14032 CURDIR="$PWD" 14033 14034 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14035 PATH_SEP=";" 14036 14037 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14038 if test $SRC_ROOT_LENGTH -gt 100; then 14039 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14040 fi 14041 14042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14044 $as_echo_n "checking cygwin release... " >&6; } 14045 CYGWIN_VERSION=`$UNAME -r` 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14047 $as_echo "$CYGWIN_VERSION" >&6; } 14048 WINDOWS_ENV_VENDOR='cygwin' 14049 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14050 14051 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14052 if test "x$CYGWIN_VERSION_OK" = x; then 14053 { $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 14054 $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;} 14055 as_fn_error $? "Cannot continue" "$LINENO" 5 14056 fi 14057 if test "x$CYGPATH" = x; then 14058 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14059 fi 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14061 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14062 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14063 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14064 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14065 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14067 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14068 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14069 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14070 if test "x$test_cygdrive_prefix" = x; then 14071 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14072 fi 14073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14075 $as_echo_n "checking msys release... " >&6; } 14076 MSYS_VERSION=`$UNAME -r` 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14078 $as_echo "$MSYS_VERSION" >&6; } 14079 14080 WINDOWS_ENV_VENDOR='msys' 14081 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14082 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14084 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14085 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14086 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14087 14088 windows_path="$MSYS_ROOT_PATH" 14089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14090 unix_path=`$CYGPATH -u "$windows_path"` 14091 MSYS_ROOT_PATH="$unix_path" 14092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14094 MSYS_ROOT_PATH="$unix_path" 14095 fi 14096 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14098 $as_echo "$MSYS_ROOT_PATH" >&6; } 14099 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14100 else 14101 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14102 fi 14103 14104 # Test if windows or unix (cygwin/msys) find is first in path. 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14106 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14107 FIND_BINARY_OUTPUT=`find --version 2>&1` 14108 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14110 $as_echo "unix style" >&6; } 14111 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14113 $as_echo "Windows" >&6; } 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14115 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14116 { $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 14117 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14118 as_fn_error $? "Cannot continue" "$LINENO" 5 14119 else 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14121 $as_echo "unknown" >&6; } 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14123 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14124 fi 14125 14126 else 14127 PATH_SEP=":" 14128 fi 14129 14130 14131 # We get the top-level directory from the supporting wrappers. 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14133 $as_echo_n "checking for top-level directory... " >&6; } 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14135 $as_echo "$TOPDIR" >&6; } 14136 14137 14138 # Save the original version of TOPDIR for string comparisons 14139 ORIGINAL_TOPDIR="$TOPDIR" 14140 14141 14142 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14143 14144 # Only process if variable expands to non-empty 14145 14146 if test "x$CURDIR" != x; then 14147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14148 14149 # Input might be given as Windows format, start by converting to 14150 # unix format. 14151 path="$CURDIR" 14152 new_path=`$CYGPATH -u "$path"` 14153 14154 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14155 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14156 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14157 # "foo.exe" is OK but "foo" is an error. 14158 # 14159 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14160 # It is also a way to make sure we got the proper file name for the real test later on. 14161 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14162 if test "x$test_shortpath" = x; then 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14164 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14165 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14166 fi 14167 14168 # Call helper function which possibly converts this using DOS-style short mode. 14169 # If so, the updated path is stored in $new_path. 14170 14171 input_path="$new_path" 14172 # Check if we need to convert this using DOS-style short mode. If the path 14173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14174 # take no chances and rewrite it. 14175 # Note: m4 eats our [], so we need to use [ and ] instead. 14176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14177 if test "x$has_forbidden_chars" != x; then 14178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14179 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14180 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14181 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14182 # Going to short mode and back again did indeed matter. Since short mode is 14183 # case insensitive, let's make it lowercase to improve readability. 14184 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14185 # Now convert it back to Unix-stile (cygpath) 14186 input_path=`$CYGPATH -u "$shortmode_path"` 14187 new_path="$input_path" 14188 fi 14189 fi 14190 14191 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14192 if test "x$test_cygdrive_prefix" = x; then 14193 # As a simple fix, exclude /usr/bin since it's not a real path. 14194 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14195 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14196 # a path prefixed by /cygdrive for fixpath to work. 14197 new_path="$CYGWIN_ROOT_PATH$input_path" 14198 fi 14199 fi 14200 14201 14202 if test "x$path" != "x$new_path"; then 14203 CURDIR="$new_path" 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14205 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14206 fi 14207 14208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14209 14210 path="$CURDIR" 14211 has_colon=`$ECHO $path | $GREP ^.:` 14212 new_path="$path" 14213 if test "x$has_colon" = x; then 14214 # Not in mixed or Windows style, start by that. 14215 new_path=`cmd //c echo $path` 14216 fi 14217 14218 14219 input_path="$new_path" 14220 # Check if we need to convert this using DOS-style short mode. If the path 14221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14222 # take no chances and rewrite it. 14223 # Note: m4 eats our [], so we need to use [ and ] instead. 14224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14225 if test "x$has_forbidden_chars" != x; then 14226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14227 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14228 fi 14229 14230 14231 windows_path="$new_path" 14232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14233 unix_path=`$CYGPATH -u "$windows_path"` 14234 new_path="$unix_path" 14235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14237 new_path="$unix_path" 14238 fi 14239 14240 if test "x$path" != "x$new_path"; then 14241 CURDIR="$new_path" 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14243 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14244 fi 14245 14246 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14247 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14248 14249 else 14250 # We're on a unix platform. Hooray! :) 14251 path="$CURDIR" 14252 has_space=`$ECHO "$path" | $GREP " "` 14253 if test "x$has_space" != x; then 14254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14255 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14256 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14257 fi 14258 14259 # Use eval to expand a potential ~ 14260 eval path="$path" 14261 if test ! -f "$path" && test ! -d "$path"; then 14262 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14263 fi 14264 14265 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14266 fi 14267 fi 14268 14269 14270 # Only process if variable expands to non-empty 14271 14272 if test "x$TOPDIR" != x; then 14273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14274 14275 # Input might be given as Windows format, start by converting to 14276 # unix format. 14277 path="$TOPDIR" 14278 new_path=`$CYGPATH -u "$path"` 14279 14280 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14281 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14282 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14283 # "foo.exe" is OK but "foo" is an error. 14284 # 14285 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14286 # It is also a way to make sure we got the proper file name for the real test later on. 14287 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14288 if test "x$test_shortpath" = x; then 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14290 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14291 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14292 fi 14293 14294 # Call helper function which possibly converts this using DOS-style short mode. 14295 # If so, the updated path is stored in $new_path. 14296 14297 input_path="$new_path" 14298 # Check if we need to convert this using DOS-style short mode. If the path 14299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14300 # take no chances and rewrite it. 14301 # Note: m4 eats our [], so we need to use [ and ] instead. 14302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14303 if test "x$has_forbidden_chars" != x; then 14304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14308 # Going to short mode and back again did indeed matter. Since short mode is 14309 # case insensitive, let's make it lowercase to improve readability. 14310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14311 # Now convert it back to Unix-stile (cygpath) 14312 input_path=`$CYGPATH -u "$shortmode_path"` 14313 new_path="$input_path" 14314 fi 14315 fi 14316 14317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14318 if test "x$test_cygdrive_prefix" = x; then 14319 # As a simple fix, exclude /usr/bin since it's not a real path. 14320 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14322 # a path prefixed by /cygdrive for fixpath to work. 14323 new_path="$CYGWIN_ROOT_PATH$input_path" 14324 fi 14325 fi 14326 14327 14328 if test "x$path" != "x$new_path"; then 14329 TOPDIR="$new_path" 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14331 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14332 fi 14333 14334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14335 14336 path="$TOPDIR" 14337 has_colon=`$ECHO $path | $GREP ^.:` 14338 new_path="$path" 14339 if test "x$has_colon" = x; then 14340 # Not in mixed or Windows style, start by that. 14341 new_path=`cmd //c echo $path` 14342 fi 14343 14344 14345 input_path="$new_path" 14346 # Check if we need to convert this using DOS-style short mode. If the path 14347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14348 # take no chances and rewrite it. 14349 # Note: m4 eats our [], so we need to use [ and ] instead. 14350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14351 if test "x$has_forbidden_chars" != x; then 14352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14353 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14354 fi 14355 14356 14357 windows_path="$new_path" 14358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14359 unix_path=`$CYGPATH -u "$windows_path"` 14360 new_path="$unix_path" 14361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14363 new_path="$unix_path" 14364 fi 14365 14366 if test "x$path" != "x$new_path"; then 14367 TOPDIR="$new_path" 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14369 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14370 fi 14371 14372 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14373 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14374 14375 else 14376 # We're on a unix platform. Hooray! :) 14377 path="$TOPDIR" 14378 has_space=`$ECHO "$path" | $GREP " "` 14379 if test "x$has_space" != x; then 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14381 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14382 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14383 fi 14384 14385 # Use eval to expand a potential ~ 14386 eval path="$path" 14387 if test ! -f "$path" && test ! -d "$path"; then 14388 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14389 fi 14390 14391 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14392 fi 14393 fi 14394 14395 # SRC_ROOT is a traditional alias for TOPDIR. 14396 SRC_ROOT=$TOPDIR 14397 14398 # Calculate a canonical version of TOPDIR for string comparisons 14399 CANONICAL_TOPDIR=$TOPDIR 14400 14401 if test "x$OPENJDK_BUILD_OS" != xwindows; then 14402 # Follow a chain of symbolic links. Use readlink 14403 # where it exists, else fall back to horribly 14404 # complicated shell code. 14405 if test "x$READLINK_TESTED" != yes; then 14406 # On MacOSX there is a readlink tool with a different 14407 # purpose than the GNU readlink tool. Check the found readlink. 14408 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 14409 if test "x$ISGNU" = x; then 14410 # A readlink that we do not know how to use. 14411 # Are there other non-GNU readlinks out there? 14412 READLINK_TESTED=yes 14413 READLINK= 14414 fi 14415 fi 14416 14417 if test "x$READLINK" != x; then 14418 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 14419 else 14420 # Save the current directory for restoring afterwards 14421 STARTDIR=$PWD 14422 COUNTER=0 14423 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 14424 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 14425 cd $sym_link_dir 14426 # Use -P flag to resolve symlinks in directories. 14427 cd `$THEPWDCMD -P` 14428 sym_link_dir=`$THEPWDCMD -P` 14429 # Resolve file symlinks 14430 while test $COUNTER -lt 20; do 14431 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 14432 if test "x$ISLINK" == x; then 14433 # This is not a symbolic link! We are done! 14434 break 14435 fi 14436 # Again resolve directory symlinks since the target of the just found 14437 # link could be in a different directory 14438 cd `$DIRNAME $ISLINK` 14439 sym_link_dir=`$THEPWDCMD -P` 14440 sym_link_file=`$BASENAME $ISLINK` 14441 let COUNTER=COUNTER+1 14442 done 14443 cd $STARTDIR 14444 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 14445 fi 14446 fi 14447 14448 14449 14450 # Locate the directory of this script. 14451 AUTOCONF_DIR=$TOPDIR/common/autoconf 14452 14453 14454 # Check if it's a pure open build or if custom sources are to be used. 14455 14456 # Check whether --enable-openjdk-only was given. 14457 if test "${enable_openjdk_only+set}" = set; then : 14458 enableval=$enable_openjdk_only; 14459 else 14460 enable_openjdk_only="no" 14461 fi 14462 14463 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14465 $as_echo_n "checking for presence of closed sources... " >&6; } 14466 if test -d "$SRC_ROOT/jdk/src/closed"; then 14467 CLOSED_SOURCE_PRESENT=yes 14468 else 14469 CLOSED_SOURCE_PRESENT=no 14470 fi 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14472 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14473 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14475 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14476 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14478 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14479 14480 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14481 OPENJDK=true 14482 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14484 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14485 fi 14486 else 14487 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14488 OPENJDK=true 14489 else 14490 OPENJDK=false 14491 fi 14492 fi 14493 14494 if test "x$OPENJDK" = "xtrue"; then 14495 SET_OPENJDK="OPENJDK=true" 14496 fi 14497 14498 14499 14500 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14501 # the IncludeCustomExtension macro. 14502 14503 14504 # Check whether --with-custom-make-dir was given. 14505 if test "${with_custom_make_dir+set}" = set; then : 14506 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 14507 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14508 fi 14509 14510 14511 14512 14513 # These are needed to be able to create a configuration name (and thus the output directory) 14514 14515 ############################################################################### 14516 # 14517 # Check which variant of the JDK that we want to build. 14518 # Currently we have: 14519 # normal: standard edition 14520 # but the custom make system may add other variants 14521 # 14522 # Effectively the JDK variant gives a name to a specific set of 14523 # modules to compile into the JDK. In the future, these modules 14524 # might even be Jigsaw modules. 14525 # 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14527 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14528 14529 # Check whether --with-jdk-variant was given. 14530 if test "${with_jdk_variant+set}" = set; then : 14531 withval=$with_jdk_variant; 14532 fi 14533 14534 14535 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14536 JDK_VARIANT="normal" 14537 else 14538 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14539 fi 14540 14541 14542 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14544 $as_echo "$JDK_VARIANT" >&6; } 14545 14546 14547 ############################################################################### 14548 # 14549 # Check which interpreter of the JVM we want to build. 14550 # Currently we have: 14551 # template: Template interpreter (the default) 14552 # cpp : C++ interpreter 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14554 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14555 14556 # Check whether --with-jvm-interpreter was given. 14557 if test "${with_jvm_interpreter+set}" = set; then : 14558 withval=$with_jvm_interpreter; 14559 fi 14560 14561 14562 if test "x$with_jvm_interpreter" = x; then 14563 with_jvm_interpreter="template" 14564 fi 14565 14566 JVM_INTERPRETER="$with_jvm_interpreter" 14567 14568 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14569 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14570 fi 14571 14572 14573 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14575 $as_echo "$with_jvm_interpreter" >&6; } 14576 14577 14578 14579 ############################################################################### 14580 # 14581 # Check which variants of the JVM that we want to build. 14582 # Currently we have: 14583 # server: normal interpreter and a tiered C1/C2 compiler 14584 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14585 # minimal1: reduced form of client with optional VM services and features stripped out 14586 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14587 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14588 # zero: no machine code interpreter, no compiler 14589 # zeroshark: zero interpreter and shark/llvm compiler backend 14590 # core: interpreter only, no compiler (only works on some platforms) 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14592 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14593 14594 # Check whether --with-jvm-variants was given. 14595 if test "${with_jvm_variants+set}" = set; then : 14596 withval=$with_jvm_variants; 14597 fi 14598 14599 14600 if test "x$with_jvm_variants" = x; then 14601 with_jvm_variants="server" 14602 fi 14603 14604 JVM_VARIANTS=",$with_jvm_variants," 14605 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,//'` 14606 14607 if test "x$TEST_VARIANTS" != "x,"; then 14608 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14609 fi 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14611 $as_echo "$with_jvm_variants" >&6; } 14612 14613 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14614 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14615 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14616 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14617 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14618 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14619 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14620 14621 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14622 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14623 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14624 fi 14625 fi 14626 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14627 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14628 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14629 fi 14630 fi 14631 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14632 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14633 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14634 fi 14635 fi 14636 14637 # Replace the commas with AND for use in the build directory name. 14638 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14639 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/'` 14640 if test "x$COUNT_VARIANTS" != "x,1"; then 14641 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14642 else 14643 BUILDING_MULTIPLE_JVM_VARIANTS=no 14644 fi 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 INCLUDE_SA=true 14656 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14657 INCLUDE_SA=false 14658 fi 14659 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14660 INCLUDE_SA=false 14661 fi 14662 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14663 INCLUDE_SA=false 14664 fi 14665 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14666 INCLUDE_SA=false 14667 fi 14668 14669 14670 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14671 MACOSX_UNIVERSAL="true" 14672 fi 14673 14674 14675 14676 14677 ############################################################################### 14678 # 14679 # Set the debug level 14680 # release: no debug information, all optimizations, no asserts. 14681 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14682 # fastdebug: debug information (-g), all optimizations, all asserts 14683 # slowdebug: debug information (-g), no optimizations, all asserts 14684 # 14685 DEBUG_LEVEL="release" 14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14687 $as_echo_n "checking which debug level to use... " >&6; } 14688 # Check whether --enable-debug was given. 14689 if test "${enable_debug+set}" = set; then : 14690 enableval=$enable_debug; 14691 ENABLE_DEBUG="${enableval}" 14692 DEBUG_LEVEL="fastdebug" 14693 14694 else 14695 ENABLE_DEBUG="no" 14696 fi 14697 14698 14699 14700 # Check whether --with-debug-level was given. 14701 if test "${with_debug_level+set}" = set; then : 14702 withval=$with_debug_level; 14703 DEBUG_LEVEL="${withval}" 14704 if test "x$ENABLE_DEBUG" = xyes; then 14705 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14706 fi 14707 14708 fi 14709 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14711 $as_echo "$DEBUG_LEVEL" >&6; } 14712 14713 if test "x$DEBUG_LEVEL" != xrelease && \ 14714 test "x$DEBUG_LEVEL" != xoptimized && \ 14715 test "x$DEBUG_LEVEL" != xfastdebug && \ 14716 test "x$DEBUG_LEVEL" != xslowdebug; then 14717 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14718 fi 14719 14720 14721 ############################################################################### 14722 # 14723 # Setup legacy vars/targets and new vars to deal with different debug levels. 14724 # 14725 14726 case $DEBUG_LEVEL in 14727 release ) 14728 VARIANT="OPT" 14729 FASTDEBUG="false" 14730 DEBUG_CLASSFILES="false" 14731 BUILD_VARIANT_RELEASE="" 14732 HOTSPOT_DEBUG_LEVEL="product" 14733 HOTSPOT_EXPORT="product" 14734 ;; 14735 fastdebug ) 14736 VARIANT="DBG" 14737 FASTDEBUG="true" 14738 DEBUG_CLASSFILES="true" 14739 BUILD_VARIANT_RELEASE="-fastdebug" 14740 HOTSPOT_DEBUG_LEVEL="fastdebug" 14741 HOTSPOT_EXPORT="fastdebug" 14742 ;; 14743 slowdebug ) 14744 VARIANT="DBG" 14745 FASTDEBUG="false" 14746 DEBUG_CLASSFILES="true" 14747 BUILD_VARIANT_RELEASE="-debug" 14748 HOTSPOT_DEBUG_LEVEL="debug" 14749 HOTSPOT_EXPORT="debug" 14750 ;; 14751 optimized ) 14752 VARIANT="OPT" 14753 FASTDEBUG="false" 14754 DEBUG_CLASSFILES="false" 14755 BUILD_VARIANT_RELEASE="-optimized" 14756 HOTSPOT_DEBUG_LEVEL="optimized" 14757 HOTSPOT_EXPORT="optimized" 14758 ;; 14759 esac 14760 14761 # The debug level 'optimized' is a little special because it is currently only 14762 # applicable to the HotSpot build where it means to build a completely 14763 # optimized version of the VM without any debugging code (like for the 14764 # 'release' debug level which is called 'product' in the HotSpot build) but 14765 # with the exception that it can contain additional code which is otherwise 14766 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14767 # test new and/or experimental features which are not intended for customer 14768 # shipment. Because these new features need to be tested and benchmarked in 14769 # real world scenarios, we want to build the containing JDK at the 'release' 14770 # debug level. 14771 if test "x$DEBUG_LEVEL" = xoptimized; then 14772 DEBUG_LEVEL="release" 14773 fi 14774 14775 ##### 14776 # Generate the legacy makefile targets for hotspot. 14777 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14778 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14779 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14780 # But until then ... 14781 HOTSPOT_TARGET="" 14782 14783 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14784 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14785 fi 14786 14787 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14788 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14789 fi 14790 14791 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14792 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14793 fi 14794 14795 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14796 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14797 fi 14798 14799 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14800 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14801 fi 14802 14803 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14804 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14805 fi 14806 14807 if test "x$JVM_VARIANT_CORE" = xtrue; then 14808 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14809 fi 14810 14811 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14812 14813 # On Macosx universal binaries are produced, but they only contain 14814 # 64 bit intel. This invalidates control of which jvms are built 14815 # from configure, but only server is valid anyway. Fix this 14816 # when hotspot makefiles are rewritten. 14817 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14818 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14819 fi 14820 14821 ##### 14822 14823 14824 14825 14826 14827 14828 14829 14830 # With basic setup done, call the custom early hook. 14831 14832 14833 # Check if we have devkits, extra paths or sysroot set. 14834 14835 14836 # Check whether --with-devkit was given. 14837 if test "${with_devkit+set}" = set; then : 14838 withval=$with_devkit; 14839 14840 # Only process if variable expands to non-empty 14841 14842 if test "x$with_devkit" != x; then 14843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14844 14845 # Input might be given as Windows format, start by converting to 14846 # unix format. 14847 path="$with_devkit" 14848 new_path=`$CYGPATH -u "$path"` 14849 14850 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14851 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14852 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14853 # "foo.exe" is OK but "foo" is an error. 14854 # 14855 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14856 # It is also a way to make sure we got the proper file name for the real test later on. 14857 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14858 if test "x$test_shortpath" = x; then 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14860 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14861 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14862 fi 14863 14864 # Call helper function which possibly converts this using DOS-style short mode. 14865 # If so, the updated path is stored in $new_path. 14866 14867 input_path="$new_path" 14868 # Check if we need to convert this using DOS-style short mode. If the path 14869 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14870 # take no chances and rewrite it. 14871 # Note: m4 eats our [], so we need to use [ and ] instead. 14872 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14873 if test "x$has_forbidden_chars" != x; then 14874 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14875 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14876 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14877 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14878 # Going to short mode and back again did indeed matter. Since short mode is 14879 # case insensitive, let's make it lowercase to improve readability. 14880 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14881 # Now convert it back to Unix-stile (cygpath) 14882 input_path=`$CYGPATH -u "$shortmode_path"` 14883 new_path="$input_path" 14884 fi 14885 fi 14886 14887 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14888 if test "x$test_cygdrive_prefix" = x; then 14889 # As a simple fix, exclude /usr/bin since it's not a real path. 14890 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14891 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14892 # a path prefixed by /cygdrive for fixpath to work. 14893 new_path="$CYGWIN_ROOT_PATH$input_path" 14894 fi 14895 fi 14896 14897 14898 if test "x$path" != "x$new_path"; then 14899 with_devkit="$new_path" 14900 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14901 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14902 fi 14903 14904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14905 14906 path="$with_devkit" 14907 has_colon=`$ECHO $path | $GREP ^.:` 14908 new_path="$path" 14909 if test "x$has_colon" = x; then 14910 # Not in mixed or Windows style, start by that. 14911 new_path=`cmd //c echo $path` 14912 fi 14913 14914 14915 input_path="$new_path" 14916 # Check if we need to convert this using DOS-style short mode. If the path 14917 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14918 # take no chances and rewrite it. 14919 # Note: m4 eats our [], so we need to use [ and ] instead. 14920 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14921 if test "x$has_forbidden_chars" != x; then 14922 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14923 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14924 fi 14925 14926 14927 windows_path="$new_path" 14928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14929 unix_path=`$CYGPATH -u "$windows_path"` 14930 new_path="$unix_path" 14931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14933 new_path="$unix_path" 14934 fi 14935 14936 if test "x$path" != "x$new_path"; then 14937 with_devkit="$new_path" 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14939 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14940 fi 14941 14942 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14943 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14944 14945 else 14946 # We're on a unix platform. Hooray! :) 14947 path="$with_devkit" 14948 has_space=`$ECHO "$path" | $GREP " "` 14949 if test "x$has_space" != x; then 14950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14951 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14952 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14953 fi 14954 14955 # Use eval to expand a potential ~ 14956 eval path="$path" 14957 if test ! -f "$path" && test ! -d "$path"; then 14958 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14959 fi 14960 14961 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14962 fi 14963 fi 14964 14965 DEVKIT_ROOT="$with_devkit" 14966 # Check for a meta data info file in the root of the devkit 14967 if test -f "$DEVKIT_ROOT/devkit.info"; then 14968 # This potentially sets the following: 14969 # DEVKIT_NAME: A descriptive name of the devkit 14970 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14971 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14972 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14973 . $DEVKIT_ROOT/devkit.info 14974 fi 14975 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14977 $as_echo_n "checking for devkit... " >&6; } 14978 if test "x$DEVKIT_NAME" != x; then 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14980 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14981 else 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14983 $as_echo "$DEVKIT_ROOT" >&6; } 14984 fi 14985 14986 if test "x$DEVKIT_EXTRA_PATH" != x; then 14987 14988 if test "x$DEVKIT_EXTRA_PATH" != x; then 14989 if test "x$EXTRA_PATH" = x; then 14990 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14991 else 14992 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14993 fi 14994 fi 14995 14996 fi 14997 14998 # Fallback default of just /bin if DEVKIT_PATH is not defined 14999 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15000 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15001 fi 15002 15003 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15004 if test "x$TOOLCHAIN_PATH" = x; then 15005 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15006 else 15007 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15008 fi 15009 fi 15010 15011 15012 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15013 # places for backwards compatiblity. 15014 if test "x$DEVKIT_SYSROOT" != x; then 15015 SYSROOT="$DEVKIT_SYSROOT" 15016 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15017 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15018 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15019 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15020 fi 15021 15022 15023 fi 15024 15025 15026 # You can force the sysroot if the sysroot encoded into the compiler tools 15027 # is not correct. 15028 15029 # Check whether --with-sys-root was given. 15030 if test "${with_sys_root+set}" = set; then : 15031 withval=$with_sys_root; SYSROOT=$with_sys_root 15032 15033 fi 15034 15035 15036 15037 # Check whether --with-sysroot was given. 15038 if test "${with_sysroot+set}" = set; then : 15039 withval=$with_sysroot; SYSROOT=$with_sysroot 15040 15041 fi 15042 15043 15044 15045 # Check whether --with-tools-dir was given. 15046 if test "${with_tools_dir+set}" = set; then : 15047 withval=$with_tools_dir; 15048 if test "x$with_tools_dir" != x; then 15049 if test "x$TOOLCHAIN_PATH" = x; then 15050 TOOLCHAIN_PATH="$with_tools_dir" 15051 else 15052 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15053 fi 15054 fi 15055 15056 15057 fi 15058 15059 15060 15061 # Check whether --with-toolchain-path was given. 15062 if test "${with_toolchain_path+set}" = set; then : 15063 withval=$with_toolchain_path; 15064 if test "x$with_toolchain_path" != x; then 15065 if test "x$TOOLCHAIN_PATH" = x; then 15066 TOOLCHAIN_PATH="$with_toolchain_path" 15067 else 15068 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15069 fi 15070 fi 15071 15072 15073 fi 15074 15075 15076 15077 # Check whether --with-extra-path was given. 15078 if test "${with_extra_path+set}" = set; then : 15079 withval=$with_extra_path; 15080 if test "x$with_extra_path" != x; then 15081 if test "x$EXTRA_PATH" = x; then 15082 EXTRA_PATH="$with_extra_path" 15083 else 15084 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15085 fi 15086 fi 15087 15088 15089 fi 15090 15091 15092 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 15093 # detect if Xcode is installed by running xcodebuild -version 15094 # if no Xcode installed, xcodebuild exits with 1 15095 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 15096 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 15097 # We need to use xcodebuild in the toolchain dir provided by the user, this will 15098 # fall back on the stub binary in /usr/bin/xcodebuild 15099 # Extract the first word of "xcodebuild", so it can be a program name with args. 15100 set dummy xcodebuild; ac_word=$2 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15102 $as_echo_n "checking for $ac_word... " >&6; } 15103 if ${ac_cv_path_XCODEBUILD+:} false; then : 15104 $as_echo_n "(cached) " >&6 15105 else 15106 case $XCODEBUILD in 15107 [\\/]* | ?:[\\/]*) 15108 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15109 ;; 15110 *) 15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15112 for as_dir in $TOOLCHAIN_PATH 15113 do 15114 IFS=$as_save_IFS 15115 test -z "$as_dir" && as_dir=. 15116 for ac_exec_ext in '' $ac_executable_extensions; do 15117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15118 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15120 break 2 15121 fi 15122 done 15123 done 15124 IFS=$as_save_IFS 15125 15126 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15127 ;; 15128 esac 15129 fi 15130 XCODEBUILD=$ac_cv_path_XCODEBUILD 15131 if test -n "$XCODEBUILD"; then 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15133 $as_echo "$XCODEBUILD" >&6; } 15134 else 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15136 $as_echo "no" >&6; } 15137 fi 15138 15139 15140 else 15141 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15142 # when only the command line tools are installed there are no SDKs, so headers 15143 # are copied into the system frameworks 15144 XCODEBUILD= 15145 15146 fi 15147 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15149 $as_echo_n "checking for sdk name... " >&6; } 15150 15151 # Check whether --with-sdk-name was given. 15152 if test "${with_sdk_name+set}" = set; then : 15153 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15154 15155 fi 15156 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15158 $as_echo "$SDKNAME" >&6; } 15159 15160 # if toolchain path is specified then don't rely on system headers, they may not compile 15161 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15162 test -z "$TOOLCHAIN_PATH" && \ 15163 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15164 15165 if test -z "$SYSROOT"; then 15166 if test -n "$XCODEBUILD"; then 15167 # if we don't have system headers, use default SDK name (last resort) 15168 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15169 SDKNAME=${SDKNAME:-macosx} 15170 fi 15171 15172 if test -n "$SDKNAME"; then 15173 # Call xcodebuild to determine SYSROOT 15174 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15175 fi 15176 else 15177 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15178 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 15179 fi 15180 fi 15181 else 15182 # warn user if --with-sdk-name was also set 15183 if test -n "$with_sdk_name"; then 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15185 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15186 fi 15187 fi 15188 15189 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15190 # If no system framework headers, then SYSROOT must be set, or we won't build 15191 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 15192 fi 15193 15194 # Perform a basic sanity test 15195 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15196 if test -z "$SYSROOT"; then 15197 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 15198 else 15199 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15200 fi 15201 fi 15202 15203 # set SDKROOT too, Xcode tools will pick it up 15204 SDKROOT=$SYSROOT 15205 15206 fi 15207 15208 # Prepend the extra path to the global path 15209 15210 if test "x$EXTRA_PATH" != x; then 15211 if test "x$PATH" = x; then 15212 PATH="$EXTRA_PATH" 15213 else 15214 PATH="$EXTRA_PATH:$PATH" 15215 fi 15216 fi 15217 15218 15219 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15220 # Add extra search paths on solaris for utilities like ar and as etc... 15221 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15222 fi 15223 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15225 $as_echo_n "checking for sysroot... " >&6; } 15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15227 $as_echo "$SYSROOT" >&6; } 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15229 $as_echo_n "checking for toolchain path... " >&6; } 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15231 $as_echo "$TOOLCHAIN_PATH" >&6; } 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15233 $as_echo_n "checking for extra path... " >&6; } 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15235 $as_echo "$EXTRA_PATH" >&6; } 15236 15237 15238 # To properly create a configuration name, we need to have the OpenJDK target 15239 # and options (variants and debug level) parsed. 15240 15241 15242 15243 # Check whether --with-conf-name was given. 15244 if test "${with_conf_name+set}" = set; then : 15245 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15246 fi 15247 15248 15249 # Test from where we are running configure, in or outside of src root. 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15251 $as_echo_n "checking where to store configuration... " >&6; } 15252 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15253 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15254 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15255 # We are running configure from the src root. 15256 # Create a default ./build/target-variant-debuglevel output root. 15257 if test "x${CONF_NAME}" = x; then 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15259 $as_echo "in default location" >&6; } 15260 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15261 else 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15263 $as_echo "in build directory with custom name" >&6; } 15264 fi 15265 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15266 $MKDIR -p "$OUTPUT_ROOT" 15267 if test ! -d "$OUTPUT_ROOT"; then 15268 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15269 fi 15270 else 15271 # We are running configure from outside of the src dir. 15272 # Then use the current directory as output dir! 15273 # If configuration is situated in normal build directory, just use the build 15274 # directory name as configuration name, otherwise use the complete path. 15275 if test "x${CONF_NAME}" = x; then 15276 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15277 fi 15278 OUTPUT_ROOT="$CURDIR" 15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15280 $as_echo "in current directory" >&6; } 15281 15282 # WARNING: This might be a bad thing to do. You need to be sure you want to 15283 # have a configuration in this directory. Do some sanity checks! 15284 15285 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15286 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15287 # other files 15288 files_present=`$LS $OUTPUT_ROOT` 15289 # Configure has already touched config.log and confdefs.h in the current dir when this check 15290 # is performed. 15291 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15292 | $TR -d '\n'` 15293 if test "x$filtered_files" != x; then 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15295 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15297 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15299 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15301 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15303 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15305 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15307 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15308 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15309 fi 15310 fi 15311 fi 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15313 $as_echo_n "checking what configuration name to use... " >&6; } 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15315 $as_echo "$CONF_NAME" >&6; } 15316 15317 15318 # Only process if variable expands to non-empty 15319 15320 if test "x$OUTPUT_ROOT" != x; then 15321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15322 15323 # Input might be given as Windows format, start by converting to 15324 # unix format. 15325 path="$OUTPUT_ROOT" 15326 new_path=`$CYGPATH -u "$path"` 15327 15328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15331 # "foo.exe" is OK but "foo" is an error. 15332 # 15333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15334 # It is also a way to make sure we got the proper file name for the real test later on. 15335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15336 if test "x$test_shortpath" = x; then 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15338 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15339 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15340 fi 15341 15342 # Call helper function which possibly converts this using DOS-style short mode. 15343 # If so, the updated path is stored in $new_path. 15344 15345 input_path="$new_path" 15346 # Check if we need to convert this using DOS-style short mode. If the path 15347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15348 # take no chances and rewrite it. 15349 # Note: m4 eats our [], so we need to use [ and ] instead. 15350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15351 if test "x$has_forbidden_chars" != x; then 15352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15356 # Going to short mode and back again did indeed matter. Since short mode is 15357 # case insensitive, let's make it lowercase to improve readability. 15358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15359 # Now convert it back to Unix-stile (cygpath) 15360 input_path=`$CYGPATH -u "$shortmode_path"` 15361 new_path="$input_path" 15362 fi 15363 fi 15364 15365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15366 if test "x$test_cygdrive_prefix" = x; then 15367 # As a simple fix, exclude /usr/bin since it's not a real path. 15368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15370 # a path prefixed by /cygdrive for fixpath to work. 15371 new_path="$CYGWIN_ROOT_PATH$input_path" 15372 fi 15373 fi 15374 15375 15376 if test "x$path" != "x$new_path"; then 15377 OUTPUT_ROOT="$new_path" 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15379 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15380 fi 15381 15382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15383 15384 path="$OUTPUT_ROOT" 15385 has_colon=`$ECHO $path | $GREP ^.:` 15386 new_path="$path" 15387 if test "x$has_colon" = x; then 15388 # Not in mixed or Windows style, start by that. 15389 new_path=`cmd //c echo $path` 15390 fi 15391 15392 15393 input_path="$new_path" 15394 # Check if we need to convert this using DOS-style short mode. If the path 15395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15396 # take no chances and rewrite it. 15397 # Note: m4 eats our [], so we need to use [ and ] instead. 15398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15399 if test "x$has_forbidden_chars" != x; then 15400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15402 fi 15403 15404 15405 windows_path="$new_path" 15406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15407 unix_path=`$CYGPATH -u "$windows_path"` 15408 new_path="$unix_path" 15409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15411 new_path="$unix_path" 15412 fi 15413 15414 if test "x$path" != "x$new_path"; then 15415 OUTPUT_ROOT="$new_path" 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15417 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15418 fi 15419 15420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15422 15423 else 15424 # We're on a unix platform. Hooray! :) 15425 path="$OUTPUT_ROOT" 15426 has_space=`$ECHO "$path" | $GREP " "` 15427 if test "x$has_space" != x; then 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15429 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15431 fi 15432 15433 # Use eval to expand a potential ~ 15434 eval path="$path" 15435 if test ! -f "$path" && test ! -d "$path"; then 15436 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15437 fi 15438 15439 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15440 fi 15441 fi 15442 15443 15444 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 15445 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 15446 15447 SPEC=$OUTPUT_ROOT/spec.gmk 15448 15449 CONF_NAME=$CONF_NAME 15450 15451 OUTPUT_ROOT=$OUTPUT_ROOT 15452 15453 15454 15455 # The spec.gmk file contains all variables for the make system. 15456 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15457 15458 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15459 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15460 15461 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15462 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15463 15464 # The compare.sh is used to compare the build output to other builds. 15465 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15466 15467 # The generated Makefile knows where the spec.gmk is and where the source is. 15468 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15469 # which will look for generated configurations 15470 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15471 15472 15473 15474 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15475 15476 for ac_prog in apt-get yum port pkgutil pkgadd 15477 do 15478 # Extract the first word of "$ac_prog", so it can be a program name with args. 15479 set dummy $ac_prog; ac_word=$2 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15481 $as_echo_n "checking for $ac_word... " >&6; } 15482 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15483 $as_echo_n "(cached) " >&6 15484 else 15485 if test -n "$PKGHANDLER"; then 15486 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15487 else 15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15489 for as_dir in $PATH 15490 do 15491 IFS=$as_save_IFS 15492 test -z "$as_dir" && as_dir=. 15493 for ac_exec_ext in '' $ac_executable_extensions; do 15494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15495 ac_cv_prog_PKGHANDLER="$ac_prog" 15496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15497 break 2 15498 fi 15499 done 15500 done 15501 IFS=$as_save_IFS 15502 15503 fi 15504 fi 15505 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15506 if test -n "$PKGHANDLER"; then 15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15508 $as_echo "$PKGHANDLER" >&6; } 15509 else 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15511 $as_echo "no" >&6; } 15512 fi 15513 15514 15515 test -n "$PKGHANDLER" && break 15516 done 15517 15518 15519 15520 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15521 15522 15523 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15524 if test "x$MAKE" != x; then 15525 # User has supplied a make, test it. 15526 if test ! -f "$MAKE"; then 15527 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15528 fi 15529 15530 MAKE_CANDIDATE=""$MAKE"" 15531 DESCRIPTION="user supplied MAKE=$MAKE" 15532 if test "x$MAKE_CANDIDATE" != x; then 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15534 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15535 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15536 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15537 if test "x$IS_GNU_MAKE" = x; then 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15539 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15540 else 15541 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15542 if test "x$IS_MODERN_MAKE" = x; then 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15544 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15545 else 15546 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15548 MAKE_EXPECTED_ENV='cygwin' 15549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15550 MAKE_EXPECTED_ENV='msys' 15551 else 15552 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15553 fi 15554 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15555 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15556 else 15557 # Not relevant for non-Windows 15558 IS_MAKE_CORRECT_ENV=true 15559 fi 15560 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15561 { $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 15562 $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;} 15563 else 15564 FOUND_MAKE=$MAKE_CANDIDATE 15565 15566 # Only process if variable expands to non-empty 15567 15568 if test "x$FOUND_MAKE" != x; then 15569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15570 15571 # First separate the path from the arguments. This will split at the first 15572 # space. 15573 complete="$FOUND_MAKE" 15574 path="${complete%% *}" 15575 tmp="$complete EOL" 15576 arguments="${tmp#* }" 15577 15578 # Input might be given as Windows format, start by converting to 15579 # unix format. 15580 new_path=`$CYGPATH -u "$path"` 15581 15582 # Now try to locate executable using which 15583 new_path=`$WHICH "$new_path" 2> /dev/null` 15584 # bat and cmd files are not always considered executable in cygwin causing which 15585 # to not find them 15586 if test "x$new_path" = x \ 15587 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15588 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15589 new_path=`$CYGPATH -u "$path"` 15590 fi 15591 if test "x$new_path" = x; then 15592 # Oops. Which didn't find the executable. 15593 # The splitting of arguments from the executable at a space might have been incorrect, 15594 # since paths with space are more likely in Windows. Give it another try with the whole 15595 # argument. 15596 path="$complete" 15597 arguments="EOL" 15598 new_path=`$CYGPATH -u "$path"` 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 # It's still not found. Now this is an unrecoverable error. 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15610 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15611 has_space=`$ECHO "$complete" | $GREP " "` 15612 if test "x$has_space" != x; then 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15614 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15615 fi 15616 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15617 fi 15618 fi 15619 15620 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15621 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15622 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15623 # "foo.exe" is OK but "foo" is an error. 15624 # 15625 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15626 # It is also a way to make sure we got the proper file name for the real test later on. 15627 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15628 if test "x$test_shortpath" = x; then 15629 # Short path failed, file does not exist as specified. 15630 # Try adding .exe or .cmd 15631 if test -f "${new_path}.exe"; then 15632 input_to_shortpath="${new_path}.exe" 15633 elif test -f "${new_path}.cmd"; then 15634 input_to_shortpath="${new_path}.cmd" 15635 else 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15637 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15639 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15640 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15641 fi 15642 else 15643 input_to_shortpath="$new_path" 15644 fi 15645 15646 # Call helper function which possibly converts this using DOS-style short mode. 15647 # If so, the updated path is stored in $new_path. 15648 new_path="$input_to_shortpath" 15649 15650 input_path="$input_to_shortpath" 15651 # Check if we need to convert this using DOS-style short mode. If the path 15652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15653 # take no chances and rewrite it. 15654 # Note: m4 eats our [], so we need to use [ and ] instead. 15655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15656 if test "x$has_forbidden_chars" != x; then 15657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15658 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15659 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15660 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15661 # Going to short mode and back again did indeed matter. Since short mode is 15662 # case insensitive, let's make it lowercase to improve readability. 15663 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15664 # Now convert it back to Unix-stile (cygpath) 15665 input_path=`$CYGPATH -u "$shortmode_path"` 15666 new_path="$input_path" 15667 fi 15668 fi 15669 15670 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15671 if test "x$test_cygdrive_prefix" = x; then 15672 # As a simple fix, exclude /usr/bin since it's not a real path. 15673 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15674 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15675 # a path prefixed by /cygdrive for fixpath to work. 15676 new_path="$CYGWIN_ROOT_PATH$input_path" 15677 fi 15678 fi 15679 15680 # remove trailing .exe if any 15681 new_path="${new_path/%.exe/}" 15682 15683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15684 15685 # First separate the path from the arguments. This will split at the first 15686 # space. 15687 complete="$FOUND_MAKE" 15688 path="${complete%% *}" 15689 tmp="$complete EOL" 15690 arguments="${tmp#* }" 15691 15692 # Input might be given as Windows format, start by converting to 15693 # unix format. 15694 new_path="$path" 15695 15696 windows_path="$new_path" 15697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15698 unix_path=`$CYGPATH -u "$windows_path"` 15699 new_path="$unix_path" 15700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15702 new_path="$unix_path" 15703 fi 15704 15705 15706 # Now try to locate executable using which 15707 new_path=`$WHICH "$new_path" 2> /dev/null` 15708 15709 if test "x$new_path" = x; then 15710 # Oops. Which didn't find the executable. 15711 # The splitting of arguments from the executable at a space might have been incorrect, 15712 # since paths with space are more likely in Windows. Give it another try with the whole 15713 # argument. 15714 path="$complete" 15715 arguments="EOL" 15716 new_path="$path" 15717 15718 windows_path="$new_path" 15719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15720 unix_path=`$CYGPATH -u "$windows_path"` 15721 new_path="$unix_path" 15722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15724 new_path="$unix_path" 15725 fi 15726 15727 15728 new_path=`$WHICH "$new_path" 2> /dev/null` 15729 # bat and cmd files are not always considered executable in MSYS causing which 15730 # to not find them 15731 if test "x$new_path" = x \ 15732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15734 new_path="$path" 15735 15736 windows_path="$new_path" 15737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15738 unix_path=`$CYGPATH -u "$windows_path"` 15739 new_path="$unix_path" 15740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15742 new_path="$unix_path" 15743 fi 15744 15745 fi 15746 15747 if test "x$new_path" = x; then 15748 # It's still not found. Now this is an unrecoverable error. 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15750 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15751 has_space=`$ECHO "$complete" | $GREP " "` 15752 if test "x$has_space" != x; then 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15754 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15755 fi 15756 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15757 fi 15758 fi 15759 15760 # Now new_path has a complete unix path to the binary 15761 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15762 # Keep paths in /bin as-is, but remove trailing .exe if any 15763 new_path="${new_path/%.exe/}" 15764 # Do not save /bin paths to all_fixpath_prefixes! 15765 else 15766 # Not in mixed or Windows style, start by that. 15767 new_path=`cmd //c echo $new_path` 15768 15769 input_path="$new_path" 15770 # Check if we need to convert this using DOS-style short mode. If the path 15771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15772 # take no chances and rewrite it. 15773 # Note: m4 eats our [], so we need to use [ and ] instead. 15774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15775 if test "x$has_forbidden_chars" != x; then 15776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15777 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15778 fi 15779 15780 # Output is in $new_path 15781 15782 windows_path="$new_path" 15783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15784 unix_path=`$CYGPATH -u "$windows_path"` 15785 new_path="$unix_path" 15786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15788 new_path="$unix_path" 15789 fi 15790 15791 # remove trailing .exe if any 15792 new_path="${new_path/%.exe/}" 15793 15794 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15795 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15796 fi 15797 15798 else 15799 # We're on a unix platform. Hooray! :) 15800 # First separate the path from the arguments. This will split at the first 15801 # space. 15802 complete="$FOUND_MAKE" 15803 path="${complete%% *}" 15804 tmp="$complete EOL" 15805 arguments="${tmp#* }" 15806 15807 # Cannot rely on the command "which" here since it doesn't always work. 15808 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15809 if test -z "$is_absolute_path"; then 15810 # Path to executable is not absolute. Find it. 15811 IFS_save="$IFS" 15812 IFS=: 15813 for p in $PATH; do 15814 if test -f "$p/$path" && test -x "$p/$path"; then 15815 new_path="$p/$path" 15816 break 15817 fi 15818 done 15819 IFS="$IFS_save" 15820 else 15821 # This is an absolute path, we can use it without further modifications. 15822 new_path="$path" 15823 fi 15824 15825 if test "x$new_path" = x; then 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15827 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15828 has_space=`$ECHO "$complete" | $GREP " "` 15829 if test "x$has_space" != x; then 15830 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15831 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15832 fi 15833 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15834 fi 15835 fi 15836 15837 # Now join together the path and the arguments once again 15838 if test "x$arguments" != xEOL; then 15839 new_complete="$new_path ${arguments% *}" 15840 else 15841 new_complete="$new_path" 15842 fi 15843 15844 if test "x$complete" != "x$new_complete"; then 15845 FOUND_MAKE="$new_complete" 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15847 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15848 fi 15849 fi 15850 15851 fi 15852 fi 15853 fi 15854 fi 15855 15856 if test "x$FOUND_MAKE" = x; then 15857 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15858 fi 15859 else 15860 # Try our hardest to locate a correct version of GNU make 15861 for ac_prog in gmake 15862 do 15863 # Extract the first word of "$ac_prog", so it can be a program name with args. 15864 set dummy $ac_prog; ac_word=$2 15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15866 $as_echo_n "checking for $ac_word... " >&6; } 15867 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15868 $as_echo_n "(cached) " >&6 15869 else 15870 case $CHECK_GMAKE in 15871 [\\/]* | ?:[\\/]*) 15872 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15873 ;; 15874 *) 15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15876 for as_dir in $PATH 15877 do 15878 IFS=$as_save_IFS 15879 test -z "$as_dir" && as_dir=. 15880 for ac_exec_ext in '' $ac_executable_extensions; do 15881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15882 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15884 break 2 15885 fi 15886 done 15887 done 15888 IFS=$as_save_IFS 15889 15890 ;; 15891 esac 15892 fi 15893 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15894 if test -n "$CHECK_GMAKE"; then 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15896 $as_echo "$CHECK_GMAKE" >&6; } 15897 else 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15899 $as_echo "no" >&6; } 15900 fi 15901 15902 15903 test -n "$CHECK_GMAKE" && break 15904 done 15905 15906 15907 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15908 DESCRIPTION="gmake in PATH" 15909 if test "x$MAKE_CANDIDATE" != x; then 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15911 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15912 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15913 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15914 if test "x$IS_GNU_MAKE" = x; then 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15916 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15917 else 15918 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15919 if test "x$IS_MODERN_MAKE" = x; then 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15921 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15922 else 15923 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15925 MAKE_EXPECTED_ENV='cygwin' 15926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15927 MAKE_EXPECTED_ENV='msys' 15928 else 15929 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15930 fi 15931 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15932 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15933 else 15934 # Not relevant for non-Windows 15935 IS_MAKE_CORRECT_ENV=true 15936 fi 15937 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15938 { $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 15939 $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;} 15940 else 15941 FOUND_MAKE=$MAKE_CANDIDATE 15942 15943 # Only process if variable expands to non-empty 15944 15945 if test "x$FOUND_MAKE" != x; then 15946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15947 15948 # First separate the path from the arguments. This will split at the first 15949 # space. 15950 complete="$FOUND_MAKE" 15951 path="${complete%% *}" 15952 tmp="$complete EOL" 15953 arguments="${tmp#* }" 15954 15955 # Input might be given as Windows format, start by converting to 15956 # unix format. 15957 new_path=`$CYGPATH -u "$path"` 15958 15959 # Now try to locate executable using which 15960 new_path=`$WHICH "$new_path" 2> /dev/null` 15961 # bat and cmd files are not always considered executable in cygwin causing which 15962 # to not find them 15963 if test "x$new_path" = x \ 15964 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15965 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15966 new_path=`$CYGPATH -u "$path"` 15967 fi 15968 if test "x$new_path" = x; then 15969 # Oops. Which didn't find the executable. 15970 # The splitting of arguments from the executable at a space might have been incorrect, 15971 # since paths with space are more likely in Windows. Give it another try with the whole 15972 # argument. 15973 path="$complete" 15974 arguments="EOL" 15975 new_path=`$CYGPATH -u "$path"` 15976 new_path=`$WHICH "$new_path" 2> /dev/null` 15977 # bat and cmd files are not always considered executable in cygwin causing which 15978 # to not find them 15979 if test "x$new_path" = x \ 15980 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15981 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15982 new_path=`$CYGPATH -u "$path"` 15983 fi 15984 if test "x$new_path" = x; then 15985 # It's still not found. Now this is an unrecoverable error. 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15987 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15988 has_space=`$ECHO "$complete" | $GREP " "` 15989 if test "x$has_space" != x; then 15990 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15991 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15992 fi 15993 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15994 fi 15995 fi 15996 15997 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15998 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15999 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16000 # "foo.exe" is OK but "foo" is an error. 16001 # 16002 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16003 # It is also a way to make sure we got the proper file name for the real test later on. 16004 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16005 if test "x$test_shortpath" = x; then 16006 # Short path failed, file does not exist as specified. 16007 # Try adding .exe or .cmd 16008 if test -f "${new_path}.exe"; then 16009 input_to_shortpath="${new_path}.exe" 16010 elif test -f "${new_path}.cmd"; then 16011 input_to_shortpath="${new_path}.cmd" 16012 else 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16014 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16016 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16017 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16018 fi 16019 else 16020 input_to_shortpath="$new_path" 16021 fi 16022 16023 # Call helper function which possibly converts this using DOS-style short mode. 16024 # If so, the updated path is stored in $new_path. 16025 new_path="$input_to_shortpath" 16026 16027 input_path="$input_to_shortpath" 16028 # Check if we need to convert this using DOS-style short mode. If the path 16029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16030 # take no chances and rewrite it. 16031 # Note: m4 eats our [], so we need to use [ and ] instead. 16032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16033 if test "x$has_forbidden_chars" != x; then 16034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16038 # Going to short mode and back again did indeed matter. Since short mode is 16039 # case insensitive, let's make it lowercase to improve readability. 16040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16041 # Now convert it back to Unix-stile (cygpath) 16042 input_path=`$CYGPATH -u "$shortmode_path"` 16043 new_path="$input_path" 16044 fi 16045 fi 16046 16047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16048 if test "x$test_cygdrive_prefix" = x; then 16049 # As a simple fix, exclude /usr/bin since it's not a real path. 16050 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16052 # a path prefixed by /cygdrive for fixpath to work. 16053 new_path="$CYGWIN_ROOT_PATH$input_path" 16054 fi 16055 fi 16056 16057 # remove trailing .exe if any 16058 new_path="${new_path/%.exe/}" 16059 16060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16061 16062 # First separate the path from the arguments. This will split at the first 16063 # space. 16064 complete="$FOUND_MAKE" 16065 path="${complete%% *}" 16066 tmp="$complete EOL" 16067 arguments="${tmp#* }" 16068 16069 # Input might be given as Windows format, start by converting to 16070 # unix format. 16071 new_path="$path" 16072 16073 windows_path="$new_path" 16074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16075 unix_path=`$CYGPATH -u "$windows_path"` 16076 new_path="$unix_path" 16077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16079 new_path="$unix_path" 16080 fi 16081 16082 16083 # Now try to locate executable using which 16084 new_path=`$WHICH "$new_path" 2> /dev/null` 16085 16086 if test "x$new_path" = x; then 16087 # Oops. Which didn't find the executable. 16088 # The splitting of arguments from the executable at a space might have been incorrect, 16089 # since paths with space are more likely in Windows. Give it another try with the whole 16090 # argument. 16091 path="$complete" 16092 arguments="EOL" 16093 new_path="$path" 16094 16095 windows_path="$new_path" 16096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16097 unix_path=`$CYGPATH -u "$windows_path"` 16098 new_path="$unix_path" 16099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16100 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16101 new_path="$unix_path" 16102 fi 16103 16104 16105 new_path=`$WHICH "$new_path" 2> /dev/null` 16106 # bat and cmd files are not always considered executable in MSYS causing which 16107 # to not find them 16108 if test "x$new_path" = x \ 16109 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16110 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16111 new_path="$path" 16112 16113 windows_path="$new_path" 16114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16115 unix_path=`$CYGPATH -u "$windows_path"` 16116 new_path="$unix_path" 16117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16118 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16119 new_path="$unix_path" 16120 fi 16121 16122 fi 16123 16124 if test "x$new_path" = x; then 16125 # It's still not found. Now this is an unrecoverable error. 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16127 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16128 has_space=`$ECHO "$complete" | $GREP " "` 16129 if test "x$has_space" != x; then 16130 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16131 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16132 fi 16133 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16134 fi 16135 fi 16136 16137 # Now new_path has a complete unix path to the binary 16138 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16139 # Keep paths in /bin as-is, but remove trailing .exe if any 16140 new_path="${new_path/%.exe/}" 16141 # Do not save /bin paths to all_fixpath_prefixes! 16142 else 16143 # Not in mixed or Windows style, start by that. 16144 new_path=`cmd //c echo $new_path` 16145 16146 input_path="$new_path" 16147 # Check if we need to convert this using DOS-style short mode. If the path 16148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16149 # take no chances and rewrite it. 16150 # Note: m4 eats our [], so we need to use [ and ] instead. 16151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16152 if test "x$has_forbidden_chars" != x; then 16153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16154 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16155 fi 16156 16157 # Output is in $new_path 16158 16159 windows_path="$new_path" 16160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16161 unix_path=`$CYGPATH -u "$windows_path"` 16162 new_path="$unix_path" 16163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16165 new_path="$unix_path" 16166 fi 16167 16168 # remove trailing .exe if any 16169 new_path="${new_path/%.exe/}" 16170 16171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16173 fi 16174 16175 else 16176 # We're on a unix platform. Hooray! :) 16177 # First separate the path from the arguments. This will split at the first 16178 # space. 16179 complete="$FOUND_MAKE" 16180 path="${complete%% *}" 16181 tmp="$complete EOL" 16182 arguments="${tmp#* }" 16183 16184 # Cannot rely on the command "which" here since it doesn't always work. 16185 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16186 if test -z "$is_absolute_path"; then 16187 # Path to executable is not absolute. Find it. 16188 IFS_save="$IFS" 16189 IFS=: 16190 for p in $PATH; do 16191 if test -f "$p/$path" && test -x "$p/$path"; then 16192 new_path="$p/$path" 16193 break 16194 fi 16195 done 16196 IFS="$IFS_save" 16197 else 16198 # This is an absolute path, we can use it without further modifications. 16199 new_path="$path" 16200 fi 16201 16202 if test "x$new_path" = x; then 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16204 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16205 has_space=`$ECHO "$complete" | $GREP " "` 16206 if test "x$has_space" != x; then 16207 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16208 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16209 fi 16210 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16211 fi 16212 fi 16213 16214 # Now join together the path and the arguments once again 16215 if test "x$arguments" != xEOL; then 16216 new_complete="$new_path ${arguments% *}" 16217 else 16218 new_complete="$new_path" 16219 fi 16220 16221 if test "x$complete" != "x$new_complete"; then 16222 FOUND_MAKE="$new_complete" 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16224 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16225 fi 16226 fi 16227 16228 fi 16229 fi 16230 fi 16231 fi 16232 16233 16234 if test "x$FOUND_MAKE" = x; then 16235 for ac_prog in make 16236 do 16237 # Extract the first word of "$ac_prog", so it can be a program name with args. 16238 set dummy $ac_prog; ac_word=$2 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16240 $as_echo_n "checking for $ac_word... " >&6; } 16241 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16242 $as_echo_n "(cached) " >&6 16243 else 16244 case $CHECK_MAKE in 16245 [\\/]* | ?:[\\/]*) 16246 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16247 ;; 16248 *) 16249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16250 for as_dir in $PATH 16251 do 16252 IFS=$as_save_IFS 16253 test -z "$as_dir" && as_dir=. 16254 for ac_exec_ext in '' $ac_executable_extensions; do 16255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16256 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16258 break 2 16259 fi 16260 done 16261 done 16262 IFS=$as_save_IFS 16263 16264 ;; 16265 esac 16266 fi 16267 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16268 if test -n "$CHECK_MAKE"; then 16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16270 $as_echo "$CHECK_MAKE" >&6; } 16271 else 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16273 $as_echo "no" >&6; } 16274 fi 16275 16276 16277 test -n "$CHECK_MAKE" && break 16278 done 16279 16280 16281 MAKE_CANDIDATE=""$CHECK_MAKE"" 16282 DESCRIPTION="make in PATH" 16283 if test "x$MAKE_CANDIDATE" != x; then 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16285 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16286 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16287 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16288 if test "x$IS_GNU_MAKE" = x; then 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16290 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16291 else 16292 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16293 if test "x$IS_MODERN_MAKE" = x; then 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16295 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16296 else 16297 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16299 MAKE_EXPECTED_ENV='cygwin' 16300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16301 MAKE_EXPECTED_ENV='msys' 16302 else 16303 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16304 fi 16305 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16306 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16307 else 16308 # Not relevant for non-Windows 16309 IS_MAKE_CORRECT_ENV=true 16310 fi 16311 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16312 { $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 16313 $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;} 16314 else 16315 FOUND_MAKE=$MAKE_CANDIDATE 16316 16317 # Only process if variable expands to non-empty 16318 16319 if test "x$FOUND_MAKE" != x; then 16320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16321 16322 # First separate the path from the arguments. This will split at the first 16323 # space. 16324 complete="$FOUND_MAKE" 16325 path="${complete%% *}" 16326 tmp="$complete EOL" 16327 arguments="${tmp#* }" 16328 16329 # Input might be given as Windows format, start by converting to 16330 # unix format. 16331 new_path=`$CYGPATH -u "$path"` 16332 16333 # Now try to locate executable using which 16334 new_path=`$WHICH "$new_path" 2> /dev/null` 16335 # bat and cmd files are not always considered executable in cygwin causing which 16336 # to not find them 16337 if test "x$new_path" = x \ 16338 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16339 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16340 new_path=`$CYGPATH -u "$path"` 16341 fi 16342 if test "x$new_path" = x; then 16343 # Oops. Which didn't find the executable. 16344 # The splitting of arguments from the executable at a space might have been incorrect, 16345 # since paths with space are more likely in Windows. Give it another try with the whole 16346 # argument. 16347 path="$complete" 16348 arguments="EOL" 16349 new_path=`$CYGPATH -u "$path"` 16350 new_path=`$WHICH "$new_path" 2> /dev/null` 16351 # bat and cmd files are not always considered executable in cygwin causing which 16352 # to not find them 16353 if test "x$new_path" = x \ 16354 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16355 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16356 new_path=`$CYGPATH -u "$path"` 16357 fi 16358 if test "x$new_path" = x; then 16359 # It's still not found. Now this is an unrecoverable error. 16360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16361 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16362 has_space=`$ECHO "$complete" | $GREP " "` 16363 if test "x$has_space" != x; then 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16365 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16366 fi 16367 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16368 fi 16369 fi 16370 16371 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16372 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16373 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16374 # "foo.exe" is OK but "foo" is an error. 16375 # 16376 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16377 # It is also a way to make sure we got the proper file name for the real test later on. 16378 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16379 if test "x$test_shortpath" = x; then 16380 # Short path failed, file does not exist as specified. 16381 # Try adding .exe or .cmd 16382 if test -f "${new_path}.exe"; then 16383 input_to_shortpath="${new_path}.exe" 16384 elif test -f "${new_path}.cmd"; then 16385 input_to_shortpath="${new_path}.cmd" 16386 else 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16388 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16390 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16391 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16392 fi 16393 else 16394 input_to_shortpath="$new_path" 16395 fi 16396 16397 # Call helper function which possibly converts this using DOS-style short mode. 16398 # If so, the updated path is stored in $new_path. 16399 new_path="$input_to_shortpath" 16400 16401 input_path="$input_to_shortpath" 16402 # Check if we need to convert this using DOS-style short mode. If the path 16403 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16404 # take no chances and rewrite it. 16405 # Note: m4 eats our [], so we need to use [ and ] instead. 16406 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16407 if test "x$has_forbidden_chars" != x; then 16408 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16409 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16410 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16411 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16412 # Going to short mode and back again did indeed matter. Since short mode is 16413 # case insensitive, let's make it lowercase to improve readability. 16414 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16415 # Now convert it back to Unix-stile (cygpath) 16416 input_path=`$CYGPATH -u "$shortmode_path"` 16417 new_path="$input_path" 16418 fi 16419 fi 16420 16421 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16422 if test "x$test_cygdrive_prefix" = x; then 16423 # As a simple fix, exclude /usr/bin since it's not a real path. 16424 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16425 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16426 # a path prefixed by /cygdrive for fixpath to work. 16427 new_path="$CYGWIN_ROOT_PATH$input_path" 16428 fi 16429 fi 16430 16431 # remove trailing .exe if any 16432 new_path="${new_path/%.exe/}" 16433 16434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16435 16436 # First separate the path from the arguments. This will split at the first 16437 # space. 16438 complete="$FOUND_MAKE" 16439 path="${complete%% *}" 16440 tmp="$complete EOL" 16441 arguments="${tmp#* }" 16442 16443 # Input might be given as Windows format, start by converting to 16444 # unix format. 16445 new_path="$path" 16446 16447 windows_path="$new_path" 16448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16449 unix_path=`$CYGPATH -u "$windows_path"` 16450 new_path="$unix_path" 16451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16453 new_path="$unix_path" 16454 fi 16455 16456 16457 # Now try to locate executable using which 16458 new_path=`$WHICH "$new_path" 2> /dev/null` 16459 16460 if test "x$new_path" = x; then 16461 # Oops. Which didn't find the executable. 16462 # The splitting of arguments from the executable at a space might have been incorrect, 16463 # since paths with space are more likely in Windows. Give it another try with the whole 16464 # argument. 16465 path="$complete" 16466 arguments="EOL" 16467 new_path="$path" 16468 16469 windows_path="$new_path" 16470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16471 unix_path=`$CYGPATH -u "$windows_path"` 16472 new_path="$unix_path" 16473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16474 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16475 new_path="$unix_path" 16476 fi 16477 16478 16479 new_path=`$WHICH "$new_path" 2> /dev/null` 16480 # bat and cmd files are not always considered executable in MSYS causing which 16481 # to not find them 16482 if test "x$new_path" = x \ 16483 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16484 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16485 new_path="$path" 16486 16487 windows_path="$new_path" 16488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16489 unix_path=`$CYGPATH -u "$windows_path"` 16490 new_path="$unix_path" 16491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16492 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16493 new_path="$unix_path" 16494 fi 16495 16496 fi 16497 16498 if test "x$new_path" = x; then 16499 # It's still not found. Now this is an unrecoverable error. 16500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16501 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16502 has_space=`$ECHO "$complete" | $GREP " "` 16503 if test "x$has_space" != x; then 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16505 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16506 fi 16507 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16508 fi 16509 fi 16510 16511 # Now new_path has a complete unix path to the binary 16512 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16513 # Keep paths in /bin as-is, but remove trailing .exe if any 16514 new_path="${new_path/%.exe/}" 16515 # Do not save /bin paths to all_fixpath_prefixes! 16516 else 16517 # Not in mixed or Windows style, start by that. 16518 new_path=`cmd //c echo $new_path` 16519 16520 input_path="$new_path" 16521 # Check if we need to convert this using DOS-style short mode. If the path 16522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16523 # take no chances and rewrite it. 16524 # Note: m4 eats our [], so we need to use [ and ] instead. 16525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16526 if test "x$has_forbidden_chars" != x; then 16527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16528 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16529 fi 16530 16531 # Output is in $new_path 16532 16533 windows_path="$new_path" 16534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16535 unix_path=`$CYGPATH -u "$windows_path"` 16536 new_path="$unix_path" 16537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16538 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16539 new_path="$unix_path" 16540 fi 16541 16542 # remove trailing .exe if any 16543 new_path="${new_path/%.exe/}" 16544 16545 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16546 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16547 fi 16548 16549 else 16550 # We're on a unix platform. Hooray! :) 16551 # First separate the path from the arguments. This will split at the first 16552 # space. 16553 complete="$FOUND_MAKE" 16554 path="${complete%% *}" 16555 tmp="$complete EOL" 16556 arguments="${tmp#* }" 16557 16558 # Cannot rely on the command "which" here since it doesn't always work. 16559 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16560 if test -z "$is_absolute_path"; then 16561 # Path to executable is not absolute. Find it. 16562 IFS_save="$IFS" 16563 IFS=: 16564 for p in $PATH; do 16565 if test -f "$p/$path" && test -x "$p/$path"; then 16566 new_path="$p/$path" 16567 break 16568 fi 16569 done 16570 IFS="$IFS_save" 16571 else 16572 # This is an absolute path, we can use it without further modifications. 16573 new_path="$path" 16574 fi 16575 16576 if test "x$new_path" = x; then 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16578 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16579 has_space=`$ECHO "$complete" | $GREP " "` 16580 if test "x$has_space" != x; then 16581 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16582 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16583 fi 16584 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16585 fi 16586 fi 16587 16588 # Now join together the path and the arguments once again 16589 if test "x$arguments" != xEOL; then 16590 new_complete="$new_path ${arguments% *}" 16591 else 16592 new_complete="$new_path" 16593 fi 16594 16595 if test "x$complete" != "x$new_complete"; then 16596 FOUND_MAKE="$new_complete" 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16598 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16599 fi 16600 fi 16601 16602 fi 16603 fi 16604 fi 16605 fi 16606 16607 fi 16608 16609 if test "x$FOUND_MAKE" = x; then 16610 if test "x$TOOLCHAIN_PATH" != x; then 16611 # We have a toolchain path, check that as well before giving up. 16612 OLD_PATH=$PATH 16613 PATH=$TOOLCHAIN_PATH:$PATH 16614 for ac_prog in gmake 16615 do 16616 # Extract the first word of "$ac_prog", so it can be a program name with args. 16617 set dummy $ac_prog; ac_word=$2 16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16619 $as_echo_n "checking for $ac_word... " >&6; } 16620 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16621 $as_echo_n "(cached) " >&6 16622 else 16623 case $CHECK_TOOLSDIR_GMAKE in 16624 [\\/]* | ?:[\\/]*) 16625 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16626 ;; 16627 *) 16628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16629 for as_dir in $PATH 16630 do 16631 IFS=$as_save_IFS 16632 test -z "$as_dir" && as_dir=. 16633 for ac_exec_ext in '' $ac_executable_extensions; do 16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16635 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16637 break 2 16638 fi 16639 done 16640 done 16641 IFS=$as_save_IFS 16642 16643 ;; 16644 esac 16645 fi 16646 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16647 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16649 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16650 else 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16652 $as_echo "no" >&6; } 16653 fi 16654 16655 16656 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16657 done 16658 16659 16660 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16661 DESCRIPTION="gmake in tools-dir" 16662 if test "x$MAKE_CANDIDATE" != x; then 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16664 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16665 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16666 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16667 if test "x$IS_GNU_MAKE" = x; then 16668 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16669 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16670 else 16671 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16672 if test "x$IS_MODERN_MAKE" = x; then 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16674 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16675 else 16676 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16678 MAKE_EXPECTED_ENV='cygwin' 16679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16680 MAKE_EXPECTED_ENV='msys' 16681 else 16682 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16683 fi 16684 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16685 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16686 else 16687 # Not relevant for non-Windows 16688 IS_MAKE_CORRECT_ENV=true 16689 fi 16690 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16691 { $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 16692 $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;} 16693 else 16694 FOUND_MAKE=$MAKE_CANDIDATE 16695 16696 # Only process if variable expands to non-empty 16697 16698 if test "x$FOUND_MAKE" != x; then 16699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16700 16701 # First separate the path from the arguments. This will split at the first 16702 # space. 16703 complete="$FOUND_MAKE" 16704 path="${complete%% *}" 16705 tmp="$complete EOL" 16706 arguments="${tmp#* }" 16707 16708 # Input might be given as Windows format, start by converting to 16709 # unix format. 16710 new_path=`$CYGPATH -u "$path"` 16711 16712 # Now try to locate executable using which 16713 new_path=`$WHICH "$new_path" 2> /dev/null` 16714 # bat and cmd files are not always considered executable in cygwin causing which 16715 # to not find them 16716 if test "x$new_path" = x \ 16717 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16718 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16719 new_path=`$CYGPATH -u "$path"` 16720 fi 16721 if test "x$new_path" = x; then 16722 # Oops. Which didn't find the executable. 16723 # The splitting of arguments from the executable at a space might have been incorrect, 16724 # since paths with space are more likely in Windows. Give it another try with the whole 16725 # argument. 16726 path="$complete" 16727 arguments="EOL" 16728 new_path=`$CYGPATH -u "$path"` 16729 new_path=`$WHICH "$new_path" 2> /dev/null` 16730 # bat and cmd files are not always considered executable in cygwin causing which 16731 # to not find them 16732 if test "x$new_path" = x \ 16733 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16734 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16735 new_path=`$CYGPATH -u "$path"` 16736 fi 16737 if test "x$new_path" = x; then 16738 # It's still not found. Now this is an unrecoverable error. 16739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16740 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16741 has_space=`$ECHO "$complete" | $GREP " "` 16742 if test "x$has_space" != x; then 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16744 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16745 fi 16746 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16747 fi 16748 fi 16749 16750 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16751 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16752 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16753 # "foo.exe" is OK but "foo" is an error. 16754 # 16755 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16756 # It is also a way to make sure we got the proper file name for the real test later on. 16757 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16758 if test "x$test_shortpath" = x; then 16759 # Short path failed, file does not exist as specified. 16760 # Try adding .exe or .cmd 16761 if test -f "${new_path}.exe"; then 16762 input_to_shortpath="${new_path}.exe" 16763 elif test -f "${new_path}.cmd"; then 16764 input_to_shortpath="${new_path}.cmd" 16765 else 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16767 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16769 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16770 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16771 fi 16772 else 16773 input_to_shortpath="$new_path" 16774 fi 16775 16776 # Call helper function which possibly converts this using DOS-style short mode. 16777 # If so, the updated path is stored in $new_path. 16778 new_path="$input_to_shortpath" 16779 16780 input_path="$input_to_shortpath" 16781 # Check if we need to convert this using DOS-style short mode. If the path 16782 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16783 # take no chances and rewrite it. 16784 # Note: m4 eats our [], so we need to use [ and ] instead. 16785 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16786 if test "x$has_forbidden_chars" != x; then 16787 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16788 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16789 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16790 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16791 # Going to short mode and back again did indeed matter. Since short mode is 16792 # case insensitive, let's make it lowercase to improve readability. 16793 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16794 # Now convert it back to Unix-stile (cygpath) 16795 input_path=`$CYGPATH -u "$shortmode_path"` 16796 new_path="$input_path" 16797 fi 16798 fi 16799 16800 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16801 if test "x$test_cygdrive_prefix" = x; then 16802 # As a simple fix, exclude /usr/bin since it's not a real path. 16803 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16804 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16805 # a path prefixed by /cygdrive for fixpath to work. 16806 new_path="$CYGWIN_ROOT_PATH$input_path" 16807 fi 16808 fi 16809 16810 # remove trailing .exe if any 16811 new_path="${new_path/%.exe/}" 16812 16813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16814 16815 # First separate the path from the arguments. This will split at the first 16816 # space. 16817 complete="$FOUND_MAKE" 16818 path="${complete%% *}" 16819 tmp="$complete EOL" 16820 arguments="${tmp#* }" 16821 16822 # Input might be given as Windows format, start by converting to 16823 # unix format. 16824 new_path="$path" 16825 16826 windows_path="$new_path" 16827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16828 unix_path=`$CYGPATH -u "$windows_path"` 16829 new_path="$unix_path" 16830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16832 new_path="$unix_path" 16833 fi 16834 16835 16836 # Now try to locate executable using which 16837 new_path=`$WHICH "$new_path" 2> /dev/null` 16838 16839 if test "x$new_path" = x; then 16840 # Oops. Which didn't find the executable. 16841 # The splitting of arguments from the executable at a space might have been incorrect, 16842 # since paths with space are more likely in Windows. Give it another try with the whole 16843 # argument. 16844 path="$complete" 16845 arguments="EOL" 16846 new_path="$path" 16847 16848 windows_path="$new_path" 16849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16850 unix_path=`$CYGPATH -u "$windows_path"` 16851 new_path="$unix_path" 16852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16853 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16854 new_path="$unix_path" 16855 fi 16856 16857 16858 new_path=`$WHICH "$new_path" 2> /dev/null` 16859 # bat and cmd files are not always considered executable in MSYS causing which 16860 # to not find them 16861 if test "x$new_path" = x \ 16862 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16863 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16864 new_path="$path" 16865 16866 windows_path="$new_path" 16867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16868 unix_path=`$CYGPATH -u "$windows_path"` 16869 new_path="$unix_path" 16870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16872 new_path="$unix_path" 16873 fi 16874 16875 fi 16876 16877 if test "x$new_path" = x; then 16878 # It's still not found. Now this is an unrecoverable error. 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16880 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16881 has_space=`$ECHO "$complete" | $GREP " "` 16882 if test "x$has_space" != x; then 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16884 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16885 fi 16886 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16887 fi 16888 fi 16889 16890 # Now new_path has a complete unix path to the binary 16891 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16892 # Keep paths in /bin as-is, but remove trailing .exe if any 16893 new_path="${new_path/%.exe/}" 16894 # Do not save /bin paths to all_fixpath_prefixes! 16895 else 16896 # Not in mixed or Windows style, start by that. 16897 new_path=`cmd //c echo $new_path` 16898 16899 input_path="$new_path" 16900 # Check if we need to convert this using DOS-style short mode. If the path 16901 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16902 # take no chances and rewrite it. 16903 # Note: m4 eats our [], so we need to use [ and ] instead. 16904 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16905 if test "x$has_forbidden_chars" != x; then 16906 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16907 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16908 fi 16909 16910 # Output is in $new_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 # remove trailing .exe if any 16922 new_path="${new_path/%.exe/}" 16923 16924 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16925 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16926 fi 16927 16928 else 16929 # We're on a unix platform. Hooray! :) 16930 # First separate the path from the arguments. This will split at the first 16931 # space. 16932 complete="$FOUND_MAKE" 16933 path="${complete%% *}" 16934 tmp="$complete EOL" 16935 arguments="${tmp#* }" 16936 16937 # Cannot rely on the command "which" here since it doesn't always work. 16938 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16939 if test -z "$is_absolute_path"; then 16940 # Path to executable is not absolute. Find it. 16941 IFS_save="$IFS" 16942 IFS=: 16943 for p in $PATH; do 16944 if test -f "$p/$path" && test -x "$p/$path"; then 16945 new_path="$p/$path" 16946 break 16947 fi 16948 done 16949 IFS="$IFS_save" 16950 else 16951 # This is an absolute path, we can use it without further modifications. 16952 new_path="$path" 16953 fi 16954 16955 if test "x$new_path" = x; then 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16957 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16958 has_space=`$ECHO "$complete" | $GREP " "` 16959 if test "x$has_space" != x; then 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16961 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16962 fi 16963 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16964 fi 16965 fi 16966 16967 # Now join together the path and the arguments once again 16968 if test "x$arguments" != xEOL; then 16969 new_complete="$new_path ${arguments% *}" 16970 else 16971 new_complete="$new_path" 16972 fi 16973 16974 if test "x$complete" != "x$new_complete"; then 16975 FOUND_MAKE="$new_complete" 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16977 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16978 fi 16979 fi 16980 16981 fi 16982 fi 16983 fi 16984 fi 16985 16986 if test "x$FOUND_MAKE" = x; then 16987 for ac_prog in make 16988 do 16989 # Extract the first word of "$ac_prog", so it can be a program name with args. 16990 set dummy $ac_prog; ac_word=$2 16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16992 $as_echo_n "checking for $ac_word... " >&6; } 16993 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16994 $as_echo_n "(cached) " >&6 16995 else 16996 case $CHECK_TOOLSDIR_MAKE in 16997 [\\/]* | ?:[\\/]*) 16998 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16999 ;; 17000 *) 17001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17002 for as_dir in $PATH 17003 do 17004 IFS=$as_save_IFS 17005 test -z "$as_dir" && as_dir=. 17006 for ac_exec_ext in '' $ac_executable_extensions; do 17007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17008 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 17009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17010 break 2 17011 fi 17012 done 17013 done 17014 IFS=$as_save_IFS 17015 17016 ;; 17017 esac 17018 fi 17019 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 17020 if test -n "$CHECK_TOOLSDIR_MAKE"; then 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 17022 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 17023 else 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17025 $as_echo "no" >&6; } 17026 fi 17027 17028 17029 test -n "$CHECK_TOOLSDIR_MAKE" && break 17030 done 17031 17032 17033 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 17034 DESCRIPTION="make in tools-dir" 17035 if test "x$MAKE_CANDIDATE" != x; then 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17037 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17038 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17039 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17040 if test "x$IS_GNU_MAKE" = x; then 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17042 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17043 else 17044 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 17045 if test "x$IS_MODERN_MAKE" = x; then 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17047 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17048 else 17049 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17051 MAKE_EXPECTED_ENV='cygwin' 17052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17053 MAKE_EXPECTED_ENV='msys' 17054 else 17055 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17056 fi 17057 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17058 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17059 else 17060 # Not relevant for non-Windows 17061 IS_MAKE_CORRECT_ENV=true 17062 fi 17063 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17064 { $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 17065 $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;} 17066 else 17067 FOUND_MAKE=$MAKE_CANDIDATE 17068 17069 # Only process if variable expands to non-empty 17070 17071 if test "x$FOUND_MAKE" != x; then 17072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17073 17074 # First separate the path from the arguments. This will split at the first 17075 # space. 17076 complete="$FOUND_MAKE" 17077 path="${complete%% *}" 17078 tmp="$complete EOL" 17079 arguments="${tmp#* }" 17080 17081 # Input might be given as Windows format, start by converting to 17082 # unix format. 17083 new_path=`$CYGPATH -u "$path"` 17084 17085 # Now try to locate executable using which 17086 new_path=`$WHICH "$new_path" 2> /dev/null` 17087 # bat and cmd files are not always considered executable in cygwin causing which 17088 # to not find them 17089 if test "x$new_path" = x \ 17090 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17091 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17092 new_path=`$CYGPATH -u "$path"` 17093 fi 17094 if test "x$new_path" = x; then 17095 # Oops. Which didn't find the executable. 17096 # The splitting of arguments from the executable at a space might have been incorrect, 17097 # since paths with space are more likely in Windows. Give it another try with the whole 17098 # argument. 17099 path="$complete" 17100 arguments="EOL" 17101 new_path=`$CYGPATH -u "$path"` 17102 new_path=`$WHICH "$new_path" 2> /dev/null` 17103 # bat and cmd files are not always considered executable in cygwin causing which 17104 # to not find them 17105 if test "x$new_path" = x \ 17106 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17107 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17108 new_path=`$CYGPATH -u "$path"` 17109 fi 17110 if test "x$new_path" = x; then 17111 # It's still not found. Now this is an unrecoverable error. 17112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17113 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17114 has_space=`$ECHO "$complete" | $GREP " "` 17115 if test "x$has_space" != x; then 17116 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17117 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17118 fi 17119 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17120 fi 17121 fi 17122 17123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17126 # "foo.exe" is OK but "foo" is an error. 17127 # 17128 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17129 # It is also a way to make sure we got the proper file name for the real test later on. 17130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17131 if test "x$test_shortpath" = x; then 17132 # Short path failed, file does not exist as specified. 17133 # Try adding .exe or .cmd 17134 if test -f "${new_path}.exe"; then 17135 input_to_shortpath="${new_path}.exe" 17136 elif test -f "${new_path}.cmd"; then 17137 input_to_shortpath="${new_path}.cmd" 17138 else 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17140 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17142 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17144 fi 17145 else 17146 input_to_shortpath="$new_path" 17147 fi 17148 17149 # Call helper function which possibly converts this using DOS-style short mode. 17150 # If so, the updated path is stored in $new_path. 17151 new_path="$input_to_shortpath" 17152 17153 input_path="$input_to_shortpath" 17154 # Check if we need to convert this using DOS-style short mode. If the path 17155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17156 # take no chances and rewrite it. 17157 # Note: m4 eats our [], so we need to use [ and ] instead. 17158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17159 if test "x$has_forbidden_chars" != x; then 17160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17164 # Going to short mode and back again did indeed matter. Since short mode is 17165 # case insensitive, let's make it lowercase to improve readability. 17166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17167 # Now convert it back to Unix-stile (cygpath) 17168 input_path=`$CYGPATH -u "$shortmode_path"` 17169 new_path="$input_path" 17170 fi 17171 fi 17172 17173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17174 if test "x$test_cygdrive_prefix" = x; then 17175 # As a simple fix, exclude /usr/bin since it's not a real path. 17176 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17178 # a path prefixed by /cygdrive for fixpath to work. 17179 new_path="$CYGWIN_ROOT_PATH$input_path" 17180 fi 17181 fi 17182 17183 # remove trailing .exe if any 17184 new_path="${new_path/%.exe/}" 17185 17186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17187 17188 # First separate the path from the arguments. This will split at the first 17189 # space. 17190 complete="$FOUND_MAKE" 17191 path="${complete%% *}" 17192 tmp="$complete EOL" 17193 arguments="${tmp#* }" 17194 17195 # Input might be given as Windows format, start by converting to 17196 # unix format. 17197 new_path="$path" 17198 17199 windows_path="$new_path" 17200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17201 unix_path=`$CYGPATH -u "$windows_path"` 17202 new_path="$unix_path" 17203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17205 new_path="$unix_path" 17206 fi 17207 17208 17209 # Now try to locate executable using which 17210 new_path=`$WHICH "$new_path" 2> /dev/null` 17211 17212 if test "x$new_path" = x; then 17213 # Oops. Which didn't find the executable. 17214 # The splitting of arguments from the executable at a space might have been incorrect, 17215 # since paths with space are more likely in Windows. Give it another try with the whole 17216 # argument. 17217 path="$complete" 17218 arguments="EOL" 17219 new_path="$path" 17220 17221 windows_path="$new_path" 17222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17223 unix_path=`$CYGPATH -u "$windows_path"` 17224 new_path="$unix_path" 17225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17227 new_path="$unix_path" 17228 fi 17229 17230 17231 new_path=`$WHICH "$new_path" 2> /dev/null` 17232 # bat and cmd files are not always considered executable in MSYS causing which 17233 # to not find them 17234 if test "x$new_path" = x \ 17235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17237 new_path="$path" 17238 17239 windows_path="$new_path" 17240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17241 unix_path=`$CYGPATH -u "$windows_path"` 17242 new_path="$unix_path" 17243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17244 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17245 new_path="$unix_path" 17246 fi 17247 17248 fi 17249 17250 if test "x$new_path" = x; then 17251 # It's still not found. Now this is an unrecoverable error. 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17253 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17254 has_space=`$ECHO "$complete" | $GREP " "` 17255 if test "x$has_space" != x; then 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17258 fi 17259 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17260 fi 17261 fi 17262 17263 # Now new_path has a complete unix path to the binary 17264 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17265 # Keep paths in /bin as-is, but remove trailing .exe if any 17266 new_path="${new_path/%.exe/}" 17267 # Do not save /bin paths to all_fixpath_prefixes! 17268 else 17269 # Not in mixed or Windows style, start by that. 17270 new_path=`cmd //c echo $new_path` 17271 17272 input_path="$new_path" 17273 # Check if we need to convert this using DOS-style short mode. If the path 17274 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17275 # take no chances and rewrite it. 17276 # Note: m4 eats our [], so we need to use [ and ] instead. 17277 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17278 if test "x$has_forbidden_chars" != x; then 17279 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17280 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17281 fi 17282 17283 # Output is in $new_path 17284 17285 windows_path="$new_path" 17286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17287 unix_path=`$CYGPATH -u "$windows_path"` 17288 new_path="$unix_path" 17289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17291 new_path="$unix_path" 17292 fi 17293 17294 # remove trailing .exe if any 17295 new_path="${new_path/%.exe/}" 17296 17297 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17298 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17299 fi 17300 17301 else 17302 # We're on a unix platform. Hooray! :) 17303 # First separate the path from the arguments. This will split at the first 17304 # space. 17305 complete="$FOUND_MAKE" 17306 path="${complete%% *}" 17307 tmp="$complete EOL" 17308 arguments="${tmp#* }" 17309 17310 # Cannot rely on the command "which" here since it doesn't always work. 17311 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17312 if test -z "$is_absolute_path"; then 17313 # Path to executable is not absolute. Find it. 17314 IFS_save="$IFS" 17315 IFS=: 17316 for p in $PATH; do 17317 if test -f "$p/$path" && test -x "$p/$path"; then 17318 new_path="$p/$path" 17319 break 17320 fi 17321 done 17322 IFS="$IFS_save" 17323 else 17324 # This is an absolute path, we can use it without further modifications. 17325 new_path="$path" 17326 fi 17327 17328 if test "x$new_path" = x; then 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17330 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17331 has_space=`$ECHO "$complete" | $GREP " "` 17332 if test "x$has_space" != x; then 17333 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17334 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17335 fi 17336 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17337 fi 17338 fi 17339 17340 # Now join together the path and the arguments once again 17341 if test "x$arguments" != xEOL; then 17342 new_complete="$new_path ${arguments% *}" 17343 else 17344 new_complete="$new_path" 17345 fi 17346 17347 if test "x$complete" != "x$new_complete"; then 17348 FOUND_MAKE="$new_complete" 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17350 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17351 fi 17352 fi 17353 17354 fi 17355 fi 17356 fi 17357 fi 17358 17359 fi 17360 PATH=$OLD_PATH 17361 fi 17362 fi 17363 17364 if test "x$FOUND_MAKE" = x; then 17365 as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 17366 fi 17367 fi 17368 17369 MAKE=$FOUND_MAKE 17370 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17372 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17373 17374 17375 # Check if make supports the output sync option and if so, setup using it. 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17377 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17378 if $MAKE --version -O > /dev/null 2>&1; then 17379 OUTPUT_SYNC_SUPPORTED=true 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17381 $as_echo "yes" >&6; } 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17383 $as_echo_n "checking for output-sync value... " >&6; } 17384 17385 # Check whether --with-output-sync was given. 17386 if test "${with_output_sync+set}" = set; then : 17387 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17388 fi 17389 17390 if test "x$OUTPUT_SYNC" = "x"; then 17391 OUTPUT_SYNC=none 17392 fi 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17394 $as_echo "$OUTPUT_SYNC" >&6; } 17395 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17396 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17397 fi 17398 else 17399 OUTPUT_SYNC_SUPPORTED=false 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17401 $as_echo "no" >&6; } 17402 fi 17403 17404 17405 17406 17407 17408 17409 # Test if find supports -delete 17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17411 $as_echo_n "checking if find supports -delete... " >&6; } 17412 FIND_DELETE="-delete" 17413 17414 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17415 17416 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17417 17418 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17419 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17420 # No, it does not. 17421 rm $DELETEDIR/TestIfFindSupportsDelete 17422 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17423 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17424 FIND_DELETE="-print | xargs rm" 17425 else 17426 FIND_DELETE="-exec rm \{\} \+" 17427 fi 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17429 $as_echo "no" >&6; } 17430 else 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17432 $as_echo "yes" >&6; } 17433 fi 17434 rmdir $DELETEDIR 17435 17436 17437 17438 # These tools might not be installed by default, 17439 # need hint on how to install them. 17440 17441 17442 17443 # Publish this variable in the help. 17444 17445 17446 if test "x$UNZIP" = x; then 17447 # The variable is not set by user, try to locate tool using the code snippet 17448 for ac_prog in unzip 17449 do 17450 # Extract the first word of "$ac_prog", so it can be a program name with args. 17451 set dummy $ac_prog; ac_word=$2 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17453 $as_echo_n "checking for $ac_word... " >&6; } 17454 if ${ac_cv_path_UNZIP+:} false; then : 17455 $as_echo_n "(cached) " >&6 17456 else 17457 case $UNZIP in 17458 [\\/]* | ?:[\\/]*) 17459 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17460 ;; 17461 *) 17462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17463 for as_dir in $PATH 17464 do 17465 IFS=$as_save_IFS 17466 test -z "$as_dir" && as_dir=. 17467 for ac_exec_ext in '' $ac_executable_extensions; do 17468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17469 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17471 break 2 17472 fi 17473 done 17474 done 17475 IFS=$as_save_IFS 17476 17477 ;; 17478 esac 17479 fi 17480 UNZIP=$ac_cv_path_UNZIP 17481 if test -n "$UNZIP"; then 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17483 $as_echo "$UNZIP" >&6; } 17484 else 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17486 $as_echo "no" >&6; } 17487 fi 17488 17489 17490 test -n "$UNZIP" && break 17491 done 17492 17493 else 17494 # The variable is set, but is it from the command line or the environment? 17495 17496 # Try to remove the string !UNZIP! from our list. 17497 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17498 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17499 # If it failed, the variable was not from the command line. Ignore it, 17500 # but warn the user (except for BASH, which is always set by the calling BASH). 17501 if test "xUNZIP" != xBASH; then 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17503 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17504 fi 17505 # Try to locate tool using the code snippet 17506 for ac_prog in unzip 17507 do 17508 # Extract the first word of "$ac_prog", so it can be a program name with args. 17509 set dummy $ac_prog; ac_word=$2 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17511 $as_echo_n "checking for $ac_word... " >&6; } 17512 if ${ac_cv_path_UNZIP+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514 else 17515 case $UNZIP in 17516 [\\/]* | ?:[\\/]*) 17517 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17518 ;; 17519 *) 17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17521 for as_dir in $PATH 17522 do 17523 IFS=$as_save_IFS 17524 test -z "$as_dir" && as_dir=. 17525 for ac_exec_ext in '' $ac_executable_extensions; do 17526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17527 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17529 break 2 17530 fi 17531 done 17532 done 17533 IFS=$as_save_IFS 17534 17535 ;; 17536 esac 17537 fi 17538 UNZIP=$ac_cv_path_UNZIP 17539 if test -n "$UNZIP"; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17541 $as_echo "$UNZIP" >&6; } 17542 else 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17544 $as_echo "no" >&6; } 17545 fi 17546 17547 17548 test -n "$UNZIP" && break 17549 done 17550 17551 else 17552 # If it succeeded, then it was overridden by the user. We will use it 17553 # for the tool. 17554 17555 # First remove it from the list of overridden variables, so we can test 17556 # for unknown variables in the end. 17557 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17558 17559 # Check if the provided tool contains a complete path. 17560 tool_specified="$UNZIP" 17561 tool_basename="${tool_specified##*/}" 17562 if test "x$tool_basename" = "x$tool_specified"; then 17563 # A command without a complete path is provided, search $PATH. 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17565 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17566 # Extract the first word of "$tool_basename", so it can be a program name with args. 17567 set dummy $tool_basename; ac_word=$2 17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17569 $as_echo_n "checking for $ac_word... " >&6; } 17570 if ${ac_cv_path_UNZIP+:} false; then : 17571 $as_echo_n "(cached) " >&6 17572 else 17573 case $UNZIP in 17574 [\\/]* | ?:[\\/]*) 17575 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17576 ;; 17577 *) 17578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17579 for as_dir in $PATH 17580 do 17581 IFS=$as_save_IFS 17582 test -z "$as_dir" && as_dir=. 17583 for ac_exec_ext in '' $ac_executable_extensions; do 17584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17585 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17587 break 2 17588 fi 17589 done 17590 done 17591 IFS=$as_save_IFS 17592 17593 ;; 17594 esac 17595 fi 17596 UNZIP=$ac_cv_path_UNZIP 17597 if test -n "$UNZIP"; then 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17599 $as_echo "$UNZIP" >&6; } 17600 else 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17602 $as_echo "no" >&6; } 17603 fi 17604 17605 17606 if test "x$UNZIP" = x; then 17607 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17608 fi 17609 else 17610 # Otherwise we believe it is a complete path. Use it as it is. 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17612 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17614 $as_echo_n "checking for UNZIP... " >&6; } 17615 if test ! -x "$tool_specified"; then 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17617 $as_echo "not found" >&6; } 17618 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17619 fi 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17621 $as_echo "$tool_specified" >&6; } 17622 fi 17623 fi 17624 fi 17625 17626 17627 17628 if test "x$UNZIP" = x; then 17629 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17630 fi 17631 17632 17633 17634 17635 17636 # Publish this variable in the help. 17637 17638 17639 if test "x$ZIP" = x; then 17640 # The variable is not set by user, try to locate tool using the code snippet 17641 for ac_prog in zip 17642 do 17643 # Extract the first word of "$ac_prog", so it can be a program name with args. 17644 set dummy $ac_prog; ac_word=$2 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17646 $as_echo_n "checking for $ac_word... " >&6; } 17647 if ${ac_cv_path_ZIP+:} false; then : 17648 $as_echo_n "(cached) " >&6 17649 else 17650 case $ZIP in 17651 [\\/]* | ?:[\\/]*) 17652 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17653 ;; 17654 *) 17655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17656 for as_dir in $PATH 17657 do 17658 IFS=$as_save_IFS 17659 test -z "$as_dir" && as_dir=. 17660 for ac_exec_ext in '' $ac_executable_extensions; do 17661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17662 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17664 break 2 17665 fi 17666 done 17667 done 17668 IFS=$as_save_IFS 17669 17670 ;; 17671 esac 17672 fi 17673 ZIP=$ac_cv_path_ZIP 17674 if test -n "$ZIP"; then 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17676 $as_echo "$ZIP" >&6; } 17677 else 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17679 $as_echo "no" >&6; } 17680 fi 17681 17682 17683 test -n "$ZIP" && break 17684 done 17685 17686 else 17687 # The variable is set, but is it from the command line or the environment? 17688 17689 # Try to remove the string !ZIP! from our list. 17690 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17691 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17692 # If it failed, the variable was not from the command line. Ignore it, 17693 # but warn the user (except for BASH, which is always set by the calling BASH). 17694 if test "xZIP" != xBASH; then 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17696 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17697 fi 17698 # Try to locate tool using the code snippet 17699 for ac_prog in zip 17700 do 17701 # Extract the first word of "$ac_prog", so it can be a program name with args. 17702 set dummy $ac_prog; ac_word=$2 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17704 $as_echo_n "checking for $ac_word... " >&6; } 17705 if ${ac_cv_path_ZIP+:} false; then : 17706 $as_echo_n "(cached) " >&6 17707 else 17708 case $ZIP in 17709 [\\/]* | ?:[\\/]*) 17710 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17711 ;; 17712 *) 17713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17714 for as_dir in $PATH 17715 do 17716 IFS=$as_save_IFS 17717 test -z "$as_dir" && as_dir=. 17718 for ac_exec_ext in '' $ac_executable_extensions; do 17719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17720 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17722 break 2 17723 fi 17724 done 17725 done 17726 IFS=$as_save_IFS 17727 17728 ;; 17729 esac 17730 fi 17731 ZIP=$ac_cv_path_ZIP 17732 if test -n "$ZIP"; then 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17734 $as_echo "$ZIP" >&6; } 17735 else 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17737 $as_echo "no" >&6; } 17738 fi 17739 17740 17741 test -n "$ZIP" && break 17742 done 17743 17744 else 17745 # If it succeeded, then it was overridden by the user. We will use it 17746 # for the tool. 17747 17748 # First remove it from the list of overridden variables, so we can test 17749 # for unknown variables in the end. 17750 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17751 17752 # Check if the provided tool contains a complete path. 17753 tool_specified="$ZIP" 17754 tool_basename="${tool_specified##*/}" 17755 if test "x$tool_basename" = "x$tool_specified"; then 17756 # A command without a complete path is provided, search $PATH. 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17758 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17759 # Extract the first word of "$tool_basename", so it can be a program name with args. 17760 set dummy $tool_basename; ac_word=$2 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17762 $as_echo_n "checking for $ac_word... " >&6; } 17763 if ${ac_cv_path_ZIP+:} false; then : 17764 $as_echo_n "(cached) " >&6 17765 else 17766 case $ZIP in 17767 [\\/]* | ?:[\\/]*) 17768 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17769 ;; 17770 *) 17771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17772 for as_dir in $PATH 17773 do 17774 IFS=$as_save_IFS 17775 test -z "$as_dir" && as_dir=. 17776 for ac_exec_ext in '' $ac_executable_extensions; do 17777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17778 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17780 break 2 17781 fi 17782 done 17783 done 17784 IFS=$as_save_IFS 17785 17786 ;; 17787 esac 17788 fi 17789 ZIP=$ac_cv_path_ZIP 17790 if test -n "$ZIP"; then 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17792 $as_echo "$ZIP" >&6; } 17793 else 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17795 $as_echo "no" >&6; } 17796 fi 17797 17798 17799 if test "x$ZIP" = x; then 17800 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17801 fi 17802 else 17803 # Otherwise we believe it is a complete path. Use it as it is. 17804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17805 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17807 $as_echo_n "checking for ZIP... " >&6; } 17808 if test ! -x "$tool_specified"; then 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17810 $as_echo "not found" >&6; } 17811 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17812 fi 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17814 $as_echo "$tool_specified" >&6; } 17815 fi 17816 fi 17817 fi 17818 17819 17820 17821 if test "x$ZIP" = x; then 17822 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17823 fi 17824 17825 17826 17827 # Non-required basic tools 17828 17829 17830 17831 # Publish this variable in the help. 17832 17833 17834 if test "x$LDD" = x; then 17835 # The variable is not set by user, try to locate tool using the code snippet 17836 for ac_prog in ldd 17837 do 17838 # Extract the first word of "$ac_prog", so it can be a program name with args. 17839 set dummy $ac_prog; ac_word=$2 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17841 $as_echo_n "checking for $ac_word... " >&6; } 17842 if ${ac_cv_path_LDD+:} false; then : 17843 $as_echo_n "(cached) " >&6 17844 else 17845 case $LDD in 17846 [\\/]* | ?:[\\/]*) 17847 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17848 ;; 17849 *) 17850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17851 for as_dir in $PATH 17852 do 17853 IFS=$as_save_IFS 17854 test -z "$as_dir" && as_dir=. 17855 for ac_exec_ext in '' $ac_executable_extensions; do 17856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17857 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17859 break 2 17860 fi 17861 done 17862 done 17863 IFS=$as_save_IFS 17864 17865 ;; 17866 esac 17867 fi 17868 LDD=$ac_cv_path_LDD 17869 if test -n "$LDD"; then 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17871 $as_echo "$LDD" >&6; } 17872 else 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17874 $as_echo "no" >&6; } 17875 fi 17876 17877 17878 test -n "$LDD" && break 17879 done 17880 17881 else 17882 # The variable is set, but is it from the command line or the environment? 17883 17884 # Try to remove the string !LDD! from our list. 17885 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17886 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17887 # If it failed, the variable was not from the command line. Ignore it, 17888 # but warn the user (except for BASH, which is always set by the calling BASH). 17889 if test "xLDD" != xBASH; then 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17891 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17892 fi 17893 # Try to locate tool using the code snippet 17894 for ac_prog in ldd 17895 do 17896 # Extract the first word of "$ac_prog", so it can be a program name with args. 17897 set dummy $ac_prog; ac_word=$2 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17899 $as_echo_n "checking for $ac_word... " >&6; } 17900 if ${ac_cv_path_LDD+:} false; then : 17901 $as_echo_n "(cached) " >&6 17902 else 17903 case $LDD in 17904 [\\/]* | ?:[\\/]*) 17905 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17906 ;; 17907 *) 17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17909 for as_dir in $PATH 17910 do 17911 IFS=$as_save_IFS 17912 test -z "$as_dir" && as_dir=. 17913 for ac_exec_ext in '' $ac_executable_extensions; do 17914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17915 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17917 break 2 17918 fi 17919 done 17920 done 17921 IFS=$as_save_IFS 17922 17923 ;; 17924 esac 17925 fi 17926 LDD=$ac_cv_path_LDD 17927 if test -n "$LDD"; then 17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17929 $as_echo "$LDD" >&6; } 17930 else 17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17932 $as_echo "no" >&6; } 17933 fi 17934 17935 17936 test -n "$LDD" && break 17937 done 17938 17939 else 17940 # If it succeeded, then it was overridden by the user. We will use it 17941 # for the tool. 17942 17943 # First remove it from the list of overridden variables, so we can test 17944 # for unknown variables in the end. 17945 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17946 17947 # Check if the provided tool contains a complete path. 17948 tool_specified="$LDD" 17949 tool_basename="${tool_specified##*/}" 17950 if test "x$tool_basename" = "x$tool_specified"; then 17951 # A command without a complete path is provided, search $PATH. 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17953 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17954 # Extract the first word of "$tool_basename", so it can be a program name with args. 17955 set dummy $tool_basename; ac_word=$2 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17957 $as_echo_n "checking for $ac_word... " >&6; } 17958 if ${ac_cv_path_LDD+:} false; then : 17959 $as_echo_n "(cached) " >&6 17960 else 17961 case $LDD in 17962 [\\/]* | ?:[\\/]*) 17963 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17964 ;; 17965 *) 17966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17967 for as_dir in $PATH 17968 do 17969 IFS=$as_save_IFS 17970 test -z "$as_dir" && as_dir=. 17971 for ac_exec_ext in '' $ac_executable_extensions; do 17972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17973 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17975 break 2 17976 fi 17977 done 17978 done 17979 IFS=$as_save_IFS 17980 17981 ;; 17982 esac 17983 fi 17984 LDD=$ac_cv_path_LDD 17985 if test -n "$LDD"; then 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17987 $as_echo "$LDD" >&6; } 17988 else 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17990 $as_echo "no" >&6; } 17991 fi 17992 17993 17994 if test "x$LDD" = x; then 17995 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17996 fi 17997 else 17998 # Otherwise we believe it is a complete path. Use it as it is. 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 18000 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 18002 $as_echo_n "checking for LDD... " >&6; } 18003 if test ! -x "$tool_specified"; then 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18005 $as_echo "not found" >&6; } 18006 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 18007 fi 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18009 $as_echo "$tool_specified" >&6; } 18010 fi 18011 fi 18012 fi 18013 18014 18015 if test "x$LDD" = "x"; then 18016 # List shared lib dependencies is used for 18017 # debug output and checking for forbidden dependencies. 18018 # We can build without it. 18019 LDD="true" 18020 fi 18021 18022 18023 # Publish this variable in the help. 18024 18025 18026 if test "x$OTOOL" = x; then 18027 # The variable is not set by user, try to locate tool using the code snippet 18028 for ac_prog in otool 18029 do 18030 # Extract the first word of "$ac_prog", so it can be a program name with args. 18031 set dummy $ac_prog; ac_word=$2 18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18033 $as_echo_n "checking for $ac_word... " >&6; } 18034 if ${ac_cv_path_OTOOL+:} false; then : 18035 $as_echo_n "(cached) " >&6 18036 else 18037 case $OTOOL in 18038 [\\/]* | ?:[\\/]*) 18039 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18040 ;; 18041 *) 18042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18043 for as_dir in $PATH 18044 do 18045 IFS=$as_save_IFS 18046 test -z "$as_dir" && as_dir=. 18047 for ac_exec_ext in '' $ac_executable_extensions; do 18048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18049 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18051 break 2 18052 fi 18053 done 18054 done 18055 IFS=$as_save_IFS 18056 18057 ;; 18058 esac 18059 fi 18060 OTOOL=$ac_cv_path_OTOOL 18061 if test -n "$OTOOL"; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18063 $as_echo "$OTOOL" >&6; } 18064 else 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18066 $as_echo "no" >&6; } 18067 fi 18068 18069 18070 test -n "$OTOOL" && break 18071 done 18072 18073 else 18074 # The variable is set, but is it from the command line or the environment? 18075 18076 # Try to remove the string !OTOOL! from our list. 18077 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 18078 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18079 # If it failed, the variable was not from the command line. Ignore it, 18080 # but warn the user (except for BASH, which is always set by the calling BASH). 18081 if test "xOTOOL" != xBASH; then 18082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 18083 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 18084 fi 18085 # Try to locate tool using the code snippet 18086 for ac_prog in otool 18087 do 18088 # Extract the first word of "$ac_prog", so it can be a program name with args. 18089 set dummy $ac_prog; ac_word=$2 18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18091 $as_echo_n "checking for $ac_word... " >&6; } 18092 if ${ac_cv_path_OTOOL+:} false; then : 18093 $as_echo_n "(cached) " >&6 18094 else 18095 case $OTOOL in 18096 [\\/]* | ?:[\\/]*) 18097 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18098 ;; 18099 *) 18100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18101 for as_dir in $PATH 18102 do 18103 IFS=$as_save_IFS 18104 test -z "$as_dir" && as_dir=. 18105 for ac_exec_ext in '' $ac_executable_extensions; do 18106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18107 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18109 break 2 18110 fi 18111 done 18112 done 18113 IFS=$as_save_IFS 18114 18115 ;; 18116 esac 18117 fi 18118 OTOOL=$ac_cv_path_OTOOL 18119 if test -n "$OTOOL"; then 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18121 $as_echo "$OTOOL" >&6; } 18122 else 18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18124 $as_echo "no" >&6; } 18125 fi 18126 18127 18128 test -n "$OTOOL" && break 18129 done 18130 18131 else 18132 # If it succeeded, then it was overridden by the user. We will use it 18133 # for the tool. 18134 18135 # First remove it from the list of overridden variables, so we can test 18136 # for unknown variables in the end. 18137 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18138 18139 # Check if the provided tool contains a complete path. 18140 tool_specified="$OTOOL" 18141 tool_basename="${tool_specified##*/}" 18142 if test "x$tool_basename" = "x$tool_specified"; then 18143 # A command without a complete path is provided, search $PATH. 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18145 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18146 # Extract the first word of "$tool_basename", so it can be a program name with args. 18147 set dummy $tool_basename; ac_word=$2 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18149 $as_echo_n "checking for $ac_word... " >&6; } 18150 if ${ac_cv_path_OTOOL+:} false; then : 18151 $as_echo_n "(cached) " >&6 18152 else 18153 case $OTOOL in 18154 [\\/]* | ?:[\\/]*) 18155 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18156 ;; 18157 *) 18158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18159 for as_dir in $PATH 18160 do 18161 IFS=$as_save_IFS 18162 test -z "$as_dir" && as_dir=. 18163 for ac_exec_ext in '' $ac_executable_extensions; do 18164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18165 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18167 break 2 18168 fi 18169 done 18170 done 18171 IFS=$as_save_IFS 18172 18173 ;; 18174 esac 18175 fi 18176 OTOOL=$ac_cv_path_OTOOL 18177 if test -n "$OTOOL"; then 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18179 $as_echo "$OTOOL" >&6; } 18180 else 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18182 $as_echo "no" >&6; } 18183 fi 18184 18185 18186 if test "x$OTOOL" = x; then 18187 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18188 fi 18189 else 18190 # Otherwise we believe it is a complete path. Use it as it is. 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18192 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18194 $as_echo_n "checking for OTOOL... " >&6; } 18195 if test ! -x "$tool_specified"; then 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18197 $as_echo "not found" >&6; } 18198 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18199 fi 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18201 $as_echo "$tool_specified" >&6; } 18202 fi 18203 fi 18204 fi 18205 18206 18207 if test "x$OTOOL" = "x"; then 18208 OTOOL="true" 18209 fi 18210 18211 18212 # Publish this variable in the help. 18213 18214 18215 if test "x$READELF" = x; then 18216 # The variable is not set by user, try to locate tool using the code snippet 18217 for ac_prog in greadelf readelf 18218 do 18219 # Extract the first word of "$ac_prog", so it can be a program name with args. 18220 set dummy $ac_prog; ac_word=$2 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18222 $as_echo_n "checking for $ac_word... " >&6; } 18223 if ${ac_cv_path_READELF+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225 else 18226 case $READELF in 18227 [\\/]* | ?:[\\/]*) 18228 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18229 ;; 18230 *) 18231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18232 for as_dir in $PATH 18233 do 18234 IFS=$as_save_IFS 18235 test -z "$as_dir" && as_dir=. 18236 for ac_exec_ext in '' $ac_executable_extensions; do 18237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18238 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18240 break 2 18241 fi 18242 done 18243 done 18244 IFS=$as_save_IFS 18245 18246 ;; 18247 esac 18248 fi 18249 READELF=$ac_cv_path_READELF 18250 if test -n "$READELF"; then 18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18252 $as_echo "$READELF" >&6; } 18253 else 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18255 $as_echo "no" >&6; } 18256 fi 18257 18258 18259 test -n "$READELF" && break 18260 done 18261 18262 else 18263 # The variable is set, but is it from the command line or the environment? 18264 18265 # Try to remove the string !READELF! from our list. 18266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18268 # If it failed, the variable was not from the command line. Ignore it, 18269 # but warn the user (except for BASH, which is always set by the calling BASH). 18270 if test "xREADELF" != xBASH; then 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18272 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18273 fi 18274 # Try to locate tool using the code snippet 18275 for ac_prog in greadelf readelf 18276 do 18277 # Extract the first word of "$ac_prog", so it can be a program name with args. 18278 set dummy $ac_prog; ac_word=$2 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18280 $as_echo_n "checking for $ac_word... " >&6; } 18281 if ${ac_cv_path_READELF+:} false; then : 18282 $as_echo_n "(cached) " >&6 18283 else 18284 case $READELF in 18285 [\\/]* | ?:[\\/]*) 18286 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18287 ;; 18288 *) 18289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18290 for as_dir in $PATH 18291 do 18292 IFS=$as_save_IFS 18293 test -z "$as_dir" && as_dir=. 18294 for ac_exec_ext in '' $ac_executable_extensions; do 18295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18296 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18298 break 2 18299 fi 18300 done 18301 done 18302 IFS=$as_save_IFS 18303 18304 ;; 18305 esac 18306 fi 18307 READELF=$ac_cv_path_READELF 18308 if test -n "$READELF"; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18310 $as_echo "$READELF" >&6; } 18311 else 18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18313 $as_echo "no" >&6; } 18314 fi 18315 18316 18317 test -n "$READELF" && break 18318 done 18319 18320 else 18321 # If it succeeded, then it was overridden by the user. We will use it 18322 # for the tool. 18323 18324 # First remove it from the list of overridden variables, so we can test 18325 # for unknown variables in the end. 18326 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18327 18328 # Check if the provided tool contains a complete path. 18329 tool_specified="$READELF" 18330 tool_basename="${tool_specified##*/}" 18331 if test "x$tool_basename" = "x$tool_specified"; then 18332 # A command without a complete path is provided, search $PATH. 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18334 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18335 # Extract the first word of "$tool_basename", so it can be a program name with args. 18336 set dummy $tool_basename; ac_word=$2 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18338 $as_echo_n "checking for $ac_word... " >&6; } 18339 if ${ac_cv_path_READELF+:} false; then : 18340 $as_echo_n "(cached) " >&6 18341 else 18342 case $READELF in 18343 [\\/]* | ?:[\\/]*) 18344 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18345 ;; 18346 *) 18347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18348 for as_dir in $PATH 18349 do 18350 IFS=$as_save_IFS 18351 test -z "$as_dir" && as_dir=. 18352 for ac_exec_ext in '' $ac_executable_extensions; do 18353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18354 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18356 break 2 18357 fi 18358 done 18359 done 18360 IFS=$as_save_IFS 18361 18362 ;; 18363 esac 18364 fi 18365 READELF=$ac_cv_path_READELF 18366 if test -n "$READELF"; then 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18368 $as_echo "$READELF" >&6; } 18369 else 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18371 $as_echo "no" >&6; } 18372 fi 18373 18374 18375 if test "x$READELF" = x; then 18376 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18377 fi 18378 else 18379 # Otherwise we believe it is a complete path. Use it as it is. 18380 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18381 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18383 $as_echo_n "checking for READELF... " >&6; } 18384 if test ! -x "$tool_specified"; then 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18386 $as_echo "not found" >&6; } 18387 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18388 fi 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18390 $as_echo "$tool_specified" >&6; } 18391 fi 18392 fi 18393 fi 18394 18395 18396 18397 18398 # Publish this variable in the help. 18399 18400 18401 if test "x$HG" = x; then 18402 # The variable is not set by user, try to locate tool using the code snippet 18403 for ac_prog in hg 18404 do 18405 # Extract the first word of "$ac_prog", so it can be a program name with args. 18406 set dummy $ac_prog; ac_word=$2 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18408 $as_echo_n "checking for $ac_word... " >&6; } 18409 if ${ac_cv_path_HG+:} false; then : 18410 $as_echo_n "(cached) " >&6 18411 else 18412 case $HG in 18413 [\\/]* | ?:[\\/]*) 18414 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18415 ;; 18416 *) 18417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18418 for as_dir in $PATH 18419 do 18420 IFS=$as_save_IFS 18421 test -z "$as_dir" && as_dir=. 18422 for ac_exec_ext in '' $ac_executable_extensions; do 18423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18424 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18426 break 2 18427 fi 18428 done 18429 done 18430 IFS=$as_save_IFS 18431 18432 ;; 18433 esac 18434 fi 18435 HG=$ac_cv_path_HG 18436 if test -n "$HG"; then 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18438 $as_echo "$HG" >&6; } 18439 else 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18441 $as_echo "no" >&6; } 18442 fi 18443 18444 18445 test -n "$HG" && break 18446 done 18447 18448 else 18449 # The variable is set, but is it from the command line or the environment? 18450 18451 # Try to remove the string !HG! from our list. 18452 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18453 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18454 # If it failed, the variable was not from the command line. Ignore it, 18455 # but warn the user (except for BASH, which is always set by the calling BASH). 18456 if test "xHG" != xBASH; then 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18458 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18459 fi 18460 # Try to locate tool using the code snippet 18461 for ac_prog in hg 18462 do 18463 # Extract the first word of "$ac_prog", so it can be a program name with args. 18464 set dummy $ac_prog; ac_word=$2 18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18466 $as_echo_n "checking for $ac_word... " >&6; } 18467 if ${ac_cv_path_HG+:} false; then : 18468 $as_echo_n "(cached) " >&6 18469 else 18470 case $HG in 18471 [\\/]* | ?:[\\/]*) 18472 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18473 ;; 18474 *) 18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18476 for as_dir in $PATH 18477 do 18478 IFS=$as_save_IFS 18479 test -z "$as_dir" && as_dir=. 18480 for ac_exec_ext in '' $ac_executable_extensions; do 18481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18482 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18484 break 2 18485 fi 18486 done 18487 done 18488 IFS=$as_save_IFS 18489 18490 ;; 18491 esac 18492 fi 18493 HG=$ac_cv_path_HG 18494 if test -n "$HG"; then 18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18496 $as_echo "$HG" >&6; } 18497 else 18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18499 $as_echo "no" >&6; } 18500 fi 18501 18502 18503 test -n "$HG" && break 18504 done 18505 18506 else 18507 # If it succeeded, then it was overridden by the user. We will use it 18508 # for the tool. 18509 18510 # First remove it from the list of overridden variables, so we can test 18511 # for unknown variables in the end. 18512 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18513 18514 # Check if the provided tool contains a complete path. 18515 tool_specified="$HG" 18516 tool_basename="${tool_specified##*/}" 18517 if test "x$tool_basename" = "x$tool_specified"; then 18518 # A command without a complete path is provided, search $PATH. 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18520 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18521 # Extract the first word of "$tool_basename", so it can be a program name with args. 18522 set dummy $tool_basename; ac_word=$2 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18524 $as_echo_n "checking for $ac_word... " >&6; } 18525 if ${ac_cv_path_HG+:} false; then : 18526 $as_echo_n "(cached) " >&6 18527 else 18528 case $HG in 18529 [\\/]* | ?:[\\/]*) 18530 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18531 ;; 18532 *) 18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18534 for as_dir in $PATH 18535 do 18536 IFS=$as_save_IFS 18537 test -z "$as_dir" && as_dir=. 18538 for ac_exec_ext in '' $ac_executable_extensions; do 18539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18540 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18542 break 2 18543 fi 18544 done 18545 done 18546 IFS=$as_save_IFS 18547 18548 ;; 18549 esac 18550 fi 18551 HG=$ac_cv_path_HG 18552 if test -n "$HG"; then 18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18554 $as_echo "$HG" >&6; } 18555 else 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18557 $as_echo "no" >&6; } 18558 fi 18559 18560 18561 if test "x$HG" = x; then 18562 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18563 fi 18564 else 18565 # Otherwise we believe it is a complete path. Use it as it is. 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18567 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18569 $as_echo_n "checking for HG... " >&6; } 18570 if test ! -x "$tool_specified"; then 18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18572 $as_echo "not found" >&6; } 18573 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18574 fi 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18576 $as_echo "$tool_specified" >&6; } 18577 fi 18578 fi 18579 fi 18580 18581 18582 18583 18584 # Publish this variable in the help. 18585 18586 18587 if test "x$STAT" = x; then 18588 # The variable is not set by user, try to locate tool using the code snippet 18589 for ac_prog in stat 18590 do 18591 # Extract the first word of "$ac_prog", so it can be a program name with args. 18592 set dummy $ac_prog; ac_word=$2 18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18594 $as_echo_n "checking for $ac_word... " >&6; } 18595 if ${ac_cv_path_STAT+:} false; then : 18596 $as_echo_n "(cached) " >&6 18597 else 18598 case $STAT in 18599 [\\/]* | ?:[\\/]*) 18600 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18601 ;; 18602 *) 18603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18604 for as_dir in $PATH 18605 do 18606 IFS=$as_save_IFS 18607 test -z "$as_dir" && as_dir=. 18608 for ac_exec_ext in '' $ac_executable_extensions; do 18609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18610 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18612 break 2 18613 fi 18614 done 18615 done 18616 IFS=$as_save_IFS 18617 18618 ;; 18619 esac 18620 fi 18621 STAT=$ac_cv_path_STAT 18622 if test -n "$STAT"; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18624 $as_echo "$STAT" >&6; } 18625 else 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18627 $as_echo "no" >&6; } 18628 fi 18629 18630 18631 test -n "$STAT" && break 18632 done 18633 18634 else 18635 # The variable is set, but is it from the command line or the environment? 18636 18637 # Try to remove the string !STAT! from our list. 18638 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18639 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18640 # If it failed, the variable was not from the command line. Ignore it, 18641 # but warn the user (except for BASH, which is always set by the calling BASH). 18642 if test "xSTAT" != xBASH; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18644 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18645 fi 18646 # Try to locate tool using the code snippet 18647 for ac_prog in stat 18648 do 18649 # Extract the first word of "$ac_prog", so it can be a program name with args. 18650 set dummy $ac_prog; ac_word=$2 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18652 $as_echo_n "checking for $ac_word... " >&6; } 18653 if ${ac_cv_path_STAT+:} false; then : 18654 $as_echo_n "(cached) " >&6 18655 else 18656 case $STAT in 18657 [\\/]* | ?:[\\/]*) 18658 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18659 ;; 18660 *) 18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18662 for as_dir in $PATH 18663 do 18664 IFS=$as_save_IFS 18665 test -z "$as_dir" && as_dir=. 18666 for ac_exec_ext in '' $ac_executable_extensions; do 18667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18668 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18670 break 2 18671 fi 18672 done 18673 done 18674 IFS=$as_save_IFS 18675 18676 ;; 18677 esac 18678 fi 18679 STAT=$ac_cv_path_STAT 18680 if test -n "$STAT"; then 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18682 $as_echo "$STAT" >&6; } 18683 else 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18685 $as_echo "no" >&6; } 18686 fi 18687 18688 18689 test -n "$STAT" && break 18690 done 18691 18692 else 18693 # If it succeeded, then it was overridden by the user. We will use it 18694 # for the tool. 18695 18696 # First remove it from the list of overridden variables, so we can test 18697 # for unknown variables in the end. 18698 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18699 18700 # Check if the provided tool contains a complete path. 18701 tool_specified="$STAT" 18702 tool_basename="${tool_specified##*/}" 18703 if test "x$tool_basename" = "x$tool_specified"; then 18704 # A command without a complete path is provided, search $PATH. 18705 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18706 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18707 # Extract the first word of "$tool_basename", so it can be a program name with args. 18708 set dummy $tool_basename; ac_word=$2 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18710 $as_echo_n "checking for $ac_word... " >&6; } 18711 if ${ac_cv_path_STAT+:} false; then : 18712 $as_echo_n "(cached) " >&6 18713 else 18714 case $STAT in 18715 [\\/]* | ?:[\\/]*) 18716 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18717 ;; 18718 *) 18719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18720 for as_dir in $PATH 18721 do 18722 IFS=$as_save_IFS 18723 test -z "$as_dir" && as_dir=. 18724 for ac_exec_ext in '' $ac_executable_extensions; do 18725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18726 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18728 break 2 18729 fi 18730 done 18731 done 18732 IFS=$as_save_IFS 18733 18734 ;; 18735 esac 18736 fi 18737 STAT=$ac_cv_path_STAT 18738 if test -n "$STAT"; then 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18740 $as_echo "$STAT" >&6; } 18741 else 18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18743 $as_echo "no" >&6; } 18744 fi 18745 18746 18747 if test "x$STAT" = x; then 18748 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18749 fi 18750 else 18751 # Otherwise we believe it is a complete path. Use it as it is. 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18753 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18755 $as_echo_n "checking for STAT... " >&6; } 18756 if test ! -x "$tool_specified"; then 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18758 $as_echo "not found" >&6; } 18759 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18760 fi 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18762 $as_echo "$tool_specified" >&6; } 18763 fi 18764 fi 18765 fi 18766 18767 18768 18769 18770 # Publish this variable in the help. 18771 18772 18773 if test "x$TIME" = x; then 18774 # The variable is not set by user, try to locate tool using the code snippet 18775 for ac_prog in time 18776 do 18777 # Extract the first word of "$ac_prog", so it can be a program name with args. 18778 set dummy $ac_prog; ac_word=$2 18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18780 $as_echo_n "checking for $ac_word... " >&6; } 18781 if ${ac_cv_path_TIME+:} false; then : 18782 $as_echo_n "(cached) " >&6 18783 else 18784 case $TIME in 18785 [\\/]* | ?:[\\/]*) 18786 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18787 ;; 18788 *) 18789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18790 for as_dir in $PATH 18791 do 18792 IFS=$as_save_IFS 18793 test -z "$as_dir" && as_dir=. 18794 for ac_exec_ext in '' $ac_executable_extensions; do 18795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18796 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18798 break 2 18799 fi 18800 done 18801 done 18802 IFS=$as_save_IFS 18803 18804 ;; 18805 esac 18806 fi 18807 TIME=$ac_cv_path_TIME 18808 if test -n "$TIME"; then 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18810 $as_echo "$TIME" >&6; } 18811 else 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813 $as_echo "no" >&6; } 18814 fi 18815 18816 18817 test -n "$TIME" && break 18818 done 18819 18820 else 18821 # The variable is set, but is it from the command line or the environment? 18822 18823 # Try to remove the string !TIME! from our list. 18824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18826 # If it failed, the variable was not from the command line. Ignore it, 18827 # but warn the user (except for BASH, which is always set by the calling BASH). 18828 if test "xTIME" != xBASH; then 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18830 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18831 fi 18832 # Try to locate tool using the code snippet 18833 for ac_prog in time 18834 do 18835 # Extract the first word of "$ac_prog", so it can be a program name with args. 18836 set dummy $ac_prog; ac_word=$2 18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18838 $as_echo_n "checking for $ac_word... " >&6; } 18839 if ${ac_cv_path_TIME+:} false; then : 18840 $as_echo_n "(cached) " >&6 18841 else 18842 case $TIME in 18843 [\\/]* | ?:[\\/]*) 18844 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18845 ;; 18846 *) 18847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18848 for as_dir in $PATH 18849 do 18850 IFS=$as_save_IFS 18851 test -z "$as_dir" && as_dir=. 18852 for ac_exec_ext in '' $ac_executable_extensions; do 18853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18854 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18856 break 2 18857 fi 18858 done 18859 done 18860 IFS=$as_save_IFS 18861 18862 ;; 18863 esac 18864 fi 18865 TIME=$ac_cv_path_TIME 18866 if test -n "$TIME"; then 18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18868 $as_echo "$TIME" >&6; } 18869 else 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18871 $as_echo "no" >&6; } 18872 fi 18873 18874 18875 test -n "$TIME" && break 18876 done 18877 18878 else 18879 # If it succeeded, then it was overridden by the user. We will use it 18880 # for the tool. 18881 18882 # First remove it from the list of overridden variables, so we can test 18883 # for unknown variables in the end. 18884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18885 18886 # Check if the provided tool contains a complete path. 18887 tool_specified="$TIME" 18888 tool_basename="${tool_specified##*/}" 18889 if test "x$tool_basename" = "x$tool_specified"; then 18890 # A command without a complete path is provided, search $PATH. 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18892 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18893 # Extract the first word of "$tool_basename", so it can be a program name with args. 18894 set dummy $tool_basename; ac_word=$2 18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18896 $as_echo_n "checking for $ac_word... " >&6; } 18897 if ${ac_cv_path_TIME+:} false; then : 18898 $as_echo_n "(cached) " >&6 18899 else 18900 case $TIME in 18901 [\\/]* | ?:[\\/]*) 18902 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18903 ;; 18904 *) 18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18906 for as_dir in $PATH 18907 do 18908 IFS=$as_save_IFS 18909 test -z "$as_dir" && as_dir=. 18910 for ac_exec_ext in '' $ac_executable_extensions; do 18911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18912 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18914 break 2 18915 fi 18916 done 18917 done 18918 IFS=$as_save_IFS 18919 18920 ;; 18921 esac 18922 fi 18923 TIME=$ac_cv_path_TIME 18924 if test -n "$TIME"; then 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18926 $as_echo "$TIME" >&6; } 18927 else 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18929 $as_echo "no" >&6; } 18930 fi 18931 18932 18933 if test "x$TIME" = x; then 18934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18935 fi 18936 else 18937 # Otherwise we believe it is a complete path. Use it as it is. 18938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18939 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18941 $as_echo_n "checking for TIME... " >&6; } 18942 if test ! -x "$tool_specified"; then 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18944 $as_echo "not found" >&6; } 18945 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18946 fi 18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18948 $as_echo "$tool_specified" >&6; } 18949 fi 18950 fi 18951 fi 18952 18953 18954 # Check if it's GNU time 18955 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18956 if test "x$IS_GNU_TIME" != x; then 18957 IS_GNU_TIME=yes 18958 else 18959 IS_GNU_TIME=no 18960 fi 18961 18962 18963 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18964 18965 18966 18967 # Publish this variable in the help. 18968 18969 18970 if test "x$DSYMUTIL" = x; then 18971 # The variable is not set by user, try to locate tool using the code snippet 18972 for ac_prog in dsymutil 18973 do 18974 # Extract the first word of "$ac_prog", so it can be a program name with args. 18975 set dummy $ac_prog; ac_word=$2 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18977 $as_echo_n "checking for $ac_word... " >&6; } 18978 if ${ac_cv_path_DSYMUTIL+:} false; then : 18979 $as_echo_n "(cached) " >&6 18980 else 18981 case $DSYMUTIL in 18982 [\\/]* | ?:[\\/]*) 18983 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18984 ;; 18985 *) 18986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18987 for as_dir in $PATH 18988 do 18989 IFS=$as_save_IFS 18990 test -z "$as_dir" && as_dir=. 18991 for ac_exec_ext in '' $ac_executable_extensions; do 18992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18993 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18995 break 2 18996 fi 18997 done 18998 done 18999 IFS=$as_save_IFS 19000 19001 ;; 19002 esac 19003 fi 19004 DSYMUTIL=$ac_cv_path_DSYMUTIL 19005 if test -n "$DSYMUTIL"; then 19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19007 $as_echo "$DSYMUTIL" >&6; } 19008 else 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19010 $as_echo "no" >&6; } 19011 fi 19012 19013 19014 test -n "$DSYMUTIL" && break 19015 done 19016 19017 else 19018 # The variable is set, but is it from the command line or the environment? 19019 19020 # Try to remove the string !DSYMUTIL! from our list. 19021 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19022 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19023 # If it failed, the variable was not from the command line. Ignore it, 19024 # but warn the user (except for BASH, which is always set by the calling BASH). 19025 if test "xDSYMUTIL" != xBASH; then 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19027 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19028 fi 19029 # Try to locate tool using the code snippet 19030 for ac_prog in dsymutil 19031 do 19032 # Extract the first word of "$ac_prog", so it can be a program name with args. 19033 set dummy $ac_prog; ac_word=$2 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19035 $as_echo_n "checking for $ac_word... " >&6; } 19036 if ${ac_cv_path_DSYMUTIL+:} false; then : 19037 $as_echo_n "(cached) " >&6 19038 else 19039 case $DSYMUTIL in 19040 [\\/]* | ?:[\\/]*) 19041 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19042 ;; 19043 *) 19044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19045 for as_dir in $PATH 19046 do 19047 IFS=$as_save_IFS 19048 test -z "$as_dir" && as_dir=. 19049 for ac_exec_ext in '' $ac_executable_extensions; do 19050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19051 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19053 break 2 19054 fi 19055 done 19056 done 19057 IFS=$as_save_IFS 19058 19059 ;; 19060 esac 19061 fi 19062 DSYMUTIL=$ac_cv_path_DSYMUTIL 19063 if test -n "$DSYMUTIL"; then 19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19065 $as_echo "$DSYMUTIL" >&6; } 19066 else 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19068 $as_echo "no" >&6; } 19069 fi 19070 19071 19072 test -n "$DSYMUTIL" && break 19073 done 19074 19075 else 19076 # If it succeeded, then it was overridden by the user. We will use it 19077 # for the tool. 19078 19079 # First remove it from the list of overridden variables, so we can test 19080 # for unknown variables in the end. 19081 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19082 19083 # Check if the provided tool contains a complete path. 19084 tool_specified="$DSYMUTIL" 19085 tool_basename="${tool_specified##*/}" 19086 if test "x$tool_basename" = "x$tool_specified"; then 19087 # A command without a complete path is provided, search $PATH. 19088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19089 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19090 # Extract the first word of "$tool_basename", so it can be a program name with args. 19091 set dummy $tool_basename; ac_word=$2 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19093 $as_echo_n "checking for $ac_word... " >&6; } 19094 if ${ac_cv_path_DSYMUTIL+:} false; then : 19095 $as_echo_n "(cached) " >&6 19096 else 19097 case $DSYMUTIL in 19098 [\\/]* | ?:[\\/]*) 19099 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19100 ;; 19101 *) 19102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19103 for as_dir in $PATH 19104 do 19105 IFS=$as_save_IFS 19106 test -z "$as_dir" && as_dir=. 19107 for ac_exec_ext in '' $ac_executable_extensions; do 19108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19109 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19111 break 2 19112 fi 19113 done 19114 done 19115 IFS=$as_save_IFS 19116 19117 ;; 19118 esac 19119 fi 19120 DSYMUTIL=$ac_cv_path_DSYMUTIL 19121 if test -n "$DSYMUTIL"; then 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19123 $as_echo "$DSYMUTIL" >&6; } 19124 else 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19126 $as_echo "no" >&6; } 19127 fi 19128 19129 19130 if test "x$DSYMUTIL" = x; then 19131 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19132 fi 19133 else 19134 # Otherwise we believe it is a complete path. Use it as it is. 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19136 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19138 $as_echo_n "checking for DSYMUTIL... " >&6; } 19139 if test ! -x "$tool_specified"; then 19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19141 $as_echo "not found" >&6; } 19142 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19143 fi 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19145 $as_echo "$tool_specified" >&6; } 19146 fi 19147 fi 19148 fi 19149 19150 19151 19152 if test "x$DSYMUTIL" = x; then 19153 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19154 fi 19155 19156 19157 19158 19159 19160 # Publish this variable in the help. 19161 19162 19163 if test "x$XATTR" = x; then 19164 # The variable is not set by user, try to locate tool using the code snippet 19165 for ac_prog in xattr 19166 do 19167 # Extract the first word of "$ac_prog", so it can be a program name with args. 19168 set dummy $ac_prog; ac_word=$2 19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19170 $as_echo_n "checking for $ac_word... " >&6; } 19171 if ${ac_cv_path_XATTR+:} false; then : 19172 $as_echo_n "(cached) " >&6 19173 else 19174 case $XATTR in 19175 [\\/]* | ?:[\\/]*) 19176 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19177 ;; 19178 *) 19179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19180 for as_dir in $PATH 19181 do 19182 IFS=$as_save_IFS 19183 test -z "$as_dir" && as_dir=. 19184 for ac_exec_ext in '' $ac_executable_extensions; do 19185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19186 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19188 break 2 19189 fi 19190 done 19191 done 19192 IFS=$as_save_IFS 19193 19194 ;; 19195 esac 19196 fi 19197 XATTR=$ac_cv_path_XATTR 19198 if test -n "$XATTR"; then 19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19200 $as_echo "$XATTR" >&6; } 19201 else 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19203 $as_echo "no" >&6; } 19204 fi 19205 19206 19207 test -n "$XATTR" && break 19208 done 19209 19210 else 19211 # The variable is set, but is it from the command line or the environment? 19212 19213 # Try to remove the string !XATTR! from our list. 19214 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19215 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19216 # If it failed, the variable was not from the command line. Ignore it, 19217 # but warn the user (except for BASH, which is always set by the calling BASH). 19218 if test "xXATTR" != xBASH; then 19219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19220 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19221 fi 19222 # Try to locate tool using the code snippet 19223 for ac_prog in xattr 19224 do 19225 # Extract the first word of "$ac_prog", so it can be a program name with args. 19226 set dummy $ac_prog; ac_word=$2 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19228 $as_echo_n "checking for $ac_word... " >&6; } 19229 if ${ac_cv_path_XATTR+:} false; then : 19230 $as_echo_n "(cached) " >&6 19231 else 19232 case $XATTR in 19233 [\\/]* | ?:[\\/]*) 19234 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19235 ;; 19236 *) 19237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19238 for as_dir in $PATH 19239 do 19240 IFS=$as_save_IFS 19241 test -z "$as_dir" && as_dir=. 19242 for ac_exec_ext in '' $ac_executable_extensions; do 19243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19244 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19246 break 2 19247 fi 19248 done 19249 done 19250 IFS=$as_save_IFS 19251 19252 ;; 19253 esac 19254 fi 19255 XATTR=$ac_cv_path_XATTR 19256 if test -n "$XATTR"; then 19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19258 $as_echo "$XATTR" >&6; } 19259 else 19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19261 $as_echo "no" >&6; } 19262 fi 19263 19264 19265 test -n "$XATTR" && break 19266 done 19267 19268 else 19269 # If it succeeded, then it was overridden by the user. We will use it 19270 # for the tool. 19271 19272 # First remove it from the list of overridden variables, so we can test 19273 # for unknown variables in the end. 19274 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19275 19276 # Check if the provided tool contains a complete path. 19277 tool_specified="$XATTR" 19278 tool_basename="${tool_specified##*/}" 19279 if test "x$tool_basename" = "x$tool_specified"; then 19280 # A command without a complete path is provided, search $PATH. 19281 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19282 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19283 # Extract the first word of "$tool_basename", so it can be a program name with args. 19284 set dummy $tool_basename; ac_word=$2 19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19286 $as_echo_n "checking for $ac_word... " >&6; } 19287 if ${ac_cv_path_XATTR+:} false; then : 19288 $as_echo_n "(cached) " >&6 19289 else 19290 case $XATTR in 19291 [\\/]* | ?:[\\/]*) 19292 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19293 ;; 19294 *) 19295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19296 for as_dir in $PATH 19297 do 19298 IFS=$as_save_IFS 19299 test -z "$as_dir" && as_dir=. 19300 for ac_exec_ext in '' $ac_executable_extensions; do 19301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19302 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19304 break 2 19305 fi 19306 done 19307 done 19308 IFS=$as_save_IFS 19309 19310 ;; 19311 esac 19312 fi 19313 XATTR=$ac_cv_path_XATTR 19314 if test -n "$XATTR"; then 19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19316 $as_echo "$XATTR" >&6; } 19317 else 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19319 $as_echo "no" >&6; } 19320 fi 19321 19322 19323 if test "x$XATTR" = x; then 19324 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19325 fi 19326 else 19327 # Otherwise we believe it is a complete path. Use it as it is. 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19329 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19331 $as_echo_n "checking for XATTR... " >&6; } 19332 if test ! -x "$tool_specified"; then 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19334 $as_echo "not found" >&6; } 19335 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19336 fi 19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19338 $as_echo "$tool_specified" >&6; } 19339 fi 19340 fi 19341 fi 19342 19343 19344 19345 if test "x$XATTR" = x; then 19346 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19347 fi 19348 19349 19350 19351 19352 # Publish this variable in the help. 19353 19354 19355 if test "x$CODESIGN" = x; then 19356 # The variable is not set by user, try to locate tool using the code snippet 19357 for ac_prog in codesign 19358 do 19359 # Extract the first word of "$ac_prog", so it can be a program name with args. 19360 set dummy $ac_prog; ac_word=$2 19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19362 $as_echo_n "checking for $ac_word... " >&6; } 19363 if ${ac_cv_path_CODESIGN+:} false; then : 19364 $as_echo_n "(cached) " >&6 19365 else 19366 case $CODESIGN in 19367 [\\/]* | ?:[\\/]*) 19368 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19369 ;; 19370 *) 19371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19372 for as_dir in $PATH 19373 do 19374 IFS=$as_save_IFS 19375 test -z "$as_dir" && as_dir=. 19376 for ac_exec_ext in '' $ac_executable_extensions; do 19377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19378 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19380 break 2 19381 fi 19382 done 19383 done 19384 IFS=$as_save_IFS 19385 19386 ;; 19387 esac 19388 fi 19389 CODESIGN=$ac_cv_path_CODESIGN 19390 if test -n "$CODESIGN"; then 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19392 $as_echo "$CODESIGN" >&6; } 19393 else 19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19395 $as_echo "no" >&6; } 19396 fi 19397 19398 19399 test -n "$CODESIGN" && break 19400 done 19401 19402 else 19403 # The variable is set, but is it from the command line or the environment? 19404 19405 # Try to remove the string !CODESIGN! from our list. 19406 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19407 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19408 # If it failed, the variable was not from the command line. Ignore it, 19409 # but warn the user (except for BASH, which is always set by the calling BASH). 19410 if test "xCODESIGN" != xBASH; then 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19412 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19413 fi 19414 # Try to locate tool using the code snippet 19415 for ac_prog in codesign 19416 do 19417 # Extract the first word of "$ac_prog", so it can be a program name with args. 19418 set dummy $ac_prog; ac_word=$2 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19420 $as_echo_n "checking for $ac_word... " >&6; } 19421 if ${ac_cv_path_CODESIGN+:} false; then : 19422 $as_echo_n "(cached) " >&6 19423 else 19424 case $CODESIGN in 19425 [\\/]* | ?:[\\/]*) 19426 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19427 ;; 19428 *) 19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19430 for as_dir in $PATH 19431 do 19432 IFS=$as_save_IFS 19433 test -z "$as_dir" && as_dir=. 19434 for ac_exec_ext in '' $ac_executable_extensions; do 19435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19436 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19438 break 2 19439 fi 19440 done 19441 done 19442 IFS=$as_save_IFS 19443 19444 ;; 19445 esac 19446 fi 19447 CODESIGN=$ac_cv_path_CODESIGN 19448 if test -n "$CODESIGN"; then 19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19450 $as_echo "$CODESIGN" >&6; } 19451 else 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19453 $as_echo "no" >&6; } 19454 fi 19455 19456 19457 test -n "$CODESIGN" && break 19458 done 19459 19460 else 19461 # If it succeeded, then it was overridden by the user. We will use it 19462 # for the tool. 19463 19464 # First remove it from the list of overridden variables, so we can test 19465 # for unknown variables in the end. 19466 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19467 19468 # Check if the provided tool contains a complete path. 19469 tool_specified="$CODESIGN" 19470 tool_basename="${tool_specified##*/}" 19471 if test "x$tool_basename" = "x$tool_specified"; then 19472 # A command without a complete path is provided, search $PATH. 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19474 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19475 # Extract the first word of "$tool_basename", so it can be a program name with args. 19476 set dummy $tool_basename; ac_word=$2 19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19478 $as_echo_n "checking for $ac_word... " >&6; } 19479 if ${ac_cv_path_CODESIGN+:} false; then : 19480 $as_echo_n "(cached) " >&6 19481 else 19482 case $CODESIGN in 19483 [\\/]* | ?:[\\/]*) 19484 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19485 ;; 19486 *) 19487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19488 for as_dir in $PATH 19489 do 19490 IFS=$as_save_IFS 19491 test -z "$as_dir" && as_dir=. 19492 for ac_exec_ext in '' $ac_executable_extensions; do 19493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19494 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19496 break 2 19497 fi 19498 done 19499 done 19500 IFS=$as_save_IFS 19501 19502 ;; 19503 esac 19504 fi 19505 CODESIGN=$ac_cv_path_CODESIGN 19506 if test -n "$CODESIGN"; then 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19508 $as_echo "$CODESIGN" >&6; } 19509 else 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19511 $as_echo "no" >&6; } 19512 fi 19513 19514 19515 if test "x$CODESIGN" = x; then 19516 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19517 fi 19518 else 19519 # Otherwise we believe it is a complete path. Use it as it is. 19520 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19521 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19523 $as_echo_n "checking for CODESIGN... " >&6; } 19524 if test ! -x "$tool_specified"; then 19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19526 $as_echo "not found" >&6; } 19527 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19528 fi 19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19530 $as_echo "$tool_specified" >&6; } 19531 fi 19532 fi 19533 fi 19534 19535 19536 if test "x$CODESIGN" != "x"; then 19537 # Verify that the openjdk_codesign certificate is present 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19539 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19540 rm -f codesign-testfile 19541 touch codesign-testfile 19542 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19543 rm -f codesign-testfile 19544 if test "x$CODESIGN" = x; then 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19546 $as_echo "no" >&6; } 19547 else 19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19549 $as_echo "yes" >&6; } 19550 fi 19551 fi 19552 fi 19553 19554 19555 # Test if bash supports pipefail. 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 19557 $as_echo_n "checking if bash supports pipefail... " >&6; } 19558 if ${BASH} -c 'set -o pipefail'; then 19559 BASH_ARGS="$BASH_ARGS -o pipefail" 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19561 $as_echo "yes" >&6; } 19562 else 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19564 $as_echo "no" >&6; } 19565 fi 19566 19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 19568 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 19569 if ${BASH} -e -c 'true'; then 19570 BASH_ARGS="$BASH_ARGS -e" 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19572 $as_echo "yes" >&6; } 19573 else 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19575 $as_echo "no" >&6; } 19576 fi 19577 19578 19579 19580 19581 # Check if pkg-config is available. 19582 19583 19584 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19585 if test -n "$ac_tool_prefix"; then 19586 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19587 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19589 $as_echo_n "checking for $ac_word... " >&6; } 19590 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19591 $as_echo_n "(cached) " >&6 19592 else 19593 case $PKG_CONFIG in 19594 [\\/]* | ?:[\\/]*) 19595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19596 ;; 19597 *) 19598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19599 for as_dir in $PATH 19600 do 19601 IFS=$as_save_IFS 19602 test -z "$as_dir" && as_dir=. 19603 for ac_exec_ext in '' $ac_executable_extensions; do 19604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19607 break 2 19608 fi 19609 done 19610 done 19611 IFS=$as_save_IFS 19612 19613 ;; 19614 esac 19615 fi 19616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19617 if test -n "$PKG_CONFIG"; then 19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19619 $as_echo "$PKG_CONFIG" >&6; } 19620 else 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19622 $as_echo "no" >&6; } 19623 fi 19624 19625 19626 fi 19627 if test -z "$ac_cv_path_PKG_CONFIG"; then 19628 ac_pt_PKG_CONFIG=$PKG_CONFIG 19629 # Extract the first word of "pkg-config", so it can be a program name with args. 19630 set dummy pkg-config; ac_word=$2 19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19632 $as_echo_n "checking for $ac_word... " >&6; } 19633 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19634 $as_echo_n "(cached) " >&6 19635 else 19636 case $ac_pt_PKG_CONFIG in 19637 [\\/]* | ?:[\\/]*) 19638 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19639 ;; 19640 *) 19641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19642 for as_dir in $PATH 19643 do 19644 IFS=$as_save_IFS 19645 test -z "$as_dir" && as_dir=. 19646 for ac_exec_ext in '' $ac_executable_extensions; do 19647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19648 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19650 break 2 19651 fi 19652 done 19653 done 19654 IFS=$as_save_IFS 19655 19656 ;; 19657 esac 19658 fi 19659 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19660 if test -n "$ac_pt_PKG_CONFIG"; then 19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19662 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19663 else 19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19665 $as_echo "no" >&6; } 19666 fi 19667 19668 if test "x$ac_pt_PKG_CONFIG" = x; then 19669 PKG_CONFIG="" 19670 else 19671 case $cross_compiling:$ac_tool_warned in 19672 yes:) 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19675 ac_tool_warned=yes ;; 19676 esac 19677 PKG_CONFIG=$ac_pt_PKG_CONFIG 19678 fi 19679 else 19680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19681 fi 19682 19683 fi 19684 if test -n "$PKG_CONFIG"; then 19685 _pkg_min_version=0.9.0 19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19687 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19690 $as_echo "yes" >&6; } 19691 else 19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19693 $as_echo "no" >&6; } 19694 PKG_CONFIG="" 19695 fi 19696 19697 fi 19698 19699 # After basic tools have been setup, we can check build os specific details. 19700 19701 ############################################################################### 19702 19703 # Note that this is the build platform OS version! 19704 19705 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19706 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19707 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19708 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19709 19710 19711 19712 19713 19714 # Setup builddeps, for automatic downloading of tools we need. 19715 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19716 # boot-jdk setup, but we need to have basic tools setup first. 19717 19718 19719 # Check whether --with-builddeps-conf was given. 19720 if test "${with_builddeps_conf+set}" = set; then : 19721 withval=$with_builddeps_conf; 19722 fi 19723 19724 19725 19726 # Check whether --with-builddeps-server was given. 19727 if test "${with_builddeps_server+set}" = set; then : 19728 withval=$with_builddeps_server; 19729 fi 19730 19731 19732 19733 # Check whether --with-builddeps-dir was given. 19734 if test "${with_builddeps_dir+set}" = set; then : 19735 withval=$with_builddeps_dir; 19736 else 19737 with_builddeps_dir=/localhome/builddeps 19738 fi 19739 19740 19741 19742 # Check whether --with-builddeps-group was given. 19743 if test "${with_builddeps_group+set}" = set; then : 19744 withval=$with_builddeps_group; 19745 fi 19746 19747 19748 19749 19750 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19751 if test "x$with_builddeps_conf" != x; then 19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19753 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19754 builddepsfile=$with_builddeps_conf 19755 if test -s $builddepsfile; then 19756 . $builddepsfile 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19758 $as_echo "loaded!" >&6; } 19759 else 19760 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19761 fi 19762 else 19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19764 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19765 builddepsfile=`mktemp` 19766 touch $builddepsfile 19767 # Put all found confs into a single file. 19768 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19769 # Source the file to acquire the variables 19770 if test -s $builddepsfile; then 19771 . $builddepsfile 19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19773 $as_echo "found at least one!" >&6; } 19774 else 19775 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19776 fi 19777 fi 19778 # Create build and target names that use _ instead of "-" and ".". 19779 # This is necessary to use them in variable names. 19780 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19781 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19782 # Extract rewrite information for build and target 19783 eval rewritten_build=\${REWRITE_${build_var}} 19784 if test "x$rewritten_build" = x; then 19785 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19786 echo Build stays the same $rewritten_build 19787 else 19788 echo Rewriting build for builddeps into $rewritten_build 19789 fi 19790 eval rewritten_target=\${REWRITE_${target_var}} 19791 if test "x$rewritten_target" = x; then 19792 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19793 echo Target stays the same $rewritten_target 19794 else 19795 echo Rewriting target for builddeps into $rewritten_target 19796 fi 19797 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19798 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19799 fi 19800 for ac_prog in 7z unzip 19801 do 19802 # Extract the first word of "$ac_prog", so it can be a program name with args. 19803 set dummy $ac_prog; ac_word=$2 19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19805 $as_echo_n "checking for $ac_word... " >&6; } 19806 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19807 $as_echo_n "(cached) " >&6 19808 else 19809 if test -n "$BDEPS_UNZIP"; then 19810 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19811 else 19812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19813 for as_dir in $PATH 19814 do 19815 IFS=$as_save_IFS 19816 test -z "$as_dir" && as_dir=. 19817 for ac_exec_ext in '' $ac_executable_extensions; do 19818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19819 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19821 break 2 19822 fi 19823 done 19824 done 19825 IFS=$as_save_IFS 19826 19827 fi 19828 fi 19829 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19830 if test -n "$BDEPS_UNZIP"; then 19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19832 $as_echo "$BDEPS_UNZIP" >&6; } 19833 else 19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19835 $as_echo "no" >&6; } 19836 fi 19837 19838 19839 test -n "$BDEPS_UNZIP" && break 19840 done 19841 19842 if test "x$BDEPS_UNZIP" = x7z; then 19843 BDEPS_UNZIP="7z x" 19844 fi 19845 19846 for ac_prog in wget lftp ftp 19847 do 19848 # Extract the first word of "$ac_prog", so it can be a program name with args. 19849 set dummy $ac_prog; ac_word=$2 19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19851 $as_echo_n "checking for $ac_word... " >&6; } 19852 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19853 $as_echo_n "(cached) " >&6 19854 else 19855 if test -n "$BDEPS_FTP"; then 19856 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19857 else 19858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19859 for as_dir in $PATH 19860 do 19861 IFS=$as_save_IFS 19862 test -z "$as_dir" && as_dir=. 19863 for ac_exec_ext in '' $ac_executable_extensions; do 19864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19865 ac_cv_prog_BDEPS_FTP="$ac_prog" 19866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19867 break 2 19868 fi 19869 done 19870 done 19871 IFS=$as_save_IFS 19872 19873 fi 19874 fi 19875 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19876 if test -n "$BDEPS_FTP"; then 19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19878 $as_echo "$BDEPS_FTP" >&6; } 19879 else 19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19881 $as_echo "no" >&6; } 19882 fi 19883 19884 19885 test -n "$BDEPS_FTP" && break 19886 done 19887 19888 19889 19890 ############################################################################### 19891 # 19892 # Determine OpenJDK variants, options and version numbers. 19893 # 19894 ############################################################################### 19895 19896 # We need build & target for this. 19897 19898 19899 ############################################################################### 19900 # 19901 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19902 # We always build headless support. 19903 # 19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19905 $as_echo_n "checking headful support... " >&6; } 19906 # Check whether --enable-headful was given. 19907 if test "${enable_headful+set}" = set; then : 19908 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19909 else 19910 SUPPORT_HEADFUL=yes 19911 fi 19912 19913 19914 SUPPORT_HEADLESS=yes 19915 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19916 19917 if test "x$SUPPORT_HEADFUL" = xyes; then 19918 # We are building both headful and headless. 19919 headful_msg="include support for both headful and headless" 19920 fi 19921 19922 if test "x$SUPPORT_HEADFUL" = xno; then 19923 # Thus we are building headless only. 19924 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19925 headful_msg="headless only" 19926 fi 19927 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19929 $as_echo "$headful_msg" >&6; } 19930 19931 19932 19933 19934 19935 # Control wether Hotspot runs Queens test after build. 19936 # Check whether --enable-hotspot-test-in-build was given. 19937 if test "${enable_hotspot_test_in_build+set}" = set; then : 19938 enableval=$enable_hotspot_test_in_build; 19939 else 19940 enable_hotspot_test_in_build=no 19941 fi 19942 19943 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19944 TEST_IN_BUILD=true 19945 else 19946 TEST_IN_BUILD=false 19947 fi 19948 19949 19950 ############################################################################### 19951 # 19952 # Choose cacerts source file 19953 # 19954 19955 # Check whether --with-cacerts-file was given. 19956 if test "${with_cacerts_file+set}" = set; then : 19957 withval=$with_cacerts_file; 19958 fi 19959 19960 if test "x$with_cacerts_file" != x; then 19961 CACERTS_FILE=$with_cacerts_file 19962 fi 19963 19964 19965 ############################################################################### 19966 # 19967 # Enable or disable unlimited crypto 19968 # 19969 # Check whether --enable-unlimited-crypto was given. 19970 if test "${enable_unlimited_crypto+set}" = set; then : 19971 enableval=$enable_unlimited_crypto; 19972 else 19973 enable_unlimited_crypto=no 19974 fi 19975 19976 if test "x$enable_unlimited_crypto" = "xyes"; then 19977 UNLIMITED_CRYPTO=true 19978 else 19979 UNLIMITED_CRYPTO=false 19980 fi 19981 19982 19983 ############################################################################### 19984 # 19985 # Enable or disable the elliptic curve crypto implementation 19986 # 19987 19988 19989 ############################################################################### 19990 # 19991 # --enable-rmiconnector-iiop 19992 # 19993 # Check whether --enable-rmiconnector-iiop was given. 19994 if test "${enable_rmiconnector_iiop+set}" = set; then : 19995 enableval=$enable_rmiconnector_iiop; 19996 fi 19997 19998 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19999 RMICONNECTOR_IIOP=true 20000 else 20001 RMICONNECTOR_IIOP=false 20002 fi 20003 20004 20005 ############################################################################### 20006 # 20007 # Compress jars 20008 # 20009 COMPRESS_JARS=false 20010 20011 20012 20013 20014 # Source the version numbers 20015 . $AUTOCONF_DIR/version-numbers 20016 20017 # Get the settings from parameters 20018 20019 # Check whether --with-milestone was given. 20020 if test "${with_milestone+set}" = set; then : 20021 withval=$with_milestone; 20022 fi 20023 20024 if test "x$with_milestone" = xyes; then 20025 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20026 elif test "x$with_milestone" != x; then 20027 MILESTONE="$with_milestone" 20028 fi 20029 if test "x$MILESTONE" = x; then 20030 MILESTONE=internal 20031 fi 20032 20033 20034 # Check whether --with-update-version was given. 20035 if test "${with_update_version+set}" = set; then : 20036 withval=$with_update_version; 20037 fi 20038 20039 if test "x$with_update_version" = xyes; then 20040 as_fn_error $? "Update version must have a value" "$LINENO" 5 20041 elif test "x$with_update_version" != x; then 20042 JDK_UPDATE_VERSION="$with_update_version" 20043 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20044 # to a bug in expr (which reduces it to just X). To work around this, we 20045 # always add a 0 to one digit update versions. 20046 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20047 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20048 fi 20049 fi 20050 20051 20052 # Check whether --with-user-release-suffix was given. 20053 if test "${with_user_release_suffix+set}" = set; then : 20054 withval=$with_user_release_suffix; 20055 fi 20056 20057 if test "x$with_user_release_suffix" = xyes; then 20058 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20059 elif test "x$with_user_release_suffix" != x; then 20060 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20061 fi 20062 20063 20064 # Check whether --with-build-number was given. 20065 if test "${with_build_number+set}" = set; then : 20066 withval=$with_build_number; 20067 fi 20068 20069 if test "x$with_build_number" = xyes; then 20070 as_fn_error $? "Build number must have a value" "$LINENO" 5 20071 elif test "x$with_build_number" != x; then 20072 JDK_BUILD_NUMBER="$with_build_number" 20073 fi 20074 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20075 if test "x$JDK_BUILD_NUMBER" = x; then 20076 JDK_BUILD_NUMBER=b00 20077 if test "x$USER_RELEASE_SUFFIX" = x; then 20078 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20079 # Avoid [:alnum:] since it depends on the locale. 20080 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20081 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20082 fi 20083 fi 20084 20085 # Now set the JDK version, milestone, build number etc. 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 # Check whether --with-copyright-year was given. 20103 if test "${with_copyright_year+set}" = set; then : 20104 withval=$with_copyright_year; 20105 fi 20106 20107 if test "x$with_copyright_year" = xyes; then 20108 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20109 elif test "x$with_copyright_year" != x; then 20110 COPYRIGHT_YEAR="$with_copyright_year" 20111 else 20112 COPYRIGHT_YEAR=`date +'%Y'` 20113 fi 20114 20115 20116 if test "x$JDK_UPDATE_VERSION" != x; then 20117 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20118 else 20119 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20120 fi 20121 20122 20123 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20124 20125 20126 20127 ############################################################################### 20128 # 20129 # Setup BootJDK, used to bootstrap the build. 20130 # 20131 ############################################################################### 20132 20133 20134 BOOT_JDK_FOUND=no 20135 20136 # Check whether --with-boot-jdk was given. 20137 if test "${with_boot_jdk+set}" = set; then : 20138 withval=$with_boot_jdk; 20139 fi 20140 20141 20142 # We look for the Boot JDK through various means, going from more certain to 20143 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20144 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20145 # must check if this is indeed valid; otherwise we'll continue looking. 20146 20147 # Test: Is bootjdk explicitely set by command line arguments? 20148 20149 if test "x$BOOT_JDK_FOUND" = xno; then 20150 # Now execute the test 20151 20152 if test "x$with_boot_jdk" != x; then 20153 BOOT_JDK=$with_boot_jdk 20154 BOOT_JDK_FOUND=maybe 20155 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20156 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20157 fi 20158 20159 20160 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20161 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20162 # Do we have a bin/java? 20163 if test ! -x "$BOOT_JDK/bin/java"; then 20164 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20165 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20166 BOOT_JDK_FOUND=no 20167 else 20168 # Do we have a bin/javac? 20169 if test ! -x "$BOOT_JDK/bin/javac"; then 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20171 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20172 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20173 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20174 BOOT_JDK_FOUND=no 20175 else 20176 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20177 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20178 20179 # Extra M4 quote needed to protect [] in grep expression. 20180 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20181 if test "x$FOUND_CORRECT_VERSION" = x; then 20182 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20185 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20186 BOOT_JDK_FOUND=no 20187 else 20188 # We're done! :-) 20189 BOOT_JDK_FOUND=yes 20190 20191 # Only process if variable expands to non-empty 20192 20193 if test "x$BOOT_JDK" != x; then 20194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20195 20196 # Input might be given as Windows format, start by converting to 20197 # unix format. 20198 path="$BOOT_JDK" 20199 new_path=`$CYGPATH -u "$path"` 20200 20201 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20202 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20203 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20204 # "foo.exe" is OK but "foo" is an error. 20205 # 20206 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20207 # It is also a way to make sure we got the proper file name for the real test later on. 20208 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20209 if test "x$test_shortpath" = x; then 20210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20211 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20212 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20213 fi 20214 20215 # Call helper function which possibly converts this using DOS-style short mode. 20216 # If so, the updated path is stored in $new_path. 20217 20218 input_path="$new_path" 20219 # Check if we need to convert this using DOS-style short mode. If the path 20220 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20221 # take no chances and rewrite it. 20222 # Note: m4 eats our [], so we need to use [ and ] instead. 20223 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20224 if test "x$has_forbidden_chars" != x; then 20225 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20226 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20227 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20228 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20229 # Going to short mode and back again did indeed matter. Since short mode is 20230 # case insensitive, let's make it lowercase to improve readability. 20231 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20232 # Now convert it back to Unix-stile (cygpath) 20233 input_path=`$CYGPATH -u "$shortmode_path"` 20234 new_path="$input_path" 20235 fi 20236 fi 20237 20238 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20239 if test "x$test_cygdrive_prefix" = x; then 20240 # As a simple fix, exclude /usr/bin since it's not a real path. 20241 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20242 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20243 # a path prefixed by /cygdrive for fixpath to work. 20244 new_path="$CYGWIN_ROOT_PATH$input_path" 20245 fi 20246 fi 20247 20248 20249 if test "x$path" != "x$new_path"; then 20250 BOOT_JDK="$new_path" 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20252 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20253 fi 20254 20255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20256 20257 path="$BOOT_JDK" 20258 has_colon=`$ECHO $path | $GREP ^.:` 20259 new_path="$path" 20260 if test "x$has_colon" = x; then 20261 # Not in mixed or Windows style, start by that. 20262 new_path=`cmd //c echo $path` 20263 fi 20264 20265 20266 input_path="$new_path" 20267 # Check if we need to convert this using DOS-style short mode. If the path 20268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20269 # take no chances and rewrite it. 20270 # Note: m4 eats our [], so we need to use [ and ] instead. 20271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20272 if test "x$has_forbidden_chars" != x; then 20273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20274 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20275 fi 20276 20277 20278 windows_path="$new_path" 20279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20280 unix_path=`$CYGPATH -u "$windows_path"` 20281 new_path="$unix_path" 20282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20284 new_path="$unix_path" 20285 fi 20286 20287 if test "x$path" != "x$new_path"; then 20288 BOOT_JDK="$new_path" 20289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20290 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20291 fi 20292 20293 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20294 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20295 20296 else 20297 # We're on a unix platform. Hooray! :) 20298 path="$BOOT_JDK" 20299 has_space=`$ECHO "$path" | $GREP " "` 20300 if test "x$has_space" != x; then 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20302 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20303 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20304 fi 20305 20306 # Use eval to expand a potential ~ 20307 eval path="$path" 20308 if test ! -f "$path" && test ! -d "$path"; then 20309 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20310 fi 20311 20312 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20313 fi 20314 fi 20315 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20317 $as_echo_n "checking for Boot JDK... " >&6; } 20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20319 $as_echo "$BOOT_JDK" >&6; } 20320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20321 $as_echo_n "checking Boot JDK version... " >&6; } 20322 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20324 $as_echo "$BOOT_JDK_VERSION" >&6; } 20325 fi # end check jdk version 20326 fi # end check javac 20327 fi # end check java 20328 fi # end check boot jdk found 20329 fi 20330 20331 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20332 # Having specified an argument which is incorrect will produce an instant failure; 20333 # we should not go on looking 20334 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20335 fi 20336 20337 # Test: Is bootjdk available from builddeps? 20338 20339 if test "x$BOOT_JDK_FOUND" = xno; then 20340 # Now execute the test 20341 20342 20343 20344 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20345 # Source the builddeps file again, to make sure it uses the latest variables! 20346 . $builddepsfile 20347 # Look for a target and build machine specific resource! 20348 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20349 if test "x$resource" = x; then 20350 # Ok, lets instead look for a target specific resource 20351 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20352 fi 20353 if test "x$resource" = x; then 20354 # Ok, lets instead look for a build specific resource 20355 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20356 fi 20357 if test "x$resource" = x; then 20358 # Ok, lets instead look for a generic resource 20359 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20360 resource=${builddep_bootjdk} 20361 fi 20362 if test "x$resource" != x; then 20363 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20364 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20365 # If the resource in the builddeps.conf file is an existing directory, 20366 # for example /java/linux/cups 20367 if test -d ${resource}; then 20368 depdir=${resource} 20369 else 20370 20371 # bootjdk is for example mymodule 20372 # $resource is for example libs/general/libmymod_1_2_3.zip 20373 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20374 # $with_builddeps_dir is for example /localhome/builddeps 20375 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20376 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20377 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20378 filename=`basename $resource` 20379 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20380 filebase=${filename%%.*} 20381 extension=${filename#*.} 20382 installdir=$with_builddeps_dir/$filebase 20383 if test ! -f $installdir/$filename.unpacked; then 20384 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20385 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20386 if test ! -d $installdir; then 20387 mkdir -p $installdir 20388 fi 20389 if test ! -d $installdir; then 20390 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20391 fi 20392 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20393 touch $tmpfile 20394 if test ! -f $tmpfile; then 20395 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20396 fi 20397 20398 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20399 # $tmpfile is the local file name for the downloaded file. 20400 VALID_TOOL=no 20401 if test "x$BDEPS_FTP" = xwget; then 20402 VALID_TOOL=yes 20403 wget -O $tmpfile $with_builddeps_server/$resource 20404 fi 20405 if test "x$BDEPS_FTP" = xlftp; then 20406 VALID_TOOL=yes 20407 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20408 fi 20409 if test "x$BDEPS_FTP" = xftp; then 20410 VALID_TOOL=yes 20411 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20412 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20413 FTPUSERPWD=${FTPSERVER%%@*} 20414 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20415 FTPUSER=${userpwd%%:*} 20416 FTPPWD=${userpwd#*@} 20417 FTPSERVER=${FTPSERVER#*@} 20418 else 20419 FTPUSER=ftp 20420 FTPPWD=ftp 20421 fi 20422 # the "pass" command does not work on some 20423 # ftp clients (read ftp.exe) but if it works, 20424 # passive mode is better! 20425 ( \ 20426 echo "user $FTPUSER $FTPPWD" ; \ 20427 echo "pass" ; \ 20428 echo "bin" ; \ 20429 echo "get $FTPPATH $tmpfile" ; \ 20430 ) | ftp -in $FTPSERVER 20431 fi 20432 if test "x$VALID_TOOL" != xyes; then 20433 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20434 fi 20435 20436 mv $tmpfile $installdir/$filename 20437 if test ! -s $installdir/$filename; then 20438 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20439 fi 20440 case "$extension" in 20441 zip) echo "Unzipping $installdir/$filename..." 20442 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20443 ;; 20444 tar.gz) echo "Untaring $installdir/$filename..." 20445 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20446 ;; 20447 tgz) echo "Untaring $installdir/$filename..." 20448 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20449 ;; 20450 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20451 ;; 20452 esac 20453 fi 20454 if test -f $installdir/$filename.unpacked; then 20455 depdir=$installdir 20456 fi 20457 20458 fi 20459 # Source the builddeps file again, because in the previous command, the depdir 20460 # was updated to point at the current build dependency install directory. 20461 . $builddepsfile 20462 # Now extract variables from the builddeps.conf files. 20463 theroot=${builddep_bootjdk_ROOT} 20464 thecflags=${builddep_bootjdk_CFLAGS} 20465 thelibs=${builddep_bootjdk_LIBS} 20466 if test "x$depdir" = x; then 20467 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20468 fi 20469 BOOT_JDK=$depdir 20470 if test "x$theroot" != x; then 20471 BOOT_JDK="$theroot" 20472 fi 20473 if test "x$thecflags" != x; then 20474 BOOT_JDK_CFLAGS="$thecflags" 20475 fi 20476 if test "x$thelibs" != x; then 20477 BOOT_JDK_LIBS="$thelibs" 20478 fi 20479 BOOT_JDK_FOUND=maybe 20480 else BOOT_JDK_FOUND=no 20481 20482 fi 20483 else BOOT_JDK_FOUND=no 20484 20485 fi 20486 20487 20488 20489 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20490 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20491 # Do we have a bin/java? 20492 if test ! -x "$BOOT_JDK/bin/java"; then 20493 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20495 BOOT_JDK_FOUND=no 20496 else 20497 # Do we have a bin/javac? 20498 if test ! -x "$BOOT_JDK/bin/javac"; then 20499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20502 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20503 BOOT_JDK_FOUND=no 20504 else 20505 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20506 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20507 20508 # Extra M4 quote needed to protect [] in grep expression. 20509 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20510 if test "x$FOUND_CORRECT_VERSION" = x; then 20511 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20513 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20514 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20515 BOOT_JDK_FOUND=no 20516 else 20517 # We're done! :-) 20518 BOOT_JDK_FOUND=yes 20519 20520 # Only process if variable expands to non-empty 20521 20522 if test "x$BOOT_JDK" != x; then 20523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20524 20525 # Input might be given as Windows format, start by converting to 20526 # unix format. 20527 path="$BOOT_JDK" 20528 new_path=`$CYGPATH -u "$path"` 20529 20530 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20531 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20532 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20533 # "foo.exe" is OK but "foo" is an error. 20534 # 20535 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20536 # It is also a way to make sure we got the proper file name for the real test later on. 20537 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20538 if test "x$test_shortpath" = x; then 20539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20540 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20541 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20542 fi 20543 20544 # Call helper function which possibly converts this using DOS-style short mode. 20545 # If so, the updated path is stored in $new_path. 20546 20547 input_path="$new_path" 20548 # Check if we need to convert this using DOS-style short mode. If the path 20549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20550 # take no chances and rewrite it. 20551 # Note: m4 eats our [], so we need to use [ and ] instead. 20552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20553 if test "x$has_forbidden_chars" != x; then 20554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20555 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20556 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20557 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20558 # Going to short mode and back again did indeed matter. Since short mode is 20559 # case insensitive, let's make it lowercase to improve readability. 20560 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20561 # Now convert it back to Unix-stile (cygpath) 20562 input_path=`$CYGPATH -u "$shortmode_path"` 20563 new_path="$input_path" 20564 fi 20565 fi 20566 20567 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20568 if test "x$test_cygdrive_prefix" = x; then 20569 # As a simple fix, exclude /usr/bin since it's not a real path. 20570 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20571 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20572 # a path prefixed by /cygdrive for fixpath to work. 20573 new_path="$CYGWIN_ROOT_PATH$input_path" 20574 fi 20575 fi 20576 20577 20578 if test "x$path" != "x$new_path"; then 20579 BOOT_JDK="$new_path" 20580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20581 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20582 fi 20583 20584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20585 20586 path="$BOOT_JDK" 20587 has_colon=`$ECHO $path | $GREP ^.:` 20588 new_path="$path" 20589 if test "x$has_colon" = x; then 20590 # Not in mixed or Windows style, start by that. 20591 new_path=`cmd //c echo $path` 20592 fi 20593 20594 20595 input_path="$new_path" 20596 # Check if we need to convert this using DOS-style short mode. If the path 20597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20598 # take no chances and rewrite it. 20599 # Note: m4 eats our [], so we need to use [ and ] instead. 20600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20601 if test "x$has_forbidden_chars" != x; then 20602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20603 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20604 fi 20605 20606 20607 windows_path="$new_path" 20608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20609 unix_path=`$CYGPATH -u "$windows_path"` 20610 new_path="$unix_path" 20611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20613 new_path="$unix_path" 20614 fi 20615 20616 if test "x$path" != "x$new_path"; then 20617 BOOT_JDK="$new_path" 20618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20619 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20620 fi 20621 20622 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20623 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20624 20625 else 20626 # We're on a unix platform. Hooray! :) 20627 path="$BOOT_JDK" 20628 has_space=`$ECHO "$path" | $GREP " "` 20629 if test "x$has_space" != x; then 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20631 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20632 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20633 fi 20634 20635 # Use eval to expand a potential ~ 20636 eval path="$path" 20637 if test ! -f "$path" && test ! -d "$path"; then 20638 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20639 fi 20640 20641 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20642 fi 20643 fi 20644 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20646 $as_echo_n "checking for Boot JDK... " >&6; } 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20648 $as_echo "$BOOT_JDK" >&6; } 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20650 $as_echo_n "checking Boot JDK version... " >&6; } 20651 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20653 $as_echo "$BOOT_JDK_VERSION" >&6; } 20654 fi # end check jdk version 20655 fi # end check javac 20656 fi # end check java 20657 fi # end check boot jdk found 20658 fi 20659 20660 20661 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20662 20663 if test "x$BOOT_JDK_FOUND" = xno; then 20664 # Now execute the test 20665 20666 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20667 # First check at user selected default 20668 20669 if test "x$BOOT_JDK_FOUND" = xno; then 20670 # Now execute the test 20671 20672 if test -x /usr/libexec/java_home; then 20673 BOOT_JDK=`/usr/libexec/java_home ` 20674 BOOT_JDK_FOUND=maybe 20675 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20676 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20677 fi 20678 20679 20680 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20681 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20682 # Do we have a bin/java? 20683 if test ! -x "$BOOT_JDK/bin/java"; then 20684 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20685 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20686 BOOT_JDK_FOUND=no 20687 else 20688 # Do we have a bin/javac? 20689 if test ! -x "$BOOT_JDK/bin/javac"; then 20690 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20691 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20692 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20693 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20694 BOOT_JDK_FOUND=no 20695 else 20696 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20697 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20698 20699 # Extra M4 quote needed to protect [] in grep expression. 20700 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20701 if test "x$FOUND_CORRECT_VERSION" = x; then 20702 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20703 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20705 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20706 BOOT_JDK_FOUND=no 20707 else 20708 # We're done! :-) 20709 BOOT_JDK_FOUND=yes 20710 20711 # Only process if variable expands to non-empty 20712 20713 if test "x$BOOT_JDK" != x; then 20714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20715 20716 # Input might be given as Windows format, start by converting to 20717 # unix format. 20718 path="$BOOT_JDK" 20719 new_path=`$CYGPATH -u "$path"` 20720 20721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20724 # "foo.exe" is OK but "foo" is an error. 20725 # 20726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20727 # It is also a way to make sure we got the proper file name for the real test later on. 20728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20729 if test "x$test_shortpath" = x; then 20730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20731 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20732 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20733 fi 20734 20735 # Call helper function which possibly converts this using DOS-style short mode. 20736 # If so, the updated path is stored in $new_path. 20737 20738 input_path="$new_path" 20739 # Check if we need to convert this using DOS-style short mode. If the path 20740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20741 # take no chances and rewrite it. 20742 # Note: m4 eats our [], so we need to use [ and ] instead. 20743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20744 if test "x$has_forbidden_chars" != x; then 20745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20749 # Going to short mode and back again did indeed matter. Since short mode is 20750 # case insensitive, let's make it lowercase to improve readability. 20751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20752 # Now convert it back to Unix-stile (cygpath) 20753 input_path=`$CYGPATH -u "$shortmode_path"` 20754 new_path="$input_path" 20755 fi 20756 fi 20757 20758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20759 if test "x$test_cygdrive_prefix" = x; then 20760 # As a simple fix, exclude /usr/bin since it's not a real path. 20761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20763 # a path prefixed by /cygdrive for fixpath to work. 20764 new_path="$CYGWIN_ROOT_PATH$input_path" 20765 fi 20766 fi 20767 20768 20769 if test "x$path" != "x$new_path"; then 20770 BOOT_JDK="$new_path" 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20773 fi 20774 20775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20776 20777 path="$BOOT_JDK" 20778 has_colon=`$ECHO $path | $GREP ^.:` 20779 new_path="$path" 20780 if test "x$has_colon" = x; then 20781 # Not in mixed or Windows style, start by that. 20782 new_path=`cmd //c echo $path` 20783 fi 20784 20785 20786 input_path="$new_path" 20787 # Check if we need to convert this using DOS-style short mode. If the path 20788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20789 # take no chances and rewrite it. 20790 # Note: m4 eats our [], so we need to use [ and ] instead. 20791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20792 if test "x$has_forbidden_chars" != x; then 20793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20795 fi 20796 20797 20798 windows_path="$new_path" 20799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20800 unix_path=`$CYGPATH -u "$windows_path"` 20801 new_path="$unix_path" 20802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20804 new_path="$unix_path" 20805 fi 20806 20807 if test "x$path" != "x$new_path"; then 20808 BOOT_JDK="$new_path" 20809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20811 fi 20812 20813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20815 20816 else 20817 # We're on a unix platform. Hooray! :) 20818 path="$BOOT_JDK" 20819 has_space=`$ECHO "$path" | $GREP " "` 20820 if test "x$has_space" != x; then 20821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20822 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20824 fi 20825 20826 # Use eval to expand a potential ~ 20827 eval path="$path" 20828 if test ! -f "$path" && test ! -d "$path"; then 20829 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20830 fi 20831 20832 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20833 fi 20834 fi 20835 20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20837 $as_echo_n "checking for Boot JDK... " >&6; } 20838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20839 $as_echo "$BOOT_JDK" >&6; } 20840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20841 $as_echo_n "checking Boot JDK version... " >&6; } 20842 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20844 $as_echo "$BOOT_JDK_VERSION" >&6; } 20845 fi # end check jdk version 20846 fi # end check javac 20847 fi # end check java 20848 fi # end check boot jdk found 20849 fi 20850 20851 # If that did not work out (e.g. too old), try explicit versions instead 20852 20853 if test "x$BOOT_JDK_FOUND" = xno; then 20854 # Now execute the test 20855 20856 if test -x /usr/libexec/java_home; then 20857 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20858 BOOT_JDK_FOUND=maybe 20859 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20860 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20861 fi 20862 20863 20864 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20865 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20866 # Do we have a bin/java? 20867 if test ! -x "$BOOT_JDK/bin/java"; then 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20869 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20870 BOOT_JDK_FOUND=no 20871 else 20872 # Do we have a bin/javac? 20873 if test ! -x "$BOOT_JDK/bin/javac"; then 20874 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20877 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20878 BOOT_JDK_FOUND=no 20879 else 20880 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20881 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20882 20883 # Extra M4 quote needed to protect [] in grep expression. 20884 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20885 if test "x$FOUND_CORRECT_VERSION" = x; then 20886 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20887 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20888 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20889 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20890 BOOT_JDK_FOUND=no 20891 else 20892 # We're done! :-) 20893 BOOT_JDK_FOUND=yes 20894 20895 # Only process if variable expands to non-empty 20896 20897 if test "x$BOOT_JDK" != x; then 20898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20899 20900 # Input might be given as Windows format, start by converting to 20901 # unix format. 20902 path="$BOOT_JDK" 20903 new_path=`$CYGPATH -u "$path"` 20904 20905 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20906 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20907 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20908 # "foo.exe" is OK but "foo" is an error. 20909 # 20910 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20911 # It is also a way to make sure we got the proper file name for the real test later on. 20912 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20913 if test "x$test_shortpath" = x; then 20914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20916 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20917 fi 20918 20919 # Call helper function which possibly converts this using DOS-style short mode. 20920 # If so, the updated path is stored in $new_path. 20921 20922 input_path="$new_path" 20923 # Check if we need to convert this using DOS-style short mode. If the path 20924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20925 # take no chances and rewrite it. 20926 # Note: m4 eats our [], so we need to use [ and ] instead. 20927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20928 if test "x$has_forbidden_chars" != x; then 20929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20930 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20931 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20932 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20933 # Going to short mode and back again did indeed matter. Since short mode is 20934 # case insensitive, let's make it lowercase to improve readability. 20935 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20936 # Now convert it back to Unix-stile (cygpath) 20937 input_path=`$CYGPATH -u "$shortmode_path"` 20938 new_path="$input_path" 20939 fi 20940 fi 20941 20942 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20943 if test "x$test_cygdrive_prefix" = x; then 20944 # As a simple fix, exclude /usr/bin since it's not a real path. 20945 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20946 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20947 # a path prefixed by /cygdrive for fixpath to work. 20948 new_path="$CYGWIN_ROOT_PATH$input_path" 20949 fi 20950 fi 20951 20952 20953 if test "x$path" != "x$new_path"; then 20954 BOOT_JDK="$new_path" 20955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20956 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20957 fi 20958 20959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20960 20961 path="$BOOT_JDK" 20962 has_colon=`$ECHO $path | $GREP ^.:` 20963 new_path="$path" 20964 if test "x$has_colon" = x; then 20965 # Not in mixed or Windows style, start by that. 20966 new_path=`cmd //c echo $path` 20967 fi 20968 20969 20970 input_path="$new_path" 20971 # Check if we need to convert this using DOS-style short mode. If the path 20972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20973 # take no chances and rewrite it. 20974 # Note: m4 eats our [], so we need to use [ and ] instead. 20975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20976 if test "x$has_forbidden_chars" != x; then 20977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20979 fi 20980 20981 20982 windows_path="$new_path" 20983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20984 unix_path=`$CYGPATH -u "$windows_path"` 20985 new_path="$unix_path" 20986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20988 new_path="$unix_path" 20989 fi 20990 20991 if test "x$path" != "x$new_path"; then 20992 BOOT_JDK="$new_path" 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20994 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20995 fi 20996 20997 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20998 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20999 21000 else 21001 # We're on a unix platform. Hooray! :) 21002 path="$BOOT_JDK" 21003 has_space=`$ECHO "$path" | $GREP " "` 21004 if test "x$has_space" != x; then 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21006 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21007 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21008 fi 21009 21010 # Use eval to expand a potential ~ 21011 eval path="$path" 21012 if test ! -f "$path" && test ! -d "$path"; then 21013 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21014 fi 21015 21016 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21017 fi 21018 fi 21019 21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21021 $as_echo_n "checking for Boot JDK... " >&6; } 21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21023 $as_echo "$BOOT_JDK" >&6; } 21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21025 $as_echo_n "checking Boot JDK version... " >&6; } 21026 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21028 $as_echo "$BOOT_JDK_VERSION" >&6; } 21029 fi # end check jdk version 21030 fi # end check javac 21031 fi # end check java 21032 fi # end check boot jdk found 21033 fi 21034 21035 21036 if test "x$BOOT_JDK_FOUND" = xno; then 21037 # Now execute the test 21038 21039 if test -x /usr/libexec/java_home; then 21040 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21041 BOOT_JDK_FOUND=maybe 21042 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21043 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21044 fi 21045 21046 21047 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21048 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21049 # Do we have a bin/java? 21050 if test ! -x "$BOOT_JDK/bin/java"; then 21051 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21053 BOOT_JDK_FOUND=no 21054 else 21055 # Do we have a bin/javac? 21056 if test ! -x "$BOOT_JDK/bin/javac"; then 21057 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21058 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21060 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21061 BOOT_JDK_FOUND=no 21062 else 21063 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21064 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21065 21066 # Extra M4 quote needed to protect [] in grep expression. 21067 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21068 if test "x$FOUND_CORRECT_VERSION" = x; then 21069 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21070 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21072 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21073 BOOT_JDK_FOUND=no 21074 else 21075 # We're done! :-) 21076 BOOT_JDK_FOUND=yes 21077 21078 # Only process if variable expands to non-empty 21079 21080 if test "x$BOOT_JDK" != x; then 21081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21082 21083 # Input might be given as Windows format, start by converting to 21084 # unix format. 21085 path="$BOOT_JDK" 21086 new_path=`$CYGPATH -u "$path"` 21087 21088 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21089 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21090 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21091 # "foo.exe" is OK but "foo" is an error. 21092 # 21093 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21094 # It is also a way to make sure we got the proper file name for the real test later on. 21095 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21096 if test "x$test_shortpath" = x; then 21097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21098 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21099 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21100 fi 21101 21102 # Call helper function which possibly converts this using DOS-style short mode. 21103 # If so, the updated path is stored in $new_path. 21104 21105 input_path="$new_path" 21106 # Check if we need to convert this using DOS-style short mode. If the path 21107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21108 # take no chances and rewrite it. 21109 # Note: m4 eats our [], so we need to use [ and ] instead. 21110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21111 if test "x$has_forbidden_chars" != x; then 21112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21113 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21114 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21115 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21116 # Going to short mode and back again did indeed matter. Since short mode is 21117 # case insensitive, let's make it lowercase to improve readability. 21118 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21119 # Now convert it back to Unix-stile (cygpath) 21120 input_path=`$CYGPATH -u "$shortmode_path"` 21121 new_path="$input_path" 21122 fi 21123 fi 21124 21125 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21126 if test "x$test_cygdrive_prefix" = x; then 21127 # As a simple fix, exclude /usr/bin since it's not a real path. 21128 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21129 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21130 # a path prefixed by /cygdrive for fixpath to work. 21131 new_path="$CYGWIN_ROOT_PATH$input_path" 21132 fi 21133 fi 21134 21135 21136 if test "x$path" != "x$new_path"; then 21137 BOOT_JDK="$new_path" 21138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21139 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21140 fi 21141 21142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21143 21144 path="$BOOT_JDK" 21145 has_colon=`$ECHO $path | $GREP ^.:` 21146 new_path="$path" 21147 if test "x$has_colon" = x; then 21148 # Not in mixed or Windows style, start by that. 21149 new_path=`cmd //c echo $path` 21150 fi 21151 21152 21153 input_path="$new_path" 21154 # Check if we need to convert this using DOS-style short mode. If the path 21155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21156 # take no chances and rewrite it. 21157 # Note: m4 eats our [], so we need to use [ and ] instead. 21158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21159 if test "x$has_forbidden_chars" != x; then 21160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21161 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21162 fi 21163 21164 21165 windows_path="$new_path" 21166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21167 unix_path=`$CYGPATH -u "$windows_path"` 21168 new_path="$unix_path" 21169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21171 new_path="$unix_path" 21172 fi 21173 21174 if test "x$path" != "x$new_path"; then 21175 BOOT_JDK="$new_path" 21176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21177 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21178 fi 21179 21180 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21181 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21182 21183 else 21184 # We're on a unix platform. Hooray! :) 21185 path="$BOOT_JDK" 21186 has_space=`$ECHO "$path" | $GREP " "` 21187 if test "x$has_space" != x; then 21188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21189 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21190 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21191 fi 21192 21193 # Use eval to expand a potential ~ 21194 eval path="$path" 21195 if test ! -f "$path" && test ! -d "$path"; then 21196 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21197 fi 21198 21199 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21200 fi 21201 fi 21202 21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21204 $as_echo_n "checking for Boot JDK... " >&6; } 21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21206 $as_echo "$BOOT_JDK" >&6; } 21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21208 $as_echo_n "checking Boot JDK version... " >&6; } 21209 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21211 $as_echo "$BOOT_JDK_VERSION" >&6; } 21212 fi # end check jdk version 21213 fi # end check javac 21214 fi # end check java 21215 fi # end check boot jdk found 21216 fi 21217 21218 21219 if test "x$BOOT_JDK_FOUND" = xno; then 21220 # Now execute the test 21221 21222 if test -x /usr/libexec/java_home; then 21223 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21224 BOOT_JDK_FOUND=maybe 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21226 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21227 fi 21228 21229 21230 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21231 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21232 # Do we have a bin/java? 21233 if test ! -x "$BOOT_JDK/bin/java"; then 21234 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21235 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21236 BOOT_JDK_FOUND=no 21237 else 21238 # Do we have a bin/javac? 21239 if test ! -x "$BOOT_JDK/bin/javac"; then 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21242 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21243 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21244 BOOT_JDK_FOUND=no 21245 else 21246 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21247 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21248 21249 # Extra M4 quote needed to protect [] in grep expression. 21250 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21251 if test "x$FOUND_CORRECT_VERSION" = x; then 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21254 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21255 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21256 BOOT_JDK_FOUND=no 21257 else 21258 # We're done! :-) 21259 BOOT_JDK_FOUND=yes 21260 21261 # Only process if variable expands to non-empty 21262 21263 if test "x$BOOT_JDK" != x; then 21264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21265 21266 # Input might be given as Windows format, start by converting to 21267 # unix format. 21268 path="$BOOT_JDK" 21269 new_path=`$CYGPATH -u "$path"` 21270 21271 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21272 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21273 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21274 # "foo.exe" is OK but "foo" is an error. 21275 # 21276 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21277 # It is also a way to make sure we got the proper file name for the real test later on. 21278 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21279 if test "x$test_shortpath" = x; then 21280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21282 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21283 fi 21284 21285 # Call helper function which possibly converts this using DOS-style short mode. 21286 # If so, the updated path is stored in $new_path. 21287 21288 input_path="$new_path" 21289 # Check if we need to convert this using DOS-style short mode. If the path 21290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21291 # take no chances and rewrite it. 21292 # Note: m4 eats our [], so we need to use [ and ] instead. 21293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21294 if test "x$has_forbidden_chars" != x; then 21295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21296 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21297 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21298 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21299 # Going to short mode and back again did indeed matter. Since short mode is 21300 # case insensitive, let's make it lowercase to improve readability. 21301 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21302 # Now convert it back to Unix-stile (cygpath) 21303 input_path=`$CYGPATH -u "$shortmode_path"` 21304 new_path="$input_path" 21305 fi 21306 fi 21307 21308 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21309 if test "x$test_cygdrive_prefix" = x; then 21310 # As a simple fix, exclude /usr/bin since it's not a real path. 21311 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21312 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21313 # a path prefixed by /cygdrive for fixpath to work. 21314 new_path="$CYGWIN_ROOT_PATH$input_path" 21315 fi 21316 fi 21317 21318 21319 if test "x$path" != "x$new_path"; then 21320 BOOT_JDK="$new_path" 21321 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21323 fi 21324 21325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21326 21327 path="$BOOT_JDK" 21328 has_colon=`$ECHO $path | $GREP ^.:` 21329 new_path="$path" 21330 if test "x$has_colon" = x; then 21331 # Not in mixed or Windows style, start by that. 21332 new_path=`cmd //c echo $path` 21333 fi 21334 21335 21336 input_path="$new_path" 21337 # Check if we need to convert this using DOS-style short mode. If the path 21338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21339 # take no chances and rewrite it. 21340 # Note: m4 eats our [], so we need to use [ and ] instead. 21341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21342 if test "x$has_forbidden_chars" != x; then 21343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21344 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21345 fi 21346 21347 21348 windows_path="$new_path" 21349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21350 unix_path=`$CYGPATH -u "$windows_path"` 21351 new_path="$unix_path" 21352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21353 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21354 new_path="$unix_path" 21355 fi 21356 21357 if test "x$path" != "x$new_path"; then 21358 BOOT_JDK="$new_path" 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21361 fi 21362 21363 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21364 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21365 21366 else 21367 # We're on a unix platform. Hooray! :) 21368 path="$BOOT_JDK" 21369 has_space=`$ECHO "$path" | $GREP " "` 21370 if test "x$has_space" != x; then 21371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21373 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21374 fi 21375 21376 # Use eval to expand a potential ~ 21377 eval path="$path" 21378 if test ! -f "$path" && test ! -d "$path"; then 21379 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21380 fi 21381 21382 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21383 fi 21384 fi 21385 21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21387 $as_echo_n "checking for Boot JDK... " >&6; } 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21389 $as_echo "$BOOT_JDK" >&6; } 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21391 $as_echo_n "checking Boot JDK version... " >&6; } 21392 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21394 $as_echo "$BOOT_JDK_VERSION" >&6; } 21395 fi # end check jdk version 21396 fi # end check javac 21397 fi # end check java 21398 fi # end check boot jdk found 21399 fi 21400 21401 fi 21402 21403 21404 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21405 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21406 # Do we have a bin/java? 21407 if test ! -x "$BOOT_JDK/bin/java"; then 21408 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21410 BOOT_JDK_FOUND=no 21411 else 21412 # Do we have a bin/javac? 21413 if test ! -x "$BOOT_JDK/bin/javac"; then 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21415 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21416 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21417 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21418 BOOT_JDK_FOUND=no 21419 else 21420 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21421 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21422 21423 # Extra M4 quote needed to protect [] in grep expression. 21424 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21425 if test "x$FOUND_CORRECT_VERSION" = x; then 21426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21429 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21430 BOOT_JDK_FOUND=no 21431 else 21432 # We're done! :-) 21433 BOOT_JDK_FOUND=yes 21434 21435 # Only process if variable expands to non-empty 21436 21437 if test "x$BOOT_JDK" != x; then 21438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21439 21440 # Input might be given as Windows format, start by converting to 21441 # unix format. 21442 path="$BOOT_JDK" 21443 new_path=`$CYGPATH -u "$path"` 21444 21445 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21446 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21447 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21448 # "foo.exe" is OK but "foo" is an error. 21449 # 21450 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21451 # It is also a way to make sure we got the proper file name for the real test later on. 21452 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21453 if test "x$test_shortpath" = x; then 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21455 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21456 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21457 fi 21458 21459 # Call helper function which possibly converts this using DOS-style short mode. 21460 # If so, the updated path is stored in $new_path. 21461 21462 input_path="$new_path" 21463 # Check if we need to convert this using DOS-style short mode. If the path 21464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21465 # take no chances and rewrite it. 21466 # Note: m4 eats our [], so we need to use [ and ] instead. 21467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21468 if test "x$has_forbidden_chars" != x; then 21469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21470 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21471 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21472 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21473 # Going to short mode and back again did indeed matter. Since short mode is 21474 # case insensitive, let's make it lowercase to improve readability. 21475 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21476 # Now convert it back to Unix-stile (cygpath) 21477 input_path=`$CYGPATH -u "$shortmode_path"` 21478 new_path="$input_path" 21479 fi 21480 fi 21481 21482 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21483 if test "x$test_cygdrive_prefix" = x; then 21484 # As a simple fix, exclude /usr/bin since it's not a real path. 21485 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21486 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21487 # a path prefixed by /cygdrive for fixpath to work. 21488 new_path="$CYGWIN_ROOT_PATH$input_path" 21489 fi 21490 fi 21491 21492 21493 if test "x$path" != "x$new_path"; then 21494 BOOT_JDK="$new_path" 21495 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21496 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21497 fi 21498 21499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21500 21501 path="$BOOT_JDK" 21502 has_colon=`$ECHO $path | $GREP ^.:` 21503 new_path="$path" 21504 if test "x$has_colon" = x; then 21505 # Not in mixed or Windows style, start by that. 21506 new_path=`cmd //c echo $path` 21507 fi 21508 21509 21510 input_path="$new_path" 21511 # Check if we need to convert this using DOS-style short mode. If the path 21512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21513 # take no chances and rewrite it. 21514 # Note: m4 eats our [], so we need to use [ and ] instead. 21515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21516 if test "x$has_forbidden_chars" != x; then 21517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21518 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21519 fi 21520 21521 21522 windows_path="$new_path" 21523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21524 unix_path=`$CYGPATH -u "$windows_path"` 21525 new_path="$unix_path" 21526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21527 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21528 new_path="$unix_path" 21529 fi 21530 21531 if test "x$path" != "x$new_path"; then 21532 BOOT_JDK="$new_path" 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21534 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21535 fi 21536 21537 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21538 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21539 21540 else 21541 # We're on a unix platform. Hooray! :) 21542 path="$BOOT_JDK" 21543 has_space=`$ECHO "$path" | $GREP " "` 21544 if test "x$has_space" != x; then 21545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21546 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21547 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21548 fi 21549 21550 # Use eval to expand a potential ~ 21551 eval path="$path" 21552 if test ! -f "$path" && test ! -d "$path"; then 21553 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21554 fi 21555 21556 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21557 fi 21558 fi 21559 21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21561 $as_echo_n "checking for Boot JDK... " >&6; } 21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21563 $as_echo "$BOOT_JDK" >&6; } 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21565 $as_echo_n "checking Boot JDK version... " >&6; } 21566 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21568 $as_echo "$BOOT_JDK_VERSION" >&6; } 21569 fi # end check jdk version 21570 fi # end check javac 21571 fi # end check java 21572 fi # end check boot jdk found 21573 fi 21574 21575 21576 # Test: Is $JAVA_HOME set? 21577 21578 if test "x$BOOT_JDK_FOUND" = xno; then 21579 # Now execute the test 21580 21581 if test "x$JAVA_HOME" != x; then 21582 JAVA_HOME_PROCESSED="$JAVA_HOME" 21583 21584 # Only process if variable expands to non-empty 21585 21586 if test "x$JAVA_HOME_PROCESSED" != x; then 21587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21588 21589 # Input might be given as Windows format, start by converting to 21590 # unix format. 21591 path="$JAVA_HOME_PROCESSED" 21592 new_path=`$CYGPATH -u "$path"` 21593 21594 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21595 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21596 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21597 # "foo.exe" is OK but "foo" is an error. 21598 # 21599 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21600 # It is also a way to make sure we got the proper file name for the real test later on. 21601 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21602 if test "x$test_shortpath" = x; then 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21604 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21605 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21606 fi 21607 21608 # Call helper function which possibly converts this using DOS-style short mode. 21609 # If so, the updated path is stored in $new_path. 21610 21611 input_path="$new_path" 21612 # Check if we need to convert this using DOS-style short mode. If the path 21613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21614 # take no chances and rewrite it. 21615 # Note: m4 eats our [], so we need to use [ and ] instead. 21616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21617 if test "x$has_forbidden_chars" != x; then 21618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21619 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21620 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21621 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21622 # Going to short mode and back again did indeed matter. Since short mode is 21623 # case insensitive, let's make it lowercase to improve readability. 21624 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21625 # Now convert it back to Unix-stile (cygpath) 21626 input_path=`$CYGPATH -u "$shortmode_path"` 21627 new_path="$input_path" 21628 fi 21629 fi 21630 21631 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21632 if test "x$test_cygdrive_prefix" = x; then 21633 # As a simple fix, exclude /usr/bin since it's not a real path. 21634 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21635 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21636 # a path prefixed by /cygdrive for fixpath to work. 21637 new_path="$CYGWIN_ROOT_PATH$input_path" 21638 fi 21639 fi 21640 21641 21642 if test "x$path" != "x$new_path"; then 21643 JAVA_HOME_PROCESSED="$new_path" 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21645 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21646 fi 21647 21648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21649 21650 path="$JAVA_HOME_PROCESSED" 21651 has_colon=`$ECHO $path | $GREP ^.:` 21652 new_path="$path" 21653 if test "x$has_colon" = x; then 21654 # Not in mixed or Windows style, start by that. 21655 new_path=`cmd //c echo $path` 21656 fi 21657 21658 21659 input_path="$new_path" 21660 # Check if we need to convert this using DOS-style short mode. If the path 21661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21662 # take no chances and rewrite it. 21663 # Note: m4 eats our [], so we need to use [ and ] instead. 21664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21665 if test "x$has_forbidden_chars" != x; then 21666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21667 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21668 fi 21669 21670 21671 windows_path="$new_path" 21672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21673 unix_path=`$CYGPATH -u "$windows_path"` 21674 new_path="$unix_path" 21675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21677 new_path="$unix_path" 21678 fi 21679 21680 if test "x$path" != "x$new_path"; then 21681 JAVA_HOME_PROCESSED="$new_path" 21682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21683 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21684 fi 21685 21686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21688 21689 else 21690 # We're on a unix platform. Hooray! :) 21691 path="$JAVA_HOME_PROCESSED" 21692 has_space=`$ECHO "$path" | $GREP " "` 21693 if test "x$has_space" != x; then 21694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21695 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21696 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21697 fi 21698 21699 # Use eval to expand a potential ~ 21700 eval path="$path" 21701 if test ! -f "$path" && test ! -d "$path"; then 21702 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21703 fi 21704 21705 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21706 fi 21707 fi 21708 21709 if test ! -d "$JAVA_HOME_PROCESSED"; then 21710 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21711 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21712 else 21713 # Aha, the user has set a JAVA_HOME 21714 # let us use that as the Boot JDK. 21715 BOOT_JDK="$JAVA_HOME_PROCESSED" 21716 BOOT_JDK_FOUND=maybe 21717 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21718 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21719 fi 21720 fi 21721 21722 21723 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21724 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21725 # Do we have a bin/java? 21726 if test ! -x "$BOOT_JDK/bin/java"; then 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21729 BOOT_JDK_FOUND=no 21730 else 21731 # Do we have a bin/javac? 21732 if test ! -x "$BOOT_JDK/bin/javac"; then 21733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21735 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21736 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21737 BOOT_JDK_FOUND=no 21738 else 21739 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21740 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21741 21742 # Extra M4 quote needed to protect [] in grep expression. 21743 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21744 if test "x$FOUND_CORRECT_VERSION" = x; then 21745 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21746 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21748 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21749 BOOT_JDK_FOUND=no 21750 else 21751 # We're done! :-) 21752 BOOT_JDK_FOUND=yes 21753 21754 # Only process if variable expands to non-empty 21755 21756 if test "x$BOOT_JDK" != x; then 21757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21758 21759 # Input might be given as Windows format, start by converting to 21760 # unix format. 21761 path="$BOOT_JDK" 21762 new_path=`$CYGPATH -u "$path"` 21763 21764 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21765 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21766 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21767 # "foo.exe" is OK but "foo" is an error. 21768 # 21769 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21770 # It is also a way to make sure we got the proper file name for the real test later on. 21771 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21772 if test "x$test_shortpath" = x; then 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21774 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21775 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21776 fi 21777 21778 # Call helper function which possibly converts this using DOS-style short mode. 21779 # If so, the updated path is stored in $new_path. 21780 21781 input_path="$new_path" 21782 # Check if we need to convert this using DOS-style short mode. If the path 21783 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21784 # take no chances and rewrite it. 21785 # Note: m4 eats our [], so we need to use [ and ] instead. 21786 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21787 if test "x$has_forbidden_chars" != x; then 21788 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21789 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21790 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21791 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21792 # Going to short mode and back again did indeed matter. Since short mode is 21793 # case insensitive, let's make it lowercase to improve readability. 21794 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21795 # Now convert it back to Unix-stile (cygpath) 21796 input_path=`$CYGPATH -u "$shortmode_path"` 21797 new_path="$input_path" 21798 fi 21799 fi 21800 21801 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21802 if test "x$test_cygdrive_prefix" = x; then 21803 # As a simple fix, exclude /usr/bin since it's not a real path. 21804 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21805 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21806 # a path prefixed by /cygdrive for fixpath to work. 21807 new_path="$CYGWIN_ROOT_PATH$input_path" 21808 fi 21809 fi 21810 21811 21812 if test "x$path" != "x$new_path"; then 21813 BOOT_JDK="$new_path" 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21815 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21816 fi 21817 21818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21819 21820 path="$BOOT_JDK" 21821 has_colon=`$ECHO $path | $GREP ^.:` 21822 new_path="$path" 21823 if test "x$has_colon" = x; then 21824 # Not in mixed or Windows style, start by that. 21825 new_path=`cmd //c echo $path` 21826 fi 21827 21828 21829 input_path="$new_path" 21830 # Check if we need to convert this using DOS-style short mode. If the path 21831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21832 # take no chances and rewrite it. 21833 # Note: m4 eats our [], so we need to use [ and ] instead. 21834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21835 if test "x$has_forbidden_chars" != x; then 21836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21837 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21838 fi 21839 21840 21841 windows_path="$new_path" 21842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21843 unix_path=`$CYGPATH -u "$windows_path"` 21844 new_path="$unix_path" 21845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21847 new_path="$unix_path" 21848 fi 21849 21850 if test "x$path" != "x$new_path"; then 21851 BOOT_JDK="$new_path" 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21853 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21854 fi 21855 21856 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21857 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21858 21859 else 21860 # We're on a unix platform. Hooray! :) 21861 path="$BOOT_JDK" 21862 has_space=`$ECHO "$path" | $GREP " "` 21863 if test "x$has_space" != x; then 21864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21865 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21866 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21867 fi 21868 21869 # Use eval to expand a potential ~ 21870 eval path="$path" 21871 if test ! -f "$path" && test ! -d "$path"; then 21872 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21873 fi 21874 21875 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21876 fi 21877 fi 21878 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21880 $as_echo_n "checking for Boot JDK... " >&6; } 21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21882 $as_echo "$BOOT_JDK" >&6; } 21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21884 $as_echo_n "checking Boot JDK version... " >&6; } 21885 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21887 $as_echo "$BOOT_JDK_VERSION" >&6; } 21888 fi # end check jdk version 21889 fi # end check javac 21890 fi # end check java 21891 fi # end check boot jdk found 21892 fi 21893 21894 21895 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21896 21897 if test "x$BOOT_JDK_FOUND" = xno; then 21898 # Now execute the test 21899 21900 # Extract the first word of "javac", so it can be a program name with args. 21901 set dummy javac; ac_word=$2 21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21903 $as_echo_n "checking for $ac_word... " >&6; } 21904 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21905 $as_echo_n "(cached) " >&6 21906 else 21907 case $JAVAC_CHECK in 21908 [\\/]* | ?:[\\/]*) 21909 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21910 ;; 21911 *) 21912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21913 for as_dir in $PATH 21914 do 21915 IFS=$as_save_IFS 21916 test -z "$as_dir" && as_dir=. 21917 for ac_exec_ext in '' $ac_executable_extensions; do 21918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21919 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21921 break 2 21922 fi 21923 done 21924 done 21925 IFS=$as_save_IFS 21926 21927 ;; 21928 esac 21929 fi 21930 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21931 if test -n "$JAVAC_CHECK"; then 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21933 $as_echo "$JAVAC_CHECK" >&6; } 21934 else 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21936 $as_echo "no" >&6; } 21937 fi 21938 21939 21940 # Extract the first word of "java", so it can be a program name with args. 21941 set dummy java; ac_word=$2 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21943 $as_echo_n "checking for $ac_word... " >&6; } 21944 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21945 $as_echo_n "(cached) " >&6 21946 else 21947 case $JAVA_CHECK in 21948 [\\/]* | ?:[\\/]*) 21949 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21950 ;; 21951 *) 21952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21953 for as_dir in $PATH 21954 do 21955 IFS=$as_save_IFS 21956 test -z "$as_dir" && as_dir=. 21957 for ac_exec_ext in '' $ac_executable_extensions; do 21958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21959 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21961 break 2 21962 fi 21963 done 21964 done 21965 IFS=$as_save_IFS 21966 21967 ;; 21968 esac 21969 fi 21970 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21971 if test -n "$JAVA_CHECK"; then 21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21973 $as_echo "$JAVA_CHECK" >&6; } 21974 else 21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21976 $as_echo "no" >&6; } 21977 fi 21978 21979 21980 BINARY="$JAVAC_CHECK" 21981 if test "x$JAVAC_CHECK" = x; then 21982 BINARY="$JAVA_CHECK" 21983 fi 21984 if test "x$BINARY" != x; then 21985 # So there is a java(c) binary, it might be part of a JDK. 21986 # Lets find the JDK/JRE directory by following symbolic links. 21987 # Linux/GNU systems often have links from /usr/bin/java to 21988 # /etc/alternatives/java to the real JDK binary. 21989 21990 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21991 # Follow a chain of symbolic links. Use readlink 21992 # where it exists, else fall back to horribly 21993 # complicated shell code. 21994 if test "x$READLINK_TESTED" != yes; then 21995 # On MacOSX there is a readlink tool with a different 21996 # purpose than the GNU readlink tool. Check the found readlink. 21997 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21998 if test "x$ISGNU" = x; then 21999 # A readlink that we do not know how to use. 22000 # Are there other non-GNU readlinks out there? 22001 READLINK_TESTED=yes 22002 READLINK= 22003 fi 22004 fi 22005 22006 if test "x$READLINK" != x; then 22007 BINARY=`$READLINK -f $BINARY` 22008 else 22009 # Save the current directory for restoring afterwards 22010 STARTDIR=$PWD 22011 COUNTER=0 22012 sym_link_dir=`$DIRNAME $BINARY` 22013 sym_link_file=`$BASENAME $BINARY` 22014 cd $sym_link_dir 22015 # Use -P flag to resolve symlinks in directories. 22016 cd `$THEPWDCMD -P` 22017 sym_link_dir=`$THEPWDCMD -P` 22018 # Resolve file symlinks 22019 while test $COUNTER -lt 20; do 22020 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22021 if test "x$ISLINK" == x; then 22022 # This is not a symbolic link! We are done! 22023 break 22024 fi 22025 # Again resolve directory symlinks since the target of the just found 22026 # link could be in a different directory 22027 cd `$DIRNAME $ISLINK` 22028 sym_link_dir=`$THEPWDCMD -P` 22029 sym_link_file=`$BASENAME $ISLINK` 22030 let COUNTER=COUNTER+1 22031 done 22032 cd $STARTDIR 22033 BINARY=$sym_link_dir/$sym_link_file 22034 fi 22035 fi 22036 22037 BOOT_JDK=`dirname "$BINARY"` 22038 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22039 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22040 # Looks like we found ourselves an JDK 22041 BOOT_JDK_FOUND=maybe 22042 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22043 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22044 fi 22045 fi 22046 22047 22048 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22049 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22050 # Do we have a bin/java? 22051 if test ! -x "$BOOT_JDK/bin/java"; then 22052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22054 BOOT_JDK_FOUND=no 22055 else 22056 # Do we have a bin/javac? 22057 if test ! -x "$BOOT_JDK/bin/javac"; then 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22060 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22061 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22062 BOOT_JDK_FOUND=no 22063 else 22064 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22065 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22066 22067 # Extra M4 quote needed to protect [] in grep expression. 22068 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22069 if test "x$FOUND_CORRECT_VERSION" = x; then 22070 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22072 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22073 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22074 BOOT_JDK_FOUND=no 22075 else 22076 # We're done! :-) 22077 BOOT_JDK_FOUND=yes 22078 22079 # Only process if variable expands to non-empty 22080 22081 if test "x$BOOT_JDK" != x; then 22082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22083 22084 # Input might be given as Windows format, start by converting to 22085 # unix format. 22086 path="$BOOT_JDK" 22087 new_path=`$CYGPATH -u "$path"` 22088 22089 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22090 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22091 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22092 # "foo.exe" is OK but "foo" is an error. 22093 # 22094 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22095 # It is also a way to make sure we got the proper file name for the real test later on. 22096 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22097 if test "x$test_shortpath" = x; then 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22099 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22100 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22101 fi 22102 22103 # Call helper function which possibly converts this using DOS-style short mode. 22104 # If so, the updated path is stored in $new_path. 22105 22106 input_path="$new_path" 22107 # Check if we need to convert this using DOS-style short mode. If the path 22108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22109 # take no chances and rewrite it. 22110 # Note: m4 eats our [], so we need to use [ and ] instead. 22111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22112 if test "x$has_forbidden_chars" != x; then 22113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22117 # Going to short mode and back again did indeed matter. Since short mode is 22118 # case insensitive, let's make it lowercase to improve readability. 22119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22120 # Now convert it back to Unix-stile (cygpath) 22121 input_path=`$CYGPATH -u "$shortmode_path"` 22122 new_path="$input_path" 22123 fi 22124 fi 22125 22126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22127 if test "x$test_cygdrive_prefix" = x; then 22128 # As a simple fix, exclude /usr/bin since it's not a real path. 22129 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22131 # a path prefixed by /cygdrive for fixpath to work. 22132 new_path="$CYGWIN_ROOT_PATH$input_path" 22133 fi 22134 fi 22135 22136 22137 if test "x$path" != "x$new_path"; then 22138 BOOT_JDK="$new_path" 22139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22140 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22141 fi 22142 22143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22144 22145 path="$BOOT_JDK" 22146 has_colon=`$ECHO $path | $GREP ^.:` 22147 new_path="$path" 22148 if test "x$has_colon" = x; then 22149 # Not in mixed or Windows style, start by that. 22150 new_path=`cmd //c echo $path` 22151 fi 22152 22153 22154 input_path="$new_path" 22155 # Check if we need to convert this using DOS-style short mode. If the path 22156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22157 # take no chances and rewrite it. 22158 # Note: m4 eats our [], so we need to use [ and ] instead. 22159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22160 if test "x$has_forbidden_chars" != x; then 22161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22162 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22163 fi 22164 22165 22166 windows_path="$new_path" 22167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22168 unix_path=`$CYGPATH -u "$windows_path"` 22169 new_path="$unix_path" 22170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22172 new_path="$unix_path" 22173 fi 22174 22175 if test "x$path" != "x$new_path"; then 22176 BOOT_JDK="$new_path" 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22179 fi 22180 22181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22183 22184 else 22185 # We're on a unix platform. Hooray! :) 22186 path="$BOOT_JDK" 22187 has_space=`$ECHO "$path" | $GREP " "` 22188 if test "x$has_space" != x; then 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22191 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22192 fi 22193 22194 # Use eval to expand a potential ~ 22195 eval path="$path" 22196 if test ! -f "$path" && test ! -d "$path"; then 22197 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22198 fi 22199 22200 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22201 fi 22202 fi 22203 22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22205 $as_echo_n "checking for Boot JDK... " >&6; } 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22207 $as_echo "$BOOT_JDK" >&6; } 22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22209 $as_echo_n "checking Boot JDK version... " >&6; } 22210 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22212 $as_echo "$BOOT_JDK_VERSION" >&6; } 22213 fi # end check jdk version 22214 fi # end check javac 22215 fi # end check java 22216 fi # end check boot jdk found 22217 fi 22218 22219 22220 # Test: Is there a JDK installed in default, well-known locations? 22221 22222 if test "x$BOOT_JDK_FOUND" = xno; then 22223 # Now execute the test 22224 22225 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22226 22227 if test "x$BOOT_JDK_FOUND" = xno; then 22228 # Now execute the test 22229 22230 if test "x$ProgramW6432" != x; then 22231 VIRTUAL_DIR="$ProgramW6432/Java" 22232 22233 windows_path="$VIRTUAL_DIR" 22234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22235 unix_path=`$CYGPATH -u "$windows_path"` 22236 VIRTUAL_DIR="$unix_path" 22237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22239 VIRTUAL_DIR="$unix_path" 22240 fi 22241 22242 22243 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22244 BOOT_JDK_SUFFIX="" 22245 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22246 if test "x$ALL_JDKS_FOUND" != x; then 22247 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22248 22249 if test "x$BOOT_JDK_FOUND" = xno; then 22250 # Now execute the test 22251 22252 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22253 if test -d "$BOOT_JDK"; then 22254 BOOT_JDK_FOUND=maybe 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22256 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22257 fi 22258 22259 22260 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22261 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22262 # Do we have a bin/java? 22263 if test ! -x "$BOOT_JDK/bin/java"; then 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22266 BOOT_JDK_FOUND=no 22267 else 22268 # Do we have a bin/javac? 22269 if test ! -x "$BOOT_JDK/bin/javac"; then 22270 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22272 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22273 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22274 BOOT_JDK_FOUND=no 22275 else 22276 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22277 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22278 22279 # Extra M4 quote needed to protect [] in grep expression. 22280 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22281 if test "x$FOUND_CORRECT_VERSION" = x; then 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22283 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22284 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22285 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22286 BOOT_JDK_FOUND=no 22287 else 22288 # We're done! :-) 22289 BOOT_JDK_FOUND=yes 22290 22291 # Only process if variable expands to non-empty 22292 22293 if test "x$BOOT_JDK" != x; then 22294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22295 22296 # Input might be given as Windows format, start by converting to 22297 # unix format. 22298 path="$BOOT_JDK" 22299 new_path=`$CYGPATH -u "$path"` 22300 22301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22304 # "foo.exe" is OK but "foo" is an error. 22305 # 22306 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22307 # It is also a way to make sure we got the proper file name for the real test later on. 22308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22309 if test "x$test_shortpath" = x; then 22310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22311 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22312 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22313 fi 22314 22315 # Call helper function which possibly converts this using DOS-style short mode. 22316 # If so, the updated path is stored in $new_path. 22317 22318 input_path="$new_path" 22319 # Check if we need to convert this using DOS-style short mode. If the path 22320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22321 # take no chances and rewrite it. 22322 # Note: m4 eats our [], so we need to use [ and ] instead. 22323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22324 if test "x$has_forbidden_chars" != x; then 22325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22329 # Going to short mode and back again did indeed matter. Since short mode is 22330 # case insensitive, let's make it lowercase to improve readability. 22331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22332 # Now convert it back to Unix-stile (cygpath) 22333 input_path=`$CYGPATH -u "$shortmode_path"` 22334 new_path="$input_path" 22335 fi 22336 fi 22337 22338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22339 if test "x$test_cygdrive_prefix" = x; then 22340 # As a simple fix, exclude /usr/bin since it's not a real path. 22341 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22343 # a path prefixed by /cygdrive for fixpath to work. 22344 new_path="$CYGWIN_ROOT_PATH$input_path" 22345 fi 22346 fi 22347 22348 22349 if test "x$path" != "x$new_path"; then 22350 BOOT_JDK="$new_path" 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22352 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22353 fi 22354 22355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22356 22357 path="$BOOT_JDK" 22358 has_colon=`$ECHO $path | $GREP ^.:` 22359 new_path="$path" 22360 if test "x$has_colon" = x; then 22361 # Not in mixed or Windows style, start by that. 22362 new_path=`cmd //c echo $path` 22363 fi 22364 22365 22366 input_path="$new_path" 22367 # Check if we need to convert this using DOS-style short mode. If the path 22368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22369 # take no chances and rewrite it. 22370 # Note: m4 eats our [], so we need to use [ and ] instead. 22371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22372 if test "x$has_forbidden_chars" != x; then 22373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22374 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22375 fi 22376 22377 22378 windows_path="$new_path" 22379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22380 unix_path=`$CYGPATH -u "$windows_path"` 22381 new_path="$unix_path" 22382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22383 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22384 new_path="$unix_path" 22385 fi 22386 22387 if test "x$path" != "x$new_path"; then 22388 BOOT_JDK="$new_path" 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22390 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22391 fi 22392 22393 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22394 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22395 22396 else 22397 # We're on a unix platform. Hooray! :) 22398 path="$BOOT_JDK" 22399 has_space=`$ECHO "$path" | $GREP " "` 22400 if test "x$has_space" != x; then 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22402 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22403 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22404 fi 22405 22406 # Use eval to expand a potential ~ 22407 eval path="$path" 22408 if test ! -f "$path" && test ! -d "$path"; then 22409 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22410 fi 22411 22412 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22413 fi 22414 fi 22415 22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22417 $as_echo_n "checking for Boot JDK... " >&6; } 22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22419 $as_echo "$BOOT_JDK" >&6; } 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22421 $as_echo_n "checking Boot JDK version... " >&6; } 22422 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22424 $as_echo "$BOOT_JDK_VERSION" >&6; } 22425 fi # end check jdk version 22426 fi # end check javac 22427 fi # end check java 22428 fi # end check boot jdk found 22429 fi 22430 22431 done 22432 fi 22433 22434 fi 22435 22436 22437 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22438 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22439 # Do we have a bin/java? 22440 if test ! -x "$BOOT_JDK/bin/java"; then 22441 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22443 BOOT_JDK_FOUND=no 22444 else 22445 # Do we have a bin/javac? 22446 if test ! -x "$BOOT_JDK/bin/javac"; then 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22449 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22450 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22451 BOOT_JDK_FOUND=no 22452 else 22453 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22455 22456 # Extra M4 quote needed to protect [] in grep expression. 22457 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22458 if test "x$FOUND_CORRECT_VERSION" = x; then 22459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22462 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22463 BOOT_JDK_FOUND=no 22464 else 22465 # We're done! :-) 22466 BOOT_JDK_FOUND=yes 22467 22468 # Only process if variable expands to non-empty 22469 22470 if test "x$BOOT_JDK" != x; then 22471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22472 22473 # Input might be given as Windows format, start by converting to 22474 # unix format. 22475 path="$BOOT_JDK" 22476 new_path=`$CYGPATH -u "$path"` 22477 22478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22481 # "foo.exe" is OK but "foo" is an error. 22482 # 22483 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22484 # It is also a way to make sure we got the proper file name for the real test later on. 22485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22486 if test "x$test_shortpath" = x; then 22487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22489 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22490 fi 22491 22492 # Call helper function which possibly converts this using DOS-style short mode. 22493 # If so, the updated path is stored in $new_path. 22494 22495 input_path="$new_path" 22496 # Check if we need to convert this using DOS-style short mode. If the path 22497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22498 # take no chances and rewrite it. 22499 # Note: m4 eats our [], so we need to use [ and ] instead. 22500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22501 if test "x$has_forbidden_chars" != x; then 22502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22503 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22504 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22505 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22506 # Going to short mode and back again did indeed matter. Since short mode is 22507 # case insensitive, let's make it lowercase to improve readability. 22508 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22509 # Now convert it back to Unix-stile (cygpath) 22510 input_path=`$CYGPATH -u "$shortmode_path"` 22511 new_path="$input_path" 22512 fi 22513 fi 22514 22515 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22516 if test "x$test_cygdrive_prefix" = x; then 22517 # As a simple fix, exclude /usr/bin since it's not a real path. 22518 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22519 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22520 # a path prefixed by /cygdrive for fixpath to work. 22521 new_path="$CYGWIN_ROOT_PATH$input_path" 22522 fi 22523 fi 22524 22525 22526 if test "x$path" != "x$new_path"; then 22527 BOOT_JDK="$new_path" 22528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22529 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22530 fi 22531 22532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22533 22534 path="$BOOT_JDK" 22535 has_colon=`$ECHO $path | $GREP ^.:` 22536 new_path="$path" 22537 if test "x$has_colon" = x; then 22538 # Not in mixed or Windows style, start by that. 22539 new_path=`cmd //c echo $path` 22540 fi 22541 22542 22543 input_path="$new_path" 22544 # Check if we need to convert this using DOS-style short mode. If the path 22545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22546 # take no chances and rewrite it. 22547 # Note: m4 eats our [], so we need to use [ and ] instead. 22548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22549 if test "x$has_forbidden_chars" != x; then 22550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22551 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22552 fi 22553 22554 22555 windows_path="$new_path" 22556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22557 unix_path=`$CYGPATH -u "$windows_path"` 22558 new_path="$unix_path" 22559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22561 new_path="$unix_path" 22562 fi 22563 22564 if test "x$path" != "x$new_path"; then 22565 BOOT_JDK="$new_path" 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22567 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22568 fi 22569 22570 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22571 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22572 22573 else 22574 # We're on a unix platform. Hooray! :) 22575 path="$BOOT_JDK" 22576 has_space=`$ECHO "$path" | $GREP " "` 22577 if test "x$has_space" != x; then 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22579 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22580 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22581 fi 22582 22583 # Use eval to expand a potential ~ 22584 eval path="$path" 22585 if test ! -f "$path" && test ! -d "$path"; then 22586 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22587 fi 22588 22589 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22590 fi 22591 fi 22592 22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22594 $as_echo_n "checking for Boot JDK... " >&6; } 22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22596 $as_echo "$BOOT_JDK" >&6; } 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22598 $as_echo_n "checking Boot JDK version... " >&6; } 22599 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22601 $as_echo "$BOOT_JDK_VERSION" >&6; } 22602 fi # end check jdk version 22603 fi # end check javac 22604 fi # end check java 22605 fi # end check boot jdk found 22606 fi 22607 22608 22609 if test "x$BOOT_JDK_FOUND" = xno; then 22610 # Now execute the test 22611 22612 if test "x$PROGRAMW6432" != x; then 22613 VIRTUAL_DIR="$PROGRAMW6432/Java" 22614 22615 windows_path="$VIRTUAL_DIR" 22616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22617 unix_path=`$CYGPATH -u "$windows_path"` 22618 VIRTUAL_DIR="$unix_path" 22619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22620 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22621 VIRTUAL_DIR="$unix_path" 22622 fi 22623 22624 22625 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22626 BOOT_JDK_SUFFIX="" 22627 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22628 if test "x$ALL_JDKS_FOUND" != x; then 22629 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22630 22631 if test "x$BOOT_JDK_FOUND" = xno; then 22632 # Now execute the test 22633 22634 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22635 if test -d "$BOOT_JDK"; then 22636 BOOT_JDK_FOUND=maybe 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22638 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22639 fi 22640 22641 22642 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22643 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22644 # Do we have a bin/java? 22645 if test ! -x "$BOOT_JDK/bin/java"; then 22646 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22647 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22648 BOOT_JDK_FOUND=no 22649 else 22650 # Do we have a bin/javac? 22651 if test ! -x "$BOOT_JDK/bin/javac"; then 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22655 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22656 BOOT_JDK_FOUND=no 22657 else 22658 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22659 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22660 22661 # Extra M4 quote needed to protect [] in grep expression. 22662 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22663 if test "x$FOUND_CORRECT_VERSION" = x; then 22664 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22665 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22666 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22667 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22668 BOOT_JDK_FOUND=no 22669 else 22670 # We're done! :-) 22671 BOOT_JDK_FOUND=yes 22672 22673 # Only process if variable expands to non-empty 22674 22675 if test "x$BOOT_JDK" != x; then 22676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22677 22678 # Input might be given as Windows format, start by converting to 22679 # unix format. 22680 path="$BOOT_JDK" 22681 new_path=`$CYGPATH -u "$path"` 22682 22683 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22684 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22685 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22686 # "foo.exe" is OK but "foo" is an error. 22687 # 22688 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22689 # It is also a way to make sure we got the proper file name for the real test later on. 22690 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22691 if test "x$test_shortpath" = x; then 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22694 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22695 fi 22696 22697 # Call helper function which possibly converts this using DOS-style short mode. 22698 # If so, the updated path is stored in $new_path. 22699 22700 input_path="$new_path" 22701 # Check if we need to convert this using DOS-style short mode. If the path 22702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22703 # take no chances and rewrite it. 22704 # Note: m4 eats our [], so we need to use [ and ] instead. 22705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22706 if test "x$has_forbidden_chars" != x; then 22707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22708 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22709 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22710 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22711 # Going to short mode and back again did indeed matter. Since short mode is 22712 # case insensitive, let's make it lowercase to improve readability. 22713 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22714 # Now convert it back to Unix-stile (cygpath) 22715 input_path=`$CYGPATH -u "$shortmode_path"` 22716 new_path="$input_path" 22717 fi 22718 fi 22719 22720 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22721 if test "x$test_cygdrive_prefix" = x; then 22722 # As a simple fix, exclude /usr/bin since it's not a real path. 22723 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22724 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22725 # a path prefixed by /cygdrive for fixpath to work. 22726 new_path="$CYGWIN_ROOT_PATH$input_path" 22727 fi 22728 fi 22729 22730 22731 if test "x$path" != "x$new_path"; then 22732 BOOT_JDK="$new_path" 22733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22735 fi 22736 22737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22738 22739 path="$BOOT_JDK" 22740 has_colon=`$ECHO $path | $GREP ^.:` 22741 new_path="$path" 22742 if test "x$has_colon" = x; then 22743 # Not in mixed or Windows style, start by that. 22744 new_path=`cmd //c echo $path` 22745 fi 22746 22747 22748 input_path="$new_path" 22749 # Check if we need to convert this using DOS-style short mode. If the path 22750 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22751 # take no chances and rewrite it. 22752 # Note: m4 eats our [], so we need to use [ and ] instead. 22753 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22754 if test "x$has_forbidden_chars" != x; then 22755 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22756 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22757 fi 22758 22759 22760 windows_path="$new_path" 22761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22762 unix_path=`$CYGPATH -u "$windows_path"` 22763 new_path="$unix_path" 22764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22766 new_path="$unix_path" 22767 fi 22768 22769 if test "x$path" != "x$new_path"; then 22770 BOOT_JDK="$new_path" 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22773 fi 22774 22775 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22776 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22777 22778 else 22779 # We're on a unix platform. Hooray! :) 22780 path="$BOOT_JDK" 22781 has_space=`$ECHO "$path" | $GREP " "` 22782 if test "x$has_space" != x; then 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22785 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22786 fi 22787 22788 # Use eval to expand a potential ~ 22789 eval path="$path" 22790 if test ! -f "$path" && test ! -d "$path"; then 22791 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22792 fi 22793 22794 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22795 fi 22796 fi 22797 22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22799 $as_echo_n "checking for Boot JDK... " >&6; } 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22801 $as_echo "$BOOT_JDK" >&6; } 22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22803 $as_echo_n "checking Boot JDK version... " >&6; } 22804 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22806 $as_echo "$BOOT_JDK_VERSION" >&6; } 22807 fi # end check jdk version 22808 fi # end check javac 22809 fi # end check java 22810 fi # end check boot jdk found 22811 fi 22812 22813 done 22814 fi 22815 22816 fi 22817 22818 22819 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22820 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22821 # Do we have a bin/java? 22822 if test ! -x "$BOOT_JDK/bin/java"; then 22823 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22825 BOOT_JDK_FOUND=no 22826 else 22827 # Do we have a bin/javac? 22828 if test ! -x "$BOOT_JDK/bin/javac"; then 22829 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22831 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22832 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22833 BOOT_JDK_FOUND=no 22834 else 22835 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22836 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22837 22838 # Extra M4 quote needed to protect [] in grep expression. 22839 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22840 if test "x$FOUND_CORRECT_VERSION" = x; then 22841 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22843 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22844 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22845 BOOT_JDK_FOUND=no 22846 else 22847 # We're done! :-) 22848 BOOT_JDK_FOUND=yes 22849 22850 # Only process if variable expands to non-empty 22851 22852 if test "x$BOOT_JDK" != x; then 22853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22854 22855 # Input might be given as Windows format, start by converting to 22856 # unix format. 22857 path="$BOOT_JDK" 22858 new_path=`$CYGPATH -u "$path"` 22859 22860 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22861 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22862 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22863 # "foo.exe" is OK but "foo" is an error. 22864 # 22865 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22866 # It is also a way to make sure we got the proper file name for the real test later on. 22867 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22868 if test "x$test_shortpath" = x; then 22869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22870 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22871 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22872 fi 22873 22874 # Call helper function which possibly converts this using DOS-style short mode. 22875 # If so, the updated path is stored in $new_path. 22876 22877 input_path="$new_path" 22878 # Check if we need to convert this using DOS-style short mode. If the path 22879 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22880 # take no chances and rewrite it. 22881 # Note: m4 eats our [], so we need to use [ and ] instead. 22882 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22883 if test "x$has_forbidden_chars" != x; then 22884 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22885 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22886 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22887 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22888 # Going to short mode and back again did indeed matter. Since short mode is 22889 # case insensitive, let's make it lowercase to improve readability. 22890 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22891 # Now convert it back to Unix-stile (cygpath) 22892 input_path=`$CYGPATH -u "$shortmode_path"` 22893 new_path="$input_path" 22894 fi 22895 fi 22896 22897 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22898 if test "x$test_cygdrive_prefix" = x; then 22899 # As a simple fix, exclude /usr/bin since it's not a real path. 22900 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22901 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22902 # a path prefixed by /cygdrive for fixpath to work. 22903 new_path="$CYGWIN_ROOT_PATH$input_path" 22904 fi 22905 fi 22906 22907 22908 if test "x$path" != "x$new_path"; then 22909 BOOT_JDK="$new_path" 22910 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22911 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22912 fi 22913 22914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22915 22916 path="$BOOT_JDK" 22917 has_colon=`$ECHO $path | $GREP ^.:` 22918 new_path="$path" 22919 if test "x$has_colon" = x; then 22920 # Not in mixed or Windows style, start by that. 22921 new_path=`cmd //c echo $path` 22922 fi 22923 22924 22925 input_path="$new_path" 22926 # Check if we need to convert this using DOS-style short mode. If the path 22927 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22928 # take no chances and rewrite it. 22929 # Note: m4 eats our [], so we need to use [ and ] instead. 22930 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22931 if test "x$has_forbidden_chars" != x; then 22932 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22933 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22934 fi 22935 22936 22937 windows_path="$new_path" 22938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22939 unix_path=`$CYGPATH -u "$windows_path"` 22940 new_path="$unix_path" 22941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22943 new_path="$unix_path" 22944 fi 22945 22946 if test "x$path" != "x$new_path"; then 22947 BOOT_JDK="$new_path" 22948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22949 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22950 fi 22951 22952 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22953 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22954 22955 else 22956 # We're on a unix platform. Hooray! :) 22957 path="$BOOT_JDK" 22958 has_space=`$ECHO "$path" | $GREP " "` 22959 if test "x$has_space" != x; then 22960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22961 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22962 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22963 fi 22964 22965 # Use eval to expand a potential ~ 22966 eval path="$path" 22967 if test ! -f "$path" && test ! -d "$path"; then 22968 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22969 fi 22970 22971 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22972 fi 22973 fi 22974 22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22976 $as_echo_n "checking for Boot JDK... " >&6; } 22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22978 $as_echo "$BOOT_JDK" >&6; } 22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22980 $as_echo_n "checking Boot JDK version... " >&6; } 22981 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22983 $as_echo "$BOOT_JDK_VERSION" >&6; } 22984 fi # end check jdk version 22985 fi # end check javac 22986 fi # end check java 22987 fi # end check boot jdk found 22988 fi 22989 22990 22991 if test "x$BOOT_JDK_FOUND" = xno; then 22992 # Now execute the test 22993 22994 if test "x$PROGRAMFILES" != x; then 22995 VIRTUAL_DIR="$PROGRAMFILES/Java" 22996 22997 windows_path="$VIRTUAL_DIR" 22998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22999 unix_path=`$CYGPATH -u "$windows_path"` 23000 VIRTUAL_DIR="$unix_path" 23001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23003 VIRTUAL_DIR="$unix_path" 23004 fi 23005 23006 23007 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23008 BOOT_JDK_SUFFIX="" 23009 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23010 if test "x$ALL_JDKS_FOUND" != x; then 23011 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23012 23013 if test "x$BOOT_JDK_FOUND" = xno; then 23014 # Now execute the test 23015 23016 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23017 if test -d "$BOOT_JDK"; then 23018 BOOT_JDK_FOUND=maybe 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23020 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23021 fi 23022 23023 23024 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23025 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23026 # Do we have a bin/java? 23027 if test ! -x "$BOOT_JDK/bin/java"; then 23028 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23029 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23030 BOOT_JDK_FOUND=no 23031 else 23032 # Do we have a bin/javac? 23033 if test ! -x "$BOOT_JDK/bin/javac"; then 23034 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23036 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23037 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23038 BOOT_JDK_FOUND=no 23039 else 23040 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23041 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23042 23043 # Extra M4 quote needed to protect [] in grep expression. 23044 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23045 if test "x$FOUND_CORRECT_VERSION" = x; then 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23049 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23050 BOOT_JDK_FOUND=no 23051 else 23052 # We're done! :-) 23053 BOOT_JDK_FOUND=yes 23054 23055 # Only process if variable expands to non-empty 23056 23057 if test "x$BOOT_JDK" != x; then 23058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23059 23060 # Input might be given as Windows format, start by converting to 23061 # unix format. 23062 path="$BOOT_JDK" 23063 new_path=`$CYGPATH -u "$path"` 23064 23065 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23066 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23067 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23068 # "foo.exe" is OK but "foo" is an error. 23069 # 23070 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23071 # It is also a way to make sure we got the proper file name for the real test later on. 23072 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23073 if test "x$test_shortpath" = x; then 23074 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23075 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23076 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23077 fi 23078 23079 # Call helper function which possibly converts this using DOS-style short mode. 23080 # If so, the updated path is stored in $new_path. 23081 23082 input_path="$new_path" 23083 # Check if we need to convert this using DOS-style short mode. If the path 23084 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23085 # take no chances and rewrite it. 23086 # Note: m4 eats our [], so we need to use [ and ] instead. 23087 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23088 if test "x$has_forbidden_chars" != x; then 23089 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23090 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23091 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23092 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23093 # Going to short mode and back again did indeed matter. Since short mode is 23094 # case insensitive, let's make it lowercase to improve readability. 23095 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23096 # Now convert it back to Unix-stile (cygpath) 23097 input_path=`$CYGPATH -u "$shortmode_path"` 23098 new_path="$input_path" 23099 fi 23100 fi 23101 23102 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23103 if test "x$test_cygdrive_prefix" = x; then 23104 # As a simple fix, exclude /usr/bin since it's not a real path. 23105 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23106 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23107 # a path prefixed by /cygdrive for fixpath to work. 23108 new_path="$CYGWIN_ROOT_PATH$input_path" 23109 fi 23110 fi 23111 23112 23113 if test "x$path" != "x$new_path"; then 23114 BOOT_JDK="$new_path" 23115 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23116 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23117 fi 23118 23119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23120 23121 path="$BOOT_JDK" 23122 has_colon=`$ECHO $path | $GREP ^.:` 23123 new_path="$path" 23124 if test "x$has_colon" = x; then 23125 # Not in mixed or Windows style, start by that. 23126 new_path=`cmd //c echo $path` 23127 fi 23128 23129 23130 input_path="$new_path" 23131 # Check if we need to convert this using DOS-style short mode. If the path 23132 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23133 # take no chances and rewrite it. 23134 # Note: m4 eats our [], so we need to use [ and ] instead. 23135 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23136 if test "x$has_forbidden_chars" != x; then 23137 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23138 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23139 fi 23140 23141 23142 windows_path="$new_path" 23143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23144 unix_path=`$CYGPATH -u "$windows_path"` 23145 new_path="$unix_path" 23146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23148 new_path="$unix_path" 23149 fi 23150 23151 if test "x$path" != "x$new_path"; then 23152 BOOT_JDK="$new_path" 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23154 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23155 fi 23156 23157 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23158 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23159 23160 else 23161 # We're on a unix platform. Hooray! :) 23162 path="$BOOT_JDK" 23163 has_space=`$ECHO "$path" | $GREP " "` 23164 if test "x$has_space" != x; then 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23166 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23167 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23168 fi 23169 23170 # Use eval to expand a potential ~ 23171 eval path="$path" 23172 if test ! -f "$path" && test ! -d "$path"; then 23173 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23174 fi 23175 23176 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23177 fi 23178 fi 23179 23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23181 $as_echo_n "checking for Boot JDK... " >&6; } 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23183 $as_echo "$BOOT_JDK" >&6; } 23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23185 $as_echo_n "checking Boot JDK version... " >&6; } 23186 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23188 $as_echo "$BOOT_JDK_VERSION" >&6; } 23189 fi # end check jdk version 23190 fi # end check javac 23191 fi # end check java 23192 fi # end check boot jdk found 23193 fi 23194 23195 done 23196 fi 23197 23198 fi 23199 23200 23201 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23202 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23203 # Do we have a bin/java? 23204 if test ! -x "$BOOT_JDK/bin/java"; then 23205 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23206 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23207 BOOT_JDK_FOUND=no 23208 else 23209 # Do we have a bin/javac? 23210 if test ! -x "$BOOT_JDK/bin/javac"; then 23211 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23212 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23213 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23214 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23215 BOOT_JDK_FOUND=no 23216 else 23217 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23218 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23219 23220 # Extra M4 quote needed to protect [] in grep expression. 23221 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23222 if test "x$FOUND_CORRECT_VERSION" = x; then 23223 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23225 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23226 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23227 BOOT_JDK_FOUND=no 23228 else 23229 # We're done! :-) 23230 BOOT_JDK_FOUND=yes 23231 23232 # Only process if variable expands to non-empty 23233 23234 if test "x$BOOT_JDK" != x; then 23235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23236 23237 # Input might be given as Windows format, start by converting to 23238 # unix format. 23239 path="$BOOT_JDK" 23240 new_path=`$CYGPATH -u "$path"` 23241 23242 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23243 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23244 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23245 # "foo.exe" is OK but "foo" is an error. 23246 # 23247 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23248 # It is also a way to make sure we got the proper file name for the real test later on. 23249 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23250 if test "x$test_shortpath" = x; then 23251 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23252 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23253 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23254 fi 23255 23256 # Call helper function which possibly converts this using DOS-style short mode. 23257 # If so, the updated path is stored in $new_path. 23258 23259 input_path="$new_path" 23260 # Check if we need to convert this using DOS-style short mode. If the path 23261 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23262 # take no chances and rewrite it. 23263 # Note: m4 eats our [], so we need to use [ and ] instead. 23264 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23265 if test "x$has_forbidden_chars" != x; then 23266 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23267 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23268 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23269 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23270 # Going to short mode and back again did indeed matter. Since short mode is 23271 # case insensitive, let's make it lowercase to improve readability. 23272 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23273 # Now convert it back to Unix-stile (cygpath) 23274 input_path=`$CYGPATH -u "$shortmode_path"` 23275 new_path="$input_path" 23276 fi 23277 fi 23278 23279 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23280 if test "x$test_cygdrive_prefix" = x; then 23281 # As a simple fix, exclude /usr/bin since it's not a real path. 23282 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23283 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23284 # a path prefixed by /cygdrive for fixpath to work. 23285 new_path="$CYGWIN_ROOT_PATH$input_path" 23286 fi 23287 fi 23288 23289 23290 if test "x$path" != "x$new_path"; then 23291 BOOT_JDK="$new_path" 23292 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23293 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23294 fi 23295 23296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23297 23298 path="$BOOT_JDK" 23299 has_colon=`$ECHO $path | $GREP ^.:` 23300 new_path="$path" 23301 if test "x$has_colon" = x; then 23302 # Not in mixed or Windows style, start by that. 23303 new_path=`cmd //c echo $path` 23304 fi 23305 23306 23307 input_path="$new_path" 23308 # Check if we need to convert this using DOS-style short mode. If the path 23309 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23310 # take no chances and rewrite it. 23311 # Note: m4 eats our [], so we need to use [ and ] instead. 23312 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23313 if test "x$has_forbidden_chars" != x; then 23314 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23315 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23316 fi 23317 23318 23319 windows_path="$new_path" 23320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23321 unix_path=`$CYGPATH -u "$windows_path"` 23322 new_path="$unix_path" 23323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23324 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23325 new_path="$unix_path" 23326 fi 23327 23328 if test "x$path" != "x$new_path"; then 23329 BOOT_JDK="$new_path" 23330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23332 fi 23333 23334 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23335 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23336 23337 else 23338 # We're on a unix platform. Hooray! :) 23339 path="$BOOT_JDK" 23340 has_space=`$ECHO "$path" | $GREP " "` 23341 if test "x$has_space" != x; then 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23343 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23344 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23345 fi 23346 23347 # Use eval to expand a potential ~ 23348 eval path="$path" 23349 if test ! -f "$path" && test ! -d "$path"; then 23350 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23351 fi 23352 23353 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23354 fi 23355 fi 23356 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23358 $as_echo_n "checking for Boot JDK... " >&6; } 23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23360 $as_echo "$BOOT_JDK" >&6; } 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23362 $as_echo_n "checking Boot JDK version... " >&6; } 23363 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23365 $as_echo "$BOOT_JDK_VERSION" >&6; } 23366 fi # end check jdk version 23367 fi # end check javac 23368 fi # end check java 23369 fi # end check boot jdk found 23370 fi 23371 23372 23373 if test "x$BOOT_JDK_FOUND" = xno; then 23374 # Now execute the test 23375 23376 if test "x$ProgramFiles" != x; then 23377 VIRTUAL_DIR="$ProgramFiles/Java" 23378 23379 windows_path="$VIRTUAL_DIR" 23380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23381 unix_path=`$CYGPATH -u "$windows_path"` 23382 VIRTUAL_DIR="$unix_path" 23383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23385 VIRTUAL_DIR="$unix_path" 23386 fi 23387 23388 23389 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23390 BOOT_JDK_SUFFIX="" 23391 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23392 if test "x$ALL_JDKS_FOUND" != x; then 23393 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23394 23395 if test "x$BOOT_JDK_FOUND" = xno; then 23396 # Now execute the test 23397 23398 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23399 if test -d "$BOOT_JDK"; then 23400 BOOT_JDK_FOUND=maybe 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23402 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23403 fi 23404 23405 23406 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23407 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23408 # Do we have a bin/java? 23409 if test ! -x "$BOOT_JDK/bin/java"; then 23410 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23412 BOOT_JDK_FOUND=no 23413 else 23414 # Do we have a bin/javac? 23415 if test ! -x "$BOOT_JDK/bin/javac"; then 23416 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23418 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23419 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23420 BOOT_JDK_FOUND=no 23421 else 23422 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23423 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23424 23425 # Extra M4 quote needed to protect [] in grep expression. 23426 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23427 if test "x$FOUND_CORRECT_VERSION" = x; then 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23430 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23431 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23432 BOOT_JDK_FOUND=no 23433 else 23434 # We're done! :-) 23435 BOOT_JDK_FOUND=yes 23436 23437 # Only process if variable expands to non-empty 23438 23439 if test "x$BOOT_JDK" != x; then 23440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23441 23442 # Input might be given as Windows format, start by converting to 23443 # unix format. 23444 path="$BOOT_JDK" 23445 new_path=`$CYGPATH -u "$path"` 23446 23447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23450 # "foo.exe" is OK but "foo" is an error. 23451 # 23452 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23453 # It is also a way to make sure we got the proper file name for the real test later on. 23454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23455 if test "x$test_shortpath" = x; then 23456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23458 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23459 fi 23460 23461 # Call helper function which possibly converts this using DOS-style short mode. 23462 # If so, the updated path is stored in $new_path. 23463 23464 input_path="$new_path" 23465 # Check if we need to convert this using DOS-style short mode. If the path 23466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23467 # take no chances and rewrite it. 23468 # Note: m4 eats our [], so we need to use [ and ] instead. 23469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23470 if test "x$has_forbidden_chars" != x; then 23471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23472 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23473 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23474 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23475 # Going to short mode and back again did indeed matter. Since short mode is 23476 # case insensitive, let's make it lowercase to improve readability. 23477 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23478 # Now convert it back to Unix-stile (cygpath) 23479 input_path=`$CYGPATH -u "$shortmode_path"` 23480 new_path="$input_path" 23481 fi 23482 fi 23483 23484 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23485 if test "x$test_cygdrive_prefix" = x; then 23486 # As a simple fix, exclude /usr/bin since it's not a real path. 23487 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23488 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23489 # a path prefixed by /cygdrive for fixpath to work. 23490 new_path="$CYGWIN_ROOT_PATH$input_path" 23491 fi 23492 fi 23493 23494 23495 if test "x$path" != "x$new_path"; then 23496 BOOT_JDK="$new_path" 23497 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23498 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23499 fi 23500 23501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23502 23503 path="$BOOT_JDK" 23504 has_colon=`$ECHO $path | $GREP ^.:` 23505 new_path="$path" 23506 if test "x$has_colon" = x; then 23507 # Not in mixed or Windows style, start by that. 23508 new_path=`cmd //c echo $path` 23509 fi 23510 23511 23512 input_path="$new_path" 23513 # Check if we need to convert this using DOS-style short mode. If the path 23514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23515 # take no chances and rewrite it. 23516 # Note: m4 eats our [], so we need to use [ and ] instead. 23517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23518 if test "x$has_forbidden_chars" != x; then 23519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23521 fi 23522 23523 23524 windows_path="$new_path" 23525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23526 unix_path=`$CYGPATH -u "$windows_path"` 23527 new_path="$unix_path" 23528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23530 new_path="$unix_path" 23531 fi 23532 23533 if test "x$path" != "x$new_path"; then 23534 BOOT_JDK="$new_path" 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23537 fi 23538 23539 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23540 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23541 23542 else 23543 # We're on a unix platform. Hooray! :) 23544 path="$BOOT_JDK" 23545 has_space=`$ECHO "$path" | $GREP " "` 23546 if test "x$has_space" != x; then 23547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23548 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23549 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23550 fi 23551 23552 # Use eval to expand a potential ~ 23553 eval path="$path" 23554 if test ! -f "$path" && test ! -d "$path"; then 23555 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23556 fi 23557 23558 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23559 fi 23560 fi 23561 23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23563 $as_echo_n "checking for Boot JDK... " >&6; } 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23565 $as_echo "$BOOT_JDK" >&6; } 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23567 $as_echo_n "checking Boot JDK version... " >&6; } 23568 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23570 $as_echo "$BOOT_JDK_VERSION" >&6; } 23571 fi # end check jdk version 23572 fi # end check javac 23573 fi # end check java 23574 fi # end check boot jdk found 23575 fi 23576 23577 done 23578 fi 23579 23580 fi 23581 23582 23583 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23584 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23585 # Do we have a bin/java? 23586 if test ! -x "$BOOT_JDK/bin/java"; then 23587 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23588 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23589 BOOT_JDK_FOUND=no 23590 else 23591 # Do we have a bin/javac? 23592 if test ! -x "$BOOT_JDK/bin/javac"; then 23593 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23594 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23595 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23596 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23597 BOOT_JDK_FOUND=no 23598 else 23599 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23600 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23601 23602 # Extra M4 quote needed to protect [] in grep expression. 23603 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23604 if test "x$FOUND_CORRECT_VERSION" = x; then 23605 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23608 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23609 BOOT_JDK_FOUND=no 23610 else 23611 # We're done! :-) 23612 BOOT_JDK_FOUND=yes 23613 23614 # Only process if variable expands to non-empty 23615 23616 if test "x$BOOT_JDK" != x; then 23617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23618 23619 # Input might be given as Windows format, start by converting to 23620 # unix format. 23621 path="$BOOT_JDK" 23622 new_path=`$CYGPATH -u "$path"` 23623 23624 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23625 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23626 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23627 # "foo.exe" is OK but "foo" is an error. 23628 # 23629 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23630 # It is also a way to make sure we got the proper file name for the real test later on. 23631 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23632 if test "x$test_shortpath" = x; then 23633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23634 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23635 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23636 fi 23637 23638 # Call helper function which possibly converts this using DOS-style short mode. 23639 # If so, the updated path is stored in $new_path. 23640 23641 input_path="$new_path" 23642 # Check if we need to convert this using DOS-style short mode. If the path 23643 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23644 # take no chances and rewrite it. 23645 # Note: m4 eats our [], so we need to use [ and ] instead. 23646 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23647 if test "x$has_forbidden_chars" != x; then 23648 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23649 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23650 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23651 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23652 # Going to short mode and back again did indeed matter. Since short mode is 23653 # case insensitive, let's make it lowercase to improve readability. 23654 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23655 # Now convert it back to Unix-stile (cygpath) 23656 input_path=`$CYGPATH -u "$shortmode_path"` 23657 new_path="$input_path" 23658 fi 23659 fi 23660 23661 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23662 if test "x$test_cygdrive_prefix" = x; then 23663 # As a simple fix, exclude /usr/bin since it's not a real path. 23664 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23665 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23666 # a path prefixed by /cygdrive for fixpath to work. 23667 new_path="$CYGWIN_ROOT_PATH$input_path" 23668 fi 23669 fi 23670 23671 23672 if test "x$path" != "x$new_path"; then 23673 BOOT_JDK="$new_path" 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23675 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23676 fi 23677 23678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23679 23680 path="$BOOT_JDK" 23681 has_colon=`$ECHO $path | $GREP ^.:` 23682 new_path="$path" 23683 if test "x$has_colon" = x; then 23684 # Not in mixed or Windows style, start by that. 23685 new_path=`cmd //c echo $path` 23686 fi 23687 23688 23689 input_path="$new_path" 23690 # Check if we need to convert this using DOS-style short mode. If the path 23691 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23692 # take no chances and rewrite it. 23693 # Note: m4 eats our [], so we need to use [ and ] instead. 23694 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23695 if test "x$has_forbidden_chars" != x; then 23696 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23697 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23698 fi 23699 23700 23701 windows_path="$new_path" 23702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23703 unix_path=`$CYGPATH -u "$windows_path"` 23704 new_path="$unix_path" 23705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23707 new_path="$unix_path" 23708 fi 23709 23710 if test "x$path" != "x$new_path"; then 23711 BOOT_JDK="$new_path" 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23713 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23714 fi 23715 23716 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23717 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23718 23719 else 23720 # We're on a unix platform. Hooray! :) 23721 path="$BOOT_JDK" 23722 has_space=`$ECHO "$path" | $GREP " "` 23723 if test "x$has_space" != x; then 23724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23725 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23726 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23727 fi 23728 23729 # Use eval to expand a potential ~ 23730 eval path="$path" 23731 if test ! -f "$path" && test ! -d "$path"; then 23732 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23733 fi 23734 23735 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23736 fi 23737 fi 23738 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23740 $as_echo_n "checking for Boot JDK... " >&6; } 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23742 $as_echo "$BOOT_JDK" >&6; } 23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23744 $as_echo_n "checking Boot JDK version... " >&6; } 23745 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23747 $as_echo "$BOOT_JDK_VERSION" >&6; } 23748 fi # end check jdk version 23749 fi # end check javac 23750 fi # end check java 23751 fi # end check boot jdk found 23752 fi 23753 23754 23755 if test "x$BOOT_JDK_FOUND" = xno; then 23756 # Now execute the test 23757 23758 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23759 BOOT_JDK_SUFFIX="" 23760 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23761 if test "x$ALL_JDKS_FOUND" != x; then 23762 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23763 23764 if test "x$BOOT_JDK_FOUND" = xno; then 23765 # Now execute the test 23766 23767 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23768 if test -d "$BOOT_JDK"; then 23769 BOOT_JDK_FOUND=maybe 23770 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23771 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23772 fi 23773 23774 23775 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23776 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23777 # Do we have a bin/java? 23778 if test ! -x "$BOOT_JDK/bin/java"; then 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23780 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23781 BOOT_JDK_FOUND=no 23782 else 23783 # Do we have a bin/javac? 23784 if test ! -x "$BOOT_JDK/bin/javac"; then 23785 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23786 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23787 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23788 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23789 BOOT_JDK_FOUND=no 23790 else 23791 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23792 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23793 23794 # Extra M4 quote needed to protect [] in grep expression. 23795 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23796 if test "x$FOUND_CORRECT_VERSION" = x; then 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23800 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23801 BOOT_JDK_FOUND=no 23802 else 23803 # We're done! :-) 23804 BOOT_JDK_FOUND=yes 23805 23806 # Only process if variable expands to non-empty 23807 23808 if test "x$BOOT_JDK" != x; then 23809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23810 23811 # Input might be given as Windows format, start by converting to 23812 # unix format. 23813 path="$BOOT_JDK" 23814 new_path=`$CYGPATH -u "$path"` 23815 23816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23819 # "foo.exe" is OK but "foo" is an error. 23820 # 23821 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23822 # It is also a way to make sure we got the proper file name for the real test later on. 23823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23824 if test "x$test_shortpath" = x; then 23825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23826 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23827 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23828 fi 23829 23830 # Call helper function which possibly converts this using DOS-style short mode. 23831 # If so, the updated path is stored in $new_path. 23832 23833 input_path="$new_path" 23834 # Check if we need to convert this using DOS-style short mode. If the path 23835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23836 # take no chances and rewrite it. 23837 # Note: m4 eats our [], so we need to use [ and ] instead. 23838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23839 if test "x$has_forbidden_chars" != x; then 23840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23841 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23842 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23843 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23844 # Going to short mode and back again did indeed matter. Since short mode is 23845 # case insensitive, let's make it lowercase to improve readability. 23846 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23847 # Now convert it back to Unix-stile (cygpath) 23848 input_path=`$CYGPATH -u "$shortmode_path"` 23849 new_path="$input_path" 23850 fi 23851 fi 23852 23853 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23854 if test "x$test_cygdrive_prefix" = x; then 23855 # As a simple fix, exclude /usr/bin since it's not a real path. 23856 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23857 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23858 # a path prefixed by /cygdrive for fixpath to work. 23859 new_path="$CYGWIN_ROOT_PATH$input_path" 23860 fi 23861 fi 23862 23863 23864 if test "x$path" != "x$new_path"; then 23865 BOOT_JDK="$new_path" 23866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23867 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23868 fi 23869 23870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23871 23872 path="$BOOT_JDK" 23873 has_colon=`$ECHO $path | $GREP ^.:` 23874 new_path="$path" 23875 if test "x$has_colon" = x; then 23876 # Not in mixed or Windows style, start by that. 23877 new_path=`cmd //c echo $path` 23878 fi 23879 23880 23881 input_path="$new_path" 23882 # Check if we need to convert this using DOS-style short mode. If the path 23883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23884 # take no chances and rewrite it. 23885 # Note: m4 eats our [], so we need to use [ and ] instead. 23886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23887 if test "x$has_forbidden_chars" != x; then 23888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23889 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23890 fi 23891 23892 23893 windows_path="$new_path" 23894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23895 unix_path=`$CYGPATH -u "$windows_path"` 23896 new_path="$unix_path" 23897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23899 new_path="$unix_path" 23900 fi 23901 23902 if test "x$path" != "x$new_path"; then 23903 BOOT_JDK="$new_path" 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23905 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23906 fi 23907 23908 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23909 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23910 23911 else 23912 # We're on a unix platform. Hooray! :) 23913 path="$BOOT_JDK" 23914 has_space=`$ECHO "$path" | $GREP " "` 23915 if test "x$has_space" != x; then 23916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23917 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23918 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23919 fi 23920 23921 # Use eval to expand a potential ~ 23922 eval path="$path" 23923 if test ! -f "$path" && test ! -d "$path"; then 23924 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23925 fi 23926 23927 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23928 fi 23929 fi 23930 23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23932 $as_echo_n "checking for Boot JDK... " >&6; } 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23934 $as_echo "$BOOT_JDK" >&6; } 23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23936 $as_echo_n "checking Boot JDK version... " >&6; } 23937 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23939 $as_echo "$BOOT_JDK_VERSION" >&6; } 23940 fi # end check jdk version 23941 fi # end check javac 23942 fi # end check java 23943 fi # end check boot jdk found 23944 fi 23945 23946 done 23947 fi 23948 23949 23950 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23951 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23952 # Do we have a bin/java? 23953 if test ! -x "$BOOT_JDK/bin/java"; then 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23955 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23956 BOOT_JDK_FOUND=no 23957 else 23958 # Do we have a bin/javac? 23959 if test ! -x "$BOOT_JDK/bin/javac"; then 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23962 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23963 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23964 BOOT_JDK_FOUND=no 23965 else 23966 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23967 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23968 23969 # Extra M4 quote needed to protect [] in grep expression. 23970 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23971 if test "x$FOUND_CORRECT_VERSION" = x; then 23972 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23973 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23974 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23975 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23976 BOOT_JDK_FOUND=no 23977 else 23978 # We're done! :-) 23979 BOOT_JDK_FOUND=yes 23980 23981 # Only process if variable expands to non-empty 23982 23983 if test "x$BOOT_JDK" != x; then 23984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23985 23986 # Input might be given as Windows format, start by converting to 23987 # unix format. 23988 path="$BOOT_JDK" 23989 new_path=`$CYGPATH -u "$path"` 23990 23991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23994 # "foo.exe" is OK but "foo" is an error. 23995 # 23996 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23997 # It is also a way to make sure we got the proper file name for the real test later on. 23998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23999 if test "x$test_shortpath" = x; then 24000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24001 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24002 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24003 fi 24004 24005 # Call helper function which possibly converts this using DOS-style short mode. 24006 # If so, the updated path is stored in $new_path. 24007 24008 input_path="$new_path" 24009 # Check if we need to convert this using DOS-style short mode. If the path 24010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24011 # take no chances and rewrite it. 24012 # Note: m4 eats our [], so we need to use [ and ] instead. 24013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24014 if test "x$has_forbidden_chars" != x; then 24015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24016 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24017 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24018 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24019 # Going to short mode and back again did indeed matter. Since short mode is 24020 # case insensitive, let's make it lowercase to improve readability. 24021 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24022 # Now convert it back to Unix-stile (cygpath) 24023 input_path=`$CYGPATH -u "$shortmode_path"` 24024 new_path="$input_path" 24025 fi 24026 fi 24027 24028 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24029 if test "x$test_cygdrive_prefix" = x; then 24030 # As a simple fix, exclude /usr/bin since it's not a real path. 24031 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24032 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24033 # a path prefixed by /cygdrive for fixpath to work. 24034 new_path="$CYGWIN_ROOT_PATH$input_path" 24035 fi 24036 fi 24037 24038 24039 if test "x$path" != "x$new_path"; then 24040 BOOT_JDK="$new_path" 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24042 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24043 fi 24044 24045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24046 24047 path="$BOOT_JDK" 24048 has_colon=`$ECHO $path | $GREP ^.:` 24049 new_path="$path" 24050 if test "x$has_colon" = x; then 24051 # Not in mixed or Windows style, start by that. 24052 new_path=`cmd //c echo $path` 24053 fi 24054 24055 24056 input_path="$new_path" 24057 # Check if we need to convert this using DOS-style short mode. If the path 24058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24059 # take no chances and rewrite it. 24060 # Note: m4 eats our [], so we need to use [ and ] instead. 24061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24062 if test "x$has_forbidden_chars" != x; then 24063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24064 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24065 fi 24066 24067 24068 windows_path="$new_path" 24069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24070 unix_path=`$CYGPATH -u "$windows_path"` 24071 new_path="$unix_path" 24072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24074 new_path="$unix_path" 24075 fi 24076 24077 if test "x$path" != "x$new_path"; then 24078 BOOT_JDK="$new_path" 24079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24080 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24081 fi 24082 24083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24085 24086 else 24087 # We're on a unix platform. Hooray! :) 24088 path="$BOOT_JDK" 24089 has_space=`$ECHO "$path" | $GREP " "` 24090 if test "x$has_space" != x; then 24091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24092 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24093 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24094 fi 24095 24096 # Use eval to expand a potential ~ 24097 eval path="$path" 24098 if test ! -f "$path" && test ! -d "$path"; then 24099 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24100 fi 24101 24102 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24103 fi 24104 fi 24105 24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24107 $as_echo_n "checking for Boot JDK... " >&6; } 24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24109 $as_echo "$BOOT_JDK" >&6; } 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24111 $as_echo_n "checking Boot JDK version... " >&6; } 24112 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24114 $as_echo "$BOOT_JDK_VERSION" >&6; } 24115 fi # end check jdk version 24116 fi # end check javac 24117 fi # end check java 24118 fi # end check boot jdk found 24119 fi 24120 24121 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24122 24123 if test "x$BOOT_JDK_FOUND" = xno; then 24124 # Now execute the test 24125 24126 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24127 BOOT_JDK_SUFFIX="/Contents/Home" 24128 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24129 if test "x$ALL_JDKS_FOUND" != x; then 24130 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24131 24132 if test "x$BOOT_JDK_FOUND" = xno; then 24133 # Now execute the test 24134 24135 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24136 if test -d "$BOOT_JDK"; then 24137 BOOT_JDK_FOUND=maybe 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24139 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24140 fi 24141 24142 24143 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24144 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24145 # Do we have a bin/java? 24146 if test ! -x "$BOOT_JDK/bin/java"; then 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24149 BOOT_JDK_FOUND=no 24150 else 24151 # Do we have a bin/javac? 24152 if test ! -x "$BOOT_JDK/bin/javac"; then 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24155 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24156 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24157 BOOT_JDK_FOUND=no 24158 else 24159 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24160 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24161 24162 # Extra M4 quote needed to protect [] in grep expression. 24163 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24164 if test "x$FOUND_CORRECT_VERSION" = x; then 24165 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24166 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24167 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24168 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24169 BOOT_JDK_FOUND=no 24170 else 24171 # We're done! :-) 24172 BOOT_JDK_FOUND=yes 24173 24174 # Only process if variable expands to non-empty 24175 24176 if test "x$BOOT_JDK" != x; then 24177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24178 24179 # Input might be given as Windows format, start by converting to 24180 # unix format. 24181 path="$BOOT_JDK" 24182 new_path=`$CYGPATH -u "$path"` 24183 24184 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24185 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24186 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24187 # "foo.exe" is OK but "foo" is an error. 24188 # 24189 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24190 # It is also a way to make sure we got the proper file name for the real test later on. 24191 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24192 if test "x$test_shortpath" = x; then 24193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24194 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24195 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24196 fi 24197 24198 # Call helper function which possibly converts this using DOS-style short mode. 24199 # If so, the updated path is stored in $new_path. 24200 24201 input_path="$new_path" 24202 # Check if we need to convert this using DOS-style short mode. If the path 24203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24204 # take no chances and rewrite it. 24205 # Note: m4 eats our [], so we need to use [ and ] instead. 24206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24207 if test "x$has_forbidden_chars" != x; then 24208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24209 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24210 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24211 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24212 # Going to short mode and back again did indeed matter. Since short mode is 24213 # case insensitive, let's make it lowercase to improve readability. 24214 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24215 # Now convert it back to Unix-stile (cygpath) 24216 input_path=`$CYGPATH -u "$shortmode_path"` 24217 new_path="$input_path" 24218 fi 24219 fi 24220 24221 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24222 if test "x$test_cygdrive_prefix" = x; then 24223 # As a simple fix, exclude /usr/bin since it's not a real path. 24224 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24225 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24226 # a path prefixed by /cygdrive for fixpath to work. 24227 new_path="$CYGWIN_ROOT_PATH$input_path" 24228 fi 24229 fi 24230 24231 24232 if test "x$path" != "x$new_path"; then 24233 BOOT_JDK="$new_path" 24234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24235 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24236 fi 24237 24238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24239 24240 path="$BOOT_JDK" 24241 has_colon=`$ECHO $path | $GREP ^.:` 24242 new_path="$path" 24243 if test "x$has_colon" = x; then 24244 # Not in mixed or Windows style, start by that. 24245 new_path=`cmd //c echo $path` 24246 fi 24247 24248 24249 input_path="$new_path" 24250 # Check if we need to convert this using DOS-style short mode. If the path 24251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24252 # take no chances and rewrite it. 24253 # Note: m4 eats our [], so we need to use [ and ] instead. 24254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24255 if test "x$has_forbidden_chars" != x; then 24256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24257 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24258 fi 24259 24260 24261 windows_path="$new_path" 24262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24263 unix_path=`$CYGPATH -u "$windows_path"` 24264 new_path="$unix_path" 24265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24267 new_path="$unix_path" 24268 fi 24269 24270 if test "x$path" != "x$new_path"; then 24271 BOOT_JDK="$new_path" 24272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24273 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24274 fi 24275 24276 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24277 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24278 24279 else 24280 # We're on a unix platform. Hooray! :) 24281 path="$BOOT_JDK" 24282 has_space=`$ECHO "$path" | $GREP " "` 24283 if test "x$has_space" != x; then 24284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24285 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24286 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24287 fi 24288 24289 # Use eval to expand a potential ~ 24290 eval path="$path" 24291 if test ! -f "$path" && test ! -d "$path"; then 24292 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24293 fi 24294 24295 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24296 fi 24297 fi 24298 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24300 $as_echo_n "checking for Boot JDK... " >&6; } 24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24302 $as_echo "$BOOT_JDK" >&6; } 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24304 $as_echo_n "checking Boot JDK version... " >&6; } 24305 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24307 $as_echo "$BOOT_JDK_VERSION" >&6; } 24308 fi # end check jdk version 24309 fi # end check javac 24310 fi # end check java 24311 fi # end check boot jdk found 24312 fi 24313 24314 done 24315 fi 24316 24317 24318 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24319 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24320 # Do we have a bin/java? 24321 if test ! -x "$BOOT_JDK/bin/java"; then 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24324 BOOT_JDK_FOUND=no 24325 else 24326 # Do we have a bin/javac? 24327 if test ! -x "$BOOT_JDK/bin/javac"; then 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24329 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24330 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24331 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24332 BOOT_JDK_FOUND=no 24333 else 24334 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24335 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24336 24337 # Extra M4 quote needed to protect [] in grep expression. 24338 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24339 if test "x$FOUND_CORRECT_VERSION" = x; then 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24343 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24344 BOOT_JDK_FOUND=no 24345 else 24346 # We're done! :-) 24347 BOOT_JDK_FOUND=yes 24348 24349 # Only process if variable expands to non-empty 24350 24351 if test "x$BOOT_JDK" != x; then 24352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24353 24354 # Input might be given as Windows format, start by converting to 24355 # unix format. 24356 path="$BOOT_JDK" 24357 new_path=`$CYGPATH -u "$path"` 24358 24359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24362 # "foo.exe" is OK but "foo" is an error. 24363 # 24364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24365 # It is also a way to make sure we got the proper file name for the real test later on. 24366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24367 if test "x$test_shortpath" = x; then 24368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24370 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24371 fi 24372 24373 # Call helper function which possibly converts this using DOS-style short mode. 24374 # If so, the updated path is stored in $new_path. 24375 24376 input_path="$new_path" 24377 # Check if we need to convert this using DOS-style short mode. If the path 24378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24379 # take no chances and rewrite it. 24380 # Note: m4 eats our [], so we need to use [ and ] instead. 24381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24382 if test "x$has_forbidden_chars" != x; then 24383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24387 # Going to short mode and back again did indeed matter. Since short mode is 24388 # case insensitive, let's make it lowercase to improve readability. 24389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24390 # Now convert it back to Unix-stile (cygpath) 24391 input_path=`$CYGPATH -u "$shortmode_path"` 24392 new_path="$input_path" 24393 fi 24394 fi 24395 24396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24397 if test "x$test_cygdrive_prefix" = x; then 24398 # As a simple fix, exclude /usr/bin since it's not a real path. 24399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24401 # a path prefixed by /cygdrive for fixpath to work. 24402 new_path="$CYGWIN_ROOT_PATH$input_path" 24403 fi 24404 fi 24405 24406 24407 if test "x$path" != "x$new_path"; then 24408 BOOT_JDK="$new_path" 24409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24410 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24411 fi 24412 24413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24414 24415 path="$BOOT_JDK" 24416 has_colon=`$ECHO $path | $GREP ^.:` 24417 new_path="$path" 24418 if test "x$has_colon" = x; then 24419 # Not in mixed or Windows style, start by that. 24420 new_path=`cmd //c echo $path` 24421 fi 24422 24423 24424 input_path="$new_path" 24425 # Check if we need to convert this using DOS-style short mode. If the path 24426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24427 # take no chances and rewrite it. 24428 # Note: m4 eats our [], so we need to use [ and ] instead. 24429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24430 if test "x$has_forbidden_chars" != x; then 24431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24433 fi 24434 24435 24436 windows_path="$new_path" 24437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24438 unix_path=`$CYGPATH -u "$windows_path"` 24439 new_path="$unix_path" 24440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24442 new_path="$unix_path" 24443 fi 24444 24445 if test "x$path" != "x$new_path"; then 24446 BOOT_JDK="$new_path" 24447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24448 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24449 fi 24450 24451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24453 24454 else 24455 # We're on a unix platform. Hooray! :) 24456 path="$BOOT_JDK" 24457 has_space=`$ECHO "$path" | $GREP " "` 24458 if test "x$has_space" != x; then 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24461 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24462 fi 24463 24464 # Use eval to expand a potential ~ 24465 eval path="$path" 24466 if test ! -f "$path" && test ! -d "$path"; then 24467 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24468 fi 24469 24470 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24471 fi 24472 fi 24473 24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24475 $as_echo_n "checking for Boot JDK... " >&6; } 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24477 $as_echo "$BOOT_JDK" >&6; } 24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24479 $as_echo_n "checking Boot JDK version... " >&6; } 24480 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24482 $as_echo "$BOOT_JDK_VERSION" >&6; } 24483 fi # end check jdk version 24484 fi # end check javac 24485 fi # end check java 24486 fi # end check boot jdk found 24487 fi 24488 24489 24490 if test "x$BOOT_JDK_FOUND" = xno; then 24491 # Now execute the test 24492 24493 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24494 BOOT_JDK_SUFFIX="/Contents/Home" 24495 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24496 if test "x$ALL_JDKS_FOUND" != x; then 24497 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24498 24499 if test "x$BOOT_JDK_FOUND" = xno; then 24500 # Now execute the test 24501 24502 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24503 if test -d "$BOOT_JDK"; then 24504 BOOT_JDK_FOUND=maybe 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24506 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24507 fi 24508 24509 24510 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24511 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24512 # Do we have a bin/java? 24513 if test ! -x "$BOOT_JDK/bin/java"; then 24514 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24515 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24516 BOOT_JDK_FOUND=no 24517 else 24518 # Do we have a bin/javac? 24519 if test ! -x "$BOOT_JDK/bin/javac"; then 24520 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24522 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24523 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24524 BOOT_JDK_FOUND=no 24525 else 24526 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24527 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24528 24529 # Extra M4 quote needed to protect [] in grep expression. 24530 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24531 if test "x$FOUND_CORRECT_VERSION" = x; then 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24533 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24534 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24535 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24536 BOOT_JDK_FOUND=no 24537 else 24538 # We're done! :-) 24539 BOOT_JDK_FOUND=yes 24540 24541 # Only process if variable expands to non-empty 24542 24543 if test "x$BOOT_JDK" != x; then 24544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24545 24546 # Input might be given as Windows format, start by converting to 24547 # unix format. 24548 path="$BOOT_JDK" 24549 new_path=`$CYGPATH -u "$path"` 24550 24551 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24552 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24553 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24554 # "foo.exe" is OK but "foo" is an error. 24555 # 24556 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24557 # It is also a way to make sure we got the proper file name for the real test later on. 24558 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24559 if test "x$test_shortpath" = x; then 24560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24561 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24562 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24563 fi 24564 24565 # Call helper function which possibly converts this using DOS-style short mode. 24566 # If so, the updated path is stored in $new_path. 24567 24568 input_path="$new_path" 24569 # Check if we need to convert this using DOS-style short mode. If the path 24570 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24571 # take no chances and rewrite it. 24572 # Note: m4 eats our [], so we need to use [ and ] instead. 24573 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24574 if test "x$has_forbidden_chars" != x; then 24575 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24576 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24577 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24578 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24579 # Going to short mode and back again did indeed matter. Since short mode is 24580 # case insensitive, let's make it lowercase to improve readability. 24581 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24582 # Now convert it back to Unix-stile (cygpath) 24583 input_path=`$CYGPATH -u "$shortmode_path"` 24584 new_path="$input_path" 24585 fi 24586 fi 24587 24588 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24589 if test "x$test_cygdrive_prefix" = x; then 24590 # As a simple fix, exclude /usr/bin since it's not a real path. 24591 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24592 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24593 # a path prefixed by /cygdrive for fixpath to work. 24594 new_path="$CYGWIN_ROOT_PATH$input_path" 24595 fi 24596 fi 24597 24598 24599 if test "x$path" != "x$new_path"; then 24600 BOOT_JDK="$new_path" 24601 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24602 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24603 fi 24604 24605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24606 24607 path="$BOOT_JDK" 24608 has_colon=`$ECHO $path | $GREP ^.:` 24609 new_path="$path" 24610 if test "x$has_colon" = x; then 24611 # Not in mixed or Windows style, start by that. 24612 new_path=`cmd //c echo $path` 24613 fi 24614 24615 24616 input_path="$new_path" 24617 # Check if we need to convert this using DOS-style short mode. If the path 24618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24619 # take no chances and rewrite it. 24620 # Note: m4 eats our [], so we need to use [ and ] instead. 24621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24622 if test "x$has_forbidden_chars" != x; then 24623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24624 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24625 fi 24626 24627 24628 windows_path="$new_path" 24629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24630 unix_path=`$CYGPATH -u "$windows_path"` 24631 new_path="$unix_path" 24632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24634 new_path="$unix_path" 24635 fi 24636 24637 if test "x$path" != "x$new_path"; then 24638 BOOT_JDK="$new_path" 24639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24640 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24641 fi 24642 24643 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24644 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24645 24646 else 24647 # We're on a unix platform. Hooray! :) 24648 path="$BOOT_JDK" 24649 has_space=`$ECHO "$path" | $GREP " "` 24650 if test "x$has_space" != x; then 24651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24652 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24653 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24654 fi 24655 24656 # Use eval to expand a potential ~ 24657 eval path="$path" 24658 if test ! -f "$path" && test ! -d "$path"; then 24659 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24660 fi 24661 24662 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24663 fi 24664 fi 24665 24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24667 $as_echo_n "checking for Boot JDK... " >&6; } 24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24669 $as_echo "$BOOT_JDK" >&6; } 24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24671 $as_echo_n "checking Boot JDK version... " >&6; } 24672 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24674 $as_echo "$BOOT_JDK_VERSION" >&6; } 24675 fi # end check jdk version 24676 fi # end check javac 24677 fi # end check java 24678 fi # end check boot jdk found 24679 fi 24680 24681 done 24682 fi 24683 24684 24685 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24686 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24687 # Do we have a bin/java? 24688 if test ! -x "$BOOT_JDK/bin/java"; then 24689 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24690 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24691 BOOT_JDK_FOUND=no 24692 else 24693 # Do we have a bin/javac? 24694 if test ! -x "$BOOT_JDK/bin/javac"; then 24695 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24696 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24697 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24698 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24699 BOOT_JDK_FOUND=no 24700 else 24701 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24702 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24703 24704 # Extra M4 quote needed to protect [] in grep expression. 24705 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24706 if test "x$FOUND_CORRECT_VERSION" = x; then 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24708 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24709 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24710 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24711 BOOT_JDK_FOUND=no 24712 else 24713 # We're done! :-) 24714 BOOT_JDK_FOUND=yes 24715 24716 # Only process if variable expands to non-empty 24717 24718 if test "x$BOOT_JDK" != x; then 24719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24720 24721 # Input might be given as Windows format, start by converting to 24722 # unix format. 24723 path="$BOOT_JDK" 24724 new_path=`$CYGPATH -u "$path"` 24725 24726 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24727 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24728 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24729 # "foo.exe" is OK but "foo" is an error. 24730 # 24731 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24732 # It is also a way to make sure we got the proper file name for the real test later on. 24733 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24734 if test "x$test_shortpath" = x; then 24735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24736 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24737 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24738 fi 24739 24740 # Call helper function which possibly converts this using DOS-style short mode. 24741 # If so, the updated path is stored in $new_path. 24742 24743 input_path="$new_path" 24744 # Check if we need to convert this using DOS-style short mode. If the path 24745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24746 # take no chances and rewrite it. 24747 # Note: m4 eats our [], so we need to use [ and ] instead. 24748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24749 if test "x$has_forbidden_chars" != x; then 24750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24751 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24752 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24753 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24754 # Going to short mode and back again did indeed matter. Since short mode is 24755 # case insensitive, let's make it lowercase to improve readability. 24756 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24757 # Now convert it back to Unix-stile (cygpath) 24758 input_path=`$CYGPATH -u "$shortmode_path"` 24759 new_path="$input_path" 24760 fi 24761 fi 24762 24763 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24764 if test "x$test_cygdrive_prefix" = x; then 24765 # As a simple fix, exclude /usr/bin since it's not a real path. 24766 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24767 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24768 # a path prefixed by /cygdrive for fixpath to work. 24769 new_path="$CYGWIN_ROOT_PATH$input_path" 24770 fi 24771 fi 24772 24773 24774 if test "x$path" != "x$new_path"; then 24775 BOOT_JDK="$new_path" 24776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24777 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24778 fi 24779 24780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24781 24782 path="$BOOT_JDK" 24783 has_colon=`$ECHO $path | $GREP ^.:` 24784 new_path="$path" 24785 if test "x$has_colon" = x; then 24786 # Not in mixed or Windows style, start by that. 24787 new_path=`cmd //c echo $path` 24788 fi 24789 24790 24791 input_path="$new_path" 24792 # Check if we need to convert this using DOS-style short mode. If the path 24793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24794 # take no chances and rewrite it. 24795 # Note: m4 eats our [], so we need to use [ and ] instead. 24796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24797 if test "x$has_forbidden_chars" != x; then 24798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24799 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24800 fi 24801 24802 24803 windows_path="$new_path" 24804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24805 unix_path=`$CYGPATH -u "$windows_path"` 24806 new_path="$unix_path" 24807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24809 new_path="$unix_path" 24810 fi 24811 24812 if test "x$path" != "x$new_path"; then 24813 BOOT_JDK="$new_path" 24814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24815 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24816 fi 24817 24818 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24819 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24820 24821 else 24822 # We're on a unix platform. Hooray! :) 24823 path="$BOOT_JDK" 24824 has_space=`$ECHO "$path" | $GREP " "` 24825 if test "x$has_space" != x; then 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24827 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24828 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24829 fi 24830 24831 # Use eval to expand a potential ~ 24832 eval path="$path" 24833 if test ! -f "$path" && test ! -d "$path"; then 24834 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24835 fi 24836 24837 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24838 fi 24839 fi 24840 24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24842 $as_echo_n "checking for Boot JDK... " >&6; } 24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24844 $as_echo "$BOOT_JDK" >&6; } 24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24846 $as_echo_n "checking Boot JDK version... " >&6; } 24847 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24849 $as_echo "$BOOT_JDK_VERSION" >&6; } 24850 fi # end check jdk version 24851 fi # end check javac 24852 fi # end check java 24853 fi # end check boot jdk found 24854 fi 24855 24856 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24857 24858 if test "x$BOOT_JDK_FOUND" = xno; then 24859 # Now execute the test 24860 24861 BOOT_JDK_PREFIX="/usr/lib/jvm" 24862 BOOT_JDK_SUFFIX="" 24863 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24864 if test "x$ALL_JDKS_FOUND" != x; then 24865 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24866 24867 if test "x$BOOT_JDK_FOUND" = xno; then 24868 # Now execute the test 24869 24870 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24871 if test -d "$BOOT_JDK"; then 24872 BOOT_JDK_FOUND=maybe 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24874 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24875 fi 24876 24877 24878 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24879 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24880 # Do we have a bin/java? 24881 if test ! -x "$BOOT_JDK/bin/java"; then 24882 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24883 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24884 BOOT_JDK_FOUND=no 24885 else 24886 # Do we have a bin/javac? 24887 if test ! -x "$BOOT_JDK/bin/javac"; then 24888 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24890 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24891 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24892 BOOT_JDK_FOUND=no 24893 else 24894 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24895 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24896 24897 # Extra M4 quote needed to protect [] in grep expression. 24898 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24899 if test "x$FOUND_CORRECT_VERSION" = x; then 24900 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24901 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24902 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24903 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24904 BOOT_JDK_FOUND=no 24905 else 24906 # We're done! :-) 24907 BOOT_JDK_FOUND=yes 24908 24909 # Only process if variable expands to non-empty 24910 24911 if test "x$BOOT_JDK" != x; then 24912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24913 24914 # Input might be given as Windows format, start by converting to 24915 # unix format. 24916 path="$BOOT_JDK" 24917 new_path=`$CYGPATH -u "$path"` 24918 24919 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24920 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24921 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24922 # "foo.exe" is OK but "foo" is an error. 24923 # 24924 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24925 # It is also a way to make sure we got the proper file name for the real test later on. 24926 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24927 if test "x$test_shortpath" = x; then 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24929 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24930 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24931 fi 24932 24933 # Call helper function which possibly converts this using DOS-style short mode. 24934 # If so, the updated path is stored in $new_path. 24935 24936 input_path="$new_path" 24937 # Check if we need to convert this using DOS-style short mode. If the path 24938 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24939 # take no chances and rewrite it. 24940 # Note: m4 eats our [], so we need to use [ and ] instead. 24941 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24942 if test "x$has_forbidden_chars" != x; then 24943 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24944 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24945 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24946 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24947 # Going to short mode and back again did indeed matter. Since short mode is 24948 # case insensitive, let's make it lowercase to improve readability. 24949 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24950 # Now convert it back to Unix-stile (cygpath) 24951 input_path=`$CYGPATH -u "$shortmode_path"` 24952 new_path="$input_path" 24953 fi 24954 fi 24955 24956 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24957 if test "x$test_cygdrive_prefix" = x; then 24958 # As a simple fix, exclude /usr/bin since it's not a real path. 24959 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24960 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24961 # a path prefixed by /cygdrive for fixpath to work. 24962 new_path="$CYGWIN_ROOT_PATH$input_path" 24963 fi 24964 fi 24965 24966 24967 if test "x$path" != "x$new_path"; then 24968 BOOT_JDK="$new_path" 24969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24970 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24971 fi 24972 24973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24974 24975 path="$BOOT_JDK" 24976 has_colon=`$ECHO $path | $GREP ^.:` 24977 new_path="$path" 24978 if test "x$has_colon" = x; then 24979 # Not in mixed or Windows style, start by that. 24980 new_path=`cmd //c echo $path` 24981 fi 24982 24983 24984 input_path="$new_path" 24985 # Check if we need to convert this using DOS-style short mode. If the path 24986 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24987 # take no chances and rewrite it. 24988 # Note: m4 eats our [], so we need to use [ and ] instead. 24989 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24990 if test "x$has_forbidden_chars" != x; then 24991 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24992 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24993 fi 24994 24995 24996 windows_path="$new_path" 24997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24998 unix_path=`$CYGPATH -u "$windows_path"` 24999 new_path="$unix_path" 25000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25002 new_path="$unix_path" 25003 fi 25004 25005 if test "x$path" != "x$new_path"; then 25006 BOOT_JDK="$new_path" 25007 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25008 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25009 fi 25010 25011 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25012 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25013 25014 else 25015 # We're on a unix platform. Hooray! :) 25016 path="$BOOT_JDK" 25017 has_space=`$ECHO "$path" | $GREP " "` 25018 if test "x$has_space" != x; then 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25020 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25021 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25022 fi 25023 25024 # Use eval to expand a potential ~ 25025 eval path="$path" 25026 if test ! -f "$path" && test ! -d "$path"; then 25027 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25028 fi 25029 25030 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25031 fi 25032 fi 25033 25034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25035 $as_echo_n "checking for Boot JDK... " >&6; } 25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25037 $as_echo "$BOOT_JDK" >&6; } 25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25039 $as_echo_n "checking Boot JDK version... " >&6; } 25040 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25042 $as_echo "$BOOT_JDK_VERSION" >&6; } 25043 fi # end check jdk version 25044 fi # end check javac 25045 fi # end check java 25046 fi # end check boot jdk found 25047 fi 25048 25049 done 25050 fi 25051 25052 25053 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25054 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25055 # Do we have a bin/java? 25056 if test ! -x "$BOOT_JDK/bin/java"; then 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25058 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25059 BOOT_JDK_FOUND=no 25060 else 25061 # Do we have a bin/javac? 25062 if test ! -x "$BOOT_JDK/bin/javac"; then 25063 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25064 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25065 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25066 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25067 BOOT_JDK_FOUND=no 25068 else 25069 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25070 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25071 25072 # Extra M4 quote needed to protect [] in grep expression. 25073 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25074 if test "x$FOUND_CORRECT_VERSION" = x; then 25075 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25077 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25078 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25079 BOOT_JDK_FOUND=no 25080 else 25081 # We're done! :-) 25082 BOOT_JDK_FOUND=yes 25083 25084 # Only process if variable expands to non-empty 25085 25086 if test "x$BOOT_JDK" != x; then 25087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25088 25089 # Input might be given as Windows format, start by converting to 25090 # unix format. 25091 path="$BOOT_JDK" 25092 new_path=`$CYGPATH -u "$path"` 25093 25094 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25095 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25096 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25097 # "foo.exe" is OK but "foo" is an error. 25098 # 25099 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25100 # It is also a way to make sure we got the proper file name for the real test later on. 25101 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25102 if test "x$test_shortpath" = x; then 25103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25104 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25105 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25106 fi 25107 25108 # Call helper function which possibly converts this using DOS-style short mode. 25109 # If so, the updated path is stored in $new_path. 25110 25111 input_path="$new_path" 25112 # Check if we need to convert this using DOS-style short mode. If the path 25113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25114 # take no chances and rewrite it. 25115 # Note: m4 eats our [], so we need to use [ and ] instead. 25116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25117 if test "x$has_forbidden_chars" != x; then 25118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25119 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25120 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25121 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25122 # Going to short mode and back again did indeed matter. Since short mode is 25123 # case insensitive, let's make it lowercase to improve readability. 25124 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25125 # Now convert it back to Unix-stile (cygpath) 25126 input_path=`$CYGPATH -u "$shortmode_path"` 25127 new_path="$input_path" 25128 fi 25129 fi 25130 25131 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25132 if test "x$test_cygdrive_prefix" = x; then 25133 # As a simple fix, exclude /usr/bin since it's not a real path. 25134 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25135 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25136 # a path prefixed by /cygdrive for fixpath to work. 25137 new_path="$CYGWIN_ROOT_PATH$input_path" 25138 fi 25139 fi 25140 25141 25142 if test "x$path" != "x$new_path"; then 25143 BOOT_JDK="$new_path" 25144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25145 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25146 fi 25147 25148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25149 25150 path="$BOOT_JDK" 25151 has_colon=`$ECHO $path | $GREP ^.:` 25152 new_path="$path" 25153 if test "x$has_colon" = x; then 25154 # Not in mixed or Windows style, start by that. 25155 new_path=`cmd //c echo $path` 25156 fi 25157 25158 25159 input_path="$new_path" 25160 # Check if we need to convert this using DOS-style short mode. If the path 25161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25162 # take no chances and rewrite it. 25163 # Note: m4 eats our [], so we need to use [ and ] instead. 25164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25165 if test "x$has_forbidden_chars" != x; then 25166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25167 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25168 fi 25169 25170 25171 windows_path="$new_path" 25172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25173 unix_path=`$CYGPATH -u "$windows_path"` 25174 new_path="$unix_path" 25175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25176 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25177 new_path="$unix_path" 25178 fi 25179 25180 if test "x$path" != "x$new_path"; then 25181 BOOT_JDK="$new_path" 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25183 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25184 fi 25185 25186 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25187 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25188 25189 else 25190 # We're on a unix platform. Hooray! :) 25191 path="$BOOT_JDK" 25192 has_space=`$ECHO "$path" | $GREP " "` 25193 if test "x$has_space" != x; then 25194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25195 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25196 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25197 fi 25198 25199 # Use eval to expand a potential ~ 25200 eval path="$path" 25201 if test ! -f "$path" && test ! -d "$path"; then 25202 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25203 fi 25204 25205 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25206 fi 25207 fi 25208 25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25210 $as_echo_n "checking for Boot JDK... " >&6; } 25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25212 $as_echo "$BOOT_JDK" >&6; } 25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25214 $as_echo_n "checking Boot JDK version... " >&6; } 25215 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25217 $as_echo "$BOOT_JDK_VERSION" >&6; } 25218 fi # end check jdk version 25219 fi # end check javac 25220 fi # end check java 25221 fi # end check boot jdk found 25222 fi 25223 25224 fi 25225 25226 25227 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25228 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25229 # Do we have a bin/java? 25230 if test ! -x "$BOOT_JDK/bin/java"; then 25231 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25233 BOOT_JDK_FOUND=no 25234 else 25235 # Do we have a bin/javac? 25236 if test ! -x "$BOOT_JDK/bin/javac"; then 25237 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25240 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25241 BOOT_JDK_FOUND=no 25242 else 25243 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25244 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25245 25246 # Extra M4 quote needed to protect [] in grep expression. 25247 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25248 if test "x$FOUND_CORRECT_VERSION" = x; then 25249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25251 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25252 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25253 BOOT_JDK_FOUND=no 25254 else 25255 # We're done! :-) 25256 BOOT_JDK_FOUND=yes 25257 25258 # Only process if variable expands to non-empty 25259 25260 if test "x$BOOT_JDK" != x; then 25261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25262 25263 # Input might be given as Windows format, start by converting to 25264 # unix format. 25265 path="$BOOT_JDK" 25266 new_path=`$CYGPATH -u "$path"` 25267 25268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25271 # "foo.exe" is OK but "foo" is an error. 25272 # 25273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25274 # It is also a way to make sure we got the proper file name for the real test later on. 25275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25276 if test "x$test_shortpath" = x; then 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25278 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25279 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25280 fi 25281 25282 # Call helper function which possibly converts this using DOS-style short mode. 25283 # If so, the updated path is stored in $new_path. 25284 25285 input_path="$new_path" 25286 # Check if we need to convert this using DOS-style short mode. If the path 25287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25288 # take no chances and rewrite it. 25289 # Note: m4 eats our [], so we need to use [ and ] instead. 25290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25291 if test "x$has_forbidden_chars" != x; then 25292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25296 # Going to short mode and back again did indeed matter. Since short mode is 25297 # case insensitive, let's make it lowercase to improve readability. 25298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25299 # Now convert it back to Unix-stile (cygpath) 25300 input_path=`$CYGPATH -u "$shortmode_path"` 25301 new_path="$input_path" 25302 fi 25303 fi 25304 25305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25306 if test "x$test_cygdrive_prefix" = x; then 25307 # As a simple fix, exclude /usr/bin since it's not a real path. 25308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25310 # a path prefixed by /cygdrive for fixpath to work. 25311 new_path="$CYGWIN_ROOT_PATH$input_path" 25312 fi 25313 fi 25314 25315 25316 if test "x$path" != "x$new_path"; then 25317 BOOT_JDK="$new_path" 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25319 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25320 fi 25321 25322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25323 25324 path="$BOOT_JDK" 25325 has_colon=`$ECHO $path | $GREP ^.:` 25326 new_path="$path" 25327 if test "x$has_colon" = x; then 25328 # Not in mixed or Windows style, start by that. 25329 new_path=`cmd //c echo $path` 25330 fi 25331 25332 25333 input_path="$new_path" 25334 # Check if we need to convert this using DOS-style short mode. If the path 25335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25336 # take no chances and rewrite it. 25337 # Note: m4 eats our [], so we need to use [ and ] instead. 25338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25339 if test "x$has_forbidden_chars" != x; then 25340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25342 fi 25343 25344 25345 windows_path="$new_path" 25346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25347 unix_path=`$CYGPATH -u "$windows_path"` 25348 new_path="$unix_path" 25349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25351 new_path="$unix_path" 25352 fi 25353 25354 if test "x$path" != "x$new_path"; then 25355 BOOT_JDK="$new_path" 25356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25357 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25358 fi 25359 25360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25362 25363 else 25364 # We're on a unix platform. Hooray! :) 25365 path="$BOOT_JDK" 25366 has_space=`$ECHO "$path" | $GREP " "` 25367 if test "x$has_space" != x; then 25368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25371 fi 25372 25373 # Use eval to expand a potential ~ 25374 eval path="$path" 25375 if test ! -f "$path" && test ! -d "$path"; then 25376 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25377 fi 25378 25379 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25380 fi 25381 fi 25382 25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25384 $as_echo_n "checking for Boot JDK... " >&6; } 25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25386 $as_echo "$BOOT_JDK" >&6; } 25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25388 $as_echo_n "checking Boot JDK version... " >&6; } 25389 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25391 $as_echo "$BOOT_JDK_VERSION" >&6; } 25392 fi # end check jdk version 25393 fi # end check javac 25394 fi # end check java 25395 fi # end check boot jdk found 25396 fi 25397 25398 25399 # If we haven't found anything yet, we've truly lost. Give up. 25400 if test "x$BOOT_JDK_FOUND" = xno; then 25401 25402 # Print a helpful message on how to acquire the necessary build dependency. 25403 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25404 MISSING_DEPENDENCY=openjdk 25405 25406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25407 cygwin_help $MISSING_DEPENDENCY 25408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25409 msys_help $MISSING_DEPENDENCY 25410 else 25411 PKGHANDLER_COMMAND= 25412 25413 case $PKGHANDLER in 25414 apt-get) 25415 apt_help $MISSING_DEPENDENCY ;; 25416 yum) 25417 yum_help $MISSING_DEPENDENCY ;; 25418 port) 25419 port_help $MISSING_DEPENDENCY ;; 25420 pkgutil) 25421 pkgutil_help $MISSING_DEPENDENCY ;; 25422 pkgadd) 25423 pkgadd_help $MISSING_DEPENDENCY ;; 25424 esac 25425 25426 if test "x$PKGHANDLER_COMMAND" != x; then 25427 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25428 fi 25429 fi 25430 25431 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25432 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25433 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25434 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25435 as_fn_error $? "Cannot continue" "$LINENO" 5 25436 fi 25437 25438 25439 25440 # Setup tools from the Boot JDK. 25441 25442 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25443 25444 # Publish this variable in the help. 25445 25446 25447 if test "x$JAVA" = x; then 25448 # The variable is not set by user, try to locate tool using the code snippet 25449 25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25451 $as_echo_n "checking for java in Boot JDK... " >&6; } 25452 JAVA=$BOOT_JDK/bin/java 25453 if test ! -x $JAVA; then 25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25455 $as_echo "not found" >&6; } 25456 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25457 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25458 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25459 fi 25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25461 $as_echo "ok" >&6; } 25462 25463 25464 else 25465 # The variable is set, but is it from the command line or the environment? 25466 25467 # Try to remove the string !JAVA! from our list. 25468 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25469 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25470 # If it failed, the variable was not from the command line. Ignore it, 25471 # but warn the user (except for BASH, which is always set by the calling BASH). 25472 if test "xJAVA" != xBASH; then 25473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25474 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25475 fi 25476 # Try to locate tool using the code snippet 25477 25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25479 $as_echo_n "checking for java in Boot JDK... " >&6; } 25480 JAVA=$BOOT_JDK/bin/java 25481 if test ! -x $JAVA; then 25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25483 $as_echo "not found" >&6; } 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25485 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25486 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25487 fi 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25489 $as_echo "ok" >&6; } 25490 25491 25492 else 25493 # If it succeeded, then it was overridden by the user. We will use it 25494 # for the tool. 25495 25496 # First remove it from the list of overridden variables, so we can test 25497 # for unknown variables in the end. 25498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25499 25500 # Check if the provided tool contains a complete path. 25501 tool_specified="$JAVA" 25502 tool_basename="${tool_specified##*/}" 25503 if test "x$tool_basename" = "x$tool_specified"; then 25504 # A command without a complete path is provided, search $PATH. 25505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25506 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25507 # Extract the first word of "$tool_basename", so it can be a program name with args. 25508 set dummy $tool_basename; ac_word=$2 25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25510 $as_echo_n "checking for $ac_word... " >&6; } 25511 if ${ac_cv_path_JAVA+:} false; then : 25512 $as_echo_n "(cached) " >&6 25513 else 25514 case $JAVA in 25515 [\\/]* | ?:[\\/]*) 25516 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25517 ;; 25518 *) 25519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25520 for as_dir in $PATH 25521 do 25522 IFS=$as_save_IFS 25523 test -z "$as_dir" && as_dir=. 25524 for ac_exec_ext in '' $ac_executable_extensions; do 25525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25526 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25528 break 2 25529 fi 25530 done 25531 done 25532 IFS=$as_save_IFS 25533 25534 ;; 25535 esac 25536 fi 25537 JAVA=$ac_cv_path_JAVA 25538 if test -n "$JAVA"; then 25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25540 $as_echo "$JAVA" >&6; } 25541 else 25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25543 $as_echo "no" >&6; } 25544 fi 25545 25546 25547 if test "x$JAVA" = x; then 25548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25549 fi 25550 else 25551 # Otherwise we believe it is a complete path. Use it as it is. 25552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25553 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25555 $as_echo_n "checking for JAVA... " >&6; } 25556 if test ! -x "$tool_specified"; then 25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25558 $as_echo "not found" >&6; } 25559 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25560 fi 25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25562 $as_echo "$tool_specified" >&6; } 25563 fi 25564 fi 25565 fi 25566 25567 25568 25569 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25570 25571 # Publish this variable in the help. 25572 25573 25574 if test "x$JAVAC" = x; then 25575 # The variable is not set by user, try to locate tool using the code snippet 25576 25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25578 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25579 JAVAC=$BOOT_JDK/bin/javac 25580 if test ! -x $JAVAC; then 25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25582 $as_echo "not found" >&6; } 25583 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25584 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25585 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25586 fi 25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25588 $as_echo "ok" >&6; } 25589 25590 25591 else 25592 # The variable is set, but is it from the command line or the environment? 25593 25594 # Try to remove the string !JAVAC! from our list. 25595 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25596 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25597 # If it failed, the variable was not from the command line. Ignore it, 25598 # but warn the user (except for BASH, which is always set by the calling BASH). 25599 if test "xJAVAC" != xBASH; then 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25601 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25602 fi 25603 # Try to locate tool using the code snippet 25604 25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25606 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25607 JAVAC=$BOOT_JDK/bin/javac 25608 if test ! -x $JAVAC; then 25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25610 $as_echo "not found" >&6; } 25611 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25612 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25613 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25614 fi 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25616 $as_echo "ok" >&6; } 25617 25618 25619 else 25620 # If it succeeded, then it was overridden by the user. We will use it 25621 # for the tool. 25622 25623 # First remove it from the list of overridden variables, so we can test 25624 # for unknown variables in the end. 25625 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25626 25627 # Check if the provided tool contains a complete path. 25628 tool_specified="$JAVAC" 25629 tool_basename="${tool_specified##*/}" 25630 if test "x$tool_basename" = "x$tool_specified"; then 25631 # A command without a complete path is provided, search $PATH. 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25633 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25634 # Extract the first word of "$tool_basename", so it can be a program name with args. 25635 set dummy $tool_basename; ac_word=$2 25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25637 $as_echo_n "checking for $ac_word... " >&6; } 25638 if ${ac_cv_path_JAVAC+:} false; then : 25639 $as_echo_n "(cached) " >&6 25640 else 25641 case $JAVAC in 25642 [\\/]* | ?:[\\/]*) 25643 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25644 ;; 25645 *) 25646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25647 for as_dir in $PATH 25648 do 25649 IFS=$as_save_IFS 25650 test -z "$as_dir" && as_dir=. 25651 for ac_exec_ext in '' $ac_executable_extensions; do 25652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25653 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25655 break 2 25656 fi 25657 done 25658 done 25659 IFS=$as_save_IFS 25660 25661 ;; 25662 esac 25663 fi 25664 JAVAC=$ac_cv_path_JAVAC 25665 if test -n "$JAVAC"; then 25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25667 $as_echo "$JAVAC" >&6; } 25668 else 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25670 $as_echo "no" >&6; } 25671 fi 25672 25673 25674 if test "x$JAVAC" = x; then 25675 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25676 fi 25677 else 25678 # Otherwise we believe it is a complete path. Use it as it is. 25679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25680 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25682 $as_echo_n "checking for JAVAC... " >&6; } 25683 if test ! -x "$tool_specified"; then 25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25685 $as_echo "not found" >&6; } 25686 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25687 fi 25688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25689 $as_echo "$tool_specified" >&6; } 25690 fi 25691 fi 25692 fi 25693 25694 25695 25696 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25697 25698 # Publish this variable in the help. 25699 25700 25701 if test "x$JAVAH" = x; then 25702 # The variable is not set by user, try to locate tool using the code snippet 25703 25704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25705 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25706 JAVAH=$BOOT_JDK/bin/javah 25707 if test ! -x $JAVAH; then 25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25709 $as_echo "not found" >&6; } 25710 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25711 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25712 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25713 fi 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25715 $as_echo "ok" >&6; } 25716 25717 25718 else 25719 # The variable is set, but is it from the command line or the environment? 25720 25721 # Try to remove the string !JAVAH! from our list. 25722 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25723 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25724 # If it failed, the variable was not from the command line. Ignore it, 25725 # but warn the user (except for BASH, which is always set by the calling BASH). 25726 if test "xJAVAH" != xBASH; then 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25728 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25729 fi 25730 # Try to locate tool using the code snippet 25731 25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25733 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25734 JAVAH=$BOOT_JDK/bin/javah 25735 if test ! -x $JAVAH; then 25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25737 $as_echo "not found" >&6; } 25738 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25739 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25740 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25741 fi 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25743 $as_echo "ok" >&6; } 25744 25745 25746 else 25747 # If it succeeded, then it was overridden by the user. We will use it 25748 # for the tool. 25749 25750 # First remove it from the list of overridden variables, so we can test 25751 # for unknown variables in the end. 25752 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25753 25754 # Check if the provided tool contains a complete path. 25755 tool_specified="$JAVAH" 25756 tool_basename="${tool_specified##*/}" 25757 if test "x$tool_basename" = "x$tool_specified"; then 25758 # A command without a complete path is provided, search $PATH. 25759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25760 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25761 # Extract the first word of "$tool_basename", so it can be a program name with args. 25762 set dummy $tool_basename; ac_word=$2 25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25764 $as_echo_n "checking for $ac_word... " >&6; } 25765 if ${ac_cv_path_JAVAH+:} false; then : 25766 $as_echo_n "(cached) " >&6 25767 else 25768 case $JAVAH in 25769 [\\/]* | ?:[\\/]*) 25770 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25771 ;; 25772 *) 25773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25774 for as_dir in $PATH 25775 do 25776 IFS=$as_save_IFS 25777 test -z "$as_dir" && as_dir=. 25778 for ac_exec_ext in '' $ac_executable_extensions; do 25779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25780 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25782 break 2 25783 fi 25784 done 25785 done 25786 IFS=$as_save_IFS 25787 25788 ;; 25789 esac 25790 fi 25791 JAVAH=$ac_cv_path_JAVAH 25792 if test -n "$JAVAH"; then 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25794 $as_echo "$JAVAH" >&6; } 25795 else 25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25797 $as_echo "no" >&6; } 25798 fi 25799 25800 25801 if test "x$JAVAH" = x; then 25802 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25803 fi 25804 else 25805 # Otherwise we believe it is a complete path. Use it as it is. 25806 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25807 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25809 $as_echo_n "checking for JAVAH... " >&6; } 25810 if test ! -x "$tool_specified"; then 25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25812 $as_echo "not found" >&6; } 25813 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25814 fi 25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25816 $as_echo "$tool_specified" >&6; } 25817 fi 25818 fi 25819 fi 25820 25821 25822 25823 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25824 25825 # Publish this variable in the help. 25826 25827 25828 if test "x$JAR" = x; then 25829 # The variable is not set by user, try to locate tool using the code snippet 25830 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25832 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25833 JAR=$BOOT_JDK/bin/jar 25834 if test ! -x $JAR; then 25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25836 $as_echo "not found" >&6; } 25837 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25838 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25839 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25840 fi 25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25842 $as_echo "ok" >&6; } 25843 25844 25845 else 25846 # The variable is set, but is it from the command line or the environment? 25847 25848 # Try to remove the string !JAR! from our list. 25849 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25850 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25851 # If it failed, the variable was not from the command line. Ignore it, 25852 # but warn the user (except for BASH, which is always set by the calling BASH). 25853 if test "xJAR" != xBASH; then 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25855 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25856 fi 25857 # Try to locate tool using the code snippet 25858 25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25860 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25861 JAR=$BOOT_JDK/bin/jar 25862 if test ! -x $JAR; then 25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25864 $as_echo "not found" >&6; } 25865 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25866 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25867 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25868 fi 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25870 $as_echo "ok" >&6; } 25871 25872 25873 else 25874 # If it succeeded, then it was overridden by the user. We will use it 25875 # for the tool. 25876 25877 # First remove it from the list of overridden variables, so we can test 25878 # for unknown variables in the end. 25879 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25880 25881 # Check if the provided tool contains a complete path. 25882 tool_specified="$JAR" 25883 tool_basename="${tool_specified##*/}" 25884 if test "x$tool_basename" = "x$tool_specified"; then 25885 # A command without a complete path is provided, search $PATH. 25886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25887 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25888 # Extract the first word of "$tool_basename", so it can be a program name with args. 25889 set dummy $tool_basename; ac_word=$2 25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25891 $as_echo_n "checking for $ac_word... " >&6; } 25892 if ${ac_cv_path_JAR+:} false; then : 25893 $as_echo_n "(cached) " >&6 25894 else 25895 case $JAR in 25896 [\\/]* | ?:[\\/]*) 25897 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25898 ;; 25899 *) 25900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25901 for as_dir in $PATH 25902 do 25903 IFS=$as_save_IFS 25904 test -z "$as_dir" && as_dir=. 25905 for ac_exec_ext in '' $ac_executable_extensions; do 25906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25907 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25909 break 2 25910 fi 25911 done 25912 done 25913 IFS=$as_save_IFS 25914 25915 ;; 25916 esac 25917 fi 25918 JAR=$ac_cv_path_JAR 25919 if test -n "$JAR"; then 25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25921 $as_echo "$JAR" >&6; } 25922 else 25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25924 $as_echo "no" >&6; } 25925 fi 25926 25927 25928 if test "x$JAR" = x; then 25929 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25930 fi 25931 else 25932 # Otherwise we believe it is a complete path. Use it as it is. 25933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25934 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25936 $as_echo_n "checking for JAR... " >&6; } 25937 if test ! -x "$tool_specified"; then 25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25939 $as_echo "not found" >&6; } 25940 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25941 fi 25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25943 $as_echo "$tool_specified" >&6; } 25944 fi 25945 fi 25946 fi 25947 25948 25949 25950 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25951 25952 # Publish this variable in the help. 25953 25954 25955 if test "x$NATIVE2ASCII" = x; then 25956 # The variable is not set by user, try to locate tool using the code snippet 25957 25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25959 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25960 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25961 if test ! -x $NATIVE2ASCII; then 25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25963 $as_echo "not found" >&6; } 25964 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25965 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25966 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25967 fi 25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25969 $as_echo "ok" >&6; } 25970 25971 25972 else 25973 # The variable is set, but is it from the command line or the environment? 25974 25975 # Try to remove the string !NATIVE2ASCII! from our list. 25976 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25977 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25978 # If it failed, the variable was not from the command line. Ignore it, 25979 # but warn the user (except for BASH, which is always set by the calling BASH). 25980 if test "xNATIVE2ASCII" != xBASH; then 25981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25982 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25983 fi 25984 # Try to locate tool using the code snippet 25985 25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25987 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25988 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25989 if test ! -x $NATIVE2ASCII; then 25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25991 $as_echo "not found" >&6; } 25992 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25993 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25994 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25995 fi 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25997 $as_echo "ok" >&6; } 25998 25999 26000 else 26001 # If it succeeded, then it was overridden by the user. We will use it 26002 # for the tool. 26003 26004 # First remove it from the list of overridden variables, so we can test 26005 # for unknown variables in the end. 26006 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26007 26008 # Check if the provided tool contains a complete path. 26009 tool_specified="$NATIVE2ASCII" 26010 tool_basename="${tool_specified##*/}" 26011 if test "x$tool_basename" = "x$tool_specified"; then 26012 # A command without a complete path is provided, search $PATH. 26013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 26014 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 26015 # Extract the first word of "$tool_basename", so it can be a program name with args. 26016 set dummy $tool_basename; ac_word=$2 26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26018 $as_echo_n "checking for $ac_word... " >&6; } 26019 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 26020 $as_echo_n "(cached) " >&6 26021 else 26022 case $NATIVE2ASCII in 26023 [\\/]* | ?:[\\/]*) 26024 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 26025 ;; 26026 *) 26027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26028 for as_dir in $PATH 26029 do 26030 IFS=$as_save_IFS 26031 test -z "$as_dir" && as_dir=. 26032 for ac_exec_ext in '' $ac_executable_extensions; do 26033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26034 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 26035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26036 break 2 26037 fi 26038 done 26039 done 26040 IFS=$as_save_IFS 26041 26042 ;; 26043 esac 26044 fi 26045 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 26046 if test -n "$NATIVE2ASCII"; then 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 26048 $as_echo "$NATIVE2ASCII" >&6; } 26049 else 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26051 $as_echo "no" >&6; } 26052 fi 26053 26054 26055 if test "x$NATIVE2ASCII" = x; then 26056 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26057 fi 26058 else 26059 # Otherwise we believe it is a complete path. Use it as it is. 26060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 26061 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 26063 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 26064 if test ! -x "$tool_specified"; then 26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26066 $as_echo "not found" >&6; } 26067 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26068 fi 26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26070 $as_echo "$tool_specified" >&6; } 26071 fi 26072 fi 26073 fi 26074 26075 26076 26077 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26078 26079 # Publish this variable in the help. 26080 26081 26082 if test "x$JARSIGNER" = x; then 26083 # The variable is not set by user, try to locate tool using the code snippet 26084 26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26086 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26087 JARSIGNER=$BOOT_JDK/bin/jarsigner 26088 if test ! -x $JARSIGNER; then 26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26090 $as_echo "not found" >&6; } 26091 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26092 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26093 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26094 fi 26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26096 $as_echo "ok" >&6; } 26097 26098 26099 else 26100 # The variable is set, but is it from the command line or the environment? 26101 26102 # Try to remove the string !JARSIGNER! from our list. 26103 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26104 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26105 # If it failed, the variable was not from the command line. Ignore it, 26106 # but warn the user (except for BASH, which is always set by the calling BASH). 26107 if test "xJARSIGNER" != xBASH; then 26108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26109 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26110 fi 26111 # Try to locate tool using the code snippet 26112 26113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26114 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26115 JARSIGNER=$BOOT_JDK/bin/jarsigner 26116 if test ! -x $JARSIGNER; then 26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26118 $as_echo "not found" >&6; } 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26120 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26121 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26122 fi 26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26124 $as_echo "ok" >&6; } 26125 26126 26127 else 26128 # If it succeeded, then it was overridden by the user. We will use it 26129 # for the tool. 26130 26131 # First remove it from the list of overridden variables, so we can test 26132 # for unknown variables in the end. 26133 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26134 26135 # Check if the provided tool contains a complete path. 26136 tool_specified="$JARSIGNER" 26137 tool_basename="${tool_specified##*/}" 26138 if test "x$tool_basename" = "x$tool_specified"; then 26139 # A command without a complete path is provided, search $PATH. 26140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26141 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26142 # Extract the first word of "$tool_basename", so it can be a program name with args. 26143 set dummy $tool_basename; ac_word=$2 26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26145 $as_echo_n "checking for $ac_word... " >&6; } 26146 if ${ac_cv_path_JARSIGNER+:} false; then : 26147 $as_echo_n "(cached) " >&6 26148 else 26149 case $JARSIGNER in 26150 [\\/]* | ?:[\\/]*) 26151 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26152 ;; 26153 *) 26154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26155 for as_dir in $PATH 26156 do 26157 IFS=$as_save_IFS 26158 test -z "$as_dir" && as_dir=. 26159 for ac_exec_ext in '' $ac_executable_extensions; do 26160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26161 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26163 break 2 26164 fi 26165 done 26166 done 26167 IFS=$as_save_IFS 26168 26169 ;; 26170 esac 26171 fi 26172 JARSIGNER=$ac_cv_path_JARSIGNER 26173 if test -n "$JARSIGNER"; then 26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26175 $as_echo "$JARSIGNER" >&6; } 26176 else 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26178 $as_echo "no" >&6; } 26179 fi 26180 26181 26182 if test "x$JARSIGNER" = x; then 26183 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26184 fi 26185 else 26186 # Otherwise we believe it is a complete path. Use it as it is. 26187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26188 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26190 $as_echo_n "checking for JARSIGNER... " >&6; } 26191 if test ! -x "$tool_specified"; then 26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26193 $as_echo "not found" >&6; } 26194 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26195 fi 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26197 $as_echo "$tool_specified" >&6; } 26198 fi 26199 fi 26200 fi 26201 26202 26203 26204 # Finally, set some other options... 26205 26206 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26207 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26208 26209 26210 26211 26212 ############################################################################### 26213 # 26214 # Configure the sources to use. We can add or override individual directories. 26215 # 26216 ############################################################################### 26217 26218 26219 # Where are the sources. Any of these can be overridden 26220 # using --with-override-corba and the likes. 26221 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26222 CORBA_TOPDIR="$SRC_ROOT/corba" 26223 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26224 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26225 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26226 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26227 JDK_TOPDIR="$SRC_ROOT/jdk" 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 ############################################################################### 26239 # 26240 # Pickup additional source for a component from outside of the source root 26241 # or override source for a component. 26242 # 26243 26244 # Check whether --with-add-source-root was given. 26245 if test "${with_add_source_root+set}" = set; then : 26246 withval=$with_add_source_root; 26247 fi 26248 26249 26250 26251 # Check whether --with-override-source-root was given. 26252 if test "${with_override_source_root+set}" = set; then : 26253 withval=$with_override_source_root; 26254 fi 26255 26256 26257 26258 # Check whether --with-adds-and-overrides was given. 26259 if test "${with_adds_and_overrides+set}" = set; then : 26260 withval=$with_adds_and_overrides; 26261 fi 26262 26263 26264 if test "x$with_adds_and_overrides" != x; then 26265 with_add_source_root="$with_adds_and_overrides/adds" 26266 with_override_source_root="$with_adds_and_overrides/overrides" 26267 fi 26268 26269 if test "x$with_add_source_root" != x; then 26270 if ! test -d $with_add_source_root; then 26271 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26272 fi 26273 CURDIR="$PWD" 26274 cd "$with_add_source_root" 26275 ADD_SRC_ROOT="`pwd`" 26276 cd "$CURDIR" 26277 # Verify that the addon source root does not have any root makefiles. 26278 # If it does, then it is usually an error, prevent this. 26279 if test -f $with_add_source_root/langtools/make/Makefile; then 26280 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 26281 fi 26282 if test -f $with_add_source_root/corba/make/Makefile; then 26283 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 26284 fi 26285 if test -f $with_add_source_root/jaxp/make/Makefile; then 26286 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 26287 fi 26288 if test -f $with_add_source_root/jaxws/make/Makefile; then 26289 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 26290 fi 26291 if test -f $with_add_source_root/hotspot/make/Makefile; then 26292 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 26293 fi 26294 if test -f $with_add_source_root/nashorn/make/Makefile; then 26295 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 26296 fi 26297 if test -f $with_add_source_root/jdk/make/Makefile; then 26298 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 26299 fi 26300 fi 26301 26302 26303 if test "x$with_override_source_root" != x; then 26304 if ! test -d $with_override_source_root; then 26305 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26306 fi 26307 CURDIR="$PWD" 26308 cd "$with_override_source_root" 26309 OVERRIDE_SRC_ROOT="`pwd`" 26310 cd "$CURDIR" 26311 if test -f $with_override_source_root/langtools/make/Makefile; then 26312 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 26313 fi 26314 if test -f $with_override_source_root/corba/make/Makefile; then 26315 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 26316 fi 26317 if test -f $with_override_source_root/jaxp/make/Makefile; then 26318 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 26319 fi 26320 if test -f $with_override_source_root/jaxws/make/Makefile; then 26321 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 26322 fi 26323 if test -f $with_override_source_root/hotspot/make/Makefile; then 26324 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 26325 fi 26326 if test -f $with_override_source_root/nashorn/make/Makefile; then 26327 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 26328 fi 26329 if test -f $with_override_source_root/jdk/make/Makefile; then 26330 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 26331 fi 26332 fi 26333 26334 26335 ############################################################################### 26336 # 26337 # Override a repo completely, this is used for example when you have 3 small 26338 # development sandboxes of the langtools sources and want to avoid having 3 full 26339 # OpenJDK sources checked out on disk. 26340 # 26341 # Assuming that the 3 langtools sandboxes are located here: 26342 # /home/fredrik/sandbox1/langtools 26343 # /home/fredrik/sandbox2/langtools 26344 # /home/fredrik/sandbox3/langtools 26345 # 26346 # From the source root you create build subdirs manually: 26347 # mkdir -p build1 build2 build3 26348 # in each build directory run: 26349 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26350 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26351 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26352 # 26353 26354 26355 # Check whether --with-override-langtools was given. 26356 if test "${with_override_langtools+set}" = set; then : 26357 withval=$with_override_langtools; 26358 fi 26359 26360 26361 26362 # Check whether --with-override-corba was given. 26363 if test "${with_override_corba+set}" = set; then : 26364 withval=$with_override_corba; 26365 fi 26366 26367 26368 26369 # Check whether --with-override-jaxp was given. 26370 if test "${with_override_jaxp+set}" = set; then : 26371 withval=$with_override_jaxp; 26372 fi 26373 26374 26375 26376 # Check whether --with-override-jaxws was given. 26377 if test "${with_override_jaxws+set}" = set; then : 26378 withval=$with_override_jaxws; 26379 fi 26380 26381 26382 26383 # Check whether --with-override-hotspot was given. 26384 if test "${with_override_hotspot+set}" = set; then : 26385 withval=$with_override_hotspot; 26386 fi 26387 26388 26389 26390 # Check whether --with-override-nashorn was given. 26391 if test "${with_override_nashorn+set}" = set; then : 26392 withval=$with_override_nashorn; 26393 fi 26394 26395 26396 26397 # Check whether --with-override-jdk was given. 26398 if test "${with_override_jdk+set}" = set; then : 26399 withval=$with_override_jdk; 26400 fi 26401 26402 26403 if test "x$with_override_langtools" != x; then 26404 CURDIR="$PWD" 26405 cd "$with_override_langtools" 26406 LANGTOOLS_TOPDIR="`pwd`" 26407 cd "$CURDIR" 26408 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26409 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26410 fi 26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26412 $as_echo_n "checking if langtools should be overridden... " >&6; } 26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26414 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26415 fi 26416 if test "x$with_override_corba" != x; then 26417 CURDIR="$PWD" 26418 cd "$with_override_corba" 26419 CORBA_TOPDIR="`pwd`" 26420 cd "$CURDIR" 26421 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26422 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26423 fi 26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26425 $as_echo_n "checking if corba should be overridden... " >&6; } 26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26427 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26428 fi 26429 if test "x$with_override_jaxp" != x; then 26430 CURDIR="$PWD" 26431 cd "$with_override_jaxp" 26432 JAXP_TOPDIR="`pwd`" 26433 cd "$CURDIR" 26434 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26435 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26436 fi 26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26438 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26440 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26441 fi 26442 if test "x$with_override_jaxws" != x; then 26443 CURDIR="$PWD" 26444 cd "$with_override_jaxws" 26445 JAXWS_TOPDIR="`pwd`" 26446 cd "$CURDIR" 26447 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26448 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26449 fi 26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26451 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26453 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26454 fi 26455 if test "x$with_override_hotspot" != x; then 26456 CURDIR="$PWD" 26457 cd "$with_override_hotspot" 26458 HOTSPOT_TOPDIR="`pwd`" 26459 cd "$CURDIR" 26460 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26461 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26462 fi 26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26464 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26466 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26467 fi 26468 if test "x$with_override_nashorn" != x; then 26469 CURDIR="$PWD" 26470 cd "$with_override_nashorn" 26471 NASHORN_TOPDIR="`pwd`" 26472 cd "$CURDIR" 26473 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26474 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26475 fi 26476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26477 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26479 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26480 fi 26481 if test "x$with_override_jdk" != x; then 26482 CURDIR="$PWD" 26483 cd "$with_override_jdk" 26484 JDK_TOPDIR="`pwd`" 26485 cd "$CURDIR" 26486 if ! test -f $JDK_TOPDIR/make/Makefile; then 26487 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26488 fi 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26490 $as_echo_n "checking if JDK should be overridden... " >&6; } 26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26492 $as_echo "yes with $JDK_TOPDIR" >&6; } 26493 fi 26494 26495 26496 BUILD_OUTPUT="$OUTPUT_ROOT" 26497 26498 26499 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26500 BUILD_HOTSPOT=true 26501 26502 26503 26504 # Check whether --with-import-hotspot was given. 26505 if test "${with_import_hotspot+set}" = set; then : 26506 withval=$with_import_hotspot; 26507 fi 26508 26509 if test "x$with_import_hotspot" != x; then 26510 CURDIR="$PWD" 26511 cd "$with_import_hotspot" 26512 HOTSPOT_DIST="`pwd`" 26513 cd "$CURDIR" 26514 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26515 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26516 fi 26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26518 $as_echo_n "checking if hotspot should be imported... " >&6; } 26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26520 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26521 BUILD_HOTSPOT=false 26522 fi 26523 26524 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26525 26526 26527 ############################################################################### 26528 # 26529 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26530 # native code. 26531 # 26532 ############################################################################### 26533 26534 # First determine the toolchain type (compiler family) 26535 26536 26537 # Check whether --with-toolchain-type was given. 26538 if test "${with_toolchain_type+set}" = set; then : 26539 withval=$with_toolchain_type; 26540 fi 26541 26542 26543 # Use indirect variable referencing 26544 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26545 VALID_TOOLCHAINS=${!toolchain_var_name} 26546 26547 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26548 if test -n "$XCODEBUILD"; then 26549 # On Mac OS X, default toolchain to clang after Xcode 5 26550 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26551 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26552 if test $? -ne 0; then 26553 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26554 fi 26555 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26556 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26557 $CUT -f 1 -d .` 26558 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26559 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26560 if test $XCODE_MAJOR_VERSION -ge 5; then 26561 DEFAULT_TOOLCHAIN="clang" 26562 else 26563 DEFAULT_TOOLCHAIN="gcc" 26564 fi 26565 else 26566 # If Xcode is not installed, but the command line tools are 26567 # then we can't run xcodebuild. On these systems we should 26568 # default to clang 26569 DEFAULT_TOOLCHAIN="clang" 26570 fi 26571 else 26572 # First toolchain type in the list is the default 26573 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26574 fi 26575 26576 if test "x$with_toolchain_type" = xlist; then 26577 # List all toolchains 26578 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26579 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26580 for toolchain in $VALID_TOOLCHAINS; do 26581 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26582 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26583 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26584 done 26585 26586 exit 0 26587 elif test "x$with_toolchain_type" != x; then 26588 # User override; check that it is valid 26589 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26591 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26592 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26593 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26594 as_fn_error $? "Cannot continue." "$LINENO" 5 26595 fi 26596 TOOLCHAIN_TYPE=$with_toolchain_type 26597 else 26598 # No flag given, use default 26599 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26600 fi 26601 26602 26603 TOOLCHAIN_CC_BINARY_clang="clang" 26604 TOOLCHAIN_CC_BINARY_gcc="gcc" 26605 TOOLCHAIN_CC_BINARY_microsoft="cl" 26606 TOOLCHAIN_CC_BINARY_solstudio="cc" 26607 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26608 26609 TOOLCHAIN_CXX_BINARY_clang="clang++" 26610 TOOLCHAIN_CXX_BINARY_gcc="g++" 26611 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26612 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26613 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26614 26615 # Use indirect variable referencing 26616 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26617 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26618 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26619 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26620 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26621 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26622 26623 26624 # Define filename patterns 26625 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26626 LIBRARY_PREFIX= 26627 SHARED_LIBRARY_SUFFIX='.dll' 26628 STATIC_LIBRARY_SUFFIX='.lib' 26629 SHARED_LIBRARY='$1.dll' 26630 STATIC_LIBRARY='$1.lib' 26631 OBJ_SUFFIX='.obj' 26632 EXE_SUFFIX='.exe' 26633 else 26634 LIBRARY_PREFIX=lib 26635 SHARED_LIBRARY_SUFFIX='.so' 26636 STATIC_LIBRARY_SUFFIX='.a' 26637 SHARED_LIBRARY='lib$1.so' 26638 STATIC_LIBRARY='lib$1.a' 26639 OBJ_SUFFIX='.o' 26640 EXE_SUFFIX='' 26641 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26642 SHARED_LIBRARY='lib$1.dylib' 26643 SHARED_LIBRARY_SUFFIX='.dylib' 26644 fi 26645 fi 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26657 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26658 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26659 else 26660 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26661 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26662 fi 26663 26664 26665 # Then detect the actual binaries needed 26666 26667 # FIXME: Is this needed? 26668 ac_ext=cpp 26669 ac_cpp='$CXXCPP $CPPFLAGS' 26670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26673 26674 26675 # Store the CFLAGS etc passed to the configure script. 26676 ORG_CFLAGS="$CFLAGS" 26677 ORG_CXXFLAGS="$CXXFLAGS" 26678 26679 # On Windows, we need to detect the visual studio installation first. 26680 # This will change the PATH, but we need to keep that new PATH even 26681 # after toolchain detection is done, since the compiler (on x86) uses 26682 # it for DLL resolution in runtime. 26683 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26684 26685 # Store path to cygwin link.exe to help excluding it when searching for 26686 # VS linker. This must be done before changing the PATH when looking for VS. 26687 # Extract the first word of "link", so it can be a program name with args. 26688 set dummy link; ac_word=$2 26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26690 $as_echo_n "checking for $ac_word... " >&6; } 26691 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26692 $as_echo_n "(cached) " >&6 26693 else 26694 case $CYGWIN_LINK in 26695 [\\/]* | ?:[\\/]*) 26696 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26697 ;; 26698 *) 26699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26700 for as_dir in $PATH 26701 do 26702 IFS=$as_save_IFS 26703 test -z "$as_dir" && as_dir=. 26704 for ac_exec_ext in '' $ac_executable_extensions; do 26705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26706 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26708 break 2 26709 fi 26710 done 26711 done 26712 IFS=$as_save_IFS 26713 26714 ;; 26715 esac 26716 fi 26717 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26718 if test -n "$CYGWIN_LINK"; then 26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26720 $as_echo "$CYGWIN_LINK" >&6; } 26721 else 26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26723 $as_echo "no" >&6; } 26724 fi 26725 26726 26727 if test "x$CYGWIN_LINK" != x; then 26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26729 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26730 "$CYGWIN_LINK" --version > /dev/null 26731 if test $? -eq 0 ; then 26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26733 $as_echo "yes" >&6; } 26734 else 26735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26736 $as_echo "no" >&6; } 26737 # This might be the VS linker. Don't exclude it later on. 26738 CYGWIN_LINK="" 26739 fi 26740 fi 26741 26742 # First-hand choice is to locate and run the vsvars bat file. 26743 26744 26745 # Check whether --with-toolchain-version was given. 26746 if test "${with_toolchain_version+set}" = set; then : 26747 withval=$with_toolchain_version; 26748 fi 26749 26750 26751 if test "x$with_toolchain_version" = xlist; then 26752 # List all toolchains 26753 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 26754 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 26755 for version in $VALID_VS_VERSIONS; do 26756 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 26757 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 26758 done 26759 26760 exit 0 26761 elif test "x$with_toolchain_version" != x; then 26762 # User override; check that it is valid 26763 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 26764 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 26765 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 26766 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 26767 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 26768 as_fn_error $? "Cannot continue." "$LINENO" 5 26769 fi 26770 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 26771 else 26772 # No flag given, use default 26773 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 26774 fi 26775 26776 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 26777 26778 VS_VERSION="$VS_VERSION" 26779 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 26780 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 26781 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 26782 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 26783 26784 # When using --with-tools-dir, assume it points to the correct and default 26785 # version of Visual Studio or that --with-toolchain-version was also set. 26786 if test "x$with_tools_dir" != x; then 26787 26788 if test "x$VS_ENV_CMD" = x; then 26789 VS_VERSION="${VS_VERSION}" 26790 VS_BASE="$with_tools_dir/../.." 26791 METHOD="--with-tools-dir" 26792 26793 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26794 VCVARSFILE="vc/bin/vcvars32.bat" 26795 else 26796 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26797 fi 26798 26799 26800 windows_path="$VS_BASE" 26801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26802 unix_path=`$CYGPATH -u "$windows_path"` 26803 VS_BASE="$unix_path" 26804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26806 VS_BASE="$unix_path" 26807 fi 26808 26809 if test -d "$VS_BASE"; then 26810 if test -f "$VS_BASE/$VCVARSFILE"; then 26811 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26812 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26813 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26814 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26815 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26816 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26817 else 26818 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26819 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26820 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26821 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26822 fi 26823 fi 26824 fi 26825 26826 26827 if test "x$VS_ENV_CMD" = x; then 26828 VS_VERSION="${VS_VERSION}" 26829 VS_BASE="$with_tools_dir/../../.." 26830 METHOD="--with-tools-dir" 26831 26832 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26833 VCVARSFILE="vc/bin/vcvars32.bat" 26834 else 26835 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26836 fi 26837 26838 26839 windows_path="$VS_BASE" 26840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26841 unix_path=`$CYGPATH -u "$windows_path"` 26842 VS_BASE="$unix_path" 26843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26844 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26845 VS_BASE="$unix_path" 26846 fi 26847 26848 if test -d "$VS_BASE"; then 26849 if test -f "$VS_BASE/$VCVARSFILE"; then 26850 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26851 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26852 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26853 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26854 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26855 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26856 else 26857 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26858 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26859 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26860 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26861 fi 26862 fi 26863 fi 26864 26865 if test "x$VS_ENV_CMD" = x; then 26866 # Having specified an argument which is incorrect will produce an instant failure; 26867 # we should not go on looking 26868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 26869 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 26870 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 26871 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 26872 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 26873 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 26874 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26875 fi 26876 fi 26877 26878 VS_ENV_CMD="" 26879 VS_ENV_ARGS="" 26880 26881 if test "x$VS_COMNTOOLS" != x; then 26882 26883 if test "x$VS_ENV_CMD" = x; then 26884 VS_VERSION="${VS_VERSION}" 26885 VS_BASE="$VS_COMNTOOLS/../.." 26886 METHOD="$VS_COMNTOOLS_VAR variable" 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 fi 26922 if test "x$PROGRAMFILES" != x; then 26923 26924 if test "x$VS_ENV_CMD" = x; then 26925 VS_VERSION="${VS_VERSION}" 26926 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 26927 METHOD="well-known name" 26928 26929 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26930 VCVARSFILE="vc/bin/vcvars32.bat" 26931 else 26932 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26933 fi 26934 26935 26936 windows_path="$VS_BASE" 26937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26938 unix_path=`$CYGPATH -u "$windows_path"` 26939 VS_BASE="$unix_path" 26940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26942 VS_BASE="$unix_path" 26943 fi 26944 26945 if test -d "$VS_BASE"; then 26946 if test -f "$VS_BASE/$VCVARSFILE"; then 26947 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26948 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26949 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26950 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26951 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26952 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26953 else 26954 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26955 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26956 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26957 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26958 fi 26959 fi 26960 fi 26961 26962 fi 26963 # Work around the insanely named ProgramFiles(x86) env variable 26964 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 26965 if test "x$PROGRAMFILES_X86" != x; then 26966 26967 if test "x$VS_ENV_CMD" = x; then 26968 VS_VERSION="${VS_VERSION}" 26969 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 26970 METHOD="well-known name" 26971 26972 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26973 VCVARSFILE="vc/bin/vcvars32.bat" 26974 else 26975 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26976 fi 26977 26978 26979 windows_path="$VS_BASE" 26980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26981 unix_path=`$CYGPATH -u "$windows_path"` 26982 VS_BASE="$unix_path" 26983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26985 VS_BASE="$unix_path" 26986 fi 26987 26988 if test -d "$VS_BASE"; then 26989 if test -f "$VS_BASE/$VCVARSFILE"; then 26990 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26991 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26992 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26993 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26994 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26995 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26996 else 26997 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26998 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26999 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27000 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27001 fi 27002 fi 27003 fi 27004 27005 fi 27006 27007 if test "x$VS_ENV_CMD" = x; then 27008 VS_VERSION="${VS_VERSION}" 27009 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 27010 METHOD="well-known name" 27011 27012 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27013 VCVARSFILE="vc/bin/vcvars32.bat" 27014 else 27015 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27016 fi 27017 27018 27019 windows_path="$VS_BASE" 27020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27021 unix_path=`$CYGPATH -u "$windows_path"` 27022 VS_BASE="$unix_path" 27023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27025 VS_BASE="$unix_path" 27026 fi 27027 27028 if test -d "$VS_BASE"; then 27029 if test -f "$VS_BASE/$VCVARSFILE"; then 27030 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27031 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27032 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27033 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27034 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27035 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27036 else 27037 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27038 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27039 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27040 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27041 fi 27042 fi 27043 fi 27044 27045 27046 if test "x$VS_ENV_CMD" = x; then 27047 VS_VERSION="${VS_VERSION}" 27048 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 27049 METHOD="well-known name" 27050 27051 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27052 VCVARSFILE="vc/bin/vcvars32.bat" 27053 else 27054 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27055 fi 27056 27057 27058 windows_path="$VS_BASE" 27059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27060 unix_path=`$CYGPATH -u "$windows_path"` 27061 VS_BASE="$unix_path" 27062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27063 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27064 VS_BASE="$unix_path" 27065 fi 27066 27067 if test -d "$VS_BASE"; then 27068 if test -f "$VS_BASE/$VCVARSFILE"; then 27069 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27070 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27071 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27072 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27073 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27074 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27075 else 27076 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27077 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27079 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27080 fi 27081 fi 27082 fi 27083 27084 27085 if test "x$SDK_INSTALL_DIR" != x; then 27086 if test "x$ProgramW6432" != x; then 27087 27088 if test "x$VS_ENV_CMD" = x; then 27089 VS_VERSION="${VS_VERSION}" 27090 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 27091 METHOD="well-known name" 27092 27093 windows_path="$WIN_SDK_BASE" 27094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27095 unix_path=`$CYGPATH -u "$windows_path"` 27096 WIN_SDK_BASE="$unix_path" 27097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27098 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27099 WIN_SDK_BASE="$unix_path" 27100 fi 27101 27102 if test -d "$WIN_SDK_BASE"; then 27103 # There have been cases of partial or broken SDK installations. A missing 27104 # lib dir is not going to work. 27105 if test ! -d "$WIN_SDK_BASE/lib"; then 27106 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27107 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27108 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27109 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27110 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27112 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27113 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27114 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27115 VS_ENV_ARGS="/x86" 27116 else 27117 VS_ENV_ARGS="/x64" 27118 fi 27119 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27120 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27121 # TODO: improve detection for other versions of SDK 27122 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27123 else 27124 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27125 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27126 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27127 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27128 fi 27129 fi 27130 fi 27131 27132 fi 27133 if test "x$PROGRAMW6432" != x; then 27134 27135 if test "x$VS_ENV_CMD" = x; then 27136 VS_VERSION="${VS_VERSION}" 27137 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 27138 METHOD="well-known name" 27139 27140 windows_path="$WIN_SDK_BASE" 27141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27142 unix_path=`$CYGPATH -u "$windows_path"` 27143 WIN_SDK_BASE="$unix_path" 27144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27146 WIN_SDK_BASE="$unix_path" 27147 fi 27148 27149 if test -d "$WIN_SDK_BASE"; then 27150 # There have been cases of partial or broken SDK installations. A missing 27151 # lib dir is not going to work. 27152 if test ! -d "$WIN_SDK_BASE/lib"; then 27153 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27154 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27155 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27156 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27157 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27159 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27160 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27161 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27162 VS_ENV_ARGS="/x86" 27163 else 27164 VS_ENV_ARGS="/x64" 27165 fi 27166 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27167 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27168 # TODO: improve detection for other versions of SDK 27169 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27170 else 27171 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27172 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27173 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27174 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27175 fi 27176 fi 27177 fi 27178 27179 fi 27180 if test "x$PROGRAMFILES" != x; then 27181 27182 if test "x$VS_ENV_CMD" = x; then 27183 VS_VERSION="${VS_VERSION}" 27184 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 27185 METHOD="well-known name" 27186 27187 windows_path="$WIN_SDK_BASE" 27188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27189 unix_path=`$CYGPATH -u "$windows_path"` 27190 WIN_SDK_BASE="$unix_path" 27191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27192 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27193 WIN_SDK_BASE="$unix_path" 27194 fi 27195 27196 if test -d "$WIN_SDK_BASE"; then 27197 # There have been cases of partial or broken SDK installations. A missing 27198 # lib dir is not going to work. 27199 if test ! -d "$WIN_SDK_BASE/lib"; then 27200 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27201 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27202 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27203 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27204 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27205 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27206 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27207 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27208 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27209 VS_ENV_ARGS="/x86" 27210 else 27211 VS_ENV_ARGS="/x64" 27212 fi 27213 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27214 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27215 # TODO: improve detection for other versions of SDK 27216 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27217 else 27218 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27219 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27220 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27221 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27222 fi 27223 fi 27224 fi 27225 27226 fi 27227 27228 if test "x$VS_ENV_CMD" = x; then 27229 VS_VERSION="${VS_VERSION}" 27230 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 27231 METHOD="well-known name" 27232 27233 windows_path="$WIN_SDK_BASE" 27234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27235 unix_path=`$CYGPATH -u "$windows_path"` 27236 WIN_SDK_BASE="$unix_path" 27237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27239 WIN_SDK_BASE="$unix_path" 27240 fi 27241 27242 if test -d "$WIN_SDK_BASE"; then 27243 # There have been cases of partial or broken SDK installations. A missing 27244 # lib dir is not going to work. 27245 if test ! -d "$WIN_SDK_BASE/lib"; then 27246 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27247 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27248 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27249 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27250 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27252 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27253 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27254 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27255 VS_ENV_ARGS="/x86" 27256 else 27257 VS_ENV_ARGS="/x64" 27258 fi 27259 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27260 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27261 # TODO: improve detection for other versions of SDK 27262 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27263 else 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27265 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27266 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27267 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27268 fi 27269 fi 27270 fi 27271 27272 27273 if test "x$VS_ENV_CMD" = x; then 27274 VS_VERSION="${VS_VERSION}" 27275 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 27276 METHOD="well-known name" 27277 27278 windows_path="$WIN_SDK_BASE" 27279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27280 unix_path=`$CYGPATH -u "$windows_path"` 27281 WIN_SDK_BASE="$unix_path" 27282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27284 WIN_SDK_BASE="$unix_path" 27285 fi 27286 27287 if test -d "$WIN_SDK_BASE"; then 27288 # There have been cases of partial or broken SDK installations. A missing 27289 # lib dir is not going to work. 27290 if test ! -d "$WIN_SDK_BASE/lib"; then 27291 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27292 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27293 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27294 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27295 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27296 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27297 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27298 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27299 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27300 VS_ENV_ARGS="/x86" 27301 else 27302 VS_ENV_ARGS="/x64" 27303 fi 27304 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27305 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27306 # TODO: improve detection for other versions of SDK 27307 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27308 else 27309 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27310 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27311 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27312 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27313 fi 27314 fi 27315 fi 27316 27317 fi 27318 27319 if test "x$VS_ENV_CMD" != x; then 27320 TOOLCHAIN_VERSION=$VS_VERSION 27321 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 27322 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 27323 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 27324 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 27325 # The rest of the variables are already evaled while probing 27326 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 27327 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 27328 break 27329 fi 27330 done 27331 27332 27333 if test "x$VS_ENV_CMD" != x; then 27334 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27335 27336 # Only process if variable expands to non-empty 27337 27338 if test "x$VS_ENV_CMD" != x; then 27339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27340 27341 # First separate the path from the arguments. This will split at the first 27342 # space. 27343 complete="$VS_ENV_CMD" 27344 path="${complete%% *}" 27345 tmp="$complete EOL" 27346 arguments="${tmp#* }" 27347 27348 # Input might be given as Windows format, start by converting to 27349 # unix format. 27350 new_path=`$CYGPATH -u "$path"` 27351 27352 # Now try to locate executable using which 27353 new_path=`$WHICH "$new_path" 2> /dev/null` 27354 # bat and cmd files are not always considered executable in cygwin causing which 27355 # to not find them 27356 if test "x$new_path" = x \ 27357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27359 new_path=`$CYGPATH -u "$path"` 27360 fi 27361 if test "x$new_path" = x; then 27362 # Oops. Which didn't find the executable. 27363 # The splitting of arguments from the executable at a space might have been incorrect, 27364 # since paths with space are more likely in Windows. Give it another try with the whole 27365 # argument. 27366 path="$complete" 27367 arguments="EOL" 27368 new_path=`$CYGPATH -u "$path"` 27369 new_path=`$WHICH "$new_path" 2> /dev/null` 27370 # bat and cmd files are not always considered executable in cygwin causing which 27371 # to not find them 27372 if test "x$new_path" = x \ 27373 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27374 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27375 new_path=`$CYGPATH -u "$path"` 27376 fi 27377 if test "x$new_path" = x; then 27378 # It's still not found. Now this is an unrecoverable error. 27379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27380 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27381 has_space=`$ECHO "$complete" | $GREP " "` 27382 if test "x$has_space" != x; then 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27385 fi 27386 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27387 fi 27388 fi 27389 27390 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27391 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27392 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27393 # "foo.exe" is OK but "foo" is an error. 27394 # 27395 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27396 # It is also a way to make sure we got the proper file name for the real test later on. 27397 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27398 if test "x$test_shortpath" = x; then 27399 # Short path failed, file does not exist as specified. 27400 # Try adding .exe or .cmd 27401 if test -f "${new_path}.exe"; then 27402 input_to_shortpath="${new_path}.exe" 27403 elif test -f "${new_path}.cmd"; then 27404 input_to_shortpath="${new_path}.cmd" 27405 else 27406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27407 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27410 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27411 fi 27412 else 27413 input_to_shortpath="$new_path" 27414 fi 27415 27416 # Call helper function which possibly converts this using DOS-style short mode. 27417 # If so, the updated path is stored in $new_path. 27418 new_path="$input_to_shortpath" 27419 27420 input_path="$input_to_shortpath" 27421 # Check if we need to convert this using DOS-style short mode. If the path 27422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27423 # take no chances and rewrite it. 27424 # Note: m4 eats our [], so we need to use [ and ] instead. 27425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27426 if test "x$has_forbidden_chars" != x; then 27427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27431 # Going to short mode and back again did indeed matter. Since short mode is 27432 # case insensitive, let's make it lowercase to improve readability. 27433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27434 # Now convert it back to Unix-stile (cygpath) 27435 input_path=`$CYGPATH -u "$shortmode_path"` 27436 new_path="$input_path" 27437 fi 27438 fi 27439 27440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27441 if test "x$test_cygdrive_prefix" = x; then 27442 # As a simple fix, exclude /usr/bin since it's not a real path. 27443 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27445 # a path prefixed by /cygdrive for fixpath to work. 27446 new_path="$CYGWIN_ROOT_PATH$input_path" 27447 fi 27448 fi 27449 27450 # remove trailing .exe if any 27451 new_path="${new_path/%.exe/}" 27452 27453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27454 27455 # First separate the path from the arguments. This will split at the first 27456 # space. 27457 complete="$VS_ENV_CMD" 27458 path="${complete%% *}" 27459 tmp="$complete EOL" 27460 arguments="${tmp#* }" 27461 27462 # Input might be given as Windows format, start by converting to 27463 # unix format. 27464 new_path="$path" 27465 27466 windows_path="$new_path" 27467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27468 unix_path=`$CYGPATH -u "$windows_path"` 27469 new_path="$unix_path" 27470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27472 new_path="$unix_path" 27473 fi 27474 27475 27476 # Now try to locate executable using which 27477 new_path=`$WHICH "$new_path" 2> /dev/null` 27478 27479 if test "x$new_path" = x; then 27480 # Oops. Which didn't find the executable. 27481 # The splitting of arguments from the executable at a space might have been incorrect, 27482 # since paths with space are more likely in Windows. Give it another try with the whole 27483 # argument. 27484 path="$complete" 27485 arguments="EOL" 27486 new_path="$path" 27487 27488 windows_path="$new_path" 27489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27490 unix_path=`$CYGPATH -u "$windows_path"` 27491 new_path="$unix_path" 27492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27494 new_path="$unix_path" 27495 fi 27496 27497 27498 new_path=`$WHICH "$new_path" 2> /dev/null` 27499 # bat and cmd files are not always considered executable in MSYS causing which 27500 # to not find them 27501 if test "x$new_path" = x \ 27502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27504 new_path="$path" 27505 27506 windows_path="$new_path" 27507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27508 unix_path=`$CYGPATH -u "$windows_path"` 27509 new_path="$unix_path" 27510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27512 new_path="$unix_path" 27513 fi 27514 27515 fi 27516 27517 if test "x$new_path" = x; then 27518 # It's still not found. Now this is an unrecoverable error. 27519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27520 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27521 has_space=`$ECHO "$complete" | $GREP " "` 27522 if test "x$has_space" != x; then 27523 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27525 fi 27526 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27527 fi 27528 fi 27529 27530 # Now new_path has a complete unix path to the binary 27531 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27532 # Keep paths in /bin as-is, but remove trailing .exe if any 27533 new_path="${new_path/%.exe/}" 27534 # Do not save /bin paths to all_fixpath_prefixes! 27535 else 27536 # Not in mixed or Windows style, start by that. 27537 new_path=`cmd //c echo $new_path` 27538 27539 input_path="$new_path" 27540 # Check if we need to convert this using DOS-style short mode. If the path 27541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27542 # take no chances and rewrite it. 27543 # Note: m4 eats our [], so we need to use [ and ] instead. 27544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27545 if test "x$has_forbidden_chars" != x; then 27546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27548 fi 27549 27550 # Output is in $new_path 27551 27552 windows_path="$new_path" 27553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27554 unix_path=`$CYGPATH -u "$windows_path"` 27555 new_path="$unix_path" 27556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27558 new_path="$unix_path" 27559 fi 27560 27561 # remove trailing .exe if any 27562 new_path="${new_path/%.exe/}" 27563 27564 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27565 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27566 fi 27567 27568 else 27569 # We're on a unix platform. Hooray! :) 27570 # First separate the path from the arguments. This will split at the first 27571 # space. 27572 complete="$VS_ENV_CMD" 27573 path="${complete%% *}" 27574 tmp="$complete EOL" 27575 arguments="${tmp#* }" 27576 27577 # Cannot rely on the command "which" here since it doesn't always work. 27578 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27579 if test -z "$is_absolute_path"; then 27580 # Path to executable is not absolute. Find it. 27581 IFS_save="$IFS" 27582 IFS=: 27583 for p in $PATH; do 27584 if test -f "$p/$path" && test -x "$p/$path"; then 27585 new_path="$p/$path" 27586 break 27587 fi 27588 done 27589 IFS="$IFS_save" 27590 else 27591 # This is an absolute path, we can use it without further modifications. 27592 new_path="$path" 27593 fi 27594 27595 if test "x$new_path" = x; then 27596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27597 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27598 has_space=`$ECHO "$complete" | $GREP " "` 27599 if test "x$has_space" != x; then 27600 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27601 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27602 fi 27603 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27604 fi 27605 fi 27606 27607 # Now join together the path and the arguments once again 27608 if test "x$arguments" != xEOL; then 27609 new_complete="$new_path ${arguments% *}" 27610 else 27611 new_complete="$new_path" 27612 fi 27613 27614 if test "x$complete" != "x$new_complete"; then 27615 VS_ENV_CMD="$new_complete" 27616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27617 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27618 fi 27619 fi 27620 27621 27622 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27624 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27625 27626 # We need to create a couple of temporary files. 27627 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 27628 $MKDIR -p $VS_ENV_TMP_DIR 27629 27630 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27631 # Instead create a shell script which will set the relevant variables when run. 27632 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27633 27634 unix_path="$WINPATH_VS_ENV_CMD" 27635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27636 windows_path=`$CYGPATH -m "$unix_path"` 27637 WINPATH_VS_ENV_CMD="$windows_path" 27638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27639 windows_path=`cmd //c echo $unix_path` 27640 WINPATH_VS_ENV_CMD="$windows_path" 27641 fi 27642 27643 WINPATH_BASH="$BASH" 27644 27645 unix_path="$WINPATH_BASH" 27646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27647 windows_path=`$CYGPATH -m "$unix_path"` 27648 WINPATH_BASH="$windows_path" 27649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27650 windows_path=`cmd //c echo $unix_path` 27651 WINPATH_BASH="$windows_path" 27652 fi 27653 27654 27655 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27656 # script (executable by bash) that will setup the important variables. 27657 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27658 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27659 # This will end up something like: 27660 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27661 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27662 # These will end up something like: 27663 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27664 # The trailing space for everyone except PATH is no typo, but is needed due 27665 # to trailing \ in the Windows paths. These will be stripped later. 27666 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27667 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27668 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27669 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27670 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27671 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27672 27673 # Now execute the newly created bat file. 27674 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27675 # Change directory so we don't need to mess with Windows paths in redirects. 27676 cd $VS_ENV_TMP_DIR 27677 cmd /c extract-vs-env.bat | $CAT 27678 cd $CURDIR 27679 27680 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27681 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27682 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27683 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27684 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27685 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27686 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27687 as_fn_error $? "Cannot continue" "$LINENO" 5 27688 fi 27689 27690 # Now set all paths and other env variables. This will allow the rest of 27691 # the configure script to find and run the compiler in the proper way. 27692 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27693 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27694 . $VS_ENV_TMP_DIR/set-vs-env.sh 27695 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27696 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27697 else 27698 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27699 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27700 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27701 fi 27702 27703 # At this point, we should have correct variables in the environment, or we can't continue. 27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27705 $as_echo_n "checking for Visual Studio variables... " >&6; } 27706 27707 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27708 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27710 $as_echo "present but broken" >&6; } 27711 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27712 else 27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27714 $as_echo "ok" >&6; } 27715 # Remove any trailing "\" ";" and " " from the variables. 27716 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 27717 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 27718 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27719 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27720 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27721 # Remove any paths containing # (typically F#) as that messes up make. This 27722 # is needed if visual studio was installed with F# support. 27723 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27724 27725 27726 27727 27728 27729 # Convert VS_INCLUDE into SYSROOT_CFLAGS 27730 OLDIFS="$IFS" 27731 IFS=";" 27732 for i in $VS_INCLUDE; do 27733 ipath=$i 27734 # Only process non-empty elements 27735 if test "x$ipath" != x; then 27736 IFS="$OLDIFS" 27737 # Check that directory exists before calling fixup_path 27738 testpath=$ipath 27739 27740 windows_path="$testpath" 27741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27742 unix_path=`$CYGPATH -u "$windows_path"` 27743 testpath="$unix_path" 27744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27745 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27746 testpath="$unix_path" 27747 fi 27748 27749 if test -d "$testpath"; then 27750 27751 # Only process if variable expands to non-empty 27752 27753 if test "x$ipath" != x; then 27754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27755 27756 # Input might be given as Windows format, start by converting to 27757 # unix format. 27758 path="$ipath" 27759 new_path=`$CYGPATH -u "$path"` 27760 27761 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27762 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27763 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27764 # "foo.exe" is OK but "foo" is an error. 27765 # 27766 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27767 # It is also a way to make sure we got the proper file name for the real test later on. 27768 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27769 if test "x$test_shortpath" = x; then 27770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27771 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27772 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 27773 fi 27774 27775 # Call helper function which possibly converts this using DOS-style short mode. 27776 # If so, the updated path is stored in $new_path. 27777 27778 input_path="$new_path" 27779 # Check if we need to convert this using DOS-style short mode. If the path 27780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27781 # take no chances and rewrite it. 27782 # Note: m4 eats our [], so we need to use [ and ] instead. 27783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27784 if test "x$has_forbidden_chars" != x; then 27785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27786 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27787 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27788 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27789 # Going to short mode and back again did indeed matter. Since short mode is 27790 # case insensitive, let's make it lowercase to improve readability. 27791 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27792 # Now convert it back to Unix-stile (cygpath) 27793 input_path=`$CYGPATH -u "$shortmode_path"` 27794 new_path="$input_path" 27795 fi 27796 fi 27797 27798 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27799 if test "x$test_cygdrive_prefix" = x; then 27800 # As a simple fix, exclude /usr/bin since it's not a real path. 27801 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27802 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27803 # a path prefixed by /cygdrive for fixpath to work. 27804 new_path="$CYGWIN_ROOT_PATH$input_path" 27805 fi 27806 fi 27807 27808 27809 if test "x$path" != "x$new_path"; then 27810 ipath="$new_path" 27811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27812 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27813 fi 27814 27815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27816 27817 path="$ipath" 27818 has_colon=`$ECHO $path | $GREP ^.:` 27819 new_path="$path" 27820 if test "x$has_colon" = x; then 27821 # Not in mixed or Windows style, start by that. 27822 new_path=`cmd //c echo $path` 27823 fi 27824 27825 27826 input_path="$new_path" 27827 # Check if we need to convert this using DOS-style short mode. If the path 27828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27829 # take no chances and rewrite it. 27830 # Note: m4 eats our [], so we need to use [ and ] instead. 27831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27832 if test "x$has_forbidden_chars" != x; then 27833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27834 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27835 fi 27836 27837 27838 windows_path="$new_path" 27839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27840 unix_path=`$CYGPATH -u "$windows_path"` 27841 new_path="$unix_path" 27842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27844 new_path="$unix_path" 27845 fi 27846 27847 if test "x$path" != "x$new_path"; then 27848 ipath="$new_path" 27849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27850 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27851 fi 27852 27853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27855 27856 else 27857 # We're on a unix platform. Hooray! :) 27858 path="$ipath" 27859 has_space=`$ECHO "$path" | $GREP " "` 27860 if test "x$has_space" != x; then 27861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27862 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27863 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27864 fi 27865 27866 # Use eval to expand a potential ~ 27867 eval path="$path" 27868 if test ! -f "$path" && test ! -d "$path"; then 27869 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 27870 fi 27871 27872 ipath="`cd "$path"; $THEPWDCMD -L`" 27873 fi 27874 fi 27875 27876 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 27877 fi 27878 IFS=";" 27879 fi 27880 done 27881 # Convert VS_LIB into SYSROOT_LDFLAGS 27882 for i in $VS_LIB; do 27883 libpath=$i 27884 # Only process non-empty elements 27885 if test "x$libpath" != x; then 27886 IFS="$OLDIFS" 27887 # Check that directory exists before calling fixup_path 27888 testpath=$libpath 27889 27890 windows_path="$testpath" 27891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27892 unix_path=`$CYGPATH -u "$windows_path"` 27893 testpath="$unix_path" 27894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27896 testpath="$unix_path" 27897 fi 27898 27899 if test -d "$testpath"; then 27900 27901 # Only process if variable expands to non-empty 27902 27903 if test "x$libpath" != x; then 27904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27905 27906 # Input might be given as Windows format, start by converting to 27907 # unix format. 27908 path="$libpath" 27909 new_path=`$CYGPATH -u "$path"` 27910 27911 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27912 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27913 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27914 # "foo.exe" is OK but "foo" is an error. 27915 # 27916 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27917 # It is also a way to make sure we got the proper file name for the real test later on. 27918 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27919 if test "x$test_shortpath" = x; then 27920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 27921 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 27922 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 27923 fi 27924 27925 # Call helper function which possibly converts this using DOS-style short mode. 27926 # If so, the updated path is stored in $new_path. 27927 27928 input_path="$new_path" 27929 # Check if we need to convert this using DOS-style short mode. If the path 27930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27931 # take no chances and rewrite it. 27932 # Note: m4 eats our [], so we need to use [ and ] instead. 27933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27934 if test "x$has_forbidden_chars" != x; then 27935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27939 # Going to short mode and back again did indeed matter. Since short mode is 27940 # case insensitive, let's make it lowercase to improve readability. 27941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27942 # Now convert it back to Unix-stile (cygpath) 27943 input_path=`$CYGPATH -u "$shortmode_path"` 27944 new_path="$input_path" 27945 fi 27946 fi 27947 27948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27949 if test "x$test_cygdrive_prefix" = x; then 27950 # As a simple fix, exclude /usr/bin since it's not a real path. 27951 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27953 # a path prefixed by /cygdrive for fixpath to work. 27954 new_path="$CYGWIN_ROOT_PATH$input_path" 27955 fi 27956 fi 27957 27958 27959 if test "x$path" != "x$new_path"; then 27960 libpath="$new_path" 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 27962 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 27963 fi 27964 27965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27966 27967 path="$libpath" 27968 has_colon=`$ECHO $path | $GREP ^.:` 27969 new_path="$path" 27970 if test "x$has_colon" = x; then 27971 # Not in mixed or Windows style, start by that. 27972 new_path=`cmd //c echo $path` 27973 fi 27974 27975 27976 input_path="$new_path" 27977 # Check if we need to convert this using DOS-style short mode. If the path 27978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27979 # take no chances and rewrite it. 27980 # Note: m4 eats our [], so we need to use [ and ] instead. 27981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27982 if test "x$has_forbidden_chars" != x; then 27983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27984 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27985 fi 27986 27987 27988 windows_path="$new_path" 27989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27990 unix_path=`$CYGPATH -u "$windows_path"` 27991 new_path="$unix_path" 27992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27994 new_path="$unix_path" 27995 fi 27996 27997 if test "x$path" != "x$new_path"; then 27998 libpath="$new_path" 27999 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28000 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28001 fi 28002 28003 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28004 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28005 28006 else 28007 # We're on a unix platform. Hooray! :) 28008 path="$libpath" 28009 has_space=`$ECHO "$path" | $GREP " "` 28010 if test "x$has_space" != x; then 28011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 28012 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 28013 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28014 fi 28015 28016 # Use eval to expand a potential ~ 28017 eval path="$path" 28018 if test ! -f "$path" && test ! -d "$path"; then 28019 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 28020 fi 28021 28022 libpath="`cd "$path"; $THEPWDCMD -L`" 28023 fi 28024 fi 28025 28026 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 28027 fi 28028 IFS=";" 28029 fi 28030 done 28031 IFS="$OLDIFS" 28032 fi 28033 else 28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28035 $as_echo "not found" >&6; } 28036 28037 if test "x$VS_ENV_CMD" = x; then 28038 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 28039 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 28040 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 28041 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 28042 else 28043 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 28044 $as_echo "$as_me: Running the extraction script failed." >&6;} 28045 fi 28046 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 28047 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 28048 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 28049 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 28050 as_fn_error $? "Cannot continue" "$LINENO" 5 28051 fi 28052 28053 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 28054 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 28055 PATH="$VS_PATH" 28056 # The microsoft toolchain also requires INCLUDE and LIB to be set. 28057 export INCLUDE="$VS_INCLUDE" 28058 export LIB="$VS_LIB" 28059 fi 28060 28061 # autoconf magic only relies on PATH, so update it if tools dir is specified 28062 OLD_PATH="$PATH" 28063 28064 # For solaris we really need solaris tools, and not the GNU equivalent. 28065 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 28066 # so add that to path before starting to probe. 28067 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 28068 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 28069 PATH="/usr/ccs/bin:$PATH" 28070 fi 28071 28072 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 28073 # override all other locations. 28074 if test "x$TOOLCHAIN_PATH" != x; then 28075 PATH=$TOOLCHAIN_PATH:$PATH 28076 fi 28077 28078 28079 # 28080 # Setup the compilers (CC and CXX) 28081 # 28082 28083 COMPILER_NAME=C 28084 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 28085 28086 if test "x$CC" != x; then 28087 # User has supplied compiler name already, always let that override. 28088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 28089 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 28090 if test "x`basename $CC`" = "x$CC"; then 28091 # A command without a complete path is provided, search $PATH. 28092 28093 for ac_prog in $CC 28094 do 28095 # Extract the first word of "$ac_prog", so it can be a program name with args. 28096 set dummy $ac_prog; ac_word=$2 28097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28098 $as_echo_n "checking for $ac_word... " >&6; } 28099 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28100 $as_echo_n "(cached) " >&6 28101 else 28102 case $POTENTIAL_CC in 28103 [\\/]* | ?:[\\/]*) 28104 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28105 ;; 28106 *) 28107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28108 for as_dir in $PATH 28109 do 28110 IFS=$as_save_IFS 28111 test -z "$as_dir" && as_dir=. 28112 for ac_exec_ext in '' $ac_executable_extensions; do 28113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28114 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28116 break 2 28117 fi 28118 done 28119 done 28120 IFS=$as_save_IFS 28121 28122 ;; 28123 esac 28124 fi 28125 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28126 if test -n "$POTENTIAL_CC"; then 28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28128 $as_echo "$POTENTIAL_CC" >&6; } 28129 else 28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28131 $as_echo "no" >&6; } 28132 fi 28133 28134 28135 test -n "$POTENTIAL_CC" && break 28136 done 28137 28138 if test "x$POTENTIAL_CC" != x; then 28139 CC=$POTENTIAL_CC 28140 else 28141 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 28142 fi 28143 else 28144 # Otherwise it might already be a complete path 28145 if test ! -x "$CC"; then 28146 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 28147 fi 28148 fi 28149 else 28150 # No user supplied value. Locate compiler ourselves. 28151 28152 # If we are cross compiling, assume cross compilation tools follows the 28153 # cross compilation standard where they are prefixed with the autoconf 28154 # standard name for the target. For example the binary 28155 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28156 # If we are not cross compiling, then the default compiler name will be 28157 # used. 28158 28159 CC= 28160 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28161 # before checking the rest of the PATH. 28162 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28163 # step, this should not be necessary. 28164 if test -n "$TOOLCHAIN_PATH"; then 28165 PATH_save="$PATH" 28166 PATH="$TOOLCHAIN_PATH" 28167 for ac_prog in $SEARCH_LIST 28168 do 28169 # Extract the first word of "$ac_prog", so it can be a program name with args. 28170 set dummy $ac_prog; ac_word=$2 28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28172 $as_echo_n "checking for $ac_word... " >&6; } 28173 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 28174 $as_echo_n "(cached) " >&6 28175 else 28176 case $TOOLCHAIN_PATH_CC in 28177 [\\/]* | ?:[\\/]*) 28178 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 28179 ;; 28180 *) 28181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28182 for as_dir in $PATH 28183 do 28184 IFS=$as_save_IFS 28185 test -z "$as_dir" && as_dir=. 28186 for ac_exec_ext in '' $ac_executable_extensions; do 28187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28188 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 28189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28190 break 2 28191 fi 28192 done 28193 done 28194 IFS=$as_save_IFS 28195 28196 ;; 28197 esac 28198 fi 28199 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 28200 if test -n "$TOOLCHAIN_PATH_CC"; then 28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 28202 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 28203 else 28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28205 $as_echo "no" >&6; } 28206 fi 28207 28208 28209 test -n "$TOOLCHAIN_PATH_CC" && break 28210 done 28211 28212 CC=$TOOLCHAIN_PATH_CC 28213 PATH="$PATH_save" 28214 fi 28215 28216 # AC_PATH_PROGS can't be run multiple times with the same variable, 28217 # so create a new name for this run. 28218 if test "x$CC" = x; then 28219 for ac_prog in $SEARCH_LIST 28220 do 28221 # Extract the first word of "$ac_prog", so it can be a program name with args. 28222 set dummy $ac_prog; ac_word=$2 28223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28224 $as_echo_n "checking for $ac_word... " >&6; } 28225 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28226 $as_echo_n "(cached) " >&6 28227 else 28228 case $POTENTIAL_CC in 28229 [\\/]* | ?:[\\/]*) 28230 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28231 ;; 28232 *) 28233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28234 for as_dir in $PATH 28235 do 28236 IFS=$as_save_IFS 28237 test -z "$as_dir" && as_dir=. 28238 for ac_exec_ext in '' $ac_executable_extensions; do 28239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28240 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28242 break 2 28243 fi 28244 done 28245 done 28246 IFS=$as_save_IFS 28247 28248 ;; 28249 esac 28250 fi 28251 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28252 if test -n "$POTENTIAL_CC"; then 28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28254 $as_echo "$POTENTIAL_CC" >&6; } 28255 else 28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28257 $as_echo "no" >&6; } 28258 fi 28259 28260 28261 test -n "$POTENTIAL_CC" && break 28262 done 28263 28264 CC=$POTENTIAL_CC 28265 fi 28266 28267 if test "x$CC" = x; then 28268 28269 # Print a helpful message on how to acquire the necessary build dependency. 28270 # devkit is the help tag: freetype, cups, pulse, alsa etc 28271 MISSING_DEPENDENCY=devkit 28272 28273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28274 cygwin_help $MISSING_DEPENDENCY 28275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28276 msys_help $MISSING_DEPENDENCY 28277 else 28278 PKGHANDLER_COMMAND= 28279 28280 case $PKGHANDLER in 28281 apt-get) 28282 apt_help $MISSING_DEPENDENCY ;; 28283 yum) 28284 yum_help $MISSING_DEPENDENCY ;; 28285 port) 28286 port_help $MISSING_DEPENDENCY ;; 28287 pkgutil) 28288 pkgutil_help $MISSING_DEPENDENCY ;; 28289 pkgadd) 28290 pkgadd_help $MISSING_DEPENDENCY ;; 28291 esac 28292 28293 if test "x$PKGHANDLER_COMMAND" != x; then 28294 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28295 fi 28296 fi 28297 28298 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28299 fi 28300 fi 28301 28302 # Now we have a compiler binary in CC. Make sure it's okay. 28303 28304 # Only process if variable expands to non-empty 28305 28306 if test "x$CC" != x; then 28307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28308 28309 # First separate the path from the arguments. This will split at the first 28310 # space. 28311 complete="$CC" 28312 path="${complete%% *}" 28313 tmp="$complete EOL" 28314 arguments="${tmp#* }" 28315 28316 # Input might be given as Windows format, start by converting to 28317 # unix format. 28318 new_path=`$CYGPATH -u "$path"` 28319 28320 # Now try to locate executable using which 28321 new_path=`$WHICH "$new_path" 2> /dev/null` 28322 # bat and cmd files are not always considered executable in cygwin causing which 28323 # to not find them 28324 if test "x$new_path" = x \ 28325 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28326 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28327 new_path=`$CYGPATH -u "$path"` 28328 fi 28329 if test "x$new_path" = x; then 28330 # Oops. Which didn't find the executable. 28331 # The splitting of arguments from the executable at a space might have been incorrect, 28332 # since paths with space are more likely in Windows. Give it another try with the whole 28333 # argument. 28334 path="$complete" 28335 arguments="EOL" 28336 new_path=`$CYGPATH -u "$path"` 28337 new_path=`$WHICH "$new_path" 2> /dev/null` 28338 # bat and cmd files are not always considered executable in cygwin causing which 28339 # to not find them 28340 if test "x$new_path" = x \ 28341 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28342 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28343 new_path=`$CYGPATH -u "$path"` 28344 fi 28345 if test "x$new_path" = x; then 28346 # It's still not found. Now this is an unrecoverable error. 28347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28348 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28349 has_space=`$ECHO "$complete" | $GREP " "` 28350 if test "x$has_space" != x; then 28351 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28352 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28353 fi 28354 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28355 fi 28356 fi 28357 28358 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28359 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28360 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28361 # "foo.exe" is OK but "foo" is an error. 28362 # 28363 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28364 # It is also a way to make sure we got the proper file name for the real test later on. 28365 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28366 if test "x$test_shortpath" = x; then 28367 # Short path failed, file does not exist as specified. 28368 # Try adding .exe or .cmd 28369 if test -f "${new_path}.exe"; then 28370 input_to_shortpath="${new_path}.exe" 28371 elif test -f "${new_path}.cmd"; then 28372 input_to_shortpath="${new_path}.cmd" 28373 else 28374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28375 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28376 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28377 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28378 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28379 fi 28380 else 28381 input_to_shortpath="$new_path" 28382 fi 28383 28384 # Call helper function which possibly converts this using DOS-style short mode. 28385 # If so, the updated path is stored in $new_path. 28386 new_path="$input_to_shortpath" 28387 28388 input_path="$input_to_shortpath" 28389 # Check if we need to convert this using DOS-style short mode. If the path 28390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28391 # take no chances and rewrite it. 28392 # Note: m4 eats our [], so we need to use [ and ] instead. 28393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28394 if test "x$has_forbidden_chars" != x; then 28395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28396 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28397 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28398 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28399 # Going to short mode and back again did indeed matter. Since short mode is 28400 # case insensitive, let's make it lowercase to improve readability. 28401 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28402 # Now convert it back to Unix-stile (cygpath) 28403 input_path=`$CYGPATH -u "$shortmode_path"` 28404 new_path="$input_path" 28405 fi 28406 fi 28407 28408 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28409 if test "x$test_cygdrive_prefix" = x; then 28410 # As a simple fix, exclude /usr/bin since it's not a real path. 28411 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28412 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28413 # a path prefixed by /cygdrive for fixpath to work. 28414 new_path="$CYGWIN_ROOT_PATH$input_path" 28415 fi 28416 fi 28417 28418 # remove trailing .exe if any 28419 new_path="${new_path/%.exe/}" 28420 28421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28422 28423 # First separate the path from the arguments. This will split at the first 28424 # space. 28425 complete="$CC" 28426 path="${complete%% *}" 28427 tmp="$complete EOL" 28428 arguments="${tmp#* }" 28429 28430 # Input might be given as Windows format, start by converting to 28431 # unix format. 28432 new_path="$path" 28433 28434 windows_path="$new_path" 28435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28436 unix_path=`$CYGPATH -u "$windows_path"` 28437 new_path="$unix_path" 28438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28440 new_path="$unix_path" 28441 fi 28442 28443 28444 # Now try to locate executable using which 28445 new_path=`$WHICH "$new_path" 2> /dev/null` 28446 28447 if test "x$new_path" = x; then 28448 # Oops. Which didn't find the executable. 28449 # The splitting of arguments from the executable at a space might have been incorrect, 28450 # since paths with space are more likely in Windows. Give it another try with the whole 28451 # argument. 28452 path="$complete" 28453 arguments="EOL" 28454 new_path="$path" 28455 28456 windows_path="$new_path" 28457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28458 unix_path=`$CYGPATH -u "$windows_path"` 28459 new_path="$unix_path" 28460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28461 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28462 new_path="$unix_path" 28463 fi 28464 28465 28466 new_path=`$WHICH "$new_path" 2> /dev/null` 28467 # bat and cmd files are not always considered executable in MSYS causing which 28468 # to not find them 28469 if test "x$new_path" = x \ 28470 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28471 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28472 new_path="$path" 28473 28474 windows_path="$new_path" 28475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28476 unix_path=`$CYGPATH -u "$windows_path"` 28477 new_path="$unix_path" 28478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28480 new_path="$unix_path" 28481 fi 28482 28483 fi 28484 28485 if test "x$new_path" = x; then 28486 # It's still not found. Now this is an unrecoverable error. 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28488 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28489 has_space=`$ECHO "$complete" | $GREP " "` 28490 if test "x$has_space" != x; then 28491 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28492 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28493 fi 28494 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28495 fi 28496 fi 28497 28498 # Now new_path has a complete unix path to the binary 28499 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28500 # Keep paths in /bin as-is, but remove trailing .exe if any 28501 new_path="${new_path/%.exe/}" 28502 # Do not save /bin paths to all_fixpath_prefixes! 28503 else 28504 # Not in mixed or Windows style, start by that. 28505 new_path=`cmd //c echo $new_path` 28506 28507 input_path="$new_path" 28508 # Check if we need to convert this using DOS-style short mode. If the path 28509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28510 # take no chances and rewrite it. 28511 # Note: m4 eats our [], so we need to use [ and ] instead. 28512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28513 if test "x$has_forbidden_chars" != x; then 28514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28515 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28516 fi 28517 28518 # Output is in $new_path 28519 28520 windows_path="$new_path" 28521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28522 unix_path=`$CYGPATH -u "$windows_path"` 28523 new_path="$unix_path" 28524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28526 new_path="$unix_path" 28527 fi 28528 28529 # remove trailing .exe if any 28530 new_path="${new_path/%.exe/}" 28531 28532 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28533 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28534 fi 28535 28536 else 28537 # We're on a unix platform. Hooray! :) 28538 # First separate the path from the arguments. This will split at the first 28539 # space. 28540 complete="$CC" 28541 path="${complete%% *}" 28542 tmp="$complete EOL" 28543 arguments="${tmp#* }" 28544 28545 # Cannot rely on the command "which" here since it doesn't always work. 28546 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28547 if test -z "$is_absolute_path"; then 28548 # Path to executable is not absolute. Find it. 28549 IFS_save="$IFS" 28550 IFS=: 28551 for p in $PATH; do 28552 if test -f "$p/$path" && test -x "$p/$path"; then 28553 new_path="$p/$path" 28554 break 28555 fi 28556 done 28557 IFS="$IFS_save" 28558 else 28559 # This is an absolute path, we can use it without further modifications. 28560 new_path="$path" 28561 fi 28562 28563 if test "x$new_path" = x; then 28564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28565 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28566 has_space=`$ECHO "$complete" | $GREP " "` 28567 if test "x$has_space" != x; then 28568 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28569 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28570 fi 28571 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28572 fi 28573 fi 28574 28575 # Now join together the path and the arguments once again 28576 if test "x$arguments" != xEOL; then 28577 new_complete="$new_path ${arguments% *}" 28578 else 28579 new_complete="$new_path" 28580 fi 28581 28582 if test "x$complete" != "x$new_complete"; then 28583 CC="$new_complete" 28584 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28585 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28586 fi 28587 fi 28588 28589 TEST_COMPILER="$CC" 28590 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28591 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28592 if test "x$OPENJDK_BUILD_OS" != xaix; then 28593 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28595 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28596 28597 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28598 # Follow a chain of symbolic links. Use readlink 28599 # where it exists, else fall back to horribly 28600 # complicated shell code. 28601 if test "x$READLINK_TESTED" != yes; then 28602 # On MacOSX there is a readlink tool with a different 28603 # purpose than the GNU readlink tool. Check the found readlink. 28604 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28605 if test "x$ISGNU" = x; then 28606 # A readlink that we do not know how to use. 28607 # Are there other non-GNU readlinks out there? 28608 READLINK_TESTED=yes 28609 READLINK= 28610 fi 28611 fi 28612 28613 if test "x$READLINK" != x; then 28614 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28615 else 28616 # Save the current directory for restoring afterwards 28617 STARTDIR=$PWD 28618 COUNTER=0 28619 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28620 sym_link_file=`$BASENAME $TEST_COMPILER` 28621 cd $sym_link_dir 28622 # Use -P flag to resolve symlinks in directories. 28623 cd `$THEPWDCMD -P` 28624 sym_link_dir=`$THEPWDCMD -P` 28625 # Resolve file symlinks 28626 while test $COUNTER -lt 20; do 28627 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28628 if test "x$ISLINK" == x; then 28629 # This is not a symbolic link! We are done! 28630 break 28631 fi 28632 # Again resolve directory symlinks since the target of the just found 28633 # link could be in a different directory 28634 cd `$DIRNAME $ISLINK` 28635 sym_link_dir=`$THEPWDCMD -P` 28636 sym_link_file=`$BASENAME $ISLINK` 28637 let COUNTER=COUNTER+1 28638 done 28639 cd $STARTDIR 28640 TEST_COMPILER=$sym_link_dir/$sym_link_file 28641 fi 28642 fi 28643 28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28645 $as_echo "$TEST_COMPILER" >&6; } 28646 fi 28647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28648 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28649 28650 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28651 if test "x$COMPILER_BASENAME" = "xccache"; then 28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28653 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28654 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28655 # We want to control ccache invocation ourselves, so ignore this cc and try 28656 # searching again. 28657 28658 # Remove the path to the fake ccache cc from the PATH 28659 RETRY_COMPILER_SAVED_PATH="$PATH" 28660 COMPILER_DIRNAME=`$DIRNAME $CC` 28661 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28662 28663 # Try again looking for our compiler 28664 if test -n "$ac_tool_prefix"; then 28665 for ac_prog in $TOOLCHAIN_CC_BINARY 28666 do 28667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28670 $as_echo_n "checking for $ac_word... " >&6; } 28671 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28672 $as_echo_n "(cached) " >&6 28673 else 28674 if test -n "$PROPER_COMPILER_CC"; then 28675 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28676 else 28677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28678 for as_dir in $PATH 28679 do 28680 IFS=$as_save_IFS 28681 test -z "$as_dir" && as_dir=. 28682 for ac_exec_ext in '' $ac_executable_extensions; do 28683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28684 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28686 break 2 28687 fi 28688 done 28689 done 28690 IFS=$as_save_IFS 28691 28692 fi 28693 fi 28694 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28695 if test -n "$PROPER_COMPILER_CC"; then 28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28697 $as_echo "$PROPER_COMPILER_CC" >&6; } 28698 else 28699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28700 $as_echo "no" >&6; } 28701 fi 28702 28703 28704 test -n "$PROPER_COMPILER_CC" && break 28705 done 28706 fi 28707 if test -z "$PROPER_COMPILER_CC"; then 28708 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28709 for ac_prog in $TOOLCHAIN_CC_BINARY 28710 do 28711 # Extract the first word of "$ac_prog", so it can be a program name with args. 28712 set dummy $ac_prog; ac_word=$2 28713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28714 $as_echo_n "checking for $ac_word... " >&6; } 28715 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28716 $as_echo_n "(cached) " >&6 28717 else 28718 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28719 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28720 else 28721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28722 for as_dir in $PATH 28723 do 28724 IFS=$as_save_IFS 28725 test -z "$as_dir" && as_dir=. 28726 for ac_exec_ext in '' $ac_executable_extensions; do 28727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28728 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28730 break 2 28731 fi 28732 done 28733 done 28734 IFS=$as_save_IFS 28735 28736 fi 28737 fi 28738 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28739 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28741 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28742 else 28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28744 $as_echo "no" >&6; } 28745 fi 28746 28747 28748 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28749 done 28750 28751 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28752 PROPER_COMPILER_CC="" 28753 else 28754 case $cross_compiling:$ac_tool_warned in 28755 yes:) 28756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28758 ac_tool_warned=yes ;; 28759 esac 28760 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28761 fi 28762 fi 28763 28764 28765 # Only process if variable expands to non-empty 28766 28767 if test "x$PROPER_COMPILER_CC" != x; then 28768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28769 28770 # First separate the path from the arguments. This will split at the first 28771 # space. 28772 complete="$PROPER_COMPILER_CC" 28773 path="${complete%% *}" 28774 tmp="$complete EOL" 28775 arguments="${tmp#* }" 28776 28777 # Input might be given as Windows format, start by converting to 28778 # unix format. 28779 new_path=`$CYGPATH -u "$path"` 28780 28781 # Now try to locate executable using which 28782 new_path=`$WHICH "$new_path" 2> /dev/null` 28783 # bat and cmd files are not always considered executable in cygwin causing which 28784 # to not find them 28785 if test "x$new_path" = x \ 28786 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28787 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28788 new_path=`$CYGPATH -u "$path"` 28789 fi 28790 if test "x$new_path" = x; then 28791 # Oops. Which didn't find the executable. 28792 # The splitting of arguments from the executable at a space might have been incorrect, 28793 # since paths with space are more likely in Windows. Give it another try with the whole 28794 # argument. 28795 path="$complete" 28796 arguments="EOL" 28797 new_path=`$CYGPATH -u "$path"` 28798 new_path=`$WHICH "$new_path" 2> /dev/null` 28799 # bat and cmd files are not always considered executable in cygwin causing which 28800 # to not find them 28801 if test "x$new_path" = x \ 28802 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28803 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28804 new_path=`$CYGPATH -u "$path"` 28805 fi 28806 if test "x$new_path" = x; then 28807 # It's still not found. Now this is an unrecoverable error. 28808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28809 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28810 has_space=`$ECHO "$complete" | $GREP " "` 28811 if test "x$has_space" != x; then 28812 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28813 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28814 fi 28815 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28816 fi 28817 fi 28818 28819 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28820 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28821 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28822 # "foo.exe" is OK but "foo" is an error. 28823 # 28824 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28825 # It is also a way to make sure we got the proper file name for the real test later on. 28826 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28827 if test "x$test_shortpath" = x; then 28828 # Short path failed, file does not exist as specified. 28829 # Try adding .exe or .cmd 28830 if test -f "${new_path}.exe"; then 28831 input_to_shortpath="${new_path}.exe" 28832 elif test -f "${new_path}.cmd"; then 28833 input_to_shortpath="${new_path}.cmd" 28834 else 28835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28836 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28837 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28838 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28839 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28840 fi 28841 else 28842 input_to_shortpath="$new_path" 28843 fi 28844 28845 # Call helper function which possibly converts this using DOS-style short mode. 28846 # If so, the updated path is stored in $new_path. 28847 new_path="$input_to_shortpath" 28848 28849 input_path="$input_to_shortpath" 28850 # Check if we need to convert this using DOS-style short mode. If the path 28851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28852 # take no chances and rewrite it. 28853 # Note: m4 eats our [], so we need to use [ and ] instead. 28854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28855 if test "x$has_forbidden_chars" != x; then 28856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28857 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28858 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28859 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28860 # Going to short mode and back again did indeed matter. Since short mode is 28861 # case insensitive, let's make it lowercase to improve readability. 28862 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28863 # Now convert it back to Unix-stile (cygpath) 28864 input_path=`$CYGPATH -u "$shortmode_path"` 28865 new_path="$input_path" 28866 fi 28867 fi 28868 28869 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28870 if test "x$test_cygdrive_prefix" = x; then 28871 # As a simple fix, exclude /usr/bin since it's not a real path. 28872 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28873 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28874 # a path prefixed by /cygdrive for fixpath to work. 28875 new_path="$CYGWIN_ROOT_PATH$input_path" 28876 fi 28877 fi 28878 28879 # remove trailing .exe if any 28880 new_path="${new_path/%.exe/}" 28881 28882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28883 28884 # First separate the path from the arguments. This will split at the first 28885 # space. 28886 complete="$PROPER_COMPILER_CC" 28887 path="${complete%% *}" 28888 tmp="$complete EOL" 28889 arguments="${tmp#* }" 28890 28891 # Input might be given as Windows format, start by converting to 28892 # unix format. 28893 new_path="$path" 28894 28895 windows_path="$new_path" 28896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28897 unix_path=`$CYGPATH -u "$windows_path"` 28898 new_path="$unix_path" 28899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28900 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28901 new_path="$unix_path" 28902 fi 28903 28904 28905 # Now try to locate executable using which 28906 new_path=`$WHICH "$new_path" 2> /dev/null` 28907 28908 if test "x$new_path" = x; then 28909 # Oops. Which didn't find the executable. 28910 # The splitting of arguments from the executable at a space might have been incorrect, 28911 # since paths with space are more likely in Windows. Give it another try with the whole 28912 # argument. 28913 path="$complete" 28914 arguments="EOL" 28915 new_path="$path" 28916 28917 windows_path="$new_path" 28918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28919 unix_path=`$CYGPATH -u "$windows_path"` 28920 new_path="$unix_path" 28921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28923 new_path="$unix_path" 28924 fi 28925 28926 28927 new_path=`$WHICH "$new_path" 2> /dev/null` 28928 # bat and cmd files are not always considered executable in MSYS causing which 28929 # to not find them 28930 if test "x$new_path" = x \ 28931 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28932 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28933 new_path="$path" 28934 28935 windows_path="$new_path" 28936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28937 unix_path=`$CYGPATH -u "$windows_path"` 28938 new_path="$unix_path" 28939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28940 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28941 new_path="$unix_path" 28942 fi 28943 28944 fi 28945 28946 if test "x$new_path" = x; then 28947 # It's still not found. Now this is an unrecoverable error. 28948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28949 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28950 has_space=`$ECHO "$complete" | $GREP " "` 28951 if test "x$has_space" != x; then 28952 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28953 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28954 fi 28955 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28956 fi 28957 fi 28958 28959 # Now new_path has a complete unix path to the binary 28960 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28961 # Keep paths in /bin as-is, but remove trailing .exe if any 28962 new_path="${new_path/%.exe/}" 28963 # Do not save /bin paths to all_fixpath_prefixes! 28964 else 28965 # Not in mixed or Windows style, start by that. 28966 new_path=`cmd //c echo $new_path` 28967 28968 input_path="$new_path" 28969 # Check if we need to convert this using DOS-style short mode. If the path 28970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28971 # take no chances and rewrite it. 28972 # Note: m4 eats our [], so we need to use [ and ] instead. 28973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28974 if test "x$has_forbidden_chars" != x; then 28975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28976 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28977 fi 28978 28979 # Output is in $new_path 28980 28981 windows_path="$new_path" 28982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28983 unix_path=`$CYGPATH -u "$windows_path"` 28984 new_path="$unix_path" 28985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28987 new_path="$unix_path" 28988 fi 28989 28990 # remove trailing .exe if any 28991 new_path="${new_path/%.exe/}" 28992 28993 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28994 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28995 fi 28996 28997 else 28998 # We're on a unix platform. Hooray! :) 28999 # First separate the path from the arguments. This will split at the first 29000 # space. 29001 complete="$PROPER_COMPILER_CC" 29002 path="${complete%% *}" 29003 tmp="$complete EOL" 29004 arguments="${tmp#* }" 29005 29006 # Cannot rely on the command "which" here since it doesn't always work. 29007 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29008 if test -z "$is_absolute_path"; then 29009 # Path to executable is not absolute. Find it. 29010 IFS_save="$IFS" 29011 IFS=: 29012 for p in $PATH; do 29013 if test -f "$p/$path" && test -x "$p/$path"; then 29014 new_path="$p/$path" 29015 break 29016 fi 29017 done 29018 IFS="$IFS_save" 29019 else 29020 # This is an absolute path, we can use it without further modifications. 29021 new_path="$path" 29022 fi 29023 29024 if test "x$new_path" = x; then 29025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29026 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29027 has_space=`$ECHO "$complete" | $GREP " "` 29028 if test "x$has_space" != x; then 29029 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29030 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29031 fi 29032 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29033 fi 29034 fi 29035 29036 # Now join together the path and the arguments once again 29037 if test "x$arguments" != xEOL; then 29038 new_complete="$new_path ${arguments% *}" 29039 else 29040 new_complete="$new_path" 29041 fi 29042 29043 if test "x$complete" != "x$new_complete"; then 29044 PROPER_COMPILER_CC="$new_complete" 29045 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 29046 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 29047 fi 29048 fi 29049 29050 PATH="$RETRY_COMPILER_SAVED_PATH" 29051 29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 29053 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 29054 29055 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29056 # Follow a chain of symbolic links. Use readlink 29057 # where it exists, else fall back to horribly 29058 # complicated shell code. 29059 if test "x$READLINK_TESTED" != yes; then 29060 # On MacOSX there is a readlink tool with a different 29061 # purpose than the GNU readlink tool. Check the found readlink. 29062 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29063 if test "x$ISGNU" = x; then 29064 # A readlink that we do not know how to use. 29065 # Are there other non-GNU readlinks out there? 29066 READLINK_TESTED=yes 29067 READLINK= 29068 fi 29069 fi 29070 29071 if test "x$READLINK" != x; then 29072 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 29073 else 29074 # Save the current directory for restoring afterwards 29075 STARTDIR=$PWD 29076 COUNTER=0 29077 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 29078 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 29079 cd $sym_link_dir 29080 # Use -P flag to resolve symlinks in directories. 29081 cd `$THEPWDCMD -P` 29082 sym_link_dir=`$THEPWDCMD -P` 29083 # Resolve file symlinks 29084 while test $COUNTER -lt 20; do 29085 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29086 if test "x$ISLINK" == x; then 29087 # This is not a symbolic link! We are done! 29088 break 29089 fi 29090 # Again resolve directory symlinks since the target of the just found 29091 # link could be in a different directory 29092 cd `$DIRNAME $ISLINK` 29093 sym_link_dir=`$THEPWDCMD -P` 29094 sym_link_file=`$BASENAME $ISLINK` 29095 let COUNTER=COUNTER+1 29096 done 29097 cd $STARTDIR 29098 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 29099 fi 29100 fi 29101 29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29103 $as_echo "$PROPER_COMPILER_CC" >&6; } 29104 CC="$PROPER_COMPILER_CC" 29105 else 29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 29107 $as_echo "no, keeping CC" >&6; } 29108 fi 29109 29110 29111 COMPILER=$CC 29112 COMPILER_NAME=$COMPILER_NAME 29113 29114 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29115 # cc -V output typically looks like 29116 # cc: Sun C 5.12 Linux_i386 2011/11/16 29117 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29118 # Check that this is likely to be the Solaris Studio cc. 29119 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29120 if test $? -ne 0; then 29121 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29122 { $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 29123 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29124 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29125 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29126 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29127 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29128 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29129 fi 29130 # Remove usage instructions (if present), and 29131 # collapse compiler output into a single line 29132 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29133 $SED -e 's/ *[Uu]sage:.*//'` 29134 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29135 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29136 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29137 # xlc -qversion output typically looks like 29138 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29139 # Version: 11.01.0000.0015 29140 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29141 # Check that this is likely to be the IBM XL C compiler. 29142 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29143 if test $? -ne 0; then 29144 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29145 { $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 29146 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29147 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29148 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29149 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29150 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29151 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29152 fi 29153 # Collapse compiler output into a single line 29154 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29155 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29156 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29157 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29158 # There is no specific version flag, but all output starts with a version string. 29159 # First line typically looks something like: 29160 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29161 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29162 # Check that this is likely to be Microsoft CL.EXE. 29163 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29164 if test $? -ne 0; then 29165 { $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 29166 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29168 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29169 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29170 fi 29171 # Collapse compiler output into a single line 29172 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29173 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29174 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29175 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29176 # gcc --version output typically looks like 29177 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29178 # Copyright (C) 2013 Free Software Foundation, Inc. 29179 # This is free software; see the source for copying conditions. There is NO 29180 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29181 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29182 # Check that this is likely to be GCC. 29183 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29184 if test $? -ne 0; then 29185 { $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 29186 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29187 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29188 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29189 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29190 fi 29191 # Remove Copyright and legalese from version string, and 29192 # collapse into a single line 29193 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29194 $SED -e 's/ *Copyright .*//'` 29195 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29196 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 29197 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29198 # clang --version output typically looks like 29199 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29200 # clang version 3.3 (tags/RELEASE_33/final) 29201 # or 29202 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29203 # Target: x86_64-pc-linux-gnu 29204 # Thread model: posix 29205 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29206 # Check that this is likely to be clang 29207 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29208 if test $? -ne 0; then 29209 { $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 29210 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29211 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29212 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29213 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29214 fi 29215 # Collapse compiler output into a single line 29216 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29217 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29218 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29219 else 29220 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29221 fi 29222 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29223 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29224 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29225 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 29226 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29228 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29229 29230 29231 # Now that we have resolved CC ourself, let autoconf have its go at it 29232 ac_ext=c 29233 ac_cpp='$CPP $CPPFLAGS' 29234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29236 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29237 if test -n "$ac_tool_prefix"; then 29238 for ac_prog in $CC 29239 do 29240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29243 $as_echo_n "checking for $ac_word... " >&6; } 29244 if ${ac_cv_prog_CC+:} false; then : 29245 $as_echo_n "(cached) " >&6 29246 else 29247 if test -n "$CC"; then 29248 ac_cv_prog_CC="$CC" # Let the user override the test. 29249 else 29250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29251 for as_dir in $PATH 29252 do 29253 IFS=$as_save_IFS 29254 test -z "$as_dir" && as_dir=. 29255 for ac_exec_ext in '' $ac_executable_extensions; do 29256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29259 break 2 29260 fi 29261 done 29262 done 29263 IFS=$as_save_IFS 29264 29265 fi 29266 fi 29267 CC=$ac_cv_prog_CC 29268 if test -n "$CC"; then 29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29270 $as_echo "$CC" >&6; } 29271 else 29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29273 $as_echo "no" >&6; } 29274 fi 29275 29276 29277 test -n "$CC" && break 29278 done 29279 fi 29280 if test -z "$CC"; then 29281 ac_ct_CC=$CC 29282 for ac_prog in $CC 29283 do 29284 # Extract the first word of "$ac_prog", so it can be a program name with args. 29285 set dummy $ac_prog; ac_word=$2 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29287 $as_echo_n "checking for $ac_word... " >&6; } 29288 if ${ac_cv_prog_ac_ct_CC+:} false; then : 29289 $as_echo_n "(cached) " >&6 29290 else 29291 if test -n "$ac_ct_CC"; then 29292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29293 else 29294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29295 for as_dir in $PATH 29296 do 29297 IFS=$as_save_IFS 29298 test -z "$as_dir" && as_dir=. 29299 for ac_exec_ext in '' $ac_executable_extensions; do 29300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29301 ac_cv_prog_ac_ct_CC="$ac_prog" 29302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29303 break 2 29304 fi 29305 done 29306 done 29307 IFS=$as_save_IFS 29308 29309 fi 29310 fi 29311 ac_ct_CC=$ac_cv_prog_ac_ct_CC 29312 if test -n "$ac_ct_CC"; then 29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29314 $as_echo "$ac_ct_CC" >&6; } 29315 else 29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29317 $as_echo "no" >&6; } 29318 fi 29319 29320 29321 test -n "$ac_ct_CC" && break 29322 done 29323 29324 if test "x$ac_ct_CC" = x; then 29325 CC="" 29326 else 29327 case $cross_compiling:$ac_tool_warned in 29328 yes:) 29329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29331 ac_tool_warned=yes ;; 29332 esac 29333 CC=$ac_ct_CC 29334 fi 29335 fi 29336 29337 29338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29340 as_fn_error $? "no acceptable C compiler found in \$PATH 29341 See \`config.log' for more details" "$LINENO" 5; } 29342 29343 # Provide some information about the compiler. 29344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29345 set X $ac_compile 29346 ac_compiler=$2 29347 for ac_option in --version -v -V -qversion; do 29348 { { ac_try="$ac_compiler $ac_option >&5" 29349 case "(($ac_try" in 29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29351 *) ac_try_echo=$ac_try;; 29352 esac 29353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29354 $as_echo "$ac_try_echo"; } >&5 29355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29356 ac_status=$? 29357 if test -s conftest.err; then 29358 sed '10a\ 29359 ... rest of stderr output deleted ... 29360 10q' conftest.err >conftest.er1 29361 cat conftest.er1 >&5 29362 fi 29363 rm -f conftest.er1 conftest.err 29364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29365 test $ac_status = 0; } 29366 done 29367 29368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29369 /* end confdefs.h. */ 29370 29371 int 29372 main () 29373 { 29374 29375 ; 29376 return 0; 29377 } 29378 _ACEOF 29379 ac_clean_files_save=$ac_clean_files 29380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29381 # Try to create an executable without -o first, disregard a.out. 29382 # It will help us diagnose broken compilers, and finding out an intuition 29383 # of exeext. 29384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29385 $as_echo_n "checking whether the C compiler works... " >&6; } 29386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29387 29388 # The possible output files: 29389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29390 29391 ac_rmfiles= 29392 for ac_file in $ac_files 29393 do 29394 case $ac_file in 29395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29396 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29397 esac 29398 done 29399 rm -f $ac_rmfiles 29400 29401 if { { ac_try="$ac_link_default" 29402 case "(($ac_try" in 29403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29404 *) ac_try_echo=$ac_try;; 29405 esac 29406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29407 $as_echo "$ac_try_echo"; } >&5 29408 (eval "$ac_link_default") 2>&5 29409 ac_status=$? 29410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29411 test $ac_status = 0; }; then : 29412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29414 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29415 # so that the user can short-circuit this test for compilers unknown to 29416 # Autoconf. 29417 for ac_file in $ac_files '' 29418 do 29419 test -f "$ac_file" || continue 29420 case $ac_file in 29421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29422 ;; 29423 [ab].out ) 29424 # We found the default executable, but exeext='' is most 29425 # certainly right. 29426 break;; 29427 *.* ) 29428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29429 then :; else 29430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29431 fi 29432 # We set ac_cv_exeext here because the later test for it is not 29433 # safe: cross compilers may not add the suffix if given an `-o' 29434 # argument, so we may need to know it at that point already. 29435 # Even if this section looks crufty: it has the advantage of 29436 # actually working. 29437 break;; 29438 * ) 29439 break;; 29440 esac 29441 done 29442 test "$ac_cv_exeext" = no && ac_cv_exeext= 29443 29444 else 29445 ac_file='' 29446 fi 29447 if test -z "$ac_file"; then : 29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29449 $as_echo "no" >&6; } 29450 $as_echo "$as_me: failed program was:" >&5 29451 sed 's/^/| /' conftest.$ac_ext >&5 29452 29453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29455 as_fn_error 77 "C compiler cannot create executables 29456 See \`config.log' for more details" "$LINENO" 5; } 29457 else 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29459 $as_echo "yes" >&6; } 29460 fi 29461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29462 $as_echo_n "checking for C compiler default output file name... " >&6; } 29463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29464 $as_echo "$ac_file" >&6; } 29465 ac_exeext=$ac_cv_exeext 29466 29467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29468 ac_clean_files=$ac_clean_files_save 29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29470 $as_echo_n "checking for suffix of executables... " >&6; } 29471 if { { ac_try="$ac_link" 29472 case "(($ac_try" in 29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29474 *) ac_try_echo=$ac_try;; 29475 esac 29476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29477 $as_echo "$ac_try_echo"; } >&5 29478 (eval "$ac_link") 2>&5 29479 ac_status=$? 29480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29481 test $ac_status = 0; }; then : 29482 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29484 # work properly (i.e., refer to `conftest.exe'), while it won't with 29485 # `rm'. 29486 for ac_file in conftest.exe conftest conftest.*; do 29487 test -f "$ac_file" || continue 29488 case $ac_file in 29489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29491 break;; 29492 * ) break;; 29493 esac 29494 done 29495 else 29496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29499 See \`config.log' for more details" "$LINENO" 5; } 29500 fi 29501 rm -f conftest conftest$ac_cv_exeext 29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29503 $as_echo "$ac_cv_exeext" >&6; } 29504 29505 rm -f conftest.$ac_ext 29506 EXEEXT=$ac_cv_exeext 29507 ac_exeext=$EXEEXT 29508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29509 /* end confdefs.h. */ 29510 #include <stdio.h> 29511 int 29512 main () 29513 { 29514 FILE *f = fopen ("conftest.out", "w"); 29515 return ferror (f) || fclose (f) != 0; 29516 29517 ; 29518 return 0; 29519 } 29520 _ACEOF 29521 ac_clean_files="$ac_clean_files conftest.out" 29522 # Check that the compiler produces executables we can run. If not, either 29523 # the compiler is broken, or we cross compile. 29524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29525 $as_echo_n "checking whether we are cross compiling... " >&6; } 29526 if test "$cross_compiling" != yes; then 29527 { { 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; } 29538 if { ac_try='./conftest$ac_cv_exeext' 29539 { { case "(($ac_try" in 29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29541 *) ac_try_echo=$ac_try;; 29542 esac 29543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29544 $as_echo "$ac_try_echo"; } >&5 29545 (eval "$ac_try") 2>&5 29546 ac_status=$? 29547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29548 test $ac_status = 0; }; }; then 29549 cross_compiling=no 29550 else 29551 if test "$cross_compiling" = maybe; then 29552 cross_compiling=yes 29553 else 29554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29556 as_fn_error $? "cannot run C compiled programs. 29557 If you meant to cross compile, use \`--host'. 29558 See \`config.log' for more details" "$LINENO" 5; } 29559 fi 29560 fi 29561 fi 29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29563 $as_echo "$cross_compiling" >&6; } 29564 29565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29566 ac_clean_files=$ac_clean_files_save 29567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29568 $as_echo_n "checking for suffix of object files... " >&6; } 29569 if ${ac_cv_objext+:} false; then : 29570 $as_echo_n "(cached) " >&6 29571 else 29572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29573 /* end confdefs.h. */ 29574 29575 int 29576 main () 29577 { 29578 29579 ; 29580 return 0; 29581 } 29582 _ACEOF 29583 rm -f conftest.o conftest.obj 29584 if { { ac_try="$ac_compile" 29585 case "(($ac_try" in 29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29587 *) ac_try_echo=$ac_try;; 29588 esac 29589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29590 $as_echo "$ac_try_echo"; } >&5 29591 (eval "$ac_compile") 2>&5 29592 ac_status=$? 29593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29594 test $ac_status = 0; }; then : 29595 for ac_file in conftest.o conftest.obj conftest.*; do 29596 test -f "$ac_file" || continue; 29597 case $ac_file in 29598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29600 break;; 29601 esac 29602 done 29603 else 29604 $as_echo "$as_me: failed program was:" >&5 29605 sed 's/^/| /' conftest.$ac_ext >&5 29606 29607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29609 as_fn_error $? "cannot compute suffix of object files: cannot compile 29610 See \`config.log' for more details" "$LINENO" 5; } 29611 fi 29612 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29613 fi 29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29615 $as_echo "$ac_cv_objext" >&6; } 29616 OBJEXT=$ac_cv_objext 29617 ac_objext=$OBJEXT 29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29620 if ${ac_cv_c_compiler_gnu+:} false; then : 29621 $as_echo_n "(cached) " >&6 29622 else 29623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29624 /* end confdefs.h. */ 29625 29626 int 29627 main () 29628 { 29629 #ifndef __GNUC__ 29630 choke me 29631 #endif 29632 29633 ; 29634 return 0; 29635 } 29636 _ACEOF 29637 if ac_fn_c_try_compile "$LINENO"; then : 29638 ac_compiler_gnu=yes 29639 else 29640 ac_compiler_gnu=no 29641 fi 29642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29643 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29644 29645 fi 29646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29647 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29648 if test $ac_compiler_gnu = yes; then 29649 GCC=yes 29650 else 29651 GCC= 29652 fi 29653 ac_test_CFLAGS=${CFLAGS+set} 29654 ac_save_CFLAGS=$CFLAGS 29655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29656 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29657 if ${ac_cv_prog_cc_g+:} false; then : 29658 $as_echo_n "(cached) " >&6 29659 else 29660 ac_save_c_werror_flag=$ac_c_werror_flag 29661 ac_c_werror_flag=yes 29662 ac_cv_prog_cc_g=no 29663 CFLAGS="-g" 29664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29665 /* end confdefs.h. */ 29666 29667 int 29668 main () 29669 { 29670 29671 ; 29672 return 0; 29673 } 29674 _ACEOF 29675 if ac_fn_c_try_compile "$LINENO"; then : 29676 ac_cv_prog_cc_g=yes 29677 else 29678 CFLAGS="" 29679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29680 /* end confdefs.h. */ 29681 29682 int 29683 main () 29684 { 29685 29686 ; 29687 return 0; 29688 } 29689 _ACEOF 29690 if ac_fn_c_try_compile "$LINENO"; then : 29691 29692 else 29693 ac_c_werror_flag=$ac_save_c_werror_flag 29694 CFLAGS="-g" 29695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29696 /* end confdefs.h. */ 29697 29698 int 29699 main () 29700 { 29701 29702 ; 29703 return 0; 29704 } 29705 _ACEOF 29706 if ac_fn_c_try_compile "$LINENO"; then : 29707 ac_cv_prog_cc_g=yes 29708 fi 29709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29710 fi 29711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29712 fi 29713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29714 ac_c_werror_flag=$ac_save_c_werror_flag 29715 fi 29716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29717 $as_echo "$ac_cv_prog_cc_g" >&6; } 29718 if test "$ac_test_CFLAGS" = set; then 29719 CFLAGS=$ac_save_CFLAGS 29720 elif test $ac_cv_prog_cc_g = yes; then 29721 if test "$GCC" = yes; then 29722 CFLAGS="-g -O2" 29723 else 29724 CFLAGS="-g" 29725 fi 29726 else 29727 if test "$GCC" = yes; then 29728 CFLAGS="-O2" 29729 else 29730 CFLAGS= 29731 fi 29732 fi 29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29735 if ${ac_cv_prog_cc_c89+:} false; then : 29736 $as_echo_n "(cached) " >&6 29737 else 29738 ac_cv_prog_cc_c89=no 29739 ac_save_CC=$CC 29740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29741 /* end confdefs.h. */ 29742 #include <stdarg.h> 29743 #include <stdio.h> 29744 struct stat; 29745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29746 struct buf { int x; }; 29747 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29748 static char *e (p, i) 29749 char **p; 29750 int i; 29751 { 29752 return p[i]; 29753 } 29754 static char *f (char * (*g) (char **, int), char **p, ...) 29755 { 29756 char *s; 29757 va_list v; 29758 va_start (v,p); 29759 s = g (p, va_arg (v,int)); 29760 va_end (v); 29761 return s; 29762 } 29763 29764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29765 function prototypes and stuff, but not '\xHH' hex character constants. 29766 These don't provoke an error unfortunately, instead are silently treated 29767 as 'x'. The following induces an error, until -std is added to get 29768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29769 array size at least. It's necessary to write '\x00'==0 to get something 29770 that's true only with -std. */ 29771 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29772 29773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29774 inside strings and character constants. */ 29775 #define FOO(x) 'x' 29776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29777 29778 int test (int i, double x); 29779 struct s1 {int (*f) (int a);}; 29780 struct s2 {int (*f) (double a);}; 29781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29782 int argc; 29783 char **argv; 29784 int 29785 main () 29786 { 29787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29788 ; 29789 return 0; 29790 } 29791 _ACEOF 29792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29794 do 29795 CC="$ac_save_CC $ac_arg" 29796 if ac_fn_c_try_compile "$LINENO"; then : 29797 ac_cv_prog_cc_c89=$ac_arg 29798 fi 29799 rm -f core conftest.err conftest.$ac_objext 29800 test "x$ac_cv_prog_cc_c89" != "xno" && break 29801 done 29802 rm -f conftest.$ac_ext 29803 CC=$ac_save_CC 29804 29805 fi 29806 # AC_CACHE_VAL 29807 case "x$ac_cv_prog_cc_c89" in 29808 x) 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29810 $as_echo "none needed" >&6; } ;; 29811 xno) 29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29813 $as_echo "unsupported" >&6; } ;; 29814 *) 29815 CC="$CC $ac_cv_prog_cc_c89" 29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29818 esac 29819 if test "x$ac_cv_prog_cc_c89" != xno; then : 29820 29821 fi 29822 29823 ac_ext=cpp 29824 ac_cpp='$CXXCPP $CPPFLAGS' 29825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29828 29829 29830 29831 COMPILER_NAME=C++ 29832 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29833 29834 if test "x$CXX" != x; then 29835 # User has supplied compiler name already, always let that override. 29836 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29837 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29838 if test "x`basename $CXX`" = "x$CXX"; then 29839 # A command without a complete path is provided, search $PATH. 29840 29841 for ac_prog in $CXX 29842 do 29843 # Extract the first word of "$ac_prog", so it can be a program name with args. 29844 set dummy $ac_prog; ac_word=$2 29845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29846 $as_echo_n "checking for $ac_word... " >&6; } 29847 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29848 $as_echo_n "(cached) " >&6 29849 else 29850 case $POTENTIAL_CXX in 29851 [\\/]* | ?:[\\/]*) 29852 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29853 ;; 29854 *) 29855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29856 for as_dir in $PATH 29857 do 29858 IFS=$as_save_IFS 29859 test -z "$as_dir" && as_dir=. 29860 for ac_exec_ext in '' $ac_executable_extensions; do 29861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29862 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29864 break 2 29865 fi 29866 done 29867 done 29868 IFS=$as_save_IFS 29869 29870 ;; 29871 esac 29872 fi 29873 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29874 if test -n "$POTENTIAL_CXX"; then 29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29876 $as_echo "$POTENTIAL_CXX" >&6; } 29877 else 29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29879 $as_echo "no" >&6; } 29880 fi 29881 29882 29883 test -n "$POTENTIAL_CXX" && break 29884 done 29885 29886 if test "x$POTENTIAL_CXX" != x; then 29887 CXX=$POTENTIAL_CXX 29888 else 29889 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29890 fi 29891 else 29892 # Otherwise it might already be a complete path 29893 if test ! -x "$CXX"; then 29894 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29895 fi 29896 fi 29897 else 29898 # No user supplied value. Locate compiler ourselves. 29899 29900 # If we are cross compiling, assume cross compilation tools follows the 29901 # cross compilation standard where they are prefixed with the autoconf 29902 # standard name for the target. For example the binary 29903 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29904 # If we are not cross compiling, then the default compiler name will be 29905 # used. 29906 29907 CXX= 29908 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29909 # before checking the rest of the PATH. 29910 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29911 # step, this should not be necessary. 29912 if test -n "$TOOLCHAIN_PATH"; then 29913 PATH_save="$PATH" 29914 PATH="$TOOLCHAIN_PATH" 29915 for ac_prog in $SEARCH_LIST 29916 do 29917 # Extract the first word of "$ac_prog", so it can be a program name with args. 29918 set dummy $ac_prog; ac_word=$2 29919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29920 $as_echo_n "checking for $ac_word... " >&6; } 29921 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29922 $as_echo_n "(cached) " >&6 29923 else 29924 case $TOOLCHAIN_PATH_CXX in 29925 [\\/]* | ?:[\\/]*) 29926 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29927 ;; 29928 *) 29929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29930 for as_dir in $PATH 29931 do 29932 IFS=$as_save_IFS 29933 test -z "$as_dir" && as_dir=. 29934 for ac_exec_ext in '' $ac_executable_extensions; do 29935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29936 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29938 break 2 29939 fi 29940 done 29941 done 29942 IFS=$as_save_IFS 29943 29944 ;; 29945 esac 29946 fi 29947 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29948 if test -n "$TOOLCHAIN_PATH_CXX"; then 29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29950 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29951 else 29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29953 $as_echo "no" >&6; } 29954 fi 29955 29956 29957 test -n "$TOOLCHAIN_PATH_CXX" && break 29958 done 29959 29960 CXX=$TOOLCHAIN_PATH_CXX 29961 PATH="$PATH_save" 29962 fi 29963 29964 # AC_PATH_PROGS can't be run multiple times with the same variable, 29965 # so create a new name for this run. 29966 if test "x$CXX" = x; then 29967 for ac_prog in $SEARCH_LIST 29968 do 29969 # Extract the first word of "$ac_prog", so it can be a program name with args. 29970 set dummy $ac_prog; ac_word=$2 29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29972 $as_echo_n "checking for $ac_word... " >&6; } 29973 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29974 $as_echo_n "(cached) " >&6 29975 else 29976 case $POTENTIAL_CXX in 29977 [\\/]* | ?:[\\/]*) 29978 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29979 ;; 29980 *) 29981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29982 for as_dir in $PATH 29983 do 29984 IFS=$as_save_IFS 29985 test -z "$as_dir" && as_dir=. 29986 for ac_exec_ext in '' $ac_executable_extensions; do 29987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29988 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29990 break 2 29991 fi 29992 done 29993 done 29994 IFS=$as_save_IFS 29995 29996 ;; 29997 esac 29998 fi 29999 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 30000 if test -n "$POTENTIAL_CXX"; then 30001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 30002 $as_echo "$POTENTIAL_CXX" >&6; } 30003 else 30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30005 $as_echo "no" >&6; } 30006 fi 30007 30008 30009 test -n "$POTENTIAL_CXX" && break 30010 done 30011 30012 CXX=$POTENTIAL_CXX 30013 fi 30014 30015 if test "x$CXX" = x; then 30016 30017 # Print a helpful message on how to acquire the necessary build dependency. 30018 # devkit is the help tag: freetype, cups, pulse, alsa etc 30019 MISSING_DEPENDENCY=devkit 30020 30021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30022 cygwin_help $MISSING_DEPENDENCY 30023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30024 msys_help $MISSING_DEPENDENCY 30025 else 30026 PKGHANDLER_COMMAND= 30027 30028 case $PKGHANDLER in 30029 apt-get) 30030 apt_help $MISSING_DEPENDENCY ;; 30031 yum) 30032 yum_help $MISSING_DEPENDENCY ;; 30033 port) 30034 port_help $MISSING_DEPENDENCY ;; 30035 pkgutil) 30036 pkgutil_help $MISSING_DEPENDENCY ;; 30037 pkgadd) 30038 pkgadd_help $MISSING_DEPENDENCY ;; 30039 esac 30040 30041 if test "x$PKGHANDLER_COMMAND" != x; then 30042 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30043 fi 30044 fi 30045 30046 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 30047 fi 30048 fi 30049 30050 # Now we have a compiler binary in CXX. Make sure it's okay. 30051 30052 # Only process if variable expands to non-empty 30053 30054 if test "x$CXX" != x; then 30055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30056 30057 # First separate the path from the arguments. This will split at the first 30058 # space. 30059 complete="$CXX" 30060 path="${complete%% *}" 30061 tmp="$complete EOL" 30062 arguments="${tmp#* }" 30063 30064 # Input might be given as Windows format, start by converting to 30065 # unix format. 30066 new_path=`$CYGPATH -u "$path"` 30067 30068 # Now try to locate executable using which 30069 new_path=`$WHICH "$new_path" 2> /dev/null` 30070 # bat and cmd files are not always considered executable in cygwin causing which 30071 # to not find them 30072 if test "x$new_path" = x \ 30073 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30074 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30075 new_path=`$CYGPATH -u "$path"` 30076 fi 30077 if test "x$new_path" = x; then 30078 # Oops. Which didn't find the executable. 30079 # The splitting of arguments from the executable at a space might have been incorrect, 30080 # since paths with space are more likely in Windows. Give it another try with the whole 30081 # argument. 30082 path="$complete" 30083 arguments="EOL" 30084 new_path=`$CYGPATH -u "$path"` 30085 new_path=`$WHICH "$new_path" 2> /dev/null` 30086 # bat and cmd files are not always considered executable in cygwin causing which 30087 # to not find them 30088 if test "x$new_path" = x \ 30089 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30090 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30091 new_path=`$CYGPATH -u "$path"` 30092 fi 30093 if test "x$new_path" = x; then 30094 # It's still not found. Now this is an unrecoverable error. 30095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30096 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30097 has_space=`$ECHO "$complete" | $GREP " "` 30098 if test "x$has_space" != x; then 30099 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30100 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30101 fi 30102 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30103 fi 30104 fi 30105 30106 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30107 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30108 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30109 # "foo.exe" is OK but "foo" is an error. 30110 # 30111 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30112 # It is also a way to make sure we got the proper file name for the real test later on. 30113 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30114 if test "x$test_shortpath" = x; then 30115 # Short path failed, file does not exist as specified. 30116 # Try adding .exe or .cmd 30117 if test -f "${new_path}.exe"; then 30118 input_to_shortpath="${new_path}.exe" 30119 elif test -f "${new_path}.cmd"; then 30120 input_to_shortpath="${new_path}.cmd" 30121 else 30122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 30123 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 30124 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30125 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30126 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30127 fi 30128 else 30129 input_to_shortpath="$new_path" 30130 fi 30131 30132 # Call helper function which possibly converts this using DOS-style short mode. 30133 # If so, the updated path is stored in $new_path. 30134 new_path="$input_to_shortpath" 30135 30136 input_path="$input_to_shortpath" 30137 # Check if we need to convert this using DOS-style short mode. If the path 30138 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30139 # take no chances and rewrite it. 30140 # Note: m4 eats our [], so we need to use [ and ] instead. 30141 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30142 if test "x$has_forbidden_chars" != x; then 30143 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30144 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30145 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30146 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30147 # Going to short mode and back again did indeed matter. Since short mode is 30148 # case insensitive, let's make it lowercase to improve readability. 30149 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30150 # Now convert it back to Unix-stile (cygpath) 30151 input_path=`$CYGPATH -u "$shortmode_path"` 30152 new_path="$input_path" 30153 fi 30154 fi 30155 30156 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30157 if test "x$test_cygdrive_prefix" = x; then 30158 # As a simple fix, exclude /usr/bin since it's not a real path. 30159 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30160 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30161 # a path prefixed by /cygdrive for fixpath to work. 30162 new_path="$CYGWIN_ROOT_PATH$input_path" 30163 fi 30164 fi 30165 30166 # remove trailing .exe if any 30167 new_path="${new_path/%.exe/}" 30168 30169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30170 30171 # First separate the path from the arguments. This will split at the first 30172 # space. 30173 complete="$CXX" 30174 path="${complete%% *}" 30175 tmp="$complete EOL" 30176 arguments="${tmp#* }" 30177 30178 # Input might be given as Windows format, start by converting to 30179 # unix format. 30180 new_path="$path" 30181 30182 windows_path="$new_path" 30183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30184 unix_path=`$CYGPATH -u "$windows_path"` 30185 new_path="$unix_path" 30186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30188 new_path="$unix_path" 30189 fi 30190 30191 30192 # Now try to locate executable using which 30193 new_path=`$WHICH "$new_path" 2> /dev/null` 30194 30195 if test "x$new_path" = x; then 30196 # Oops. Which didn't find the executable. 30197 # The splitting of arguments from the executable at a space might have been incorrect, 30198 # since paths with space are more likely in Windows. Give it another try with the whole 30199 # argument. 30200 path="$complete" 30201 arguments="EOL" 30202 new_path="$path" 30203 30204 windows_path="$new_path" 30205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30206 unix_path=`$CYGPATH -u "$windows_path"` 30207 new_path="$unix_path" 30208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30210 new_path="$unix_path" 30211 fi 30212 30213 30214 new_path=`$WHICH "$new_path" 2> /dev/null` 30215 # bat and cmd files are not always considered executable in MSYS causing which 30216 # to not find them 30217 if test "x$new_path" = x \ 30218 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30219 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30220 new_path="$path" 30221 30222 windows_path="$new_path" 30223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30224 unix_path=`$CYGPATH -u "$windows_path"` 30225 new_path="$unix_path" 30226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30228 new_path="$unix_path" 30229 fi 30230 30231 fi 30232 30233 if test "x$new_path" = x; then 30234 # It's still not found. Now this is an unrecoverable error. 30235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30236 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30237 has_space=`$ECHO "$complete" | $GREP " "` 30238 if test "x$has_space" != x; then 30239 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30240 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30241 fi 30242 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30243 fi 30244 fi 30245 30246 # Now new_path has a complete unix path to the binary 30247 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30248 # Keep paths in /bin as-is, but remove trailing .exe if any 30249 new_path="${new_path/%.exe/}" 30250 # Do not save /bin paths to all_fixpath_prefixes! 30251 else 30252 # Not in mixed or Windows style, start by that. 30253 new_path=`cmd //c echo $new_path` 30254 30255 input_path="$new_path" 30256 # Check if we need to convert this using DOS-style short mode. If the path 30257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30258 # take no chances and rewrite it. 30259 # Note: m4 eats our [], so we need to use [ and ] instead. 30260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30261 if test "x$has_forbidden_chars" != x; then 30262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30263 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30264 fi 30265 30266 # Output is in $new_path 30267 30268 windows_path="$new_path" 30269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30270 unix_path=`$CYGPATH -u "$windows_path"` 30271 new_path="$unix_path" 30272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30274 new_path="$unix_path" 30275 fi 30276 30277 # remove trailing .exe if any 30278 new_path="${new_path/%.exe/}" 30279 30280 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30281 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30282 fi 30283 30284 else 30285 # We're on a unix platform. Hooray! :) 30286 # First separate the path from the arguments. This will split at the first 30287 # space. 30288 complete="$CXX" 30289 path="${complete%% *}" 30290 tmp="$complete EOL" 30291 arguments="${tmp#* }" 30292 30293 # Cannot rely on the command "which" here since it doesn't always work. 30294 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30295 if test -z "$is_absolute_path"; then 30296 # Path to executable is not absolute. Find it. 30297 IFS_save="$IFS" 30298 IFS=: 30299 for p in $PATH; do 30300 if test -f "$p/$path" && test -x "$p/$path"; then 30301 new_path="$p/$path" 30302 break 30303 fi 30304 done 30305 IFS="$IFS_save" 30306 else 30307 # This is an absolute path, we can use it without further modifications. 30308 new_path="$path" 30309 fi 30310 30311 if test "x$new_path" = x; then 30312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30313 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30314 has_space=`$ECHO "$complete" | $GREP " "` 30315 if test "x$has_space" != x; then 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30317 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30318 fi 30319 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30320 fi 30321 fi 30322 30323 # Now join together the path and the arguments once again 30324 if test "x$arguments" != xEOL; then 30325 new_complete="$new_path ${arguments% *}" 30326 else 30327 new_complete="$new_path" 30328 fi 30329 30330 if test "x$complete" != "x$new_complete"; then 30331 CXX="$new_complete" 30332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 30333 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 30334 fi 30335 fi 30336 30337 TEST_COMPILER="$CXX" 30338 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 30339 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 30340 if test "x$OPENJDK_BUILD_OS" != xaix; then 30341 # FIXME: This test should not be needed anymore; we don't do that for any platform. 30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 30343 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 30344 30345 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30346 # Follow a chain of symbolic links. Use readlink 30347 # where it exists, else fall back to horribly 30348 # complicated shell code. 30349 if test "x$READLINK_TESTED" != yes; then 30350 # On MacOSX there is a readlink tool with a different 30351 # purpose than the GNU readlink tool. Check the found readlink. 30352 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30353 if test "x$ISGNU" = x; then 30354 # A readlink that we do not know how to use. 30355 # Are there other non-GNU readlinks out there? 30356 READLINK_TESTED=yes 30357 READLINK= 30358 fi 30359 fi 30360 30361 if test "x$READLINK" != x; then 30362 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30363 else 30364 # Save the current directory for restoring afterwards 30365 STARTDIR=$PWD 30366 COUNTER=0 30367 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30368 sym_link_file=`$BASENAME $TEST_COMPILER` 30369 cd $sym_link_dir 30370 # Use -P flag to resolve symlinks in directories. 30371 cd `$THEPWDCMD -P` 30372 sym_link_dir=`$THEPWDCMD -P` 30373 # Resolve file symlinks 30374 while test $COUNTER -lt 20; do 30375 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30376 if test "x$ISLINK" == x; then 30377 # This is not a symbolic link! We are done! 30378 break 30379 fi 30380 # Again resolve directory symlinks since the target of the just found 30381 # link could be in a different directory 30382 cd `$DIRNAME $ISLINK` 30383 sym_link_dir=`$THEPWDCMD -P` 30384 sym_link_file=`$BASENAME $ISLINK` 30385 let COUNTER=COUNTER+1 30386 done 30387 cd $STARTDIR 30388 TEST_COMPILER=$sym_link_dir/$sym_link_file 30389 fi 30390 fi 30391 30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30393 $as_echo "$TEST_COMPILER" >&6; } 30394 fi 30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30396 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30397 30398 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30399 if test "x$COMPILER_BASENAME" = "xccache"; then 30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30401 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30402 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30403 # We want to control ccache invocation ourselves, so ignore this cc and try 30404 # searching again. 30405 30406 # Remove the path to the fake ccache cc from the PATH 30407 RETRY_COMPILER_SAVED_PATH="$PATH" 30408 COMPILER_DIRNAME=`$DIRNAME $CXX` 30409 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30410 30411 # Try again looking for our compiler 30412 if test -n "$ac_tool_prefix"; then 30413 for ac_prog in $TOOLCHAIN_CXX_BINARY 30414 do 30415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30418 $as_echo_n "checking for $ac_word... " >&6; } 30419 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30420 $as_echo_n "(cached) " >&6 30421 else 30422 if test -n "$PROPER_COMPILER_CXX"; then 30423 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30424 else 30425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30426 for as_dir in $PATH 30427 do 30428 IFS=$as_save_IFS 30429 test -z "$as_dir" && as_dir=. 30430 for ac_exec_ext in '' $ac_executable_extensions; do 30431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30432 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30434 break 2 30435 fi 30436 done 30437 done 30438 IFS=$as_save_IFS 30439 30440 fi 30441 fi 30442 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30443 if test -n "$PROPER_COMPILER_CXX"; then 30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30445 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30446 else 30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30448 $as_echo "no" >&6; } 30449 fi 30450 30451 30452 test -n "$PROPER_COMPILER_CXX" && break 30453 done 30454 fi 30455 if test -z "$PROPER_COMPILER_CXX"; then 30456 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30457 for ac_prog in $TOOLCHAIN_CXX_BINARY 30458 do 30459 # Extract the first word of "$ac_prog", so it can be a program name with args. 30460 set dummy $ac_prog; ac_word=$2 30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30462 $as_echo_n "checking for $ac_word... " >&6; } 30463 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30464 $as_echo_n "(cached) " >&6 30465 else 30466 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30467 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30468 else 30469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30470 for as_dir in $PATH 30471 do 30472 IFS=$as_save_IFS 30473 test -z "$as_dir" && as_dir=. 30474 for ac_exec_ext in '' $ac_executable_extensions; do 30475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30476 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30478 break 2 30479 fi 30480 done 30481 done 30482 IFS=$as_save_IFS 30483 30484 fi 30485 fi 30486 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30487 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30489 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30490 else 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30492 $as_echo "no" >&6; } 30493 fi 30494 30495 30496 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30497 done 30498 30499 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30500 PROPER_COMPILER_CXX="" 30501 else 30502 case $cross_compiling:$ac_tool_warned in 30503 yes:) 30504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30506 ac_tool_warned=yes ;; 30507 esac 30508 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30509 fi 30510 fi 30511 30512 30513 # Only process if variable expands to non-empty 30514 30515 if test "x$PROPER_COMPILER_CXX" != x; then 30516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30517 30518 # First separate the path from the arguments. This will split at the first 30519 # space. 30520 complete="$PROPER_COMPILER_CXX" 30521 path="${complete%% *}" 30522 tmp="$complete EOL" 30523 arguments="${tmp#* }" 30524 30525 # Input might be given as Windows format, start by converting to 30526 # unix format. 30527 new_path=`$CYGPATH -u "$path"` 30528 30529 # Now try to locate executable using which 30530 new_path=`$WHICH "$new_path" 2> /dev/null` 30531 # bat and cmd files are not always considered executable in cygwin causing which 30532 # to not find them 30533 if test "x$new_path" = x \ 30534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30536 new_path=`$CYGPATH -u "$path"` 30537 fi 30538 if test "x$new_path" = x; then 30539 # Oops. Which didn't find the executable. 30540 # The splitting of arguments from the executable at a space might have been incorrect, 30541 # since paths with space are more likely in Windows. Give it another try with the whole 30542 # argument. 30543 path="$complete" 30544 arguments="EOL" 30545 new_path=`$CYGPATH -u "$path"` 30546 new_path=`$WHICH "$new_path" 2> /dev/null` 30547 # bat and cmd files are not always considered executable in cygwin causing which 30548 # to not find them 30549 if test "x$new_path" = x \ 30550 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30551 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30552 new_path=`$CYGPATH -u "$path"` 30553 fi 30554 if test "x$new_path" = x; then 30555 # It's still not found. Now this is an unrecoverable error. 30556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30557 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30558 has_space=`$ECHO "$complete" | $GREP " "` 30559 if test "x$has_space" != x; then 30560 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30561 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30562 fi 30563 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30564 fi 30565 fi 30566 30567 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30568 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30569 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30570 # "foo.exe" is OK but "foo" is an error. 30571 # 30572 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30573 # It is also a way to make sure we got the proper file name for the real test later on. 30574 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30575 if test "x$test_shortpath" = x; then 30576 # Short path failed, file does not exist as specified. 30577 # Try adding .exe or .cmd 30578 if test -f "${new_path}.exe"; then 30579 input_to_shortpath="${new_path}.exe" 30580 elif test -f "${new_path}.cmd"; then 30581 input_to_shortpath="${new_path}.cmd" 30582 else 30583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30584 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30585 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30586 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30587 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30588 fi 30589 else 30590 input_to_shortpath="$new_path" 30591 fi 30592 30593 # Call helper function which possibly converts this using DOS-style short mode. 30594 # If so, the updated path is stored in $new_path. 30595 new_path="$input_to_shortpath" 30596 30597 input_path="$input_to_shortpath" 30598 # Check if we need to convert this using DOS-style short mode. If the path 30599 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30600 # take no chances and rewrite it. 30601 # Note: m4 eats our [], so we need to use [ and ] instead. 30602 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30603 if test "x$has_forbidden_chars" != x; then 30604 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30605 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30606 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30607 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30608 # Going to short mode and back again did indeed matter. Since short mode is 30609 # case insensitive, let's make it lowercase to improve readability. 30610 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30611 # Now convert it back to Unix-stile (cygpath) 30612 input_path=`$CYGPATH -u "$shortmode_path"` 30613 new_path="$input_path" 30614 fi 30615 fi 30616 30617 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30618 if test "x$test_cygdrive_prefix" = x; then 30619 # As a simple fix, exclude /usr/bin since it's not a real path. 30620 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30621 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30622 # a path prefixed by /cygdrive for fixpath to work. 30623 new_path="$CYGWIN_ROOT_PATH$input_path" 30624 fi 30625 fi 30626 30627 # remove trailing .exe if any 30628 new_path="${new_path/%.exe/}" 30629 30630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30631 30632 # First separate the path from the arguments. This will split at the first 30633 # space. 30634 complete="$PROPER_COMPILER_CXX" 30635 path="${complete%% *}" 30636 tmp="$complete EOL" 30637 arguments="${tmp#* }" 30638 30639 # Input might be given as Windows format, start by converting to 30640 # unix format. 30641 new_path="$path" 30642 30643 windows_path="$new_path" 30644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30645 unix_path=`$CYGPATH -u "$windows_path"` 30646 new_path="$unix_path" 30647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30649 new_path="$unix_path" 30650 fi 30651 30652 30653 # Now try to locate executable using which 30654 new_path=`$WHICH "$new_path" 2> /dev/null` 30655 30656 if test "x$new_path" = x; then 30657 # Oops. Which didn't find the executable. 30658 # The splitting of arguments from the executable at a space might have been incorrect, 30659 # since paths with space are more likely in Windows. Give it another try with the whole 30660 # argument. 30661 path="$complete" 30662 arguments="EOL" 30663 new_path="$path" 30664 30665 windows_path="$new_path" 30666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30667 unix_path=`$CYGPATH -u "$windows_path"` 30668 new_path="$unix_path" 30669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30671 new_path="$unix_path" 30672 fi 30673 30674 30675 new_path=`$WHICH "$new_path" 2> /dev/null` 30676 # bat and cmd files are not always considered executable in MSYS causing which 30677 # to not find them 30678 if test "x$new_path" = x \ 30679 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30680 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30681 new_path="$path" 30682 30683 windows_path="$new_path" 30684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30685 unix_path=`$CYGPATH -u "$windows_path"` 30686 new_path="$unix_path" 30687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30689 new_path="$unix_path" 30690 fi 30691 30692 fi 30693 30694 if test "x$new_path" = x; then 30695 # It's still not found. Now this is an unrecoverable error. 30696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30697 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30698 has_space=`$ECHO "$complete" | $GREP " "` 30699 if test "x$has_space" != x; then 30700 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30702 fi 30703 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30704 fi 30705 fi 30706 30707 # Now new_path has a complete unix path to the binary 30708 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30709 # Keep paths in /bin as-is, but remove trailing .exe if any 30710 new_path="${new_path/%.exe/}" 30711 # Do not save /bin paths to all_fixpath_prefixes! 30712 else 30713 # Not in mixed or Windows style, start by that. 30714 new_path=`cmd //c echo $new_path` 30715 30716 input_path="$new_path" 30717 # Check if we need to convert this using DOS-style short mode. If the path 30718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30719 # take no chances and rewrite it. 30720 # Note: m4 eats our [], so we need to use [ and ] instead. 30721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30722 if test "x$has_forbidden_chars" != x; then 30723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30725 fi 30726 30727 # Output is in $new_path 30728 30729 windows_path="$new_path" 30730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30731 unix_path=`$CYGPATH -u "$windows_path"` 30732 new_path="$unix_path" 30733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30735 new_path="$unix_path" 30736 fi 30737 30738 # remove trailing .exe if any 30739 new_path="${new_path/%.exe/}" 30740 30741 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30742 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30743 fi 30744 30745 else 30746 # We're on a unix platform. Hooray! :) 30747 # First separate the path from the arguments. This will split at the first 30748 # space. 30749 complete="$PROPER_COMPILER_CXX" 30750 path="${complete%% *}" 30751 tmp="$complete EOL" 30752 arguments="${tmp#* }" 30753 30754 # Cannot rely on the command "which" here since it doesn't always work. 30755 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30756 if test -z "$is_absolute_path"; then 30757 # Path to executable is not absolute. Find it. 30758 IFS_save="$IFS" 30759 IFS=: 30760 for p in $PATH; do 30761 if test -f "$p/$path" && test -x "$p/$path"; then 30762 new_path="$p/$path" 30763 break 30764 fi 30765 done 30766 IFS="$IFS_save" 30767 else 30768 # This is an absolute path, we can use it without further modifications. 30769 new_path="$path" 30770 fi 30771 30772 if test "x$new_path" = x; then 30773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30774 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30775 has_space=`$ECHO "$complete" | $GREP " "` 30776 if test "x$has_space" != x; then 30777 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30778 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30779 fi 30780 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30781 fi 30782 fi 30783 30784 # Now join together the path and the arguments once again 30785 if test "x$arguments" != xEOL; then 30786 new_complete="$new_path ${arguments% *}" 30787 else 30788 new_complete="$new_path" 30789 fi 30790 30791 if test "x$complete" != "x$new_complete"; then 30792 PROPER_COMPILER_CXX="$new_complete" 30793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30794 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30795 fi 30796 fi 30797 30798 PATH="$RETRY_COMPILER_SAVED_PATH" 30799 30800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30801 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30802 30803 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30804 # Follow a chain of symbolic links. Use readlink 30805 # where it exists, else fall back to horribly 30806 # complicated shell code. 30807 if test "x$READLINK_TESTED" != yes; then 30808 # On MacOSX there is a readlink tool with a different 30809 # purpose than the GNU readlink tool. Check the found readlink. 30810 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30811 if test "x$ISGNU" = x; then 30812 # A readlink that we do not know how to use. 30813 # Are there other non-GNU readlinks out there? 30814 READLINK_TESTED=yes 30815 READLINK= 30816 fi 30817 fi 30818 30819 if test "x$READLINK" != x; then 30820 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30821 else 30822 # Save the current directory for restoring afterwards 30823 STARTDIR=$PWD 30824 COUNTER=0 30825 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30826 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30827 cd $sym_link_dir 30828 # Use -P flag to resolve symlinks in directories. 30829 cd `$THEPWDCMD -P` 30830 sym_link_dir=`$THEPWDCMD -P` 30831 # Resolve file symlinks 30832 while test $COUNTER -lt 20; do 30833 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30834 if test "x$ISLINK" == x; then 30835 # This is not a symbolic link! We are done! 30836 break 30837 fi 30838 # Again resolve directory symlinks since the target of the just found 30839 # link could be in a different directory 30840 cd `$DIRNAME $ISLINK` 30841 sym_link_dir=`$THEPWDCMD -P` 30842 sym_link_file=`$BASENAME $ISLINK` 30843 let COUNTER=COUNTER+1 30844 done 30845 cd $STARTDIR 30846 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30847 fi 30848 fi 30849 30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30851 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30852 CXX="$PROPER_COMPILER_CXX" 30853 else 30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30855 $as_echo "no, keeping CXX" >&6; } 30856 fi 30857 30858 30859 COMPILER=$CXX 30860 COMPILER_NAME=$COMPILER_NAME 30861 30862 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30863 # cc -V output typically looks like 30864 # cc: Sun C 5.12 Linux_i386 2011/11/16 30865 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30866 # Check that this is likely to be the Solaris Studio cc. 30867 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30868 if test $? -ne 0; then 30869 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30870 { $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 30871 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30872 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30873 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30874 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30875 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30876 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30877 fi 30878 # Remove usage instructions (if present), and 30879 # collapse compiler output into a single line 30880 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30881 $SED -e 's/ *[Uu]sage:.*//'` 30882 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30883 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30884 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30885 # xlc -qversion output typically looks like 30886 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30887 # Version: 11.01.0000.0015 30888 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30889 # Check that this is likely to be the IBM XL C compiler. 30890 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30891 if test $? -ne 0; then 30892 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30893 { $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 30894 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30895 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30896 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30897 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30898 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30899 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30900 fi 30901 # Collapse compiler output into a single line 30902 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30903 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30904 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30905 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30906 # There is no specific version flag, but all output starts with a version string. 30907 # First line typically looks something like: 30908 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30909 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30910 # Check that this is likely to be Microsoft CL.EXE. 30911 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30912 if test $? -ne 0; then 30913 { $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 30914 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30915 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30916 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30917 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30918 fi 30919 # Collapse compiler output into a single line 30920 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30921 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30922 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30923 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30924 # gcc --version output typically looks like 30925 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30926 # Copyright (C) 2013 Free Software Foundation, Inc. 30927 # This is free software; see the source for copying conditions. There is NO 30928 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30929 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30930 # Check that this is likely to be GCC. 30931 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30932 if test $? -ne 0; then 30933 { $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 30934 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30935 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30936 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30937 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30938 fi 30939 # Remove Copyright and legalese from version string, and 30940 # collapse into a single line 30941 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30942 $SED -e 's/ *Copyright .*//'` 30943 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30944 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30945 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30946 # clang --version output typically looks like 30947 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30948 # clang version 3.3 (tags/RELEASE_33/final) 30949 # or 30950 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30951 # Target: x86_64-pc-linux-gnu 30952 # Thread model: posix 30953 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30954 # Check that this is likely to be clang 30955 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30956 if test $? -ne 0; then 30957 { $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 30958 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30959 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30960 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30961 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30962 fi 30963 # Collapse compiler output into a single line 30964 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30965 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30966 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30967 else 30968 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30969 fi 30970 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30971 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30972 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30973 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30974 30975 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30976 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30977 30978 30979 # Now that we have resolved CXX ourself, let autoconf have its go at it 30980 ac_ext=cpp 30981 ac_cpp='$CXXCPP $CPPFLAGS' 30982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30985 if test -z "$CXX"; then 30986 if test -n "$CCC"; then 30987 CXX=$CCC 30988 else 30989 if test -n "$ac_tool_prefix"; then 30990 for ac_prog in $CXX 30991 do 30992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30995 $as_echo_n "checking for $ac_word... " >&6; } 30996 if ${ac_cv_prog_CXX+:} false; then : 30997 $as_echo_n "(cached) " >&6 30998 else 30999 if test -n "$CXX"; then 31000 ac_cv_prog_CXX="$CXX" # Let the user override the test. 31001 else 31002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31003 for as_dir in $PATH 31004 do 31005 IFS=$as_save_IFS 31006 test -z "$as_dir" && as_dir=. 31007 for ac_exec_ext in '' $ac_executable_extensions; do 31008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31009 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 31010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31011 break 2 31012 fi 31013 done 31014 done 31015 IFS=$as_save_IFS 31016 31017 fi 31018 fi 31019 CXX=$ac_cv_prog_CXX 31020 if test -n "$CXX"; then 31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 31022 $as_echo "$CXX" >&6; } 31023 else 31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31025 $as_echo "no" >&6; } 31026 fi 31027 31028 31029 test -n "$CXX" && break 31030 done 31031 fi 31032 if test -z "$CXX"; then 31033 ac_ct_CXX=$CXX 31034 for ac_prog in $CXX 31035 do 31036 # Extract the first word of "$ac_prog", so it can be a program name with args. 31037 set dummy $ac_prog; ac_word=$2 31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31039 $as_echo_n "checking for $ac_word... " >&6; } 31040 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 31041 $as_echo_n "(cached) " >&6 31042 else 31043 if test -n "$ac_ct_CXX"; then 31044 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 31045 else 31046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31047 for as_dir in $PATH 31048 do 31049 IFS=$as_save_IFS 31050 test -z "$as_dir" && as_dir=. 31051 for ac_exec_ext in '' $ac_executable_extensions; do 31052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31053 ac_cv_prog_ac_ct_CXX="$ac_prog" 31054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31055 break 2 31056 fi 31057 done 31058 done 31059 IFS=$as_save_IFS 31060 31061 fi 31062 fi 31063 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 31064 if test -n "$ac_ct_CXX"; then 31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 31066 $as_echo "$ac_ct_CXX" >&6; } 31067 else 31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31069 $as_echo "no" >&6; } 31070 fi 31071 31072 31073 test -n "$ac_ct_CXX" && break 31074 done 31075 31076 if test "x$ac_ct_CXX" = x; then 31077 CXX="g++" 31078 else 31079 case $cross_compiling:$ac_tool_warned in 31080 yes:) 31081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31083 ac_tool_warned=yes ;; 31084 esac 31085 CXX=$ac_ct_CXX 31086 fi 31087 fi 31088 31089 fi 31090 fi 31091 # Provide some information about the compiler. 31092 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 31093 set X $ac_compile 31094 ac_compiler=$2 31095 for ac_option in --version -v -V -qversion; do 31096 { { ac_try="$ac_compiler $ac_option >&5" 31097 case "(($ac_try" in 31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31099 *) ac_try_echo=$ac_try;; 31100 esac 31101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31102 $as_echo "$ac_try_echo"; } >&5 31103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31104 ac_status=$? 31105 if test -s conftest.err; then 31106 sed '10a\ 31107 ... rest of stderr output deleted ... 31108 10q' conftest.err >conftest.er1 31109 cat conftest.er1 >&5 31110 fi 31111 rm -f conftest.er1 conftest.err 31112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31113 test $ac_status = 0; } 31114 done 31115 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 31117 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 31118 if ${ac_cv_cxx_compiler_gnu+:} false; then : 31119 $as_echo_n "(cached) " >&6 31120 else 31121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31122 /* end confdefs.h. */ 31123 31124 int 31125 main () 31126 { 31127 #ifndef __GNUC__ 31128 choke me 31129 #endif 31130 31131 ; 31132 return 0; 31133 } 31134 _ACEOF 31135 if ac_fn_cxx_try_compile "$LINENO"; then : 31136 ac_compiler_gnu=yes 31137 else 31138 ac_compiler_gnu=no 31139 fi 31140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31141 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 31142 31143 fi 31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 31145 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 31146 if test $ac_compiler_gnu = yes; then 31147 GXX=yes 31148 else 31149 GXX= 31150 fi 31151 ac_test_CXXFLAGS=${CXXFLAGS+set} 31152 ac_save_CXXFLAGS=$CXXFLAGS 31153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 31154 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 31155 if ${ac_cv_prog_cxx_g+:} false; then : 31156 $as_echo_n "(cached) " >&6 31157 else 31158 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 31159 ac_cxx_werror_flag=yes 31160 ac_cv_prog_cxx_g=no 31161 CXXFLAGS="-g" 31162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31163 /* end confdefs.h. */ 31164 31165 int 31166 main () 31167 { 31168 31169 ; 31170 return 0; 31171 } 31172 _ACEOF 31173 if ac_fn_cxx_try_compile "$LINENO"; then : 31174 ac_cv_prog_cxx_g=yes 31175 else 31176 CXXFLAGS="" 31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31178 /* end confdefs.h. */ 31179 31180 int 31181 main () 31182 { 31183 31184 ; 31185 return 0; 31186 } 31187 _ACEOF 31188 if ac_fn_cxx_try_compile "$LINENO"; then : 31189 31190 else 31191 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31192 CXXFLAGS="-g" 31193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31194 /* end confdefs.h. */ 31195 31196 int 31197 main () 31198 { 31199 31200 ; 31201 return 0; 31202 } 31203 _ACEOF 31204 if ac_fn_cxx_try_compile "$LINENO"; then : 31205 ac_cv_prog_cxx_g=yes 31206 fi 31207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31208 fi 31209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31210 fi 31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31212 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31213 fi 31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 31215 $as_echo "$ac_cv_prog_cxx_g" >&6; } 31216 if test "$ac_test_CXXFLAGS" = set; then 31217 CXXFLAGS=$ac_save_CXXFLAGS 31218 elif test $ac_cv_prog_cxx_g = yes; then 31219 if test "$GXX" = yes; then 31220 CXXFLAGS="-g -O2" 31221 else 31222 CXXFLAGS="-g" 31223 fi 31224 else 31225 if test "$GXX" = yes; then 31226 CXXFLAGS="-O2" 31227 else 31228 CXXFLAGS= 31229 fi 31230 fi 31231 ac_ext=cpp 31232 ac_cpp='$CXXCPP $CPPFLAGS' 31233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31236 31237 31238 # 31239 # Setup the preprocessor (CPP and CXXCPP) 31240 # 31241 ac_ext=c 31242 ac_cpp='$CPP $CPPFLAGS' 31243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31245 ac_compiler_gnu=$ac_cv_c_compiler_gnu 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 31247 $as_echo_n "checking how to run the C preprocessor... " >&6; } 31248 # On Suns, sometimes $CPP names a directory. 31249 if test -n "$CPP" && test -d "$CPP"; then 31250 CPP= 31251 fi 31252 if test -z "$CPP"; then 31253 if ${ac_cv_prog_CPP+:} false; then : 31254 $as_echo_n "(cached) " >&6 31255 else 31256 # Double quotes because CPP needs to be expanded 31257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 31258 do 31259 ac_preproc_ok=false 31260 for ac_c_preproc_warn_flag in '' yes 31261 do 31262 # Use a header file that comes with gcc, so configuring glibc 31263 # with a fresh cross-compiler works. 31264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31265 # <limits.h> exists even on freestanding compilers. 31266 # On the NeXT, cc -E runs the code through the compiler's parser, 31267 # not just through cpp. "Syntax error" is here to catch this case. 31268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31269 /* end confdefs.h. */ 31270 #ifdef __STDC__ 31271 # include <limits.h> 31272 #else 31273 # include <assert.h> 31274 #endif 31275 Syntax error 31276 _ACEOF 31277 if ac_fn_c_try_cpp "$LINENO"; then : 31278 31279 else 31280 # Broken: fails on valid input. 31281 continue 31282 fi 31283 rm -f conftest.err conftest.i conftest.$ac_ext 31284 31285 # OK, works on sane cases. Now check whether nonexistent headers 31286 # can be detected and how. 31287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31288 /* end confdefs.h. */ 31289 #include <ac_nonexistent.h> 31290 _ACEOF 31291 if ac_fn_c_try_cpp "$LINENO"; then : 31292 # Broken: success on invalid input. 31293 continue 31294 else 31295 # Passes both tests. 31296 ac_preproc_ok=: 31297 break 31298 fi 31299 rm -f conftest.err conftest.i conftest.$ac_ext 31300 31301 done 31302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31303 rm -f conftest.i conftest.err conftest.$ac_ext 31304 if $ac_preproc_ok; then : 31305 break 31306 fi 31307 31308 done 31309 ac_cv_prog_CPP=$CPP 31310 31311 fi 31312 CPP=$ac_cv_prog_CPP 31313 else 31314 ac_cv_prog_CPP=$CPP 31315 fi 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31317 $as_echo "$CPP" >&6; } 31318 ac_preproc_ok=false 31319 for ac_c_preproc_warn_flag in '' yes 31320 do 31321 # Use a header file that comes with gcc, so configuring glibc 31322 # with a fresh cross-compiler works. 31323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31324 # <limits.h> exists even on freestanding compilers. 31325 # On the NeXT, cc -E runs the code through the compiler's parser, 31326 # not just through cpp. "Syntax error" is here to catch this case. 31327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31328 /* end confdefs.h. */ 31329 #ifdef __STDC__ 31330 # include <limits.h> 31331 #else 31332 # include <assert.h> 31333 #endif 31334 Syntax error 31335 _ACEOF 31336 if ac_fn_c_try_cpp "$LINENO"; then : 31337 31338 else 31339 # Broken: fails on valid input. 31340 continue 31341 fi 31342 rm -f conftest.err conftest.i conftest.$ac_ext 31343 31344 # OK, works on sane cases. Now check whether nonexistent headers 31345 # can be detected and how. 31346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31347 /* end confdefs.h. */ 31348 #include <ac_nonexistent.h> 31349 _ACEOF 31350 if ac_fn_c_try_cpp "$LINENO"; then : 31351 # Broken: success on invalid input. 31352 continue 31353 else 31354 # Passes both tests. 31355 ac_preproc_ok=: 31356 break 31357 fi 31358 rm -f conftest.err conftest.i conftest.$ac_ext 31359 31360 done 31361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31362 rm -f conftest.i conftest.err conftest.$ac_ext 31363 if $ac_preproc_ok; then : 31364 31365 else 31366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31368 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31369 See \`config.log' for more details" "$LINENO" 5; } 31370 fi 31371 31372 ac_ext=cpp 31373 ac_cpp='$CXXCPP $CPPFLAGS' 31374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31377 31378 31379 # Only process if variable expands to non-empty 31380 31381 if test "x$CPP" != x; then 31382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31383 31384 # First separate the path from the arguments. This will split at the first 31385 # space. 31386 complete="$CPP" 31387 path="${complete%% *}" 31388 tmp="$complete EOL" 31389 arguments="${tmp#* }" 31390 31391 # Input might be given as Windows format, start by converting to 31392 # unix format. 31393 new_path=`$CYGPATH -u "$path"` 31394 31395 # Now try to locate executable using which 31396 new_path=`$WHICH "$new_path" 2> /dev/null` 31397 # bat and cmd files are not always considered executable in cygwin causing which 31398 # to not find them 31399 if test "x$new_path" = x \ 31400 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31401 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31402 new_path=`$CYGPATH -u "$path"` 31403 fi 31404 if test "x$new_path" = x; then 31405 # Oops. Which didn't find the executable. 31406 # The splitting of arguments from the executable at a space might have been incorrect, 31407 # since paths with space are more likely in Windows. Give it another try with the whole 31408 # argument. 31409 path="$complete" 31410 arguments="EOL" 31411 new_path=`$CYGPATH -u "$path"` 31412 new_path=`$WHICH "$new_path" 2> /dev/null` 31413 # bat and cmd files are not always considered executable in cygwin causing which 31414 # to not find them 31415 if test "x$new_path" = x \ 31416 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31417 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31418 new_path=`$CYGPATH -u "$path"` 31419 fi 31420 if test "x$new_path" = x; then 31421 # It's still not found. Now this is an unrecoverable error. 31422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31423 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31424 has_space=`$ECHO "$complete" | $GREP " "` 31425 if test "x$has_space" != x; then 31426 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31427 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31428 fi 31429 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31430 fi 31431 fi 31432 31433 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31434 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31435 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31436 # "foo.exe" is OK but "foo" is an error. 31437 # 31438 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31439 # It is also a way to make sure we got the proper file name for the real test later on. 31440 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31441 if test "x$test_shortpath" = x; then 31442 # Short path failed, file does not exist as specified. 31443 # Try adding .exe or .cmd 31444 if test -f "${new_path}.exe"; then 31445 input_to_shortpath="${new_path}.exe" 31446 elif test -f "${new_path}.cmd"; then 31447 input_to_shortpath="${new_path}.cmd" 31448 else 31449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31450 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31452 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31453 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31454 fi 31455 else 31456 input_to_shortpath="$new_path" 31457 fi 31458 31459 # Call helper function which possibly converts this using DOS-style short mode. 31460 # If so, the updated path is stored in $new_path. 31461 new_path="$input_to_shortpath" 31462 31463 input_path="$input_to_shortpath" 31464 # Check if we need to convert this using DOS-style short mode. If the path 31465 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31466 # take no chances and rewrite it. 31467 # Note: m4 eats our [], so we need to use [ and ] instead. 31468 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31469 if test "x$has_forbidden_chars" != x; then 31470 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31471 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31472 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31473 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31474 # Going to short mode and back again did indeed matter. Since short mode is 31475 # case insensitive, let's make it lowercase to improve readability. 31476 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31477 # Now convert it back to Unix-stile (cygpath) 31478 input_path=`$CYGPATH -u "$shortmode_path"` 31479 new_path="$input_path" 31480 fi 31481 fi 31482 31483 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31484 if test "x$test_cygdrive_prefix" = x; then 31485 # As a simple fix, exclude /usr/bin since it's not a real path. 31486 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31487 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31488 # a path prefixed by /cygdrive for fixpath to work. 31489 new_path="$CYGWIN_ROOT_PATH$input_path" 31490 fi 31491 fi 31492 31493 # remove trailing .exe if any 31494 new_path="${new_path/%.exe/}" 31495 31496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31497 31498 # First separate the path from the arguments. This will split at the first 31499 # space. 31500 complete="$CPP" 31501 path="${complete%% *}" 31502 tmp="$complete EOL" 31503 arguments="${tmp#* }" 31504 31505 # Input might be given as Windows format, start by converting to 31506 # unix format. 31507 new_path="$path" 31508 31509 windows_path="$new_path" 31510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31511 unix_path=`$CYGPATH -u "$windows_path"` 31512 new_path="$unix_path" 31513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31514 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31515 new_path="$unix_path" 31516 fi 31517 31518 31519 # Now try to locate executable using which 31520 new_path=`$WHICH "$new_path" 2> /dev/null` 31521 31522 if test "x$new_path" = x; then 31523 # Oops. Which didn't find the executable. 31524 # The splitting of arguments from the executable at a space might have been incorrect, 31525 # since paths with space are more likely in Windows. Give it another try with the whole 31526 # argument. 31527 path="$complete" 31528 arguments="EOL" 31529 new_path="$path" 31530 31531 windows_path="$new_path" 31532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31533 unix_path=`$CYGPATH -u "$windows_path"` 31534 new_path="$unix_path" 31535 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31536 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31537 new_path="$unix_path" 31538 fi 31539 31540 31541 new_path=`$WHICH "$new_path" 2> /dev/null` 31542 # bat and cmd files are not always considered executable in MSYS causing which 31543 # to not find them 31544 if test "x$new_path" = x \ 31545 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31546 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31547 new_path="$path" 31548 31549 windows_path="$new_path" 31550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31551 unix_path=`$CYGPATH -u "$windows_path"` 31552 new_path="$unix_path" 31553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31555 new_path="$unix_path" 31556 fi 31557 31558 fi 31559 31560 if test "x$new_path" = x; then 31561 # It's still not found. Now this is an unrecoverable error. 31562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31563 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31564 has_space=`$ECHO "$complete" | $GREP " "` 31565 if test "x$has_space" != x; then 31566 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31567 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31568 fi 31569 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31570 fi 31571 fi 31572 31573 # Now new_path has a complete unix path to the binary 31574 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31575 # Keep paths in /bin as-is, but remove trailing .exe if any 31576 new_path="${new_path/%.exe/}" 31577 # Do not save /bin paths to all_fixpath_prefixes! 31578 else 31579 # Not in mixed or Windows style, start by that. 31580 new_path=`cmd //c echo $new_path` 31581 31582 input_path="$new_path" 31583 # Check if we need to convert this using DOS-style short mode. If the path 31584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31585 # take no chances and rewrite it. 31586 # Note: m4 eats our [], so we need to use [ and ] instead. 31587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31588 if test "x$has_forbidden_chars" != x; then 31589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31590 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31591 fi 31592 31593 # Output is in $new_path 31594 31595 windows_path="$new_path" 31596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31597 unix_path=`$CYGPATH -u "$windows_path"` 31598 new_path="$unix_path" 31599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31601 new_path="$unix_path" 31602 fi 31603 31604 # remove trailing .exe if any 31605 new_path="${new_path/%.exe/}" 31606 31607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31609 fi 31610 31611 else 31612 # We're on a unix platform. Hooray! :) 31613 # First separate the path from the arguments. This will split at the first 31614 # space. 31615 complete="$CPP" 31616 path="${complete%% *}" 31617 tmp="$complete EOL" 31618 arguments="${tmp#* }" 31619 31620 # Cannot rely on the command "which" here since it doesn't always work. 31621 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31622 if test -z "$is_absolute_path"; then 31623 # Path to executable is not absolute. Find it. 31624 IFS_save="$IFS" 31625 IFS=: 31626 for p in $PATH; do 31627 if test -f "$p/$path" && test -x "$p/$path"; then 31628 new_path="$p/$path" 31629 break 31630 fi 31631 done 31632 IFS="$IFS_save" 31633 else 31634 # This is an absolute path, we can use it without further modifications. 31635 new_path="$path" 31636 fi 31637 31638 if test "x$new_path" = x; then 31639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31640 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31641 has_space=`$ECHO "$complete" | $GREP " "` 31642 if test "x$has_space" != x; then 31643 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31644 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31645 fi 31646 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31647 fi 31648 fi 31649 31650 # Now join together the path and the arguments once again 31651 if test "x$arguments" != xEOL; then 31652 new_complete="$new_path ${arguments% *}" 31653 else 31654 new_complete="$new_path" 31655 fi 31656 31657 if test "x$complete" != "x$new_complete"; then 31658 CPP="$new_complete" 31659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31660 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31661 fi 31662 fi 31663 31664 ac_ext=cpp 31665 ac_cpp='$CXXCPP $CPPFLAGS' 31666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31670 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31671 if test -z "$CXXCPP"; then 31672 if ${ac_cv_prog_CXXCPP+:} false; then : 31673 $as_echo_n "(cached) " >&6 31674 else 31675 # Double quotes because CXXCPP needs to be expanded 31676 for CXXCPP in "$CXX -E" "/lib/cpp" 31677 do 31678 ac_preproc_ok=false 31679 for ac_cxx_preproc_warn_flag in '' yes 31680 do 31681 # Use a header file that comes with gcc, so configuring glibc 31682 # with a fresh cross-compiler works. 31683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31684 # <limits.h> exists even on freestanding compilers. 31685 # On the NeXT, cc -E runs the code through the compiler's parser, 31686 # not just through cpp. "Syntax error" is here to catch this case. 31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31688 /* end confdefs.h. */ 31689 #ifdef __STDC__ 31690 # include <limits.h> 31691 #else 31692 # include <assert.h> 31693 #endif 31694 Syntax error 31695 _ACEOF 31696 if ac_fn_cxx_try_cpp "$LINENO"; then : 31697 31698 else 31699 # Broken: fails on valid input. 31700 continue 31701 fi 31702 rm -f conftest.err conftest.i conftest.$ac_ext 31703 31704 # OK, works on sane cases. Now check whether nonexistent headers 31705 # can be detected and how. 31706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31707 /* end confdefs.h. */ 31708 #include <ac_nonexistent.h> 31709 _ACEOF 31710 if ac_fn_cxx_try_cpp "$LINENO"; then : 31711 # Broken: success on invalid input. 31712 continue 31713 else 31714 # Passes both tests. 31715 ac_preproc_ok=: 31716 break 31717 fi 31718 rm -f conftest.err conftest.i conftest.$ac_ext 31719 31720 done 31721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31722 rm -f conftest.i conftest.err conftest.$ac_ext 31723 if $ac_preproc_ok; then : 31724 break 31725 fi 31726 31727 done 31728 ac_cv_prog_CXXCPP=$CXXCPP 31729 31730 fi 31731 CXXCPP=$ac_cv_prog_CXXCPP 31732 else 31733 ac_cv_prog_CXXCPP=$CXXCPP 31734 fi 31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31736 $as_echo "$CXXCPP" >&6; } 31737 ac_preproc_ok=false 31738 for ac_cxx_preproc_warn_flag in '' yes 31739 do 31740 # Use a header file that comes with gcc, so configuring glibc 31741 # with a fresh cross-compiler works. 31742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31743 # <limits.h> exists even on freestanding compilers. 31744 # On the NeXT, cc -E runs the code through the compiler's parser, 31745 # not just through cpp. "Syntax error" is here to catch this case. 31746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31747 /* end confdefs.h. */ 31748 #ifdef __STDC__ 31749 # include <limits.h> 31750 #else 31751 # include <assert.h> 31752 #endif 31753 Syntax error 31754 _ACEOF 31755 if ac_fn_cxx_try_cpp "$LINENO"; then : 31756 31757 else 31758 # Broken: fails on valid input. 31759 continue 31760 fi 31761 rm -f conftest.err conftest.i conftest.$ac_ext 31762 31763 # OK, works on sane cases. Now check whether nonexistent headers 31764 # can be detected and how. 31765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31766 /* end confdefs.h. */ 31767 #include <ac_nonexistent.h> 31768 _ACEOF 31769 if ac_fn_cxx_try_cpp "$LINENO"; then : 31770 # Broken: success on invalid input. 31771 continue 31772 else 31773 # Passes both tests. 31774 ac_preproc_ok=: 31775 break 31776 fi 31777 rm -f conftest.err conftest.i conftest.$ac_ext 31778 31779 done 31780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31781 rm -f conftest.i conftest.err conftest.$ac_ext 31782 if $ac_preproc_ok; then : 31783 31784 else 31785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31787 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31788 See \`config.log' for more details" "$LINENO" 5; } 31789 fi 31790 31791 ac_ext=cpp 31792 ac_cpp='$CXXCPP $CPPFLAGS' 31793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31796 31797 31798 # Only process if variable expands to non-empty 31799 31800 if test "x$CXXCPP" != x; then 31801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31802 31803 # First separate the path from the arguments. This will split at the first 31804 # space. 31805 complete="$CXXCPP" 31806 path="${complete%% *}" 31807 tmp="$complete EOL" 31808 arguments="${tmp#* }" 31809 31810 # Input might be given as Windows format, start by converting to 31811 # unix format. 31812 new_path=`$CYGPATH -u "$path"` 31813 31814 # Now try to locate executable using which 31815 new_path=`$WHICH "$new_path" 2> /dev/null` 31816 # bat and cmd files are not always considered executable in cygwin causing which 31817 # to not find them 31818 if test "x$new_path" = x \ 31819 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31820 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31821 new_path=`$CYGPATH -u "$path"` 31822 fi 31823 if test "x$new_path" = x; then 31824 # Oops. Which didn't find the executable. 31825 # The splitting of arguments from the executable at a space might have been incorrect, 31826 # since paths with space are more likely in Windows. Give it another try with the whole 31827 # argument. 31828 path="$complete" 31829 arguments="EOL" 31830 new_path=`$CYGPATH -u "$path"` 31831 new_path=`$WHICH "$new_path" 2> /dev/null` 31832 # bat and cmd files are not always considered executable in cygwin causing which 31833 # to not find them 31834 if test "x$new_path" = x \ 31835 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31836 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31837 new_path=`$CYGPATH -u "$path"` 31838 fi 31839 if test "x$new_path" = x; then 31840 # It's still not found. Now this is an unrecoverable error. 31841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31842 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31843 has_space=`$ECHO "$complete" | $GREP " "` 31844 if test "x$has_space" != x; then 31845 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31847 fi 31848 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31849 fi 31850 fi 31851 31852 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31853 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31854 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31855 # "foo.exe" is OK but "foo" is an error. 31856 # 31857 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31858 # It is also a way to make sure we got the proper file name for the real test later on. 31859 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31860 if test "x$test_shortpath" = x; then 31861 # Short path failed, file does not exist as specified. 31862 # Try adding .exe or .cmd 31863 if test -f "${new_path}.exe"; then 31864 input_to_shortpath="${new_path}.exe" 31865 elif test -f "${new_path}.cmd"; then 31866 input_to_shortpath="${new_path}.cmd" 31867 else 31868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31869 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31870 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31871 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31872 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31873 fi 31874 else 31875 input_to_shortpath="$new_path" 31876 fi 31877 31878 # Call helper function which possibly converts this using DOS-style short mode. 31879 # If so, the updated path is stored in $new_path. 31880 new_path="$input_to_shortpath" 31881 31882 input_path="$input_to_shortpath" 31883 # Check if we need to convert this using DOS-style short mode. If the path 31884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31885 # take no chances and rewrite it. 31886 # Note: m4 eats our [], so we need to use [ and ] instead. 31887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31888 if test "x$has_forbidden_chars" != x; then 31889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31890 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31891 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31892 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31893 # Going to short mode and back again did indeed matter. Since short mode is 31894 # case insensitive, let's make it lowercase to improve readability. 31895 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31896 # Now convert it back to Unix-stile (cygpath) 31897 input_path=`$CYGPATH -u "$shortmode_path"` 31898 new_path="$input_path" 31899 fi 31900 fi 31901 31902 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31903 if test "x$test_cygdrive_prefix" = x; then 31904 # As a simple fix, exclude /usr/bin since it's not a real path. 31905 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31906 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31907 # a path prefixed by /cygdrive for fixpath to work. 31908 new_path="$CYGWIN_ROOT_PATH$input_path" 31909 fi 31910 fi 31911 31912 # remove trailing .exe if any 31913 new_path="${new_path/%.exe/}" 31914 31915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31916 31917 # First separate the path from the arguments. This will split at the first 31918 # space. 31919 complete="$CXXCPP" 31920 path="${complete%% *}" 31921 tmp="$complete EOL" 31922 arguments="${tmp#* }" 31923 31924 # Input might be given as Windows format, start by converting to 31925 # unix format. 31926 new_path="$path" 31927 31928 windows_path="$new_path" 31929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31930 unix_path=`$CYGPATH -u "$windows_path"` 31931 new_path="$unix_path" 31932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31934 new_path="$unix_path" 31935 fi 31936 31937 31938 # Now try to locate executable using which 31939 new_path=`$WHICH "$new_path" 2> /dev/null` 31940 31941 if test "x$new_path" = x; then 31942 # Oops. Which didn't find the executable. 31943 # The splitting of arguments from the executable at a space might have been incorrect, 31944 # since paths with space are more likely in Windows. Give it another try with the whole 31945 # argument. 31946 path="$complete" 31947 arguments="EOL" 31948 new_path="$path" 31949 31950 windows_path="$new_path" 31951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31952 unix_path=`$CYGPATH -u "$windows_path"` 31953 new_path="$unix_path" 31954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31955 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31956 new_path="$unix_path" 31957 fi 31958 31959 31960 new_path=`$WHICH "$new_path" 2> /dev/null` 31961 # bat and cmd files are not always considered executable in MSYS causing which 31962 # to not find them 31963 if test "x$new_path" = x \ 31964 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31965 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31966 new_path="$path" 31967 31968 windows_path="$new_path" 31969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31970 unix_path=`$CYGPATH -u "$windows_path"` 31971 new_path="$unix_path" 31972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31974 new_path="$unix_path" 31975 fi 31976 31977 fi 31978 31979 if test "x$new_path" = x; then 31980 # It's still not found. Now this is an unrecoverable error. 31981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31982 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31983 has_space=`$ECHO "$complete" | $GREP " "` 31984 if test "x$has_space" != x; then 31985 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31987 fi 31988 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31989 fi 31990 fi 31991 31992 # Now new_path has a complete unix path to the binary 31993 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31994 # Keep paths in /bin as-is, but remove trailing .exe if any 31995 new_path="${new_path/%.exe/}" 31996 # Do not save /bin paths to all_fixpath_prefixes! 31997 else 31998 # Not in mixed or Windows style, start by that. 31999 new_path=`cmd //c echo $new_path` 32000 32001 input_path="$new_path" 32002 # Check if we need to convert this using DOS-style short mode. If the path 32003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32004 # take no chances and rewrite it. 32005 # Note: m4 eats our [], so we need to use [ and ] instead. 32006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32007 if test "x$has_forbidden_chars" != x; then 32008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32009 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32010 fi 32011 32012 # Output is in $new_path 32013 32014 windows_path="$new_path" 32015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32016 unix_path=`$CYGPATH -u "$windows_path"` 32017 new_path="$unix_path" 32018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32020 new_path="$unix_path" 32021 fi 32022 32023 # remove trailing .exe if any 32024 new_path="${new_path/%.exe/}" 32025 32026 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32027 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32028 fi 32029 32030 else 32031 # We're on a unix platform. Hooray! :) 32032 # First separate the path from the arguments. This will split at the first 32033 # space. 32034 complete="$CXXCPP" 32035 path="${complete%% *}" 32036 tmp="$complete EOL" 32037 arguments="${tmp#* }" 32038 32039 # Cannot rely on the command "which" here since it doesn't always work. 32040 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32041 if test -z "$is_absolute_path"; then 32042 # Path to executable is not absolute. Find it. 32043 IFS_save="$IFS" 32044 IFS=: 32045 for p in $PATH; do 32046 if test -f "$p/$path" && test -x "$p/$path"; then 32047 new_path="$p/$path" 32048 break 32049 fi 32050 done 32051 IFS="$IFS_save" 32052 else 32053 # This is an absolute path, we can use it without further modifications. 32054 new_path="$path" 32055 fi 32056 32057 if test "x$new_path" = x; then 32058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32059 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32060 has_space=`$ECHO "$complete" | $GREP " "` 32061 if test "x$has_space" != x; then 32062 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32063 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32064 fi 32065 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32066 fi 32067 fi 32068 32069 # Now join together the path and the arguments once again 32070 if test "x$arguments" != xEOL; then 32071 new_complete="$new_path ${arguments% *}" 32072 else 32073 new_complete="$new_path" 32074 fi 32075 32076 if test "x$complete" != "x$new_complete"; then 32077 CXXCPP="$new_complete" 32078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 32079 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 32080 fi 32081 fi 32082 32083 32084 # 32085 # Setup the linker (LD) 32086 # 32087 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32088 # In the Microsoft toolchain we have a separate LD command "link". 32089 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 32090 # a cygwin program for something completely different. 32091 # Extract the first word of "link", so it can be a program name with args. 32092 set dummy link; ac_word=$2 32093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32094 $as_echo_n "checking for $ac_word... " >&6; } 32095 if ${ac_cv_prog_LD+:} false; then : 32096 $as_echo_n "(cached) " >&6 32097 else 32098 if test -n "$LD"; then 32099 ac_cv_prog_LD="$LD" # Let the user override the test. 32100 else 32101 ac_prog_rejected=no 32102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32103 for as_dir in $PATH 32104 do 32105 IFS=$as_save_IFS 32106 test -z "$as_dir" && as_dir=. 32107 for ac_exec_ext in '' $ac_executable_extensions; do 32108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32109 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 32110 ac_prog_rejected=yes 32111 continue 32112 fi 32113 ac_cv_prog_LD="link" 32114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32115 break 2 32116 fi 32117 done 32118 done 32119 IFS=$as_save_IFS 32120 32121 if test $ac_prog_rejected = yes; then 32122 # We found a bogon in the path, so make sure we never use it. 32123 set dummy $ac_cv_prog_LD 32124 shift 32125 if test $# != 0; then 32126 # We chose a different compiler from the bogus one. 32127 # However, it has the same basename, so the bogon will be chosen 32128 # first if we set LD to just the basename; use the full file name. 32129 shift 32130 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 32131 fi 32132 fi 32133 fi 32134 fi 32135 LD=$ac_cv_prog_LD 32136 if test -n "$LD"; then 32137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 32138 $as_echo "$LD" >&6; } 32139 else 32140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32141 $as_echo "no" >&6; } 32142 fi 32143 32144 32145 32146 # Only process if variable expands to non-empty 32147 32148 if test "x$LD" != x; then 32149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32150 32151 # First separate the path from the arguments. This will split at the first 32152 # space. 32153 complete="$LD" 32154 path="${complete%% *}" 32155 tmp="$complete EOL" 32156 arguments="${tmp#* }" 32157 32158 # Input might be given as Windows format, start by converting to 32159 # unix format. 32160 new_path=`$CYGPATH -u "$path"` 32161 32162 # Now try to locate executable using which 32163 new_path=`$WHICH "$new_path" 2> /dev/null` 32164 # bat and cmd files are not always considered executable in cygwin causing which 32165 # to not find them 32166 if test "x$new_path" = x \ 32167 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32168 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32169 new_path=`$CYGPATH -u "$path"` 32170 fi 32171 if test "x$new_path" = x; then 32172 # Oops. Which didn't find the executable. 32173 # The splitting of arguments from the executable at a space might have been incorrect, 32174 # since paths with space are more likely in Windows. Give it another try with the whole 32175 # argument. 32176 path="$complete" 32177 arguments="EOL" 32178 new_path=`$CYGPATH -u "$path"` 32179 new_path=`$WHICH "$new_path" 2> /dev/null` 32180 # bat and cmd files are not always considered executable in cygwin causing which 32181 # to not find them 32182 if test "x$new_path" = x \ 32183 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32184 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32185 new_path=`$CYGPATH -u "$path"` 32186 fi 32187 if test "x$new_path" = x; then 32188 # It's still not found. Now this is an unrecoverable error. 32189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32190 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32191 has_space=`$ECHO "$complete" | $GREP " "` 32192 if test "x$has_space" != x; then 32193 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32194 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32195 fi 32196 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32197 fi 32198 fi 32199 32200 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32201 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32202 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32203 # "foo.exe" is OK but "foo" is an error. 32204 # 32205 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32206 # It is also a way to make sure we got the proper file name for the real test later on. 32207 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32208 if test "x$test_shortpath" = x; then 32209 # Short path failed, file does not exist as specified. 32210 # Try adding .exe or .cmd 32211 if test -f "${new_path}.exe"; then 32212 input_to_shortpath="${new_path}.exe" 32213 elif test -f "${new_path}.cmd"; then 32214 input_to_shortpath="${new_path}.cmd" 32215 else 32216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 32217 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 32218 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32219 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32220 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32221 fi 32222 else 32223 input_to_shortpath="$new_path" 32224 fi 32225 32226 # Call helper function which possibly converts this using DOS-style short mode. 32227 # If so, the updated path is stored in $new_path. 32228 new_path="$input_to_shortpath" 32229 32230 input_path="$input_to_shortpath" 32231 # Check if we need to convert this using DOS-style short mode. If the path 32232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32233 # take no chances and rewrite it. 32234 # Note: m4 eats our [], so we need to use [ and ] instead. 32235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32236 if test "x$has_forbidden_chars" != x; then 32237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32238 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32239 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32240 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32241 # Going to short mode and back again did indeed matter. Since short mode is 32242 # case insensitive, let's make it lowercase to improve readability. 32243 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32244 # Now convert it back to Unix-stile (cygpath) 32245 input_path=`$CYGPATH -u "$shortmode_path"` 32246 new_path="$input_path" 32247 fi 32248 fi 32249 32250 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32251 if test "x$test_cygdrive_prefix" = x; then 32252 # As a simple fix, exclude /usr/bin since it's not a real path. 32253 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32254 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32255 # a path prefixed by /cygdrive for fixpath to work. 32256 new_path="$CYGWIN_ROOT_PATH$input_path" 32257 fi 32258 fi 32259 32260 # remove trailing .exe if any 32261 new_path="${new_path/%.exe/}" 32262 32263 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32264 32265 # First separate the path from the arguments. This will split at the first 32266 # space. 32267 complete="$LD" 32268 path="${complete%% *}" 32269 tmp="$complete EOL" 32270 arguments="${tmp#* }" 32271 32272 # Input might be given as Windows format, start by converting to 32273 # unix format. 32274 new_path="$path" 32275 32276 windows_path="$new_path" 32277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32278 unix_path=`$CYGPATH -u "$windows_path"` 32279 new_path="$unix_path" 32280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32282 new_path="$unix_path" 32283 fi 32284 32285 32286 # Now try to locate executable using which 32287 new_path=`$WHICH "$new_path" 2> /dev/null` 32288 32289 if test "x$new_path" = x; then 32290 # Oops. Which didn't find the executable. 32291 # The splitting of arguments from the executable at a space might have been incorrect, 32292 # since paths with space are more likely in Windows. Give it another try with the whole 32293 # argument. 32294 path="$complete" 32295 arguments="EOL" 32296 new_path="$path" 32297 32298 windows_path="$new_path" 32299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32300 unix_path=`$CYGPATH -u "$windows_path"` 32301 new_path="$unix_path" 32302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32304 new_path="$unix_path" 32305 fi 32306 32307 32308 new_path=`$WHICH "$new_path" 2> /dev/null` 32309 # bat and cmd files are not always considered executable in MSYS causing which 32310 # to not find them 32311 if test "x$new_path" = x \ 32312 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32313 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32314 new_path="$path" 32315 32316 windows_path="$new_path" 32317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32318 unix_path=`$CYGPATH -u "$windows_path"` 32319 new_path="$unix_path" 32320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32322 new_path="$unix_path" 32323 fi 32324 32325 fi 32326 32327 if test "x$new_path" = x; then 32328 # It's still not found. Now this is an unrecoverable error. 32329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32330 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32331 has_space=`$ECHO "$complete" | $GREP " "` 32332 if test "x$has_space" != x; then 32333 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32334 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32335 fi 32336 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32337 fi 32338 fi 32339 32340 # Now new_path has a complete unix path to the binary 32341 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32342 # Keep paths in /bin as-is, but remove trailing .exe if any 32343 new_path="${new_path/%.exe/}" 32344 # Do not save /bin paths to all_fixpath_prefixes! 32345 else 32346 # Not in mixed or Windows style, start by that. 32347 new_path=`cmd //c echo $new_path` 32348 32349 input_path="$new_path" 32350 # Check if we need to convert this using DOS-style short mode. If the path 32351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32352 # take no chances and rewrite it. 32353 # Note: m4 eats our [], so we need to use [ and ] instead. 32354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32355 if test "x$has_forbidden_chars" != x; then 32356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32358 fi 32359 32360 # Output is in $new_path 32361 32362 windows_path="$new_path" 32363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32364 unix_path=`$CYGPATH -u "$windows_path"` 32365 new_path="$unix_path" 32366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32368 new_path="$unix_path" 32369 fi 32370 32371 # remove trailing .exe if any 32372 new_path="${new_path/%.exe/}" 32373 32374 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32375 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32376 fi 32377 32378 else 32379 # We're on a unix platform. Hooray! :) 32380 # First separate the path from the arguments. This will split at the first 32381 # space. 32382 complete="$LD" 32383 path="${complete%% *}" 32384 tmp="$complete EOL" 32385 arguments="${tmp#* }" 32386 32387 # Cannot rely on the command "which" here since it doesn't always work. 32388 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32389 if test -z "$is_absolute_path"; then 32390 # Path to executable is not absolute. Find it. 32391 IFS_save="$IFS" 32392 IFS=: 32393 for p in $PATH; do 32394 if test -f "$p/$path" && test -x "$p/$path"; then 32395 new_path="$p/$path" 32396 break 32397 fi 32398 done 32399 IFS="$IFS_save" 32400 else 32401 # This is an absolute path, we can use it without further modifications. 32402 new_path="$path" 32403 fi 32404 32405 if test "x$new_path" = x; then 32406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32407 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32408 has_space=`$ECHO "$complete" | $GREP " "` 32409 if test "x$has_space" != x; then 32410 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32411 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32412 fi 32413 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32414 fi 32415 fi 32416 32417 # Now join together the path and the arguments once again 32418 if test "x$arguments" != xEOL; then 32419 new_complete="$new_path ${arguments% *}" 32420 else 32421 new_complete="$new_path" 32422 fi 32423 32424 if test "x$complete" != "x$new_complete"; then 32425 LD="$new_complete" 32426 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32427 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32428 fi 32429 fi 32430 32431 # Verify that we indeed succeeded with this trick. 32432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32433 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32434 "$LD" --version > /dev/null 32435 if test $? -eq 0 ; then 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32437 $as_echo "no" >&6; } 32438 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32439 else 32440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32441 $as_echo "yes" >&6; } 32442 fi 32443 LDCXX="$LD" 32444 else 32445 # All other toolchains use the compiler to link. 32446 LD="$CC" 32447 LDCXX="$CXX" 32448 fi 32449 32450 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32451 32452 32453 # 32454 # Setup the assembler (AS) 32455 # 32456 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32457 # FIXME: should this really be solaris, or solstudio? 32458 32459 32460 # Publish this variable in the help. 32461 32462 32463 if test "x$AS" = x; then 32464 # The variable is not set by user, try to locate tool using the code snippet 32465 for ac_prog in as 32466 do 32467 # Extract the first word of "$ac_prog", so it can be a program name with args. 32468 set dummy $ac_prog; ac_word=$2 32469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32470 $as_echo_n "checking for $ac_word... " >&6; } 32471 if ${ac_cv_path_AS+:} false; then : 32472 $as_echo_n "(cached) " >&6 32473 else 32474 case $AS in 32475 [\\/]* | ?:[\\/]*) 32476 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32477 ;; 32478 *) 32479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32480 for as_dir in $PATH 32481 do 32482 IFS=$as_save_IFS 32483 test -z "$as_dir" && as_dir=. 32484 for ac_exec_ext in '' $ac_executable_extensions; do 32485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32486 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32488 break 2 32489 fi 32490 done 32491 done 32492 IFS=$as_save_IFS 32493 32494 ;; 32495 esac 32496 fi 32497 AS=$ac_cv_path_AS 32498 if test -n "$AS"; then 32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32500 $as_echo "$AS" >&6; } 32501 else 32502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32503 $as_echo "no" >&6; } 32504 fi 32505 32506 32507 test -n "$AS" && break 32508 done 32509 32510 else 32511 # The variable is set, but is it from the command line or the environment? 32512 32513 # Try to remove the string !AS! from our list. 32514 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32515 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32516 # If it failed, the variable was not from the command line. Ignore it, 32517 # but warn the user (except for BASH, which is always set by the calling BASH). 32518 if test "xAS" != xBASH; then 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32520 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32521 fi 32522 # Try to locate tool using the code snippet 32523 for ac_prog in as 32524 do 32525 # Extract the first word of "$ac_prog", so it can be a program name with args. 32526 set dummy $ac_prog; ac_word=$2 32527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32528 $as_echo_n "checking for $ac_word... " >&6; } 32529 if ${ac_cv_path_AS+:} false; then : 32530 $as_echo_n "(cached) " >&6 32531 else 32532 case $AS in 32533 [\\/]* | ?:[\\/]*) 32534 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32535 ;; 32536 *) 32537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32538 for as_dir in $PATH 32539 do 32540 IFS=$as_save_IFS 32541 test -z "$as_dir" && as_dir=. 32542 for ac_exec_ext in '' $ac_executable_extensions; do 32543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32544 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32546 break 2 32547 fi 32548 done 32549 done 32550 IFS=$as_save_IFS 32551 32552 ;; 32553 esac 32554 fi 32555 AS=$ac_cv_path_AS 32556 if test -n "$AS"; then 32557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32558 $as_echo "$AS" >&6; } 32559 else 32560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32561 $as_echo "no" >&6; } 32562 fi 32563 32564 32565 test -n "$AS" && break 32566 done 32567 32568 else 32569 # If it succeeded, then it was overridden by the user. We will use it 32570 # for the tool. 32571 32572 # First remove it from the list of overridden variables, so we can test 32573 # for unknown variables in the end. 32574 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32575 32576 # Check if the provided tool contains a complete path. 32577 tool_specified="$AS" 32578 tool_basename="${tool_specified##*/}" 32579 if test "x$tool_basename" = "x$tool_specified"; then 32580 # A command without a complete path is provided, search $PATH. 32581 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32582 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32583 # Extract the first word of "$tool_basename", so it can be a program name with args. 32584 set dummy $tool_basename; ac_word=$2 32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32586 $as_echo_n "checking for $ac_word... " >&6; } 32587 if ${ac_cv_path_AS+:} false; then : 32588 $as_echo_n "(cached) " >&6 32589 else 32590 case $AS in 32591 [\\/]* | ?:[\\/]*) 32592 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32593 ;; 32594 *) 32595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32596 for as_dir in $PATH 32597 do 32598 IFS=$as_save_IFS 32599 test -z "$as_dir" && as_dir=. 32600 for ac_exec_ext in '' $ac_executable_extensions; do 32601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32602 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32604 break 2 32605 fi 32606 done 32607 done 32608 IFS=$as_save_IFS 32609 32610 ;; 32611 esac 32612 fi 32613 AS=$ac_cv_path_AS 32614 if test -n "$AS"; then 32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32616 $as_echo "$AS" >&6; } 32617 else 32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32619 $as_echo "no" >&6; } 32620 fi 32621 32622 32623 if test "x$AS" = x; then 32624 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32625 fi 32626 else 32627 # Otherwise we believe it is a complete path. Use it as it is. 32628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32629 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32631 $as_echo_n "checking for AS... " >&6; } 32632 if test ! -x "$tool_specified"; then 32633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32634 $as_echo "not found" >&6; } 32635 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32636 fi 32637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32638 $as_echo "$tool_specified" >&6; } 32639 fi 32640 fi 32641 fi 32642 32643 32644 32645 # Only process if variable expands to non-empty 32646 32647 if test "x$AS" != x; then 32648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32649 32650 # First separate the path from the arguments. This will split at the first 32651 # space. 32652 complete="$AS" 32653 path="${complete%% *}" 32654 tmp="$complete EOL" 32655 arguments="${tmp#* }" 32656 32657 # Input might be given as Windows format, start by converting to 32658 # unix format. 32659 new_path=`$CYGPATH -u "$path"` 32660 32661 # Now try to locate executable using which 32662 new_path=`$WHICH "$new_path" 2> /dev/null` 32663 # bat and cmd files are not always considered executable in cygwin causing which 32664 # to not find them 32665 if test "x$new_path" = x \ 32666 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32667 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32668 new_path=`$CYGPATH -u "$path"` 32669 fi 32670 if test "x$new_path" = x; then 32671 # Oops. Which didn't find the executable. 32672 # The splitting of arguments from the executable at a space might have been incorrect, 32673 # since paths with space are more likely in Windows. Give it another try with the whole 32674 # argument. 32675 path="$complete" 32676 arguments="EOL" 32677 new_path=`$CYGPATH -u "$path"` 32678 new_path=`$WHICH "$new_path" 2> /dev/null` 32679 # bat and cmd files are not always considered executable in cygwin causing which 32680 # to not find them 32681 if test "x$new_path" = x \ 32682 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32683 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32684 new_path=`$CYGPATH -u "$path"` 32685 fi 32686 if test "x$new_path" = x; then 32687 # It's still not found. Now this is an unrecoverable error. 32688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32689 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32690 has_space=`$ECHO "$complete" | $GREP " "` 32691 if test "x$has_space" != x; then 32692 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32693 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32694 fi 32695 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32696 fi 32697 fi 32698 32699 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32700 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32701 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32702 # "foo.exe" is OK but "foo" is an error. 32703 # 32704 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32705 # It is also a way to make sure we got the proper file name for the real test later on. 32706 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32707 if test "x$test_shortpath" = x; then 32708 # Short path failed, file does not exist as specified. 32709 # Try adding .exe or .cmd 32710 if test -f "${new_path}.exe"; then 32711 input_to_shortpath="${new_path}.exe" 32712 elif test -f "${new_path}.cmd"; then 32713 input_to_shortpath="${new_path}.cmd" 32714 else 32715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32716 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32717 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32718 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32719 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32720 fi 32721 else 32722 input_to_shortpath="$new_path" 32723 fi 32724 32725 # Call helper function which possibly converts this using DOS-style short mode. 32726 # If so, the updated path is stored in $new_path. 32727 new_path="$input_to_shortpath" 32728 32729 input_path="$input_to_shortpath" 32730 # Check if we need to convert this using DOS-style short mode. If the path 32731 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32732 # take no chances and rewrite it. 32733 # Note: m4 eats our [], so we need to use [ and ] instead. 32734 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32735 if test "x$has_forbidden_chars" != x; then 32736 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32737 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32738 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32739 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32740 # Going to short mode and back again did indeed matter. Since short mode is 32741 # case insensitive, let's make it lowercase to improve readability. 32742 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32743 # Now convert it back to Unix-stile (cygpath) 32744 input_path=`$CYGPATH -u "$shortmode_path"` 32745 new_path="$input_path" 32746 fi 32747 fi 32748 32749 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32750 if test "x$test_cygdrive_prefix" = x; then 32751 # As a simple fix, exclude /usr/bin since it's not a real path. 32752 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32753 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32754 # a path prefixed by /cygdrive for fixpath to work. 32755 new_path="$CYGWIN_ROOT_PATH$input_path" 32756 fi 32757 fi 32758 32759 # remove trailing .exe if any 32760 new_path="${new_path/%.exe/}" 32761 32762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32763 32764 # First separate the path from the arguments. This will split at the first 32765 # space. 32766 complete="$AS" 32767 path="${complete%% *}" 32768 tmp="$complete EOL" 32769 arguments="${tmp#* }" 32770 32771 # Input might be given as Windows format, start by converting to 32772 # unix format. 32773 new_path="$path" 32774 32775 windows_path="$new_path" 32776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32777 unix_path=`$CYGPATH -u "$windows_path"` 32778 new_path="$unix_path" 32779 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32780 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32781 new_path="$unix_path" 32782 fi 32783 32784 32785 # Now try to locate executable using which 32786 new_path=`$WHICH "$new_path" 2> /dev/null` 32787 32788 if test "x$new_path" = x; then 32789 # Oops. Which didn't find the executable. 32790 # The splitting of arguments from the executable at a space might have been incorrect, 32791 # since paths with space are more likely in Windows. Give it another try with the whole 32792 # argument. 32793 path="$complete" 32794 arguments="EOL" 32795 new_path="$path" 32796 32797 windows_path="$new_path" 32798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32799 unix_path=`$CYGPATH -u "$windows_path"` 32800 new_path="$unix_path" 32801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32803 new_path="$unix_path" 32804 fi 32805 32806 32807 new_path=`$WHICH "$new_path" 2> /dev/null` 32808 # bat and cmd files are not always considered executable in MSYS causing which 32809 # to not find them 32810 if test "x$new_path" = x \ 32811 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32812 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32813 new_path="$path" 32814 32815 windows_path="$new_path" 32816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32817 unix_path=`$CYGPATH -u "$windows_path"` 32818 new_path="$unix_path" 32819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32821 new_path="$unix_path" 32822 fi 32823 32824 fi 32825 32826 if test "x$new_path" = x; then 32827 # It's still not found. Now this is an unrecoverable error. 32828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32829 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32830 has_space=`$ECHO "$complete" | $GREP " "` 32831 if test "x$has_space" != x; then 32832 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32833 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32834 fi 32835 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32836 fi 32837 fi 32838 32839 # Now new_path has a complete unix path to the binary 32840 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32841 # Keep paths in /bin as-is, but remove trailing .exe if any 32842 new_path="${new_path/%.exe/}" 32843 # Do not save /bin paths to all_fixpath_prefixes! 32844 else 32845 # Not in mixed or Windows style, start by that. 32846 new_path=`cmd //c echo $new_path` 32847 32848 input_path="$new_path" 32849 # Check if we need to convert this using DOS-style short mode. If the path 32850 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32851 # take no chances and rewrite it. 32852 # Note: m4 eats our [], so we need to use [ and ] instead. 32853 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32854 if test "x$has_forbidden_chars" != x; then 32855 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32856 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32857 fi 32858 32859 # Output is in $new_path 32860 32861 windows_path="$new_path" 32862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32863 unix_path=`$CYGPATH -u "$windows_path"` 32864 new_path="$unix_path" 32865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32867 new_path="$unix_path" 32868 fi 32869 32870 # remove trailing .exe if any 32871 new_path="${new_path/%.exe/}" 32872 32873 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32874 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32875 fi 32876 32877 else 32878 # We're on a unix platform. Hooray! :) 32879 # First separate the path from the arguments. This will split at the first 32880 # space. 32881 complete="$AS" 32882 path="${complete%% *}" 32883 tmp="$complete EOL" 32884 arguments="${tmp#* }" 32885 32886 # Cannot rely on the command "which" here since it doesn't always work. 32887 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32888 if test -z "$is_absolute_path"; then 32889 # Path to executable is not absolute. Find it. 32890 IFS_save="$IFS" 32891 IFS=: 32892 for p in $PATH; do 32893 if test -f "$p/$path" && test -x "$p/$path"; then 32894 new_path="$p/$path" 32895 break 32896 fi 32897 done 32898 IFS="$IFS_save" 32899 else 32900 # This is an absolute path, we can use it without further modifications. 32901 new_path="$path" 32902 fi 32903 32904 if test "x$new_path" = x; then 32905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32906 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32907 has_space=`$ECHO "$complete" | $GREP " "` 32908 if test "x$has_space" != x; then 32909 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32910 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32911 fi 32912 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32913 fi 32914 fi 32915 32916 # Now join together the path and the arguments once again 32917 if test "x$arguments" != xEOL; then 32918 new_complete="$new_path ${arguments% *}" 32919 else 32920 new_complete="$new_path" 32921 fi 32922 32923 if test "x$complete" != "x$new_complete"; then 32924 AS="$new_complete" 32925 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32926 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32927 fi 32928 fi 32929 32930 else 32931 # FIXME: is this correct for microsoft? 32932 AS="$CC -c" 32933 fi 32934 32935 32936 # 32937 # Setup the archiver (AR) 32938 # 32939 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32940 # The corresponding ar tool is lib.exe (used to create static libraries) 32941 # Extract the first word of "lib", so it can be a program name with args. 32942 set dummy lib; ac_word=$2 32943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32944 $as_echo_n "checking for $ac_word... " >&6; } 32945 if ${ac_cv_prog_AR+:} false; then : 32946 $as_echo_n "(cached) " >&6 32947 else 32948 if test -n "$AR"; then 32949 ac_cv_prog_AR="$AR" # Let the user override the test. 32950 else 32951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32952 for as_dir in $PATH 32953 do 32954 IFS=$as_save_IFS 32955 test -z "$as_dir" && as_dir=. 32956 for ac_exec_ext in '' $ac_executable_extensions; do 32957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32958 ac_cv_prog_AR="lib" 32959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32960 break 2 32961 fi 32962 done 32963 done 32964 IFS=$as_save_IFS 32965 32966 fi 32967 fi 32968 AR=$ac_cv_prog_AR 32969 if test -n "$AR"; then 32970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32971 $as_echo "$AR" >&6; } 32972 else 32973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32974 $as_echo "no" >&6; } 32975 fi 32976 32977 32978 else 32979 32980 32981 # Publish this variable in the help. 32982 32983 32984 if test "x$AR" = x; then 32985 # The variable is not set by user, try to locate tool using the code snippet 32986 if test -n "$ac_tool_prefix"; then 32987 for ac_prog in ar 32988 do 32989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32992 $as_echo_n "checking for $ac_word... " >&6; } 32993 if ${ac_cv_prog_AR+:} false; then : 32994 $as_echo_n "(cached) " >&6 32995 else 32996 if test -n "$AR"; then 32997 ac_cv_prog_AR="$AR" # Let the user override the test. 32998 else 32999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33000 for as_dir in $PATH 33001 do 33002 IFS=$as_save_IFS 33003 test -z "$as_dir" && as_dir=. 33004 for ac_exec_ext in '' $ac_executable_extensions; do 33005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33006 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33008 break 2 33009 fi 33010 done 33011 done 33012 IFS=$as_save_IFS 33013 33014 fi 33015 fi 33016 AR=$ac_cv_prog_AR 33017 if test -n "$AR"; then 33018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33019 $as_echo "$AR" >&6; } 33020 else 33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33022 $as_echo "no" >&6; } 33023 fi 33024 33025 33026 test -n "$AR" && break 33027 done 33028 fi 33029 if test -z "$AR"; then 33030 ac_ct_AR=$AR 33031 for ac_prog in ar 33032 do 33033 # Extract the first word of "$ac_prog", so it can be a program name with args. 33034 set dummy $ac_prog; ac_word=$2 33035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33036 $as_echo_n "checking for $ac_word... " >&6; } 33037 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33038 $as_echo_n "(cached) " >&6 33039 else 33040 if test -n "$ac_ct_AR"; then 33041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33042 else 33043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33044 for as_dir in $PATH 33045 do 33046 IFS=$as_save_IFS 33047 test -z "$as_dir" && as_dir=. 33048 for ac_exec_ext in '' $ac_executable_extensions; do 33049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33050 ac_cv_prog_ac_ct_AR="$ac_prog" 33051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33052 break 2 33053 fi 33054 done 33055 done 33056 IFS=$as_save_IFS 33057 33058 fi 33059 fi 33060 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33061 if test -n "$ac_ct_AR"; then 33062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33063 $as_echo "$ac_ct_AR" >&6; } 33064 else 33065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33066 $as_echo "no" >&6; } 33067 fi 33068 33069 33070 test -n "$ac_ct_AR" && break 33071 done 33072 33073 if test "x$ac_ct_AR" = x; then 33074 AR="" 33075 else 33076 case $cross_compiling:$ac_tool_warned in 33077 yes:) 33078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33080 ac_tool_warned=yes ;; 33081 esac 33082 AR=$ac_ct_AR 33083 fi 33084 fi 33085 33086 else 33087 # The variable is set, but is it from the command line or the environment? 33088 33089 # Try to remove the string !AR! from our list. 33090 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 33091 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33092 # If it failed, the variable was not from the command line. Ignore it, 33093 # but warn the user (except for BASH, which is always set by the calling BASH). 33094 if test "xAR" != xBASH; then 33095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 33096 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 33097 fi 33098 # Try to locate tool using the code snippet 33099 if test -n "$ac_tool_prefix"; then 33100 for ac_prog in ar 33101 do 33102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33105 $as_echo_n "checking for $ac_word... " >&6; } 33106 if ${ac_cv_prog_AR+:} false; then : 33107 $as_echo_n "(cached) " >&6 33108 else 33109 if test -n "$AR"; then 33110 ac_cv_prog_AR="$AR" # Let the user override the test. 33111 else 33112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33113 for as_dir in $PATH 33114 do 33115 IFS=$as_save_IFS 33116 test -z "$as_dir" && as_dir=. 33117 for ac_exec_ext in '' $ac_executable_extensions; do 33118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33119 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33121 break 2 33122 fi 33123 done 33124 done 33125 IFS=$as_save_IFS 33126 33127 fi 33128 fi 33129 AR=$ac_cv_prog_AR 33130 if test -n "$AR"; then 33131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33132 $as_echo "$AR" >&6; } 33133 else 33134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33135 $as_echo "no" >&6; } 33136 fi 33137 33138 33139 test -n "$AR" && break 33140 done 33141 fi 33142 if test -z "$AR"; then 33143 ac_ct_AR=$AR 33144 for ac_prog in ar 33145 do 33146 # Extract the first word of "$ac_prog", so it can be a program name with args. 33147 set dummy $ac_prog; ac_word=$2 33148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33149 $as_echo_n "checking for $ac_word... " >&6; } 33150 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33151 $as_echo_n "(cached) " >&6 33152 else 33153 if test -n "$ac_ct_AR"; then 33154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33155 else 33156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33157 for as_dir in $PATH 33158 do 33159 IFS=$as_save_IFS 33160 test -z "$as_dir" && as_dir=. 33161 for ac_exec_ext in '' $ac_executable_extensions; do 33162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33163 ac_cv_prog_ac_ct_AR="$ac_prog" 33164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33165 break 2 33166 fi 33167 done 33168 done 33169 IFS=$as_save_IFS 33170 33171 fi 33172 fi 33173 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33174 if test -n "$ac_ct_AR"; then 33175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33176 $as_echo "$ac_ct_AR" >&6; } 33177 else 33178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33179 $as_echo "no" >&6; } 33180 fi 33181 33182 33183 test -n "$ac_ct_AR" && break 33184 done 33185 33186 if test "x$ac_ct_AR" = x; then 33187 AR="" 33188 else 33189 case $cross_compiling:$ac_tool_warned in 33190 yes:) 33191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33193 ac_tool_warned=yes ;; 33194 esac 33195 AR=$ac_ct_AR 33196 fi 33197 fi 33198 33199 else 33200 # If it succeeded, then it was overridden by the user. We will use it 33201 # for the tool. 33202 33203 # First remove it from the list of overridden variables, so we can test 33204 # for unknown variables in the end. 33205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33206 33207 # Check if the provided tool contains a complete path. 33208 tool_specified="$AR" 33209 tool_basename="${tool_specified##*/}" 33210 if test "x$tool_basename" = "x$tool_specified"; then 33211 # A command without a complete path is provided, search $PATH. 33212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 33213 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 33214 # Extract the first word of "$tool_basename", so it can be a program name with args. 33215 set dummy $tool_basename; ac_word=$2 33216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33217 $as_echo_n "checking for $ac_word... " >&6; } 33218 if ${ac_cv_path_AR+:} false; then : 33219 $as_echo_n "(cached) " >&6 33220 else 33221 case $AR in 33222 [\\/]* | ?:[\\/]*) 33223 ac_cv_path_AR="$AR" # Let the user override the test with a path. 33224 ;; 33225 *) 33226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33227 for as_dir in $PATH 33228 do 33229 IFS=$as_save_IFS 33230 test -z "$as_dir" && as_dir=. 33231 for ac_exec_ext in '' $ac_executable_extensions; do 33232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33233 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 33234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33235 break 2 33236 fi 33237 done 33238 done 33239 IFS=$as_save_IFS 33240 33241 ;; 33242 esac 33243 fi 33244 AR=$ac_cv_path_AR 33245 if test -n "$AR"; then 33246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33247 $as_echo "$AR" >&6; } 33248 else 33249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33250 $as_echo "no" >&6; } 33251 fi 33252 33253 33254 if test "x$AR" = x; then 33255 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33256 fi 33257 else 33258 # Otherwise we believe it is a complete path. Use it as it is. 33259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 33260 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 33261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 33262 $as_echo_n "checking for AR... " >&6; } 33263 if test ! -x "$tool_specified"; then 33264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33265 $as_echo "not found" >&6; } 33266 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 33267 fi 33268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33269 $as_echo "$tool_specified" >&6; } 33270 fi 33271 fi 33272 fi 33273 33274 33275 fi 33276 33277 # Only process if variable expands to non-empty 33278 33279 if test "x$AR" != x; then 33280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33281 33282 # First separate the path from the arguments. This will split at the first 33283 # space. 33284 complete="$AR" 33285 path="${complete%% *}" 33286 tmp="$complete EOL" 33287 arguments="${tmp#* }" 33288 33289 # Input might be given as Windows format, start by converting to 33290 # unix format. 33291 new_path=`$CYGPATH -u "$path"` 33292 33293 # Now try to locate executable using which 33294 new_path=`$WHICH "$new_path" 2> /dev/null` 33295 # bat and cmd files are not always considered executable in cygwin causing which 33296 # to not find them 33297 if test "x$new_path" = x \ 33298 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33299 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33300 new_path=`$CYGPATH -u "$path"` 33301 fi 33302 if test "x$new_path" = x; then 33303 # Oops. Which didn't find the executable. 33304 # The splitting of arguments from the executable at a space might have been incorrect, 33305 # since paths with space are more likely in Windows. Give it another try with the whole 33306 # argument. 33307 path="$complete" 33308 arguments="EOL" 33309 new_path=`$CYGPATH -u "$path"` 33310 new_path=`$WHICH "$new_path" 2> /dev/null` 33311 # bat and cmd files are not always considered executable in cygwin causing which 33312 # to not find them 33313 if test "x$new_path" = x \ 33314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33316 new_path=`$CYGPATH -u "$path"` 33317 fi 33318 if test "x$new_path" = x; then 33319 # It's still not found. Now this is an unrecoverable error. 33320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33321 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33322 has_space=`$ECHO "$complete" | $GREP " "` 33323 if test "x$has_space" != x; then 33324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33326 fi 33327 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33328 fi 33329 fi 33330 33331 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33332 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33333 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33334 # "foo.exe" is OK but "foo" is an error. 33335 # 33336 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33337 # It is also a way to make sure we got the proper file name for the real test later on. 33338 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33339 if test "x$test_shortpath" = x; then 33340 # Short path failed, file does not exist as specified. 33341 # Try adding .exe or .cmd 33342 if test -f "${new_path}.exe"; then 33343 input_to_shortpath="${new_path}.exe" 33344 elif test -f "${new_path}.cmd"; then 33345 input_to_shortpath="${new_path}.cmd" 33346 else 33347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33348 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33349 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33350 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33351 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33352 fi 33353 else 33354 input_to_shortpath="$new_path" 33355 fi 33356 33357 # Call helper function which possibly converts this using DOS-style short mode. 33358 # If so, the updated path is stored in $new_path. 33359 new_path="$input_to_shortpath" 33360 33361 input_path="$input_to_shortpath" 33362 # Check if we need to convert this using DOS-style short mode. If the path 33363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33364 # take no chances and rewrite it. 33365 # Note: m4 eats our [], so we need to use [ and ] instead. 33366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33367 if test "x$has_forbidden_chars" != x; then 33368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33369 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33370 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33371 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33372 # Going to short mode and back again did indeed matter. Since short mode is 33373 # case insensitive, let's make it lowercase to improve readability. 33374 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33375 # Now convert it back to Unix-stile (cygpath) 33376 input_path=`$CYGPATH -u "$shortmode_path"` 33377 new_path="$input_path" 33378 fi 33379 fi 33380 33381 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33382 if test "x$test_cygdrive_prefix" = x; then 33383 # As a simple fix, exclude /usr/bin since it's not a real path. 33384 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33385 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33386 # a path prefixed by /cygdrive for fixpath to work. 33387 new_path="$CYGWIN_ROOT_PATH$input_path" 33388 fi 33389 fi 33390 33391 # remove trailing .exe if any 33392 new_path="${new_path/%.exe/}" 33393 33394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33395 33396 # First separate the path from the arguments. This will split at the first 33397 # space. 33398 complete="$AR" 33399 path="${complete%% *}" 33400 tmp="$complete EOL" 33401 arguments="${tmp#* }" 33402 33403 # Input might be given as Windows format, start by converting to 33404 # unix format. 33405 new_path="$path" 33406 33407 windows_path="$new_path" 33408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33409 unix_path=`$CYGPATH -u "$windows_path"` 33410 new_path="$unix_path" 33411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33413 new_path="$unix_path" 33414 fi 33415 33416 33417 # Now try to locate executable using which 33418 new_path=`$WHICH "$new_path" 2> /dev/null` 33419 33420 if test "x$new_path" = x; then 33421 # Oops. Which didn't find the executable. 33422 # The splitting of arguments from the executable at a space might have been incorrect, 33423 # since paths with space are more likely in Windows. Give it another try with the whole 33424 # argument. 33425 path="$complete" 33426 arguments="EOL" 33427 new_path="$path" 33428 33429 windows_path="$new_path" 33430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33431 unix_path=`$CYGPATH -u "$windows_path"` 33432 new_path="$unix_path" 33433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33435 new_path="$unix_path" 33436 fi 33437 33438 33439 new_path=`$WHICH "$new_path" 2> /dev/null` 33440 # bat and cmd files are not always considered executable in MSYS causing which 33441 # to not find them 33442 if test "x$new_path" = x \ 33443 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33444 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33445 new_path="$path" 33446 33447 windows_path="$new_path" 33448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33449 unix_path=`$CYGPATH -u "$windows_path"` 33450 new_path="$unix_path" 33451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33453 new_path="$unix_path" 33454 fi 33455 33456 fi 33457 33458 if test "x$new_path" = x; then 33459 # It's still not found. Now this is an unrecoverable error. 33460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33461 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33462 has_space=`$ECHO "$complete" | $GREP " "` 33463 if test "x$has_space" != x; then 33464 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33465 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33466 fi 33467 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33468 fi 33469 fi 33470 33471 # Now new_path has a complete unix path to the binary 33472 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33473 # Keep paths in /bin as-is, but remove trailing .exe if any 33474 new_path="${new_path/%.exe/}" 33475 # Do not save /bin paths to all_fixpath_prefixes! 33476 else 33477 # Not in mixed or Windows style, start by that. 33478 new_path=`cmd //c echo $new_path` 33479 33480 input_path="$new_path" 33481 # Check if we need to convert this using DOS-style short mode. If the path 33482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33483 # take no chances and rewrite it. 33484 # Note: m4 eats our [], so we need to use [ and ] instead. 33485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33486 if test "x$has_forbidden_chars" != x; then 33487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33489 fi 33490 33491 # Output is in $new_path 33492 33493 windows_path="$new_path" 33494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33495 unix_path=`$CYGPATH -u "$windows_path"` 33496 new_path="$unix_path" 33497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33499 new_path="$unix_path" 33500 fi 33501 33502 # remove trailing .exe if any 33503 new_path="${new_path/%.exe/}" 33504 33505 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33506 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33507 fi 33508 33509 else 33510 # We're on a unix platform. Hooray! :) 33511 # First separate the path from the arguments. This will split at the first 33512 # space. 33513 complete="$AR" 33514 path="${complete%% *}" 33515 tmp="$complete EOL" 33516 arguments="${tmp#* }" 33517 33518 # Cannot rely on the command "which" here since it doesn't always work. 33519 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33520 if test -z "$is_absolute_path"; then 33521 # Path to executable is not absolute. Find it. 33522 IFS_save="$IFS" 33523 IFS=: 33524 for p in $PATH; do 33525 if test -f "$p/$path" && test -x "$p/$path"; then 33526 new_path="$p/$path" 33527 break 33528 fi 33529 done 33530 IFS="$IFS_save" 33531 else 33532 # This is an absolute path, we can use it without further modifications. 33533 new_path="$path" 33534 fi 33535 33536 if test "x$new_path" = x; then 33537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33538 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33539 has_space=`$ECHO "$complete" | $GREP " "` 33540 if test "x$has_space" != x; then 33541 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33542 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33543 fi 33544 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33545 fi 33546 fi 33547 33548 # Now join together the path and the arguments once again 33549 if test "x$arguments" != xEOL; then 33550 new_complete="$new_path ${arguments% *}" 33551 else 33552 new_complete="$new_path" 33553 fi 33554 33555 if test "x$complete" != "x$new_complete"; then 33556 AR="$new_complete" 33557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33558 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33559 fi 33560 fi 33561 33562 33563 33564 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33565 33566 33567 # Publish this variable in the help. 33568 33569 33570 if test "x$LIPO" = x; then 33571 # The variable is not set by user, try to locate tool using the code snippet 33572 for ac_prog in lipo 33573 do 33574 # Extract the first word of "$ac_prog", so it can be a program name with args. 33575 set dummy $ac_prog; ac_word=$2 33576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33577 $as_echo_n "checking for $ac_word... " >&6; } 33578 if ${ac_cv_path_LIPO+:} false; then : 33579 $as_echo_n "(cached) " >&6 33580 else 33581 case $LIPO in 33582 [\\/]* | ?:[\\/]*) 33583 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33584 ;; 33585 *) 33586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33587 for as_dir in $PATH 33588 do 33589 IFS=$as_save_IFS 33590 test -z "$as_dir" && as_dir=. 33591 for ac_exec_ext in '' $ac_executable_extensions; do 33592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33593 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33595 break 2 33596 fi 33597 done 33598 done 33599 IFS=$as_save_IFS 33600 33601 ;; 33602 esac 33603 fi 33604 LIPO=$ac_cv_path_LIPO 33605 if test -n "$LIPO"; then 33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33607 $as_echo "$LIPO" >&6; } 33608 else 33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33610 $as_echo "no" >&6; } 33611 fi 33612 33613 33614 test -n "$LIPO" && break 33615 done 33616 33617 else 33618 # The variable is set, but is it from the command line or the environment? 33619 33620 # Try to remove the string !LIPO! from our list. 33621 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33622 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33623 # If it failed, the variable was not from the command line. Ignore it, 33624 # but warn the user (except for BASH, which is always set by the calling BASH). 33625 if test "xLIPO" != xBASH; then 33626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33627 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33628 fi 33629 # Try to locate tool using the code snippet 33630 for ac_prog in lipo 33631 do 33632 # Extract the first word of "$ac_prog", so it can be a program name with args. 33633 set dummy $ac_prog; ac_word=$2 33634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33635 $as_echo_n "checking for $ac_word... " >&6; } 33636 if ${ac_cv_path_LIPO+:} false; then : 33637 $as_echo_n "(cached) " >&6 33638 else 33639 case $LIPO in 33640 [\\/]* | ?:[\\/]*) 33641 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33642 ;; 33643 *) 33644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33645 for as_dir in $PATH 33646 do 33647 IFS=$as_save_IFS 33648 test -z "$as_dir" && as_dir=. 33649 for ac_exec_ext in '' $ac_executable_extensions; do 33650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33651 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33653 break 2 33654 fi 33655 done 33656 done 33657 IFS=$as_save_IFS 33658 33659 ;; 33660 esac 33661 fi 33662 LIPO=$ac_cv_path_LIPO 33663 if test -n "$LIPO"; then 33664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33665 $as_echo "$LIPO" >&6; } 33666 else 33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33668 $as_echo "no" >&6; } 33669 fi 33670 33671 33672 test -n "$LIPO" && break 33673 done 33674 33675 else 33676 # If it succeeded, then it was overridden by the user. We will use it 33677 # for the tool. 33678 33679 # First remove it from the list of overridden variables, so we can test 33680 # for unknown variables in the end. 33681 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33682 33683 # Check if the provided tool contains a complete path. 33684 tool_specified="$LIPO" 33685 tool_basename="${tool_specified##*/}" 33686 if test "x$tool_basename" = "x$tool_specified"; then 33687 # A command without a complete path is provided, search $PATH. 33688 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33689 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33690 # Extract the first word of "$tool_basename", so it can be a program name with args. 33691 set dummy $tool_basename; ac_word=$2 33692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33693 $as_echo_n "checking for $ac_word... " >&6; } 33694 if ${ac_cv_path_LIPO+:} false; then : 33695 $as_echo_n "(cached) " >&6 33696 else 33697 case $LIPO in 33698 [\\/]* | ?:[\\/]*) 33699 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33700 ;; 33701 *) 33702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33703 for as_dir in $PATH 33704 do 33705 IFS=$as_save_IFS 33706 test -z "$as_dir" && as_dir=. 33707 for ac_exec_ext in '' $ac_executable_extensions; do 33708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33709 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33711 break 2 33712 fi 33713 done 33714 done 33715 IFS=$as_save_IFS 33716 33717 ;; 33718 esac 33719 fi 33720 LIPO=$ac_cv_path_LIPO 33721 if test -n "$LIPO"; then 33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33723 $as_echo "$LIPO" >&6; } 33724 else 33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33726 $as_echo "no" >&6; } 33727 fi 33728 33729 33730 if test "x$LIPO" = x; then 33731 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33732 fi 33733 else 33734 # Otherwise we believe it is a complete path. Use it as it is. 33735 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33736 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33738 $as_echo_n "checking for LIPO... " >&6; } 33739 if test ! -x "$tool_specified"; then 33740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33741 $as_echo "not found" >&6; } 33742 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33743 fi 33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33745 $as_echo "$tool_specified" >&6; } 33746 fi 33747 fi 33748 fi 33749 33750 33751 33752 # Only process if variable expands to non-empty 33753 33754 if test "x$LIPO" != x; then 33755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33756 33757 # First separate the path from the arguments. This will split at the first 33758 # space. 33759 complete="$LIPO" 33760 path="${complete%% *}" 33761 tmp="$complete EOL" 33762 arguments="${tmp#* }" 33763 33764 # Input might be given as Windows format, start by converting to 33765 # unix format. 33766 new_path=`$CYGPATH -u "$path"` 33767 33768 # Now try to locate executable using which 33769 new_path=`$WHICH "$new_path" 2> /dev/null` 33770 # bat and cmd files are not always considered executable in cygwin causing which 33771 # to not find them 33772 if test "x$new_path" = x \ 33773 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33774 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33775 new_path=`$CYGPATH -u "$path"` 33776 fi 33777 if test "x$new_path" = x; then 33778 # Oops. Which didn't find the executable. 33779 # The splitting of arguments from the executable at a space might have been incorrect, 33780 # since paths with space are more likely in Windows. Give it another try with the whole 33781 # argument. 33782 path="$complete" 33783 arguments="EOL" 33784 new_path=`$CYGPATH -u "$path"` 33785 new_path=`$WHICH "$new_path" 2> /dev/null` 33786 # bat and cmd files are not always considered executable in cygwin causing which 33787 # to not find them 33788 if test "x$new_path" = x \ 33789 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33790 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33791 new_path=`$CYGPATH -u "$path"` 33792 fi 33793 if test "x$new_path" = x; then 33794 # It's still not found. Now this is an unrecoverable error. 33795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33796 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33797 has_space=`$ECHO "$complete" | $GREP " "` 33798 if test "x$has_space" != x; then 33799 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33800 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33801 fi 33802 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33803 fi 33804 fi 33805 33806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33809 # "foo.exe" is OK but "foo" is an error. 33810 # 33811 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33812 # It is also a way to make sure we got the proper file name for the real test later on. 33813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33814 if test "x$test_shortpath" = x; then 33815 # Short path failed, file does not exist as specified. 33816 # Try adding .exe or .cmd 33817 if test -f "${new_path}.exe"; then 33818 input_to_shortpath="${new_path}.exe" 33819 elif test -f "${new_path}.cmd"; then 33820 input_to_shortpath="${new_path}.cmd" 33821 else 33822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33823 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33824 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33825 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33826 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33827 fi 33828 else 33829 input_to_shortpath="$new_path" 33830 fi 33831 33832 # Call helper function which possibly converts this using DOS-style short mode. 33833 # If so, the updated path is stored in $new_path. 33834 new_path="$input_to_shortpath" 33835 33836 input_path="$input_to_shortpath" 33837 # Check if we need to convert this using DOS-style short mode. If the path 33838 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33839 # take no chances and rewrite it. 33840 # Note: m4 eats our [], so we need to use [ and ] instead. 33841 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33842 if test "x$has_forbidden_chars" != x; then 33843 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33844 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33845 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33846 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33847 # Going to short mode and back again did indeed matter. Since short mode is 33848 # case insensitive, let's make it lowercase to improve readability. 33849 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33850 # Now convert it back to Unix-stile (cygpath) 33851 input_path=`$CYGPATH -u "$shortmode_path"` 33852 new_path="$input_path" 33853 fi 33854 fi 33855 33856 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33857 if test "x$test_cygdrive_prefix" = x; then 33858 # As a simple fix, exclude /usr/bin since it's not a real path. 33859 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33860 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33861 # a path prefixed by /cygdrive for fixpath to work. 33862 new_path="$CYGWIN_ROOT_PATH$input_path" 33863 fi 33864 fi 33865 33866 # remove trailing .exe if any 33867 new_path="${new_path/%.exe/}" 33868 33869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33870 33871 # First separate the path from the arguments. This will split at the first 33872 # space. 33873 complete="$LIPO" 33874 path="${complete%% *}" 33875 tmp="$complete EOL" 33876 arguments="${tmp#* }" 33877 33878 # Input might be given as Windows format, start by converting to 33879 # unix format. 33880 new_path="$path" 33881 33882 windows_path="$new_path" 33883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33884 unix_path=`$CYGPATH -u "$windows_path"` 33885 new_path="$unix_path" 33886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33887 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33888 new_path="$unix_path" 33889 fi 33890 33891 33892 # Now try to locate executable using which 33893 new_path=`$WHICH "$new_path" 2> /dev/null` 33894 33895 if test "x$new_path" = x; then 33896 # Oops. Which didn't find the executable. 33897 # The splitting of arguments from the executable at a space might have been incorrect, 33898 # since paths with space are more likely in Windows. Give it another try with the whole 33899 # argument. 33900 path="$complete" 33901 arguments="EOL" 33902 new_path="$path" 33903 33904 windows_path="$new_path" 33905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33906 unix_path=`$CYGPATH -u "$windows_path"` 33907 new_path="$unix_path" 33908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33910 new_path="$unix_path" 33911 fi 33912 33913 33914 new_path=`$WHICH "$new_path" 2> /dev/null` 33915 # bat and cmd files are not always considered executable in MSYS causing which 33916 # to not find them 33917 if test "x$new_path" = x \ 33918 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33919 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33920 new_path="$path" 33921 33922 windows_path="$new_path" 33923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33924 unix_path=`$CYGPATH -u "$windows_path"` 33925 new_path="$unix_path" 33926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33928 new_path="$unix_path" 33929 fi 33930 33931 fi 33932 33933 if test "x$new_path" = x; then 33934 # It's still not found. Now this is an unrecoverable error. 33935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33936 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33937 has_space=`$ECHO "$complete" | $GREP " "` 33938 if test "x$has_space" != x; then 33939 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33940 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33941 fi 33942 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33943 fi 33944 fi 33945 33946 # Now new_path has a complete unix path to the binary 33947 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33948 # Keep paths in /bin as-is, but remove trailing .exe if any 33949 new_path="${new_path/%.exe/}" 33950 # Do not save /bin paths to all_fixpath_prefixes! 33951 else 33952 # Not in mixed or Windows style, start by that. 33953 new_path=`cmd //c echo $new_path` 33954 33955 input_path="$new_path" 33956 # Check if we need to convert this using DOS-style short mode. If the path 33957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33958 # take no chances and rewrite it. 33959 # Note: m4 eats our [], so we need to use [ and ] instead. 33960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33961 if test "x$has_forbidden_chars" != x; then 33962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33963 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33964 fi 33965 33966 # Output is in $new_path 33967 33968 windows_path="$new_path" 33969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33970 unix_path=`$CYGPATH -u "$windows_path"` 33971 new_path="$unix_path" 33972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33974 new_path="$unix_path" 33975 fi 33976 33977 # remove trailing .exe if any 33978 new_path="${new_path/%.exe/}" 33979 33980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33982 fi 33983 33984 else 33985 # We're on a unix platform. Hooray! :) 33986 # First separate the path from the arguments. This will split at the first 33987 # space. 33988 complete="$LIPO" 33989 path="${complete%% *}" 33990 tmp="$complete EOL" 33991 arguments="${tmp#* }" 33992 33993 # Cannot rely on the command "which" here since it doesn't always work. 33994 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33995 if test -z "$is_absolute_path"; then 33996 # Path to executable is not absolute. Find it. 33997 IFS_save="$IFS" 33998 IFS=: 33999 for p in $PATH; do 34000 if test -f "$p/$path" && test -x "$p/$path"; then 34001 new_path="$p/$path" 34002 break 34003 fi 34004 done 34005 IFS="$IFS_save" 34006 else 34007 # This is an absolute path, we can use it without further modifications. 34008 new_path="$path" 34009 fi 34010 34011 if test "x$new_path" = x; then 34012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34013 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34014 has_space=`$ECHO "$complete" | $GREP " "` 34015 if test "x$has_space" != x; then 34016 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34017 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34018 fi 34019 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34020 fi 34021 fi 34022 34023 # Now join together the path and the arguments once again 34024 if test "x$arguments" != xEOL; then 34025 new_complete="$new_path ${arguments% *}" 34026 else 34027 new_complete="$new_path" 34028 fi 34029 34030 if test "x$complete" != "x$new_complete"; then 34031 LIPO="$new_complete" 34032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34033 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34034 fi 34035 fi 34036 34037 fi 34038 34039 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34040 # Extract the first word of "mt", so it can be a program name with args. 34041 set dummy mt; ac_word=$2 34042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34043 $as_echo_n "checking for $ac_word... " >&6; } 34044 if ${ac_cv_prog_MT+:} false; then : 34045 $as_echo_n "(cached) " >&6 34046 else 34047 if test -n "$MT"; then 34048 ac_cv_prog_MT="$MT" # Let the user override the test. 34049 else 34050 ac_prog_rejected=no 34051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34052 for as_dir in $PATH 34053 do 34054 IFS=$as_save_IFS 34055 test -z "$as_dir" && as_dir=. 34056 for ac_exec_ext in '' $ac_executable_extensions; do 34057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34059 ac_prog_rejected=yes 34060 continue 34061 fi 34062 ac_cv_prog_MT="mt" 34063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34064 break 2 34065 fi 34066 done 34067 done 34068 IFS=$as_save_IFS 34069 34070 if test $ac_prog_rejected = yes; then 34071 # We found a bogon in the path, so make sure we never use it. 34072 set dummy $ac_cv_prog_MT 34073 shift 34074 if test $# != 0; then 34075 # We chose a different compiler from the bogus one. 34076 # However, it has the same basename, so the bogon will be chosen 34077 # first if we set MT to just the basename; use the full file name. 34078 shift 34079 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34080 fi 34081 fi 34082 fi 34083 fi 34084 MT=$ac_cv_prog_MT 34085 if test -n "$MT"; then 34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34087 $as_echo "$MT" >&6; } 34088 else 34089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34090 $as_echo "no" >&6; } 34091 fi 34092 34093 34094 34095 # Only process if variable expands to non-empty 34096 34097 if test "x$MT" != x; then 34098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34099 34100 # First separate the path from the arguments. This will split at the first 34101 # space. 34102 complete="$MT" 34103 path="${complete%% *}" 34104 tmp="$complete EOL" 34105 arguments="${tmp#* }" 34106 34107 # Input might be given as Windows format, start by converting to 34108 # unix format. 34109 new_path=`$CYGPATH -u "$path"` 34110 34111 # Now try to locate executable using which 34112 new_path=`$WHICH "$new_path" 2> /dev/null` 34113 # bat and cmd files are not always considered executable in cygwin causing which 34114 # to not find them 34115 if test "x$new_path" = x \ 34116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34118 new_path=`$CYGPATH -u "$path"` 34119 fi 34120 if test "x$new_path" = x; then 34121 # Oops. Which didn't find the executable. 34122 # The splitting of arguments from the executable at a space might have been incorrect, 34123 # since paths with space are more likely in Windows. Give it another try with the whole 34124 # argument. 34125 path="$complete" 34126 arguments="EOL" 34127 new_path=`$CYGPATH -u "$path"` 34128 new_path=`$WHICH "$new_path" 2> /dev/null` 34129 # bat and cmd files are not always considered executable in cygwin causing which 34130 # to not find them 34131 if test "x$new_path" = x \ 34132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34134 new_path=`$CYGPATH -u "$path"` 34135 fi 34136 if test "x$new_path" = x; then 34137 # It's still not found. Now this is an unrecoverable error. 34138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34139 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34140 has_space=`$ECHO "$complete" | $GREP " "` 34141 if test "x$has_space" != x; then 34142 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34143 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34144 fi 34145 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34146 fi 34147 fi 34148 34149 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34150 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34151 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34152 # "foo.exe" is OK but "foo" is an error. 34153 # 34154 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34155 # It is also a way to make sure we got the proper file name for the real test later on. 34156 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34157 if test "x$test_shortpath" = x; then 34158 # Short path failed, file does not exist as specified. 34159 # Try adding .exe or .cmd 34160 if test -f "${new_path}.exe"; then 34161 input_to_shortpath="${new_path}.exe" 34162 elif test -f "${new_path}.cmd"; then 34163 input_to_shortpath="${new_path}.cmd" 34164 else 34165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34166 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34167 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34168 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34169 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34170 fi 34171 else 34172 input_to_shortpath="$new_path" 34173 fi 34174 34175 # Call helper function which possibly converts this using DOS-style short mode. 34176 # If so, the updated path is stored in $new_path. 34177 new_path="$input_to_shortpath" 34178 34179 input_path="$input_to_shortpath" 34180 # Check if we need to convert this using DOS-style short mode. If the path 34181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34182 # take no chances and rewrite it. 34183 # Note: m4 eats our [], so we need to use [ and ] instead. 34184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34185 if test "x$has_forbidden_chars" != x; then 34186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34187 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34188 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34189 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34190 # Going to short mode and back again did indeed matter. Since short mode is 34191 # case insensitive, let's make it lowercase to improve readability. 34192 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34193 # Now convert it back to Unix-stile (cygpath) 34194 input_path=`$CYGPATH -u "$shortmode_path"` 34195 new_path="$input_path" 34196 fi 34197 fi 34198 34199 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34200 if test "x$test_cygdrive_prefix" = x; then 34201 # As a simple fix, exclude /usr/bin since it's not a real path. 34202 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34203 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34204 # a path prefixed by /cygdrive for fixpath to work. 34205 new_path="$CYGWIN_ROOT_PATH$input_path" 34206 fi 34207 fi 34208 34209 # remove trailing .exe if any 34210 new_path="${new_path/%.exe/}" 34211 34212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34213 34214 # First separate the path from the arguments. This will split at the first 34215 # space. 34216 complete="$MT" 34217 path="${complete%% *}" 34218 tmp="$complete EOL" 34219 arguments="${tmp#* }" 34220 34221 # Input might be given as Windows format, start by converting to 34222 # unix format. 34223 new_path="$path" 34224 34225 windows_path="$new_path" 34226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34227 unix_path=`$CYGPATH -u "$windows_path"` 34228 new_path="$unix_path" 34229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34231 new_path="$unix_path" 34232 fi 34233 34234 34235 # Now try to locate executable using which 34236 new_path=`$WHICH "$new_path" 2> /dev/null` 34237 34238 if test "x$new_path" = x; then 34239 # Oops. Which didn't find the executable. 34240 # The splitting of arguments from the executable at a space might have been incorrect, 34241 # since paths with space are more likely in Windows. Give it another try with the whole 34242 # argument. 34243 path="$complete" 34244 arguments="EOL" 34245 new_path="$path" 34246 34247 windows_path="$new_path" 34248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34249 unix_path=`$CYGPATH -u "$windows_path"` 34250 new_path="$unix_path" 34251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34252 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34253 new_path="$unix_path" 34254 fi 34255 34256 34257 new_path=`$WHICH "$new_path" 2> /dev/null` 34258 # bat and cmd files are not always considered executable in MSYS causing which 34259 # to not find them 34260 if test "x$new_path" = x \ 34261 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34262 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34263 new_path="$path" 34264 34265 windows_path="$new_path" 34266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34267 unix_path=`$CYGPATH -u "$windows_path"` 34268 new_path="$unix_path" 34269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34271 new_path="$unix_path" 34272 fi 34273 34274 fi 34275 34276 if test "x$new_path" = x; then 34277 # It's still not found. Now this is an unrecoverable error. 34278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34279 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34280 has_space=`$ECHO "$complete" | $GREP " "` 34281 if test "x$has_space" != x; then 34282 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34283 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34284 fi 34285 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34286 fi 34287 fi 34288 34289 # Now new_path has a complete unix path to the binary 34290 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34291 # Keep paths in /bin as-is, but remove trailing .exe if any 34292 new_path="${new_path/%.exe/}" 34293 # Do not save /bin paths to all_fixpath_prefixes! 34294 else 34295 # Not in mixed or Windows style, start by that. 34296 new_path=`cmd //c echo $new_path` 34297 34298 input_path="$new_path" 34299 # Check if we need to convert this using DOS-style short mode. If the path 34300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34301 # take no chances and rewrite it. 34302 # Note: m4 eats our [], so we need to use [ and ] instead. 34303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34304 if test "x$has_forbidden_chars" != x; then 34305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34306 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34307 fi 34308 34309 # Output is in $new_path 34310 34311 windows_path="$new_path" 34312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34313 unix_path=`$CYGPATH -u "$windows_path"` 34314 new_path="$unix_path" 34315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34317 new_path="$unix_path" 34318 fi 34319 34320 # remove trailing .exe if any 34321 new_path="${new_path/%.exe/}" 34322 34323 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34324 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34325 fi 34326 34327 else 34328 # We're on a unix platform. Hooray! :) 34329 # First separate the path from the arguments. This will split at the first 34330 # space. 34331 complete="$MT" 34332 path="${complete%% *}" 34333 tmp="$complete EOL" 34334 arguments="${tmp#* }" 34335 34336 # Cannot rely on the command "which" here since it doesn't always work. 34337 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34338 if test -z "$is_absolute_path"; then 34339 # Path to executable is not absolute. Find it. 34340 IFS_save="$IFS" 34341 IFS=: 34342 for p in $PATH; do 34343 if test -f "$p/$path" && test -x "$p/$path"; then 34344 new_path="$p/$path" 34345 break 34346 fi 34347 done 34348 IFS="$IFS_save" 34349 else 34350 # This is an absolute path, we can use it without further modifications. 34351 new_path="$path" 34352 fi 34353 34354 if test "x$new_path" = x; then 34355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34356 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34357 has_space=`$ECHO "$complete" | $GREP " "` 34358 if test "x$has_space" != x; then 34359 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34360 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34361 fi 34362 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34363 fi 34364 fi 34365 34366 # Now join together the path and the arguments once again 34367 if test "x$arguments" != xEOL; then 34368 new_complete="$new_path ${arguments% *}" 34369 else 34370 new_complete="$new_path" 34371 fi 34372 34373 if test "x$complete" != "x$new_complete"; then 34374 MT="$new_complete" 34375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34376 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34377 fi 34378 fi 34379 34380 # Setup the resource compiler (RC) 34381 # Extract the first word of "rc", so it can be a program name with args. 34382 set dummy rc; ac_word=$2 34383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34384 $as_echo_n "checking for $ac_word... " >&6; } 34385 if ${ac_cv_prog_RC+:} false; then : 34386 $as_echo_n "(cached) " >&6 34387 else 34388 if test -n "$RC"; then 34389 ac_cv_prog_RC="$RC" # Let the user override the test. 34390 else 34391 ac_prog_rejected=no 34392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34393 for as_dir in $PATH 34394 do 34395 IFS=$as_save_IFS 34396 test -z "$as_dir" && as_dir=. 34397 for ac_exec_ext in '' $ac_executable_extensions; do 34398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34400 ac_prog_rejected=yes 34401 continue 34402 fi 34403 ac_cv_prog_RC="rc" 34404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34405 break 2 34406 fi 34407 done 34408 done 34409 IFS=$as_save_IFS 34410 34411 if test $ac_prog_rejected = yes; then 34412 # We found a bogon in the path, so make sure we never use it. 34413 set dummy $ac_cv_prog_RC 34414 shift 34415 if test $# != 0; then 34416 # We chose a different compiler from the bogus one. 34417 # However, it has the same basename, so the bogon will be chosen 34418 # first if we set RC to just the basename; use the full file name. 34419 shift 34420 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34421 fi 34422 fi 34423 fi 34424 fi 34425 RC=$ac_cv_prog_RC 34426 if test -n "$RC"; then 34427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34428 $as_echo "$RC" >&6; } 34429 else 34430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34431 $as_echo "no" >&6; } 34432 fi 34433 34434 34435 34436 # Only process if variable expands to non-empty 34437 34438 if test "x$RC" != x; then 34439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34440 34441 # First separate the path from the arguments. This will split at the first 34442 # space. 34443 complete="$RC" 34444 path="${complete%% *}" 34445 tmp="$complete EOL" 34446 arguments="${tmp#* }" 34447 34448 # Input might be given as Windows format, start by converting to 34449 # unix format. 34450 new_path=`$CYGPATH -u "$path"` 34451 34452 # Now try to locate executable using which 34453 new_path=`$WHICH "$new_path" 2> /dev/null` 34454 # bat and cmd files are not always considered executable in cygwin causing which 34455 # to not find them 34456 if test "x$new_path" = x \ 34457 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34458 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34459 new_path=`$CYGPATH -u "$path"` 34460 fi 34461 if test "x$new_path" = x; then 34462 # Oops. Which didn't find the executable. 34463 # The splitting of arguments from the executable at a space might have been incorrect, 34464 # since paths with space are more likely in Windows. Give it another try with the whole 34465 # argument. 34466 path="$complete" 34467 arguments="EOL" 34468 new_path=`$CYGPATH -u "$path"` 34469 new_path=`$WHICH "$new_path" 2> /dev/null` 34470 # bat and cmd files are not always considered executable in cygwin causing which 34471 # to not find them 34472 if test "x$new_path" = x \ 34473 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34474 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34475 new_path=`$CYGPATH -u "$path"` 34476 fi 34477 if test "x$new_path" = x; then 34478 # It's still not found. Now this is an unrecoverable error. 34479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34480 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34481 has_space=`$ECHO "$complete" | $GREP " "` 34482 if test "x$has_space" != x; then 34483 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34484 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34485 fi 34486 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34487 fi 34488 fi 34489 34490 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34491 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34492 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34493 # "foo.exe" is OK but "foo" is an error. 34494 # 34495 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34496 # It is also a way to make sure we got the proper file name for the real test later on. 34497 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34498 if test "x$test_shortpath" = x; then 34499 # Short path failed, file does not exist as specified. 34500 # Try adding .exe or .cmd 34501 if test -f "${new_path}.exe"; then 34502 input_to_shortpath="${new_path}.exe" 34503 elif test -f "${new_path}.cmd"; then 34504 input_to_shortpath="${new_path}.cmd" 34505 else 34506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34507 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34508 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34509 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34510 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34511 fi 34512 else 34513 input_to_shortpath="$new_path" 34514 fi 34515 34516 # Call helper function which possibly converts this using DOS-style short mode. 34517 # If so, the updated path is stored in $new_path. 34518 new_path="$input_to_shortpath" 34519 34520 input_path="$input_to_shortpath" 34521 # Check if we need to convert this using DOS-style short mode. If the path 34522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34523 # take no chances and rewrite it. 34524 # Note: m4 eats our [], so we need to use [ and ] instead. 34525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34526 if test "x$has_forbidden_chars" != x; then 34527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34528 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34529 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34530 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34531 # Going to short mode and back again did indeed matter. Since short mode is 34532 # case insensitive, let's make it lowercase to improve readability. 34533 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34534 # Now convert it back to Unix-stile (cygpath) 34535 input_path=`$CYGPATH -u "$shortmode_path"` 34536 new_path="$input_path" 34537 fi 34538 fi 34539 34540 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34541 if test "x$test_cygdrive_prefix" = x; then 34542 # As a simple fix, exclude /usr/bin since it's not a real path. 34543 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34544 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34545 # a path prefixed by /cygdrive for fixpath to work. 34546 new_path="$CYGWIN_ROOT_PATH$input_path" 34547 fi 34548 fi 34549 34550 # remove trailing .exe if any 34551 new_path="${new_path/%.exe/}" 34552 34553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34554 34555 # First separate the path from the arguments. This will split at the first 34556 # space. 34557 complete="$RC" 34558 path="${complete%% *}" 34559 tmp="$complete EOL" 34560 arguments="${tmp#* }" 34561 34562 # Input might be given as Windows format, start by converting to 34563 # unix format. 34564 new_path="$path" 34565 34566 windows_path="$new_path" 34567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34568 unix_path=`$CYGPATH -u "$windows_path"` 34569 new_path="$unix_path" 34570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34572 new_path="$unix_path" 34573 fi 34574 34575 34576 # Now try to locate executable using which 34577 new_path=`$WHICH "$new_path" 2> /dev/null` 34578 34579 if test "x$new_path" = x; then 34580 # Oops. Which didn't find the executable. 34581 # The splitting of arguments from the executable at a space might have been incorrect, 34582 # since paths with space are more likely in Windows. Give it another try with the whole 34583 # argument. 34584 path="$complete" 34585 arguments="EOL" 34586 new_path="$path" 34587 34588 windows_path="$new_path" 34589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34590 unix_path=`$CYGPATH -u "$windows_path"` 34591 new_path="$unix_path" 34592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34594 new_path="$unix_path" 34595 fi 34596 34597 34598 new_path=`$WHICH "$new_path" 2> /dev/null` 34599 # bat and cmd files are not always considered executable in MSYS causing which 34600 # to not find them 34601 if test "x$new_path" = x \ 34602 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34603 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34604 new_path="$path" 34605 34606 windows_path="$new_path" 34607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34608 unix_path=`$CYGPATH -u "$windows_path"` 34609 new_path="$unix_path" 34610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34612 new_path="$unix_path" 34613 fi 34614 34615 fi 34616 34617 if test "x$new_path" = x; then 34618 # It's still not found. Now this is an unrecoverable error. 34619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34620 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34621 has_space=`$ECHO "$complete" | $GREP " "` 34622 if test "x$has_space" != x; then 34623 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34624 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34625 fi 34626 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34627 fi 34628 fi 34629 34630 # Now new_path has a complete unix path to the binary 34631 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34632 # Keep paths in /bin as-is, but remove trailing .exe if any 34633 new_path="${new_path/%.exe/}" 34634 # Do not save /bin paths to all_fixpath_prefixes! 34635 else 34636 # Not in mixed or Windows style, start by that. 34637 new_path=`cmd //c echo $new_path` 34638 34639 input_path="$new_path" 34640 # Check if we need to convert this using DOS-style short mode. If the path 34641 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34642 # take no chances and rewrite it. 34643 # Note: m4 eats our [], so we need to use [ and ] instead. 34644 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34645 if test "x$has_forbidden_chars" != x; then 34646 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34647 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34648 fi 34649 34650 # Output is in $new_path 34651 34652 windows_path="$new_path" 34653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34654 unix_path=`$CYGPATH -u "$windows_path"` 34655 new_path="$unix_path" 34656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34658 new_path="$unix_path" 34659 fi 34660 34661 # remove trailing .exe if any 34662 new_path="${new_path/%.exe/}" 34663 34664 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34665 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34666 fi 34667 34668 else 34669 # We're on a unix platform. Hooray! :) 34670 # First separate the path from the arguments. This will split at the first 34671 # space. 34672 complete="$RC" 34673 path="${complete%% *}" 34674 tmp="$complete EOL" 34675 arguments="${tmp#* }" 34676 34677 # Cannot rely on the command "which" here since it doesn't always work. 34678 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34679 if test -z "$is_absolute_path"; then 34680 # Path to executable is not absolute. Find it. 34681 IFS_save="$IFS" 34682 IFS=: 34683 for p in $PATH; do 34684 if test -f "$p/$path" && test -x "$p/$path"; then 34685 new_path="$p/$path" 34686 break 34687 fi 34688 done 34689 IFS="$IFS_save" 34690 else 34691 # This is an absolute path, we can use it without further modifications. 34692 new_path="$path" 34693 fi 34694 34695 if test "x$new_path" = x; then 34696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34697 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34698 has_space=`$ECHO "$complete" | $GREP " "` 34699 if test "x$has_space" != x; then 34700 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34701 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34702 fi 34703 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34704 fi 34705 fi 34706 34707 # Now join together the path and the arguments once again 34708 if test "x$arguments" != xEOL; then 34709 new_complete="$new_path ${arguments% *}" 34710 else 34711 new_complete="$new_path" 34712 fi 34713 34714 if test "x$complete" != "x$new_complete"; then 34715 RC="$new_complete" 34716 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34717 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34718 fi 34719 fi 34720 34721 # Extract the first word of "dumpbin", so it can be a program name with args. 34722 set dummy dumpbin; ac_word=$2 34723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34724 $as_echo_n "checking for $ac_word... " >&6; } 34725 if ${ac_cv_prog_DUMPBIN+:} false; then : 34726 $as_echo_n "(cached) " >&6 34727 else 34728 if test -n "$DUMPBIN"; then 34729 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34730 else 34731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34732 for as_dir in $PATH 34733 do 34734 IFS=$as_save_IFS 34735 test -z "$as_dir" && as_dir=. 34736 for ac_exec_ext in '' $ac_executable_extensions; do 34737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34738 ac_cv_prog_DUMPBIN="dumpbin" 34739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34740 break 2 34741 fi 34742 done 34743 done 34744 IFS=$as_save_IFS 34745 34746 fi 34747 fi 34748 DUMPBIN=$ac_cv_prog_DUMPBIN 34749 if test -n "$DUMPBIN"; then 34750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34751 $as_echo "$DUMPBIN" >&6; } 34752 else 34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34754 $as_echo "no" >&6; } 34755 fi 34756 34757 34758 34759 # Only process if variable expands to non-empty 34760 34761 if test "x$DUMPBIN" != x; then 34762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34763 34764 # First separate the path from the arguments. This will split at the first 34765 # space. 34766 complete="$DUMPBIN" 34767 path="${complete%% *}" 34768 tmp="$complete EOL" 34769 arguments="${tmp#* }" 34770 34771 # Input might be given as Windows format, start by converting to 34772 # unix format. 34773 new_path=`$CYGPATH -u "$path"` 34774 34775 # Now try to locate executable using which 34776 new_path=`$WHICH "$new_path" 2> /dev/null` 34777 # bat and cmd files are not always considered executable in cygwin causing which 34778 # to not find them 34779 if test "x$new_path" = x \ 34780 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34781 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34782 new_path=`$CYGPATH -u "$path"` 34783 fi 34784 if test "x$new_path" = x; then 34785 # Oops. Which didn't find the executable. 34786 # The splitting of arguments from the executable at a space might have been incorrect, 34787 # since paths with space are more likely in Windows. Give it another try with the whole 34788 # argument. 34789 path="$complete" 34790 arguments="EOL" 34791 new_path=`$CYGPATH -u "$path"` 34792 new_path=`$WHICH "$new_path" 2> /dev/null` 34793 # bat and cmd files are not always considered executable in cygwin causing which 34794 # to not find them 34795 if test "x$new_path" = x \ 34796 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34797 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34798 new_path=`$CYGPATH -u "$path"` 34799 fi 34800 if test "x$new_path" = x; then 34801 # It's still not found. Now this is an unrecoverable error. 34802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34803 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34804 has_space=`$ECHO "$complete" | $GREP " "` 34805 if test "x$has_space" != x; then 34806 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34807 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34808 fi 34809 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34810 fi 34811 fi 34812 34813 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34814 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34815 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34816 # "foo.exe" is OK but "foo" is an error. 34817 # 34818 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34819 # It is also a way to make sure we got the proper file name for the real test later on. 34820 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34821 if test "x$test_shortpath" = x; then 34822 # Short path failed, file does not exist as specified. 34823 # Try adding .exe or .cmd 34824 if test -f "${new_path}.exe"; then 34825 input_to_shortpath="${new_path}.exe" 34826 elif test -f "${new_path}.cmd"; then 34827 input_to_shortpath="${new_path}.cmd" 34828 else 34829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34830 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34831 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34832 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34833 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34834 fi 34835 else 34836 input_to_shortpath="$new_path" 34837 fi 34838 34839 # Call helper function which possibly converts this using DOS-style short mode. 34840 # If so, the updated path is stored in $new_path. 34841 new_path="$input_to_shortpath" 34842 34843 input_path="$input_to_shortpath" 34844 # Check if we need to convert this using DOS-style short mode. If the path 34845 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34846 # take no chances and rewrite it. 34847 # Note: m4 eats our [], so we need to use [ and ] instead. 34848 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34849 if test "x$has_forbidden_chars" != x; then 34850 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34851 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34852 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34853 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34854 # Going to short mode and back again did indeed matter. Since short mode is 34855 # case insensitive, let's make it lowercase to improve readability. 34856 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34857 # Now convert it back to Unix-stile (cygpath) 34858 input_path=`$CYGPATH -u "$shortmode_path"` 34859 new_path="$input_path" 34860 fi 34861 fi 34862 34863 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34864 if test "x$test_cygdrive_prefix" = x; then 34865 # As a simple fix, exclude /usr/bin since it's not a real path. 34866 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34867 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34868 # a path prefixed by /cygdrive for fixpath to work. 34869 new_path="$CYGWIN_ROOT_PATH$input_path" 34870 fi 34871 fi 34872 34873 # remove trailing .exe if any 34874 new_path="${new_path/%.exe/}" 34875 34876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34877 34878 # First separate the path from the arguments. This will split at the first 34879 # space. 34880 complete="$DUMPBIN" 34881 path="${complete%% *}" 34882 tmp="$complete EOL" 34883 arguments="${tmp#* }" 34884 34885 # Input might be given as Windows format, start by converting to 34886 # unix format. 34887 new_path="$path" 34888 34889 windows_path="$new_path" 34890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34891 unix_path=`$CYGPATH -u "$windows_path"` 34892 new_path="$unix_path" 34893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34894 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34895 new_path="$unix_path" 34896 fi 34897 34898 34899 # Now try to locate executable using which 34900 new_path=`$WHICH "$new_path" 2> /dev/null` 34901 34902 if test "x$new_path" = x; then 34903 # Oops. Which didn't find the executable. 34904 # The splitting of arguments from the executable at a space might have been incorrect, 34905 # since paths with space are more likely in Windows. Give it another try with the whole 34906 # argument. 34907 path="$complete" 34908 arguments="EOL" 34909 new_path="$path" 34910 34911 windows_path="$new_path" 34912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34913 unix_path=`$CYGPATH -u "$windows_path"` 34914 new_path="$unix_path" 34915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34917 new_path="$unix_path" 34918 fi 34919 34920 34921 new_path=`$WHICH "$new_path" 2> /dev/null` 34922 # bat and cmd files are not always considered executable in MSYS causing which 34923 # to not find them 34924 if test "x$new_path" = x \ 34925 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34926 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34927 new_path="$path" 34928 34929 windows_path="$new_path" 34930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34931 unix_path=`$CYGPATH -u "$windows_path"` 34932 new_path="$unix_path" 34933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34935 new_path="$unix_path" 34936 fi 34937 34938 fi 34939 34940 if test "x$new_path" = x; then 34941 # It's still not found. Now this is an unrecoverable error. 34942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34943 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34944 has_space=`$ECHO "$complete" | $GREP " "` 34945 if test "x$has_space" != x; then 34946 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34947 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34948 fi 34949 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34950 fi 34951 fi 34952 34953 # Now new_path has a complete unix path to the binary 34954 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34955 # Keep paths in /bin as-is, but remove trailing .exe if any 34956 new_path="${new_path/%.exe/}" 34957 # Do not save /bin paths to all_fixpath_prefixes! 34958 else 34959 # Not in mixed or Windows style, start by that. 34960 new_path=`cmd //c echo $new_path` 34961 34962 input_path="$new_path" 34963 # Check if we need to convert this using DOS-style short mode. If the path 34964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34965 # take no chances and rewrite it. 34966 # Note: m4 eats our [], so we need to use [ and ] instead. 34967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34968 if test "x$has_forbidden_chars" != x; then 34969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34970 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34971 fi 34972 34973 # Output is in $new_path 34974 34975 windows_path="$new_path" 34976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34977 unix_path=`$CYGPATH -u "$windows_path"` 34978 new_path="$unix_path" 34979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34981 new_path="$unix_path" 34982 fi 34983 34984 # remove trailing .exe if any 34985 new_path="${new_path/%.exe/}" 34986 34987 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34988 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34989 fi 34990 34991 else 34992 # We're on a unix platform. Hooray! :) 34993 # First separate the path from the arguments. This will split at the first 34994 # space. 34995 complete="$DUMPBIN" 34996 path="${complete%% *}" 34997 tmp="$complete EOL" 34998 arguments="${tmp#* }" 34999 35000 # Cannot rely on the command "which" here since it doesn't always work. 35001 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35002 if test -z "$is_absolute_path"; then 35003 # Path to executable is not absolute. Find it. 35004 IFS_save="$IFS" 35005 IFS=: 35006 for p in $PATH; do 35007 if test -f "$p/$path" && test -x "$p/$path"; then 35008 new_path="$p/$path" 35009 break 35010 fi 35011 done 35012 IFS="$IFS_save" 35013 else 35014 # This is an absolute path, we can use it without further modifications. 35015 new_path="$path" 35016 fi 35017 35018 if test "x$new_path" = x; then 35019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35020 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35021 has_space=`$ECHO "$complete" | $GREP " "` 35022 if test "x$has_space" != x; then 35023 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35024 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35025 fi 35026 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35027 fi 35028 fi 35029 35030 # Now join together the path and the arguments once again 35031 if test "x$arguments" != xEOL; then 35032 new_complete="$new_path ${arguments% *}" 35033 else 35034 new_complete="$new_path" 35035 fi 35036 35037 if test "x$complete" != "x$new_complete"; then 35038 DUMPBIN="$new_complete" 35039 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35040 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35041 fi 35042 fi 35043 35044 # We need to check for 'msbuild.exe' because at the place where we expect to 35045 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35046 # won't find the 'msbuild.exe' executable in that case (and the 35047 # 'ac_executable_extensions' is unusable due to performance reasons). 35048 # Notice that we intentionally don't fix up the path to MSBUILD because we 35049 # will call it in a DOS shell during freetype detection on Windows (see 35050 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35051 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35052 set dummy msbuild.exe; ac_word=$2 35053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35054 $as_echo_n "checking for $ac_word... " >&6; } 35055 if ${ac_cv_prog_MSBUILD+:} false; then : 35056 $as_echo_n "(cached) " >&6 35057 else 35058 if test -n "$MSBUILD"; then 35059 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35060 else 35061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35062 for as_dir in $PATH 35063 do 35064 IFS=$as_save_IFS 35065 test -z "$as_dir" && as_dir=. 35066 for ac_exec_ext in '' $ac_executable_extensions; do 35067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35068 ac_cv_prog_MSBUILD="msbuild.exe" 35069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35070 break 2 35071 fi 35072 done 35073 done 35074 IFS=$as_save_IFS 35075 35076 fi 35077 fi 35078 MSBUILD=$ac_cv_prog_MSBUILD 35079 if test -n "$MSBUILD"; then 35080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35081 $as_echo "$MSBUILD" >&6; } 35082 else 35083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35084 $as_echo "no" >&6; } 35085 fi 35086 35087 35088 fi 35089 35090 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35091 35092 35093 # Publish this variable in the help. 35094 35095 35096 if test "x$STRIP" = x; then 35097 # The variable is not set by user, try to locate tool using the code snippet 35098 for ac_prog in strip 35099 do 35100 # Extract the first word of "$ac_prog", so it can be a program name with args. 35101 set dummy $ac_prog; ac_word=$2 35102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35103 $as_echo_n "checking for $ac_word... " >&6; } 35104 if ${ac_cv_path_STRIP+:} false; then : 35105 $as_echo_n "(cached) " >&6 35106 else 35107 case $STRIP in 35108 [\\/]* | ?:[\\/]*) 35109 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35110 ;; 35111 *) 35112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35113 for as_dir in $PATH 35114 do 35115 IFS=$as_save_IFS 35116 test -z "$as_dir" && as_dir=. 35117 for ac_exec_ext in '' $ac_executable_extensions; do 35118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35119 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35121 break 2 35122 fi 35123 done 35124 done 35125 IFS=$as_save_IFS 35126 35127 ;; 35128 esac 35129 fi 35130 STRIP=$ac_cv_path_STRIP 35131 if test -n "$STRIP"; then 35132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35133 $as_echo "$STRIP" >&6; } 35134 else 35135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35136 $as_echo "no" >&6; } 35137 fi 35138 35139 35140 test -n "$STRIP" && break 35141 done 35142 35143 else 35144 # The variable is set, but is it from the command line or the environment? 35145 35146 # Try to remove the string !STRIP! from our list. 35147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35149 # If it failed, the variable was not from the command line. Ignore it, 35150 # but warn the user (except for BASH, which is always set by the calling BASH). 35151 if test "xSTRIP" != xBASH; then 35152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35153 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35154 fi 35155 # Try to locate tool using the code snippet 35156 for ac_prog in strip 35157 do 35158 # Extract the first word of "$ac_prog", so it can be a program name with args. 35159 set dummy $ac_prog; ac_word=$2 35160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35161 $as_echo_n "checking for $ac_word... " >&6; } 35162 if ${ac_cv_path_STRIP+:} false; then : 35163 $as_echo_n "(cached) " >&6 35164 else 35165 case $STRIP in 35166 [\\/]* | ?:[\\/]*) 35167 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35168 ;; 35169 *) 35170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35171 for as_dir in $PATH 35172 do 35173 IFS=$as_save_IFS 35174 test -z "$as_dir" && as_dir=. 35175 for ac_exec_ext in '' $ac_executable_extensions; do 35176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35177 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35179 break 2 35180 fi 35181 done 35182 done 35183 IFS=$as_save_IFS 35184 35185 ;; 35186 esac 35187 fi 35188 STRIP=$ac_cv_path_STRIP 35189 if test -n "$STRIP"; then 35190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35191 $as_echo "$STRIP" >&6; } 35192 else 35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35194 $as_echo "no" >&6; } 35195 fi 35196 35197 35198 test -n "$STRIP" && break 35199 done 35200 35201 else 35202 # If it succeeded, then it was overridden by the user. We will use it 35203 # for the tool. 35204 35205 # First remove it from the list of overridden variables, so we can test 35206 # for unknown variables in the end. 35207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35208 35209 # Check if the provided tool contains a complete path. 35210 tool_specified="$STRIP" 35211 tool_basename="${tool_specified##*/}" 35212 if test "x$tool_basename" = "x$tool_specified"; then 35213 # A command without a complete path is provided, search $PATH. 35214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35215 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35216 # Extract the first word of "$tool_basename", so it can be a program name with args. 35217 set dummy $tool_basename; ac_word=$2 35218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35219 $as_echo_n "checking for $ac_word... " >&6; } 35220 if ${ac_cv_path_STRIP+:} false; then : 35221 $as_echo_n "(cached) " >&6 35222 else 35223 case $STRIP in 35224 [\\/]* | ?:[\\/]*) 35225 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35226 ;; 35227 *) 35228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35229 for as_dir in $PATH 35230 do 35231 IFS=$as_save_IFS 35232 test -z "$as_dir" && as_dir=. 35233 for ac_exec_ext in '' $ac_executable_extensions; do 35234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35235 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35237 break 2 35238 fi 35239 done 35240 done 35241 IFS=$as_save_IFS 35242 35243 ;; 35244 esac 35245 fi 35246 STRIP=$ac_cv_path_STRIP 35247 if test -n "$STRIP"; then 35248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35249 $as_echo "$STRIP" >&6; } 35250 else 35251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35252 $as_echo "no" >&6; } 35253 fi 35254 35255 35256 if test "x$STRIP" = x; then 35257 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35258 fi 35259 else 35260 # Otherwise we believe it is a complete path. Use it as it is. 35261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35262 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35264 $as_echo_n "checking for STRIP... " >&6; } 35265 if test ! -x "$tool_specified"; then 35266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35267 $as_echo "not found" >&6; } 35268 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35269 fi 35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35271 $as_echo "$tool_specified" >&6; } 35272 fi 35273 fi 35274 fi 35275 35276 35277 35278 # Only process if variable expands to non-empty 35279 35280 if test "x$STRIP" != x; then 35281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35282 35283 # First separate the path from the arguments. This will split at the first 35284 # space. 35285 complete="$STRIP" 35286 path="${complete%% *}" 35287 tmp="$complete EOL" 35288 arguments="${tmp#* }" 35289 35290 # Input might be given as Windows format, start by converting to 35291 # unix format. 35292 new_path=`$CYGPATH -u "$path"` 35293 35294 # Now try to locate executable using which 35295 new_path=`$WHICH "$new_path" 2> /dev/null` 35296 # bat and cmd files are not always considered executable in cygwin causing which 35297 # to not find them 35298 if test "x$new_path" = x \ 35299 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35300 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35301 new_path=`$CYGPATH -u "$path"` 35302 fi 35303 if test "x$new_path" = x; then 35304 # Oops. Which didn't find the executable. 35305 # The splitting of arguments from the executable at a space might have been incorrect, 35306 # since paths with space are more likely in Windows. Give it another try with the whole 35307 # argument. 35308 path="$complete" 35309 arguments="EOL" 35310 new_path=`$CYGPATH -u "$path"` 35311 new_path=`$WHICH "$new_path" 2> /dev/null` 35312 # bat and cmd files are not always considered executable in cygwin causing which 35313 # to not find them 35314 if test "x$new_path" = x \ 35315 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35316 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35317 new_path=`$CYGPATH -u "$path"` 35318 fi 35319 if test "x$new_path" = x; then 35320 # It's still not found. Now this is an unrecoverable error. 35321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35322 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35323 has_space=`$ECHO "$complete" | $GREP " "` 35324 if test "x$has_space" != x; then 35325 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35326 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35327 fi 35328 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35329 fi 35330 fi 35331 35332 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35333 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35334 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35335 # "foo.exe" is OK but "foo" is an error. 35336 # 35337 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35338 # It is also a way to make sure we got the proper file name for the real test later on. 35339 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35340 if test "x$test_shortpath" = x; then 35341 # Short path failed, file does not exist as specified. 35342 # Try adding .exe or .cmd 35343 if test -f "${new_path}.exe"; then 35344 input_to_shortpath="${new_path}.exe" 35345 elif test -f "${new_path}.cmd"; then 35346 input_to_shortpath="${new_path}.cmd" 35347 else 35348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35349 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35350 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35351 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35352 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35353 fi 35354 else 35355 input_to_shortpath="$new_path" 35356 fi 35357 35358 # Call helper function which possibly converts this using DOS-style short mode. 35359 # If so, the updated path is stored in $new_path. 35360 new_path="$input_to_shortpath" 35361 35362 input_path="$input_to_shortpath" 35363 # Check if we need to convert this using DOS-style short mode. If the path 35364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35365 # take no chances and rewrite it. 35366 # Note: m4 eats our [], so we need to use [ and ] instead. 35367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35368 if test "x$has_forbidden_chars" != x; then 35369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35370 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35371 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35372 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35373 # Going to short mode and back again did indeed matter. Since short mode is 35374 # case insensitive, let's make it lowercase to improve readability. 35375 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35376 # Now convert it back to Unix-stile (cygpath) 35377 input_path=`$CYGPATH -u "$shortmode_path"` 35378 new_path="$input_path" 35379 fi 35380 fi 35381 35382 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35383 if test "x$test_cygdrive_prefix" = x; then 35384 # As a simple fix, exclude /usr/bin since it's not a real path. 35385 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35386 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35387 # a path prefixed by /cygdrive for fixpath to work. 35388 new_path="$CYGWIN_ROOT_PATH$input_path" 35389 fi 35390 fi 35391 35392 # remove trailing .exe if any 35393 new_path="${new_path/%.exe/}" 35394 35395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35396 35397 # First separate the path from the arguments. This will split at the first 35398 # space. 35399 complete="$STRIP" 35400 path="${complete%% *}" 35401 tmp="$complete EOL" 35402 arguments="${tmp#* }" 35403 35404 # Input might be given as Windows format, start by converting to 35405 # unix format. 35406 new_path="$path" 35407 35408 windows_path="$new_path" 35409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35410 unix_path=`$CYGPATH -u "$windows_path"` 35411 new_path="$unix_path" 35412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35414 new_path="$unix_path" 35415 fi 35416 35417 35418 # Now try to locate executable using which 35419 new_path=`$WHICH "$new_path" 2> /dev/null` 35420 35421 if test "x$new_path" = x; then 35422 # Oops. Which didn't find the executable. 35423 # The splitting of arguments from the executable at a space might have been incorrect, 35424 # since paths with space are more likely in Windows. Give it another try with the whole 35425 # argument. 35426 path="$complete" 35427 arguments="EOL" 35428 new_path="$path" 35429 35430 windows_path="$new_path" 35431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35432 unix_path=`$CYGPATH -u "$windows_path"` 35433 new_path="$unix_path" 35434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35436 new_path="$unix_path" 35437 fi 35438 35439 35440 new_path=`$WHICH "$new_path" 2> /dev/null` 35441 # bat and cmd files are not always considered executable in MSYS causing which 35442 # to not find them 35443 if test "x$new_path" = x \ 35444 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35445 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35446 new_path="$path" 35447 35448 windows_path="$new_path" 35449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35450 unix_path=`$CYGPATH -u "$windows_path"` 35451 new_path="$unix_path" 35452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35454 new_path="$unix_path" 35455 fi 35456 35457 fi 35458 35459 if test "x$new_path" = x; then 35460 # It's still not found. Now this is an unrecoverable error. 35461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35462 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35463 has_space=`$ECHO "$complete" | $GREP " "` 35464 if test "x$has_space" != x; then 35465 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35466 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35467 fi 35468 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35469 fi 35470 fi 35471 35472 # Now new_path has a complete unix path to the binary 35473 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35474 # Keep paths in /bin as-is, but remove trailing .exe if any 35475 new_path="${new_path/%.exe/}" 35476 # Do not save /bin paths to all_fixpath_prefixes! 35477 else 35478 # Not in mixed or Windows style, start by that. 35479 new_path=`cmd //c echo $new_path` 35480 35481 input_path="$new_path" 35482 # Check if we need to convert this using DOS-style short mode. If the path 35483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35484 # take no chances and rewrite it. 35485 # Note: m4 eats our [], so we need to use [ and ] instead. 35486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35487 if test "x$has_forbidden_chars" != x; then 35488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35490 fi 35491 35492 # Output is in $new_path 35493 35494 windows_path="$new_path" 35495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35496 unix_path=`$CYGPATH -u "$windows_path"` 35497 new_path="$unix_path" 35498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35500 new_path="$unix_path" 35501 fi 35502 35503 # remove trailing .exe if any 35504 new_path="${new_path/%.exe/}" 35505 35506 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35507 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35508 fi 35509 35510 else 35511 # We're on a unix platform. Hooray! :) 35512 # First separate the path from the arguments. This will split at the first 35513 # space. 35514 complete="$STRIP" 35515 path="${complete%% *}" 35516 tmp="$complete EOL" 35517 arguments="${tmp#* }" 35518 35519 # Cannot rely on the command "which" here since it doesn't always work. 35520 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35521 if test -z "$is_absolute_path"; then 35522 # Path to executable is not absolute. Find it. 35523 IFS_save="$IFS" 35524 IFS=: 35525 for p in $PATH; do 35526 if test -f "$p/$path" && test -x "$p/$path"; then 35527 new_path="$p/$path" 35528 break 35529 fi 35530 done 35531 IFS="$IFS_save" 35532 else 35533 # This is an absolute path, we can use it without further modifications. 35534 new_path="$path" 35535 fi 35536 35537 if test "x$new_path" = x; then 35538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35539 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35540 has_space=`$ECHO "$complete" | $GREP " "` 35541 if test "x$has_space" != x; then 35542 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35543 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35544 fi 35545 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35546 fi 35547 fi 35548 35549 # Now join together the path and the arguments once again 35550 if test "x$arguments" != xEOL; then 35551 new_complete="$new_path ${arguments% *}" 35552 else 35553 new_complete="$new_path" 35554 fi 35555 35556 if test "x$complete" != "x$new_complete"; then 35557 STRIP="$new_complete" 35558 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35559 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35560 fi 35561 fi 35562 35563 35564 35565 # Publish this variable in the help. 35566 35567 35568 if test "x$NM" = x; then 35569 # The variable is not set by user, try to locate tool using the code snippet 35570 for ac_prog in nm 35571 do 35572 # Extract the first word of "$ac_prog", so it can be a program name with args. 35573 set dummy $ac_prog; ac_word=$2 35574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35575 $as_echo_n "checking for $ac_word... " >&6; } 35576 if ${ac_cv_path_NM+:} false; then : 35577 $as_echo_n "(cached) " >&6 35578 else 35579 case $NM in 35580 [\\/]* | ?:[\\/]*) 35581 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35582 ;; 35583 *) 35584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35585 for as_dir in $PATH 35586 do 35587 IFS=$as_save_IFS 35588 test -z "$as_dir" && as_dir=. 35589 for ac_exec_ext in '' $ac_executable_extensions; do 35590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35591 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35593 break 2 35594 fi 35595 done 35596 done 35597 IFS=$as_save_IFS 35598 35599 ;; 35600 esac 35601 fi 35602 NM=$ac_cv_path_NM 35603 if test -n "$NM"; then 35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35605 $as_echo "$NM" >&6; } 35606 else 35607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35608 $as_echo "no" >&6; } 35609 fi 35610 35611 35612 test -n "$NM" && break 35613 done 35614 35615 else 35616 # The variable is set, but is it from the command line or the environment? 35617 35618 # Try to remove the string !NM! from our list. 35619 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35620 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35621 # If it failed, the variable was not from the command line. Ignore it, 35622 # but warn the user (except for BASH, which is always set by the calling BASH). 35623 if test "xNM" != xBASH; then 35624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35625 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35626 fi 35627 # Try to locate tool using the code snippet 35628 for ac_prog in nm 35629 do 35630 # Extract the first word of "$ac_prog", so it can be a program name with args. 35631 set dummy $ac_prog; ac_word=$2 35632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35633 $as_echo_n "checking for $ac_word... " >&6; } 35634 if ${ac_cv_path_NM+:} false; then : 35635 $as_echo_n "(cached) " >&6 35636 else 35637 case $NM in 35638 [\\/]* | ?:[\\/]*) 35639 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35640 ;; 35641 *) 35642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35643 for as_dir in $PATH 35644 do 35645 IFS=$as_save_IFS 35646 test -z "$as_dir" && as_dir=. 35647 for ac_exec_ext in '' $ac_executable_extensions; do 35648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35649 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35651 break 2 35652 fi 35653 done 35654 done 35655 IFS=$as_save_IFS 35656 35657 ;; 35658 esac 35659 fi 35660 NM=$ac_cv_path_NM 35661 if test -n "$NM"; then 35662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35663 $as_echo "$NM" >&6; } 35664 else 35665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35666 $as_echo "no" >&6; } 35667 fi 35668 35669 35670 test -n "$NM" && break 35671 done 35672 35673 else 35674 # If it succeeded, then it was overridden by the user. We will use it 35675 # for the tool. 35676 35677 # First remove it from the list of overridden variables, so we can test 35678 # for unknown variables in the end. 35679 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35680 35681 # Check if the provided tool contains a complete path. 35682 tool_specified="$NM" 35683 tool_basename="${tool_specified##*/}" 35684 if test "x$tool_basename" = "x$tool_specified"; then 35685 # A command without a complete path is provided, search $PATH. 35686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35687 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35688 # Extract the first word of "$tool_basename", so it can be a program name with args. 35689 set dummy $tool_basename; ac_word=$2 35690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35691 $as_echo_n "checking for $ac_word... " >&6; } 35692 if ${ac_cv_path_NM+:} false; then : 35693 $as_echo_n "(cached) " >&6 35694 else 35695 case $NM in 35696 [\\/]* | ?:[\\/]*) 35697 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35698 ;; 35699 *) 35700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35701 for as_dir in $PATH 35702 do 35703 IFS=$as_save_IFS 35704 test -z "$as_dir" && as_dir=. 35705 for ac_exec_ext in '' $ac_executable_extensions; do 35706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35707 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35709 break 2 35710 fi 35711 done 35712 done 35713 IFS=$as_save_IFS 35714 35715 ;; 35716 esac 35717 fi 35718 NM=$ac_cv_path_NM 35719 if test -n "$NM"; then 35720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35721 $as_echo "$NM" >&6; } 35722 else 35723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35724 $as_echo "no" >&6; } 35725 fi 35726 35727 35728 if test "x$NM" = x; then 35729 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35730 fi 35731 else 35732 # Otherwise we believe it is a complete path. Use it as it is. 35733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35734 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35736 $as_echo_n "checking for NM... " >&6; } 35737 if test ! -x "$tool_specified"; then 35738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35739 $as_echo "not found" >&6; } 35740 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35741 fi 35742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35743 $as_echo "$tool_specified" >&6; } 35744 fi 35745 fi 35746 fi 35747 35748 35749 35750 # Only process if variable expands to non-empty 35751 35752 if test "x$NM" != x; then 35753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35754 35755 # First separate the path from the arguments. This will split at the first 35756 # space. 35757 complete="$NM" 35758 path="${complete%% *}" 35759 tmp="$complete EOL" 35760 arguments="${tmp#* }" 35761 35762 # Input might be given as Windows format, start by converting to 35763 # unix format. 35764 new_path=`$CYGPATH -u "$path"` 35765 35766 # Now try to locate executable using which 35767 new_path=`$WHICH "$new_path" 2> /dev/null` 35768 # bat and cmd files are not always considered executable in cygwin causing which 35769 # to not find them 35770 if test "x$new_path" = x \ 35771 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35772 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35773 new_path=`$CYGPATH -u "$path"` 35774 fi 35775 if test "x$new_path" = x; then 35776 # Oops. Which didn't find the executable. 35777 # The splitting of arguments from the executable at a space might have been incorrect, 35778 # since paths with space are more likely in Windows. Give it another try with the whole 35779 # argument. 35780 path="$complete" 35781 arguments="EOL" 35782 new_path=`$CYGPATH -u "$path"` 35783 new_path=`$WHICH "$new_path" 2> /dev/null` 35784 # bat and cmd files are not always considered executable in cygwin causing which 35785 # to not find them 35786 if test "x$new_path" = x \ 35787 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35788 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35789 new_path=`$CYGPATH -u "$path"` 35790 fi 35791 if test "x$new_path" = x; then 35792 # It's still not found. Now this is an unrecoverable error. 35793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35794 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35795 has_space=`$ECHO "$complete" | $GREP " "` 35796 if test "x$has_space" != x; then 35797 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35798 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35799 fi 35800 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35801 fi 35802 fi 35803 35804 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35805 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35806 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35807 # "foo.exe" is OK but "foo" is an error. 35808 # 35809 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35810 # It is also a way to make sure we got the proper file name for the real test later on. 35811 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35812 if test "x$test_shortpath" = x; then 35813 # Short path failed, file does not exist as specified. 35814 # Try adding .exe or .cmd 35815 if test -f "${new_path}.exe"; then 35816 input_to_shortpath="${new_path}.exe" 35817 elif test -f "${new_path}.cmd"; then 35818 input_to_shortpath="${new_path}.cmd" 35819 else 35820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35821 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35822 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35823 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35824 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35825 fi 35826 else 35827 input_to_shortpath="$new_path" 35828 fi 35829 35830 # Call helper function which possibly converts this using DOS-style short mode. 35831 # If so, the updated path is stored in $new_path. 35832 new_path="$input_to_shortpath" 35833 35834 input_path="$input_to_shortpath" 35835 # Check if we need to convert this using DOS-style short mode. If the path 35836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35837 # take no chances and rewrite it. 35838 # Note: m4 eats our [], so we need to use [ and ] instead. 35839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35840 if test "x$has_forbidden_chars" != x; then 35841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35842 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35843 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35844 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35845 # Going to short mode and back again did indeed matter. Since short mode is 35846 # case insensitive, let's make it lowercase to improve readability. 35847 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35848 # Now convert it back to Unix-stile (cygpath) 35849 input_path=`$CYGPATH -u "$shortmode_path"` 35850 new_path="$input_path" 35851 fi 35852 fi 35853 35854 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35855 if test "x$test_cygdrive_prefix" = x; then 35856 # As a simple fix, exclude /usr/bin since it's not a real path. 35857 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35858 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35859 # a path prefixed by /cygdrive for fixpath to work. 35860 new_path="$CYGWIN_ROOT_PATH$input_path" 35861 fi 35862 fi 35863 35864 # remove trailing .exe if any 35865 new_path="${new_path/%.exe/}" 35866 35867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35868 35869 # First separate the path from the arguments. This will split at the first 35870 # space. 35871 complete="$NM" 35872 path="${complete%% *}" 35873 tmp="$complete EOL" 35874 arguments="${tmp#* }" 35875 35876 # Input might be given as Windows format, start by converting to 35877 # unix format. 35878 new_path="$path" 35879 35880 windows_path="$new_path" 35881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35882 unix_path=`$CYGPATH -u "$windows_path"` 35883 new_path="$unix_path" 35884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35886 new_path="$unix_path" 35887 fi 35888 35889 35890 # Now try to locate executable using which 35891 new_path=`$WHICH "$new_path" 2> /dev/null` 35892 35893 if test "x$new_path" = x; then 35894 # Oops. Which didn't find the executable. 35895 # The splitting of arguments from the executable at a space might have been incorrect, 35896 # since paths with space are more likely in Windows. Give it another try with the whole 35897 # argument. 35898 path="$complete" 35899 arguments="EOL" 35900 new_path="$path" 35901 35902 windows_path="$new_path" 35903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35904 unix_path=`$CYGPATH -u "$windows_path"` 35905 new_path="$unix_path" 35906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35908 new_path="$unix_path" 35909 fi 35910 35911 35912 new_path=`$WHICH "$new_path" 2> /dev/null` 35913 # bat and cmd files are not always considered executable in MSYS causing which 35914 # to not find them 35915 if test "x$new_path" = x \ 35916 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35917 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35918 new_path="$path" 35919 35920 windows_path="$new_path" 35921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35922 unix_path=`$CYGPATH -u "$windows_path"` 35923 new_path="$unix_path" 35924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35926 new_path="$unix_path" 35927 fi 35928 35929 fi 35930 35931 if test "x$new_path" = x; then 35932 # It's still not found. Now this is an unrecoverable error. 35933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35934 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35935 has_space=`$ECHO "$complete" | $GREP " "` 35936 if test "x$has_space" != x; then 35937 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35938 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35939 fi 35940 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35941 fi 35942 fi 35943 35944 # Now new_path has a complete unix path to the binary 35945 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35946 # Keep paths in /bin as-is, but remove trailing .exe if any 35947 new_path="${new_path/%.exe/}" 35948 # Do not save /bin paths to all_fixpath_prefixes! 35949 else 35950 # Not in mixed or Windows style, start by that. 35951 new_path=`cmd //c echo $new_path` 35952 35953 input_path="$new_path" 35954 # Check if we need to convert this using DOS-style short mode. If the path 35955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35956 # take no chances and rewrite it. 35957 # Note: m4 eats our [], so we need to use [ and ] instead. 35958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35959 if test "x$has_forbidden_chars" != x; then 35960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35962 fi 35963 35964 # Output is in $new_path 35965 35966 windows_path="$new_path" 35967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35968 unix_path=`$CYGPATH -u "$windows_path"` 35969 new_path="$unix_path" 35970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35972 new_path="$unix_path" 35973 fi 35974 35975 # remove trailing .exe if any 35976 new_path="${new_path/%.exe/}" 35977 35978 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35979 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35980 fi 35981 35982 else 35983 # We're on a unix platform. Hooray! :) 35984 # First separate the path from the arguments. This will split at the first 35985 # space. 35986 complete="$NM" 35987 path="${complete%% *}" 35988 tmp="$complete EOL" 35989 arguments="${tmp#* }" 35990 35991 # Cannot rely on the command "which" here since it doesn't always work. 35992 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35993 if test -z "$is_absolute_path"; then 35994 # Path to executable is not absolute. Find it. 35995 IFS_save="$IFS" 35996 IFS=: 35997 for p in $PATH; do 35998 if test -f "$p/$path" && test -x "$p/$path"; then 35999 new_path="$p/$path" 36000 break 36001 fi 36002 done 36003 IFS="$IFS_save" 36004 else 36005 # This is an absolute path, we can use it without further modifications. 36006 new_path="$path" 36007 fi 36008 36009 if test "x$new_path" = x; then 36010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36011 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36012 has_space=`$ECHO "$complete" | $GREP " "` 36013 if test "x$has_space" != x; then 36014 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36015 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36016 fi 36017 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36018 fi 36019 fi 36020 36021 # Now join together the path and the arguments once again 36022 if test "x$arguments" != xEOL; then 36023 new_complete="$new_path ${arguments% *}" 36024 else 36025 new_complete="$new_path" 36026 fi 36027 36028 if test "x$complete" != "x$new_complete"; then 36029 NM="$new_complete" 36030 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36031 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36032 fi 36033 fi 36034 36035 36036 36037 # Publish this variable in the help. 36038 36039 36040 if test "x$GNM" = x; then 36041 # The variable is not set by user, try to locate tool using the code snippet 36042 for ac_prog in gnm 36043 do 36044 # Extract the first word of "$ac_prog", so it can be a program name with args. 36045 set dummy $ac_prog; ac_word=$2 36046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36047 $as_echo_n "checking for $ac_word... " >&6; } 36048 if ${ac_cv_path_GNM+:} false; then : 36049 $as_echo_n "(cached) " >&6 36050 else 36051 case $GNM in 36052 [\\/]* | ?:[\\/]*) 36053 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36054 ;; 36055 *) 36056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36057 for as_dir in $PATH 36058 do 36059 IFS=$as_save_IFS 36060 test -z "$as_dir" && as_dir=. 36061 for ac_exec_ext in '' $ac_executable_extensions; do 36062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36063 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36065 break 2 36066 fi 36067 done 36068 done 36069 IFS=$as_save_IFS 36070 36071 ;; 36072 esac 36073 fi 36074 GNM=$ac_cv_path_GNM 36075 if test -n "$GNM"; then 36076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36077 $as_echo "$GNM" >&6; } 36078 else 36079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36080 $as_echo "no" >&6; } 36081 fi 36082 36083 36084 test -n "$GNM" && break 36085 done 36086 36087 else 36088 # The variable is set, but is it from the command line or the environment? 36089 36090 # Try to remove the string !GNM! from our list. 36091 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36092 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36093 # If it failed, the variable was not from the command line. Ignore it, 36094 # but warn the user (except for BASH, which is always set by the calling BASH). 36095 if test "xGNM" != xBASH; then 36096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36097 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36098 fi 36099 # Try to locate tool using the code snippet 36100 for ac_prog in gnm 36101 do 36102 # Extract the first word of "$ac_prog", so it can be a program name with args. 36103 set dummy $ac_prog; ac_word=$2 36104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36105 $as_echo_n "checking for $ac_word... " >&6; } 36106 if ${ac_cv_path_GNM+:} false; then : 36107 $as_echo_n "(cached) " >&6 36108 else 36109 case $GNM in 36110 [\\/]* | ?:[\\/]*) 36111 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36112 ;; 36113 *) 36114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36115 for as_dir in $PATH 36116 do 36117 IFS=$as_save_IFS 36118 test -z "$as_dir" && as_dir=. 36119 for ac_exec_ext in '' $ac_executable_extensions; do 36120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36121 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36123 break 2 36124 fi 36125 done 36126 done 36127 IFS=$as_save_IFS 36128 36129 ;; 36130 esac 36131 fi 36132 GNM=$ac_cv_path_GNM 36133 if test -n "$GNM"; then 36134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36135 $as_echo "$GNM" >&6; } 36136 else 36137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36138 $as_echo "no" >&6; } 36139 fi 36140 36141 36142 test -n "$GNM" && break 36143 done 36144 36145 else 36146 # If it succeeded, then it was overridden by the user. We will use it 36147 # for the tool. 36148 36149 # First remove it from the list of overridden variables, so we can test 36150 # for unknown variables in the end. 36151 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36152 36153 # Check if the provided tool contains a complete path. 36154 tool_specified="$GNM" 36155 tool_basename="${tool_specified##*/}" 36156 if test "x$tool_basename" = "x$tool_specified"; then 36157 # A command without a complete path is provided, search $PATH. 36158 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36159 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36160 # Extract the first word of "$tool_basename", so it can be a program name with args. 36161 set dummy $tool_basename; ac_word=$2 36162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36163 $as_echo_n "checking for $ac_word... " >&6; } 36164 if ${ac_cv_path_GNM+:} false; then : 36165 $as_echo_n "(cached) " >&6 36166 else 36167 case $GNM in 36168 [\\/]* | ?:[\\/]*) 36169 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36170 ;; 36171 *) 36172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36173 for as_dir in $PATH 36174 do 36175 IFS=$as_save_IFS 36176 test -z "$as_dir" && as_dir=. 36177 for ac_exec_ext in '' $ac_executable_extensions; do 36178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36179 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36181 break 2 36182 fi 36183 done 36184 done 36185 IFS=$as_save_IFS 36186 36187 ;; 36188 esac 36189 fi 36190 GNM=$ac_cv_path_GNM 36191 if test -n "$GNM"; then 36192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36193 $as_echo "$GNM" >&6; } 36194 else 36195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36196 $as_echo "no" >&6; } 36197 fi 36198 36199 36200 if test "x$GNM" = x; then 36201 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36202 fi 36203 else 36204 # Otherwise we believe it is a complete path. Use it as it is. 36205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36206 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36208 $as_echo_n "checking for GNM... " >&6; } 36209 if test ! -x "$tool_specified"; then 36210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36211 $as_echo "not found" >&6; } 36212 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36213 fi 36214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36215 $as_echo "$tool_specified" >&6; } 36216 fi 36217 fi 36218 fi 36219 36220 36221 36222 # Only process if variable expands to non-empty 36223 36224 if test "x$GNM" != x; then 36225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36226 36227 # First separate the path from the arguments. This will split at the first 36228 # space. 36229 complete="$GNM" 36230 path="${complete%% *}" 36231 tmp="$complete EOL" 36232 arguments="${tmp#* }" 36233 36234 # Input might be given as Windows format, start by converting to 36235 # unix format. 36236 new_path=`$CYGPATH -u "$path"` 36237 36238 # Now try to locate executable using which 36239 new_path=`$WHICH "$new_path" 2> /dev/null` 36240 # bat and cmd files are not always considered executable in cygwin causing which 36241 # to not find them 36242 if test "x$new_path" = x \ 36243 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36244 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36245 new_path=`$CYGPATH -u "$path"` 36246 fi 36247 if test "x$new_path" = x; then 36248 # Oops. Which didn't find the executable. 36249 # The splitting of arguments from the executable at a space might have been incorrect, 36250 # since paths with space are more likely in Windows. Give it another try with the whole 36251 # argument. 36252 path="$complete" 36253 arguments="EOL" 36254 new_path=`$CYGPATH -u "$path"` 36255 new_path=`$WHICH "$new_path" 2> /dev/null` 36256 # bat and cmd files are not always considered executable in cygwin causing which 36257 # to not find them 36258 if test "x$new_path" = x \ 36259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36261 new_path=`$CYGPATH -u "$path"` 36262 fi 36263 if test "x$new_path" = x; then 36264 # It's still not found. Now this is an unrecoverable error. 36265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36266 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36267 has_space=`$ECHO "$complete" | $GREP " "` 36268 if test "x$has_space" != x; then 36269 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36270 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36271 fi 36272 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36273 fi 36274 fi 36275 36276 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36277 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36278 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36279 # "foo.exe" is OK but "foo" is an error. 36280 # 36281 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36282 # It is also a way to make sure we got the proper file name for the real test later on. 36283 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36284 if test "x$test_shortpath" = x; then 36285 # Short path failed, file does not exist as specified. 36286 # Try adding .exe or .cmd 36287 if test -f "${new_path}.exe"; then 36288 input_to_shortpath="${new_path}.exe" 36289 elif test -f "${new_path}.cmd"; then 36290 input_to_shortpath="${new_path}.cmd" 36291 else 36292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36293 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36294 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36295 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36296 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36297 fi 36298 else 36299 input_to_shortpath="$new_path" 36300 fi 36301 36302 # Call helper function which possibly converts this using DOS-style short mode. 36303 # If so, the updated path is stored in $new_path. 36304 new_path="$input_to_shortpath" 36305 36306 input_path="$input_to_shortpath" 36307 # Check if we need to convert this using DOS-style short mode. If the path 36308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36309 # take no chances and rewrite it. 36310 # Note: m4 eats our [], so we need to use [ and ] instead. 36311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36312 if test "x$has_forbidden_chars" != x; then 36313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36317 # Going to short mode and back again did indeed matter. Since short mode is 36318 # case insensitive, let's make it lowercase to improve readability. 36319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36320 # Now convert it back to Unix-stile (cygpath) 36321 input_path=`$CYGPATH -u "$shortmode_path"` 36322 new_path="$input_path" 36323 fi 36324 fi 36325 36326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36327 if test "x$test_cygdrive_prefix" = x; then 36328 # As a simple fix, exclude /usr/bin since it's not a real path. 36329 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36331 # a path prefixed by /cygdrive for fixpath to work. 36332 new_path="$CYGWIN_ROOT_PATH$input_path" 36333 fi 36334 fi 36335 36336 # remove trailing .exe if any 36337 new_path="${new_path/%.exe/}" 36338 36339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36340 36341 # First separate the path from the arguments. This will split at the first 36342 # space. 36343 complete="$GNM" 36344 path="${complete%% *}" 36345 tmp="$complete EOL" 36346 arguments="${tmp#* }" 36347 36348 # Input might be given as Windows format, start by converting to 36349 # unix format. 36350 new_path="$path" 36351 36352 windows_path="$new_path" 36353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36354 unix_path=`$CYGPATH -u "$windows_path"` 36355 new_path="$unix_path" 36356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36357 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36358 new_path="$unix_path" 36359 fi 36360 36361 36362 # Now try to locate executable using which 36363 new_path=`$WHICH "$new_path" 2> /dev/null` 36364 36365 if test "x$new_path" = x; then 36366 # Oops. Which didn't find the executable. 36367 # The splitting of arguments from the executable at a space might have been incorrect, 36368 # since paths with space are more likely in Windows. Give it another try with the whole 36369 # argument. 36370 path="$complete" 36371 arguments="EOL" 36372 new_path="$path" 36373 36374 windows_path="$new_path" 36375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36376 unix_path=`$CYGPATH -u "$windows_path"` 36377 new_path="$unix_path" 36378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36380 new_path="$unix_path" 36381 fi 36382 36383 36384 new_path=`$WHICH "$new_path" 2> /dev/null` 36385 # bat and cmd files are not always considered executable in MSYS causing which 36386 # to not find them 36387 if test "x$new_path" = x \ 36388 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36389 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36390 new_path="$path" 36391 36392 windows_path="$new_path" 36393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36394 unix_path=`$CYGPATH -u "$windows_path"` 36395 new_path="$unix_path" 36396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36398 new_path="$unix_path" 36399 fi 36400 36401 fi 36402 36403 if test "x$new_path" = x; then 36404 # It's still not found. Now this is an unrecoverable error. 36405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36406 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36407 has_space=`$ECHO "$complete" | $GREP " "` 36408 if test "x$has_space" != x; then 36409 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36410 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36411 fi 36412 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36413 fi 36414 fi 36415 36416 # Now new_path has a complete unix path to the binary 36417 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36418 # Keep paths in /bin as-is, but remove trailing .exe if any 36419 new_path="${new_path/%.exe/}" 36420 # Do not save /bin paths to all_fixpath_prefixes! 36421 else 36422 # Not in mixed or Windows style, start by that. 36423 new_path=`cmd //c echo $new_path` 36424 36425 input_path="$new_path" 36426 # Check if we need to convert this using DOS-style short mode. If the path 36427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36428 # take no chances and rewrite it. 36429 # Note: m4 eats our [], so we need to use [ and ] instead. 36430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36431 if test "x$has_forbidden_chars" != x; then 36432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36433 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36434 fi 36435 36436 # Output is in $new_path 36437 36438 windows_path="$new_path" 36439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36440 unix_path=`$CYGPATH -u "$windows_path"` 36441 new_path="$unix_path" 36442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36444 new_path="$unix_path" 36445 fi 36446 36447 # remove trailing .exe if any 36448 new_path="${new_path/%.exe/}" 36449 36450 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36451 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36452 fi 36453 36454 else 36455 # We're on a unix platform. Hooray! :) 36456 # First separate the path from the arguments. This will split at the first 36457 # space. 36458 complete="$GNM" 36459 path="${complete%% *}" 36460 tmp="$complete EOL" 36461 arguments="${tmp#* }" 36462 36463 # Cannot rely on the command "which" here since it doesn't always work. 36464 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36465 if test -z "$is_absolute_path"; then 36466 # Path to executable is not absolute. Find it. 36467 IFS_save="$IFS" 36468 IFS=: 36469 for p in $PATH; do 36470 if test -f "$p/$path" && test -x "$p/$path"; then 36471 new_path="$p/$path" 36472 break 36473 fi 36474 done 36475 IFS="$IFS_save" 36476 else 36477 # This is an absolute path, we can use it without further modifications. 36478 new_path="$path" 36479 fi 36480 36481 if test "x$new_path" = x; then 36482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36483 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36484 has_space=`$ECHO "$complete" | $GREP " "` 36485 if test "x$has_space" != x; then 36486 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36487 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36488 fi 36489 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36490 fi 36491 fi 36492 36493 # Now join together the path and the arguments once again 36494 if test "x$arguments" != xEOL; then 36495 new_complete="$new_path ${arguments% *}" 36496 else 36497 new_complete="$new_path" 36498 fi 36499 36500 if test "x$complete" != "x$new_complete"; then 36501 GNM="$new_complete" 36502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36503 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36504 fi 36505 fi 36506 36507 36508 36509 36510 # Publish this variable in the help. 36511 36512 36513 if test "x$MCS" = x; then 36514 # The variable is not set by user, try to locate tool using the code snippet 36515 for ac_prog in mcs 36516 do 36517 # Extract the first word of "$ac_prog", so it can be a program name with args. 36518 set dummy $ac_prog; ac_word=$2 36519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36520 $as_echo_n "checking for $ac_word... " >&6; } 36521 if ${ac_cv_path_MCS+:} false; then : 36522 $as_echo_n "(cached) " >&6 36523 else 36524 case $MCS in 36525 [\\/]* | ?:[\\/]*) 36526 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36527 ;; 36528 *) 36529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36530 for as_dir in $PATH 36531 do 36532 IFS=$as_save_IFS 36533 test -z "$as_dir" && as_dir=. 36534 for ac_exec_ext in '' $ac_executable_extensions; do 36535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36536 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36538 break 2 36539 fi 36540 done 36541 done 36542 IFS=$as_save_IFS 36543 36544 ;; 36545 esac 36546 fi 36547 MCS=$ac_cv_path_MCS 36548 if test -n "$MCS"; then 36549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36550 $as_echo "$MCS" >&6; } 36551 else 36552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36553 $as_echo "no" >&6; } 36554 fi 36555 36556 36557 test -n "$MCS" && break 36558 done 36559 36560 else 36561 # The variable is set, but is it from the command line or the environment? 36562 36563 # Try to remove the string !MCS! from our list. 36564 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36565 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36566 # If it failed, the variable was not from the command line. Ignore it, 36567 # but warn the user (except for BASH, which is always set by the calling BASH). 36568 if test "xMCS" != xBASH; then 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36570 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36571 fi 36572 # Try to locate tool using the code snippet 36573 for ac_prog in mcs 36574 do 36575 # Extract the first word of "$ac_prog", so it can be a program name with args. 36576 set dummy $ac_prog; ac_word=$2 36577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36578 $as_echo_n "checking for $ac_word... " >&6; } 36579 if ${ac_cv_path_MCS+:} false; then : 36580 $as_echo_n "(cached) " >&6 36581 else 36582 case $MCS in 36583 [\\/]* | ?:[\\/]*) 36584 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36585 ;; 36586 *) 36587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36588 for as_dir in $PATH 36589 do 36590 IFS=$as_save_IFS 36591 test -z "$as_dir" && as_dir=. 36592 for ac_exec_ext in '' $ac_executable_extensions; do 36593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36594 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36596 break 2 36597 fi 36598 done 36599 done 36600 IFS=$as_save_IFS 36601 36602 ;; 36603 esac 36604 fi 36605 MCS=$ac_cv_path_MCS 36606 if test -n "$MCS"; then 36607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36608 $as_echo "$MCS" >&6; } 36609 else 36610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36611 $as_echo "no" >&6; } 36612 fi 36613 36614 36615 test -n "$MCS" && break 36616 done 36617 36618 else 36619 # If it succeeded, then it was overridden by the user. We will use it 36620 # for the tool. 36621 36622 # First remove it from the list of overridden variables, so we can test 36623 # for unknown variables in the end. 36624 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36625 36626 # Check if the provided tool contains a complete path. 36627 tool_specified="$MCS" 36628 tool_basename="${tool_specified##*/}" 36629 if test "x$tool_basename" = "x$tool_specified"; then 36630 # A command without a complete path is provided, search $PATH. 36631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36632 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36633 # Extract the first word of "$tool_basename", so it can be a program name with args. 36634 set dummy $tool_basename; ac_word=$2 36635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36636 $as_echo_n "checking for $ac_word... " >&6; } 36637 if ${ac_cv_path_MCS+:} false; then : 36638 $as_echo_n "(cached) " >&6 36639 else 36640 case $MCS in 36641 [\\/]* | ?:[\\/]*) 36642 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36643 ;; 36644 *) 36645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36646 for as_dir in $PATH 36647 do 36648 IFS=$as_save_IFS 36649 test -z "$as_dir" && as_dir=. 36650 for ac_exec_ext in '' $ac_executable_extensions; do 36651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36652 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36654 break 2 36655 fi 36656 done 36657 done 36658 IFS=$as_save_IFS 36659 36660 ;; 36661 esac 36662 fi 36663 MCS=$ac_cv_path_MCS 36664 if test -n "$MCS"; then 36665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36666 $as_echo "$MCS" >&6; } 36667 else 36668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36669 $as_echo "no" >&6; } 36670 fi 36671 36672 36673 if test "x$MCS" = x; then 36674 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36675 fi 36676 else 36677 # Otherwise we believe it is a complete path. Use it as it is. 36678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36679 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36681 $as_echo_n "checking for MCS... " >&6; } 36682 if test ! -x "$tool_specified"; then 36683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36684 $as_echo "not found" >&6; } 36685 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36686 fi 36687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36688 $as_echo "$tool_specified" >&6; } 36689 fi 36690 fi 36691 fi 36692 36693 36694 36695 # Only process if variable expands to non-empty 36696 36697 if test "x$MCS" != x; then 36698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36699 36700 # First separate the path from the arguments. This will split at the first 36701 # space. 36702 complete="$MCS" 36703 path="${complete%% *}" 36704 tmp="$complete EOL" 36705 arguments="${tmp#* }" 36706 36707 # Input might be given as Windows format, start by converting to 36708 # unix format. 36709 new_path=`$CYGPATH -u "$path"` 36710 36711 # Now try to locate executable using which 36712 new_path=`$WHICH "$new_path" 2> /dev/null` 36713 # bat and cmd files are not always considered executable in cygwin causing which 36714 # to not find them 36715 if test "x$new_path" = x \ 36716 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36717 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36718 new_path=`$CYGPATH -u "$path"` 36719 fi 36720 if test "x$new_path" = x; then 36721 # Oops. Which didn't find the executable. 36722 # The splitting of arguments from the executable at a space might have been incorrect, 36723 # since paths with space are more likely in Windows. Give it another try with the whole 36724 # argument. 36725 path="$complete" 36726 arguments="EOL" 36727 new_path=`$CYGPATH -u "$path"` 36728 new_path=`$WHICH "$new_path" 2> /dev/null` 36729 # bat and cmd files are not always considered executable in cygwin causing which 36730 # to not find them 36731 if test "x$new_path" = x \ 36732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36734 new_path=`$CYGPATH -u "$path"` 36735 fi 36736 if test "x$new_path" = x; then 36737 # It's still not found. Now this is an unrecoverable error. 36738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36739 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36740 has_space=`$ECHO "$complete" | $GREP " "` 36741 if test "x$has_space" != x; then 36742 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36743 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36744 fi 36745 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36746 fi 36747 fi 36748 36749 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36750 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36751 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36752 # "foo.exe" is OK but "foo" is an error. 36753 # 36754 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36755 # It is also a way to make sure we got the proper file name for the real test later on. 36756 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36757 if test "x$test_shortpath" = x; then 36758 # Short path failed, file does not exist as specified. 36759 # Try adding .exe or .cmd 36760 if test -f "${new_path}.exe"; then 36761 input_to_shortpath="${new_path}.exe" 36762 elif test -f "${new_path}.cmd"; then 36763 input_to_shortpath="${new_path}.cmd" 36764 else 36765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36766 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36767 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36768 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36769 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36770 fi 36771 else 36772 input_to_shortpath="$new_path" 36773 fi 36774 36775 # Call helper function which possibly converts this using DOS-style short mode. 36776 # If so, the updated path is stored in $new_path. 36777 new_path="$input_to_shortpath" 36778 36779 input_path="$input_to_shortpath" 36780 # Check if we need to convert this using DOS-style short mode. If the path 36781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36782 # take no chances and rewrite it. 36783 # Note: m4 eats our [], so we need to use [ and ] instead. 36784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36785 if test "x$has_forbidden_chars" != x; then 36786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36787 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36788 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36789 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36790 # Going to short mode and back again did indeed matter. Since short mode is 36791 # case insensitive, let's make it lowercase to improve readability. 36792 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36793 # Now convert it back to Unix-stile (cygpath) 36794 input_path=`$CYGPATH -u "$shortmode_path"` 36795 new_path="$input_path" 36796 fi 36797 fi 36798 36799 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36800 if test "x$test_cygdrive_prefix" = x; then 36801 # As a simple fix, exclude /usr/bin since it's not a real path. 36802 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36803 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36804 # a path prefixed by /cygdrive for fixpath to work. 36805 new_path="$CYGWIN_ROOT_PATH$input_path" 36806 fi 36807 fi 36808 36809 # remove trailing .exe if any 36810 new_path="${new_path/%.exe/}" 36811 36812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36813 36814 # First separate the path from the arguments. This will split at the first 36815 # space. 36816 complete="$MCS" 36817 path="${complete%% *}" 36818 tmp="$complete EOL" 36819 arguments="${tmp#* }" 36820 36821 # Input might be given as Windows format, start by converting to 36822 # unix format. 36823 new_path="$path" 36824 36825 windows_path="$new_path" 36826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36827 unix_path=`$CYGPATH -u "$windows_path"` 36828 new_path="$unix_path" 36829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36831 new_path="$unix_path" 36832 fi 36833 36834 36835 # Now try to locate executable using which 36836 new_path=`$WHICH "$new_path" 2> /dev/null` 36837 36838 if test "x$new_path" = x; then 36839 # Oops. Which didn't find the executable. 36840 # The splitting of arguments from the executable at a space might have been incorrect, 36841 # since paths with space are more likely in Windows. Give it another try with the whole 36842 # argument. 36843 path="$complete" 36844 arguments="EOL" 36845 new_path="$path" 36846 36847 windows_path="$new_path" 36848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36849 unix_path=`$CYGPATH -u "$windows_path"` 36850 new_path="$unix_path" 36851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36853 new_path="$unix_path" 36854 fi 36855 36856 36857 new_path=`$WHICH "$new_path" 2> /dev/null` 36858 # bat and cmd files are not always considered executable in MSYS causing which 36859 # to not find them 36860 if test "x$new_path" = x \ 36861 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36862 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36863 new_path="$path" 36864 36865 windows_path="$new_path" 36866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36867 unix_path=`$CYGPATH -u "$windows_path"` 36868 new_path="$unix_path" 36869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36871 new_path="$unix_path" 36872 fi 36873 36874 fi 36875 36876 if test "x$new_path" = x; then 36877 # It's still not found. Now this is an unrecoverable error. 36878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36879 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36880 has_space=`$ECHO "$complete" | $GREP " "` 36881 if test "x$has_space" != x; then 36882 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36883 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36884 fi 36885 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36886 fi 36887 fi 36888 36889 # Now new_path has a complete unix path to the binary 36890 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36891 # Keep paths in /bin as-is, but remove trailing .exe if any 36892 new_path="${new_path/%.exe/}" 36893 # Do not save /bin paths to all_fixpath_prefixes! 36894 else 36895 # Not in mixed or Windows style, start by that. 36896 new_path=`cmd //c echo $new_path` 36897 36898 input_path="$new_path" 36899 # Check if we need to convert this using DOS-style short mode. If the path 36900 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36901 # take no chances and rewrite it. 36902 # Note: m4 eats our [], so we need to use [ and ] instead. 36903 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36904 if test "x$has_forbidden_chars" != x; then 36905 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36906 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36907 fi 36908 36909 # Output is in $new_path 36910 36911 windows_path="$new_path" 36912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36913 unix_path=`$CYGPATH -u "$windows_path"` 36914 new_path="$unix_path" 36915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36917 new_path="$unix_path" 36918 fi 36919 36920 # remove trailing .exe if any 36921 new_path="${new_path/%.exe/}" 36922 36923 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36924 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36925 fi 36926 36927 else 36928 # We're on a unix platform. Hooray! :) 36929 # First separate the path from the arguments. This will split at the first 36930 # space. 36931 complete="$MCS" 36932 path="${complete%% *}" 36933 tmp="$complete EOL" 36934 arguments="${tmp#* }" 36935 36936 # Cannot rely on the command "which" here since it doesn't always work. 36937 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36938 if test -z "$is_absolute_path"; then 36939 # Path to executable is not absolute. Find it. 36940 IFS_save="$IFS" 36941 IFS=: 36942 for p in $PATH; do 36943 if test -f "$p/$path" && test -x "$p/$path"; then 36944 new_path="$p/$path" 36945 break 36946 fi 36947 done 36948 IFS="$IFS_save" 36949 else 36950 # This is an absolute path, we can use it without further modifications. 36951 new_path="$path" 36952 fi 36953 36954 if test "x$new_path" = x; then 36955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36956 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36957 has_space=`$ECHO "$complete" | $GREP " "` 36958 if test "x$has_space" != x; then 36959 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36960 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36961 fi 36962 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36963 fi 36964 fi 36965 36966 # Now join together the path and the arguments once again 36967 if test "x$arguments" != xEOL; then 36968 new_complete="$new_path ${arguments% *}" 36969 else 36970 new_complete="$new_path" 36971 fi 36972 36973 if test "x$complete" != "x$new_complete"; then 36974 MCS="$new_complete" 36975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36976 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36977 fi 36978 fi 36979 36980 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36981 # FIXME: we should unify this with the solaris case above. 36982 36983 36984 # Publish this variable in the help. 36985 36986 36987 if test "x$STRIP" = x; then 36988 # The variable is not set by user, try to locate tool using the code snippet 36989 if test -n "$ac_tool_prefix"; then 36990 for ac_prog in strip 36991 do 36992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36995 $as_echo_n "checking for $ac_word... " >&6; } 36996 if ${ac_cv_prog_STRIP+:} false; then : 36997 $as_echo_n "(cached) " >&6 36998 else 36999 if test -n "$STRIP"; then 37000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37001 else 37002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37003 for as_dir in $PATH 37004 do 37005 IFS=$as_save_IFS 37006 test -z "$as_dir" && as_dir=. 37007 for ac_exec_ext in '' $ac_executable_extensions; do 37008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37009 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37011 break 2 37012 fi 37013 done 37014 done 37015 IFS=$as_save_IFS 37016 37017 fi 37018 fi 37019 STRIP=$ac_cv_prog_STRIP 37020 if test -n "$STRIP"; then 37021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37022 $as_echo "$STRIP" >&6; } 37023 else 37024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37025 $as_echo "no" >&6; } 37026 fi 37027 37028 37029 test -n "$STRIP" && break 37030 done 37031 fi 37032 if test -z "$STRIP"; then 37033 ac_ct_STRIP=$STRIP 37034 for ac_prog in strip 37035 do 37036 # Extract the first word of "$ac_prog", so it can be a program name with args. 37037 set dummy $ac_prog; ac_word=$2 37038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37039 $as_echo_n "checking for $ac_word... " >&6; } 37040 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37041 $as_echo_n "(cached) " >&6 37042 else 37043 if test -n "$ac_ct_STRIP"; then 37044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37045 else 37046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37047 for as_dir in $PATH 37048 do 37049 IFS=$as_save_IFS 37050 test -z "$as_dir" && as_dir=. 37051 for ac_exec_ext in '' $ac_executable_extensions; do 37052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37053 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37055 break 2 37056 fi 37057 done 37058 done 37059 IFS=$as_save_IFS 37060 37061 fi 37062 fi 37063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37064 if test -n "$ac_ct_STRIP"; then 37065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37066 $as_echo "$ac_ct_STRIP" >&6; } 37067 else 37068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37069 $as_echo "no" >&6; } 37070 fi 37071 37072 37073 test -n "$ac_ct_STRIP" && break 37074 done 37075 37076 if test "x$ac_ct_STRIP" = x; then 37077 STRIP="" 37078 else 37079 case $cross_compiling:$ac_tool_warned in 37080 yes:) 37081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37083 ac_tool_warned=yes ;; 37084 esac 37085 STRIP=$ac_ct_STRIP 37086 fi 37087 fi 37088 37089 else 37090 # The variable is set, but is it from the command line or the environment? 37091 37092 # Try to remove the string !STRIP! from our list. 37093 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37094 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37095 # If it failed, the variable was not from the command line. Ignore it, 37096 # but warn the user (except for BASH, which is always set by the calling BASH). 37097 if test "xSTRIP" != xBASH; then 37098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37099 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37100 fi 37101 # Try to locate tool using the code snippet 37102 if test -n "$ac_tool_prefix"; then 37103 for ac_prog in strip 37104 do 37105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37108 $as_echo_n "checking for $ac_word... " >&6; } 37109 if ${ac_cv_prog_STRIP+:} false; then : 37110 $as_echo_n "(cached) " >&6 37111 else 37112 if test -n "$STRIP"; then 37113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37114 else 37115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37116 for as_dir in $PATH 37117 do 37118 IFS=$as_save_IFS 37119 test -z "$as_dir" && as_dir=. 37120 for ac_exec_ext in '' $ac_executable_extensions; do 37121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37122 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37124 break 2 37125 fi 37126 done 37127 done 37128 IFS=$as_save_IFS 37129 37130 fi 37131 fi 37132 STRIP=$ac_cv_prog_STRIP 37133 if test -n "$STRIP"; then 37134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37135 $as_echo "$STRIP" >&6; } 37136 else 37137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37138 $as_echo "no" >&6; } 37139 fi 37140 37141 37142 test -n "$STRIP" && break 37143 done 37144 fi 37145 if test -z "$STRIP"; then 37146 ac_ct_STRIP=$STRIP 37147 for ac_prog in strip 37148 do 37149 # Extract the first word of "$ac_prog", so it can be a program name with args. 37150 set dummy $ac_prog; ac_word=$2 37151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37152 $as_echo_n "checking for $ac_word... " >&6; } 37153 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37154 $as_echo_n "(cached) " >&6 37155 else 37156 if test -n "$ac_ct_STRIP"; then 37157 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37158 else 37159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37160 for as_dir in $PATH 37161 do 37162 IFS=$as_save_IFS 37163 test -z "$as_dir" && as_dir=. 37164 for ac_exec_ext in '' $ac_executable_extensions; do 37165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37166 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37168 break 2 37169 fi 37170 done 37171 done 37172 IFS=$as_save_IFS 37173 37174 fi 37175 fi 37176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37177 if test -n "$ac_ct_STRIP"; then 37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37179 $as_echo "$ac_ct_STRIP" >&6; } 37180 else 37181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37182 $as_echo "no" >&6; } 37183 fi 37184 37185 37186 test -n "$ac_ct_STRIP" && break 37187 done 37188 37189 if test "x$ac_ct_STRIP" = x; then 37190 STRIP="" 37191 else 37192 case $cross_compiling:$ac_tool_warned in 37193 yes:) 37194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37196 ac_tool_warned=yes ;; 37197 esac 37198 STRIP=$ac_ct_STRIP 37199 fi 37200 fi 37201 37202 else 37203 # If it succeeded, then it was overridden by the user. We will use it 37204 # for the tool. 37205 37206 # First remove it from the list of overridden variables, so we can test 37207 # for unknown variables in the end. 37208 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37209 37210 # Check if the provided tool contains a complete path. 37211 tool_specified="$STRIP" 37212 tool_basename="${tool_specified##*/}" 37213 if test "x$tool_basename" = "x$tool_specified"; then 37214 # A command without a complete path is provided, search $PATH. 37215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37216 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37217 # Extract the first word of "$tool_basename", so it can be a program name with args. 37218 set dummy $tool_basename; ac_word=$2 37219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37220 $as_echo_n "checking for $ac_word... " >&6; } 37221 if ${ac_cv_path_STRIP+:} false; then : 37222 $as_echo_n "(cached) " >&6 37223 else 37224 case $STRIP in 37225 [\\/]* | ?:[\\/]*) 37226 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37227 ;; 37228 *) 37229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37230 for as_dir in $PATH 37231 do 37232 IFS=$as_save_IFS 37233 test -z "$as_dir" && as_dir=. 37234 for ac_exec_ext in '' $ac_executable_extensions; do 37235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37236 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37238 break 2 37239 fi 37240 done 37241 done 37242 IFS=$as_save_IFS 37243 37244 ;; 37245 esac 37246 fi 37247 STRIP=$ac_cv_path_STRIP 37248 if test -n "$STRIP"; then 37249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37250 $as_echo "$STRIP" >&6; } 37251 else 37252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37253 $as_echo "no" >&6; } 37254 fi 37255 37256 37257 if test "x$STRIP" = x; then 37258 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37259 fi 37260 else 37261 # Otherwise we believe it is a complete path. Use it as it is. 37262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37263 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37265 $as_echo_n "checking for STRIP... " >&6; } 37266 if test ! -x "$tool_specified"; then 37267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37268 $as_echo "not found" >&6; } 37269 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37270 fi 37271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37272 $as_echo "$tool_specified" >&6; } 37273 fi 37274 fi 37275 fi 37276 37277 37278 37279 # Only process if variable expands to non-empty 37280 37281 if test "x$STRIP" != x; then 37282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37283 37284 # First separate the path from the arguments. This will split at the first 37285 # space. 37286 complete="$STRIP" 37287 path="${complete%% *}" 37288 tmp="$complete EOL" 37289 arguments="${tmp#* }" 37290 37291 # Input might be given as Windows format, start by converting to 37292 # unix format. 37293 new_path=`$CYGPATH -u "$path"` 37294 37295 # Now try to locate executable using which 37296 new_path=`$WHICH "$new_path" 2> /dev/null` 37297 # bat and cmd files are not always considered executable in cygwin causing which 37298 # to not find them 37299 if test "x$new_path" = x \ 37300 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37301 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37302 new_path=`$CYGPATH -u "$path"` 37303 fi 37304 if test "x$new_path" = x; then 37305 # Oops. Which didn't find the executable. 37306 # The splitting of arguments from the executable at a space might have been incorrect, 37307 # since paths with space are more likely in Windows. Give it another try with the whole 37308 # argument. 37309 path="$complete" 37310 arguments="EOL" 37311 new_path=`$CYGPATH -u "$path"` 37312 new_path=`$WHICH "$new_path" 2> /dev/null` 37313 # bat and cmd files are not always considered executable in cygwin causing which 37314 # to not find them 37315 if test "x$new_path" = x \ 37316 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37317 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37318 new_path=`$CYGPATH -u "$path"` 37319 fi 37320 if test "x$new_path" = x; then 37321 # It's still not found. Now this is an unrecoverable error. 37322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37323 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37324 has_space=`$ECHO "$complete" | $GREP " "` 37325 if test "x$has_space" != x; then 37326 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37327 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37328 fi 37329 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37330 fi 37331 fi 37332 37333 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37334 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37335 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37336 # "foo.exe" is OK but "foo" is an error. 37337 # 37338 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37339 # It is also a way to make sure we got the proper file name for the real test later on. 37340 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37341 if test "x$test_shortpath" = x; then 37342 # Short path failed, file does not exist as specified. 37343 # Try adding .exe or .cmd 37344 if test -f "${new_path}.exe"; then 37345 input_to_shortpath="${new_path}.exe" 37346 elif test -f "${new_path}.cmd"; then 37347 input_to_shortpath="${new_path}.cmd" 37348 else 37349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37350 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37351 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37352 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37353 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37354 fi 37355 else 37356 input_to_shortpath="$new_path" 37357 fi 37358 37359 # Call helper function which possibly converts this using DOS-style short mode. 37360 # If so, the updated path is stored in $new_path. 37361 new_path="$input_to_shortpath" 37362 37363 input_path="$input_to_shortpath" 37364 # Check if we need to convert this using DOS-style short mode. If the path 37365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37366 # take no chances and rewrite it. 37367 # Note: m4 eats our [], so we need to use [ and ] instead. 37368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37369 if test "x$has_forbidden_chars" != x; then 37370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37371 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37372 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37373 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37374 # Going to short mode and back again did indeed matter. Since short mode is 37375 # case insensitive, let's make it lowercase to improve readability. 37376 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37377 # Now convert it back to Unix-stile (cygpath) 37378 input_path=`$CYGPATH -u "$shortmode_path"` 37379 new_path="$input_path" 37380 fi 37381 fi 37382 37383 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37384 if test "x$test_cygdrive_prefix" = x; then 37385 # As a simple fix, exclude /usr/bin since it's not a real path. 37386 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37387 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37388 # a path prefixed by /cygdrive for fixpath to work. 37389 new_path="$CYGWIN_ROOT_PATH$input_path" 37390 fi 37391 fi 37392 37393 # remove trailing .exe if any 37394 new_path="${new_path/%.exe/}" 37395 37396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37397 37398 # First separate the path from the arguments. This will split at the first 37399 # space. 37400 complete="$STRIP" 37401 path="${complete%% *}" 37402 tmp="$complete EOL" 37403 arguments="${tmp#* }" 37404 37405 # Input might be given as Windows format, start by converting to 37406 # unix format. 37407 new_path="$path" 37408 37409 windows_path="$new_path" 37410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37411 unix_path=`$CYGPATH -u "$windows_path"` 37412 new_path="$unix_path" 37413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37415 new_path="$unix_path" 37416 fi 37417 37418 37419 # Now try to locate executable using which 37420 new_path=`$WHICH "$new_path" 2> /dev/null` 37421 37422 if test "x$new_path" = x; then 37423 # Oops. Which didn't find the executable. 37424 # The splitting of arguments from the executable at a space might have been incorrect, 37425 # since paths with space are more likely in Windows. Give it another try with the whole 37426 # argument. 37427 path="$complete" 37428 arguments="EOL" 37429 new_path="$path" 37430 37431 windows_path="$new_path" 37432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37433 unix_path=`$CYGPATH -u "$windows_path"` 37434 new_path="$unix_path" 37435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37436 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37437 new_path="$unix_path" 37438 fi 37439 37440 37441 new_path=`$WHICH "$new_path" 2> /dev/null` 37442 # bat and cmd files are not always considered executable in MSYS causing which 37443 # to not find them 37444 if test "x$new_path" = x \ 37445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37447 new_path="$path" 37448 37449 windows_path="$new_path" 37450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37451 unix_path=`$CYGPATH -u "$windows_path"` 37452 new_path="$unix_path" 37453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37455 new_path="$unix_path" 37456 fi 37457 37458 fi 37459 37460 if test "x$new_path" = x; then 37461 # It's still not found. Now this is an unrecoverable error. 37462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37463 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37464 has_space=`$ECHO "$complete" | $GREP " "` 37465 if test "x$has_space" != x; then 37466 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37467 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37468 fi 37469 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37470 fi 37471 fi 37472 37473 # Now new_path has a complete unix path to the binary 37474 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37475 # Keep paths in /bin as-is, but remove trailing .exe if any 37476 new_path="${new_path/%.exe/}" 37477 # Do not save /bin paths to all_fixpath_prefixes! 37478 else 37479 # Not in mixed or Windows style, start by that. 37480 new_path=`cmd //c echo $new_path` 37481 37482 input_path="$new_path" 37483 # Check if we need to convert this using DOS-style short mode. If the path 37484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37485 # take no chances and rewrite it. 37486 # Note: m4 eats our [], so we need to use [ and ] instead. 37487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37488 if test "x$has_forbidden_chars" != x; then 37489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37491 fi 37492 37493 # Output is in $new_path 37494 37495 windows_path="$new_path" 37496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37497 unix_path=`$CYGPATH -u "$windows_path"` 37498 new_path="$unix_path" 37499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37501 new_path="$unix_path" 37502 fi 37503 37504 # remove trailing .exe if any 37505 new_path="${new_path/%.exe/}" 37506 37507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37509 fi 37510 37511 else 37512 # We're on a unix platform. Hooray! :) 37513 # First separate the path from the arguments. This will split at the first 37514 # space. 37515 complete="$STRIP" 37516 path="${complete%% *}" 37517 tmp="$complete EOL" 37518 arguments="${tmp#* }" 37519 37520 # Cannot rely on the command "which" here since it doesn't always work. 37521 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37522 if test -z "$is_absolute_path"; then 37523 # Path to executable is not absolute. Find it. 37524 IFS_save="$IFS" 37525 IFS=: 37526 for p in $PATH; do 37527 if test -f "$p/$path" && test -x "$p/$path"; then 37528 new_path="$p/$path" 37529 break 37530 fi 37531 done 37532 IFS="$IFS_save" 37533 else 37534 # This is an absolute path, we can use it without further modifications. 37535 new_path="$path" 37536 fi 37537 37538 if test "x$new_path" = x; then 37539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37540 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37541 has_space=`$ECHO "$complete" | $GREP " "` 37542 if test "x$has_space" != x; then 37543 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37544 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37545 fi 37546 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37547 fi 37548 fi 37549 37550 # Now join together the path and the arguments once again 37551 if test "x$arguments" != xEOL; then 37552 new_complete="$new_path ${arguments% *}" 37553 else 37554 new_complete="$new_path" 37555 fi 37556 37557 if test "x$complete" != "x$new_complete"; then 37558 STRIP="$new_complete" 37559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37560 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37561 fi 37562 fi 37563 37564 37565 37566 # Publish this variable in the help. 37567 37568 37569 if test "x$NM" = x; then 37570 # The variable is not set by user, try to locate tool using the code snippet 37571 if test -n "$ac_tool_prefix"; then 37572 for ac_prog in nm 37573 do 37574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37577 $as_echo_n "checking for $ac_word... " >&6; } 37578 if ${ac_cv_prog_NM+:} false; then : 37579 $as_echo_n "(cached) " >&6 37580 else 37581 if test -n "$NM"; then 37582 ac_cv_prog_NM="$NM" # Let the user override the test. 37583 else 37584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37585 for as_dir in $PATH 37586 do 37587 IFS=$as_save_IFS 37588 test -z "$as_dir" && as_dir=. 37589 for ac_exec_ext in '' $ac_executable_extensions; do 37590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37591 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37593 break 2 37594 fi 37595 done 37596 done 37597 IFS=$as_save_IFS 37598 37599 fi 37600 fi 37601 NM=$ac_cv_prog_NM 37602 if test -n "$NM"; then 37603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37604 $as_echo "$NM" >&6; } 37605 else 37606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37607 $as_echo "no" >&6; } 37608 fi 37609 37610 37611 test -n "$NM" && break 37612 done 37613 fi 37614 if test -z "$NM"; then 37615 ac_ct_NM=$NM 37616 for ac_prog in nm 37617 do 37618 # Extract the first word of "$ac_prog", so it can be a program name with args. 37619 set dummy $ac_prog; ac_word=$2 37620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37621 $as_echo_n "checking for $ac_word... " >&6; } 37622 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37623 $as_echo_n "(cached) " >&6 37624 else 37625 if test -n "$ac_ct_NM"; then 37626 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37627 else 37628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37629 for as_dir in $PATH 37630 do 37631 IFS=$as_save_IFS 37632 test -z "$as_dir" && as_dir=. 37633 for ac_exec_ext in '' $ac_executable_extensions; do 37634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37635 ac_cv_prog_ac_ct_NM="$ac_prog" 37636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37637 break 2 37638 fi 37639 done 37640 done 37641 IFS=$as_save_IFS 37642 37643 fi 37644 fi 37645 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37646 if test -n "$ac_ct_NM"; then 37647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37648 $as_echo "$ac_ct_NM" >&6; } 37649 else 37650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37651 $as_echo "no" >&6; } 37652 fi 37653 37654 37655 test -n "$ac_ct_NM" && break 37656 done 37657 37658 if test "x$ac_ct_NM" = x; then 37659 NM="" 37660 else 37661 case $cross_compiling:$ac_tool_warned in 37662 yes:) 37663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37665 ac_tool_warned=yes ;; 37666 esac 37667 NM=$ac_ct_NM 37668 fi 37669 fi 37670 37671 else 37672 # The variable is set, but is it from the command line or the environment? 37673 37674 # Try to remove the string !NM! from our list. 37675 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37676 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37677 # If it failed, the variable was not from the command line. Ignore it, 37678 # but warn the user (except for BASH, which is always set by the calling BASH). 37679 if test "xNM" != xBASH; then 37680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37681 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37682 fi 37683 # Try to locate tool using the code snippet 37684 if test -n "$ac_tool_prefix"; then 37685 for ac_prog in nm 37686 do 37687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37690 $as_echo_n "checking for $ac_word... " >&6; } 37691 if ${ac_cv_prog_NM+:} false; then : 37692 $as_echo_n "(cached) " >&6 37693 else 37694 if test -n "$NM"; then 37695 ac_cv_prog_NM="$NM" # Let the user override the test. 37696 else 37697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37698 for as_dir in $PATH 37699 do 37700 IFS=$as_save_IFS 37701 test -z "$as_dir" && as_dir=. 37702 for ac_exec_ext in '' $ac_executable_extensions; do 37703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37704 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37706 break 2 37707 fi 37708 done 37709 done 37710 IFS=$as_save_IFS 37711 37712 fi 37713 fi 37714 NM=$ac_cv_prog_NM 37715 if test -n "$NM"; then 37716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37717 $as_echo "$NM" >&6; } 37718 else 37719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37720 $as_echo "no" >&6; } 37721 fi 37722 37723 37724 test -n "$NM" && break 37725 done 37726 fi 37727 if test -z "$NM"; then 37728 ac_ct_NM=$NM 37729 for ac_prog in nm 37730 do 37731 # Extract the first word of "$ac_prog", so it can be a program name with args. 37732 set dummy $ac_prog; ac_word=$2 37733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37734 $as_echo_n "checking for $ac_word... " >&6; } 37735 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37736 $as_echo_n "(cached) " >&6 37737 else 37738 if test -n "$ac_ct_NM"; then 37739 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37740 else 37741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37742 for as_dir in $PATH 37743 do 37744 IFS=$as_save_IFS 37745 test -z "$as_dir" && as_dir=. 37746 for ac_exec_ext in '' $ac_executable_extensions; do 37747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37748 ac_cv_prog_ac_ct_NM="$ac_prog" 37749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37750 break 2 37751 fi 37752 done 37753 done 37754 IFS=$as_save_IFS 37755 37756 fi 37757 fi 37758 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37759 if test -n "$ac_ct_NM"; then 37760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37761 $as_echo "$ac_ct_NM" >&6; } 37762 else 37763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37764 $as_echo "no" >&6; } 37765 fi 37766 37767 37768 test -n "$ac_ct_NM" && break 37769 done 37770 37771 if test "x$ac_ct_NM" = x; then 37772 NM="" 37773 else 37774 case $cross_compiling:$ac_tool_warned in 37775 yes:) 37776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37778 ac_tool_warned=yes ;; 37779 esac 37780 NM=$ac_ct_NM 37781 fi 37782 fi 37783 37784 else 37785 # If it succeeded, then it was overridden by the user. We will use it 37786 # for the tool. 37787 37788 # First remove it from the list of overridden variables, so we can test 37789 # for unknown variables in the end. 37790 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37791 37792 # Check if the provided tool contains a complete path. 37793 tool_specified="$NM" 37794 tool_basename="${tool_specified##*/}" 37795 if test "x$tool_basename" = "x$tool_specified"; then 37796 # A command without a complete path is provided, search $PATH. 37797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37798 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37799 # Extract the first word of "$tool_basename", so it can be a program name with args. 37800 set dummy $tool_basename; ac_word=$2 37801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37802 $as_echo_n "checking for $ac_word... " >&6; } 37803 if ${ac_cv_path_NM+:} false; then : 37804 $as_echo_n "(cached) " >&6 37805 else 37806 case $NM in 37807 [\\/]* | ?:[\\/]*) 37808 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37809 ;; 37810 *) 37811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37812 for as_dir in $PATH 37813 do 37814 IFS=$as_save_IFS 37815 test -z "$as_dir" && as_dir=. 37816 for ac_exec_ext in '' $ac_executable_extensions; do 37817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37818 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37820 break 2 37821 fi 37822 done 37823 done 37824 IFS=$as_save_IFS 37825 37826 ;; 37827 esac 37828 fi 37829 NM=$ac_cv_path_NM 37830 if test -n "$NM"; then 37831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37832 $as_echo "$NM" >&6; } 37833 else 37834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37835 $as_echo "no" >&6; } 37836 fi 37837 37838 37839 if test "x$NM" = x; then 37840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37841 fi 37842 else 37843 # Otherwise we believe it is a complete path. Use it as it is. 37844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37845 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37847 $as_echo_n "checking for NM... " >&6; } 37848 if test ! -x "$tool_specified"; then 37849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37850 $as_echo "not found" >&6; } 37851 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37852 fi 37853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37854 $as_echo "$tool_specified" >&6; } 37855 fi 37856 fi 37857 fi 37858 37859 37860 37861 # Only process if variable expands to non-empty 37862 37863 if test "x$NM" != x; then 37864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37865 37866 # First separate the path from the arguments. This will split at the first 37867 # space. 37868 complete="$NM" 37869 path="${complete%% *}" 37870 tmp="$complete EOL" 37871 arguments="${tmp#* }" 37872 37873 # Input might be given as Windows format, start by converting to 37874 # unix format. 37875 new_path=`$CYGPATH -u "$path"` 37876 37877 # Now try to locate executable using which 37878 new_path=`$WHICH "$new_path" 2> /dev/null` 37879 # bat and cmd files are not always considered executable in cygwin causing which 37880 # to not find them 37881 if test "x$new_path" = x \ 37882 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37883 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37884 new_path=`$CYGPATH -u "$path"` 37885 fi 37886 if test "x$new_path" = x; then 37887 # Oops. Which didn't find the executable. 37888 # The splitting of arguments from the executable at a space might have been incorrect, 37889 # since paths with space are more likely in Windows. Give it another try with the whole 37890 # argument. 37891 path="$complete" 37892 arguments="EOL" 37893 new_path=`$CYGPATH -u "$path"` 37894 new_path=`$WHICH "$new_path" 2> /dev/null` 37895 # bat and cmd files are not always considered executable in cygwin causing which 37896 # to not find them 37897 if test "x$new_path" = x \ 37898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37900 new_path=`$CYGPATH -u "$path"` 37901 fi 37902 if test "x$new_path" = x; then 37903 # It's still not found. Now this is an unrecoverable error. 37904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37905 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37906 has_space=`$ECHO "$complete" | $GREP " "` 37907 if test "x$has_space" != x; then 37908 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37909 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37910 fi 37911 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37912 fi 37913 fi 37914 37915 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37916 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37917 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37918 # "foo.exe" is OK but "foo" is an error. 37919 # 37920 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37921 # It is also a way to make sure we got the proper file name for the real test later on. 37922 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37923 if test "x$test_shortpath" = x; then 37924 # Short path failed, file does not exist as specified. 37925 # Try adding .exe or .cmd 37926 if test -f "${new_path}.exe"; then 37927 input_to_shortpath="${new_path}.exe" 37928 elif test -f "${new_path}.cmd"; then 37929 input_to_shortpath="${new_path}.cmd" 37930 else 37931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37932 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37933 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37934 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37935 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37936 fi 37937 else 37938 input_to_shortpath="$new_path" 37939 fi 37940 37941 # Call helper function which possibly converts this using DOS-style short mode. 37942 # If so, the updated path is stored in $new_path. 37943 new_path="$input_to_shortpath" 37944 37945 input_path="$input_to_shortpath" 37946 # Check if we need to convert this using DOS-style short mode. If the path 37947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37948 # take no chances and rewrite it. 37949 # Note: m4 eats our [], so we need to use [ and ] instead. 37950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37951 if test "x$has_forbidden_chars" != x; then 37952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37953 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37954 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37955 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37956 # Going to short mode and back again did indeed matter. Since short mode is 37957 # case insensitive, let's make it lowercase to improve readability. 37958 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37959 # Now convert it back to Unix-stile (cygpath) 37960 input_path=`$CYGPATH -u "$shortmode_path"` 37961 new_path="$input_path" 37962 fi 37963 fi 37964 37965 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37966 if test "x$test_cygdrive_prefix" = x; then 37967 # As a simple fix, exclude /usr/bin since it's not a real path. 37968 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37969 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37970 # a path prefixed by /cygdrive for fixpath to work. 37971 new_path="$CYGWIN_ROOT_PATH$input_path" 37972 fi 37973 fi 37974 37975 # remove trailing .exe if any 37976 new_path="${new_path/%.exe/}" 37977 37978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37979 37980 # First separate the path from the arguments. This will split at the first 37981 # space. 37982 complete="$NM" 37983 path="${complete%% *}" 37984 tmp="$complete EOL" 37985 arguments="${tmp#* }" 37986 37987 # Input might be given as Windows format, start by converting to 37988 # unix format. 37989 new_path="$path" 37990 37991 windows_path="$new_path" 37992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37993 unix_path=`$CYGPATH -u "$windows_path"` 37994 new_path="$unix_path" 37995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37997 new_path="$unix_path" 37998 fi 37999 38000 38001 # Now try to locate executable using which 38002 new_path=`$WHICH "$new_path" 2> /dev/null` 38003 38004 if test "x$new_path" = x; then 38005 # Oops. Which didn't find the executable. 38006 # The splitting of arguments from the executable at a space might have been incorrect, 38007 # since paths with space are more likely in Windows. Give it another try with the whole 38008 # argument. 38009 path="$complete" 38010 arguments="EOL" 38011 new_path="$path" 38012 38013 windows_path="$new_path" 38014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38015 unix_path=`$CYGPATH -u "$windows_path"` 38016 new_path="$unix_path" 38017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38019 new_path="$unix_path" 38020 fi 38021 38022 38023 new_path=`$WHICH "$new_path" 2> /dev/null` 38024 # bat and cmd files are not always considered executable in MSYS causing which 38025 # to not find them 38026 if test "x$new_path" = x \ 38027 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38028 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38029 new_path="$path" 38030 38031 windows_path="$new_path" 38032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38033 unix_path=`$CYGPATH -u "$windows_path"` 38034 new_path="$unix_path" 38035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38037 new_path="$unix_path" 38038 fi 38039 38040 fi 38041 38042 if test "x$new_path" = x; then 38043 # It's still not found. Now this is an unrecoverable error. 38044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38045 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38046 has_space=`$ECHO "$complete" | $GREP " "` 38047 if test "x$has_space" != x; then 38048 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38049 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38050 fi 38051 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38052 fi 38053 fi 38054 38055 # Now new_path has a complete unix path to the binary 38056 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38057 # Keep paths in /bin as-is, but remove trailing .exe if any 38058 new_path="${new_path/%.exe/}" 38059 # Do not save /bin paths to all_fixpath_prefixes! 38060 else 38061 # Not in mixed or Windows style, start by that. 38062 new_path=`cmd //c echo $new_path` 38063 38064 input_path="$new_path" 38065 # Check if we need to convert this using DOS-style short mode. If the path 38066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38067 # take no chances and rewrite it. 38068 # Note: m4 eats our [], so we need to use [ and ] instead. 38069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38070 if test "x$has_forbidden_chars" != x; then 38071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38073 fi 38074 38075 # Output is in $new_path 38076 38077 windows_path="$new_path" 38078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38079 unix_path=`$CYGPATH -u "$windows_path"` 38080 new_path="$unix_path" 38081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38083 new_path="$unix_path" 38084 fi 38085 38086 # remove trailing .exe if any 38087 new_path="${new_path/%.exe/}" 38088 38089 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38090 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38091 fi 38092 38093 else 38094 # We're on a unix platform. Hooray! :) 38095 # First separate the path from the arguments. This will split at the first 38096 # space. 38097 complete="$NM" 38098 path="${complete%% *}" 38099 tmp="$complete EOL" 38100 arguments="${tmp#* }" 38101 38102 # Cannot rely on the command "which" here since it doesn't always work. 38103 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38104 if test -z "$is_absolute_path"; then 38105 # Path to executable is not absolute. Find it. 38106 IFS_save="$IFS" 38107 IFS=: 38108 for p in $PATH; do 38109 if test -f "$p/$path" && test -x "$p/$path"; then 38110 new_path="$p/$path" 38111 break 38112 fi 38113 done 38114 IFS="$IFS_save" 38115 else 38116 # This is an absolute path, we can use it without further modifications. 38117 new_path="$path" 38118 fi 38119 38120 if test "x$new_path" = x; then 38121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38122 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38123 has_space=`$ECHO "$complete" | $GREP " "` 38124 if test "x$has_space" != x; then 38125 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38126 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38127 fi 38128 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38129 fi 38130 fi 38131 38132 # Now join together the path and the arguments once again 38133 if test "x$arguments" != xEOL; then 38134 new_complete="$new_path ${arguments% *}" 38135 else 38136 new_complete="$new_path" 38137 fi 38138 38139 if test "x$complete" != "x$new_complete"; then 38140 NM="$new_complete" 38141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38142 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38143 fi 38144 fi 38145 38146 GNM="$NM" 38147 38148 fi 38149 38150 # objcopy is used for moving debug symbols to separate files when 38151 # full debug symbols are enabled. 38152 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38153 38154 38155 # Publish this variable in the help. 38156 38157 38158 if test "x$OBJCOPY" = x; then 38159 # The variable is not set by user, try to locate tool using the code snippet 38160 if test -n "$ac_tool_prefix"; then 38161 for ac_prog in gobjcopy objcopy 38162 do 38163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38166 $as_echo_n "checking for $ac_word... " >&6; } 38167 if ${ac_cv_prog_OBJCOPY+:} false; then : 38168 $as_echo_n "(cached) " >&6 38169 else 38170 if test -n "$OBJCOPY"; then 38171 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38172 else 38173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38174 for as_dir in $PATH 38175 do 38176 IFS=$as_save_IFS 38177 test -z "$as_dir" && as_dir=. 38178 for ac_exec_ext in '' $ac_executable_extensions; do 38179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38180 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38182 break 2 38183 fi 38184 done 38185 done 38186 IFS=$as_save_IFS 38187 38188 fi 38189 fi 38190 OBJCOPY=$ac_cv_prog_OBJCOPY 38191 if test -n "$OBJCOPY"; then 38192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38193 $as_echo "$OBJCOPY" >&6; } 38194 else 38195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38196 $as_echo "no" >&6; } 38197 fi 38198 38199 38200 test -n "$OBJCOPY" && break 38201 done 38202 fi 38203 if test -z "$OBJCOPY"; then 38204 ac_ct_OBJCOPY=$OBJCOPY 38205 for ac_prog in gobjcopy objcopy 38206 do 38207 # Extract the first word of "$ac_prog", so it can be a program name with args. 38208 set dummy $ac_prog; ac_word=$2 38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38210 $as_echo_n "checking for $ac_word... " >&6; } 38211 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38212 $as_echo_n "(cached) " >&6 38213 else 38214 if test -n "$ac_ct_OBJCOPY"; then 38215 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38216 else 38217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38218 for as_dir in $PATH 38219 do 38220 IFS=$as_save_IFS 38221 test -z "$as_dir" && as_dir=. 38222 for ac_exec_ext in '' $ac_executable_extensions; do 38223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38224 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38226 break 2 38227 fi 38228 done 38229 done 38230 IFS=$as_save_IFS 38231 38232 fi 38233 fi 38234 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38235 if test -n "$ac_ct_OBJCOPY"; then 38236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38237 $as_echo "$ac_ct_OBJCOPY" >&6; } 38238 else 38239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38240 $as_echo "no" >&6; } 38241 fi 38242 38243 38244 test -n "$ac_ct_OBJCOPY" && break 38245 done 38246 38247 if test "x$ac_ct_OBJCOPY" = x; then 38248 OBJCOPY="" 38249 else 38250 case $cross_compiling:$ac_tool_warned in 38251 yes:) 38252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38254 ac_tool_warned=yes ;; 38255 esac 38256 OBJCOPY=$ac_ct_OBJCOPY 38257 fi 38258 fi 38259 38260 else 38261 # The variable is set, but is it from the command line or the environment? 38262 38263 # Try to remove the string !OBJCOPY! from our list. 38264 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38265 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38266 # If it failed, the variable was not from the command line. Ignore it, 38267 # but warn the user (except for BASH, which is always set by the calling BASH). 38268 if test "xOBJCOPY" != xBASH; then 38269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38270 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38271 fi 38272 # Try to locate tool using the code snippet 38273 if test -n "$ac_tool_prefix"; then 38274 for ac_prog in gobjcopy objcopy 38275 do 38276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38279 $as_echo_n "checking for $ac_word... " >&6; } 38280 if ${ac_cv_prog_OBJCOPY+:} false; then : 38281 $as_echo_n "(cached) " >&6 38282 else 38283 if test -n "$OBJCOPY"; then 38284 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38285 else 38286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38287 for as_dir in $PATH 38288 do 38289 IFS=$as_save_IFS 38290 test -z "$as_dir" && as_dir=. 38291 for ac_exec_ext in '' $ac_executable_extensions; do 38292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38293 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38295 break 2 38296 fi 38297 done 38298 done 38299 IFS=$as_save_IFS 38300 38301 fi 38302 fi 38303 OBJCOPY=$ac_cv_prog_OBJCOPY 38304 if test -n "$OBJCOPY"; then 38305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38306 $as_echo "$OBJCOPY" >&6; } 38307 else 38308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38309 $as_echo "no" >&6; } 38310 fi 38311 38312 38313 test -n "$OBJCOPY" && break 38314 done 38315 fi 38316 if test -z "$OBJCOPY"; then 38317 ac_ct_OBJCOPY=$OBJCOPY 38318 for ac_prog in gobjcopy objcopy 38319 do 38320 # Extract the first word of "$ac_prog", so it can be a program name with args. 38321 set dummy $ac_prog; ac_word=$2 38322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38323 $as_echo_n "checking for $ac_word... " >&6; } 38324 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38325 $as_echo_n "(cached) " >&6 38326 else 38327 if test -n "$ac_ct_OBJCOPY"; then 38328 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38329 else 38330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38331 for as_dir in $PATH 38332 do 38333 IFS=$as_save_IFS 38334 test -z "$as_dir" && as_dir=. 38335 for ac_exec_ext in '' $ac_executable_extensions; do 38336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38337 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38339 break 2 38340 fi 38341 done 38342 done 38343 IFS=$as_save_IFS 38344 38345 fi 38346 fi 38347 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38348 if test -n "$ac_ct_OBJCOPY"; then 38349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38350 $as_echo "$ac_ct_OBJCOPY" >&6; } 38351 else 38352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38353 $as_echo "no" >&6; } 38354 fi 38355 38356 38357 test -n "$ac_ct_OBJCOPY" && break 38358 done 38359 38360 if test "x$ac_ct_OBJCOPY" = x; then 38361 OBJCOPY="" 38362 else 38363 case $cross_compiling:$ac_tool_warned in 38364 yes:) 38365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38367 ac_tool_warned=yes ;; 38368 esac 38369 OBJCOPY=$ac_ct_OBJCOPY 38370 fi 38371 fi 38372 38373 else 38374 # If it succeeded, then it was overridden by the user. We will use it 38375 # for the tool. 38376 38377 # First remove it from the list of overridden variables, so we can test 38378 # for unknown variables in the end. 38379 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38380 38381 # Check if the provided tool contains a complete path. 38382 tool_specified="$OBJCOPY" 38383 tool_basename="${tool_specified##*/}" 38384 if test "x$tool_basename" = "x$tool_specified"; then 38385 # A command without a complete path is provided, search $PATH. 38386 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38387 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38388 # Extract the first word of "$tool_basename", so it can be a program name with args. 38389 set dummy $tool_basename; ac_word=$2 38390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38391 $as_echo_n "checking for $ac_word... " >&6; } 38392 if ${ac_cv_path_OBJCOPY+:} false; then : 38393 $as_echo_n "(cached) " >&6 38394 else 38395 case $OBJCOPY in 38396 [\\/]* | ?:[\\/]*) 38397 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38398 ;; 38399 *) 38400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38401 for as_dir in $PATH 38402 do 38403 IFS=$as_save_IFS 38404 test -z "$as_dir" && as_dir=. 38405 for ac_exec_ext in '' $ac_executable_extensions; do 38406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38407 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38409 break 2 38410 fi 38411 done 38412 done 38413 IFS=$as_save_IFS 38414 38415 ;; 38416 esac 38417 fi 38418 OBJCOPY=$ac_cv_path_OBJCOPY 38419 if test -n "$OBJCOPY"; then 38420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38421 $as_echo "$OBJCOPY" >&6; } 38422 else 38423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38424 $as_echo "no" >&6; } 38425 fi 38426 38427 38428 if test "x$OBJCOPY" = x; then 38429 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38430 fi 38431 else 38432 # Otherwise we believe it is a complete path. Use it as it is. 38433 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38434 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38436 $as_echo_n "checking for OBJCOPY... " >&6; } 38437 if test ! -x "$tool_specified"; then 38438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38439 $as_echo "not found" >&6; } 38440 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38441 fi 38442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38443 $as_echo "$tool_specified" >&6; } 38444 fi 38445 fi 38446 fi 38447 38448 38449 # Only call fixup if objcopy was found. 38450 if test -n "$OBJCOPY"; then 38451 38452 # Only process if variable expands to non-empty 38453 38454 if test "x$OBJCOPY" != x; then 38455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38456 38457 # First separate the path from the arguments. This will split at the first 38458 # space. 38459 complete="$OBJCOPY" 38460 path="${complete%% *}" 38461 tmp="$complete EOL" 38462 arguments="${tmp#* }" 38463 38464 # Input might be given as Windows format, start by converting to 38465 # unix format. 38466 new_path=`$CYGPATH -u "$path"` 38467 38468 # Now try to locate executable using which 38469 new_path=`$WHICH "$new_path" 2> /dev/null` 38470 # bat and cmd files are not always considered executable in cygwin causing which 38471 # to not find them 38472 if test "x$new_path" = x \ 38473 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38474 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38475 new_path=`$CYGPATH -u "$path"` 38476 fi 38477 if test "x$new_path" = x; then 38478 # Oops. Which didn't find the executable. 38479 # The splitting of arguments from the executable at a space might have been incorrect, 38480 # since paths with space are more likely in Windows. Give it another try with the whole 38481 # argument. 38482 path="$complete" 38483 arguments="EOL" 38484 new_path=`$CYGPATH -u "$path"` 38485 new_path=`$WHICH "$new_path" 2> /dev/null` 38486 # bat and cmd files are not always considered executable in cygwin causing which 38487 # to not find them 38488 if test "x$new_path" = x \ 38489 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38490 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38491 new_path=`$CYGPATH -u "$path"` 38492 fi 38493 if test "x$new_path" = x; then 38494 # It's still not found. Now this is an unrecoverable error. 38495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38496 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38497 has_space=`$ECHO "$complete" | $GREP " "` 38498 if test "x$has_space" != x; then 38499 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38500 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38501 fi 38502 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38503 fi 38504 fi 38505 38506 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38507 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38508 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38509 # "foo.exe" is OK but "foo" is an error. 38510 # 38511 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38512 # It is also a way to make sure we got the proper file name for the real test later on. 38513 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38514 if test "x$test_shortpath" = x; then 38515 # Short path failed, file does not exist as specified. 38516 # Try adding .exe or .cmd 38517 if test -f "${new_path}.exe"; then 38518 input_to_shortpath="${new_path}.exe" 38519 elif test -f "${new_path}.cmd"; then 38520 input_to_shortpath="${new_path}.cmd" 38521 else 38522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38523 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38524 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38525 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38526 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38527 fi 38528 else 38529 input_to_shortpath="$new_path" 38530 fi 38531 38532 # Call helper function which possibly converts this using DOS-style short mode. 38533 # If so, the updated path is stored in $new_path. 38534 new_path="$input_to_shortpath" 38535 38536 input_path="$input_to_shortpath" 38537 # Check if we need to convert this using DOS-style short mode. If the path 38538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38539 # take no chances and rewrite it. 38540 # Note: m4 eats our [], so we need to use [ and ] instead. 38541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38542 if test "x$has_forbidden_chars" != x; then 38543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38544 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38545 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38546 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38547 # Going to short mode and back again did indeed matter. Since short mode is 38548 # case insensitive, let's make it lowercase to improve readability. 38549 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38550 # Now convert it back to Unix-stile (cygpath) 38551 input_path=`$CYGPATH -u "$shortmode_path"` 38552 new_path="$input_path" 38553 fi 38554 fi 38555 38556 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38557 if test "x$test_cygdrive_prefix" = x; then 38558 # As a simple fix, exclude /usr/bin since it's not a real path. 38559 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38560 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38561 # a path prefixed by /cygdrive for fixpath to work. 38562 new_path="$CYGWIN_ROOT_PATH$input_path" 38563 fi 38564 fi 38565 38566 # remove trailing .exe if any 38567 new_path="${new_path/%.exe/}" 38568 38569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38570 38571 # First separate the path from the arguments. This will split at the first 38572 # space. 38573 complete="$OBJCOPY" 38574 path="${complete%% *}" 38575 tmp="$complete EOL" 38576 arguments="${tmp#* }" 38577 38578 # Input might be given as Windows format, start by converting to 38579 # unix format. 38580 new_path="$path" 38581 38582 windows_path="$new_path" 38583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38584 unix_path=`$CYGPATH -u "$windows_path"` 38585 new_path="$unix_path" 38586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38588 new_path="$unix_path" 38589 fi 38590 38591 38592 # Now try to locate executable using which 38593 new_path=`$WHICH "$new_path" 2> /dev/null` 38594 38595 if test "x$new_path" = x; then 38596 # Oops. Which didn't find the executable. 38597 # The splitting of arguments from the executable at a space might have been incorrect, 38598 # since paths with space are more likely in Windows. Give it another try with the whole 38599 # argument. 38600 path="$complete" 38601 arguments="EOL" 38602 new_path="$path" 38603 38604 windows_path="$new_path" 38605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38606 unix_path=`$CYGPATH -u "$windows_path"` 38607 new_path="$unix_path" 38608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38610 new_path="$unix_path" 38611 fi 38612 38613 38614 new_path=`$WHICH "$new_path" 2> /dev/null` 38615 # bat and cmd files are not always considered executable in MSYS causing which 38616 # to not find them 38617 if test "x$new_path" = x \ 38618 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38619 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38620 new_path="$path" 38621 38622 windows_path="$new_path" 38623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38624 unix_path=`$CYGPATH -u "$windows_path"` 38625 new_path="$unix_path" 38626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38628 new_path="$unix_path" 38629 fi 38630 38631 fi 38632 38633 if test "x$new_path" = x; then 38634 # It's still not found. Now this is an unrecoverable error. 38635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38636 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38637 has_space=`$ECHO "$complete" | $GREP " "` 38638 if test "x$has_space" != x; then 38639 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38640 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38641 fi 38642 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38643 fi 38644 fi 38645 38646 # Now new_path has a complete unix path to the binary 38647 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38648 # Keep paths in /bin as-is, but remove trailing .exe if any 38649 new_path="${new_path/%.exe/}" 38650 # Do not save /bin paths to all_fixpath_prefixes! 38651 else 38652 # Not in mixed or Windows style, start by that. 38653 new_path=`cmd //c echo $new_path` 38654 38655 input_path="$new_path" 38656 # Check if we need to convert this using DOS-style short mode. If the path 38657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38658 # take no chances and rewrite it. 38659 # Note: m4 eats our [], so we need to use [ and ] instead. 38660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38661 if test "x$has_forbidden_chars" != x; then 38662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38663 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38664 fi 38665 38666 # Output is in $new_path 38667 38668 windows_path="$new_path" 38669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38670 unix_path=`$CYGPATH -u "$windows_path"` 38671 new_path="$unix_path" 38672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38674 new_path="$unix_path" 38675 fi 38676 38677 # remove trailing .exe if any 38678 new_path="${new_path/%.exe/}" 38679 38680 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38681 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38682 fi 38683 38684 else 38685 # We're on a unix platform. Hooray! :) 38686 # First separate the path from the arguments. This will split at the first 38687 # space. 38688 complete="$OBJCOPY" 38689 path="${complete%% *}" 38690 tmp="$complete EOL" 38691 arguments="${tmp#* }" 38692 38693 # Cannot rely on the command "which" here since it doesn't always work. 38694 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38695 if test -z "$is_absolute_path"; then 38696 # Path to executable is not absolute. Find it. 38697 IFS_save="$IFS" 38698 IFS=: 38699 for p in $PATH; do 38700 if test -f "$p/$path" && test -x "$p/$path"; then 38701 new_path="$p/$path" 38702 break 38703 fi 38704 done 38705 IFS="$IFS_save" 38706 else 38707 # This is an absolute path, we can use it without further modifications. 38708 new_path="$path" 38709 fi 38710 38711 if test "x$new_path" = x; then 38712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38713 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38714 has_space=`$ECHO "$complete" | $GREP " "` 38715 if test "x$has_space" != x; then 38716 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38717 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38718 fi 38719 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38720 fi 38721 fi 38722 38723 # Now join together the path and the arguments once again 38724 if test "x$arguments" != xEOL; then 38725 new_complete="$new_path ${arguments% *}" 38726 else 38727 new_complete="$new_path" 38728 fi 38729 38730 if test "x$complete" != "x$new_complete"; then 38731 OBJCOPY="$new_complete" 38732 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38733 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38734 fi 38735 fi 38736 38737 fi 38738 fi 38739 38740 38741 38742 # Publish this variable in the help. 38743 38744 38745 if test "x$OBJDUMP" = x; then 38746 # The variable is not set by user, try to locate tool using the code snippet 38747 if test -n "$ac_tool_prefix"; then 38748 for ac_prog in gobjdump objdump 38749 do 38750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38753 $as_echo_n "checking for $ac_word... " >&6; } 38754 if ${ac_cv_prog_OBJDUMP+:} false; then : 38755 $as_echo_n "(cached) " >&6 38756 else 38757 if test -n "$OBJDUMP"; then 38758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38759 else 38760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38761 for as_dir in $PATH 38762 do 38763 IFS=$as_save_IFS 38764 test -z "$as_dir" && as_dir=. 38765 for ac_exec_ext in '' $ac_executable_extensions; do 38766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38767 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38769 break 2 38770 fi 38771 done 38772 done 38773 IFS=$as_save_IFS 38774 38775 fi 38776 fi 38777 OBJDUMP=$ac_cv_prog_OBJDUMP 38778 if test -n "$OBJDUMP"; then 38779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38780 $as_echo "$OBJDUMP" >&6; } 38781 else 38782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38783 $as_echo "no" >&6; } 38784 fi 38785 38786 38787 test -n "$OBJDUMP" && break 38788 done 38789 fi 38790 if test -z "$OBJDUMP"; then 38791 ac_ct_OBJDUMP=$OBJDUMP 38792 for ac_prog in gobjdump objdump 38793 do 38794 # Extract the first word of "$ac_prog", so it can be a program name with args. 38795 set dummy $ac_prog; ac_word=$2 38796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38797 $as_echo_n "checking for $ac_word... " >&6; } 38798 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38799 $as_echo_n "(cached) " >&6 38800 else 38801 if test -n "$ac_ct_OBJDUMP"; then 38802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38803 else 38804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38805 for as_dir in $PATH 38806 do 38807 IFS=$as_save_IFS 38808 test -z "$as_dir" && as_dir=. 38809 for ac_exec_ext in '' $ac_executable_extensions; do 38810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38811 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38813 break 2 38814 fi 38815 done 38816 done 38817 IFS=$as_save_IFS 38818 38819 fi 38820 fi 38821 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38822 if test -n "$ac_ct_OBJDUMP"; then 38823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38824 $as_echo "$ac_ct_OBJDUMP" >&6; } 38825 else 38826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38827 $as_echo "no" >&6; } 38828 fi 38829 38830 38831 test -n "$ac_ct_OBJDUMP" && break 38832 done 38833 38834 if test "x$ac_ct_OBJDUMP" = x; then 38835 OBJDUMP="" 38836 else 38837 case $cross_compiling:$ac_tool_warned in 38838 yes:) 38839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38841 ac_tool_warned=yes ;; 38842 esac 38843 OBJDUMP=$ac_ct_OBJDUMP 38844 fi 38845 fi 38846 38847 else 38848 # The variable is set, but is it from the command line or the environment? 38849 38850 # Try to remove the string !OBJDUMP! from our list. 38851 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38852 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38853 # If it failed, the variable was not from the command line. Ignore it, 38854 # but warn the user (except for BASH, which is always set by the calling BASH). 38855 if test "xOBJDUMP" != xBASH; then 38856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38857 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38858 fi 38859 # Try to locate tool using the code snippet 38860 if test -n "$ac_tool_prefix"; then 38861 for ac_prog in gobjdump objdump 38862 do 38863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38866 $as_echo_n "checking for $ac_word... " >&6; } 38867 if ${ac_cv_prog_OBJDUMP+:} false; then : 38868 $as_echo_n "(cached) " >&6 38869 else 38870 if test -n "$OBJDUMP"; then 38871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38872 else 38873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38874 for as_dir in $PATH 38875 do 38876 IFS=$as_save_IFS 38877 test -z "$as_dir" && as_dir=. 38878 for ac_exec_ext in '' $ac_executable_extensions; do 38879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38880 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38882 break 2 38883 fi 38884 done 38885 done 38886 IFS=$as_save_IFS 38887 38888 fi 38889 fi 38890 OBJDUMP=$ac_cv_prog_OBJDUMP 38891 if test -n "$OBJDUMP"; then 38892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38893 $as_echo "$OBJDUMP" >&6; } 38894 else 38895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38896 $as_echo "no" >&6; } 38897 fi 38898 38899 38900 test -n "$OBJDUMP" && break 38901 done 38902 fi 38903 if test -z "$OBJDUMP"; then 38904 ac_ct_OBJDUMP=$OBJDUMP 38905 for ac_prog in gobjdump objdump 38906 do 38907 # Extract the first word of "$ac_prog", so it can be a program name with args. 38908 set dummy $ac_prog; ac_word=$2 38909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38910 $as_echo_n "checking for $ac_word... " >&6; } 38911 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38912 $as_echo_n "(cached) " >&6 38913 else 38914 if test -n "$ac_ct_OBJDUMP"; then 38915 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38916 else 38917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38918 for as_dir in $PATH 38919 do 38920 IFS=$as_save_IFS 38921 test -z "$as_dir" && as_dir=. 38922 for ac_exec_ext in '' $ac_executable_extensions; do 38923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38924 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38926 break 2 38927 fi 38928 done 38929 done 38930 IFS=$as_save_IFS 38931 38932 fi 38933 fi 38934 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38935 if test -n "$ac_ct_OBJDUMP"; then 38936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38937 $as_echo "$ac_ct_OBJDUMP" >&6; } 38938 else 38939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38940 $as_echo "no" >&6; } 38941 fi 38942 38943 38944 test -n "$ac_ct_OBJDUMP" && break 38945 done 38946 38947 if test "x$ac_ct_OBJDUMP" = x; then 38948 OBJDUMP="" 38949 else 38950 case $cross_compiling:$ac_tool_warned in 38951 yes:) 38952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38954 ac_tool_warned=yes ;; 38955 esac 38956 OBJDUMP=$ac_ct_OBJDUMP 38957 fi 38958 fi 38959 38960 else 38961 # If it succeeded, then it was overridden by the user. We will use it 38962 # for the tool. 38963 38964 # First remove it from the list of overridden variables, so we can test 38965 # for unknown variables in the end. 38966 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38967 38968 # Check if the provided tool contains a complete path. 38969 tool_specified="$OBJDUMP" 38970 tool_basename="${tool_specified##*/}" 38971 if test "x$tool_basename" = "x$tool_specified"; then 38972 # A command without a complete path is provided, search $PATH. 38973 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38974 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38975 # Extract the first word of "$tool_basename", so it can be a program name with args. 38976 set dummy $tool_basename; ac_word=$2 38977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38978 $as_echo_n "checking for $ac_word... " >&6; } 38979 if ${ac_cv_path_OBJDUMP+:} false; then : 38980 $as_echo_n "(cached) " >&6 38981 else 38982 case $OBJDUMP in 38983 [\\/]* | ?:[\\/]*) 38984 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38985 ;; 38986 *) 38987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38988 for as_dir in $PATH 38989 do 38990 IFS=$as_save_IFS 38991 test -z "$as_dir" && as_dir=. 38992 for ac_exec_ext in '' $ac_executable_extensions; do 38993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38994 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38996 break 2 38997 fi 38998 done 38999 done 39000 IFS=$as_save_IFS 39001 39002 ;; 39003 esac 39004 fi 39005 OBJDUMP=$ac_cv_path_OBJDUMP 39006 if test -n "$OBJDUMP"; then 39007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39008 $as_echo "$OBJDUMP" >&6; } 39009 else 39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39011 $as_echo "no" >&6; } 39012 fi 39013 39014 39015 if test "x$OBJDUMP" = x; then 39016 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39017 fi 39018 else 39019 # Otherwise we believe it is a complete path. Use it as it is. 39020 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39021 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39023 $as_echo_n "checking for OBJDUMP... " >&6; } 39024 if test ! -x "$tool_specified"; then 39025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39026 $as_echo "not found" >&6; } 39027 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39028 fi 39029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39030 $as_echo "$tool_specified" >&6; } 39031 fi 39032 fi 39033 fi 39034 39035 39036 if test "x$OBJDUMP" != x; then 39037 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39038 # bails if argument is missing. 39039 39040 # Only process if variable expands to non-empty 39041 39042 if test "x$OBJDUMP" != x; then 39043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39044 39045 # First separate the path from the arguments. This will split at the first 39046 # space. 39047 complete="$OBJDUMP" 39048 path="${complete%% *}" 39049 tmp="$complete EOL" 39050 arguments="${tmp#* }" 39051 39052 # Input might be given as Windows format, start by converting to 39053 # unix format. 39054 new_path=`$CYGPATH -u "$path"` 39055 39056 # Now try to locate executable using which 39057 new_path=`$WHICH "$new_path" 2> /dev/null` 39058 # bat and cmd files are not always considered executable in cygwin causing which 39059 # to not find them 39060 if test "x$new_path" = x \ 39061 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39062 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39063 new_path=`$CYGPATH -u "$path"` 39064 fi 39065 if test "x$new_path" = x; then 39066 # Oops. Which didn't find the executable. 39067 # The splitting of arguments from the executable at a space might have been incorrect, 39068 # since paths with space are more likely in Windows. Give it another try with the whole 39069 # argument. 39070 path="$complete" 39071 arguments="EOL" 39072 new_path=`$CYGPATH -u "$path"` 39073 new_path=`$WHICH "$new_path" 2> /dev/null` 39074 # bat and cmd files are not always considered executable in cygwin causing which 39075 # to not find them 39076 if test "x$new_path" = x \ 39077 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39078 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39079 new_path=`$CYGPATH -u "$path"` 39080 fi 39081 if test "x$new_path" = x; then 39082 # It's still not found. Now this is an unrecoverable error. 39083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39084 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39085 has_space=`$ECHO "$complete" | $GREP " "` 39086 if test "x$has_space" != x; then 39087 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39088 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39089 fi 39090 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39091 fi 39092 fi 39093 39094 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39095 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39096 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39097 # "foo.exe" is OK but "foo" is an error. 39098 # 39099 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39100 # It is also a way to make sure we got the proper file name for the real test later on. 39101 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39102 if test "x$test_shortpath" = x; then 39103 # Short path failed, file does not exist as specified. 39104 # Try adding .exe or .cmd 39105 if test -f "${new_path}.exe"; then 39106 input_to_shortpath="${new_path}.exe" 39107 elif test -f "${new_path}.cmd"; then 39108 input_to_shortpath="${new_path}.cmd" 39109 else 39110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39111 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39112 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39113 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39114 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39115 fi 39116 else 39117 input_to_shortpath="$new_path" 39118 fi 39119 39120 # Call helper function which possibly converts this using DOS-style short mode. 39121 # If so, the updated path is stored in $new_path. 39122 new_path="$input_to_shortpath" 39123 39124 input_path="$input_to_shortpath" 39125 # Check if we need to convert this using DOS-style short mode. If the path 39126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39127 # take no chances and rewrite it. 39128 # Note: m4 eats our [], so we need to use [ and ] instead. 39129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39130 if test "x$has_forbidden_chars" != x; then 39131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39132 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39133 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39134 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39135 # Going to short mode and back again did indeed matter. Since short mode is 39136 # case insensitive, let's make it lowercase to improve readability. 39137 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39138 # Now convert it back to Unix-stile (cygpath) 39139 input_path=`$CYGPATH -u "$shortmode_path"` 39140 new_path="$input_path" 39141 fi 39142 fi 39143 39144 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39145 if test "x$test_cygdrive_prefix" = x; then 39146 # As a simple fix, exclude /usr/bin since it's not a real path. 39147 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39148 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39149 # a path prefixed by /cygdrive for fixpath to work. 39150 new_path="$CYGWIN_ROOT_PATH$input_path" 39151 fi 39152 fi 39153 39154 # remove trailing .exe if any 39155 new_path="${new_path/%.exe/}" 39156 39157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39158 39159 # First separate the path from the arguments. This will split at the first 39160 # space. 39161 complete="$OBJDUMP" 39162 path="${complete%% *}" 39163 tmp="$complete EOL" 39164 arguments="${tmp#* }" 39165 39166 # Input might be given as Windows format, start by converting to 39167 # unix format. 39168 new_path="$path" 39169 39170 windows_path="$new_path" 39171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39172 unix_path=`$CYGPATH -u "$windows_path"` 39173 new_path="$unix_path" 39174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39175 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39176 new_path="$unix_path" 39177 fi 39178 39179 39180 # Now try to locate executable using which 39181 new_path=`$WHICH "$new_path" 2> /dev/null` 39182 39183 if test "x$new_path" = x; then 39184 # Oops. Which didn't find the executable. 39185 # The splitting of arguments from the executable at a space might have been incorrect, 39186 # since paths with space are more likely in Windows. Give it another try with the whole 39187 # argument. 39188 path="$complete" 39189 arguments="EOL" 39190 new_path="$path" 39191 39192 windows_path="$new_path" 39193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39194 unix_path=`$CYGPATH -u "$windows_path"` 39195 new_path="$unix_path" 39196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39198 new_path="$unix_path" 39199 fi 39200 39201 39202 new_path=`$WHICH "$new_path" 2> /dev/null` 39203 # bat and cmd files are not always considered executable in MSYS causing which 39204 # to not find them 39205 if test "x$new_path" = x \ 39206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39208 new_path="$path" 39209 39210 windows_path="$new_path" 39211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39212 unix_path=`$CYGPATH -u "$windows_path"` 39213 new_path="$unix_path" 39214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39216 new_path="$unix_path" 39217 fi 39218 39219 fi 39220 39221 if test "x$new_path" = x; then 39222 # It's still not found. Now this is an unrecoverable error. 39223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39224 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39225 has_space=`$ECHO "$complete" | $GREP " "` 39226 if test "x$has_space" != x; then 39227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39229 fi 39230 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39231 fi 39232 fi 39233 39234 # Now new_path has a complete unix path to the binary 39235 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39236 # Keep paths in /bin as-is, but remove trailing .exe if any 39237 new_path="${new_path/%.exe/}" 39238 # Do not save /bin paths to all_fixpath_prefixes! 39239 else 39240 # Not in mixed or Windows style, start by that. 39241 new_path=`cmd //c echo $new_path` 39242 39243 input_path="$new_path" 39244 # Check if we need to convert this using DOS-style short mode. If the path 39245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39246 # take no chances and rewrite it. 39247 # Note: m4 eats our [], so we need to use [ and ] instead. 39248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39249 if test "x$has_forbidden_chars" != x; then 39250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39251 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39252 fi 39253 39254 # Output is in $new_path 39255 39256 windows_path="$new_path" 39257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39258 unix_path=`$CYGPATH -u "$windows_path"` 39259 new_path="$unix_path" 39260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39262 new_path="$unix_path" 39263 fi 39264 39265 # remove trailing .exe if any 39266 new_path="${new_path/%.exe/}" 39267 39268 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39269 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39270 fi 39271 39272 else 39273 # We're on a unix platform. Hooray! :) 39274 # First separate the path from the arguments. This will split at the first 39275 # space. 39276 complete="$OBJDUMP" 39277 path="${complete%% *}" 39278 tmp="$complete EOL" 39279 arguments="${tmp#* }" 39280 39281 # Cannot rely on the command "which" here since it doesn't always work. 39282 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39283 if test -z "$is_absolute_path"; then 39284 # Path to executable is not absolute. Find it. 39285 IFS_save="$IFS" 39286 IFS=: 39287 for p in $PATH; do 39288 if test -f "$p/$path" && test -x "$p/$path"; then 39289 new_path="$p/$path" 39290 break 39291 fi 39292 done 39293 IFS="$IFS_save" 39294 else 39295 # This is an absolute path, we can use it without further modifications. 39296 new_path="$path" 39297 fi 39298 39299 if test "x$new_path" = x; then 39300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39301 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39302 has_space=`$ECHO "$complete" | $GREP " "` 39303 if test "x$has_space" != x; then 39304 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39305 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39306 fi 39307 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39308 fi 39309 fi 39310 39311 # Now join together the path and the arguments once again 39312 if test "x$arguments" != xEOL; then 39313 new_complete="$new_path ${arguments% *}" 39314 else 39315 new_complete="$new_path" 39316 fi 39317 39318 if test "x$complete" != "x$new_complete"; then 39319 OBJDUMP="$new_complete" 39320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39321 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39322 fi 39323 fi 39324 39325 fi 39326 39327 39328 # Restore old path. 39329 PATH="$OLD_PATH" 39330 39331 # Restore the flags to the user specified values. 39332 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39333 CFLAGS="$ORG_CFLAGS" 39334 CXXFLAGS="$ORG_CXXFLAGS" 39335 39336 39337 # Finally do some processing after the detection phase 39338 39339 if test "x$COMPILE_TYPE" = "xcross"; then 39340 # Now we need to find a C/C++ compiler that can build executables for the 39341 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39342 # used once. Also, we need to do this without adding a tools dir to the 39343 # path, otherwise we might pick up cross-compilers which don't use standard 39344 # naming. 39345 39346 # FIXME: we should list the discovered compilers as an exclude pattern! 39347 # If we do that, we can do this detection before POST_DETECTION, and still 39348 # find the build compilers in the tools dir, if needed. 39349 39350 39351 # Publish this variable in the help. 39352 39353 39354 if test "x$BUILD_CC" = x; then 39355 # The variable is not set by user, try to locate tool using the code snippet 39356 for ac_prog in cl cc gcc 39357 do 39358 # Extract the first word of "$ac_prog", so it can be a program name with args. 39359 set dummy $ac_prog; ac_word=$2 39360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39361 $as_echo_n "checking for $ac_word... " >&6; } 39362 if ${ac_cv_path_BUILD_CC+:} false; then : 39363 $as_echo_n "(cached) " >&6 39364 else 39365 case $BUILD_CC in 39366 [\\/]* | ?:[\\/]*) 39367 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39368 ;; 39369 *) 39370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39371 for as_dir in $PATH 39372 do 39373 IFS=$as_save_IFS 39374 test -z "$as_dir" && as_dir=. 39375 for ac_exec_ext in '' $ac_executable_extensions; do 39376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39377 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39379 break 2 39380 fi 39381 done 39382 done 39383 IFS=$as_save_IFS 39384 39385 ;; 39386 esac 39387 fi 39388 BUILD_CC=$ac_cv_path_BUILD_CC 39389 if test -n "$BUILD_CC"; then 39390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39391 $as_echo "$BUILD_CC" >&6; } 39392 else 39393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39394 $as_echo "no" >&6; } 39395 fi 39396 39397 39398 test -n "$BUILD_CC" && break 39399 done 39400 39401 else 39402 # The variable is set, but is it from the command line or the environment? 39403 39404 # Try to remove the string !BUILD_CC! from our list. 39405 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39406 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39407 # If it failed, the variable was not from the command line. Ignore it, 39408 # but warn the user (except for BASH, which is always set by the calling BASH). 39409 if test "xBUILD_CC" != xBASH; then 39410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39411 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39412 fi 39413 # Try to locate tool using the code snippet 39414 for ac_prog in cl cc gcc 39415 do 39416 # Extract the first word of "$ac_prog", so it can be a program name with args. 39417 set dummy $ac_prog; ac_word=$2 39418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39419 $as_echo_n "checking for $ac_word... " >&6; } 39420 if ${ac_cv_path_BUILD_CC+:} false; then : 39421 $as_echo_n "(cached) " >&6 39422 else 39423 case $BUILD_CC in 39424 [\\/]* | ?:[\\/]*) 39425 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39426 ;; 39427 *) 39428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39429 for as_dir in $PATH 39430 do 39431 IFS=$as_save_IFS 39432 test -z "$as_dir" && as_dir=. 39433 for ac_exec_ext in '' $ac_executable_extensions; do 39434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39435 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39437 break 2 39438 fi 39439 done 39440 done 39441 IFS=$as_save_IFS 39442 39443 ;; 39444 esac 39445 fi 39446 BUILD_CC=$ac_cv_path_BUILD_CC 39447 if test -n "$BUILD_CC"; then 39448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39449 $as_echo "$BUILD_CC" >&6; } 39450 else 39451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39452 $as_echo "no" >&6; } 39453 fi 39454 39455 39456 test -n "$BUILD_CC" && break 39457 done 39458 39459 else 39460 # If it succeeded, then it was overridden by the user. We will use it 39461 # for the tool. 39462 39463 # First remove it from the list of overridden variables, so we can test 39464 # for unknown variables in the end. 39465 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39466 39467 # Check if the provided tool contains a complete path. 39468 tool_specified="$BUILD_CC" 39469 tool_basename="${tool_specified##*/}" 39470 if test "x$tool_basename" = "x$tool_specified"; then 39471 # A command without a complete path is provided, search $PATH. 39472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39473 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39474 # Extract the first word of "$tool_basename", so it can be a program name with args. 39475 set dummy $tool_basename; ac_word=$2 39476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39477 $as_echo_n "checking for $ac_word... " >&6; } 39478 if ${ac_cv_path_BUILD_CC+:} false; then : 39479 $as_echo_n "(cached) " >&6 39480 else 39481 case $BUILD_CC in 39482 [\\/]* | ?:[\\/]*) 39483 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39484 ;; 39485 *) 39486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39487 for as_dir in $PATH 39488 do 39489 IFS=$as_save_IFS 39490 test -z "$as_dir" && as_dir=. 39491 for ac_exec_ext in '' $ac_executable_extensions; do 39492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39493 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39495 break 2 39496 fi 39497 done 39498 done 39499 IFS=$as_save_IFS 39500 39501 ;; 39502 esac 39503 fi 39504 BUILD_CC=$ac_cv_path_BUILD_CC 39505 if test -n "$BUILD_CC"; then 39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39507 $as_echo "$BUILD_CC" >&6; } 39508 else 39509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39510 $as_echo "no" >&6; } 39511 fi 39512 39513 39514 if test "x$BUILD_CC" = x; then 39515 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39516 fi 39517 else 39518 # Otherwise we believe it is a complete path. Use it as it is. 39519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39520 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39522 $as_echo_n "checking for BUILD_CC... " >&6; } 39523 if test ! -x "$tool_specified"; then 39524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39525 $as_echo "not found" >&6; } 39526 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39527 fi 39528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39529 $as_echo "$tool_specified" >&6; } 39530 fi 39531 fi 39532 fi 39533 39534 39535 39536 # Only process if variable expands to non-empty 39537 39538 if test "x$BUILD_CC" != x; then 39539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39540 39541 # First separate the path from the arguments. This will split at the first 39542 # space. 39543 complete="$BUILD_CC" 39544 path="${complete%% *}" 39545 tmp="$complete EOL" 39546 arguments="${tmp#* }" 39547 39548 # Input might be given as Windows format, start by converting to 39549 # unix format. 39550 new_path=`$CYGPATH -u "$path"` 39551 39552 # Now try to locate executable using which 39553 new_path=`$WHICH "$new_path" 2> /dev/null` 39554 # bat and cmd files are not always considered executable in cygwin causing which 39555 # to not find them 39556 if test "x$new_path" = x \ 39557 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39558 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39559 new_path=`$CYGPATH -u "$path"` 39560 fi 39561 if test "x$new_path" = x; then 39562 # Oops. Which didn't find the executable. 39563 # The splitting of arguments from the executable at a space might have been incorrect, 39564 # since paths with space are more likely in Windows. Give it another try with the whole 39565 # argument. 39566 path="$complete" 39567 arguments="EOL" 39568 new_path=`$CYGPATH -u "$path"` 39569 new_path=`$WHICH "$new_path" 2> /dev/null` 39570 # bat and cmd files are not always considered executable in cygwin causing which 39571 # to not find them 39572 if test "x$new_path" = x \ 39573 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39574 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39575 new_path=`$CYGPATH -u "$path"` 39576 fi 39577 if test "x$new_path" = x; then 39578 # It's still not found. Now this is an unrecoverable error. 39579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39580 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39581 has_space=`$ECHO "$complete" | $GREP " "` 39582 if test "x$has_space" != x; then 39583 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39584 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39585 fi 39586 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39587 fi 39588 fi 39589 39590 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39591 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39592 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39593 # "foo.exe" is OK but "foo" is an error. 39594 # 39595 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39596 # It is also a way to make sure we got the proper file name for the real test later on. 39597 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39598 if test "x$test_shortpath" = x; then 39599 # Short path failed, file does not exist as specified. 39600 # Try adding .exe or .cmd 39601 if test -f "${new_path}.exe"; then 39602 input_to_shortpath="${new_path}.exe" 39603 elif test -f "${new_path}.cmd"; then 39604 input_to_shortpath="${new_path}.cmd" 39605 else 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39607 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39608 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39609 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39610 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39611 fi 39612 else 39613 input_to_shortpath="$new_path" 39614 fi 39615 39616 # Call helper function which possibly converts this using DOS-style short mode. 39617 # If so, the updated path is stored in $new_path. 39618 new_path="$input_to_shortpath" 39619 39620 input_path="$input_to_shortpath" 39621 # Check if we need to convert this using DOS-style short mode. If the path 39622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39623 # take no chances and rewrite it. 39624 # Note: m4 eats our [], so we need to use [ and ] instead. 39625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39626 if test "x$has_forbidden_chars" != x; then 39627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39628 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39629 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39630 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39631 # Going to short mode and back again did indeed matter. Since short mode is 39632 # case insensitive, let's make it lowercase to improve readability. 39633 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39634 # Now convert it back to Unix-stile (cygpath) 39635 input_path=`$CYGPATH -u "$shortmode_path"` 39636 new_path="$input_path" 39637 fi 39638 fi 39639 39640 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39641 if test "x$test_cygdrive_prefix" = x; then 39642 # As a simple fix, exclude /usr/bin since it's not a real path. 39643 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39644 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39645 # a path prefixed by /cygdrive for fixpath to work. 39646 new_path="$CYGWIN_ROOT_PATH$input_path" 39647 fi 39648 fi 39649 39650 # remove trailing .exe if any 39651 new_path="${new_path/%.exe/}" 39652 39653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39654 39655 # First separate the path from the arguments. This will split at the first 39656 # space. 39657 complete="$BUILD_CC" 39658 path="${complete%% *}" 39659 tmp="$complete EOL" 39660 arguments="${tmp#* }" 39661 39662 # Input might be given as Windows format, start by converting to 39663 # unix format. 39664 new_path="$path" 39665 39666 windows_path="$new_path" 39667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39668 unix_path=`$CYGPATH -u "$windows_path"` 39669 new_path="$unix_path" 39670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39672 new_path="$unix_path" 39673 fi 39674 39675 39676 # Now try to locate executable using which 39677 new_path=`$WHICH "$new_path" 2> /dev/null` 39678 39679 if test "x$new_path" = x; then 39680 # Oops. Which didn't find the executable. 39681 # The splitting of arguments from the executable at a space might have been incorrect, 39682 # since paths with space are more likely in Windows. Give it another try with the whole 39683 # argument. 39684 path="$complete" 39685 arguments="EOL" 39686 new_path="$path" 39687 39688 windows_path="$new_path" 39689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39690 unix_path=`$CYGPATH -u "$windows_path"` 39691 new_path="$unix_path" 39692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39694 new_path="$unix_path" 39695 fi 39696 39697 39698 new_path=`$WHICH "$new_path" 2> /dev/null` 39699 # bat and cmd files are not always considered executable in MSYS causing which 39700 # to not find them 39701 if test "x$new_path" = x \ 39702 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39703 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39704 new_path="$path" 39705 39706 windows_path="$new_path" 39707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39708 unix_path=`$CYGPATH -u "$windows_path"` 39709 new_path="$unix_path" 39710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39712 new_path="$unix_path" 39713 fi 39714 39715 fi 39716 39717 if test "x$new_path" = x; then 39718 # It's still not found. Now this is an unrecoverable error. 39719 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39720 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39721 has_space=`$ECHO "$complete" | $GREP " "` 39722 if test "x$has_space" != x; then 39723 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39724 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39725 fi 39726 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39727 fi 39728 fi 39729 39730 # Now new_path has a complete unix path to the binary 39731 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39732 # Keep paths in /bin as-is, but remove trailing .exe if any 39733 new_path="${new_path/%.exe/}" 39734 # Do not save /bin paths to all_fixpath_prefixes! 39735 else 39736 # Not in mixed or Windows style, start by that. 39737 new_path=`cmd //c echo $new_path` 39738 39739 input_path="$new_path" 39740 # Check if we need to convert this using DOS-style short mode. If the path 39741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39742 # take no chances and rewrite it. 39743 # Note: m4 eats our [], so we need to use [ and ] instead. 39744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39745 if test "x$has_forbidden_chars" != x; then 39746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39747 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39748 fi 39749 39750 # Output is in $new_path 39751 39752 windows_path="$new_path" 39753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39754 unix_path=`$CYGPATH -u "$windows_path"` 39755 new_path="$unix_path" 39756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39758 new_path="$unix_path" 39759 fi 39760 39761 # remove trailing .exe if any 39762 new_path="${new_path/%.exe/}" 39763 39764 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39765 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39766 fi 39767 39768 else 39769 # We're on a unix platform. Hooray! :) 39770 # First separate the path from the arguments. This will split at the first 39771 # space. 39772 complete="$BUILD_CC" 39773 path="${complete%% *}" 39774 tmp="$complete EOL" 39775 arguments="${tmp#* }" 39776 39777 # Cannot rely on the command "which" here since it doesn't always work. 39778 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39779 if test -z "$is_absolute_path"; then 39780 # Path to executable is not absolute. Find it. 39781 IFS_save="$IFS" 39782 IFS=: 39783 for p in $PATH; do 39784 if test -f "$p/$path" && test -x "$p/$path"; then 39785 new_path="$p/$path" 39786 break 39787 fi 39788 done 39789 IFS="$IFS_save" 39790 else 39791 # This is an absolute path, we can use it without further modifications. 39792 new_path="$path" 39793 fi 39794 39795 if test "x$new_path" = x; then 39796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39797 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39798 has_space=`$ECHO "$complete" | $GREP " "` 39799 if test "x$has_space" != x; then 39800 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39801 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39802 fi 39803 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39804 fi 39805 fi 39806 39807 # Now join together the path and the arguments once again 39808 if test "x$arguments" != xEOL; then 39809 new_complete="$new_path ${arguments% *}" 39810 else 39811 new_complete="$new_path" 39812 fi 39813 39814 if test "x$complete" != "x$new_complete"; then 39815 BUILD_CC="$new_complete" 39816 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39817 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39818 fi 39819 fi 39820 39821 39822 39823 # Publish this variable in the help. 39824 39825 39826 if test "x$BUILD_CXX" = x; then 39827 # The variable is not set by user, try to locate tool using the code snippet 39828 for ac_prog in cl CC g++ 39829 do 39830 # Extract the first word of "$ac_prog", so it can be a program name with args. 39831 set dummy $ac_prog; ac_word=$2 39832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39833 $as_echo_n "checking for $ac_word... " >&6; } 39834 if ${ac_cv_path_BUILD_CXX+:} false; then : 39835 $as_echo_n "(cached) " >&6 39836 else 39837 case $BUILD_CXX in 39838 [\\/]* | ?:[\\/]*) 39839 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39840 ;; 39841 *) 39842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39843 for as_dir in $PATH 39844 do 39845 IFS=$as_save_IFS 39846 test -z "$as_dir" && as_dir=. 39847 for ac_exec_ext in '' $ac_executable_extensions; do 39848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39849 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39851 break 2 39852 fi 39853 done 39854 done 39855 IFS=$as_save_IFS 39856 39857 ;; 39858 esac 39859 fi 39860 BUILD_CXX=$ac_cv_path_BUILD_CXX 39861 if test -n "$BUILD_CXX"; then 39862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39863 $as_echo "$BUILD_CXX" >&6; } 39864 else 39865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39866 $as_echo "no" >&6; } 39867 fi 39868 39869 39870 test -n "$BUILD_CXX" && break 39871 done 39872 39873 else 39874 # The variable is set, but is it from the command line or the environment? 39875 39876 # Try to remove the string !BUILD_CXX! from our list. 39877 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39878 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39879 # If it failed, the variable was not from the command line. Ignore it, 39880 # but warn the user (except for BASH, which is always set by the calling BASH). 39881 if test "xBUILD_CXX" != xBASH; then 39882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39883 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39884 fi 39885 # Try to locate tool using the code snippet 39886 for ac_prog in cl CC g++ 39887 do 39888 # Extract the first word of "$ac_prog", so it can be a program name with args. 39889 set dummy $ac_prog; ac_word=$2 39890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39891 $as_echo_n "checking for $ac_word... " >&6; } 39892 if ${ac_cv_path_BUILD_CXX+:} false; then : 39893 $as_echo_n "(cached) " >&6 39894 else 39895 case $BUILD_CXX in 39896 [\\/]* | ?:[\\/]*) 39897 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39898 ;; 39899 *) 39900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39901 for as_dir in $PATH 39902 do 39903 IFS=$as_save_IFS 39904 test -z "$as_dir" && as_dir=. 39905 for ac_exec_ext in '' $ac_executable_extensions; do 39906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39907 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39909 break 2 39910 fi 39911 done 39912 done 39913 IFS=$as_save_IFS 39914 39915 ;; 39916 esac 39917 fi 39918 BUILD_CXX=$ac_cv_path_BUILD_CXX 39919 if test -n "$BUILD_CXX"; then 39920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39921 $as_echo "$BUILD_CXX" >&6; } 39922 else 39923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39924 $as_echo "no" >&6; } 39925 fi 39926 39927 39928 test -n "$BUILD_CXX" && break 39929 done 39930 39931 else 39932 # If it succeeded, then it was overridden by the user. We will use it 39933 # for the tool. 39934 39935 # First remove it from the list of overridden variables, so we can test 39936 # for unknown variables in the end. 39937 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39938 39939 # Check if the provided tool contains a complete path. 39940 tool_specified="$BUILD_CXX" 39941 tool_basename="${tool_specified##*/}" 39942 if test "x$tool_basename" = "x$tool_specified"; then 39943 # A command without a complete path is provided, search $PATH. 39944 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39945 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39946 # Extract the first word of "$tool_basename", so it can be a program name with args. 39947 set dummy $tool_basename; ac_word=$2 39948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39949 $as_echo_n "checking for $ac_word... " >&6; } 39950 if ${ac_cv_path_BUILD_CXX+:} false; then : 39951 $as_echo_n "(cached) " >&6 39952 else 39953 case $BUILD_CXX in 39954 [\\/]* | ?:[\\/]*) 39955 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39956 ;; 39957 *) 39958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39959 for as_dir in $PATH 39960 do 39961 IFS=$as_save_IFS 39962 test -z "$as_dir" && as_dir=. 39963 for ac_exec_ext in '' $ac_executable_extensions; do 39964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39965 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39967 break 2 39968 fi 39969 done 39970 done 39971 IFS=$as_save_IFS 39972 39973 ;; 39974 esac 39975 fi 39976 BUILD_CXX=$ac_cv_path_BUILD_CXX 39977 if test -n "$BUILD_CXX"; then 39978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39979 $as_echo "$BUILD_CXX" >&6; } 39980 else 39981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39982 $as_echo "no" >&6; } 39983 fi 39984 39985 39986 if test "x$BUILD_CXX" = x; then 39987 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39988 fi 39989 else 39990 # Otherwise we believe it is a complete path. Use it as it is. 39991 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39992 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39994 $as_echo_n "checking for BUILD_CXX... " >&6; } 39995 if test ! -x "$tool_specified"; then 39996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39997 $as_echo "not found" >&6; } 39998 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39999 fi 40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40001 $as_echo "$tool_specified" >&6; } 40002 fi 40003 fi 40004 fi 40005 40006 40007 40008 # Only process if variable expands to non-empty 40009 40010 if test "x$BUILD_CXX" != x; then 40011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40012 40013 # First separate the path from the arguments. This will split at the first 40014 # space. 40015 complete="$BUILD_CXX" 40016 path="${complete%% *}" 40017 tmp="$complete EOL" 40018 arguments="${tmp#* }" 40019 40020 # Input might be given as Windows format, start by converting to 40021 # unix format. 40022 new_path=`$CYGPATH -u "$path"` 40023 40024 # Now try to locate executable using which 40025 new_path=`$WHICH "$new_path" 2> /dev/null` 40026 # bat and cmd files are not always considered executable in cygwin causing which 40027 # to not find them 40028 if test "x$new_path" = x \ 40029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40031 new_path=`$CYGPATH -u "$path"` 40032 fi 40033 if test "x$new_path" = x; then 40034 # Oops. Which didn't find the executable. 40035 # The splitting of arguments from the executable at a space might have been incorrect, 40036 # since paths with space are more likely in Windows. Give it another try with the whole 40037 # argument. 40038 path="$complete" 40039 arguments="EOL" 40040 new_path=`$CYGPATH -u "$path"` 40041 new_path=`$WHICH "$new_path" 2> /dev/null` 40042 # bat and cmd files are not always considered executable in cygwin causing which 40043 # to not find them 40044 if test "x$new_path" = x \ 40045 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40046 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40047 new_path=`$CYGPATH -u "$path"` 40048 fi 40049 if test "x$new_path" = x; then 40050 # It's still not found. Now this is an unrecoverable error. 40051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40052 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40053 has_space=`$ECHO "$complete" | $GREP " "` 40054 if test "x$has_space" != x; then 40055 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40057 fi 40058 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40059 fi 40060 fi 40061 40062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40065 # "foo.exe" is OK but "foo" is an error. 40066 # 40067 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40068 # It is also a way to make sure we got the proper file name for the real test later on. 40069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40070 if test "x$test_shortpath" = x; then 40071 # Short path failed, file does not exist as specified. 40072 # Try adding .exe or .cmd 40073 if test -f "${new_path}.exe"; then 40074 input_to_shortpath="${new_path}.exe" 40075 elif test -f "${new_path}.cmd"; then 40076 input_to_shortpath="${new_path}.cmd" 40077 else 40078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40079 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40080 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40081 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40082 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40083 fi 40084 else 40085 input_to_shortpath="$new_path" 40086 fi 40087 40088 # Call helper function which possibly converts this using DOS-style short mode. 40089 # If so, the updated path is stored in $new_path. 40090 new_path="$input_to_shortpath" 40091 40092 input_path="$input_to_shortpath" 40093 # Check if we need to convert this using DOS-style short mode. If the path 40094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40095 # take no chances and rewrite it. 40096 # Note: m4 eats our [], so we need to use [ and ] instead. 40097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40098 if test "x$has_forbidden_chars" != x; then 40099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40103 # Going to short mode and back again did indeed matter. Since short mode is 40104 # case insensitive, let's make it lowercase to improve readability. 40105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40106 # Now convert it back to Unix-stile (cygpath) 40107 input_path=`$CYGPATH -u "$shortmode_path"` 40108 new_path="$input_path" 40109 fi 40110 fi 40111 40112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40113 if test "x$test_cygdrive_prefix" = x; then 40114 # As a simple fix, exclude /usr/bin since it's not a real path. 40115 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40117 # a path prefixed by /cygdrive for fixpath to work. 40118 new_path="$CYGWIN_ROOT_PATH$input_path" 40119 fi 40120 fi 40121 40122 # remove trailing .exe if any 40123 new_path="${new_path/%.exe/}" 40124 40125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40126 40127 # First separate the path from the arguments. This will split at the first 40128 # space. 40129 complete="$BUILD_CXX" 40130 path="${complete%% *}" 40131 tmp="$complete EOL" 40132 arguments="${tmp#* }" 40133 40134 # Input might be given as Windows format, start by converting to 40135 # unix format. 40136 new_path="$path" 40137 40138 windows_path="$new_path" 40139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40140 unix_path=`$CYGPATH -u "$windows_path"` 40141 new_path="$unix_path" 40142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40144 new_path="$unix_path" 40145 fi 40146 40147 40148 # Now try to locate executable using which 40149 new_path=`$WHICH "$new_path" 2> /dev/null` 40150 40151 if test "x$new_path" = x; then 40152 # Oops. Which didn't find the executable. 40153 # The splitting of arguments from the executable at a space might have been incorrect, 40154 # since paths with space are more likely in Windows. Give it another try with the whole 40155 # argument. 40156 path="$complete" 40157 arguments="EOL" 40158 new_path="$path" 40159 40160 windows_path="$new_path" 40161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40162 unix_path=`$CYGPATH -u "$windows_path"` 40163 new_path="$unix_path" 40164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40166 new_path="$unix_path" 40167 fi 40168 40169 40170 new_path=`$WHICH "$new_path" 2> /dev/null` 40171 # bat and cmd files are not always considered executable in MSYS causing which 40172 # to not find them 40173 if test "x$new_path" = x \ 40174 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40175 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40176 new_path="$path" 40177 40178 windows_path="$new_path" 40179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40180 unix_path=`$CYGPATH -u "$windows_path"` 40181 new_path="$unix_path" 40182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40184 new_path="$unix_path" 40185 fi 40186 40187 fi 40188 40189 if test "x$new_path" = x; then 40190 # It's still not found. Now this is an unrecoverable error. 40191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40192 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40193 has_space=`$ECHO "$complete" | $GREP " "` 40194 if test "x$has_space" != x; then 40195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40197 fi 40198 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40199 fi 40200 fi 40201 40202 # Now new_path has a complete unix path to the binary 40203 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40204 # Keep paths in /bin as-is, but remove trailing .exe if any 40205 new_path="${new_path/%.exe/}" 40206 # Do not save /bin paths to all_fixpath_prefixes! 40207 else 40208 # Not in mixed or Windows style, start by that. 40209 new_path=`cmd //c echo $new_path` 40210 40211 input_path="$new_path" 40212 # Check if we need to convert this using DOS-style short mode. If the path 40213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40214 # take no chances and rewrite it. 40215 # Note: m4 eats our [], so we need to use [ and ] instead. 40216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40217 if test "x$has_forbidden_chars" != x; then 40218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40220 fi 40221 40222 # Output is in $new_path 40223 40224 windows_path="$new_path" 40225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40226 unix_path=`$CYGPATH -u "$windows_path"` 40227 new_path="$unix_path" 40228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40229 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40230 new_path="$unix_path" 40231 fi 40232 40233 # remove trailing .exe if any 40234 new_path="${new_path/%.exe/}" 40235 40236 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40237 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40238 fi 40239 40240 else 40241 # We're on a unix platform. Hooray! :) 40242 # First separate the path from the arguments. This will split at the first 40243 # space. 40244 complete="$BUILD_CXX" 40245 path="${complete%% *}" 40246 tmp="$complete EOL" 40247 arguments="${tmp#* }" 40248 40249 # Cannot rely on the command "which" here since it doesn't always work. 40250 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40251 if test -z "$is_absolute_path"; then 40252 # Path to executable is not absolute. Find it. 40253 IFS_save="$IFS" 40254 IFS=: 40255 for p in $PATH; do 40256 if test -f "$p/$path" && test -x "$p/$path"; then 40257 new_path="$p/$path" 40258 break 40259 fi 40260 done 40261 IFS="$IFS_save" 40262 else 40263 # This is an absolute path, we can use it without further modifications. 40264 new_path="$path" 40265 fi 40266 40267 if test "x$new_path" = x; then 40268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40269 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40270 has_space=`$ECHO "$complete" | $GREP " "` 40271 if test "x$has_space" != x; then 40272 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40273 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40274 fi 40275 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40276 fi 40277 fi 40278 40279 # Now join together the path and the arguments once again 40280 if test "x$arguments" != xEOL; then 40281 new_complete="$new_path ${arguments% *}" 40282 else 40283 new_complete="$new_path" 40284 fi 40285 40286 if test "x$complete" != "x$new_complete"; then 40287 BUILD_CXX="$new_complete" 40288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40289 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40290 fi 40291 fi 40292 40293 40294 40295 # Publish this variable in the help. 40296 40297 40298 if test "x$BUILD_LD" = x; then 40299 # The variable is not set by user, try to locate tool using the code snippet 40300 for ac_prog in ld 40301 do 40302 # Extract the first word of "$ac_prog", so it can be a program name with args. 40303 set dummy $ac_prog; ac_word=$2 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40305 $as_echo_n "checking for $ac_word... " >&6; } 40306 if ${ac_cv_path_BUILD_LD+:} false; then : 40307 $as_echo_n "(cached) " >&6 40308 else 40309 case $BUILD_LD in 40310 [\\/]* | ?:[\\/]*) 40311 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40312 ;; 40313 *) 40314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40315 for as_dir in $PATH 40316 do 40317 IFS=$as_save_IFS 40318 test -z "$as_dir" && as_dir=. 40319 for ac_exec_ext in '' $ac_executable_extensions; do 40320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40321 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40323 break 2 40324 fi 40325 done 40326 done 40327 IFS=$as_save_IFS 40328 40329 ;; 40330 esac 40331 fi 40332 BUILD_LD=$ac_cv_path_BUILD_LD 40333 if test -n "$BUILD_LD"; then 40334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40335 $as_echo "$BUILD_LD" >&6; } 40336 else 40337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40338 $as_echo "no" >&6; } 40339 fi 40340 40341 40342 test -n "$BUILD_LD" && break 40343 done 40344 40345 else 40346 # The variable is set, but is it from the command line or the environment? 40347 40348 # Try to remove the string !BUILD_LD! from our list. 40349 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40350 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40351 # If it failed, the variable was not from the command line. Ignore it, 40352 # but warn the user (except for BASH, which is always set by the calling BASH). 40353 if test "xBUILD_LD" != xBASH; then 40354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40355 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40356 fi 40357 # Try to locate tool using the code snippet 40358 for ac_prog in ld 40359 do 40360 # Extract the first word of "$ac_prog", so it can be a program name with args. 40361 set dummy $ac_prog; ac_word=$2 40362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40363 $as_echo_n "checking for $ac_word... " >&6; } 40364 if ${ac_cv_path_BUILD_LD+:} false; then : 40365 $as_echo_n "(cached) " >&6 40366 else 40367 case $BUILD_LD in 40368 [\\/]* | ?:[\\/]*) 40369 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40370 ;; 40371 *) 40372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40373 for as_dir in $PATH 40374 do 40375 IFS=$as_save_IFS 40376 test -z "$as_dir" && as_dir=. 40377 for ac_exec_ext in '' $ac_executable_extensions; do 40378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40379 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40381 break 2 40382 fi 40383 done 40384 done 40385 IFS=$as_save_IFS 40386 40387 ;; 40388 esac 40389 fi 40390 BUILD_LD=$ac_cv_path_BUILD_LD 40391 if test -n "$BUILD_LD"; then 40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40393 $as_echo "$BUILD_LD" >&6; } 40394 else 40395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40396 $as_echo "no" >&6; } 40397 fi 40398 40399 40400 test -n "$BUILD_LD" && break 40401 done 40402 40403 else 40404 # If it succeeded, then it was overridden by the user. We will use it 40405 # for the tool. 40406 40407 # First remove it from the list of overridden variables, so we can test 40408 # for unknown variables in the end. 40409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40410 40411 # Check if the provided tool contains a complete path. 40412 tool_specified="$BUILD_LD" 40413 tool_basename="${tool_specified##*/}" 40414 if test "x$tool_basename" = "x$tool_specified"; then 40415 # A command without a complete path is provided, search $PATH. 40416 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40417 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40418 # Extract the first word of "$tool_basename", so it can be a program name with args. 40419 set dummy $tool_basename; ac_word=$2 40420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40421 $as_echo_n "checking for $ac_word... " >&6; } 40422 if ${ac_cv_path_BUILD_LD+:} false; then : 40423 $as_echo_n "(cached) " >&6 40424 else 40425 case $BUILD_LD in 40426 [\\/]* | ?:[\\/]*) 40427 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40428 ;; 40429 *) 40430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40431 for as_dir in $PATH 40432 do 40433 IFS=$as_save_IFS 40434 test -z "$as_dir" && as_dir=. 40435 for ac_exec_ext in '' $ac_executable_extensions; do 40436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40437 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40439 break 2 40440 fi 40441 done 40442 done 40443 IFS=$as_save_IFS 40444 40445 ;; 40446 esac 40447 fi 40448 BUILD_LD=$ac_cv_path_BUILD_LD 40449 if test -n "$BUILD_LD"; then 40450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40451 $as_echo "$BUILD_LD" >&6; } 40452 else 40453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40454 $as_echo "no" >&6; } 40455 fi 40456 40457 40458 if test "x$BUILD_LD" = x; then 40459 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40460 fi 40461 else 40462 # Otherwise we believe it is a complete path. Use it as it is. 40463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40464 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40466 $as_echo_n "checking for BUILD_LD... " >&6; } 40467 if test ! -x "$tool_specified"; then 40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40469 $as_echo "not found" >&6; } 40470 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40471 fi 40472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40473 $as_echo "$tool_specified" >&6; } 40474 fi 40475 fi 40476 fi 40477 40478 40479 40480 # Only process if variable expands to non-empty 40481 40482 if test "x$BUILD_LD" != x; then 40483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40484 40485 # First separate the path from the arguments. This will split at the first 40486 # space. 40487 complete="$BUILD_LD" 40488 path="${complete%% *}" 40489 tmp="$complete EOL" 40490 arguments="${tmp#* }" 40491 40492 # Input might be given as Windows format, start by converting to 40493 # unix format. 40494 new_path=`$CYGPATH -u "$path"` 40495 40496 # Now try to locate executable using which 40497 new_path=`$WHICH "$new_path" 2> /dev/null` 40498 # bat and cmd files are not always considered executable in cygwin causing which 40499 # to not find them 40500 if test "x$new_path" = x \ 40501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40503 new_path=`$CYGPATH -u "$path"` 40504 fi 40505 if test "x$new_path" = x; then 40506 # Oops. Which didn't find the executable. 40507 # The splitting of arguments from the executable at a space might have been incorrect, 40508 # since paths with space are more likely in Windows. Give it another try with the whole 40509 # argument. 40510 path="$complete" 40511 arguments="EOL" 40512 new_path=`$CYGPATH -u "$path"` 40513 new_path=`$WHICH "$new_path" 2> /dev/null` 40514 # bat and cmd files are not always considered executable in cygwin causing which 40515 # to not find them 40516 if test "x$new_path" = x \ 40517 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40518 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40519 new_path=`$CYGPATH -u "$path"` 40520 fi 40521 if test "x$new_path" = x; then 40522 # It's still not found. Now this is an unrecoverable error. 40523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40524 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40525 has_space=`$ECHO "$complete" | $GREP " "` 40526 if test "x$has_space" != x; then 40527 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40528 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40529 fi 40530 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40531 fi 40532 fi 40533 40534 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40535 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40536 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40537 # "foo.exe" is OK but "foo" is an error. 40538 # 40539 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40540 # It is also a way to make sure we got the proper file name for the real test later on. 40541 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40542 if test "x$test_shortpath" = x; then 40543 # Short path failed, file does not exist as specified. 40544 # Try adding .exe or .cmd 40545 if test -f "${new_path}.exe"; then 40546 input_to_shortpath="${new_path}.exe" 40547 elif test -f "${new_path}.cmd"; then 40548 input_to_shortpath="${new_path}.cmd" 40549 else 40550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40551 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40552 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40553 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40554 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40555 fi 40556 else 40557 input_to_shortpath="$new_path" 40558 fi 40559 40560 # Call helper function which possibly converts this using DOS-style short mode. 40561 # If so, the updated path is stored in $new_path. 40562 new_path="$input_to_shortpath" 40563 40564 input_path="$input_to_shortpath" 40565 # Check if we need to convert this using DOS-style short mode. If the path 40566 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40567 # take no chances and rewrite it. 40568 # Note: m4 eats our [], so we need to use [ and ] instead. 40569 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40570 if test "x$has_forbidden_chars" != x; then 40571 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40572 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40573 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40574 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40575 # Going to short mode and back again did indeed matter. Since short mode is 40576 # case insensitive, let's make it lowercase to improve readability. 40577 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40578 # Now convert it back to Unix-stile (cygpath) 40579 input_path=`$CYGPATH -u "$shortmode_path"` 40580 new_path="$input_path" 40581 fi 40582 fi 40583 40584 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40585 if test "x$test_cygdrive_prefix" = x; then 40586 # As a simple fix, exclude /usr/bin since it's not a real path. 40587 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40588 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40589 # a path prefixed by /cygdrive for fixpath to work. 40590 new_path="$CYGWIN_ROOT_PATH$input_path" 40591 fi 40592 fi 40593 40594 # remove trailing .exe if any 40595 new_path="${new_path/%.exe/}" 40596 40597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40598 40599 # First separate the path from the arguments. This will split at the first 40600 # space. 40601 complete="$BUILD_LD" 40602 path="${complete%% *}" 40603 tmp="$complete EOL" 40604 arguments="${tmp#* }" 40605 40606 # Input might be given as Windows format, start by converting to 40607 # unix format. 40608 new_path="$path" 40609 40610 windows_path="$new_path" 40611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40612 unix_path=`$CYGPATH -u "$windows_path"` 40613 new_path="$unix_path" 40614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40616 new_path="$unix_path" 40617 fi 40618 40619 40620 # Now try to locate executable using which 40621 new_path=`$WHICH "$new_path" 2> /dev/null` 40622 40623 if test "x$new_path" = x; then 40624 # Oops. Which didn't find the executable. 40625 # The splitting of arguments from the executable at a space might have been incorrect, 40626 # since paths with space are more likely in Windows. Give it another try with the whole 40627 # argument. 40628 path="$complete" 40629 arguments="EOL" 40630 new_path="$path" 40631 40632 windows_path="$new_path" 40633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40634 unix_path=`$CYGPATH -u "$windows_path"` 40635 new_path="$unix_path" 40636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40638 new_path="$unix_path" 40639 fi 40640 40641 40642 new_path=`$WHICH "$new_path" 2> /dev/null` 40643 # bat and cmd files are not always considered executable in MSYS causing which 40644 # to not find them 40645 if test "x$new_path" = x \ 40646 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40648 new_path="$path" 40649 40650 windows_path="$new_path" 40651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40652 unix_path=`$CYGPATH -u "$windows_path"` 40653 new_path="$unix_path" 40654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40656 new_path="$unix_path" 40657 fi 40658 40659 fi 40660 40661 if test "x$new_path" = x; then 40662 # It's still not found. Now this is an unrecoverable error. 40663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40664 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40665 has_space=`$ECHO "$complete" | $GREP " "` 40666 if test "x$has_space" != x; then 40667 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40668 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40669 fi 40670 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40671 fi 40672 fi 40673 40674 # Now new_path has a complete unix path to the binary 40675 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40676 # Keep paths in /bin as-is, but remove trailing .exe if any 40677 new_path="${new_path/%.exe/}" 40678 # Do not save /bin paths to all_fixpath_prefixes! 40679 else 40680 # Not in mixed or Windows style, start by that. 40681 new_path=`cmd //c echo $new_path` 40682 40683 input_path="$new_path" 40684 # Check if we need to convert this using DOS-style short mode. If the path 40685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40686 # take no chances and rewrite it. 40687 # Note: m4 eats our [], so we need to use [ and ] instead. 40688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40689 if test "x$has_forbidden_chars" != x; then 40690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40691 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40692 fi 40693 40694 # Output is in $new_path 40695 40696 windows_path="$new_path" 40697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40698 unix_path=`$CYGPATH -u "$windows_path"` 40699 new_path="$unix_path" 40700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40702 new_path="$unix_path" 40703 fi 40704 40705 # remove trailing .exe if any 40706 new_path="${new_path/%.exe/}" 40707 40708 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40709 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40710 fi 40711 40712 else 40713 # We're on a unix platform. Hooray! :) 40714 # First separate the path from the arguments. This will split at the first 40715 # space. 40716 complete="$BUILD_LD" 40717 path="${complete%% *}" 40718 tmp="$complete EOL" 40719 arguments="${tmp#* }" 40720 40721 # Cannot rely on the command "which" here since it doesn't always work. 40722 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40723 if test -z "$is_absolute_path"; then 40724 # Path to executable is not absolute. Find it. 40725 IFS_save="$IFS" 40726 IFS=: 40727 for p in $PATH; do 40728 if test -f "$p/$path" && test -x "$p/$path"; then 40729 new_path="$p/$path" 40730 break 40731 fi 40732 done 40733 IFS="$IFS_save" 40734 else 40735 # This is an absolute path, we can use it without further modifications. 40736 new_path="$path" 40737 fi 40738 40739 if test "x$new_path" = x; then 40740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40741 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40742 has_space=`$ECHO "$complete" | $GREP " "` 40743 if test "x$has_space" != x; then 40744 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40745 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40746 fi 40747 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40748 fi 40749 fi 40750 40751 # Now join together the path and the arguments once again 40752 if test "x$arguments" != xEOL; then 40753 new_complete="$new_path ${arguments% *}" 40754 else 40755 new_complete="$new_path" 40756 fi 40757 40758 if test "x$complete" != "x$new_complete"; then 40759 BUILD_LD="$new_complete" 40760 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40761 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40762 fi 40763 fi 40764 40765 else 40766 # If we are not cross compiling, use the normal target compilers for 40767 # building the build platform executables. 40768 BUILD_CC="$CC" 40769 BUILD_CXX="$CXX" 40770 BUILD_LD="$LD" 40771 fi 40772 40773 40774 40775 40776 40777 40778 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40779 # For hotspot, we need these in Windows mixed path, 40780 # so rewrite them all. Need added .exe suffix. 40781 HOTSPOT_CXX="$CXX.exe" 40782 HOTSPOT_LD="$LD.exe" 40783 HOTSPOT_MT="$MT.exe" 40784 HOTSPOT_RC="$RC.exe" 40785 40786 unix_path="$HOTSPOT_CXX" 40787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40788 windows_path=`$CYGPATH -m "$unix_path"` 40789 HOTSPOT_CXX="$windows_path" 40790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40791 windows_path=`cmd //c echo $unix_path` 40792 HOTSPOT_CXX="$windows_path" 40793 fi 40794 40795 40796 unix_path="$HOTSPOT_LD" 40797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40798 windows_path=`$CYGPATH -m "$unix_path"` 40799 HOTSPOT_LD="$windows_path" 40800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40801 windows_path=`cmd //c echo $unix_path` 40802 HOTSPOT_LD="$windows_path" 40803 fi 40804 40805 40806 unix_path="$HOTSPOT_MT" 40807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40808 windows_path=`$CYGPATH -m "$unix_path"` 40809 HOTSPOT_MT="$windows_path" 40810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40811 windows_path=`cmd //c echo $unix_path` 40812 HOTSPOT_MT="$windows_path" 40813 fi 40814 40815 40816 unix_path="$HOTSPOT_RC" 40817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40818 windows_path=`$CYGPATH -m "$unix_path"` 40819 HOTSPOT_RC="$windows_path" 40820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40821 windows_path=`cmd //c echo $unix_path` 40822 HOTSPOT_RC="$windows_path" 40823 fi 40824 40825 40826 40827 else 40828 HOTSPOT_CXX="$CXX" 40829 HOTSPOT_LD="$LD" 40830 fi 40831 40832 40833 40834 if test "x$TOOLCHAIN_TYPE" = xclang; then 40835 USE_CLANG=true 40836 fi 40837 40838 40839 40840 40841 40842 # The package path is used only on macosx? 40843 # FIXME: clean this up, and/or move it elsewhere. 40844 PACKAGE_PATH=/opt/local 40845 40846 40847 # Check for extra potential brokenness. 40848 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40849 # On Windows, double-check that we got the right compiler. 40850 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40851 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40852 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40853 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40854 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 40855 fi 40856 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40857 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40858 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40859 fi 40860 fi 40861 fi 40862 40863 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40864 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40865 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40866 # This is later checked when setting flags. 40867 40868 # "-Og" suppported for GCC 4.8 and later 40869 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40870 40871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40872 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40873 supports=yes 40874 40875 saved_cflags="$CFLAGS" 40876 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40877 ac_ext=c 40878 ac_cpp='$CPP $CPPFLAGS' 40879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40881 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40882 40883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40884 /* end confdefs.h. */ 40885 int i; 40886 _ACEOF 40887 if ac_fn_c_try_compile "$LINENO"; then : 40888 40889 else 40890 supports=no 40891 fi 40892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40893 ac_ext=cpp 40894 ac_cpp='$CXXCPP $CPPFLAGS' 40895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40898 40899 CFLAGS="$saved_cflags" 40900 40901 saved_cxxflags="$CXXFLAGS" 40902 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40903 ac_ext=cpp 40904 ac_cpp='$CXXCPP $CPPFLAGS' 40905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40908 40909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40910 /* end confdefs.h. */ 40911 int i; 40912 _ACEOF 40913 if ac_fn_cxx_try_compile "$LINENO"; then : 40914 40915 else 40916 supports=no 40917 fi 40918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40919 ac_ext=cpp 40920 ac_cpp='$CXXCPP $CPPFLAGS' 40921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40924 40925 CXXFLAGS="$saved_cxxflags" 40926 40927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40928 $as_echo "$supports" >&6; } 40929 if test "x$supports" = "xyes" ; then 40930 HAS_CFLAG_OPTIMIZE_DEBUG=true 40931 else 40932 HAS_CFLAG_OPTIMIZE_DEBUG=false 40933 fi 40934 40935 40936 # "-z relro" supported in GNU binutils 2.17 and later 40937 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 40938 40939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 40940 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 40941 supports=yes 40942 40943 saved_ldflags="$LDFLAGS" 40944 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 40945 ac_ext=c 40946 ac_cpp='$CPP $CPPFLAGS' 40947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40949 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40950 40951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40952 /* end confdefs.h. */ 40953 40954 int 40955 main () 40956 { 40957 40958 ; 40959 return 0; 40960 } 40961 _ACEOF 40962 if ac_fn_c_try_link "$LINENO"; then : 40963 40964 else 40965 supports=no 40966 fi 40967 rm -f core conftest.err conftest.$ac_objext \ 40968 conftest$ac_exeext conftest.$ac_ext 40969 ac_ext=cpp 40970 ac_cpp='$CXXCPP $CPPFLAGS' 40971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40974 40975 LDFLAGS="$saved_ldflags" 40976 40977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40978 $as_echo "$supports" >&6; } 40979 if test "x$supports" = "xyes" ; then 40980 HAS_LINKER_RELRO=true 40981 else 40982 HAS_LINKER_RELRO=false 40983 fi 40984 40985 40986 # "-z now" supported in GNU binutils 2.11 and later 40987 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 40988 40989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 40990 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 40991 supports=yes 40992 40993 saved_ldflags="$LDFLAGS" 40994 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 40995 ac_ext=c 40996 ac_cpp='$CPP $CPPFLAGS' 40997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40999 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41000 41001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41002 /* end confdefs.h. */ 41003 41004 int 41005 main () 41006 { 41007 41008 ; 41009 return 0; 41010 } 41011 _ACEOF 41012 if ac_fn_c_try_link "$LINENO"; then : 41013 41014 else 41015 supports=no 41016 fi 41017 rm -f core conftest.err conftest.$ac_objext \ 41018 conftest$ac_exeext conftest.$ac_ext 41019 ac_ext=cpp 41020 ac_cpp='$CXXCPP $CPPFLAGS' 41021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41024 41025 LDFLAGS="$saved_ldflags" 41026 41027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41028 $as_echo "$supports" >&6; } 41029 if test "x$supports" = "xyes" ; then 41030 HAS_LINKER_NOW=true 41031 else 41032 HAS_LINKER_NOW=false 41033 fi 41034 41035 fi 41036 41037 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41038 # in executable.' 41039 USING_BROKEN_SUSE_LD=no 41040 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41042 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41043 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41044 $ECHO "int main() { }" > main.c 41045 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41047 $as_echo "no" >&6; } 41048 USING_BROKEN_SUSE_LD=no 41049 else 41050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41051 $as_echo "yes" >&6; } 41052 USING_BROKEN_SUSE_LD=yes 41053 fi 41054 rm -rf version-script.map main.c a.out 41055 fi 41056 41057 41058 41059 # Setup the JTReg Regression Test Harness. 41060 41061 41062 # Check whether --with-jtreg was given. 41063 if test "${with_jtreg+set}" = set; then : 41064 withval=$with_jtreg; 41065 else 41066 with_jtreg=no 41067 fi 41068 41069 41070 if test "x$with_jtreg" = xno; then 41071 # jtreg disabled 41072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41073 $as_echo_n "checking for jtreg... " >&6; } 41074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41075 $as_echo "no" >&6; } 41076 else 41077 if test "x$with_jtreg" != xyes; then 41078 # with path specified. 41079 JT_HOME="$with_jtreg" 41080 fi 41081 41082 if test "x$JT_HOME" != x; then 41083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41084 $as_echo_n "checking for jtreg... " >&6; } 41085 41086 # use JT_HOME enviroment var. 41087 41088 # Only process if variable expands to non-empty 41089 41090 if test "x$JT_HOME" != x; then 41091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41092 41093 # Input might be given as Windows format, start by converting to 41094 # unix format. 41095 path="$JT_HOME" 41096 new_path=`$CYGPATH -u "$path"` 41097 41098 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41099 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41100 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41101 # "foo.exe" is OK but "foo" is an error. 41102 # 41103 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41104 # It is also a way to make sure we got the proper file name for the real test later on. 41105 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41106 if test "x$test_shortpath" = x; then 41107 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41108 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41109 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41110 fi 41111 41112 # Call helper function which possibly converts this using DOS-style short mode. 41113 # If so, the updated path is stored in $new_path. 41114 41115 input_path="$new_path" 41116 # Check if we need to convert this using DOS-style short mode. If the path 41117 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41118 # take no chances and rewrite it. 41119 # Note: m4 eats our [], so we need to use [ and ] instead. 41120 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41121 if test "x$has_forbidden_chars" != x; then 41122 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41123 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41124 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41125 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41126 # Going to short mode and back again did indeed matter. Since short mode is 41127 # case insensitive, let's make it lowercase to improve readability. 41128 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41129 # Now convert it back to Unix-stile (cygpath) 41130 input_path=`$CYGPATH -u "$shortmode_path"` 41131 new_path="$input_path" 41132 fi 41133 fi 41134 41135 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41136 if test "x$test_cygdrive_prefix" = x; then 41137 # As a simple fix, exclude /usr/bin since it's not a real path. 41138 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41139 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41140 # a path prefixed by /cygdrive for fixpath to work. 41141 new_path="$CYGWIN_ROOT_PATH$input_path" 41142 fi 41143 fi 41144 41145 41146 if test "x$path" != "x$new_path"; then 41147 JT_HOME="$new_path" 41148 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41149 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41150 fi 41151 41152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41153 41154 path="$JT_HOME" 41155 has_colon=`$ECHO $path | $GREP ^.:` 41156 new_path="$path" 41157 if test "x$has_colon" = x; then 41158 # Not in mixed or Windows style, start by that. 41159 new_path=`cmd //c echo $path` 41160 fi 41161 41162 41163 input_path="$new_path" 41164 # Check if we need to convert this using DOS-style short mode. If the path 41165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41166 # take no chances and rewrite it. 41167 # Note: m4 eats our [], so we need to use [ and ] instead. 41168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41169 if test "x$has_forbidden_chars" != x; then 41170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41171 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41172 fi 41173 41174 41175 windows_path="$new_path" 41176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41177 unix_path=`$CYGPATH -u "$windows_path"` 41178 new_path="$unix_path" 41179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41180 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41181 new_path="$unix_path" 41182 fi 41183 41184 if test "x$path" != "x$new_path"; then 41185 JT_HOME="$new_path" 41186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41187 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41188 fi 41189 41190 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41191 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41192 41193 else 41194 # We're on a unix platform. Hooray! :) 41195 path="$JT_HOME" 41196 has_space=`$ECHO "$path" | $GREP " "` 41197 if test "x$has_space" != x; then 41198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41199 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41200 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41201 fi 41202 41203 # Use eval to expand a potential ~ 41204 eval path="$path" 41205 if test ! -f "$path" && test ! -d "$path"; then 41206 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41207 fi 41208 41209 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41210 fi 41211 fi 41212 41213 41214 # jtreg win32 script works for everybody 41215 JTREGEXE="$JT_HOME/bin/jtreg" 41216 41217 if test ! -f "$JTREGEXE"; then 41218 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41219 fi 41220 41221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41222 $as_echo "$JTREGEXE" >&6; } 41223 else 41224 # try to find jtreg on path 41225 41226 41227 41228 # Publish this variable in the help. 41229 41230 41231 if test "x$JTREGEXE" = x; then 41232 # The variable is not set by user, try to locate tool using the code snippet 41233 for ac_prog in jtreg 41234 do 41235 # Extract the first word of "$ac_prog", so it can be a program name with args. 41236 set dummy $ac_prog; ac_word=$2 41237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41238 $as_echo_n "checking for $ac_word... " >&6; } 41239 if ${ac_cv_path_JTREGEXE+:} false; then : 41240 $as_echo_n "(cached) " >&6 41241 else 41242 case $JTREGEXE in 41243 [\\/]* | ?:[\\/]*) 41244 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41245 ;; 41246 *) 41247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41248 for as_dir in $PATH 41249 do 41250 IFS=$as_save_IFS 41251 test -z "$as_dir" && as_dir=. 41252 for ac_exec_ext in '' $ac_executable_extensions; do 41253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41254 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41256 break 2 41257 fi 41258 done 41259 done 41260 IFS=$as_save_IFS 41261 41262 ;; 41263 esac 41264 fi 41265 JTREGEXE=$ac_cv_path_JTREGEXE 41266 if test -n "$JTREGEXE"; then 41267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41268 $as_echo "$JTREGEXE" >&6; } 41269 else 41270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41271 $as_echo "no" >&6; } 41272 fi 41273 41274 41275 test -n "$JTREGEXE" && break 41276 done 41277 41278 else 41279 # The variable is set, but is it from the command line or the environment? 41280 41281 # Try to remove the string !JTREGEXE! from our list. 41282 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41283 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41284 # If it failed, the variable was not from the command line. Ignore it, 41285 # but warn the user (except for BASH, which is always set by the calling BASH). 41286 if test "xJTREGEXE" != xBASH; then 41287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41288 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41289 fi 41290 # Try to locate tool using the code snippet 41291 for ac_prog in jtreg 41292 do 41293 # Extract the first word of "$ac_prog", so it can be a program name with args. 41294 set dummy $ac_prog; ac_word=$2 41295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41296 $as_echo_n "checking for $ac_word... " >&6; } 41297 if ${ac_cv_path_JTREGEXE+:} false; then : 41298 $as_echo_n "(cached) " >&6 41299 else 41300 case $JTREGEXE in 41301 [\\/]* | ?:[\\/]*) 41302 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41303 ;; 41304 *) 41305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41306 for as_dir in $PATH 41307 do 41308 IFS=$as_save_IFS 41309 test -z "$as_dir" && as_dir=. 41310 for ac_exec_ext in '' $ac_executable_extensions; do 41311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41312 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41314 break 2 41315 fi 41316 done 41317 done 41318 IFS=$as_save_IFS 41319 41320 ;; 41321 esac 41322 fi 41323 JTREGEXE=$ac_cv_path_JTREGEXE 41324 if test -n "$JTREGEXE"; then 41325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41326 $as_echo "$JTREGEXE" >&6; } 41327 else 41328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41329 $as_echo "no" >&6; } 41330 fi 41331 41332 41333 test -n "$JTREGEXE" && break 41334 done 41335 41336 else 41337 # If it succeeded, then it was overridden by the user. We will use it 41338 # for the tool. 41339 41340 # First remove it from the list of overridden variables, so we can test 41341 # for unknown variables in the end. 41342 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41343 41344 # Check if the provided tool contains a complete path. 41345 tool_specified="$JTREGEXE" 41346 tool_basename="${tool_specified##*/}" 41347 if test "x$tool_basename" = "x$tool_specified"; then 41348 # A command without a complete path is provided, search $PATH. 41349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41350 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41351 # Extract the first word of "$tool_basename", so it can be a program name with args. 41352 set dummy $tool_basename; ac_word=$2 41353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41354 $as_echo_n "checking for $ac_word... " >&6; } 41355 if ${ac_cv_path_JTREGEXE+:} false; then : 41356 $as_echo_n "(cached) " >&6 41357 else 41358 case $JTREGEXE in 41359 [\\/]* | ?:[\\/]*) 41360 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41361 ;; 41362 *) 41363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41364 for as_dir in $PATH 41365 do 41366 IFS=$as_save_IFS 41367 test -z "$as_dir" && as_dir=. 41368 for ac_exec_ext in '' $ac_executable_extensions; do 41369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41370 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41372 break 2 41373 fi 41374 done 41375 done 41376 IFS=$as_save_IFS 41377 41378 ;; 41379 esac 41380 fi 41381 JTREGEXE=$ac_cv_path_JTREGEXE 41382 if test -n "$JTREGEXE"; then 41383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41384 $as_echo "$JTREGEXE" >&6; } 41385 else 41386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41387 $as_echo "no" >&6; } 41388 fi 41389 41390 41391 if test "x$JTREGEXE" = x; then 41392 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41393 fi 41394 else 41395 # Otherwise we believe it is a complete path. Use it as it is. 41396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41397 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41399 $as_echo_n "checking for JTREGEXE... " >&6; } 41400 if test ! -x "$tool_specified"; then 41401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41402 $as_echo "not found" >&6; } 41403 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41404 fi 41405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41406 $as_echo "$tool_specified" >&6; } 41407 fi 41408 fi 41409 fi 41410 41411 41412 41413 if test "x$JTREGEXE" = x; then 41414 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41415 fi 41416 41417 41418 JT_HOME="`$DIRNAME $JTREGEXE`" 41419 fi 41420 fi 41421 41422 41423 41424 41425 41426 41427 # Option used to tell the compiler whether to create 32- or 64-bit executables 41428 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41429 COMPILER_TARGET_BITS_FLAG="-q" 41430 else 41431 COMPILER_TARGET_BITS_FLAG="-m" 41432 fi 41433 41434 41435 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41436 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41437 ARFLAGS="-r" 41438 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41439 ARFLAGS="-X64" 41440 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41441 # lib.exe is used as AR to create static libraries. 41442 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41443 else 41444 ARFLAGS="" 41445 fi 41446 41447 41448 ## Setup strip. 41449 # FIXME: should this really be per platform, or should it be per toolchain type? 41450 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41451 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41452 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41453 STRIPFLAGS="-g" 41454 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41455 STRIPFLAGS="-x" 41456 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41457 STRIPFLAGS="-S" 41458 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41459 STRIPFLAGS="-X32_64" 41460 fi 41461 41462 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41463 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41464 fi 41465 41466 41467 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41468 # FIXME: break out into MCSFLAGS 41469 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41470 fi 41471 41472 41473 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41474 CC_OUT_OPTION=-Fo 41475 EXE_OUT_OPTION=-out: 41476 LD_OUT_OPTION=-out: 41477 AR_OUT_OPTION=-out: 41478 else 41479 # The option used to specify the target .o,.a or .so file. 41480 # When compiling, how to specify the to be created object file. 41481 CC_OUT_OPTION='-o$(SPACE)' 41482 # When linking, how to specify the to be created executable. 41483 EXE_OUT_OPTION='-o$(SPACE)' 41484 # When linking, how to specify the to be created dynamically linkable library. 41485 LD_OUT_OPTION='-o$(SPACE)' 41486 # When archiving, how to specify the to be create static archive for object files. 41487 AR_OUT_OPTION='rcs$(SPACE)' 41488 fi 41489 41490 41491 41492 41493 41494 # On Windows, we need to set RC flags. 41495 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41496 RC_FLAGS="-nologo -l0x409" 41497 if test "x$VARIANT" = xOPT; then 41498 RC_FLAGS="$RC_FLAGS -DNDEBUG" 41499 fi 41500 41501 # The version variables used to create RC_FLAGS may be overridden 41502 # in a custom configure script, or possibly the command line. 41503 # Let those variables be expanded at make time in spec.gmk. 41504 # The \$ are escaped to the shell, and the $(...) variables 41505 # are evaluated by make. 41506 RC_FLAGS="$RC_FLAGS \ 41507 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41508 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41509 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41510 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41511 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41512 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41513 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41514 fi 41515 41516 41517 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41518 # silence copyright notice and other headers. 41519 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41520 fi 41521 41522 if test "x$SYSROOT" != "x"; then 41523 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41524 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41525 # Solaris Studio does not have a concept of sysroot. Instead we must 41526 # make sure the default include and lib dirs are appended to each 41527 # compile and link command line. 41528 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41529 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41530 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41531 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41532 fi 41533 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41534 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41535 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41536 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41537 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41538 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41539 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41540 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41541 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41542 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41543 fi 41544 # Propagate the sysroot args to hotspot 41545 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41546 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41547 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41548 fi 41549 41550 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41551 # set this here so it doesn't have to be peppered throughout the forest 41552 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41553 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41554 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41555 fi 41556 41557 41558 41559 41560 41561 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41562 41563 # Now we can test some aspects on the target using configure macros. 41564 41565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41566 $as_echo_n "checking for ANSI C header files... " >&6; } 41567 if ${ac_cv_header_stdc+:} false; then : 41568 $as_echo_n "(cached) " >&6 41569 else 41570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41571 /* end confdefs.h. */ 41572 #include <stdlib.h> 41573 #include <stdarg.h> 41574 #include <string.h> 41575 #include <float.h> 41576 41577 int 41578 main () 41579 { 41580 41581 ; 41582 return 0; 41583 } 41584 _ACEOF 41585 if ac_fn_cxx_try_compile "$LINENO"; then : 41586 ac_cv_header_stdc=yes 41587 else 41588 ac_cv_header_stdc=no 41589 fi 41590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41591 41592 if test $ac_cv_header_stdc = yes; then 41593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41595 /* end confdefs.h. */ 41596 #include <string.h> 41597 41598 _ACEOF 41599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41600 $EGREP "memchr" >/dev/null 2>&1; then : 41601 41602 else 41603 ac_cv_header_stdc=no 41604 fi 41605 rm -f conftest* 41606 41607 fi 41608 41609 if test $ac_cv_header_stdc = yes; then 41610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41612 /* end confdefs.h. */ 41613 #include <stdlib.h> 41614 41615 _ACEOF 41616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41617 $EGREP "free" >/dev/null 2>&1; then : 41618 41619 else 41620 ac_cv_header_stdc=no 41621 fi 41622 rm -f conftest* 41623 41624 fi 41625 41626 if test $ac_cv_header_stdc = yes; then 41627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41628 if test "$cross_compiling" = yes; then : 41629 : 41630 else 41631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41632 /* end confdefs.h. */ 41633 #include <ctype.h> 41634 #include <stdlib.h> 41635 #if ((' ' & 0x0FF) == 0x020) 41636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41638 #else 41639 # define ISLOWER(c) \ 41640 (('a' <= (c) && (c) <= 'i') \ 41641 || ('j' <= (c) && (c) <= 'r') \ 41642 || ('s' <= (c) && (c) <= 'z')) 41643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41644 #endif 41645 41646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41647 int 41648 main () 41649 { 41650 int i; 41651 for (i = 0; i < 256; i++) 41652 if (XOR (islower (i), ISLOWER (i)) 41653 || toupper (i) != TOUPPER (i)) 41654 return 2; 41655 return 0; 41656 } 41657 _ACEOF 41658 if ac_fn_cxx_try_run "$LINENO"; then : 41659 41660 else 41661 ac_cv_header_stdc=no 41662 fi 41663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41664 conftest.$ac_objext conftest.beam conftest.$ac_ext 41665 fi 41666 41667 fi 41668 fi 41669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41670 $as_echo "$ac_cv_header_stdc" >&6; } 41671 if test $ac_cv_header_stdc = yes; then 41672 41673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41674 41675 fi 41676 41677 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41679 inttypes.h stdint.h unistd.h 41680 do : 41681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41682 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41683 " 41684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41685 cat >>confdefs.h <<_ACEOF 41686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41687 _ACEOF 41688 41689 fi 41690 41691 done 41692 41693 41694 41695 ############################################################################### 41696 # 41697 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41698 # (The JVM can use 32 or 64 bit Java pointers but that decision 41699 # is made at runtime.) 41700 # 41701 41702 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41703 # Always specify -m flag on Solaris 41704 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41705 41706 # When we add flags to the "official" CFLAGS etc, we need to 41707 # keep track of these additions in ADDED_CFLAGS etc. These 41708 # will later be checked to make sure only controlled additions 41709 # have been made to CFLAGS etc. 41710 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41711 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41712 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41713 41714 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41715 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41716 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41717 41718 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41719 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41720 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41721 41722 elif test "x$COMPILE_TYPE" = xreduced; then 41723 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 41724 # Specify -m if running reduced on unix platforms 41725 41726 # When we add flags to the "official" CFLAGS etc, we need to 41727 # keep track of these additions in ADDED_CFLAGS etc. These 41728 # will later be checked to make sure only controlled additions 41729 # have been made to CFLAGS etc. 41730 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41731 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41732 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41733 41734 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41735 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41736 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41737 41738 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41739 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41740 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41741 41742 fi 41743 fi 41744 41745 # Make compilation sanity check 41746 for ac_header in stdio.h 41747 do : 41748 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41749 if test "x$ac_cv_header_stdio_h" = xyes; then : 41750 cat >>confdefs.h <<_ACEOF 41751 #define HAVE_STDIO_H 1 41752 _ACEOF 41753 41754 else 41755 41756 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41757 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41758 if test "x$COMPILE_TYPE" = xreduced; then 41759 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41760 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41761 elif test "x$COMPILE_TYPE" = xcross; then 41762 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41763 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41764 fi 41765 as_fn_error $? "Cannot continue." "$LINENO" 5 41766 41767 fi 41768 41769 done 41770 41771 41772 # The cast to long int works around a bug in the HP C Compiler 41773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41775 # This bug is HP SR number 8606223364. 41776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41777 $as_echo_n "checking size of int *... " >&6; } 41778 if ${ac_cv_sizeof_int_p+:} false; then : 41779 $as_echo_n "(cached) " >&6 41780 else 41781 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41782 41783 else 41784 if test "$ac_cv_type_int_p" = yes; then 41785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41787 as_fn_error 77 "cannot compute sizeof (int *) 41788 See \`config.log' for more details" "$LINENO" 5; } 41789 else 41790 ac_cv_sizeof_int_p=0 41791 fi 41792 fi 41793 41794 fi 41795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41796 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41797 41798 41799 41800 cat >>confdefs.h <<_ACEOF 41801 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41802 _ACEOF 41803 41804 41805 41806 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41807 if test "x$ac_cv_sizeof_int_p" = x; then 41808 # The test failed, lets stick to the assumed value. 41809 { $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 41810 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41811 else 41812 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41813 41814 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41815 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41816 # Let's try to implicitely set the compilers target architecture and retry the test 41817 { $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 41818 $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;} 41819 { $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 41820 $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;} 41821 41822 # When we add flags to the "official" CFLAGS etc, we need to 41823 # keep track of these additions in ADDED_CFLAGS etc. These 41824 # will later be checked to make sure only controlled additions 41825 # have been made to CFLAGS etc. 41826 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41827 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41828 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41829 41830 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41831 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41832 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41833 41834 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41835 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41836 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41837 41838 41839 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41840 unset ac_cv_sizeof_int_p 41841 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41842 cat >>confdefs.h <<_ACEOF 41843 #undef SIZEOF_INT_P 41844 _ACEOF 41845 41846 # The cast to long int works around a bug in the HP C Compiler 41847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41849 # This bug is HP SR number 8606223364. 41850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41851 $as_echo_n "checking size of int *... " >&6; } 41852 if ${ac_cv_sizeof_int_p+:} false; then : 41853 $as_echo_n "(cached) " >&6 41854 else 41855 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41856 41857 else 41858 if test "$ac_cv_type_int_p" = yes; then 41859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41861 as_fn_error 77 "cannot compute sizeof (int *) 41862 See \`config.log' for more details" "$LINENO" 5; } 41863 else 41864 ac_cv_sizeof_int_p=0 41865 fi 41866 fi 41867 41868 fi 41869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41870 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41871 41872 41873 41874 cat >>confdefs.h <<_ACEOF 41875 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41876 _ACEOF 41877 41878 41879 41880 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41881 41882 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41883 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 41884 fi 41885 fi 41886 fi 41887 41888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41889 $as_echo_n "checking for target address size... " >&6; } 41890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41891 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41892 41893 41894 ############################################################################### 41895 # 41896 # Is the target little of big endian? 41897 # 41898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41899 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41900 if ${ac_cv_c_bigendian+:} false; then : 41901 $as_echo_n "(cached) " >&6 41902 else 41903 ac_cv_c_bigendian=unknown 41904 # See if we're dealing with a universal compiler. 41905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41906 /* end confdefs.h. */ 41907 #ifndef __APPLE_CC__ 41908 not a universal capable compiler 41909 #endif 41910 typedef int dummy; 41911 41912 _ACEOF 41913 if ac_fn_cxx_try_compile "$LINENO"; then : 41914 41915 # Check for potential -arch flags. It is not universal unless 41916 # there are at least two -arch flags with different values. 41917 ac_arch= 41918 ac_prev= 41919 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41920 if test -n "$ac_prev"; then 41921 case $ac_word in 41922 i?86 | x86_64 | ppc | ppc64) 41923 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41924 ac_arch=$ac_word 41925 else 41926 ac_cv_c_bigendian=universal 41927 break 41928 fi 41929 ;; 41930 esac 41931 ac_prev= 41932 elif test "x$ac_word" = "x-arch"; then 41933 ac_prev=arch 41934 fi 41935 done 41936 fi 41937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41938 if test $ac_cv_c_bigendian = unknown; then 41939 # See if sys/param.h defines the BYTE_ORDER macro. 41940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41941 /* end confdefs.h. */ 41942 #include <sys/types.h> 41943 #include <sys/param.h> 41944 41945 int 41946 main () 41947 { 41948 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41949 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41950 && LITTLE_ENDIAN) 41951 bogus endian macros 41952 #endif 41953 41954 ; 41955 return 0; 41956 } 41957 _ACEOF 41958 if ac_fn_cxx_try_compile "$LINENO"; then : 41959 # It does; now see whether it defined to BIG_ENDIAN or not. 41960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41961 /* end confdefs.h. */ 41962 #include <sys/types.h> 41963 #include <sys/param.h> 41964 41965 int 41966 main () 41967 { 41968 #if BYTE_ORDER != BIG_ENDIAN 41969 not big endian 41970 #endif 41971 41972 ; 41973 return 0; 41974 } 41975 _ACEOF 41976 if ac_fn_cxx_try_compile "$LINENO"; then : 41977 ac_cv_c_bigendian=yes 41978 else 41979 ac_cv_c_bigendian=no 41980 fi 41981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41982 fi 41983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41984 fi 41985 if test $ac_cv_c_bigendian = unknown; then 41986 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41988 /* end confdefs.h. */ 41989 #include <limits.h> 41990 41991 int 41992 main () 41993 { 41994 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41995 bogus endian macros 41996 #endif 41997 41998 ; 41999 return 0; 42000 } 42001 _ACEOF 42002 if ac_fn_cxx_try_compile "$LINENO"; then : 42003 # It does; now see whether it defined to _BIG_ENDIAN or not. 42004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42005 /* end confdefs.h. */ 42006 #include <limits.h> 42007 42008 int 42009 main () 42010 { 42011 #ifndef _BIG_ENDIAN 42012 not big endian 42013 #endif 42014 42015 ; 42016 return 0; 42017 } 42018 _ACEOF 42019 if ac_fn_cxx_try_compile "$LINENO"; then : 42020 ac_cv_c_bigendian=yes 42021 else 42022 ac_cv_c_bigendian=no 42023 fi 42024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42025 fi 42026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42027 fi 42028 if test $ac_cv_c_bigendian = unknown; then 42029 # Compile a test program. 42030 if test "$cross_compiling" = yes; then : 42031 # Try to guess by grepping values from an object file. 42032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42033 /* end confdefs.h. */ 42034 short int ascii_mm[] = 42035 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42036 short int ascii_ii[] = 42037 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42038 int use_ascii (int i) { 42039 return ascii_mm[i] + ascii_ii[i]; 42040 } 42041 short int ebcdic_ii[] = 42042 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42043 short int ebcdic_mm[] = 42044 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42045 int use_ebcdic (int i) { 42046 return ebcdic_mm[i] + ebcdic_ii[i]; 42047 } 42048 extern int foo; 42049 42050 int 42051 main () 42052 { 42053 return use_ascii (foo) == use_ebcdic (foo); 42054 ; 42055 return 0; 42056 } 42057 _ACEOF 42058 if ac_fn_cxx_try_compile "$LINENO"; then : 42059 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42060 ac_cv_c_bigendian=yes 42061 fi 42062 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42063 if test "$ac_cv_c_bigendian" = unknown; then 42064 ac_cv_c_bigendian=no 42065 else 42066 # finding both strings is unlikely to happen, but who knows? 42067 ac_cv_c_bigendian=unknown 42068 fi 42069 fi 42070 fi 42071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42072 else 42073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42074 /* end confdefs.h. */ 42075 $ac_includes_default 42076 int 42077 main () 42078 { 42079 42080 /* Are we little or big endian? From Harbison&Steele. */ 42081 union 42082 { 42083 long int l; 42084 char c[sizeof (long int)]; 42085 } u; 42086 u.l = 1; 42087 return u.c[sizeof (long int) - 1] == 1; 42088 42089 ; 42090 return 0; 42091 } 42092 _ACEOF 42093 if ac_fn_cxx_try_run "$LINENO"; then : 42094 ac_cv_c_bigendian=no 42095 else 42096 ac_cv_c_bigendian=yes 42097 fi 42098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42099 conftest.$ac_objext conftest.beam conftest.$ac_ext 42100 fi 42101 42102 fi 42103 fi 42104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42105 $as_echo "$ac_cv_c_bigendian" >&6; } 42106 case $ac_cv_c_bigendian in #( 42107 yes) 42108 ENDIAN="big";; #( 42109 no) 42110 ENDIAN="little" ;; #( 42111 universal) 42112 ENDIAN="universal_endianness" 42113 ;; #( 42114 *) 42115 ENDIAN="unknown" ;; 42116 esac 42117 42118 42119 if test "x$ENDIAN" = xuniversal_endianness; then 42120 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42121 fi 42122 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42123 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 42124 fi 42125 42126 42127 # Configure flags for the tools 42128 42129 ############################################################################### 42130 # 42131 # How to compile shared libraries. 42132 # 42133 42134 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42135 PICFLAG="-fPIC" 42136 C_FLAG_REORDER='' 42137 CXX_FLAG_REORDER='' 42138 42139 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42140 # Linking is different on MacOSX 42141 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42142 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42143 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42144 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42145 SET_SHARED_LIBRARY_MAPFILE='' 42146 else 42147 # Default works for linux, might work on other platforms as well. 42148 SHARED_LIBRARY_FLAGS='-shared' 42149 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42150 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42151 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42152 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42153 fi 42154 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42155 PICFLAG='' 42156 C_FLAG_REORDER='' 42157 CXX_FLAG_REORDER='' 42158 42159 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42160 # Linking is different on MacOSX 42161 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42162 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42163 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42164 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42165 SET_SHARED_LIBRARY_MAPFILE='' 42166 else 42167 # Default works for linux, might work on other platforms as well. 42168 SHARED_LIBRARY_FLAGS='-shared' 42169 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42170 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42171 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42172 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42173 fi 42174 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42175 PICFLAG="-KPIC" 42176 C_FLAG_REORDER='-xF' 42177 CXX_FLAG_REORDER='-xF' 42178 SHARED_LIBRARY_FLAGS="-G" 42179 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42180 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42181 SET_SHARED_LIBRARY_NAME='' 42182 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42183 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42184 PICFLAG="-qpic=large" 42185 C_FLAG_REORDER='' 42186 CXX_FLAG_REORDER='' 42187 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42188 SET_EXECUTABLE_ORIGIN="" 42189 SET_SHARED_LIBRARY_ORIGIN='' 42190 SET_SHARED_LIBRARY_NAME='' 42191 SET_SHARED_LIBRARY_MAPFILE='' 42192 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42193 PICFLAG="" 42194 C_FLAG_REORDER='' 42195 CXX_FLAG_REORDER='' 42196 SHARED_LIBRARY_FLAGS="-LD" 42197 SET_EXECUTABLE_ORIGIN='' 42198 SET_SHARED_LIBRARY_ORIGIN='' 42199 SET_SHARED_LIBRARY_NAME='' 42200 SET_SHARED_LIBRARY_MAPFILE='' 42201 fi 42202 42203 42204 42205 42206 42207 42208 42209 42210 42211 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42212 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42213 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42214 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42215 fi 42216 # The (cross) compiler is now configured, we can now test capabilities 42217 # of the target platform. 42218 42219 42220 42221 ############################################################################### 42222 # 42223 # Setup the opt flags for different compilers 42224 # and different operating systems. 42225 # 42226 42227 # FIXME: this was indirectly the old default, but just inherited. 42228 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42229 # C_FLAG_DEPS="-MMD -MF" 42230 # fi 42231 42232 # Generate make dependency files 42233 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42234 C_FLAG_DEPS="-MMD -MF" 42235 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42236 C_FLAG_DEPS="-MMD -MF" 42237 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42238 C_FLAG_DEPS="-xMMD -xMF" 42239 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42240 C_FLAG_DEPS="-qmakedep=gcc -MF" 42241 fi 42242 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42243 42244 42245 42246 # Debug symbols 42247 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42248 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42249 # reduce from default "-g2" option to save space 42250 CFLAGS_DEBUG_SYMBOLS="-g1" 42251 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42252 else 42253 CFLAGS_DEBUG_SYMBOLS="-g" 42254 CXXFLAGS_DEBUG_SYMBOLS="-g" 42255 fi 42256 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42257 CFLAGS_DEBUG_SYMBOLS="-g" 42258 CXXFLAGS_DEBUG_SYMBOLS="-g" 42259 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42260 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42261 # FIXME: likely a bug, this disables debug symbols rather than enables them 42262 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42263 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42264 CFLAGS_DEBUG_SYMBOLS="-g" 42265 CXXFLAGS_DEBUG_SYMBOLS="-g" 42266 fi 42267 42268 42269 42270 # bounds, memory and behavior checking options 42271 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42272 case $DEBUG_LEVEL in 42273 release ) 42274 # no adjustment 42275 ;; 42276 fastdebug ) 42277 # no adjustment 42278 ;; 42279 slowdebug ) 42280 # Add runtime stack smashing and undefined behavior checks 42281 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42282 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42283 ;; 42284 esac 42285 fi 42286 42287 42288 42289 # Optimization levels 42290 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42291 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42292 42293 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42294 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42295 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42296 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42297 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42298 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42299 C_O_FLAG_NONE="-xregs=no%frameptr" 42300 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42301 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42302 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42303 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42304 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42305 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42306 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42307 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42308 fi 42309 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42310 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42311 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42312 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42313 C_O_FLAG_DEBUG="" 42314 C_O_FLAG_NONE="" 42315 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42316 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42317 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42318 C_O_FLAG_DEBUG="" 42319 CXX_O_FLAG_NONE="" 42320 fi 42321 else 42322 # The remaining toolchains share opt flags between CC and CXX; 42323 # setup for C and duplicate afterwards. 42324 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42325 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42326 # On MacOSX we optimize for size, something 42327 # we should do for all platforms? 42328 C_O_FLAG_HIGHEST="-Os" 42329 C_O_FLAG_HI="-Os" 42330 C_O_FLAG_NORM="-Os" 42331 else 42332 C_O_FLAG_HIGHEST="-O3" 42333 C_O_FLAG_HI="-O3" 42334 C_O_FLAG_NORM="-O2" 42335 fi 42336 C_O_FLAG_DEBUG="-O0" 42337 C_O_FLAG_NONE="-O0" 42338 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42339 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42340 # On MacOSX we optimize for size, something 42341 # we should do for all platforms? 42342 C_O_FLAG_HIGHEST="-Os" 42343 C_O_FLAG_HI="-Os" 42344 C_O_FLAG_NORM="-Os" 42345 else 42346 C_O_FLAG_HIGHEST="-O3" 42347 C_O_FLAG_HI="-O3" 42348 C_O_FLAG_NORM="-O2" 42349 fi 42350 C_O_FLAG_DEBUG="-O0" 42351 C_O_FLAG_NONE="-O0" 42352 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42353 C_O_FLAG_HIGHEST="-O3" 42354 C_O_FLAG_HI="-O3 -qstrict" 42355 C_O_FLAG_NORM="-O2" 42356 C_O_FLAG_DEBUG="-qnoopt" 42357 C_O_FLAG_NONE="-qnoop" 42358 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42359 C_O_FLAG_HIGHEST="-O2" 42360 C_O_FLAG_HI="-O1" 42361 C_O_FLAG_NORM="-O1" 42362 C_O_FLAG_DEBUG="-Od" 42363 C_O_FLAG_NONE="-Od" 42364 fi 42365 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42366 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42367 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42368 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42369 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42370 fi 42371 42372 # Adjust optimization flags according to debug level. 42373 case $DEBUG_LEVEL in 42374 release ) 42375 # no adjustment 42376 ;; 42377 fastdebug ) 42378 # Not quite so much optimization 42379 C_O_FLAG_HI="$C_O_FLAG_NORM" 42380 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42381 ;; 42382 slowdebug ) 42383 # Disable optimization 42384 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42385 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42386 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42387 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42388 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42389 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42390 ;; 42391 esac 42392 42393 42394 42395 42396 42397 42398 42399 42400 42401 42402 42403 42404 42405 # Special extras... 42406 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42407 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42408 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42409 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42410 fi 42411 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42412 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42413 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42414 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42415 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42416 fi 42417 42418 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42420 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42421 fi 42422 42423 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42425 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42426 fi 42427 42428 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42430 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42431 fi 42432 42433 42434 # Check whether --with-extra-cflags was given. 42435 if test "${with_extra_cflags+set}" = set; then : 42436 withval=$with_extra_cflags; 42437 fi 42438 42439 42440 42441 # Check whether --with-extra-cxxflags was given. 42442 if test "${with_extra_cxxflags+set}" = set; then : 42443 withval=$with_extra_cxxflags; 42444 fi 42445 42446 42447 42448 # Check whether --with-extra-ldflags was given. 42449 if test "${with_extra_ldflags+set}" = set; then : 42450 withval=$with_extra_ldflags; 42451 fi 42452 42453 42454 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42455 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42456 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42457 42458 # Hotspot needs these set in their legacy form 42459 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42460 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42461 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42462 42463 42464 42465 42466 42467 ############################################################################### 42468 # 42469 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42470 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42471 # 42472 42473 # Setup compiler/platform specific flags into 42474 # CFLAGS_JDK - C Compiler flags 42475 # CXXFLAGS_JDK - C++ Compiler flags 42476 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42477 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42478 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42479 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42480 case $OPENJDK_TARGET_CPU_ARCH in 42481 arm ) 42482 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42483 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42484 ;; 42485 ppc ) 42486 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42487 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42488 ;; 42489 * ) 42490 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42491 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42492 ;; 42493 esac 42494 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42495 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42496 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42497 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42498 fi 42499 42500 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42501 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42502 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42503 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42504 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42505 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42506 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 42507 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42508 -DWIN32_LEAN_AND_MEAN \ 42509 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42510 -DWIN32 -DIAL" 42511 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42512 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42513 else 42514 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42515 fi 42516 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42517 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42518 # studio. 42519 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42520 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42521 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42522 fi 42523 fi 42524 42525 ############################################################################### 42526 42527 # Adjust flags according to debug level. 42528 case $DEBUG_LEVEL in 42529 fastdebug | slowdebug ) 42530 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42531 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42532 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42533 ;; 42534 release ) 42535 ;; 42536 * ) 42537 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42538 ;; 42539 esac 42540 42541 # Setup LP64 42542 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42543 42544 # Set some common defines. These works for all compilers, but assume 42545 # -D is universally accepted. 42546 42547 # Setup endianness 42548 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42549 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42550 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42551 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42552 # Note: -Dmacro is the same as #define macro 1 42553 # -Dmacro= is the same as #define macro 42554 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42555 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42556 else 42557 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42558 fi 42559 else 42560 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42561 # are defined in the system? 42562 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42563 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42564 else 42565 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42566 fi 42567 fi 42568 42569 # Setup target OS define. Use OS target name but in upper case. 42570 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42571 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42572 42573 # Setup target CPU 42574 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42575 42576 # Setup debug/release defines 42577 if test "x$DEBUG_LEVEL" = xrelease; then 42578 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42579 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42580 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42581 fi 42582 else 42583 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42584 fi 42585 42586 # Setup release name 42587 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42588 42589 42590 # Set some additional per-OS defines. 42591 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42592 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42593 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42594 # FIXME: PPC64 should not be here. 42595 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42596 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42597 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42598 fi 42599 42600 # Additional macosx handling 42601 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42602 # Setting these parameters makes it an error to link to macosx APIs that are 42603 # newer than the given OS version and makes the linked binaries compatible 42604 # even if built on a newer version of the OS. 42605 # The expected format is X.Y.Z 42606 MACOSX_VERSION_MIN=10.7.0 42607 42608 42609 # The macro takes the version with no dots, ex: 1070 42610 # Let the flags variables get resolved in make for easier override on make 42611 # command line. 42612 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42613 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42614 fi 42615 42616 # Setup some hard coded includes 42617 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42618 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42619 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42620 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 42621 42622 # The shared libraries are compiled using the picflag. 42623 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42624 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42625 42626 # Executable flags 42627 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42628 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42629 42630 42631 42632 42633 42634 42635 # Flags for compiling test libraries 42636 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42637 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42638 42639 # Flags for compiling test executables 42640 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42641 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42642 42643 42644 42645 42646 42647 42648 # Setup LDFLAGS et al. 42649 # 42650 42651 # Now this is odd. The JDK native libraries have to link against libjvm.so 42652 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42653 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42654 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42655 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42656 # libraries will link to whatever is in memory. Yuck. 42657 # 42658 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42659 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42660 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42661 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42662 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42663 fi 42664 # TODO: make -debug optional "--disable-full-debug-symbols" 42665 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42666 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42667 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42668 # We have previously set HAS_GNU_HASH if this is the case 42669 if test -n "$HAS_GNU_HASH"; then 42670 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42671 fi 42672 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42673 # And since we now know that the linker is gnu, then add -z defs, to forbid 42674 # undefined symbols in object files. 42675 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42676 case $DEBUG_LEVEL in 42677 release ) 42678 # tell linker to optimize libraries. 42679 # Should this be supplied to the OSS linker as well? 42680 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42681 ;; 42682 slowdebug ) 42683 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42684 # do relocations at load 42685 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42686 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42687 fi 42688 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42689 # mark relocations read only 42690 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42691 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42692 fi 42693 ;; 42694 fastdebug ) 42695 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42696 # mark relocations read only 42697 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42698 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42699 fi 42700 ;; 42701 * ) 42702 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42703 ;; 42704 esac 42705 fi 42706 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42707 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42708 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42709 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42710 LDFLAGS_JDK="${LDFLAGS_JDK} -brtl -bnolibpath -liconv -bexpall -bernotok" 42711 fi 42712 42713 # Customize LDFLAGS for executables 42714 42715 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42716 42717 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42718 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42719 LDFLAGS_STACK_SIZE=1048576 42720 else 42721 LDFLAGS_STACK_SIZE=327680 42722 fi 42723 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42724 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42725 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42726 fi 42727 42728 # Customize LDFLAGS for libs 42729 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42730 42731 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42732 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42733 LDFLAGS_JDKLIB_SUFFIX="" 42734 else 42735 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42736 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42737 42738 # On some platforms (mac) the linker warns about non existing -L dirs. 42739 # Add server first if available. Linking aginst client does not always produce the same results. 42740 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42741 # Default to server for other variants. 42742 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42743 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42744 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42745 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42746 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42747 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42748 else 42749 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42750 fi 42751 42752 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42753 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42754 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42755 fi 42756 fi 42757 42758 42759 42760 42761 42762 42763 42764 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 42765 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 42766 LDFLAGS_TESTLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX" 42767 LDFLAGS_TESTEXE_SUFFIX="$LDFLAGS_JDKEXE_SUFFIX" 42768 42769 42770 42771 42772 42773 42774 42775 # Some Zero and Shark settings. 42776 # ZERO_ARCHFLAG tells the compiler which mode to build for 42777 case "${OPENJDK_TARGET_CPU}" in 42778 s390) 42779 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42780 ;; 42781 *) 42782 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42783 esac 42784 42785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42786 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42787 supports=yes 42788 42789 saved_cflags="$CFLAGS" 42790 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42791 ac_ext=c 42792 ac_cpp='$CPP $CPPFLAGS' 42793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42795 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42796 42797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42798 /* end confdefs.h. */ 42799 int i; 42800 _ACEOF 42801 if ac_fn_c_try_compile "$LINENO"; then : 42802 42803 else 42804 supports=no 42805 fi 42806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42807 ac_ext=cpp 42808 ac_cpp='$CXXCPP $CPPFLAGS' 42809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42812 42813 CFLAGS="$saved_cflags" 42814 42815 saved_cxxflags="$CXXFLAGS" 42816 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42817 ac_ext=cpp 42818 ac_cpp='$CXXCPP $CPPFLAGS' 42819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42822 42823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42824 /* end confdefs.h. */ 42825 int i; 42826 _ACEOF 42827 if ac_fn_cxx_try_compile "$LINENO"; then : 42828 42829 else 42830 supports=no 42831 fi 42832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42833 ac_ext=cpp 42834 ac_cpp='$CXXCPP $CPPFLAGS' 42835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42838 42839 CXXFLAGS="$saved_cxxflags" 42840 42841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42842 $as_echo "$supports" >&6; } 42843 if test "x$supports" = "xyes" ; then 42844 : 42845 else 42846 ZERO_ARCHFLAG="" 42847 fi 42848 42849 42850 42851 # Check that the compiler supports -mX (or -qX on AIX) flags 42852 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42853 42854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42855 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42856 supports=yes 42857 42858 saved_cflags="$CFLAGS" 42859 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42860 ac_ext=c 42861 ac_cpp='$CPP $CPPFLAGS' 42862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42864 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42865 42866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42867 /* end confdefs.h. */ 42868 int i; 42869 _ACEOF 42870 if ac_fn_c_try_compile "$LINENO"; then : 42871 42872 else 42873 supports=no 42874 fi 42875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42876 ac_ext=cpp 42877 ac_cpp='$CXXCPP $CPPFLAGS' 42878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42881 42882 CFLAGS="$saved_cflags" 42883 42884 saved_cxxflags="$CXXFLAGS" 42885 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42886 ac_ext=cpp 42887 ac_cpp='$CXXCPP $CPPFLAGS' 42888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42891 42892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42893 /* end confdefs.h. */ 42894 int i; 42895 _ACEOF 42896 if ac_fn_cxx_try_compile "$LINENO"; then : 42897 42898 else 42899 supports=no 42900 fi 42901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42902 ac_ext=cpp 42903 ac_cpp='$CXXCPP $CPPFLAGS' 42904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42907 42908 CXXFLAGS="$saved_cxxflags" 42909 42910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42911 $as_echo "$supports" >&6; } 42912 if test "x$supports" = "xyes" ; then 42913 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42914 else 42915 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42916 fi 42917 42918 42919 42920 case "${TOOLCHAIN_TYPE}" in 42921 microsoft) 42922 DISABLE_WARNING_PREFIX="-wd" 42923 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 42924 ;; 42925 solstudio) 42926 DISABLE_WARNING_PREFIX="-erroff=" 42927 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 42928 ;; 42929 gcc) 42930 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 42931 42932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 42933 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 42934 supports=yes 42935 42936 saved_cflags="$CFLAGS" 42937 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 42938 ac_ext=c 42939 ac_cpp='$CPP $CPPFLAGS' 42940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42942 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42943 42944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42945 /* end confdefs.h. */ 42946 int i; 42947 _ACEOF 42948 if ac_fn_c_try_compile "$LINENO"; then : 42949 42950 else 42951 supports=no 42952 fi 42953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42954 ac_ext=cpp 42955 ac_cpp='$CXXCPP $CPPFLAGS' 42956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42959 42960 CFLAGS="$saved_cflags" 42961 42962 saved_cxxflags="$CXXFLAGS" 42963 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42971 /* end confdefs.h. */ 42972 int i; 42973 _ACEOF 42974 if ac_fn_cxx_try_compile "$LINENO"; then : 42975 42976 else 42977 supports=no 42978 fi 42979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42980 ac_ext=cpp 42981 ac_cpp='$CXXCPP $CPPFLAGS' 42982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42985 42986 CXXFLAGS="$saved_cxxflags" 42987 42988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42989 $as_echo "$supports" >&6; } 42990 if test "x$supports" = "xyes" ; then 42991 GCC_CAN_DISABLE_WARNINGS=true 42992 else 42993 GCC_CAN_DISABLE_WARNINGS=false 42994 42995 fi 42996 42997 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 42998 DISABLE_WARNING_PREFIX="-Wno-" 42999 else 43000 DISABLE_WARNING_PREFIX= 43001 fi 43002 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43003 ;; 43004 clang) 43005 DISABLE_WARNING_PREFIX="-Wno-" 43006 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43007 ;; 43008 esac 43009 43010 43011 43012 43013 # Setup debug symbols (need objcopy from the toolchain for that) 43014 43015 # 43016 # ENABLE_DEBUG_SYMBOLS 43017 # This must be done after the toolchain is setup, since we're looking at objcopy. 43018 # 43019 # Check whether --enable-debug-symbols was given. 43020 if test "${enable_debug_symbols+set}" = set; then : 43021 enableval=$enable_debug_symbols; 43022 fi 43023 43024 43025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43026 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43027 43028 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43029 # explicit enabling of enable-debug-symbols and can't find objcopy 43030 # this is an error 43031 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43032 fi 43033 43034 if test "x$enable_debug_symbols" = "xyes"; then 43035 ENABLE_DEBUG_SYMBOLS=true 43036 elif test "x$enable_debug_symbols" = "xno"; then 43037 ENABLE_DEBUG_SYMBOLS=false 43038 else 43039 # Default is on if objcopy is found 43040 if test "x$OBJCOPY" != x; then 43041 ENABLE_DEBUG_SYMBOLS=true 43042 # MacOS X and Windows don't use objcopy but default is on for those OSes 43043 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43044 ENABLE_DEBUG_SYMBOLS=true 43045 else 43046 ENABLE_DEBUG_SYMBOLS=false 43047 fi 43048 fi 43049 43050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43051 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43052 43053 # 43054 # ZIP_DEBUGINFO_FILES 43055 # 43056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43057 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43058 # Check whether --enable-zip-debug-info was given. 43059 if test "${enable_zip_debug_info+set}" = set; then : 43060 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43061 else 43062 enable_zip_debug_info="yes" 43063 fi 43064 43065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43066 $as_echo "${enable_zip_debug_info}" >&6; } 43067 43068 if test "x${enable_zip_debug_info}" = "xno"; then 43069 ZIP_DEBUGINFO_FILES=false 43070 else 43071 ZIP_DEBUGINFO_FILES=true 43072 fi 43073 43074 43075 43076 43077 43078 # Check whether --enable-native-coverage was given. 43079 if test "${enable_native_coverage+set}" = set; then : 43080 enableval=$enable_native_coverage; 43081 fi 43082 43083 GCOV_ENABLED="false" 43084 if test "x$enable_native_coverage" = "xyes"; then 43085 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 43086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43087 $as_echo_n "checking if native coverage is enabled... " >&6; } 43088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43089 $as_echo "yes" >&6; } 43090 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 43091 GCOV_LDFLAGS="-fprofile-arcs" 43092 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 43093 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 43094 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 43095 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 43096 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 43097 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 43098 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 43099 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 43100 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 43101 GCOV_ENABLED="true" 43102 else 43103 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 43104 fi 43105 elif test "x$enable_native_coverage" = "xno"; then 43106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43107 $as_echo_n "checking if native coverage is enabled... " >&6; } 43108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43109 $as_echo "no" >&6; } 43110 elif test "x$enable_native_coverage" != "x"; then 43111 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 43112 fi 43113 43114 43115 43116 43117 ############################################################################### 43118 # 43119 # Check dependencies for external and internal libraries. 43120 # 43121 ############################################################################### 43122 43123 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43124 43125 # When using cygwin or msys, we need a wrapper binary that renames 43126 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43127 # @files and rewrites these too! This wrapper binary is 43128 # called fixpath. 43129 FIXPATH= 43130 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43132 $as_echo_n "checking if fixpath can be created... " >&6; } 43133 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43134 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 43135 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 43136 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43137 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43138 FIXPATH="$FIXPATH_BIN -c" 43139 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43140 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43141 # @ was chosen as separator to minimize risk of other tools messing around with it 43142 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 43143 | tr ' ' '\n' | grep '^/./' | sort | uniq` 43144 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43145 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 43146 fi 43147 FIXPATH_SRC_W="$FIXPATH_SRC" 43148 FIXPATH_BIN_W="$FIXPATH_BIN" 43149 43150 unix_path="$FIXPATH_SRC_W" 43151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43152 windows_path=`$CYGPATH -m "$unix_path"` 43153 FIXPATH_SRC_W="$windows_path" 43154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43155 windows_path=`cmd //c echo $unix_path` 43156 FIXPATH_SRC_W="$windows_path" 43157 fi 43158 43159 43160 unix_path="$FIXPATH_BIN_W" 43161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43162 windows_path=`$CYGPATH -m "$unix_path"` 43163 FIXPATH_BIN_W="$windows_path" 43164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43165 windows_path=`cmd //c echo $unix_path` 43166 FIXPATH_BIN_W="$windows_path" 43167 fi 43168 43169 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 43170 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 43171 cd $FIXPATH_DIR 43172 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 43173 cd $CURDIR 43174 43175 if test ! -x $FIXPATH_BIN; then 43176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43177 $as_echo "no" >&6; } 43178 cat $FIXPATH_DIR/fixpath1.log 43179 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 43180 fi 43181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43182 $as_echo "yes" >&6; } 43183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43184 $as_echo_n "checking if fixpath.exe works... " >&6; } 43185 cd $FIXPATH_DIR 43186 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 43187 > $FIXPATH_DIR/fixpath2.log 2>&1 43188 cd $CURDIR 43189 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 43190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43191 $as_echo "no" >&6; } 43192 cat $FIXPATH_DIR/fixpath2.log 43193 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43194 fi 43195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43196 $as_echo "yes" >&6; } 43197 fi 43198 43199 43200 43201 43202 43203 43204 ############################################################################### 43205 # 43206 # OS specific settings that we never will need to probe. 43207 # 43208 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43210 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43211 PULSE_NOT_NEEDED=yes 43212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43213 $as_echo "pulse" >&6; } 43214 fi 43215 43216 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43218 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43219 ALSA_NOT_NEEDED=yes 43220 PULSE_NOT_NEEDED=yes 43221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43222 $as_echo "alsa pulse" >&6; } 43223 fi 43224 43225 if test "x$OPENJDK_TARGET_OS" = xaix; then 43226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43227 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43228 ALSA_NOT_NEEDED=yes 43229 PULSE_NOT_NEEDED=yes 43230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43231 $as_echo "alsa pulse" >&6; } 43232 fi 43233 43234 43235 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43237 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43238 CUPS_NOT_NEEDED=yes 43239 ALSA_NOT_NEEDED=yes 43240 PULSE_NOT_NEEDED=yes 43241 X11_NOT_NEEDED=yes 43242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43243 $as_echo "alsa cups pulse x11" >&6; } 43244 fi 43245 43246 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43248 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43249 ALSA_NOT_NEEDED=yes 43250 PULSE_NOT_NEEDED=yes 43251 X11_NOT_NEEDED=yes 43252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43253 $as_echo "alsa pulse x11" >&6; } 43254 fi 43255 43256 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43258 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43259 ALSA_NOT_NEEDED=yes 43260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43261 $as_echo "alsa" >&6; } 43262 fi 43263 43264 if test "x$OPENJDK" = "xfalse"; then 43265 FREETYPE_NOT_NEEDED=yes 43266 fi 43267 43268 if test "x$SUPPORT_HEADFUL" = xno; then 43269 X11_NOT_NEEDED=yes 43270 fi 43271 43272 43273 43274 ############################################################################### 43275 # 43276 # Check for X Windows 43277 # 43278 43279 if test "x$X11_NOT_NEEDED" = xyes; then 43280 if test "x${with_x}" != x; then 43281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 43282 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 43283 fi 43284 X_CFLAGS= 43285 X_LIBS= 43286 else 43287 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43288 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43289 # --x-libraries for the sysroot, if that seems to be correct. 43290 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43291 if test "x$SYSROOT" != "x"; then 43292 if test "x$x_includes" = xNONE; then 43293 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43294 x_includes="$SYSROOT/usr/X11R6/include" 43295 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43296 x_includes="$SYSROOT/usr/include" 43297 fi 43298 fi 43299 if test "x$x_libraries" = xNONE; then 43300 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43301 x_libraries="$SYSROOT/usr/X11R6/lib" 43302 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43303 x_libraries="$SYSROOT/usr/lib64" 43304 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43305 x_libraries="$SYSROOT/usr/lib" 43306 fi 43307 fi 43308 fi 43309 fi 43310 43311 # Now let autoconf do it's magic 43312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43313 $as_echo_n "checking for X... " >&6; } 43314 43315 43316 # Check whether --with-x was given. 43317 if test "${with_x+set}" = set; then : 43318 withval=$with_x; 43319 fi 43320 43321 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43322 if test "x$with_x" = xno; then 43323 # The user explicitly disabled X. 43324 have_x=disabled 43325 else 43326 case $x_includes,$x_libraries in #( 43327 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43328 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43329 $as_echo_n "(cached) " >&6 43330 else 43331 # One or both of the vars are not set, and there is no cached value. 43332 ac_x_includes=no ac_x_libraries=no 43333 rm -f -r conftest.dir 43334 if mkdir conftest.dir; then 43335 cd conftest.dir 43336 cat >Imakefile <<'_ACEOF' 43337 incroot: 43338 @echo incroot='${INCROOT}' 43339 usrlibdir: 43340 @echo usrlibdir='${USRLIBDIR}' 43341 libdir: 43342 @echo libdir='${LIBDIR}' 43343 _ACEOF 43344 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43345 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43346 for ac_var in incroot usrlibdir libdir; do 43347 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43348 done 43349 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43350 for ac_extension in a so sl dylib la dll; do 43351 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43352 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43353 ac_im_usrlibdir=$ac_im_libdir; break 43354 fi 43355 done 43356 # Screen out bogus values from the imake configuration. They are 43357 # bogus both because they are the default anyway, and because 43358 # using them would break gcc on systems where it needs fixed includes. 43359 case $ac_im_incroot in 43360 /usr/include) ac_x_includes= ;; 43361 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43362 esac 43363 case $ac_im_usrlibdir in 43364 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43365 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43366 esac 43367 fi 43368 cd .. 43369 rm -f -r conftest.dir 43370 fi 43371 43372 # Standard set of common directories for X headers. 43373 # Check X11 before X11Rn because it is often a symlink to the current release. 43374 ac_x_header_dirs=' 43375 /usr/X11/include 43376 /usr/X11R7/include 43377 /usr/X11R6/include 43378 /usr/X11R5/include 43379 /usr/X11R4/include 43380 43381 /usr/include/X11 43382 /usr/include/X11R7 43383 /usr/include/X11R6 43384 /usr/include/X11R5 43385 /usr/include/X11R4 43386 43387 /usr/local/X11/include 43388 /usr/local/X11R7/include 43389 /usr/local/X11R6/include 43390 /usr/local/X11R5/include 43391 /usr/local/X11R4/include 43392 43393 /usr/local/include/X11 43394 /usr/local/include/X11R7 43395 /usr/local/include/X11R6 43396 /usr/local/include/X11R5 43397 /usr/local/include/X11R4 43398 43399 /usr/X386/include 43400 /usr/x386/include 43401 /usr/XFree86/include/X11 43402 43403 /usr/include 43404 /usr/local/include 43405 /usr/unsupported/include 43406 /usr/athena/include 43407 /usr/local/x11r5/include 43408 /usr/lpp/Xamples/include 43409 43410 /usr/openwin/include 43411 /usr/openwin/share/include' 43412 43413 if test "$ac_x_includes" = no; then 43414 # Guess where to find include files, by looking for Xlib.h. 43415 # First, try using that file with no special directory specified. 43416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43417 /* end confdefs.h. */ 43418 #include <X11/Xlib.h> 43419 _ACEOF 43420 if ac_fn_cxx_try_cpp "$LINENO"; then : 43421 # We can compile using X headers with no special include directory. 43422 ac_x_includes= 43423 else 43424 for ac_dir in $ac_x_header_dirs; do 43425 if test -r "$ac_dir/X11/Xlib.h"; then 43426 ac_x_includes=$ac_dir 43427 break 43428 fi 43429 done 43430 fi 43431 rm -f conftest.err conftest.i conftest.$ac_ext 43432 fi # $ac_x_includes = no 43433 43434 if test "$ac_x_libraries" = no; then 43435 # Check for the libraries. 43436 # See if we find them without any special options. 43437 # Don't add to $LIBS permanently. 43438 ac_save_LIBS=$LIBS 43439 LIBS="-lX11 $LIBS" 43440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43441 /* end confdefs.h. */ 43442 #include <X11/Xlib.h> 43443 int 43444 main () 43445 { 43446 XrmInitialize () 43447 ; 43448 return 0; 43449 } 43450 _ACEOF 43451 if ac_fn_cxx_try_link "$LINENO"; then : 43452 LIBS=$ac_save_LIBS 43453 # We can link X programs with no special library path. 43454 ac_x_libraries= 43455 else 43456 LIBS=$ac_save_LIBS 43457 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43458 do 43459 # Don't even attempt the hair of trying to link an X program! 43460 for ac_extension in a so sl dylib la dll; do 43461 if test -r "$ac_dir/libX11.$ac_extension"; then 43462 ac_x_libraries=$ac_dir 43463 break 2 43464 fi 43465 done 43466 done 43467 fi 43468 rm -f core conftest.err conftest.$ac_objext \ 43469 conftest$ac_exeext conftest.$ac_ext 43470 fi # $ac_x_libraries = no 43471 43472 case $ac_x_includes,$ac_x_libraries in #( 43473 no,* | *,no | *\'*) 43474 # Didn't find X, or a directory has "'" in its name. 43475 ac_cv_have_x="have_x=no";; #( 43476 *) 43477 # Record where we found X for the cache. 43478 ac_cv_have_x="have_x=yes\ 43479 ac_x_includes='$ac_x_includes'\ 43480 ac_x_libraries='$ac_x_libraries'" 43481 esac 43482 fi 43483 ;; #( 43484 *) have_x=yes;; 43485 esac 43486 eval "$ac_cv_have_x" 43487 fi # $with_x != no 43488 43489 if test "$have_x" != yes; then 43490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43491 $as_echo "$have_x" >&6; } 43492 no_x=yes 43493 else 43494 # If each of the values was on the command line, it overrides each guess. 43495 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43496 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43497 # Update the cache value to reflect the command line values. 43498 ac_cv_have_x="have_x=yes\ 43499 ac_x_includes='$x_includes'\ 43500 ac_x_libraries='$x_libraries'" 43501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43502 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43503 fi 43504 43505 if test "$no_x" = yes; then 43506 # Not all programs may use this symbol, but it does not hurt to define it. 43507 43508 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43509 43510 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43511 else 43512 if test -n "$x_includes"; then 43513 X_CFLAGS="$X_CFLAGS -I$x_includes" 43514 fi 43515 43516 # It would also be nice to do this for all -L options, not just this one. 43517 if test -n "$x_libraries"; then 43518 X_LIBS="$X_LIBS -L$x_libraries" 43519 # For Solaris; some versions of Sun CC require a space after -R and 43520 # others require no space. Words are not sufficient . . . . 43521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43522 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43523 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43524 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43525 ac_cxx_werror_flag=yes 43526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43527 /* end confdefs.h. */ 43528 43529 int 43530 main () 43531 { 43532 43533 ; 43534 return 0; 43535 } 43536 _ACEOF 43537 if ac_fn_cxx_try_link "$LINENO"; then : 43538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43539 $as_echo "no" >&6; } 43540 X_LIBS="$X_LIBS -R$x_libraries" 43541 else 43542 LIBS="$ac_xsave_LIBS -R $x_libraries" 43543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43544 /* end confdefs.h. */ 43545 43546 int 43547 main () 43548 { 43549 43550 ; 43551 return 0; 43552 } 43553 _ACEOF 43554 if ac_fn_cxx_try_link "$LINENO"; then : 43555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43556 $as_echo "yes" >&6; } 43557 X_LIBS="$X_LIBS -R $x_libraries" 43558 else 43559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43560 $as_echo "neither works" >&6; } 43561 fi 43562 rm -f core conftest.err conftest.$ac_objext \ 43563 conftest$ac_exeext conftest.$ac_ext 43564 fi 43565 rm -f core conftest.err conftest.$ac_objext \ 43566 conftest$ac_exeext conftest.$ac_ext 43567 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43568 LIBS=$ac_xsave_LIBS 43569 fi 43570 43571 # Check for system-dependent libraries X programs must link with. 43572 # Do this before checking for the system-independent R6 libraries 43573 # (-lICE), since we may need -lsocket or whatever for X linking. 43574 43575 if test "$ISC" = yes; then 43576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43577 else 43578 # Martyn Johnson says this is needed for Ultrix, if the X 43579 # libraries were built with DECnet support. And Karl Berry says 43580 # the Alpha needs dnet_stub (dnet does not exist). 43581 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43583 /* end confdefs.h. */ 43584 43585 /* Override any GCC internal prototype to avoid an error. 43586 Use char because int might match the return type of a GCC 43587 builtin and then its argument prototype would still apply. */ 43588 #ifdef __cplusplus 43589 extern "C" 43590 #endif 43591 char XOpenDisplay (); 43592 int 43593 main () 43594 { 43595 return XOpenDisplay (); 43596 ; 43597 return 0; 43598 } 43599 _ACEOF 43600 if ac_fn_cxx_try_link "$LINENO"; then : 43601 43602 else 43603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43604 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43605 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43606 $as_echo_n "(cached) " >&6 43607 else 43608 ac_check_lib_save_LIBS=$LIBS 43609 LIBS="-ldnet $LIBS" 43610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43611 /* end confdefs.h. */ 43612 43613 /* Override any GCC internal prototype to avoid an error. 43614 Use char because int might match the return type of a GCC 43615 builtin and then its argument prototype would still apply. */ 43616 #ifdef __cplusplus 43617 extern "C" 43618 #endif 43619 char dnet_ntoa (); 43620 int 43621 main () 43622 { 43623 return dnet_ntoa (); 43624 ; 43625 return 0; 43626 } 43627 _ACEOF 43628 if ac_fn_cxx_try_link "$LINENO"; then : 43629 ac_cv_lib_dnet_dnet_ntoa=yes 43630 else 43631 ac_cv_lib_dnet_dnet_ntoa=no 43632 fi 43633 rm -f core conftest.err conftest.$ac_objext \ 43634 conftest$ac_exeext conftest.$ac_ext 43635 LIBS=$ac_check_lib_save_LIBS 43636 fi 43637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43638 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43639 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43640 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43641 fi 43642 43643 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43645 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43646 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43647 $as_echo_n "(cached) " >&6 43648 else 43649 ac_check_lib_save_LIBS=$LIBS 43650 LIBS="-ldnet_stub $LIBS" 43651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43652 /* end confdefs.h. */ 43653 43654 /* Override any GCC internal prototype to avoid an error. 43655 Use char because int might match the return type of a GCC 43656 builtin and then its argument prototype would still apply. */ 43657 #ifdef __cplusplus 43658 extern "C" 43659 #endif 43660 char dnet_ntoa (); 43661 int 43662 main () 43663 { 43664 return dnet_ntoa (); 43665 ; 43666 return 0; 43667 } 43668 _ACEOF 43669 if ac_fn_cxx_try_link "$LINENO"; then : 43670 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43671 else 43672 ac_cv_lib_dnet_stub_dnet_ntoa=no 43673 fi 43674 rm -f core conftest.err conftest.$ac_objext \ 43675 conftest$ac_exeext conftest.$ac_ext 43676 LIBS=$ac_check_lib_save_LIBS 43677 fi 43678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43679 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43680 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43681 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43682 fi 43683 43684 fi 43685 fi 43686 rm -f core conftest.err conftest.$ac_objext \ 43687 conftest$ac_exeext conftest.$ac_ext 43688 LIBS="$ac_xsave_LIBS" 43689 43690 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43691 # to get the SysV transport functions. 43692 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43693 # needs -lnsl. 43694 # The nsl library prevents programs from opening the X display 43695 # on Irix 5.2, according to T.E. Dickey. 43696 # The functions gethostbyname, getservbyname, and inet_addr are 43697 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43698 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43699 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43700 43701 fi 43702 43703 if test $ac_cv_func_gethostbyname = no; then 43704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43705 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43706 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43707 $as_echo_n "(cached) " >&6 43708 else 43709 ac_check_lib_save_LIBS=$LIBS 43710 LIBS="-lnsl $LIBS" 43711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43712 /* end confdefs.h. */ 43713 43714 /* Override any GCC internal prototype to avoid an error. 43715 Use char because int might match the return type of a GCC 43716 builtin and then its argument prototype would still apply. */ 43717 #ifdef __cplusplus 43718 extern "C" 43719 #endif 43720 char gethostbyname (); 43721 int 43722 main () 43723 { 43724 return gethostbyname (); 43725 ; 43726 return 0; 43727 } 43728 _ACEOF 43729 if ac_fn_cxx_try_link "$LINENO"; then : 43730 ac_cv_lib_nsl_gethostbyname=yes 43731 else 43732 ac_cv_lib_nsl_gethostbyname=no 43733 fi 43734 rm -f core conftest.err conftest.$ac_objext \ 43735 conftest$ac_exeext conftest.$ac_ext 43736 LIBS=$ac_check_lib_save_LIBS 43737 fi 43738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43739 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43740 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43741 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43742 fi 43743 43744 if test $ac_cv_lib_nsl_gethostbyname = no; then 43745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43746 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43747 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43748 $as_echo_n "(cached) " >&6 43749 else 43750 ac_check_lib_save_LIBS=$LIBS 43751 LIBS="-lbsd $LIBS" 43752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43753 /* end confdefs.h. */ 43754 43755 /* Override any GCC internal prototype to avoid an error. 43756 Use char because int might match the return type of a GCC 43757 builtin and then its argument prototype would still apply. */ 43758 #ifdef __cplusplus 43759 extern "C" 43760 #endif 43761 char gethostbyname (); 43762 int 43763 main () 43764 { 43765 return gethostbyname (); 43766 ; 43767 return 0; 43768 } 43769 _ACEOF 43770 if ac_fn_cxx_try_link "$LINENO"; then : 43771 ac_cv_lib_bsd_gethostbyname=yes 43772 else 43773 ac_cv_lib_bsd_gethostbyname=no 43774 fi 43775 rm -f core conftest.err conftest.$ac_objext \ 43776 conftest$ac_exeext conftest.$ac_ext 43777 LIBS=$ac_check_lib_save_LIBS 43778 fi 43779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43780 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43781 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43783 fi 43784 43785 fi 43786 fi 43787 43788 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43789 # socket/setsockopt and other routines are undefined under SCO ODT 43790 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43791 # on later versions), says Simon Leinen: it contains gethostby* 43792 # variants that don't use the name server (or something). -lsocket 43793 # must be given before -lnsl if both are needed. We assume that 43794 # if connect needs -lnsl, so does gethostbyname. 43795 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43796 if test "x$ac_cv_func_connect" = xyes; then : 43797 43798 fi 43799 43800 if test $ac_cv_func_connect = no; then 43801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43802 $as_echo_n "checking for connect in -lsocket... " >&6; } 43803 if ${ac_cv_lib_socket_connect+:} false; then : 43804 $as_echo_n "(cached) " >&6 43805 else 43806 ac_check_lib_save_LIBS=$LIBS 43807 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43809 /* end confdefs.h. */ 43810 43811 /* Override any GCC internal prototype to avoid an error. 43812 Use char because int might match the return type of a GCC 43813 builtin and then its argument prototype would still apply. */ 43814 #ifdef __cplusplus 43815 extern "C" 43816 #endif 43817 char connect (); 43818 int 43819 main () 43820 { 43821 return connect (); 43822 ; 43823 return 0; 43824 } 43825 _ACEOF 43826 if ac_fn_cxx_try_link "$LINENO"; then : 43827 ac_cv_lib_socket_connect=yes 43828 else 43829 ac_cv_lib_socket_connect=no 43830 fi 43831 rm -f core conftest.err conftest.$ac_objext \ 43832 conftest$ac_exeext conftest.$ac_ext 43833 LIBS=$ac_check_lib_save_LIBS 43834 fi 43835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43836 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43837 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43838 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43839 fi 43840 43841 fi 43842 43843 # Guillermo Gomez says -lposix is necessary on A/UX. 43844 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43845 if test "x$ac_cv_func_remove" = xyes; then : 43846 43847 fi 43848 43849 if test $ac_cv_func_remove = no; then 43850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43851 $as_echo_n "checking for remove in -lposix... " >&6; } 43852 if ${ac_cv_lib_posix_remove+:} false; then : 43853 $as_echo_n "(cached) " >&6 43854 else 43855 ac_check_lib_save_LIBS=$LIBS 43856 LIBS="-lposix $LIBS" 43857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43858 /* end confdefs.h. */ 43859 43860 /* Override any GCC internal prototype to avoid an error. 43861 Use char because int might match the return type of a GCC 43862 builtin and then its argument prototype would still apply. */ 43863 #ifdef __cplusplus 43864 extern "C" 43865 #endif 43866 char remove (); 43867 int 43868 main () 43869 { 43870 return remove (); 43871 ; 43872 return 0; 43873 } 43874 _ACEOF 43875 if ac_fn_cxx_try_link "$LINENO"; then : 43876 ac_cv_lib_posix_remove=yes 43877 else 43878 ac_cv_lib_posix_remove=no 43879 fi 43880 rm -f core conftest.err conftest.$ac_objext \ 43881 conftest$ac_exeext conftest.$ac_ext 43882 LIBS=$ac_check_lib_save_LIBS 43883 fi 43884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43885 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43886 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43888 fi 43889 43890 fi 43891 43892 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43893 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43894 if test "x$ac_cv_func_shmat" = xyes; then : 43895 43896 fi 43897 43898 if test $ac_cv_func_shmat = no; then 43899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43900 $as_echo_n "checking for shmat in -lipc... " >&6; } 43901 if ${ac_cv_lib_ipc_shmat+:} false; then : 43902 $as_echo_n "(cached) " >&6 43903 else 43904 ac_check_lib_save_LIBS=$LIBS 43905 LIBS="-lipc $LIBS" 43906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43907 /* end confdefs.h. */ 43908 43909 /* Override any GCC internal prototype to avoid an error. 43910 Use char because int might match the return type of a GCC 43911 builtin and then its argument prototype would still apply. */ 43912 #ifdef __cplusplus 43913 extern "C" 43914 #endif 43915 char shmat (); 43916 int 43917 main () 43918 { 43919 return shmat (); 43920 ; 43921 return 0; 43922 } 43923 _ACEOF 43924 if ac_fn_cxx_try_link "$LINENO"; then : 43925 ac_cv_lib_ipc_shmat=yes 43926 else 43927 ac_cv_lib_ipc_shmat=no 43928 fi 43929 rm -f core conftest.err conftest.$ac_objext \ 43930 conftest$ac_exeext conftest.$ac_ext 43931 LIBS=$ac_check_lib_save_LIBS 43932 fi 43933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43934 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43935 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43937 fi 43938 43939 fi 43940 fi 43941 43942 # Check for libraries that X11R6 Xt/Xaw programs need. 43943 ac_save_LDFLAGS=$LDFLAGS 43944 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43945 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43946 # check for ICE first), but we must link in the order -lSM -lICE or 43947 # we get undefined symbols. So assume we have SM if we have ICE. 43948 # These have to be linked with before -lX11, unlike the other 43949 # libraries we check for below, so use a different variable. 43950 # John Interrante, Karl Berry 43951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43952 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43953 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43954 $as_echo_n "(cached) " >&6 43955 else 43956 ac_check_lib_save_LIBS=$LIBS 43957 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43959 /* end confdefs.h. */ 43960 43961 /* Override any GCC internal prototype to avoid an error. 43962 Use char because int might match the return type of a GCC 43963 builtin and then its argument prototype would still apply. */ 43964 #ifdef __cplusplus 43965 extern "C" 43966 #endif 43967 char IceConnectionNumber (); 43968 int 43969 main () 43970 { 43971 return IceConnectionNumber (); 43972 ; 43973 return 0; 43974 } 43975 _ACEOF 43976 if ac_fn_cxx_try_link "$LINENO"; then : 43977 ac_cv_lib_ICE_IceConnectionNumber=yes 43978 else 43979 ac_cv_lib_ICE_IceConnectionNumber=no 43980 fi 43981 rm -f core conftest.err conftest.$ac_objext \ 43982 conftest$ac_exeext conftest.$ac_ext 43983 LIBS=$ac_check_lib_save_LIBS 43984 fi 43985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43986 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43987 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43988 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43989 fi 43990 43991 LDFLAGS=$ac_save_LDFLAGS 43992 43993 fi 43994 43995 43996 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43997 # this doesn't make sense so we remove it. 43998 if test "x$COMPILE_TYPE" = xcross; then 43999 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 44000 fi 44001 44002 if test "x$no_x" = xyes; then 44003 44004 # Print a helpful message on how to acquire the necessary build dependency. 44005 # x11 is the help tag: freetype, cups, pulse, alsa etc 44006 MISSING_DEPENDENCY=x11 44007 44008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44009 cygwin_help $MISSING_DEPENDENCY 44010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44011 msys_help $MISSING_DEPENDENCY 44012 else 44013 PKGHANDLER_COMMAND= 44014 44015 case $PKGHANDLER in 44016 apt-get) 44017 apt_help $MISSING_DEPENDENCY ;; 44018 yum) 44019 yum_help $MISSING_DEPENDENCY ;; 44020 port) 44021 port_help $MISSING_DEPENDENCY ;; 44022 pkgutil) 44023 pkgutil_help $MISSING_DEPENDENCY ;; 44024 pkgadd) 44025 pkgadd_help $MISSING_DEPENDENCY ;; 44026 esac 44027 44028 if test "x$PKGHANDLER_COMMAND" != x; then 44029 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44030 fi 44031 fi 44032 44033 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44034 fi 44035 44036 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44037 OPENWIN_HOME="/usr/openwin" 44038 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44039 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44040 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44041 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44042 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44043 fi 44044 44045 ac_ext=c 44046 ac_cpp='$CPP $CPPFLAGS' 44047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44049 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44050 44051 OLD_CFLAGS="$CFLAGS" 44052 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44053 44054 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44055 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44056 do : 44057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44058 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44059 # include <X11/Xlib.h> 44060 # include <X11/Xutil.h> 44061 44062 44063 " 44064 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44065 cat >>confdefs.h <<_ACEOF 44066 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44067 _ACEOF 44068 X11_HEADERS_OK=yes 44069 else 44070 X11_HEADERS_OK=no; break 44071 fi 44072 44073 done 44074 44075 44076 if test "x$X11_HEADERS_OK" = xno; then 44077 44078 # Print a helpful message on how to acquire the necessary build dependency. 44079 # x11 is the help tag: freetype, cups, pulse, alsa etc 44080 MISSING_DEPENDENCY=x11 44081 44082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44083 cygwin_help $MISSING_DEPENDENCY 44084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44085 msys_help $MISSING_DEPENDENCY 44086 else 44087 PKGHANDLER_COMMAND= 44088 44089 case $PKGHANDLER in 44090 apt-get) 44091 apt_help $MISSING_DEPENDENCY ;; 44092 yum) 44093 yum_help $MISSING_DEPENDENCY ;; 44094 port) 44095 port_help $MISSING_DEPENDENCY ;; 44096 pkgutil) 44097 pkgutil_help $MISSING_DEPENDENCY ;; 44098 pkgadd) 44099 pkgadd_help $MISSING_DEPENDENCY ;; 44100 esac 44101 44102 if test "x$PKGHANDLER_COMMAND" != x; then 44103 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44104 fi 44105 fi 44106 44107 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44108 fi 44109 44110 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44111 # defined in libawt_xawt. 44112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44113 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44115 /* end confdefs.h. */ 44116 #include <X11/extensions/Xrender.h> 44117 int 44118 main () 44119 { 44120 XLinearGradient x; 44121 ; 44122 return 0; 44123 } 44124 _ACEOF 44125 if ac_fn_c_try_compile "$LINENO"; then : 44126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44127 $as_echo "yes" >&6; } 44128 else 44129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44130 $as_echo "no" >&6; } 44131 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44132 fi 44133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44134 44135 CFLAGS="$OLD_CFLAGS" 44136 ac_ext=cpp 44137 ac_cpp='$CXXCPP $CPPFLAGS' 44138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44141 44142 fi # X11_NOT_NEEDED 44143 44144 44145 44146 44147 44148 44149 ############################################################################### 44150 # 44151 # The common unix printing system cups is used to print from java. 44152 # 44153 44154 # Check whether --with-cups was given. 44155 if test "${with_cups+set}" = set; then : 44156 withval=$with_cups; 44157 fi 44158 44159 44160 # Check whether --with-cups-include was given. 44161 if test "${with_cups_include+set}" = set; then : 44162 withval=$with_cups_include; 44163 fi 44164 44165 44166 if test "x$CUPS_NOT_NEEDED" = xyes; then 44167 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44169 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44170 fi 44171 CUPS_CFLAGS= 44172 else 44173 CUPS_FOUND=no 44174 44175 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44176 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44177 fi 44178 44179 if test "x${with_cups}" != x; then 44180 CUPS_CFLAGS="-I${with_cups}/include" 44181 CUPS_FOUND=yes 44182 fi 44183 if test "x${with_cups_include}" != x; then 44184 CUPS_CFLAGS="-I${with_cups_include}" 44185 CUPS_FOUND=yes 44186 fi 44187 if test "x$CUPS_FOUND" = xno; then 44188 44189 44190 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44191 # Source the builddeps file again, to make sure it uses the latest variables! 44192 . $builddepsfile 44193 # Look for a target and build machine specific resource! 44194 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44195 if test "x$resource" = x; then 44196 # Ok, lets instead look for a target specific resource 44197 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44198 fi 44199 if test "x$resource" = x; then 44200 # Ok, lets instead look for a build specific resource 44201 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44202 fi 44203 if test "x$resource" = x; then 44204 # Ok, lets instead look for a generic resource 44205 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44206 resource=${builddep_cups} 44207 fi 44208 if test "x$resource" != x; then 44209 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44210 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44211 # If the resource in the builddeps.conf file is an existing directory, 44212 # for example /java/linux/cups 44213 if test -d ${resource}; then 44214 depdir=${resource} 44215 else 44216 44217 # cups is for example mymodule 44218 # $resource is for example libs/general/libmymod_1_2_3.zip 44219 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44220 # $with_builddeps_dir is for example /localhome/builddeps 44221 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44222 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44223 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44224 filename=`basename $resource` 44225 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44226 filebase=${filename%%.*} 44227 extension=${filename#*.} 44228 installdir=$with_builddeps_dir/$filebase 44229 if test ! -f $installdir/$filename.unpacked; then 44230 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44231 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44232 if test ! -d $installdir; then 44233 mkdir -p $installdir 44234 fi 44235 if test ! -d $installdir; then 44236 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44237 fi 44238 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44239 touch $tmpfile 44240 if test ! -f $tmpfile; then 44241 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44242 fi 44243 44244 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44245 # $tmpfile is the local file name for the downloaded file. 44246 VALID_TOOL=no 44247 if test "x$BDEPS_FTP" = xwget; then 44248 VALID_TOOL=yes 44249 wget -O $tmpfile $with_builddeps_server/$resource 44250 fi 44251 if test "x$BDEPS_FTP" = xlftp; then 44252 VALID_TOOL=yes 44253 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44254 fi 44255 if test "x$BDEPS_FTP" = xftp; then 44256 VALID_TOOL=yes 44257 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44258 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44259 FTPUSERPWD=${FTPSERVER%%@*} 44260 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44261 FTPUSER=${userpwd%%:*} 44262 FTPPWD=${userpwd#*@} 44263 FTPSERVER=${FTPSERVER#*@} 44264 else 44265 FTPUSER=ftp 44266 FTPPWD=ftp 44267 fi 44268 # the "pass" command does not work on some 44269 # ftp clients (read ftp.exe) but if it works, 44270 # passive mode is better! 44271 ( \ 44272 echo "user $FTPUSER $FTPPWD" ; \ 44273 echo "pass" ; \ 44274 echo "bin" ; \ 44275 echo "get $FTPPATH $tmpfile" ; \ 44276 ) | ftp -in $FTPSERVER 44277 fi 44278 if test "x$VALID_TOOL" != xyes; then 44279 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44280 fi 44281 44282 mv $tmpfile $installdir/$filename 44283 if test ! -s $installdir/$filename; then 44284 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44285 fi 44286 case "$extension" in 44287 zip) echo "Unzipping $installdir/$filename..." 44288 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44289 ;; 44290 tar.gz) echo "Untaring $installdir/$filename..." 44291 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44292 ;; 44293 tgz) echo "Untaring $installdir/$filename..." 44294 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44295 ;; 44296 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44297 ;; 44298 esac 44299 fi 44300 if test -f $installdir/$filename.unpacked; then 44301 depdir=$installdir 44302 fi 44303 44304 fi 44305 # Source the builddeps file again, because in the previous command, the depdir 44306 # was updated to point at the current build dependency install directory. 44307 . $builddepsfile 44308 # Now extract variables from the builddeps.conf files. 44309 theroot=${builddep_cups_ROOT} 44310 thecflags=${builddep_cups_CFLAGS} 44311 thelibs=${builddep_cups_LIBS} 44312 if test "x$depdir" = x; then 44313 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44314 fi 44315 CUPS=$depdir 44316 if test "x$theroot" != x; then 44317 CUPS="$theroot" 44318 fi 44319 if test "x$thecflags" != x; then 44320 CUPS_CFLAGS="$thecflags" 44321 fi 44322 if test "x$thelibs" != x; then 44323 CUPS_LIBS="$thelibs" 44324 fi 44325 CUPS_FOUND=yes 44326 44327 fi 44328 44329 fi 44330 44331 fi 44332 if test "x$CUPS_FOUND" = xno; then 44333 # Are the cups headers installed in the default /usr/include location? 44334 for ac_header in cups/cups.h cups/ppd.h 44335 do : 44336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44337 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44338 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44339 cat >>confdefs.h <<_ACEOF 44340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44341 _ACEOF 44342 44343 CUPS_FOUND=yes 44344 CUPS_CFLAGS= 44345 DEFAULT_CUPS=yes 44346 44347 44348 fi 44349 44350 done 44351 44352 fi 44353 if test "x$CUPS_FOUND" = xno; then 44354 # Getting nervous now? Lets poke around for standard Solaris third-party 44355 # package installation locations. 44356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44357 $as_echo_n "checking for cups headers... " >&6; } 44358 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44359 # An SFW package seems to be installed! 44360 CUPS_FOUND=yes 44361 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44362 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44363 # A CSW package seems to be installed! 44364 CUPS_FOUND=yes 44365 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44366 fi 44367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44368 $as_echo "$CUPS_FOUND" >&6; } 44369 fi 44370 if test "x$CUPS_FOUND" = xno; then 44371 44372 # Print a helpful message on how to acquire the necessary build dependency. 44373 # cups is the help tag: freetype, cups, pulse, alsa etc 44374 MISSING_DEPENDENCY=cups 44375 44376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44377 cygwin_help $MISSING_DEPENDENCY 44378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44379 msys_help $MISSING_DEPENDENCY 44380 else 44381 PKGHANDLER_COMMAND= 44382 44383 case $PKGHANDLER in 44384 apt-get) 44385 apt_help $MISSING_DEPENDENCY ;; 44386 yum) 44387 yum_help $MISSING_DEPENDENCY ;; 44388 port) 44389 port_help $MISSING_DEPENDENCY ;; 44390 pkgutil) 44391 pkgutil_help $MISSING_DEPENDENCY ;; 44392 pkgadd) 44393 pkgadd_help $MISSING_DEPENDENCY ;; 44394 esac 44395 44396 if test "x$PKGHANDLER_COMMAND" != x; then 44397 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44398 fi 44399 fi 44400 44401 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44402 fi 44403 fi 44404 44405 44406 44407 44408 44409 44410 ############################################################################### 44411 # 44412 # The ubiquitous freetype library is used to render fonts. 44413 # 44414 44415 # Check whether --with-freetype was given. 44416 if test "${with_freetype+set}" = set; then : 44417 withval=$with_freetype; 44418 fi 44419 44420 44421 # Check whether --with-freetype-include was given. 44422 if test "${with_freetype_include+set}" = set; then : 44423 withval=$with_freetype_include; 44424 fi 44425 44426 44427 # Check whether --with-freetype-lib was given. 44428 if test "${with_freetype_lib+set}" = set; then : 44429 withval=$with_freetype_lib; 44430 fi 44431 44432 44433 # Check whether --with-freetype-src was given. 44434 if test "${with_freetype_src+set}" = set; then : 44435 withval=$with_freetype_src; 44436 fi 44437 44438 # Check whether --enable-freetype-bundling was given. 44439 if test "${enable_freetype_bundling+set}" = set; then : 44440 enableval=$enable_freetype_bundling; 44441 fi 44442 44443 44444 # Need to specify explicitly since it needs to be overridden on some versions of macosx 44445 FREETYPE_BASE_NAME=freetype 44446 FREETYPE_CFLAGS= 44447 FREETYPE_LIBS= 44448 FREETYPE_BUNDLE_LIB_PATH= 44449 44450 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44451 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 44452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44453 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44454 fi 44455 if test "x$enable_freetype_bundling" != x; then 44456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44457 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44458 fi 44459 else 44460 # freetype is needed to build; go get it! 44461 44462 BUNDLE_FREETYPE="$enable_freetype_bundling" 44463 44464 if test "x$with_freetype_src" != x; then 44465 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44466 # Try to build freetype if --with-freetype-src was given on Windows 44467 44468 FREETYPE_SRC_PATH="$with_freetype_src" 44469 BUILD_FREETYPE=yes 44470 44471 # Check if the freetype sources are acessible.. 44472 if ! test -d $FREETYPE_SRC_PATH; then 44473 { $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 44474 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44475 BUILD_FREETYPE=no 44476 fi 44477 # ..and contain a vc2010 project file 44478 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44479 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44480 { $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 44481 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44482 BUILD_FREETYPE=no 44483 fi 44484 # Now check if configure found a version of 'msbuild.exe' 44485 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44486 { $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 44487 $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;} 44488 BUILD_FREETYPE=no 44489 fi 44490 44491 # Ready to go.. 44492 if test "x$BUILD_FREETYPE" = xyes; then 44493 44494 # msbuild requires trailing slashes for output directories 44495 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44496 freetype_lib_path_unix="$freetype_lib_path" 44497 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44498 44499 unix_path="$vcxproj_path" 44500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44501 windows_path=`$CYGPATH -m "$unix_path"` 44502 vcxproj_path="$windows_path" 44503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44504 windows_path=`cmd //c echo $unix_path` 44505 vcxproj_path="$windows_path" 44506 fi 44507 44508 44509 unix_path="$freetype_lib_path" 44510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44511 windows_path=`$CYGPATH -m "$unix_path"` 44512 freetype_lib_path="$windows_path" 44513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44514 windows_path=`cmd //c echo $unix_path` 44515 freetype_lib_path="$windows_path" 44516 fi 44517 44518 44519 unix_path="$freetype_obj_path" 44520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44521 windows_path=`$CYGPATH -m "$unix_path"` 44522 freetype_obj_path="$windows_path" 44523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44524 windows_path=`cmd //c echo $unix_path` 44525 freetype_obj_path="$windows_path" 44526 fi 44527 44528 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44529 freetype_platform=x64 44530 else 44531 freetype_platform=win32 44532 fi 44533 44534 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44535 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44536 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44537 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44538 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44539 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44540 44541 # First we try to build the freetype.dll 44542 $ECHO -e "@echo off\n"\ 44543 "$MSBUILD $vcxproj_path "\ 44544 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44545 "/p:Configuration=\"Release Multithreaded\" "\ 44546 "/p:Platform=$freetype_platform "\ 44547 "/p:ConfigurationType=DynamicLibrary "\ 44548 "/p:TargetName=freetype "\ 44549 "/p:OutDir=\"$freetype_lib_path\" "\ 44550 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44551 cmd /c freetype.bat 44552 44553 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44554 # If that succeeds we also build freetype.lib 44555 $ECHO -e "@echo off\n"\ 44556 "$MSBUILD $vcxproj_path "\ 44557 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44558 "/p:Configuration=\"Release Multithreaded\" "\ 44559 "/p:Platform=$freetype_platform "\ 44560 "/p:ConfigurationType=StaticLibrary "\ 44561 "/p:TargetName=freetype "\ 44562 "/p:OutDir=\"$freetype_lib_path\" "\ 44563 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44564 cmd /c freetype.bat 44565 44566 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44567 # Once we build both, lib and dll, set freetype lib and include path appropriately 44568 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44569 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44570 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44571 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44572 else 44573 BUILD_FREETYPE=no 44574 fi 44575 else 44576 BUILD_FREETYPE=no 44577 fi 44578 fi 44579 44580 if test "x$BUILD_FREETYPE" = xyes; then 44581 # Okay, we built it. Check that it works. 44582 44583 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44584 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44585 METHOD="--with-freetype-src" 44586 44587 # Let's start with an optimistic view of the world :-) 44588 FOUND_FREETYPE=yes 44589 44590 # First look for the canonical freetype main include file ft2build.h. 44591 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44592 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44593 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44594 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44595 # Fail. 44596 FOUND_FREETYPE=no 44597 fi 44598 fi 44599 44600 if test "x$FOUND_FREETYPE" = xyes; then 44601 # Include file found, let's continue the sanity check. 44602 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44603 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44604 44605 # Reset to default value 44606 FREETYPE_BASE_NAME=freetype 44607 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44608 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44609 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44610 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44611 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44612 # for the .6 version explicitly. 44613 FREETYPE_BASE_NAME=freetype.6 44614 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44615 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44616 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44617 else 44618 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44619 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44620 FOUND_FREETYPE=no 44621 fi 44622 else 44623 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44624 # On Windows, we will need both .lib and .dll file. 44625 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44626 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44627 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44628 FOUND_FREETYPE=no 44629 fi 44630 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44631 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44632 # Found lib in isa dir, use that instead. 44633 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44634 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44635 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44636 fi 44637 fi 44638 fi 44639 44640 if test "x$FOUND_FREETYPE" = xyes; then 44641 44642 # Only process if variable expands to non-empty 44643 44644 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 44645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44646 44647 # Input might be given as Windows format, start by converting to 44648 # unix format. 44649 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44650 new_path=`$CYGPATH -u "$path"` 44651 44652 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44653 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44654 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44655 # "foo.exe" is OK but "foo" is an error. 44656 # 44657 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44658 # It is also a way to make sure we got the proper file name for the real test later on. 44659 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44660 if test "x$test_shortpath" = x; then 44661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44662 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44663 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44664 fi 44665 44666 # Call helper function which possibly converts this using DOS-style short mode. 44667 # If so, the updated path is stored in $new_path. 44668 44669 input_path="$new_path" 44670 # Check if we need to convert this using DOS-style short mode. If the path 44671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44672 # take no chances and rewrite it. 44673 # Note: m4 eats our [], so we need to use [ and ] instead. 44674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44675 if test "x$has_forbidden_chars" != x; then 44676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44677 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44678 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44679 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44680 # Going to short mode and back again did indeed matter. Since short mode is 44681 # case insensitive, let's make it lowercase to improve readability. 44682 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44683 # Now convert it back to Unix-stile (cygpath) 44684 input_path=`$CYGPATH -u "$shortmode_path"` 44685 new_path="$input_path" 44686 fi 44687 fi 44688 44689 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44690 if test "x$test_cygdrive_prefix" = x; then 44691 # As a simple fix, exclude /usr/bin since it's not a real path. 44692 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44693 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44694 # a path prefixed by /cygdrive for fixpath to work. 44695 new_path="$CYGWIN_ROOT_PATH$input_path" 44696 fi 44697 fi 44698 44699 44700 if test "x$path" != "x$new_path"; then 44701 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44702 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44703 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44704 fi 44705 44706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44707 44708 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44709 has_colon=`$ECHO $path | $GREP ^.:` 44710 new_path="$path" 44711 if test "x$has_colon" = x; then 44712 # Not in mixed or Windows style, start by that. 44713 new_path=`cmd //c echo $path` 44714 fi 44715 44716 44717 input_path="$new_path" 44718 # Check if we need to convert this using DOS-style short mode. If the path 44719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44720 # take no chances and rewrite it. 44721 # Note: m4 eats our [], so we need to use [ and ] instead. 44722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44723 if test "x$has_forbidden_chars" != x; then 44724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44725 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44726 fi 44727 44728 44729 windows_path="$new_path" 44730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44731 unix_path=`$CYGPATH -u "$windows_path"` 44732 new_path="$unix_path" 44733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44735 new_path="$unix_path" 44736 fi 44737 44738 if test "x$path" != "x$new_path"; then 44739 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44740 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44741 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44742 fi 44743 44744 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44745 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44746 44747 else 44748 # We're on a unix platform. Hooray! :) 44749 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44750 has_space=`$ECHO "$path" | $GREP " "` 44751 if test "x$has_space" != x; then 44752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44753 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44754 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44755 fi 44756 44757 # Use eval to expand a potential ~ 44758 eval path="$path" 44759 if test ! -f "$path" && test ! -d "$path"; then 44760 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44761 fi 44762 44763 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44764 fi 44765 fi 44766 44767 44768 # Only process if variable expands to non-empty 44769 44770 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44772 44773 # Input might be given as Windows format, start by converting to 44774 # unix format. 44775 path="$POTENTIAL_FREETYPE_LIB_PATH" 44776 new_path=`$CYGPATH -u "$path"` 44777 44778 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44779 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44780 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44781 # "foo.exe" is OK but "foo" is an error. 44782 # 44783 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44784 # It is also a way to make sure we got the proper file name for the real test later on. 44785 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44786 if test "x$test_shortpath" = x; then 44787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44788 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44789 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44790 fi 44791 44792 # Call helper function which possibly converts this using DOS-style short mode. 44793 # If so, the updated path is stored in $new_path. 44794 44795 input_path="$new_path" 44796 # Check if we need to convert this using DOS-style short mode. If the path 44797 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44798 # take no chances and rewrite it. 44799 # Note: m4 eats our [], so we need to use [ and ] instead. 44800 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44801 if test "x$has_forbidden_chars" != x; then 44802 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44803 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44804 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44805 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44806 # Going to short mode and back again did indeed matter. Since short mode is 44807 # case insensitive, let's make it lowercase to improve readability. 44808 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44809 # Now convert it back to Unix-stile (cygpath) 44810 input_path=`$CYGPATH -u "$shortmode_path"` 44811 new_path="$input_path" 44812 fi 44813 fi 44814 44815 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44816 if test "x$test_cygdrive_prefix" = x; then 44817 # As a simple fix, exclude /usr/bin since it's not a real path. 44818 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44819 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44820 # a path prefixed by /cygdrive for fixpath to work. 44821 new_path="$CYGWIN_ROOT_PATH$input_path" 44822 fi 44823 fi 44824 44825 44826 if test "x$path" != "x$new_path"; then 44827 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44828 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44829 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44830 fi 44831 44832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44833 44834 path="$POTENTIAL_FREETYPE_LIB_PATH" 44835 has_colon=`$ECHO $path | $GREP ^.:` 44836 new_path="$path" 44837 if test "x$has_colon" = x; then 44838 # Not in mixed or Windows style, start by that. 44839 new_path=`cmd //c echo $path` 44840 fi 44841 44842 44843 input_path="$new_path" 44844 # Check if we need to convert this using DOS-style short mode. If the path 44845 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44846 # take no chances and rewrite it. 44847 # Note: m4 eats our [], so we need to use [ and ] instead. 44848 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44849 if test "x$has_forbidden_chars" != x; then 44850 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44851 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44852 fi 44853 44854 44855 windows_path="$new_path" 44856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44857 unix_path=`$CYGPATH -u "$windows_path"` 44858 new_path="$unix_path" 44859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44861 new_path="$unix_path" 44862 fi 44863 44864 if test "x$path" != "x$new_path"; then 44865 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44867 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44868 fi 44869 44870 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44871 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44872 44873 else 44874 # We're on a unix platform. Hooray! :) 44875 path="$POTENTIAL_FREETYPE_LIB_PATH" 44876 has_space=`$ECHO "$path" | $GREP " "` 44877 if test "x$has_space" != x; then 44878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44879 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44880 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44881 fi 44882 44883 # Use eval to expand a potential ~ 44884 eval path="$path" 44885 if test ! -f "$path" && test ! -d "$path"; then 44886 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44887 fi 44888 44889 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44890 fi 44891 fi 44892 44893 44894 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44896 $as_echo_n "checking for freetype includes... " >&6; } 44897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44898 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44899 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44901 $as_echo_n "checking for freetype libraries... " >&6; } 44902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44903 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44904 fi 44905 44906 if test "x$FOUND_FREETYPE" != xyes; then 44907 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44908 fi 44909 else 44910 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44911 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44912 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44913 fi 44914 else 44915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44916 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44917 fi 44918 fi 44919 44920 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44921 # User has specified settings 44922 44923 if test "x$BUNDLE_FREETYPE" = x; then 44924 # If not specified, default is to bundle freetype 44925 BUNDLE_FREETYPE=yes 44926 fi 44927 44928 if test "x$with_freetype" != x; then 44929 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44930 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44931 fi 44932 44933 # Allow --with-freetype-lib and --with-freetype-include to override 44934 if test "x$with_freetype_include" != x; then 44935 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44936 fi 44937 if test "x$with_freetype_lib" != x; then 44938 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44939 fi 44940 44941 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44942 # Okay, we got it. Check that it works. 44943 44944 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44945 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44946 METHOD="--with-freetype" 44947 44948 # Let's start with an optimistic view of the world :-) 44949 FOUND_FREETYPE=yes 44950 44951 # First look for the canonical freetype main include file ft2build.h. 44952 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44953 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44954 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44955 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44956 # Fail. 44957 FOUND_FREETYPE=no 44958 fi 44959 fi 44960 44961 if test "x$FOUND_FREETYPE" = xyes; then 44962 # Include file found, let's continue the sanity check. 44963 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44964 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44965 44966 # Reset to default value 44967 FREETYPE_BASE_NAME=freetype 44968 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44969 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44970 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44971 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44972 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44973 # for the .6 version explicitly. 44974 FREETYPE_BASE_NAME=freetype.6 44975 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44976 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44977 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44978 else 44979 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44980 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44981 FOUND_FREETYPE=no 44982 fi 44983 else 44984 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44985 # On Windows, we will need both .lib and .dll file. 44986 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44987 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44988 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44989 FOUND_FREETYPE=no 44990 fi 44991 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44992 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44993 # Found lib in isa dir, use that instead. 44994 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44995 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44996 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44997 fi 44998 fi 44999 fi 45000 45001 if test "x$FOUND_FREETYPE" = xyes; then 45002 45003 # Only process if variable expands to non-empty 45004 45005 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45007 45008 # Input might be given as Windows format, start by converting to 45009 # unix format. 45010 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45011 new_path=`$CYGPATH -u "$path"` 45012 45013 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45014 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45015 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45016 # "foo.exe" is OK but "foo" is an error. 45017 # 45018 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45019 # It is also a way to make sure we got the proper file name for the real test later on. 45020 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45021 if test "x$test_shortpath" = x; then 45022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45023 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45024 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45025 fi 45026 45027 # Call helper function which possibly converts this using DOS-style short mode. 45028 # If so, the updated path is stored in $new_path. 45029 45030 input_path="$new_path" 45031 # Check if we need to convert this using DOS-style short mode. If the path 45032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45033 # take no chances and rewrite it. 45034 # Note: m4 eats our [], so we need to use [ and ] instead. 45035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45036 if test "x$has_forbidden_chars" != x; then 45037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45038 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45039 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45040 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45041 # Going to short mode and back again did indeed matter. Since short mode is 45042 # case insensitive, let's make it lowercase to improve readability. 45043 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45044 # Now convert it back to Unix-stile (cygpath) 45045 input_path=`$CYGPATH -u "$shortmode_path"` 45046 new_path="$input_path" 45047 fi 45048 fi 45049 45050 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45051 if test "x$test_cygdrive_prefix" = x; then 45052 # As a simple fix, exclude /usr/bin since it's not a real path. 45053 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45054 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45055 # a path prefixed by /cygdrive for fixpath to work. 45056 new_path="$CYGWIN_ROOT_PATH$input_path" 45057 fi 45058 fi 45059 45060 45061 if test "x$path" != "x$new_path"; then 45062 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45064 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45065 fi 45066 45067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45068 45069 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45070 has_colon=`$ECHO $path | $GREP ^.:` 45071 new_path="$path" 45072 if test "x$has_colon" = x; then 45073 # Not in mixed or Windows style, start by that. 45074 new_path=`cmd //c echo $path` 45075 fi 45076 45077 45078 input_path="$new_path" 45079 # Check if we need to convert this using DOS-style short mode. If the path 45080 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45081 # take no chances and rewrite it. 45082 # Note: m4 eats our [], so we need to use [ and ] instead. 45083 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45084 if test "x$has_forbidden_chars" != x; then 45085 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45086 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45087 fi 45088 45089 45090 windows_path="$new_path" 45091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45092 unix_path=`$CYGPATH -u "$windows_path"` 45093 new_path="$unix_path" 45094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45096 new_path="$unix_path" 45097 fi 45098 45099 if test "x$path" != "x$new_path"; then 45100 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45102 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45103 fi 45104 45105 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45106 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45107 45108 else 45109 # We're on a unix platform. Hooray! :) 45110 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45111 has_space=`$ECHO "$path" | $GREP " "` 45112 if test "x$has_space" != x; then 45113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45114 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45115 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45116 fi 45117 45118 # Use eval to expand a potential ~ 45119 eval path="$path" 45120 if test ! -f "$path" && test ! -d "$path"; then 45121 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45122 fi 45123 45124 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45125 fi 45126 fi 45127 45128 45129 # Only process if variable expands to non-empty 45130 45131 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45133 45134 # Input might be given as Windows format, start by converting to 45135 # unix format. 45136 path="$POTENTIAL_FREETYPE_LIB_PATH" 45137 new_path=`$CYGPATH -u "$path"` 45138 45139 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45140 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45141 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45142 # "foo.exe" is OK but "foo" is an error. 45143 # 45144 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45145 # It is also a way to make sure we got the proper file name for the real test later on. 45146 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45147 if test "x$test_shortpath" = x; then 45148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45149 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45150 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45151 fi 45152 45153 # Call helper function which possibly converts this using DOS-style short mode. 45154 # If so, the updated path is stored in $new_path. 45155 45156 input_path="$new_path" 45157 # Check if we need to convert this using DOS-style short mode. If the path 45158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45159 # take no chances and rewrite it. 45160 # Note: m4 eats our [], so we need to use [ and ] instead. 45161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45162 if test "x$has_forbidden_chars" != x; then 45163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45164 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45165 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45166 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45167 # Going to short mode and back again did indeed matter. Since short mode is 45168 # case insensitive, let's make it lowercase to improve readability. 45169 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45170 # Now convert it back to Unix-stile (cygpath) 45171 input_path=`$CYGPATH -u "$shortmode_path"` 45172 new_path="$input_path" 45173 fi 45174 fi 45175 45176 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45177 if test "x$test_cygdrive_prefix" = x; then 45178 # As a simple fix, exclude /usr/bin since it's not a real path. 45179 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45180 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45181 # a path prefixed by /cygdrive for fixpath to work. 45182 new_path="$CYGWIN_ROOT_PATH$input_path" 45183 fi 45184 fi 45185 45186 45187 if test "x$path" != "x$new_path"; then 45188 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45189 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45190 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45191 fi 45192 45193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45194 45195 path="$POTENTIAL_FREETYPE_LIB_PATH" 45196 has_colon=`$ECHO $path | $GREP ^.:` 45197 new_path="$path" 45198 if test "x$has_colon" = x; then 45199 # Not in mixed or Windows style, start by that. 45200 new_path=`cmd //c echo $path` 45201 fi 45202 45203 45204 input_path="$new_path" 45205 # Check if we need to convert this using DOS-style short mode. If the path 45206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45207 # take no chances and rewrite it. 45208 # Note: m4 eats our [], so we need to use [ and ] instead. 45209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45210 if test "x$has_forbidden_chars" != x; then 45211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45212 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45213 fi 45214 45215 45216 windows_path="$new_path" 45217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45218 unix_path=`$CYGPATH -u "$windows_path"` 45219 new_path="$unix_path" 45220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45222 new_path="$unix_path" 45223 fi 45224 45225 if test "x$path" != "x$new_path"; then 45226 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45228 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45229 fi 45230 45231 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45232 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45233 45234 else 45235 # We're on a unix platform. Hooray! :) 45236 path="$POTENTIAL_FREETYPE_LIB_PATH" 45237 has_space=`$ECHO "$path" | $GREP " "` 45238 if test "x$has_space" != x; then 45239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45240 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45241 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45242 fi 45243 45244 # Use eval to expand a potential ~ 45245 eval path="$path" 45246 if test ! -f "$path" && test ! -d "$path"; then 45247 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45248 fi 45249 45250 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45251 fi 45252 fi 45253 45254 45255 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45257 $as_echo_n "checking for freetype includes... " >&6; } 45258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45259 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45260 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45262 $as_echo_n "checking for freetype libraries... " >&6; } 45263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45264 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45265 fi 45266 45267 if test "x$FOUND_FREETYPE" != xyes; then 45268 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45269 fi 45270 else 45271 # User specified only one of lib or include. This is an error. 45272 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45273 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45274 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45275 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45276 else 45277 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45278 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45279 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45280 fi 45281 fi 45282 else 45283 # User did not specify settings, but we need freetype. Try to locate it. 45284 45285 if test "x$BUNDLE_FREETYPE" = x; then 45286 # If not specified, default is to bundle freetype only on windows 45287 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45288 BUNDLE_FREETYPE=yes 45289 else 45290 BUNDLE_FREETYPE=no 45291 fi 45292 fi 45293 45294 if test "x$FOUND_FREETYPE" != xyes; then 45295 # Check builddeps 45296 45297 45298 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45299 # Source the builddeps file again, to make sure it uses the latest variables! 45300 . $builddepsfile 45301 # Look for a target and build machine specific resource! 45302 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45303 if test "x$resource" = x; then 45304 # Ok, lets instead look for a target specific resource 45305 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45306 fi 45307 if test "x$resource" = x; then 45308 # Ok, lets instead look for a build specific resource 45309 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45310 fi 45311 if test "x$resource" = x; then 45312 # Ok, lets instead look for a generic resource 45313 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45314 resource=${builddep_freetype2} 45315 fi 45316 if test "x$resource" != x; then 45317 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45318 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45319 # If the resource in the builddeps.conf file is an existing directory, 45320 # for example /java/linux/cups 45321 if test -d ${resource}; then 45322 depdir=${resource} 45323 else 45324 45325 # freetype2 is for example mymodule 45326 # $resource is for example libs/general/libmymod_1_2_3.zip 45327 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45328 # $with_builddeps_dir is for example /localhome/builddeps 45329 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45330 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45331 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45332 filename=`basename $resource` 45333 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45334 filebase=${filename%%.*} 45335 extension=${filename#*.} 45336 installdir=$with_builddeps_dir/$filebase 45337 if test ! -f $installdir/$filename.unpacked; then 45338 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45339 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45340 if test ! -d $installdir; then 45341 mkdir -p $installdir 45342 fi 45343 if test ! -d $installdir; then 45344 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45345 fi 45346 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45347 touch $tmpfile 45348 if test ! -f $tmpfile; then 45349 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45350 fi 45351 45352 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45353 # $tmpfile is the local file name for the downloaded file. 45354 VALID_TOOL=no 45355 if test "x$BDEPS_FTP" = xwget; then 45356 VALID_TOOL=yes 45357 wget -O $tmpfile $with_builddeps_server/$resource 45358 fi 45359 if test "x$BDEPS_FTP" = xlftp; then 45360 VALID_TOOL=yes 45361 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45362 fi 45363 if test "x$BDEPS_FTP" = xftp; then 45364 VALID_TOOL=yes 45365 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45366 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45367 FTPUSERPWD=${FTPSERVER%%@*} 45368 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45369 FTPUSER=${userpwd%%:*} 45370 FTPPWD=${userpwd#*@} 45371 FTPSERVER=${FTPSERVER#*@} 45372 else 45373 FTPUSER=ftp 45374 FTPPWD=ftp 45375 fi 45376 # the "pass" command does not work on some 45377 # ftp clients (read ftp.exe) but if it works, 45378 # passive mode is better! 45379 ( \ 45380 echo "user $FTPUSER $FTPPWD" ; \ 45381 echo "pass" ; \ 45382 echo "bin" ; \ 45383 echo "get $FTPPATH $tmpfile" ; \ 45384 ) | ftp -in $FTPSERVER 45385 fi 45386 if test "x$VALID_TOOL" != xyes; then 45387 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45388 fi 45389 45390 mv $tmpfile $installdir/$filename 45391 if test ! -s $installdir/$filename; then 45392 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45393 fi 45394 case "$extension" in 45395 zip) echo "Unzipping $installdir/$filename..." 45396 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45397 ;; 45398 tar.gz) echo "Untaring $installdir/$filename..." 45399 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45400 ;; 45401 tgz) echo "Untaring $installdir/$filename..." 45402 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45403 ;; 45404 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45405 ;; 45406 esac 45407 fi 45408 if test -f $installdir/$filename.unpacked; then 45409 depdir=$installdir 45410 fi 45411 45412 fi 45413 # Source the builddeps file again, because in the previous command, the depdir 45414 # was updated to point at the current build dependency install directory. 45415 . $builddepsfile 45416 # Now extract variables from the builddeps.conf files. 45417 theroot=${builddep_freetype2_ROOT} 45418 thecflags=${builddep_freetype2_CFLAGS} 45419 thelibs=${builddep_freetype2_LIBS} 45420 if test "x$depdir" = x; then 45421 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45422 fi 45423 FREETYPE=$depdir 45424 if test "x$theroot" != x; then 45425 FREETYPE="$theroot" 45426 fi 45427 if test "x$thecflags" != x; then 45428 FREETYPE_CFLAGS="$thecflags" 45429 fi 45430 if test "x$thelibs" != x; then 45431 FREETYPE_LIBS="$thelibs" 45432 fi 45433 FOUND_FREETYPE=yes 45434 else FOUND_FREETYPE=no 45435 45436 fi 45437 else FOUND_FREETYPE=no 45438 45439 fi 45440 45441 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45442 if test "x$FOUND_FREETYPE" = xyes; then 45443 if test "x$BUNDLE_FREETYPE" = xyes; then 45444 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45445 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45446 FOUND_FREETYPE=no 45447 else 45448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45449 $as_echo_n "checking for freetype... " >&6; } 45450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45451 $as_echo "yes (using builddeps)" >&6; } 45452 fi 45453 fi 45454 fi 45455 45456 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45457 if test "x$SYSROOT" = x; then 45458 if test "x$FOUND_FREETYPE" != xyes; then 45459 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45460 if test "x$PKG_CONFIG" != x; then 45461 45462 pkg_failed=no 45463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45464 $as_echo_n "checking for FREETYPE... " >&6; } 45465 45466 if test -n "$FREETYPE_CFLAGS"; then 45467 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45468 elif test -n "$PKG_CONFIG"; then 45469 if test -n "$PKG_CONFIG" && \ 45470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45471 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45472 ac_status=$? 45473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45474 test $ac_status = 0; }; then 45475 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45476 else 45477 pkg_failed=yes 45478 fi 45479 else 45480 pkg_failed=untried 45481 fi 45482 if test -n "$FREETYPE_LIBS"; then 45483 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45484 elif test -n "$PKG_CONFIG"; then 45485 if test -n "$PKG_CONFIG" && \ 45486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45487 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45488 ac_status=$? 45489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45490 test $ac_status = 0; }; then 45491 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45492 else 45493 pkg_failed=yes 45494 fi 45495 else 45496 pkg_failed=untried 45497 fi 45498 45499 45500 45501 if test $pkg_failed = yes; then 45502 45503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45504 _pkg_short_errors_supported=yes 45505 else 45506 _pkg_short_errors_supported=no 45507 fi 45508 if test $_pkg_short_errors_supported = yes; then 45509 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45510 else 45511 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45512 fi 45513 # Put the nasty error message in config.log where it belongs 45514 echo "$FREETYPE_PKG_ERRORS" >&5 45515 45516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45517 $as_echo "no" >&6; } 45518 FOUND_FREETYPE=no 45519 elif test $pkg_failed = untried; then 45520 FOUND_FREETYPE=no 45521 else 45522 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45523 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45525 $as_echo "yes" >&6; } 45526 FOUND_FREETYPE=yes 45527 fi 45528 if test "x$FOUND_FREETYPE" = xyes; then 45529 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45530 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45531 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45532 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45533 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45534 fi 45535 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45536 if test "x$BUNDLE_FREETYPE" = xyes; then 45537 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45538 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45539 FOUND_FREETYPE=no 45540 else 45541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45542 $as_echo_n "checking for freetype... " >&6; } 45543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45544 $as_echo "yes (using pkg-config)" >&6; } 45545 fi 45546 fi 45547 fi 45548 fi 45549 fi 45550 45551 if test "x$FOUND_FREETYPE" != xyes; then 45552 # Check in well-known locations 45553 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45554 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45555 45556 windows_path="$FREETYPE_BASE_DIR" 45557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45558 unix_path=`$CYGPATH -u "$windows_path"` 45559 FREETYPE_BASE_DIR="$unix_path" 45560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45562 FREETYPE_BASE_DIR="$unix_path" 45563 fi 45564 45565 45566 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45567 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45568 METHOD="well-known location" 45569 45570 # Let's start with an optimistic view of the world :-) 45571 FOUND_FREETYPE=yes 45572 45573 # First look for the canonical freetype main include file ft2build.h. 45574 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45575 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45576 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45577 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45578 # Fail. 45579 FOUND_FREETYPE=no 45580 fi 45581 fi 45582 45583 if test "x$FOUND_FREETYPE" = xyes; then 45584 # Include file found, let's continue the sanity check. 45585 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45586 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45587 45588 # Reset to default value 45589 FREETYPE_BASE_NAME=freetype 45590 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45591 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45592 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45593 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45594 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45595 # for the .6 version explicitly. 45596 FREETYPE_BASE_NAME=freetype.6 45597 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45598 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45599 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45600 else 45601 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45602 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45603 FOUND_FREETYPE=no 45604 fi 45605 else 45606 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45607 # On Windows, we will need both .lib and .dll file. 45608 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45609 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45610 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45611 FOUND_FREETYPE=no 45612 fi 45613 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45614 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45615 # Found lib in isa dir, use that instead. 45616 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45618 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45619 fi 45620 fi 45621 fi 45622 45623 if test "x$FOUND_FREETYPE" = xyes; then 45624 45625 # Only process if variable expands to non-empty 45626 45627 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45629 45630 # Input might be given as Windows format, start by converting to 45631 # unix format. 45632 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45633 new_path=`$CYGPATH -u "$path"` 45634 45635 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45636 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45637 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45638 # "foo.exe" is OK but "foo" is an error. 45639 # 45640 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45641 # It is also a way to make sure we got the proper file name for the real test later on. 45642 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45643 if test "x$test_shortpath" = x; then 45644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45645 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45646 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45647 fi 45648 45649 # Call helper function which possibly converts this using DOS-style short mode. 45650 # If so, the updated path is stored in $new_path. 45651 45652 input_path="$new_path" 45653 # Check if we need to convert this using DOS-style short mode. If the path 45654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45655 # take no chances and rewrite it. 45656 # Note: m4 eats our [], so we need to use [ and ] instead. 45657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45658 if test "x$has_forbidden_chars" != x; then 45659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45660 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45661 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45662 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45663 # Going to short mode and back again did indeed matter. Since short mode is 45664 # case insensitive, let's make it lowercase to improve readability. 45665 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45666 # Now convert it back to Unix-stile (cygpath) 45667 input_path=`$CYGPATH -u "$shortmode_path"` 45668 new_path="$input_path" 45669 fi 45670 fi 45671 45672 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45673 if test "x$test_cygdrive_prefix" = x; then 45674 # As a simple fix, exclude /usr/bin since it's not a real path. 45675 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45676 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45677 # a path prefixed by /cygdrive for fixpath to work. 45678 new_path="$CYGWIN_ROOT_PATH$input_path" 45679 fi 45680 fi 45681 45682 45683 if test "x$path" != "x$new_path"; then 45684 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45685 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45686 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45687 fi 45688 45689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45690 45691 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45692 has_colon=`$ECHO $path | $GREP ^.:` 45693 new_path="$path" 45694 if test "x$has_colon" = x; then 45695 # Not in mixed or Windows style, start by that. 45696 new_path=`cmd //c echo $path` 45697 fi 45698 45699 45700 input_path="$new_path" 45701 # Check if we need to convert this using DOS-style short mode. If the path 45702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45703 # take no chances and rewrite it. 45704 # Note: m4 eats our [], so we need to use [ and ] instead. 45705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45706 if test "x$has_forbidden_chars" != x; then 45707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45708 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45709 fi 45710 45711 45712 windows_path="$new_path" 45713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45714 unix_path=`$CYGPATH -u "$windows_path"` 45715 new_path="$unix_path" 45716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45718 new_path="$unix_path" 45719 fi 45720 45721 if test "x$path" != "x$new_path"; then 45722 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45723 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45724 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45725 fi 45726 45727 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45728 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45729 45730 else 45731 # We're on a unix platform. Hooray! :) 45732 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45733 has_space=`$ECHO "$path" | $GREP " "` 45734 if test "x$has_space" != x; then 45735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45736 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45737 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45738 fi 45739 45740 # Use eval to expand a potential ~ 45741 eval path="$path" 45742 if test ! -f "$path" && test ! -d "$path"; then 45743 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45744 fi 45745 45746 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45747 fi 45748 fi 45749 45750 45751 # Only process if variable expands to non-empty 45752 45753 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45755 45756 # Input might be given as Windows format, start by converting to 45757 # unix format. 45758 path="$POTENTIAL_FREETYPE_LIB_PATH" 45759 new_path=`$CYGPATH -u "$path"` 45760 45761 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45762 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45763 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45764 # "foo.exe" is OK but "foo" is an error. 45765 # 45766 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45767 # It is also a way to make sure we got the proper file name for the real test later on. 45768 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45769 if test "x$test_shortpath" = x; then 45770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45771 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45772 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45773 fi 45774 45775 # Call helper function which possibly converts this using DOS-style short mode. 45776 # If so, the updated path is stored in $new_path. 45777 45778 input_path="$new_path" 45779 # Check if we need to convert this using DOS-style short mode. If the path 45780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45781 # take no chances and rewrite it. 45782 # Note: m4 eats our [], so we need to use [ and ] instead. 45783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45784 if test "x$has_forbidden_chars" != x; then 45785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45786 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45787 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45788 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45789 # Going to short mode and back again did indeed matter. Since short mode is 45790 # case insensitive, let's make it lowercase to improve readability. 45791 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45792 # Now convert it back to Unix-stile (cygpath) 45793 input_path=`$CYGPATH -u "$shortmode_path"` 45794 new_path="$input_path" 45795 fi 45796 fi 45797 45798 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45799 if test "x$test_cygdrive_prefix" = x; then 45800 # As a simple fix, exclude /usr/bin since it's not a real path. 45801 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45802 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45803 # a path prefixed by /cygdrive for fixpath to work. 45804 new_path="$CYGWIN_ROOT_PATH$input_path" 45805 fi 45806 fi 45807 45808 45809 if test "x$path" != "x$new_path"; then 45810 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45812 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45813 fi 45814 45815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45816 45817 path="$POTENTIAL_FREETYPE_LIB_PATH" 45818 has_colon=`$ECHO $path | $GREP ^.:` 45819 new_path="$path" 45820 if test "x$has_colon" = x; then 45821 # Not in mixed or Windows style, start by that. 45822 new_path=`cmd //c echo $path` 45823 fi 45824 45825 45826 input_path="$new_path" 45827 # Check if we need to convert this using DOS-style short mode. If the path 45828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45829 # take no chances and rewrite it. 45830 # Note: m4 eats our [], so we need to use [ and ] instead. 45831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45832 if test "x$has_forbidden_chars" != x; then 45833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45834 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45835 fi 45836 45837 45838 windows_path="$new_path" 45839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45840 unix_path=`$CYGPATH -u "$windows_path"` 45841 new_path="$unix_path" 45842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45844 new_path="$unix_path" 45845 fi 45846 45847 if test "x$path" != "x$new_path"; then 45848 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45850 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45851 fi 45852 45853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45855 45856 else 45857 # We're on a unix platform. Hooray! :) 45858 path="$POTENTIAL_FREETYPE_LIB_PATH" 45859 has_space=`$ECHO "$path" | $GREP " "` 45860 if test "x$has_space" != x; then 45861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45862 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45863 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45864 fi 45865 45866 # Use eval to expand a potential ~ 45867 eval path="$path" 45868 if test ! -f "$path" && test ! -d "$path"; then 45869 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45870 fi 45871 45872 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45873 fi 45874 fi 45875 45876 45877 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45879 $as_echo_n "checking for freetype includes... " >&6; } 45880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45881 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45882 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45884 $as_echo_n "checking for freetype libraries... " >&6; } 45885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45886 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45887 fi 45888 45889 if test "x$FOUND_FREETYPE" != xyes; then 45890 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45891 45892 windows_path="$FREETYPE_BASE_DIR" 45893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45894 unix_path=`$CYGPATH -u "$windows_path"` 45895 FREETYPE_BASE_DIR="$unix_path" 45896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45898 FREETYPE_BASE_DIR="$unix_path" 45899 fi 45900 45901 45902 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45903 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45904 METHOD="well-known location" 45905 45906 # Let's start with an optimistic view of the world :-) 45907 FOUND_FREETYPE=yes 45908 45909 # First look for the canonical freetype main include file ft2build.h. 45910 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45911 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45912 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45913 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45914 # Fail. 45915 FOUND_FREETYPE=no 45916 fi 45917 fi 45918 45919 if test "x$FOUND_FREETYPE" = xyes; then 45920 # Include file found, let's continue the sanity check. 45921 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45922 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45923 45924 # Reset to default value 45925 FREETYPE_BASE_NAME=freetype 45926 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45927 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45928 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45929 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45930 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45931 # for the .6 version explicitly. 45932 FREETYPE_BASE_NAME=freetype.6 45933 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45934 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45935 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45936 else 45937 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45938 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45939 FOUND_FREETYPE=no 45940 fi 45941 else 45942 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45943 # On Windows, we will need both .lib and .dll file. 45944 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45945 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45946 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45947 FOUND_FREETYPE=no 45948 fi 45949 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45950 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45951 # Found lib in isa dir, use that instead. 45952 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45953 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45954 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45955 fi 45956 fi 45957 fi 45958 45959 if test "x$FOUND_FREETYPE" = xyes; then 45960 45961 # Only process if variable expands to non-empty 45962 45963 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45965 45966 # Input might be given as Windows format, start by converting to 45967 # unix format. 45968 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45969 new_path=`$CYGPATH -u "$path"` 45970 45971 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45972 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45973 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45974 # "foo.exe" is OK but "foo" is an error. 45975 # 45976 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45977 # It is also a way to make sure we got the proper file name for the real test later on. 45978 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45979 if test "x$test_shortpath" = x; then 45980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45981 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45982 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45983 fi 45984 45985 # Call helper function which possibly converts this using DOS-style short mode. 45986 # If so, the updated path is stored in $new_path. 45987 45988 input_path="$new_path" 45989 # Check if we need to convert this using DOS-style short mode. If the path 45990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45991 # take no chances and rewrite it. 45992 # Note: m4 eats our [], so we need to use [ and ] instead. 45993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45994 if test "x$has_forbidden_chars" != x; then 45995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45996 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45997 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45998 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45999 # Going to short mode and back again did indeed matter. Since short mode is 46000 # case insensitive, let's make it lowercase to improve readability. 46001 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46002 # Now convert it back to Unix-stile (cygpath) 46003 input_path=`$CYGPATH -u "$shortmode_path"` 46004 new_path="$input_path" 46005 fi 46006 fi 46007 46008 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46009 if test "x$test_cygdrive_prefix" = x; then 46010 # As a simple fix, exclude /usr/bin since it's not a real path. 46011 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46012 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46013 # a path prefixed by /cygdrive for fixpath to work. 46014 new_path="$CYGWIN_ROOT_PATH$input_path" 46015 fi 46016 fi 46017 46018 46019 if test "x$path" != "x$new_path"; then 46020 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46022 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46023 fi 46024 46025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46026 46027 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46028 has_colon=`$ECHO $path | $GREP ^.:` 46029 new_path="$path" 46030 if test "x$has_colon" = x; then 46031 # Not in mixed or Windows style, start by that. 46032 new_path=`cmd //c echo $path` 46033 fi 46034 46035 46036 input_path="$new_path" 46037 # Check if we need to convert this using DOS-style short mode. If the path 46038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46039 # take no chances and rewrite it. 46040 # Note: m4 eats our [], so we need to use [ and ] instead. 46041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46042 if test "x$has_forbidden_chars" != x; then 46043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46044 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46045 fi 46046 46047 46048 windows_path="$new_path" 46049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46050 unix_path=`$CYGPATH -u "$windows_path"` 46051 new_path="$unix_path" 46052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46054 new_path="$unix_path" 46055 fi 46056 46057 if test "x$path" != "x$new_path"; then 46058 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46060 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46061 fi 46062 46063 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46064 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46065 46066 else 46067 # We're on a unix platform. Hooray! :) 46068 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46069 has_space=`$ECHO "$path" | $GREP " "` 46070 if test "x$has_space" != x; then 46071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46072 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46073 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46074 fi 46075 46076 # Use eval to expand a potential ~ 46077 eval path="$path" 46078 if test ! -f "$path" && test ! -d "$path"; then 46079 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46080 fi 46081 46082 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46083 fi 46084 fi 46085 46086 46087 # Only process if variable expands to non-empty 46088 46089 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46091 46092 # Input might be given as Windows format, start by converting to 46093 # unix format. 46094 path="$POTENTIAL_FREETYPE_LIB_PATH" 46095 new_path=`$CYGPATH -u "$path"` 46096 46097 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46098 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46099 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46100 # "foo.exe" is OK but "foo" is an error. 46101 # 46102 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46103 # It is also a way to make sure we got the proper file name for the real test later on. 46104 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46105 if test "x$test_shortpath" = x; then 46106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46107 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46108 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46109 fi 46110 46111 # Call helper function which possibly converts this using DOS-style short mode. 46112 # If so, the updated path is stored in $new_path. 46113 46114 input_path="$new_path" 46115 # Check if we need to convert this using DOS-style short mode. If the path 46116 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46117 # take no chances and rewrite it. 46118 # Note: m4 eats our [], so we need to use [ and ] instead. 46119 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46120 if test "x$has_forbidden_chars" != x; then 46121 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46122 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46123 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46124 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46125 # Going to short mode and back again did indeed matter. Since short mode is 46126 # case insensitive, let's make it lowercase to improve readability. 46127 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46128 # Now convert it back to Unix-stile (cygpath) 46129 input_path=`$CYGPATH -u "$shortmode_path"` 46130 new_path="$input_path" 46131 fi 46132 fi 46133 46134 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46135 if test "x$test_cygdrive_prefix" = x; then 46136 # As a simple fix, exclude /usr/bin since it's not a real path. 46137 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46138 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46139 # a path prefixed by /cygdrive for fixpath to work. 46140 new_path="$CYGWIN_ROOT_PATH$input_path" 46141 fi 46142 fi 46143 46144 46145 if test "x$path" != "x$new_path"; then 46146 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46148 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46149 fi 46150 46151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46152 46153 path="$POTENTIAL_FREETYPE_LIB_PATH" 46154 has_colon=`$ECHO $path | $GREP ^.:` 46155 new_path="$path" 46156 if test "x$has_colon" = x; then 46157 # Not in mixed or Windows style, start by that. 46158 new_path=`cmd //c echo $path` 46159 fi 46160 46161 46162 input_path="$new_path" 46163 # Check if we need to convert this using DOS-style short mode. If the path 46164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46165 # take no chances and rewrite it. 46166 # Note: m4 eats our [], so we need to use [ and ] instead. 46167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46168 if test "x$has_forbidden_chars" != x; then 46169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46170 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46171 fi 46172 46173 46174 windows_path="$new_path" 46175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46176 unix_path=`$CYGPATH -u "$windows_path"` 46177 new_path="$unix_path" 46178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46180 new_path="$unix_path" 46181 fi 46182 46183 if test "x$path" != "x$new_path"; then 46184 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46186 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46187 fi 46188 46189 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46190 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46191 46192 else 46193 # We're on a unix platform. Hooray! :) 46194 path="$POTENTIAL_FREETYPE_LIB_PATH" 46195 has_space=`$ECHO "$path" | $GREP " "` 46196 if test "x$has_space" != x; then 46197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46198 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46199 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46200 fi 46201 46202 # Use eval to expand a potential ~ 46203 eval path="$path" 46204 if test ! -f "$path" && test ! -d "$path"; then 46205 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46206 fi 46207 46208 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46209 fi 46210 fi 46211 46212 46213 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46215 $as_echo_n "checking for freetype includes... " >&6; } 46216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46217 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46218 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46220 $as_echo_n "checking for freetype libraries... " >&6; } 46221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46222 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46223 fi 46224 46225 fi 46226 else 46227 FREETYPE_BASE_DIR="$SYSROOT/usr" 46228 46229 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46230 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46231 METHOD="well-known location" 46232 46233 # Let's start with an optimistic view of the world :-) 46234 FOUND_FREETYPE=yes 46235 46236 # First look for the canonical freetype main include file ft2build.h. 46237 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46238 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46239 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46240 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46241 # Fail. 46242 FOUND_FREETYPE=no 46243 fi 46244 fi 46245 46246 if test "x$FOUND_FREETYPE" = xyes; then 46247 # Include file found, let's continue the sanity check. 46248 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46249 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46250 46251 # Reset to default value 46252 FREETYPE_BASE_NAME=freetype 46253 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46254 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46255 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46256 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46257 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46258 # for the .6 version explicitly. 46259 FREETYPE_BASE_NAME=freetype.6 46260 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46261 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46262 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46263 else 46264 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46265 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46266 FOUND_FREETYPE=no 46267 fi 46268 else 46269 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46270 # On Windows, we will need both .lib and .dll file. 46271 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46272 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46273 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46274 FOUND_FREETYPE=no 46275 fi 46276 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46277 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46278 # Found lib in isa dir, use that instead. 46279 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46281 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46282 fi 46283 fi 46284 fi 46285 46286 if test "x$FOUND_FREETYPE" = xyes; then 46287 46288 # Only process if variable expands to non-empty 46289 46290 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46292 46293 # Input might be given as Windows format, start by converting to 46294 # unix format. 46295 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46296 new_path=`$CYGPATH -u "$path"` 46297 46298 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46299 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46300 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46301 # "foo.exe" is OK but "foo" is an error. 46302 # 46303 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46304 # It is also a way to make sure we got the proper file name for the real test later on. 46305 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46306 if test "x$test_shortpath" = x; then 46307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46308 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46309 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46310 fi 46311 46312 # Call helper function which possibly converts this using DOS-style short mode. 46313 # If so, the updated path is stored in $new_path. 46314 46315 input_path="$new_path" 46316 # Check if we need to convert this using DOS-style short mode. If the path 46317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46318 # take no chances and rewrite it. 46319 # Note: m4 eats our [], so we need to use [ and ] instead. 46320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46321 if test "x$has_forbidden_chars" != x; then 46322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46323 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46324 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46325 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46326 # Going to short mode and back again did indeed matter. Since short mode is 46327 # case insensitive, let's make it lowercase to improve readability. 46328 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46329 # Now convert it back to Unix-stile (cygpath) 46330 input_path=`$CYGPATH -u "$shortmode_path"` 46331 new_path="$input_path" 46332 fi 46333 fi 46334 46335 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46336 if test "x$test_cygdrive_prefix" = x; then 46337 # As a simple fix, exclude /usr/bin since it's not a real path. 46338 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46339 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46340 # a path prefixed by /cygdrive for fixpath to work. 46341 new_path="$CYGWIN_ROOT_PATH$input_path" 46342 fi 46343 fi 46344 46345 46346 if test "x$path" != "x$new_path"; then 46347 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46349 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46350 fi 46351 46352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46353 46354 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46355 has_colon=`$ECHO $path | $GREP ^.:` 46356 new_path="$path" 46357 if test "x$has_colon" = x; then 46358 # Not in mixed or Windows style, start by that. 46359 new_path=`cmd //c echo $path` 46360 fi 46361 46362 46363 input_path="$new_path" 46364 # Check if we need to convert this using DOS-style short mode. If the path 46365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46366 # take no chances and rewrite it. 46367 # Note: m4 eats our [], so we need to use [ and ] instead. 46368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46369 if test "x$has_forbidden_chars" != x; then 46370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46371 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46372 fi 46373 46374 46375 windows_path="$new_path" 46376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46377 unix_path=`$CYGPATH -u "$windows_path"` 46378 new_path="$unix_path" 46379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46381 new_path="$unix_path" 46382 fi 46383 46384 if test "x$path" != "x$new_path"; then 46385 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46387 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46388 fi 46389 46390 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46391 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46392 46393 else 46394 # We're on a unix platform. Hooray! :) 46395 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46396 has_space=`$ECHO "$path" | $GREP " "` 46397 if test "x$has_space" != x; then 46398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46399 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46400 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46401 fi 46402 46403 # Use eval to expand a potential ~ 46404 eval path="$path" 46405 if test ! -f "$path" && test ! -d "$path"; then 46406 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46407 fi 46408 46409 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46410 fi 46411 fi 46412 46413 46414 # Only process if variable expands to non-empty 46415 46416 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46418 46419 # Input might be given as Windows format, start by converting to 46420 # unix format. 46421 path="$POTENTIAL_FREETYPE_LIB_PATH" 46422 new_path=`$CYGPATH -u "$path"` 46423 46424 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46425 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46426 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46427 # "foo.exe" is OK but "foo" is an error. 46428 # 46429 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46430 # It is also a way to make sure we got the proper file name for the real test later on. 46431 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46432 if test "x$test_shortpath" = x; then 46433 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46434 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46435 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46436 fi 46437 46438 # Call helper function which possibly converts this using DOS-style short mode. 46439 # If so, the updated path is stored in $new_path. 46440 46441 input_path="$new_path" 46442 # Check if we need to convert this using DOS-style short mode. If the path 46443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46444 # take no chances and rewrite it. 46445 # Note: m4 eats our [], so we need to use [ and ] instead. 46446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46447 if test "x$has_forbidden_chars" != x; then 46448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46449 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46450 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46451 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46452 # Going to short mode and back again did indeed matter. Since short mode is 46453 # case insensitive, let's make it lowercase to improve readability. 46454 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46455 # Now convert it back to Unix-stile (cygpath) 46456 input_path=`$CYGPATH -u "$shortmode_path"` 46457 new_path="$input_path" 46458 fi 46459 fi 46460 46461 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46462 if test "x$test_cygdrive_prefix" = x; then 46463 # As a simple fix, exclude /usr/bin since it's not a real path. 46464 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46465 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46466 # a path prefixed by /cygdrive for fixpath to work. 46467 new_path="$CYGWIN_ROOT_PATH$input_path" 46468 fi 46469 fi 46470 46471 46472 if test "x$path" != "x$new_path"; then 46473 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46474 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46475 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46476 fi 46477 46478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46479 46480 path="$POTENTIAL_FREETYPE_LIB_PATH" 46481 has_colon=`$ECHO $path | $GREP ^.:` 46482 new_path="$path" 46483 if test "x$has_colon" = x; then 46484 # Not in mixed or Windows style, start by that. 46485 new_path=`cmd //c echo $path` 46486 fi 46487 46488 46489 input_path="$new_path" 46490 # Check if we need to convert this using DOS-style short mode. If the path 46491 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46492 # take no chances and rewrite it. 46493 # Note: m4 eats our [], so we need to use [ and ] instead. 46494 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46495 if test "x$has_forbidden_chars" != x; then 46496 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46497 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46498 fi 46499 46500 46501 windows_path="$new_path" 46502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46503 unix_path=`$CYGPATH -u "$windows_path"` 46504 new_path="$unix_path" 46505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46507 new_path="$unix_path" 46508 fi 46509 46510 if test "x$path" != "x$new_path"; then 46511 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46513 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46514 fi 46515 46516 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46517 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46518 46519 else 46520 # We're on a unix platform. Hooray! :) 46521 path="$POTENTIAL_FREETYPE_LIB_PATH" 46522 has_space=`$ECHO "$path" | $GREP " "` 46523 if test "x$has_space" != x; then 46524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46525 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46526 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46527 fi 46528 46529 # Use eval to expand a potential ~ 46530 eval path="$path" 46531 if test ! -f "$path" && test ! -d "$path"; then 46532 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46533 fi 46534 46535 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46536 fi 46537 fi 46538 46539 46540 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46542 $as_echo_n "checking for freetype includes... " >&6; } 46543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46544 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46545 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46547 $as_echo_n "checking for freetype libraries... " >&6; } 46548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46549 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46550 fi 46551 46552 46553 if test "x$FOUND_FREETYPE" != xyes; then 46554 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46555 46556 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46557 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46558 METHOD="well-known location" 46559 46560 # Let's start with an optimistic view of the world :-) 46561 FOUND_FREETYPE=yes 46562 46563 # First look for the canonical freetype main include file ft2build.h. 46564 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46565 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46566 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46567 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46568 # Fail. 46569 FOUND_FREETYPE=no 46570 fi 46571 fi 46572 46573 if test "x$FOUND_FREETYPE" = xyes; then 46574 # Include file found, let's continue the sanity check. 46575 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46576 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46577 46578 # Reset to default value 46579 FREETYPE_BASE_NAME=freetype 46580 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46581 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46582 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46583 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46584 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46585 # for the .6 version explicitly. 46586 FREETYPE_BASE_NAME=freetype.6 46587 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46588 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46589 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46590 else 46591 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46592 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46593 FOUND_FREETYPE=no 46594 fi 46595 else 46596 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46597 # On Windows, we will need both .lib and .dll file. 46598 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46599 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46600 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46601 FOUND_FREETYPE=no 46602 fi 46603 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46604 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46605 # Found lib in isa dir, use that instead. 46606 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46607 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46608 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46609 fi 46610 fi 46611 fi 46612 46613 if test "x$FOUND_FREETYPE" = xyes; then 46614 46615 # Only process if variable expands to non-empty 46616 46617 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46619 46620 # Input might be given as Windows format, start by converting to 46621 # unix format. 46622 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46623 new_path=`$CYGPATH -u "$path"` 46624 46625 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46626 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46627 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46628 # "foo.exe" is OK but "foo" is an error. 46629 # 46630 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46631 # It is also a way to make sure we got the proper file name for the real test later on. 46632 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46633 if test "x$test_shortpath" = x; then 46634 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46635 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46636 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46637 fi 46638 46639 # Call helper function which possibly converts this using DOS-style short mode. 46640 # If so, the updated path is stored in $new_path. 46641 46642 input_path="$new_path" 46643 # Check if we need to convert this using DOS-style short mode. If the path 46644 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46645 # take no chances and rewrite it. 46646 # Note: m4 eats our [], so we need to use [ and ] instead. 46647 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46648 if test "x$has_forbidden_chars" != x; then 46649 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46650 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46651 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46652 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46653 # Going to short mode and back again did indeed matter. Since short mode is 46654 # case insensitive, let's make it lowercase to improve readability. 46655 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46656 # Now convert it back to Unix-stile (cygpath) 46657 input_path=`$CYGPATH -u "$shortmode_path"` 46658 new_path="$input_path" 46659 fi 46660 fi 46661 46662 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46663 if test "x$test_cygdrive_prefix" = x; then 46664 # As a simple fix, exclude /usr/bin since it's not a real path. 46665 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46666 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46667 # a path prefixed by /cygdrive for fixpath to work. 46668 new_path="$CYGWIN_ROOT_PATH$input_path" 46669 fi 46670 fi 46671 46672 46673 if test "x$path" != "x$new_path"; then 46674 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46675 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46676 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46677 fi 46678 46679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46680 46681 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46682 has_colon=`$ECHO $path | $GREP ^.:` 46683 new_path="$path" 46684 if test "x$has_colon" = x; then 46685 # Not in mixed or Windows style, start by that. 46686 new_path=`cmd //c echo $path` 46687 fi 46688 46689 46690 input_path="$new_path" 46691 # Check if we need to convert this using DOS-style short mode. If the path 46692 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46693 # take no chances and rewrite it. 46694 # Note: m4 eats our [], so we need to use [ and ] instead. 46695 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46696 if test "x$has_forbidden_chars" != x; then 46697 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46698 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46699 fi 46700 46701 46702 windows_path="$new_path" 46703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46704 unix_path=`$CYGPATH -u "$windows_path"` 46705 new_path="$unix_path" 46706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46708 new_path="$unix_path" 46709 fi 46710 46711 if test "x$path" != "x$new_path"; then 46712 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46713 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46714 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46715 fi 46716 46717 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46718 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46719 46720 else 46721 # We're on a unix platform. Hooray! :) 46722 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46723 has_space=`$ECHO "$path" | $GREP " "` 46724 if test "x$has_space" != x; then 46725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46726 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46727 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46728 fi 46729 46730 # Use eval to expand a potential ~ 46731 eval path="$path" 46732 if test ! -f "$path" && test ! -d "$path"; then 46733 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46734 fi 46735 46736 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46737 fi 46738 fi 46739 46740 46741 # Only process if variable expands to non-empty 46742 46743 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46745 46746 # Input might be given as Windows format, start by converting to 46747 # unix format. 46748 path="$POTENTIAL_FREETYPE_LIB_PATH" 46749 new_path=`$CYGPATH -u "$path"` 46750 46751 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46752 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46753 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46754 # "foo.exe" is OK but "foo" is an error. 46755 # 46756 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46757 # It is also a way to make sure we got the proper file name for the real test later on. 46758 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46759 if test "x$test_shortpath" = x; then 46760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46761 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46762 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46763 fi 46764 46765 # Call helper function which possibly converts this using DOS-style short mode. 46766 # If so, the updated path is stored in $new_path. 46767 46768 input_path="$new_path" 46769 # Check if we need to convert this using DOS-style short mode. If the path 46770 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46771 # take no chances and rewrite it. 46772 # Note: m4 eats our [], so we need to use [ and ] instead. 46773 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46774 if test "x$has_forbidden_chars" != x; then 46775 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46776 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46777 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46778 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46779 # Going to short mode and back again did indeed matter. Since short mode is 46780 # case insensitive, let's make it lowercase to improve readability. 46781 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46782 # Now convert it back to Unix-stile (cygpath) 46783 input_path=`$CYGPATH -u "$shortmode_path"` 46784 new_path="$input_path" 46785 fi 46786 fi 46787 46788 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46789 if test "x$test_cygdrive_prefix" = x; then 46790 # As a simple fix, exclude /usr/bin since it's not a real path. 46791 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46792 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46793 # a path prefixed by /cygdrive for fixpath to work. 46794 new_path="$CYGWIN_ROOT_PATH$input_path" 46795 fi 46796 fi 46797 46798 46799 if test "x$path" != "x$new_path"; then 46800 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46801 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46802 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46803 fi 46804 46805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46806 46807 path="$POTENTIAL_FREETYPE_LIB_PATH" 46808 has_colon=`$ECHO $path | $GREP ^.:` 46809 new_path="$path" 46810 if test "x$has_colon" = x; then 46811 # Not in mixed or Windows style, start by that. 46812 new_path=`cmd //c echo $path` 46813 fi 46814 46815 46816 input_path="$new_path" 46817 # Check if we need to convert this using DOS-style short mode. If the path 46818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46819 # take no chances and rewrite it. 46820 # Note: m4 eats our [], so we need to use [ and ] instead. 46821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46822 if test "x$has_forbidden_chars" != x; then 46823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46824 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46825 fi 46826 46827 46828 windows_path="$new_path" 46829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46830 unix_path=`$CYGPATH -u "$windows_path"` 46831 new_path="$unix_path" 46832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46834 new_path="$unix_path" 46835 fi 46836 46837 if test "x$path" != "x$new_path"; then 46838 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46839 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46840 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46841 fi 46842 46843 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46844 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46845 46846 else 46847 # We're on a unix platform. Hooray! :) 46848 path="$POTENTIAL_FREETYPE_LIB_PATH" 46849 has_space=`$ECHO "$path" | $GREP " "` 46850 if test "x$has_space" != x; then 46851 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46852 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46853 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46854 fi 46855 46856 # Use eval to expand a potential ~ 46857 eval path="$path" 46858 if test ! -f "$path" && test ! -d "$path"; then 46859 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46860 fi 46861 46862 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46863 fi 46864 fi 46865 46866 46867 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46869 $as_echo_n "checking for freetype includes... " >&6; } 46870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46871 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46872 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46874 $as_echo_n "checking for freetype libraries... " >&6; } 46875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46876 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46877 fi 46878 46879 fi 46880 46881 if test "x$FOUND_FREETYPE" != xyes; then 46882 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46883 46884 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46885 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46886 METHOD="well-known location" 46887 46888 # Let's start with an optimistic view of the world :-) 46889 FOUND_FREETYPE=yes 46890 46891 # First look for the canonical freetype main include file ft2build.h. 46892 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46893 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46894 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46895 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46896 # Fail. 46897 FOUND_FREETYPE=no 46898 fi 46899 fi 46900 46901 if test "x$FOUND_FREETYPE" = xyes; then 46902 # Include file found, let's continue the sanity check. 46903 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46904 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46905 46906 # Reset to default value 46907 FREETYPE_BASE_NAME=freetype 46908 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46909 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46910 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46911 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46912 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46913 # for the .6 version explicitly. 46914 FREETYPE_BASE_NAME=freetype.6 46915 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46916 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46917 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46918 else 46919 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46920 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46921 FOUND_FREETYPE=no 46922 fi 46923 else 46924 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46925 # On Windows, we will need both .lib and .dll file. 46926 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46927 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46928 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46929 FOUND_FREETYPE=no 46930 fi 46931 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46932 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46933 # Found lib in isa dir, use that instead. 46934 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46935 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46936 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46937 fi 46938 fi 46939 fi 46940 46941 if test "x$FOUND_FREETYPE" = xyes; then 46942 46943 # Only process if variable expands to non-empty 46944 46945 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46947 46948 # Input might be given as Windows format, start by converting to 46949 # unix format. 46950 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46951 new_path=`$CYGPATH -u "$path"` 46952 46953 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46954 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46955 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46956 # "foo.exe" is OK but "foo" is an error. 46957 # 46958 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46959 # It is also a way to make sure we got the proper file name for the real test later on. 46960 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46961 if test "x$test_shortpath" = x; then 46962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46963 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46964 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46965 fi 46966 46967 # Call helper function which possibly converts this using DOS-style short mode. 46968 # If so, the updated path is stored in $new_path. 46969 46970 input_path="$new_path" 46971 # Check if we need to convert this using DOS-style short mode. If the path 46972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46973 # take no chances and rewrite it. 46974 # Note: m4 eats our [], so we need to use [ and ] instead. 46975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46976 if test "x$has_forbidden_chars" != x; then 46977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46978 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46979 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46980 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46981 # Going to short mode and back again did indeed matter. Since short mode is 46982 # case insensitive, let's make it lowercase to improve readability. 46983 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46984 # Now convert it back to Unix-stile (cygpath) 46985 input_path=`$CYGPATH -u "$shortmode_path"` 46986 new_path="$input_path" 46987 fi 46988 fi 46989 46990 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46991 if test "x$test_cygdrive_prefix" = x; then 46992 # As a simple fix, exclude /usr/bin since it's not a real path. 46993 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46994 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46995 # a path prefixed by /cygdrive for fixpath to work. 46996 new_path="$CYGWIN_ROOT_PATH$input_path" 46997 fi 46998 fi 46999 47000 47001 if test "x$path" != "x$new_path"; then 47002 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47003 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47004 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47005 fi 47006 47007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47008 47009 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47010 has_colon=`$ECHO $path | $GREP ^.:` 47011 new_path="$path" 47012 if test "x$has_colon" = x; then 47013 # Not in mixed or Windows style, start by that. 47014 new_path=`cmd //c echo $path` 47015 fi 47016 47017 47018 input_path="$new_path" 47019 # Check if we need to convert this using DOS-style short mode. If the path 47020 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47021 # take no chances and rewrite it. 47022 # Note: m4 eats our [], so we need to use [ and ] instead. 47023 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47024 if test "x$has_forbidden_chars" != x; then 47025 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47026 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47027 fi 47028 47029 47030 windows_path="$new_path" 47031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47032 unix_path=`$CYGPATH -u "$windows_path"` 47033 new_path="$unix_path" 47034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47035 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47036 new_path="$unix_path" 47037 fi 47038 47039 if test "x$path" != "x$new_path"; then 47040 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47042 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47043 fi 47044 47045 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47046 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47047 47048 else 47049 # We're on a unix platform. Hooray! :) 47050 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47051 has_space=`$ECHO "$path" | $GREP " "` 47052 if test "x$has_space" != x; then 47053 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47054 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47055 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47056 fi 47057 47058 # Use eval to expand a potential ~ 47059 eval path="$path" 47060 if test ! -f "$path" && test ! -d "$path"; then 47061 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47062 fi 47063 47064 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47065 fi 47066 fi 47067 47068 47069 # Only process if variable expands to non-empty 47070 47071 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47073 47074 # Input might be given as Windows format, start by converting to 47075 # unix format. 47076 path="$POTENTIAL_FREETYPE_LIB_PATH" 47077 new_path=`$CYGPATH -u "$path"` 47078 47079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47082 # "foo.exe" is OK but "foo" is an error. 47083 # 47084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47085 # It is also a way to make sure we got the proper file name for the real test later on. 47086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47087 if test "x$test_shortpath" = x; then 47088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47089 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47090 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47091 fi 47092 47093 # Call helper function which possibly converts this using DOS-style short mode. 47094 # If so, the updated path is stored in $new_path. 47095 47096 input_path="$new_path" 47097 # Check if we need to convert this using DOS-style short mode. If the path 47098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47099 # take no chances and rewrite it. 47100 # Note: m4 eats our [], so we need to use [ and ] instead. 47101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47102 if test "x$has_forbidden_chars" != x; then 47103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47107 # Going to short mode and back again did indeed matter. Since short mode is 47108 # case insensitive, let's make it lowercase to improve readability. 47109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47110 # Now convert it back to Unix-stile (cygpath) 47111 input_path=`$CYGPATH -u "$shortmode_path"` 47112 new_path="$input_path" 47113 fi 47114 fi 47115 47116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47117 if test "x$test_cygdrive_prefix" = x; then 47118 # As a simple fix, exclude /usr/bin since it's not a real path. 47119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47121 # a path prefixed by /cygdrive for fixpath to work. 47122 new_path="$CYGWIN_ROOT_PATH$input_path" 47123 fi 47124 fi 47125 47126 47127 if test "x$path" != "x$new_path"; then 47128 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47130 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47131 fi 47132 47133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47134 47135 path="$POTENTIAL_FREETYPE_LIB_PATH" 47136 has_colon=`$ECHO $path | $GREP ^.:` 47137 new_path="$path" 47138 if test "x$has_colon" = x; then 47139 # Not in mixed or Windows style, start by that. 47140 new_path=`cmd //c echo $path` 47141 fi 47142 47143 47144 input_path="$new_path" 47145 # Check if we need to convert this using DOS-style short mode. If the path 47146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47147 # take no chances and rewrite it. 47148 # Note: m4 eats our [], so we need to use [ and ] instead. 47149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47150 if test "x$has_forbidden_chars" != x; then 47151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47153 fi 47154 47155 47156 windows_path="$new_path" 47157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47158 unix_path=`$CYGPATH -u "$windows_path"` 47159 new_path="$unix_path" 47160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47162 new_path="$unix_path" 47163 fi 47164 47165 if test "x$path" != "x$new_path"; then 47166 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47168 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47169 fi 47170 47171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47173 47174 else 47175 # We're on a unix platform. Hooray! :) 47176 path="$POTENTIAL_FREETYPE_LIB_PATH" 47177 has_space=`$ECHO "$path" | $GREP " "` 47178 if test "x$has_space" != x; then 47179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47180 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47182 fi 47183 47184 # Use eval to expand a potential ~ 47185 eval path="$path" 47186 if test ! -f "$path" && test ! -d "$path"; then 47187 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47188 fi 47189 47190 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47191 fi 47192 fi 47193 47194 47195 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47197 $as_echo_n "checking for freetype includes... " >&6; } 47198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47199 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47200 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47202 $as_echo_n "checking for freetype libraries... " >&6; } 47203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47204 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47205 fi 47206 47207 fi 47208 47209 if test "x$FOUND_FREETYPE" != xyes; then 47210 FREETYPE_BASE_DIR="$SYSROOT/usr" 47211 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47212 47213 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47214 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 47215 METHOD="well-known location" 47216 47217 # Let's start with an optimistic view of the world :-) 47218 FOUND_FREETYPE=yes 47219 47220 # First look for the canonical freetype main include file ft2build.h. 47221 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47222 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47223 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47224 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47225 # Fail. 47226 FOUND_FREETYPE=no 47227 fi 47228 fi 47229 47230 if test "x$FOUND_FREETYPE" = xyes; then 47231 # Include file found, let's continue the sanity check. 47232 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47233 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47234 47235 # Reset to default value 47236 FREETYPE_BASE_NAME=freetype 47237 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47238 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47239 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47240 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47241 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47242 # for the .6 version explicitly. 47243 FREETYPE_BASE_NAME=freetype.6 47244 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47245 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47246 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47247 else 47248 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47249 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47250 FOUND_FREETYPE=no 47251 fi 47252 else 47253 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47254 # On Windows, we will need both .lib and .dll file. 47255 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47256 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47257 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47258 FOUND_FREETYPE=no 47259 fi 47260 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47261 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47262 # Found lib in isa dir, use that instead. 47263 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47264 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47265 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47266 fi 47267 fi 47268 fi 47269 47270 if test "x$FOUND_FREETYPE" = xyes; then 47271 47272 # Only process if variable expands to non-empty 47273 47274 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47275 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47276 47277 # Input might be given as Windows format, start by converting to 47278 # unix format. 47279 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47280 new_path=`$CYGPATH -u "$path"` 47281 47282 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47283 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47284 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47285 # "foo.exe" is OK but "foo" is an error. 47286 # 47287 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47288 # It is also a way to make sure we got the proper file name for the real test later on. 47289 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47290 if test "x$test_shortpath" = x; then 47291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47292 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47293 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47294 fi 47295 47296 # Call helper function which possibly converts this using DOS-style short mode. 47297 # If so, the updated path is stored in $new_path. 47298 47299 input_path="$new_path" 47300 # Check if we need to convert this using DOS-style short mode. If the path 47301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47302 # take no chances and rewrite it. 47303 # Note: m4 eats our [], so we need to use [ and ] instead. 47304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47305 if test "x$has_forbidden_chars" != x; then 47306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47307 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47308 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47309 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47310 # Going to short mode and back again did indeed matter. Since short mode is 47311 # case insensitive, let's make it lowercase to improve readability. 47312 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47313 # Now convert it back to Unix-stile (cygpath) 47314 input_path=`$CYGPATH -u "$shortmode_path"` 47315 new_path="$input_path" 47316 fi 47317 fi 47318 47319 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47320 if test "x$test_cygdrive_prefix" = x; then 47321 # As a simple fix, exclude /usr/bin since it's not a real path. 47322 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47323 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47324 # a path prefixed by /cygdrive for fixpath to work. 47325 new_path="$CYGWIN_ROOT_PATH$input_path" 47326 fi 47327 fi 47328 47329 47330 if test "x$path" != "x$new_path"; then 47331 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47333 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47334 fi 47335 47336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47337 47338 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47339 has_colon=`$ECHO $path | $GREP ^.:` 47340 new_path="$path" 47341 if test "x$has_colon" = x; then 47342 # Not in mixed or Windows style, start by that. 47343 new_path=`cmd //c echo $path` 47344 fi 47345 47346 47347 input_path="$new_path" 47348 # Check if we need to convert this using DOS-style short mode. If the path 47349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47350 # take no chances and rewrite it. 47351 # Note: m4 eats our [], so we need to use [ and ] instead. 47352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47353 if test "x$has_forbidden_chars" != x; then 47354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47355 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47356 fi 47357 47358 47359 windows_path="$new_path" 47360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47361 unix_path=`$CYGPATH -u "$windows_path"` 47362 new_path="$unix_path" 47363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47364 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47365 new_path="$unix_path" 47366 fi 47367 47368 if test "x$path" != "x$new_path"; then 47369 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47370 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47371 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47372 fi 47373 47374 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47375 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47376 47377 else 47378 # We're on a unix platform. Hooray! :) 47379 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47380 has_space=`$ECHO "$path" | $GREP " "` 47381 if test "x$has_space" != x; then 47382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47383 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47384 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47385 fi 47386 47387 # Use eval to expand a potential ~ 47388 eval path="$path" 47389 if test ! -f "$path" && test ! -d "$path"; then 47390 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47391 fi 47392 47393 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47394 fi 47395 fi 47396 47397 47398 # Only process if variable expands to non-empty 47399 47400 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47402 47403 # Input might be given as Windows format, start by converting to 47404 # unix format. 47405 path="$POTENTIAL_FREETYPE_LIB_PATH" 47406 new_path=`$CYGPATH -u "$path"` 47407 47408 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47409 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47410 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47411 # "foo.exe" is OK but "foo" is an error. 47412 # 47413 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47414 # It is also a way to make sure we got the proper file name for the real test later on. 47415 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47416 if test "x$test_shortpath" = x; then 47417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47418 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47419 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47420 fi 47421 47422 # Call helper function which possibly converts this using DOS-style short mode. 47423 # If so, the updated path is stored in $new_path. 47424 47425 input_path="$new_path" 47426 # Check if we need to convert this using DOS-style short mode. If the path 47427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47428 # take no chances and rewrite it. 47429 # Note: m4 eats our [], so we need to use [ and ] instead. 47430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47431 if test "x$has_forbidden_chars" != x; then 47432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47433 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47434 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47435 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47436 # Going to short mode and back again did indeed matter. Since short mode is 47437 # case insensitive, let's make it lowercase to improve readability. 47438 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47439 # Now convert it back to Unix-stile (cygpath) 47440 input_path=`$CYGPATH -u "$shortmode_path"` 47441 new_path="$input_path" 47442 fi 47443 fi 47444 47445 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47446 if test "x$test_cygdrive_prefix" = x; then 47447 # As a simple fix, exclude /usr/bin since it's not a real path. 47448 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47449 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47450 # a path prefixed by /cygdrive for fixpath to work. 47451 new_path="$CYGWIN_ROOT_PATH$input_path" 47452 fi 47453 fi 47454 47455 47456 if test "x$path" != "x$new_path"; then 47457 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47459 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47460 fi 47461 47462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47463 47464 path="$POTENTIAL_FREETYPE_LIB_PATH" 47465 has_colon=`$ECHO $path | $GREP ^.:` 47466 new_path="$path" 47467 if test "x$has_colon" = x; then 47468 # Not in mixed or Windows style, start by that. 47469 new_path=`cmd //c echo $path` 47470 fi 47471 47472 47473 input_path="$new_path" 47474 # Check if we need to convert this using DOS-style short mode. If the path 47475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47476 # take no chances and rewrite it. 47477 # Note: m4 eats our [], so we need to use [ and ] instead. 47478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47479 if test "x$has_forbidden_chars" != x; then 47480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47482 fi 47483 47484 47485 windows_path="$new_path" 47486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47487 unix_path=`$CYGPATH -u "$windows_path"` 47488 new_path="$unix_path" 47489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47490 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47491 new_path="$unix_path" 47492 fi 47493 47494 if test "x$path" != "x$new_path"; then 47495 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47496 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47497 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47498 fi 47499 47500 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47501 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47502 47503 else 47504 # We're on a unix platform. Hooray! :) 47505 path="$POTENTIAL_FREETYPE_LIB_PATH" 47506 has_space=`$ECHO "$path" | $GREP " "` 47507 if test "x$has_space" != x; then 47508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47509 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47510 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47511 fi 47512 47513 # Use eval to expand a potential ~ 47514 eval path="$path" 47515 if test ! -f "$path" && test ! -d "$path"; then 47516 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47517 fi 47518 47519 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47520 fi 47521 fi 47522 47523 47524 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47526 $as_echo_n "checking for freetype includes... " >&6; } 47527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47528 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47529 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47531 $as_echo_n "checking for freetype libraries... " >&6; } 47532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47533 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47534 fi 47535 47536 else 47537 47538 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47539 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47540 METHOD="well-known location" 47541 47542 # Let's start with an optimistic view of the world :-) 47543 FOUND_FREETYPE=yes 47544 47545 # First look for the canonical freetype main include file ft2build.h. 47546 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47547 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47548 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47549 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47550 # Fail. 47551 FOUND_FREETYPE=no 47552 fi 47553 fi 47554 47555 if test "x$FOUND_FREETYPE" = xyes; then 47556 # Include file found, let's continue the sanity check. 47557 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47558 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47559 47560 # Reset to default value 47561 FREETYPE_BASE_NAME=freetype 47562 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47563 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47564 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47565 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47566 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47567 # for the .6 version explicitly. 47568 FREETYPE_BASE_NAME=freetype.6 47569 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47570 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47571 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47572 else 47573 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47574 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47575 FOUND_FREETYPE=no 47576 fi 47577 else 47578 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47579 # On Windows, we will need both .lib and .dll file. 47580 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47581 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47582 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47583 FOUND_FREETYPE=no 47584 fi 47585 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47586 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47587 # Found lib in isa dir, use that instead. 47588 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47590 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47591 fi 47592 fi 47593 fi 47594 47595 if test "x$FOUND_FREETYPE" = xyes; then 47596 47597 # Only process if variable expands to non-empty 47598 47599 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47601 47602 # Input might be given as Windows format, start by converting to 47603 # unix format. 47604 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47605 new_path=`$CYGPATH -u "$path"` 47606 47607 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47608 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47609 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47610 # "foo.exe" is OK but "foo" is an error. 47611 # 47612 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47613 # It is also a way to make sure we got the proper file name for the real test later on. 47614 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47615 if test "x$test_shortpath" = x; then 47616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47617 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47618 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47619 fi 47620 47621 # Call helper function which possibly converts this using DOS-style short mode. 47622 # If so, the updated path is stored in $new_path. 47623 47624 input_path="$new_path" 47625 # Check if we need to convert this using DOS-style short mode. If the path 47626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47627 # take no chances and rewrite it. 47628 # Note: m4 eats our [], so we need to use [ and ] instead. 47629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47630 if test "x$has_forbidden_chars" != x; then 47631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47632 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47633 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47634 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47635 # Going to short mode and back again did indeed matter. Since short mode is 47636 # case insensitive, let's make it lowercase to improve readability. 47637 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47638 # Now convert it back to Unix-stile (cygpath) 47639 input_path=`$CYGPATH -u "$shortmode_path"` 47640 new_path="$input_path" 47641 fi 47642 fi 47643 47644 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47645 if test "x$test_cygdrive_prefix" = x; then 47646 # As a simple fix, exclude /usr/bin since it's not a real path. 47647 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47648 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47649 # a path prefixed by /cygdrive for fixpath to work. 47650 new_path="$CYGWIN_ROOT_PATH$input_path" 47651 fi 47652 fi 47653 47654 47655 if test "x$path" != "x$new_path"; then 47656 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47657 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47658 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47659 fi 47660 47661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47662 47663 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47664 has_colon=`$ECHO $path | $GREP ^.:` 47665 new_path="$path" 47666 if test "x$has_colon" = x; then 47667 # Not in mixed or Windows style, start by that. 47668 new_path=`cmd //c echo $path` 47669 fi 47670 47671 47672 input_path="$new_path" 47673 # Check if we need to convert this using DOS-style short mode. If the path 47674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47675 # take no chances and rewrite it. 47676 # Note: m4 eats our [], so we need to use [ and ] instead. 47677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47678 if test "x$has_forbidden_chars" != x; then 47679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47680 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47681 fi 47682 47683 47684 windows_path="$new_path" 47685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47686 unix_path=`$CYGPATH -u "$windows_path"` 47687 new_path="$unix_path" 47688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47690 new_path="$unix_path" 47691 fi 47692 47693 if test "x$path" != "x$new_path"; then 47694 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47695 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47696 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47697 fi 47698 47699 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47700 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47701 47702 else 47703 # We're on a unix platform. Hooray! :) 47704 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47705 has_space=`$ECHO "$path" | $GREP " "` 47706 if test "x$has_space" != x; then 47707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47708 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47709 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47710 fi 47711 47712 # Use eval to expand a potential ~ 47713 eval path="$path" 47714 if test ! -f "$path" && test ! -d "$path"; then 47715 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47716 fi 47717 47718 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47719 fi 47720 fi 47721 47722 47723 # Only process if variable expands to non-empty 47724 47725 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47727 47728 # Input might be given as Windows format, start by converting to 47729 # unix format. 47730 path="$POTENTIAL_FREETYPE_LIB_PATH" 47731 new_path=`$CYGPATH -u "$path"` 47732 47733 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47734 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47735 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47736 # "foo.exe" is OK but "foo" is an error. 47737 # 47738 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47739 # It is also a way to make sure we got the proper file name for the real test later on. 47740 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47741 if test "x$test_shortpath" = x; then 47742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47743 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47744 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47745 fi 47746 47747 # Call helper function which possibly converts this using DOS-style short mode. 47748 # If so, the updated path is stored in $new_path. 47749 47750 input_path="$new_path" 47751 # Check if we need to convert this using DOS-style short mode. If the path 47752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47753 # take no chances and rewrite it. 47754 # Note: m4 eats our [], so we need to use [ and ] instead. 47755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47756 if test "x$has_forbidden_chars" != x; then 47757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47758 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47759 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47760 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47761 # Going to short mode and back again did indeed matter. Since short mode is 47762 # case insensitive, let's make it lowercase to improve readability. 47763 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47764 # Now convert it back to Unix-stile (cygpath) 47765 input_path=`$CYGPATH -u "$shortmode_path"` 47766 new_path="$input_path" 47767 fi 47768 fi 47769 47770 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47771 if test "x$test_cygdrive_prefix" = x; then 47772 # As a simple fix, exclude /usr/bin since it's not a real path. 47773 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47774 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47775 # a path prefixed by /cygdrive for fixpath to work. 47776 new_path="$CYGWIN_ROOT_PATH$input_path" 47777 fi 47778 fi 47779 47780 47781 if test "x$path" != "x$new_path"; then 47782 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47784 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47785 fi 47786 47787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47788 47789 path="$POTENTIAL_FREETYPE_LIB_PATH" 47790 has_colon=`$ECHO $path | $GREP ^.:` 47791 new_path="$path" 47792 if test "x$has_colon" = x; then 47793 # Not in mixed or Windows style, start by that. 47794 new_path=`cmd //c echo $path` 47795 fi 47796 47797 47798 input_path="$new_path" 47799 # Check if we need to convert this using DOS-style short mode. If the path 47800 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47801 # take no chances and rewrite it. 47802 # Note: m4 eats our [], so we need to use [ and ] instead. 47803 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47804 if test "x$has_forbidden_chars" != x; then 47805 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47806 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47807 fi 47808 47809 47810 windows_path="$new_path" 47811 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47812 unix_path=`$CYGPATH -u "$windows_path"` 47813 new_path="$unix_path" 47814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47815 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47816 new_path="$unix_path" 47817 fi 47818 47819 if test "x$path" != "x$new_path"; then 47820 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47821 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47822 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47823 fi 47824 47825 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47826 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47827 47828 else 47829 # We're on a unix platform. Hooray! :) 47830 path="$POTENTIAL_FREETYPE_LIB_PATH" 47831 has_space=`$ECHO "$path" | $GREP " "` 47832 if test "x$has_space" != x; then 47833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47834 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47835 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47836 fi 47837 47838 # Use eval to expand a potential ~ 47839 eval path="$path" 47840 if test ! -f "$path" && test ! -d "$path"; then 47841 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47842 fi 47843 47844 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47845 fi 47846 fi 47847 47848 47849 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47851 $as_echo_n "checking for freetype includes... " >&6; } 47852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47853 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47854 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47856 $as_echo_n "checking for freetype libraries... " >&6; } 47857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47858 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47859 fi 47860 47861 if test "x$FOUND_FREETYPE" != xyes; then 47862 47863 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47864 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47865 METHOD="well-known location" 47866 47867 # Let's start with an optimistic view of the world :-) 47868 FOUND_FREETYPE=yes 47869 47870 # First look for the canonical freetype main include file ft2build.h. 47871 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47872 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47873 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47874 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47875 # Fail. 47876 FOUND_FREETYPE=no 47877 fi 47878 fi 47879 47880 if test "x$FOUND_FREETYPE" = xyes; then 47881 # Include file found, let's continue the sanity check. 47882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47883 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47884 47885 # Reset to default value 47886 FREETYPE_BASE_NAME=freetype 47887 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47888 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47889 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47890 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47891 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47892 # for the .6 version explicitly. 47893 FREETYPE_BASE_NAME=freetype.6 47894 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47895 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47896 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47897 else 47898 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47899 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47900 FOUND_FREETYPE=no 47901 fi 47902 else 47903 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47904 # On Windows, we will need both .lib and .dll file. 47905 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47906 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47907 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47908 FOUND_FREETYPE=no 47909 fi 47910 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47911 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47912 # Found lib in isa dir, use that instead. 47913 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47914 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47915 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47916 fi 47917 fi 47918 fi 47919 47920 if test "x$FOUND_FREETYPE" = xyes; then 47921 47922 # Only process if variable expands to non-empty 47923 47924 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47926 47927 # Input might be given as Windows format, start by converting to 47928 # unix format. 47929 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47930 new_path=`$CYGPATH -u "$path"` 47931 47932 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47933 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47934 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47935 # "foo.exe" is OK but "foo" is an error. 47936 # 47937 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47938 # It is also a way to make sure we got the proper file name for the real test later on. 47939 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47940 if test "x$test_shortpath" = x; then 47941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47942 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47943 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47944 fi 47945 47946 # Call helper function which possibly converts this using DOS-style short mode. 47947 # If so, the updated path is stored in $new_path. 47948 47949 input_path="$new_path" 47950 # Check if we need to convert this using DOS-style short mode. If the path 47951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47952 # take no chances and rewrite it. 47953 # Note: m4 eats our [], so we need to use [ and ] instead. 47954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47955 if test "x$has_forbidden_chars" != x; then 47956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47957 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47958 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47959 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47960 # Going to short mode and back again did indeed matter. Since short mode is 47961 # case insensitive, let's make it lowercase to improve readability. 47962 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47963 # Now convert it back to Unix-stile (cygpath) 47964 input_path=`$CYGPATH -u "$shortmode_path"` 47965 new_path="$input_path" 47966 fi 47967 fi 47968 47969 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47970 if test "x$test_cygdrive_prefix" = x; then 47971 # As a simple fix, exclude /usr/bin since it's not a real path. 47972 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47973 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47974 # a path prefixed by /cygdrive for fixpath to work. 47975 new_path="$CYGWIN_ROOT_PATH$input_path" 47976 fi 47977 fi 47978 47979 47980 if test "x$path" != "x$new_path"; then 47981 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47983 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47984 fi 47985 47986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47987 47988 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47989 has_colon=`$ECHO $path | $GREP ^.:` 47990 new_path="$path" 47991 if test "x$has_colon" = x; then 47992 # Not in mixed or Windows style, start by that. 47993 new_path=`cmd //c echo $path` 47994 fi 47995 47996 47997 input_path="$new_path" 47998 # Check if we need to convert this using DOS-style short mode. If the path 47999 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48000 # take no chances and rewrite it. 48001 # Note: m4 eats our [], so we need to use [ and ] instead. 48002 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48003 if test "x$has_forbidden_chars" != x; then 48004 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48005 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48006 fi 48007 48008 48009 windows_path="$new_path" 48010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48011 unix_path=`$CYGPATH -u "$windows_path"` 48012 new_path="$unix_path" 48013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48015 new_path="$unix_path" 48016 fi 48017 48018 if test "x$path" != "x$new_path"; then 48019 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48020 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48021 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48022 fi 48023 48024 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48025 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48026 48027 else 48028 # We're on a unix platform. Hooray! :) 48029 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48030 has_space=`$ECHO "$path" | $GREP " "` 48031 if test "x$has_space" != x; then 48032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48033 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48034 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48035 fi 48036 48037 # Use eval to expand a potential ~ 48038 eval path="$path" 48039 if test ! -f "$path" && test ! -d "$path"; then 48040 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48041 fi 48042 48043 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48044 fi 48045 fi 48046 48047 48048 # Only process if variable expands to non-empty 48049 48050 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48052 48053 # Input might be given as Windows format, start by converting to 48054 # unix format. 48055 path="$POTENTIAL_FREETYPE_LIB_PATH" 48056 new_path=`$CYGPATH -u "$path"` 48057 48058 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48059 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48060 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48061 # "foo.exe" is OK but "foo" is an error. 48062 # 48063 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48064 # It is also a way to make sure we got the proper file name for the real test later on. 48065 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48066 if test "x$test_shortpath" = x; then 48067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48068 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48069 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 48070 fi 48071 48072 # Call helper function which possibly converts this using DOS-style short mode. 48073 # If so, the updated path is stored in $new_path. 48074 48075 input_path="$new_path" 48076 # Check if we need to convert this using DOS-style short mode. If the path 48077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48078 # take no chances and rewrite it. 48079 # Note: m4 eats our [], so we need to use [ and ] instead. 48080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48081 if test "x$has_forbidden_chars" != x; then 48082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48083 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48084 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48085 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48086 # Going to short mode and back again did indeed matter. Since short mode is 48087 # case insensitive, let's make it lowercase to improve readability. 48088 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48089 # Now convert it back to Unix-stile (cygpath) 48090 input_path=`$CYGPATH -u "$shortmode_path"` 48091 new_path="$input_path" 48092 fi 48093 fi 48094 48095 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48096 if test "x$test_cygdrive_prefix" = x; then 48097 # As a simple fix, exclude /usr/bin since it's not a real path. 48098 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48099 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48100 # a path prefixed by /cygdrive for fixpath to work. 48101 new_path="$CYGWIN_ROOT_PATH$input_path" 48102 fi 48103 fi 48104 48105 48106 if test "x$path" != "x$new_path"; then 48107 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48109 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48110 fi 48111 48112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48113 48114 path="$POTENTIAL_FREETYPE_LIB_PATH" 48115 has_colon=`$ECHO $path | $GREP ^.:` 48116 new_path="$path" 48117 if test "x$has_colon" = x; then 48118 # Not in mixed or Windows style, start by that. 48119 new_path=`cmd //c echo $path` 48120 fi 48121 48122 48123 input_path="$new_path" 48124 # Check if we need to convert this using DOS-style short mode. If the path 48125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48126 # take no chances and rewrite it. 48127 # Note: m4 eats our [], so we need to use [ and ] instead. 48128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48129 if test "x$has_forbidden_chars" != x; then 48130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48131 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48132 fi 48133 48134 48135 windows_path="$new_path" 48136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48137 unix_path=`$CYGPATH -u "$windows_path"` 48138 new_path="$unix_path" 48139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48140 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48141 new_path="$unix_path" 48142 fi 48143 48144 if test "x$path" != "x$new_path"; then 48145 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48147 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48148 fi 48149 48150 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48151 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48152 48153 else 48154 # We're on a unix platform. Hooray! :) 48155 path="$POTENTIAL_FREETYPE_LIB_PATH" 48156 has_space=`$ECHO "$path" | $GREP " "` 48157 if test "x$has_space" != x; then 48158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48159 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48160 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48161 fi 48162 48163 # Use eval to expand a potential ~ 48164 eval path="$path" 48165 if test ! -f "$path" && test ! -d "$path"; then 48166 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48167 fi 48168 48169 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48170 fi 48171 fi 48172 48173 48174 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48176 $as_echo_n "checking for freetype includes... " >&6; } 48177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48178 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48179 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48181 $as_echo_n "checking for freetype libraries... " >&6; } 48182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48183 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48184 fi 48185 48186 fi 48187 fi 48188 fi 48189 fi 48190 fi # end check in well-known locations 48191 48192 if test "x$FOUND_FREETYPE" != xyes; then 48193 48194 # Print a helpful message on how to acquire the necessary build dependency. 48195 # freetype is the help tag: freetype, cups, pulse, alsa etc 48196 MISSING_DEPENDENCY=freetype 48197 48198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48199 cygwin_help $MISSING_DEPENDENCY 48200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48201 msys_help $MISSING_DEPENDENCY 48202 else 48203 PKGHANDLER_COMMAND= 48204 48205 case $PKGHANDLER in 48206 apt-get) 48207 apt_help $MISSING_DEPENDENCY ;; 48208 yum) 48209 yum_help $MISSING_DEPENDENCY ;; 48210 port) 48211 port_help $MISSING_DEPENDENCY ;; 48212 pkgutil) 48213 pkgutil_help $MISSING_DEPENDENCY ;; 48214 pkgadd) 48215 pkgadd_help $MISSING_DEPENDENCY ;; 48216 esac 48217 48218 if test "x$PKGHANDLER_COMMAND" != x; then 48219 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48220 fi 48221 fi 48222 48223 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 48224 fi 48225 fi # end user specified settings 48226 48227 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 48228 if test "x$FREETYPE_CFLAGS" = x; then 48229 48230 # Only process if variable expands to non-empty 48231 48232 if test "x$FREETYPE_INCLUDE_PATH" != x; then 48233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48234 48235 # Input might be given as Windows format, start by converting to 48236 # unix format. 48237 path="$FREETYPE_INCLUDE_PATH" 48238 new_path=`$CYGPATH -u "$path"` 48239 48240 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48241 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48242 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48243 # "foo.exe" is OK but "foo" is an error. 48244 # 48245 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48246 # It is also a way to make sure we got the proper file name for the real test later on. 48247 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48248 if test "x$test_shortpath" = x; then 48249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48250 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48251 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 48252 fi 48253 48254 # Call helper function which possibly converts this using DOS-style short mode. 48255 # If so, the updated path is stored in $new_path. 48256 48257 input_path="$new_path" 48258 # Check if we need to convert this using DOS-style short mode. If the path 48259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48260 # take no chances and rewrite it. 48261 # Note: m4 eats our [], so we need to use [ and ] instead. 48262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48263 if test "x$has_forbidden_chars" != x; then 48264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48265 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48266 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48267 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48268 # Going to short mode and back again did indeed matter. Since short mode is 48269 # case insensitive, let's make it lowercase to improve readability. 48270 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48271 # Now convert it back to Unix-stile (cygpath) 48272 input_path=`$CYGPATH -u "$shortmode_path"` 48273 new_path="$input_path" 48274 fi 48275 fi 48276 48277 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48278 if test "x$test_cygdrive_prefix" = x; then 48279 # As a simple fix, exclude /usr/bin since it's not a real path. 48280 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48281 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48282 # a path prefixed by /cygdrive for fixpath to work. 48283 new_path="$CYGWIN_ROOT_PATH$input_path" 48284 fi 48285 fi 48286 48287 48288 if test "x$path" != "x$new_path"; then 48289 FREETYPE_INCLUDE_PATH="$new_path" 48290 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48291 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48292 fi 48293 48294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48295 48296 path="$FREETYPE_INCLUDE_PATH" 48297 has_colon=`$ECHO $path | $GREP ^.:` 48298 new_path="$path" 48299 if test "x$has_colon" = x; then 48300 # Not in mixed or Windows style, start by that. 48301 new_path=`cmd //c echo $path` 48302 fi 48303 48304 48305 input_path="$new_path" 48306 # Check if we need to convert this using DOS-style short mode. If the path 48307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48308 # take no chances and rewrite it. 48309 # Note: m4 eats our [], so we need to use [ and ] instead. 48310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48311 if test "x$has_forbidden_chars" != x; then 48312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48313 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48314 fi 48315 48316 48317 windows_path="$new_path" 48318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48319 unix_path=`$CYGPATH -u "$windows_path"` 48320 new_path="$unix_path" 48321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48323 new_path="$unix_path" 48324 fi 48325 48326 if test "x$path" != "x$new_path"; then 48327 FREETYPE_INCLUDE_PATH="$new_path" 48328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48329 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48330 fi 48331 48332 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48333 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48334 48335 else 48336 # We're on a unix platform. Hooray! :) 48337 path="$FREETYPE_INCLUDE_PATH" 48338 has_space=`$ECHO "$path" | $GREP " "` 48339 if test "x$has_space" != x; then 48340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48341 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48342 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48343 fi 48344 48345 # Use eval to expand a potential ~ 48346 eval path="$path" 48347 if test ! -f "$path" && test ! -d "$path"; then 48348 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48349 fi 48350 48351 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48352 fi 48353 fi 48354 48355 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48356 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48357 else 48358 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48359 fi 48360 fi 48361 48362 if test "x$FREETYPE_LIBS" = x; then 48363 48364 # Only process if variable expands to non-empty 48365 48366 if test "x$FREETYPE_LIB_PATH" != x; then 48367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48368 48369 # Input might be given as Windows format, start by converting to 48370 # unix format. 48371 path="$FREETYPE_LIB_PATH" 48372 new_path=`$CYGPATH -u "$path"` 48373 48374 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48375 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48376 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48377 # "foo.exe" is OK but "foo" is an error. 48378 # 48379 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48380 # It is also a way to make sure we got the proper file name for the real test later on. 48381 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48382 if test "x$test_shortpath" = x; then 48383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48384 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48385 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48386 fi 48387 48388 # Call helper function which possibly converts this using DOS-style short mode. 48389 # If so, the updated path is stored in $new_path. 48390 48391 input_path="$new_path" 48392 # Check if we need to convert this using DOS-style short mode. If the path 48393 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48394 # take no chances and rewrite it. 48395 # Note: m4 eats our [], so we need to use [ and ] instead. 48396 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48397 if test "x$has_forbidden_chars" != x; then 48398 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48399 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48400 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48401 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48402 # Going to short mode and back again did indeed matter. Since short mode is 48403 # case insensitive, let's make it lowercase to improve readability. 48404 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48405 # Now convert it back to Unix-stile (cygpath) 48406 input_path=`$CYGPATH -u "$shortmode_path"` 48407 new_path="$input_path" 48408 fi 48409 fi 48410 48411 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48412 if test "x$test_cygdrive_prefix" = x; then 48413 # As a simple fix, exclude /usr/bin since it's not a real path. 48414 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48415 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48416 # a path prefixed by /cygdrive for fixpath to work. 48417 new_path="$CYGWIN_ROOT_PATH$input_path" 48418 fi 48419 fi 48420 48421 48422 if test "x$path" != "x$new_path"; then 48423 FREETYPE_LIB_PATH="$new_path" 48424 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48425 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48426 fi 48427 48428 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48429 48430 path="$FREETYPE_LIB_PATH" 48431 has_colon=`$ECHO $path | $GREP ^.:` 48432 new_path="$path" 48433 if test "x$has_colon" = x; then 48434 # Not in mixed or Windows style, start by that. 48435 new_path=`cmd //c echo $path` 48436 fi 48437 48438 48439 input_path="$new_path" 48440 # Check if we need to convert this using DOS-style short mode. If the path 48441 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48442 # take no chances and rewrite it. 48443 # Note: m4 eats our [], so we need to use [ and ] instead. 48444 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48445 if test "x$has_forbidden_chars" != x; then 48446 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48447 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48448 fi 48449 48450 48451 windows_path="$new_path" 48452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48453 unix_path=`$CYGPATH -u "$windows_path"` 48454 new_path="$unix_path" 48455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48457 new_path="$unix_path" 48458 fi 48459 48460 if test "x$path" != "x$new_path"; then 48461 FREETYPE_LIB_PATH="$new_path" 48462 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48463 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48464 fi 48465 48466 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48467 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48468 48469 else 48470 # We're on a unix platform. Hooray! :) 48471 path="$FREETYPE_LIB_PATH" 48472 has_space=`$ECHO "$path" | $GREP " "` 48473 if test "x$has_space" != x; then 48474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48475 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48476 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48477 fi 48478 48479 # Use eval to expand a potential ~ 48480 eval path="$path" 48481 if test ! -f "$path" && test ! -d "$path"; then 48482 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48483 fi 48484 48485 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48486 fi 48487 fi 48488 48489 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48490 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 48491 else 48492 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 48493 fi 48494 fi 48495 48496 # Try to compile it 48497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48498 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48499 ac_ext=cpp 48500 ac_cpp='$CXXCPP $CPPFLAGS' 48501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48504 48505 PREV_CXXCFLAGS="$CXXFLAGS" 48506 PREV_LIBS="$LIBS" 48507 PREV_CXX="$CXX" 48508 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48509 LIBS="$LIBS $FREETYPE_LIBS" 48510 CXX="$FIXPATH $CXX" 48511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48512 /* end confdefs.h. */ 48513 48514 #include<ft2build.h> 48515 #include FT_FREETYPE_H 48516 int main () { 48517 FT_Init_FreeType(NULL); 48518 return 0; 48519 } 48520 48521 _ACEOF 48522 if ac_fn_cxx_try_link "$LINENO"; then : 48523 48524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48525 $as_echo "yes" >&6; } 48526 48527 else 48528 48529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48530 $as_echo "no" >&6; } 48531 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48532 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48533 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48534 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48535 48536 48537 # Print a helpful message on how to acquire the necessary build dependency. 48538 # freetype is the help tag: freetype, cups, pulse, alsa etc 48539 MISSING_DEPENDENCY=freetype 48540 48541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48542 cygwin_help $MISSING_DEPENDENCY 48543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48544 msys_help $MISSING_DEPENDENCY 48545 else 48546 PKGHANDLER_COMMAND= 48547 48548 case $PKGHANDLER in 48549 apt-get) 48550 apt_help $MISSING_DEPENDENCY ;; 48551 yum) 48552 yum_help $MISSING_DEPENDENCY ;; 48553 port) 48554 port_help $MISSING_DEPENDENCY ;; 48555 pkgutil) 48556 pkgutil_help $MISSING_DEPENDENCY ;; 48557 pkgadd) 48558 pkgadd_help $MISSING_DEPENDENCY ;; 48559 esac 48560 48561 if test "x$PKGHANDLER_COMMAND" != x; then 48562 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48563 fi 48564 fi 48565 48566 48567 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48568 48569 48570 fi 48571 rm -f core conftest.err conftest.$ac_objext \ 48572 conftest$ac_exeext conftest.$ac_ext 48573 CXXCFLAGS="$PREV_CXXFLAGS" 48574 LIBS="$PREV_LIBS" 48575 CXX="$PREV_CXX" 48576 ac_ext=cpp 48577 ac_cpp='$CXXCPP $CPPFLAGS' 48578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48581 48582 48583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48584 $as_echo_n "checking if we should bundle freetype... " >&6; } 48585 if test "x$BUNDLE_FREETYPE" = xyes; then 48586 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48587 fi 48588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48589 $as_echo "$BUNDLE_FREETYPE" >&6; } 48590 48591 fi # end freetype needed 48592 48593 48594 48595 48596 48597 48598 48599 ############################################################################### 48600 # 48601 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48602 # 48603 48604 # Check whether --with-alsa was given. 48605 if test "${with_alsa+set}" = set; then : 48606 withval=$with_alsa; 48607 fi 48608 48609 48610 # Check whether --with-alsa-include was given. 48611 if test "${with_alsa_include+set}" = set; then : 48612 withval=$with_alsa_include; 48613 fi 48614 48615 48616 # Check whether --with-alsa-lib was given. 48617 if test "${with_alsa_lib+set}" = set; then : 48618 withval=$with_alsa_lib; 48619 fi 48620 48621 48622 if test "x$ALSA_NOT_NEEDED" = xyes; then 48623 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48625 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48626 fi 48627 ALSA_CFLAGS= 48628 ALSA_LIBS= 48629 else 48630 ALSA_FOUND=no 48631 48632 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48633 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48634 fi 48635 48636 if test "x${with_alsa}" != x; then 48637 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48638 ALSA_CFLAGS="-I${with_alsa}/include" 48639 ALSA_FOUND=yes 48640 fi 48641 if test "x${with_alsa_include}" != x; then 48642 ALSA_CFLAGS="-I${with_alsa_include}" 48643 ALSA_FOUND=yes 48644 fi 48645 if test "x${with_alsa_lib}" != x; then 48646 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48647 ALSA_FOUND=yes 48648 fi 48649 if test "x$ALSA_FOUND" = xno; then 48650 48651 48652 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48653 # Source the builddeps file again, to make sure it uses the latest variables! 48654 . $builddepsfile 48655 # Look for a target and build machine specific resource! 48656 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48657 if test "x$resource" = x; then 48658 # Ok, lets instead look for a target specific resource 48659 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48660 fi 48661 if test "x$resource" = x; then 48662 # Ok, lets instead look for a build specific resource 48663 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48664 fi 48665 if test "x$resource" = x; then 48666 # Ok, lets instead look for a generic resource 48667 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48668 resource=${builddep_alsa} 48669 fi 48670 if test "x$resource" != x; then 48671 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48672 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48673 # If the resource in the builddeps.conf file is an existing directory, 48674 # for example /java/linux/cups 48675 if test -d ${resource}; then 48676 depdir=${resource} 48677 else 48678 48679 # alsa is for example mymodule 48680 # $resource is for example libs/general/libmymod_1_2_3.zip 48681 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48682 # $with_builddeps_dir is for example /localhome/builddeps 48683 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48684 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48685 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48686 filename=`basename $resource` 48687 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48688 filebase=${filename%%.*} 48689 extension=${filename#*.} 48690 installdir=$with_builddeps_dir/$filebase 48691 if test ! -f $installdir/$filename.unpacked; then 48692 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48693 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48694 if test ! -d $installdir; then 48695 mkdir -p $installdir 48696 fi 48697 if test ! -d $installdir; then 48698 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48699 fi 48700 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48701 touch $tmpfile 48702 if test ! -f $tmpfile; then 48703 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48704 fi 48705 48706 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48707 # $tmpfile is the local file name for the downloaded file. 48708 VALID_TOOL=no 48709 if test "x$BDEPS_FTP" = xwget; then 48710 VALID_TOOL=yes 48711 wget -O $tmpfile $with_builddeps_server/$resource 48712 fi 48713 if test "x$BDEPS_FTP" = xlftp; then 48714 VALID_TOOL=yes 48715 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48716 fi 48717 if test "x$BDEPS_FTP" = xftp; then 48718 VALID_TOOL=yes 48719 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48720 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48721 FTPUSERPWD=${FTPSERVER%%@*} 48722 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48723 FTPUSER=${userpwd%%:*} 48724 FTPPWD=${userpwd#*@} 48725 FTPSERVER=${FTPSERVER#*@} 48726 else 48727 FTPUSER=ftp 48728 FTPPWD=ftp 48729 fi 48730 # the "pass" command does not work on some 48731 # ftp clients (read ftp.exe) but if it works, 48732 # passive mode is better! 48733 ( \ 48734 echo "user $FTPUSER $FTPPWD" ; \ 48735 echo "pass" ; \ 48736 echo "bin" ; \ 48737 echo "get $FTPPATH $tmpfile" ; \ 48738 ) | ftp -in $FTPSERVER 48739 fi 48740 if test "x$VALID_TOOL" != xyes; then 48741 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48742 fi 48743 48744 mv $tmpfile $installdir/$filename 48745 if test ! -s $installdir/$filename; then 48746 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48747 fi 48748 case "$extension" in 48749 zip) echo "Unzipping $installdir/$filename..." 48750 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48751 ;; 48752 tar.gz) echo "Untaring $installdir/$filename..." 48753 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48754 ;; 48755 tgz) echo "Untaring $installdir/$filename..." 48756 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48757 ;; 48758 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48759 ;; 48760 esac 48761 fi 48762 if test -f $installdir/$filename.unpacked; then 48763 depdir=$installdir 48764 fi 48765 48766 fi 48767 # Source the builddeps file again, because in the previous command, the depdir 48768 # was updated to point at the current build dependency install directory. 48769 . $builddepsfile 48770 # Now extract variables from the builddeps.conf files. 48771 theroot=${builddep_alsa_ROOT} 48772 thecflags=${builddep_alsa_CFLAGS} 48773 thelibs=${builddep_alsa_LIBS} 48774 if test "x$depdir" = x; then 48775 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48776 fi 48777 ALSA=$depdir 48778 if test "x$theroot" != x; then 48779 ALSA="$theroot" 48780 fi 48781 if test "x$thecflags" != x; then 48782 ALSA_CFLAGS="$thecflags" 48783 fi 48784 if test "x$thelibs" != x; then 48785 ALSA_LIBS="$thelibs" 48786 fi 48787 ALSA_FOUND=yes 48788 else ALSA_FOUND=no 48789 48790 fi 48791 else ALSA_FOUND=no 48792 48793 fi 48794 48795 fi 48796 # Do not try pkg-config if we have a sysroot set. 48797 if test "x$SYSROOT" = x; then 48798 if test "x$ALSA_FOUND" = xno; then 48799 48800 pkg_failed=no 48801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48802 $as_echo_n "checking for ALSA... " >&6; } 48803 48804 if test -n "$ALSA_CFLAGS"; then 48805 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48806 elif test -n "$PKG_CONFIG"; then 48807 if test -n "$PKG_CONFIG" && \ 48808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48809 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48810 ac_status=$? 48811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48812 test $ac_status = 0; }; then 48813 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48814 else 48815 pkg_failed=yes 48816 fi 48817 else 48818 pkg_failed=untried 48819 fi 48820 if test -n "$ALSA_LIBS"; then 48821 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48822 elif test -n "$PKG_CONFIG"; then 48823 if test -n "$PKG_CONFIG" && \ 48824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48825 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48826 ac_status=$? 48827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48828 test $ac_status = 0; }; then 48829 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48830 else 48831 pkg_failed=yes 48832 fi 48833 else 48834 pkg_failed=untried 48835 fi 48836 48837 48838 48839 if test $pkg_failed = yes; then 48840 48841 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48842 _pkg_short_errors_supported=yes 48843 else 48844 _pkg_short_errors_supported=no 48845 fi 48846 if test $_pkg_short_errors_supported = yes; then 48847 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48848 else 48849 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48850 fi 48851 # Put the nasty error message in config.log where it belongs 48852 echo "$ALSA_PKG_ERRORS" >&5 48853 48854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48855 $as_echo "no" >&6; } 48856 ALSA_FOUND=no 48857 elif test $pkg_failed = untried; then 48858 ALSA_FOUND=no 48859 else 48860 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48861 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48863 $as_echo "yes" >&6; } 48864 ALSA_FOUND=yes 48865 fi 48866 fi 48867 fi 48868 if test "x$ALSA_FOUND" = xno; then 48869 for ac_header in alsa/asoundlib.h 48870 do : 48871 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48872 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48873 cat >>confdefs.h <<_ACEOF 48874 #define HAVE_ALSA_ASOUNDLIB_H 1 48875 _ACEOF 48876 48877 ALSA_FOUND=yes 48878 ALSA_CFLAGS=-Iignoreme 48879 ALSA_LIBS=-lasound 48880 DEFAULT_ALSA=yes 48881 48882 else 48883 ALSA_FOUND=no 48884 fi 48885 48886 done 48887 48888 fi 48889 if test "x$ALSA_FOUND" = xno; then 48890 48891 # Print a helpful message on how to acquire the necessary build dependency. 48892 # alsa is the help tag: freetype, cups, pulse, alsa etc 48893 MISSING_DEPENDENCY=alsa 48894 48895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48896 cygwin_help $MISSING_DEPENDENCY 48897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48898 msys_help $MISSING_DEPENDENCY 48899 else 48900 PKGHANDLER_COMMAND= 48901 48902 case $PKGHANDLER in 48903 apt-get) 48904 apt_help $MISSING_DEPENDENCY ;; 48905 yum) 48906 yum_help $MISSING_DEPENDENCY ;; 48907 port) 48908 port_help $MISSING_DEPENDENCY ;; 48909 pkgutil) 48910 pkgutil_help $MISSING_DEPENDENCY ;; 48911 pkgadd) 48912 pkgadd_help $MISSING_DEPENDENCY ;; 48913 esac 48914 48915 if test "x$PKGHANDLER_COMMAND" != x; then 48916 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48917 fi 48918 fi 48919 48920 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48921 fi 48922 fi 48923 48924 48925 48926 48927 48928 48929 ############################################################################### 48930 # 48931 # Check for the jpeg library 48932 # 48933 48934 48935 # Check whether --with-libjpeg was given. 48936 if test "${with_libjpeg+set}" = set; then : 48937 withval=$with_libjpeg; 48938 fi 48939 48940 48941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48942 $as_echo_n "checking for which libjpeg to use... " >&6; } 48943 48944 # default is bundled 48945 DEFAULT_LIBJPEG=bundled 48946 48947 # 48948 # if user didn't specify, use DEFAULT_LIBJPEG 48949 # 48950 if test "x${with_libjpeg}" = "x"; then 48951 with_libjpeg=${DEFAULT_LIBJPEG} 48952 fi 48953 48954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48955 $as_echo "${with_libjpeg}" >&6; } 48956 48957 if test "x${with_libjpeg}" = "xbundled"; then 48958 USE_EXTERNAL_LIBJPEG=false 48959 elif test "x${with_libjpeg}" = "xsystem"; then 48960 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48961 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48962 48963 else 48964 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48965 fi 48966 48967 48968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48969 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48970 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48971 $as_echo_n "(cached) " >&6 48972 else 48973 ac_check_lib_save_LIBS=$LIBS 48974 LIBS="-ljpeg $LIBS" 48975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48976 /* end confdefs.h. */ 48977 48978 /* Override any GCC internal prototype to avoid an error. 48979 Use char because int might match the return type of a GCC 48980 builtin and then its argument prototype would still apply. */ 48981 #ifdef __cplusplus 48982 extern "C" 48983 #endif 48984 char jpeg_CreateDecompress (); 48985 int 48986 main () 48987 { 48988 return jpeg_CreateDecompress (); 48989 ; 48990 return 0; 48991 } 48992 _ACEOF 48993 if ac_fn_cxx_try_link "$LINENO"; then : 48994 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48995 else 48996 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48997 fi 48998 rm -f core conftest.err conftest.$ac_objext \ 48999 conftest$ac_exeext conftest.$ac_ext 49000 LIBS=$ac_check_lib_save_LIBS 49001 fi 49002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 49003 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 49004 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 49005 cat >>confdefs.h <<_ACEOF 49006 #define HAVE_LIBJPEG 1 49007 _ACEOF 49008 49009 LIBS="-ljpeg $LIBS" 49010 49011 else 49012 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 49013 fi 49014 49015 49016 USE_EXTERNAL_LIBJPEG=true 49017 else 49018 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 49019 fi 49020 49021 49022 49023 ############################################################################### 49024 # 49025 # Check for the gif library 49026 # 49027 49028 49029 # Check whether --with-giflib was given. 49030 if test "${with_giflib+set}" = set; then : 49031 withval=$with_giflib; 49032 fi 49033 49034 49035 49036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 49037 $as_echo_n "checking for which giflib to use... " >&6; } 49038 49039 # default is bundled 49040 DEFAULT_GIFLIB=bundled 49041 49042 # 49043 # if user didn't specify, use DEFAULT_GIFLIB 49044 # 49045 if test "x${with_giflib}" = "x"; then 49046 with_giflib=${DEFAULT_GIFLIB} 49047 fi 49048 49049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 49050 $as_echo "${with_giflib}" >&6; } 49051 49052 if test "x${with_giflib}" = "xbundled"; then 49053 USE_EXTERNAL_LIBGIF=false 49054 elif test "x${with_giflib}" = "xsystem"; then 49055 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 49056 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 49057 49058 else 49059 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 49060 fi 49061 49062 49063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 49064 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 49065 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 49066 $as_echo_n "(cached) " >&6 49067 else 49068 ac_check_lib_save_LIBS=$LIBS 49069 LIBS="-lgif $LIBS" 49070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49071 /* end confdefs.h. */ 49072 49073 /* Override any GCC internal prototype to avoid an error. 49074 Use char because int might match the return type of a GCC 49075 builtin and then its argument prototype would still apply. */ 49076 #ifdef __cplusplus 49077 extern "C" 49078 #endif 49079 char DGifGetCode (); 49080 int 49081 main () 49082 { 49083 return DGifGetCode (); 49084 ; 49085 return 0; 49086 } 49087 _ACEOF 49088 if ac_fn_cxx_try_link "$LINENO"; then : 49089 ac_cv_lib_gif_DGifGetCode=yes 49090 else 49091 ac_cv_lib_gif_DGifGetCode=no 49092 fi 49093 rm -f core conftest.err conftest.$ac_objext \ 49094 conftest$ac_exeext conftest.$ac_ext 49095 LIBS=$ac_check_lib_save_LIBS 49096 fi 49097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 49098 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 49099 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 49100 cat >>confdefs.h <<_ACEOF 49101 #define HAVE_LIBGIF 1 49102 _ACEOF 49103 49104 LIBS="-lgif $LIBS" 49105 49106 else 49107 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 49108 fi 49109 49110 49111 USE_EXTERNAL_LIBGIF=true 49112 else 49113 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 49114 fi 49115 49116 49117 ############################################################################### 49118 # 49119 # Check for the lcms2 library 49120 # 49121 49122 49123 # Check whether --with-lcms was given. 49124 if test "${with_lcms+set}" = set; then : 49125 withval=$with_lcms; 49126 fi 49127 49128 49129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 49130 $as_echo_n "checking for which lcms to use... " >&6; } 49131 49132 DEFAULT_LCMS=bundled 49133 49134 # 49135 # If user didn't specify, use DEFAULT_LCMS 49136 # 49137 if test "x${with_lcms}" = "x"; then 49138 with_lcms=${DEFAULT_LCMS} 49139 fi 49140 49141 if test "x${with_lcms}" = "xbundled"; then 49142 USE_EXTERNAL_LCMS=false 49143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49144 $as_echo "bundled" >&6; } 49145 elif test "x${with_lcms}" = "xsystem"; then 49146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49147 $as_echo "system" >&6; } 49148 49149 pkg_failed=no 49150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 49151 $as_echo_n "checking for LCMS... " >&6; } 49152 49153 if test -n "$LCMS_CFLAGS"; then 49154 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 49155 elif test -n "$PKG_CONFIG"; then 49156 if test -n "$PKG_CONFIG" && \ 49157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49158 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49159 ac_status=$? 49160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49161 test $ac_status = 0; }; then 49162 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 49163 else 49164 pkg_failed=yes 49165 fi 49166 else 49167 pkg_failed=untried 49168 fi 49169 if test -n "$LCMS_LIBS"; then 49170 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 49171 elif test -n "$PKG_CONFIG"; then 49172 if test -n "$PKG_CONFIG" && \ 49173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49174 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49175 ac_status=$? 49176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49177 test $ac_status = 0; }; then 49178 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 49179 else 49180 pkg_failed=yes 49181 fi 49182 else 49183 pkg_failed=untried 49184 fi 49185 49186 49187 49188 if test $pkg_failed = yes; then 49189 49190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49191 _pkg_short_errors_supported=yes 49192 else 49193 _pkg_short_errors_supported=no 49194 fi 49195 if test $_pkg_short_errors_supported = yes; then 49196 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 49197 else 49198 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 49199 fi 49200 # Put the nasty error message in config.log where it belongs 49201 echo "$LCMS_PKG_ERRORS" >&5 49202 49203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49204 $as_echo "no" >&6; } 49205 LCMS_FOUND=no 49206 elif test $pkg_failed = untried; then 49207 LCMS_FOUND=no 49208 else 49209 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 49210 LCMS_LIBS=$pkg_cv_LCMS_LIBS 49211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49212 $as_echo "yes" >&6; } 49213 LCMS_FOUND=yes 49214 fi 49215 if test "x${LCMS_FOUND}" = "xyes"; then 49216 USE_EXTERNAL_LCMS=true 49217 else 49218 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 49219 fi 49220 else 49221 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 49222 fi 49223 49224 49225 49226 ############################################################################### 49227 # 49228 # Check for the png library 49229 # 49230 49231 49232 # Check whether --with-libpng was given. 49233 if test "${with_libpng+set}" = set; then : 49234 withval=$with_libpng; 49235 fi 49236 49237 49238 49239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 49240 $as_echo_n "checking for which libpng to use... " >&6; } 49241 49242 # default is bundled 49243 DEFAULT_LIBPNG=bundled 49244 49245 # 49246 # if user didn't specify, use DEFAULT_LIBPNG 49247 # 49248 if test "x${with_libpng}" = "x"; then 49249 with_libpng=${DEFAULT_LIBPNG} 49250 fi 49251 49252 if test "x${with_libpng}" = "xbundled"; then 49253 USE_EXTERNAL_LIBPNG=false 49254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49255 $as_echo "bundled" >&6; } 49256 elif test "x${with_libpng}" = "xsystem"; then 49257 49258 pkg_failed=no 49259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 49260 $as_echo_n "checking for PNG... " >&6; } 49261 49262 if test -n "$PNG_CFLAGS"; then 49263 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 49264 elif test -n "$PKG_CONFIG"; then 49265 if test -n "$PKG_CONFIG" && \ 49266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49267 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49268 ac_status=$? 49269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49270 test $ac_status = 0; }; then 49271 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 49272 else 49273 pkg_failed=yes 49274 fi 49275 else 49276 pkg_failed=untried 49277 fi 49278 if test -n "$PNG_LIBS"; then 49279 pkg_cv_PNG_LIBS="$PNG_LIBS" 49280 elif test -n "$PKG_CONFIG"; then 49281 if test -n "$PKG_CONFIG" && \ 49282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49283 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49284 ac_status=$? 49285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49286 test $ac_status = 0; }; then 49287 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 49288 else 49289 pkg_failed=yes 49290 fi 49291 else 49292 pkg_failed=untried 49293 fi 49294 49295 49296 49297 if test $pkg_failed = yes; then 49298 49299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49300 _pkg_short_errors_supported=yes 49301 else 49302 _pkg_short_errors_supported=no 49303 fi 49304 if test $_pkg_short_errors_supported = yes; then 49305 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 49306 else 49307 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 49308 fi 49309 # Put the nasty error message in config.log where it belongs 49310 echo "$PNG_PKG_ERRORS" >&5 49311 49312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49313 $as_echo "no" >&6; } 49314 LIBPNG_FOUND=no 49315 elif test $pkg_failed = untried; then 49316 LIBPNG_FOUND=no 49317 else 49318 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 49319 PNG_LIBS=$pkg_cv_PNG_LIBS 49320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49321 $as_echo "yes" >&6; } 49322 LIBPNG_FOUND=yes 49323 fi 49324 if test "x${LIBPNG_FOUND}" = "xyes"; then 49325 USE_EXTERNAL_LIBPNG=true 49326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49327 $as_echo "system" >&6; } 49328 else 49329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49330 $as_echo "system not found" >&6; } 49331 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49332 fi 49333 else 49334 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49335 fi 49336 49337 49338 ############################################################################### 49339 # 49340 # Check for the zlib library 49341 # 49342 49343 49344 # Check whether --with-zlib was given. 49345 if test "${with_zlib+set}" = set; then : 49346 withval=$with_zlib; 49347 fi 49348 49349 49350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49351 $as_echo_n "checking for compress in -lz... " >&6; } 49352 if ${ac_cv_lib_z_compress+:} false; then : 49353 $as_echo_n "(cached) " >&6 49354 else 49355 ac_check_lib_save_LIBS=$LIBS 49356 LIBS="-lz $LIBS" 49357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49358 /* end confdefs.h. */ 49359 49360 /* Override any GCC internal prototype to avoid an error. 49361 Use char because int might match the return type of a GCC 49362 builtin and then its argument prototype would still apply. */ 49363 #ifdef __cplusplus 49364 extern "C" 49365 #endif 49366 char compress (); 49367 int 49368 main () 49369 { 49370 return compress (); 49371 ; 49372 return 0; 49373 } 49374 _ACEOF 49375 if ac_fn_cxx_try_link "$LINENO"; then : 49376 ac_cv_lib_z_compress=yes 49377 else 49378 ac_cv_lib_z_compress=no 49379 fi 49380 rm -f core conftest.err conftest.$ac_objext \ 49381 conftest$ac_exeext conftest.$ac_ext 49382 LIBS=$ac_check_lib_save_LIBS 49383 fi 49384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49385 $as_echo "$ac_cv_lib_z_compress" >&6; } 49386 if test "x$ac_cv_lib_z_compress" = xyes; then : 49387 ZLIB_FOUND=yes 49388 else 49389 ZLIB_FOUND=no 49390 fi 49391 49392 49393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49394 $as_echo_n "checking for which zlib to use... " >&6; } 49395 49396 DEFAULT_ZLIB=bundled 49397 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49398 # 49399 # On macosx default is system...on others default is 49400 # 49401 DEFAULT_ZLIB=system 49402 fi 49403 49404 if test "x${ZLIB_FOUND}" != "xyes"; then 49405 # 49406 # If we don't find any system...set default to bundled 49407 # 49408 DEFAULT_ZLIB=bundled 49409 fi 49410 49411 # 49412 # If user didn't specify, use DEFAULT_ZLIB 49413 # 49414 if test "x${with_zlib}" = "x"; then 49415 with_zlib=${DEFAULT_ZLIB} 49416 fi 49417 49418 if test "x${with_zlib}" = "xbundled"; then 49419 USE_EXTERNAL_LIBZ=false 49420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49421 $as_echo "bundled" >&6; } 49422 elif test "x${with_zlib}" = "xsystem"; then 49423 if test "x${ZLIB_FOUND}" = "xyes"; then 49424 USE_EXTERNAL_LIBZ=true 49425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49426 $as_echo "system" >&6; } 49427 else 49428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49429 $as_echo "system not found" >&6; } 49430 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49431 fi 49432 else 49433 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49434 fi 49435 49436 49437 49438 ############################################################################### 49439 LIBZIP_CAN_USE_MMAP=true 49440 49441 49442 49443 ############################################################################### 49444 # 49445 # Check if altzone exists in time.h 49446 # 49447 49448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49449 /* end confdefs.h. */ 49450 #include <time.h> 49451 int 49452 main () 49453 { 49454 return (int)altzone; 49455 ; 49456 return 0; 49457 } 49458 _ACEOF 49459 if ac_fn_cxx_try_link "$LINENO"; then : 49460 has_altzone=yes 49461 else 49462 has_altzone=no 49463 fi 49464 rm -f core conftest.err conftest.$ac_objext \ 49465 conftest$ac_exeext conftest.$ac_ext 49466 if test "x$has_altzone" = xyes; then 49467 49468 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49469 49470 fi 49471 49472 ############################################################################### 49473 # 49474 # Check the maths library 49475 # 49476 49477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49478 $as_echo_n "checking for cos in -lm... " >&6; } 49479 if ${ac_cv_lib_m_cos+:} false; then : 49480 $as_echo_n "(cached) " >&6 49481 else 49482 ac_check_lib_save_LIBS=$LIBS 49483 LIBS="-lm $LIBS" 49484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49485 /* end confdefs.h. */ 49486 49487 /* Override any GCC internal prototype to avoid an error. 49488 Use char because int might match the return type of a GCC 49489 builtin and then its argument prototype would still apply. */ 49490 #ifdef __cplusplus 49491 extern "C" 49492 #endif 49493 char cos (); 49494 int 49495 main () 49496 { 49497 return cos (); 49498 ; 49499 return 0; 49500 } 49501 _ACEOF 49502 if ac_fn_cxx_try_link "$LINENO"; then : 49503 ac_cv_lib_m_cos=yes 49504 else 49505 ac_cv_lib_m_cos=no 49506 fi 49507 rm -f core conftest.err conftest.$ac_objext \ 49508 conftest$ac_exeext conftest.$ac_ext 49509 LIBS=$ac_check_lib_save_LIBS 49510 fi 49511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49512 $as_echo "$ac_cv_lib_m_cos" >&6; } 49513 if test "x$ac_cv_lib_m_cos" = xyes; then : 49514 cat >>confdefs.h <<_ACEOF 49515 #define HAVE_LIBM 1 49516 _ACEOF 49517 49518 LIBS="-lm $LIBS" 49519 49520 else 49521 49522 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49523 $as_echo "$as_me: Maths library was not found" >&6;} 49524 49525 49526 fi 49527 49528 49529 49530 ############################################################################### 49531 # 49532 # Check for libdl.so 49533 49534 save_LIBS="$LIBS" 49535 LIBS="" 49536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49537 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49538 if ${ac_cv_lib_dl_dlopen+:} false; then : 49539 $as_echo_n "(cached) " >&6 49540 else 49541 ac_check_lib_save_LIBS=$LIBS 49542 LIBS="-ldl $LIBS" 49543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49544 /* end confdefs.h. */ 49545 49546 /* Override any GCC internal prototype to avoid an error. 49547 Use char because int might match the return type of a GCC 49548 builtin and then its argument prototype would still apply. */ 49549 #ifdef __cplusplus 49550 extern "C" 49551 #endif 49552 char dlopen (); 49553 int 49554 main () 49555 { 49556 return dlopen (); 49557 ; 49558 return 0; 49559 } 49560 _ACEOF 49561 if ac_fn_cxx_try_link "$LINENO"; then : 49562 ac_cv_lib_dl_dlopen=yes 49563 else 49564 ac_cv_lib_dl_dlopen=no 49565 fi 49566 rm -f core conftest.err conftest.$ac_objext \ 49567 conftest$ac_exeext conftest.$ac_ext 49568 LIBS=$ac_check_lib_save_LIBS 49569 fi 49570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49571 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49572 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49573 cat >>confdefs.h <<_ACEOF 49574 #define HAVE_LIBDL 1 49575 _ACEOF 49576 49577 LIBS="-ldl $LIBS" 49578 49579 fi 49580 49581 LIBDL="$LIBS" 49582 49583 LIBS="$save_LIBS" 49584 49585 49586 ############################################################################### 49587 # 49588 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49589 # dynamic build is configured on command line. 49590 # 49591 49592 # Check whether --with-stdc++lib was given. 49593 if test "${with_stdc__lib+set}" = set; then : 49594 withval=$with_stdc__lib; 49595 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49596 && test "x$with_stdc__lib" != xdefault; then 49597 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49598 fi 49599 49600 else 49601 with_stdc__lib=default 49602 49603 fi 49604 49605 49606 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49607 # Test if -lstdc++ works. 49608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49609 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49610 ac_ext=cpp 49611 ac_cpp='$CXXCPP $CPPFLAGS' 49612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49615 49616 OLD_CXXFLAGS="$CXXFLAGS" 49617 CXXFLAGS="$CXXFLAGS -lstdc++" 49618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49619 /* end confdefs.h. */ 49620 49621 int 49622 main () 49623 { 49624 return 0; 49625 ; 49626 return 0; 49627 } 49628 _ACEOF 49629 if ac_fn_cxx_try_link "$LINENO"; then : 49630 has_dynamic_libstdcxx=yes 49631 else 49632 has_dynamic_libstdcxx=no 49633 fi 49634 rm -f core conftest.err conftest.$ac_objext \ 49635 conftest$ac_exeext conftest.$ac_ext 49636 CXXFLAGS="$OLD_CXXFLAGS" 49637 ac_ext=cpp 49638 ac_cpp='$CXXCPP $CPPFLAGS' 49639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49642 49643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49644 $as_echo "$has_dynamic_libstdcxx" >&6; } 49645 49646 # Test if stdc++ can be linked statically. 49647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49648 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49649 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49650 ac_ext=cpp 49651 ac_cpp='$CXXCPP $CPPFLAGS' 49652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49655 49656 OLD_LIBS="$LIBS" 49657 OLD_CXX="$CXX" 49658 LIBS="$STATIC_STDCXX_FLAGS" 49659 CXX="$CC" 49660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49661 /* end confdefs.h. */ 49662 49663 int 49664 main () 49665 { 49666 return 0; 49667 ; 49668 return 0; 49669 } 49670 _ACEOF 49671 if ac_fn_cxx_try_link "$LINENO"; then : 49672 has_static_libstdcxx=yes 49673 else 49674 has_static_libstdcxx=no 49675 fi 49676 rm -f core conftest.err conftest.$ac_objext \ 49677 conftest$ac_exeext conftest.$ac_ext 49678 LIBS="$OLD_LIBS" 49679 CXX="$OLD_CXX" 49680 ac_ext=cpp 49681 ac_cpp='$CXXCPP $CPPFLAGS' 49682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49685 49686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49687 $as_echo "$has_static_libstdcxx" >&6; } 49688 49689 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49690 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49691 fi 49692 49693 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49694 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49695 fi 49696 49697 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49698 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49699 fi 49700 49701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49702 $as_echo_n "checking how to link with libstdc++... " >&6; } 49703 # If dynamic was requested, it's available since it would fail above otherwise. 49704 # If dynamic wasn't requested, go with static unless it isn't available. 49705 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49706 LIBCXX="$LIBCXX -lstdc++" 49707 LDCXX="$CXX" 49708 STATIC_CXX_SETTING="STATIC_CXX=false" 49709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49710 $as_echo "dynamic" >&6; } 49711 else 49712 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49713 LDCXX="$CC" 49714 STATIC_CXX_SETTING="STATIC_CXX=true" 49715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49716 $as_echo "static" >&6; } 49717 fi 49718 fi 49719 49720 49721 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49722 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49723 49724 pkg_failed=no 49725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49726 $as_echo_n "checking for LIBFFI... " >&6; } 49727 49728 if test -n "$LIBFFI_CFLAGS"; then 49729 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49730 elif test -n "$PKG_CONFIG"; then 49731 if test -n "$PKG_CONFIG" && \ 49732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49733 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49734 ac_status=$? 49735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49736 test $ac_status = 0; }; then 49737 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49738 else 49739 pkg_failed=yes 49740 fi 49741 else 49742 pkg_failed=untried 49743 fi 49744 if test -n "$LIBFFI_LIBS"; then 49745 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49746 elif test -n "$PKG_CONFIG"; then 49747 if test -n "$PKG_CONFIG" && \ 49748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49749 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49750 ac_status=$? 49751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49752 test $ac_status = 0; }; then 49753 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49754 else 49755 pkg_failed=yes 49756 fi 49757 else 49758 pkg_failed=untried 49759 fi 49760 49761 49762 49763 if test $pkg_failed = yes; then 49764 49765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49766 _pkg_short_errors_supported=yes 49767 else 49768 _pkg_short_errors_supported=no 49769 fi 49770 if test $_pkg_short_errors_supported = yes; then 49771 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49772 else 49773 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49774 fi 49775 # Put the nasty error message in config.log where it belongs 49776 echo "$LIBFFI_PKG_ERRORS" >&5 49777 49778 as_fn_error $? "Package requirements (libffi) were not met: 49779 49780 $LIBFFI_PKG_ERRORS 49781 49782 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49783 installed software in a non-standard prefix. 49784 49785 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49786 and LIBFFI_LIBS to avoid the need to call pkg-config. 49787 See the pkg-config man page for more details. 49788 " "$LINENO" 5 49789 elif test $pkg_failed = untried; then 49790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49792 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49793 is in your PATH or set the PKG_CONFIG environment variable to the full 49794 path to pkg-config. 49795 49796 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49797 and LIBFFI_LIBS to avoid the need to call pkg-config. 49798 See the pkg-config man page for more details. 49799 49800 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49801 See \`config.log' for more details" "$LINENO" 5; } 49802 else 49803 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49804 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49806 $as_echo "yes" >&6; } 49807 : 49808 fi 49809 49810 fi 49811 49812 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49813 # Extract the first word of "llvm-config", so it can be a program name with args. 49814 set dummy llvm-config; ac_word=$2 49815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49816 $as_echo_n "checking for $ac_word... " >&6; } 49817 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49818 $as_echo_n "(cached) " >&6 49819 else 49820 if test -n "$LLVM_CONFIG"; then 49821 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49822 else 49823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49824 for as_dir in $PATH 49825 do 49826 IFS=$as_save_IFS 49827 test -z "$as_dir" && as_dir=. 49828 for ac_exec_ext in '' $ac_executable_extensions; do 49829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49830 ac_cv_prog_LLVM_CONFIG="llvm-config" 49831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49832 break 2 49833 fi 49834 done 49835 done 49836 IFS=$as_save_IFS 49837 49838 fi 49839 fi 49840 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49841 if test -n "$LLVM_CONFIG"; then 49842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49843 $as_echo "$LLVM_CONFIG" >&6; } 49844 else 49845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49846 $as_echo "no" >&6; } 49847 fi 49848 49849 49850 49851 if test "x$LLVM_CONFIG" != xllvm-config; then 49852 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49853 fi 49854 49855 llvm_components="jit mcjit engine nativecodegen native" 49856 unset LLVM_CFLAGS 49857 for flag in $("$LLVM_CONFIG" --cxxflags); do 49858 if echo "${flag}" | grep -q '^-[ID]'; then 49859 if test "${flag}" != "-D_DEBUG" ; then 49860 if test "${LLVM_CFLAGS}" != "" ; then 49861 LLVM_CFLAGS="${LLVM_CFLAGS} " 49862 fi 49863 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49864 fi 49865 fi 49866 done 49867 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49868 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49869 49870 unset LLVM_LDFLAGS 49871 for flag in $("${LLVM_CONFIG}" --ldflags); do 49872 if echo "${flag}" | grep -q '^-L'; then 49873 if test "${LLVM_LDFLAGS}" != ""; then 49874 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49875 fi 49876 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49877 fi 49878 done 49879 49880 unset LLVM_LIBS 49881 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49882 if echo "${flag}" | grep -q '^-l'; then 49883 if test "${LLVM_LIBS}" != ""; then 49884 LLVM_LIBS="${LLVM_LIBS} " 49885 fi 49886 LLVM_LIBS="${LLVM_LIBS}${flag}" 49887 fi 49888 done 49889 49890 49891 49892 49893 fi 49894 49895 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49896 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49897 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49898 fi 49899 49900 # TODO better (platform agnostic) test 49901 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49902 LIBCXX="-lstdc++" 49903 fi 49904 49905 49906 49907 49908 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49909 49910 49911 # Check whether --with-msvcr-dll was given. 49912 if test "${with_msvcr_dll+set}" = set; then : 49913 withval=$with_msvcr_dll; 49914 fi 49915 49916 49917 if test "x$with_msvcr_dll" != x; then 49918 # If given explicitely by user, do not probe. If not present, fail directly. 49919 49920 DLL_NAME="$DLL_NAME" 49921 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 49922 METHOD="--with-msvcr-dll" 49923 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49924 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49925 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49926 49927 # Need to check if the found msvcr is correct architecture 49928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49929 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49930 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49932 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49933 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49934 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49935 CORRECT_MSVCR_ARCH="PE32 executable" 49936 else 49937 CORRECT_MSVCR_ARCH="PE32+ executable" 49938 fi 49939 else 49940 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49941 CORRECT_MSVCR_ARCH=386 49942 else 49943 CORRECT_MSVCR_ARCH=x86-64 49944 fi 49945 fi 49946 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49948 $as_echo "ok" >&6; } 49949 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49951 $as_echo_n "checking for $DLL_NAME... " >&6; } 49952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49953 $as_echo "$MSVC_DLL" >&6; } 49954 else 49955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49956 $as_echo "incorrect, ignoring" >&6; } 49957 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49958 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49959 fi 49960 fi 49961 49962 if test "x$MSVC_DLL" = x; then 49963 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 49964 fi 49965 else 49966 49967 VAR_NAME="MSVCR_DLL" 49968 DLL_NAME="${MSVCR_NAME}" 49969 MSVC_DLL= 49970 49971 if test "x$MSVC_DLL" = x; then 49972 # Probe: Using well-known location from Visual Studio 10.0 49973 if test "x$VCINSTALLDIR" != x; then 49974 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49975 49976 windows_path="$CYGWIN_VC_INSTALL_DIR" 49977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49978 unix_path=`$CYGPATH -u "$windows_path"` 49979 CYGWIN_VC_INSTALL_DIR="$unix_path" 49980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49982 CYGWIN_VC_INSTALL_DIR="$unix_path" 49983 fi 49984 49985 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49986 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49987 else 49988 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49989 fi 49990 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 49991 49992 DLL_NAME="$DLL_NAME" 49993 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49994 METHOD="well-known location in VCINSTALLDIR" 49995 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49996 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49997 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49998 49999 # Need to check if the found msvcr is correct architecture 50000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50001 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50002 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50004 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50005 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50006 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50007 CORRECT_MSVCR_ARCH="PE32 executable" 50008 else 50009 CORRECT_MSVCR_ARCH="PE32+ executable" 50010 fi 50011 else 50012 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50013 CORRECT_MSVCR_ARCH=386 50014 else 50015 CORRECT_MSVCR_ARCH=x86-64 50016 fi 50017 fi 50018 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50020 $as_echo "ok" >&6; } 50021 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50023 $as_echo_n "checking for $DLL_NAME... " >&6; } 50024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50025 $as_echo "$MSVC_DLL" >&6; } 50026 else 50027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50028 $as_echo "incorrect, ignoring" >&6; } 50029 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50030 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50031 fi 50032 fi 50033 50034 fi 50035 fi 50036 50037 if test "x$MSVC_DLL" = x; then 50038 # Probe: Check in the Boot JDK directory. 50039 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50040 50041 DLL_NAME="$DLL_NAME" 50042 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50043 METHOD="well-known location in Boot JDK" 50044 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50045 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50046 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50047 50048 # Need to check if the found msvcr is correct architecture 50049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50050 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50051 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50053 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50054 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50055 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50056 CORRECT_MSVCR_ARCH="PE32 executable" 50057 else 50058 CORRECT_MSVCR_ARCH="PE32+ executable" 50059 fi 50060 else 50061 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50062 CORRECT_MSVCR_ARCH=386 50063 else 50064 CORRECT_MSVCR_ARCH=x86-64 50065 fi 50066 fi 50067 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50069 $as_echo "ok" >&6; } 50070 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50072 $as_echo_n "checking for $DLL_NAME... " >&6; } 50073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50074 $as_echo "$MSVC_DLL" >&6; } 50075 else 50076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50077 $as_echo "incorrect, ignoring" >&6; } 50078 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50079 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50080 fi 50081 fi 50082 50083 fi 50084 50085 if test "x$MSVC_DLL" = x; then 50086 # Probe: Look in the Windows system32 directory 50087 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50088 50089 windows_path="$CYGWIN_SYSTEMROOT" 50090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50091 unix_path=`$CYGPATH -u "$windows_path"` 50092 CYGWIN_SYSTEMROOT="$unix_path" 50093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50094 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50095 CYGWIN_SYSTEMROOT="$unix_path" 50096 fi 50097 50098 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50099 50100 DLL_NAME="$DLL_NAME" 50101 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50102 METHOD="well-known location in SYSTEMROOT" 50103 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50104 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50105 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50106 50107 # Need to check if the found msvcr is correct architecture 50108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50109 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50110 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50112 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50113 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50114 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50115 CORRECT_MSVCR_ARCH="PE32 executable" 50116 else 50117 CORRECT_MSVCR_ARCH="PE32+ executable" 50118 fi 50119 else 50120 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50121 CORRECT_MSVCR_ARCH=386 50122 else 50123 CORRECT_MSVCR_ARCH=x86-64 50124 fi 50125 fi 50126 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50128 $as_echo "ok" >&6; } 50129 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50131 $as_echo_n "checking for $DLL_NAME... " >&6; } 50132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50133 $as_echo "$MSVC_DLL" >&6; } 50134 else 50135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50136 $as_echo "incorrect, ignoring" >&6; } 50137 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50138 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50139 fi 50140 fi 50141 50142 fi 50143 50144 if test "x$MSVC_DLL" = x; then 50145 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50146 if test "x$VS100COMNTOOLS" != x; then 50147 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50148 50149 windows_path="$CYGWIN_VS_TOOLS_DIR" 50150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50151 unix_path=`$CYGPATH -u "$windows_path"` 50152 CYGWIN_VS_TOOLS_DIR="$unix_path" 50153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50155 CYGWIN_VS_TOOLS_DIR="$unix_path" 50156 fi 50157 50158 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50159 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50160 | $GREP -i /x64/ | $HEAD --lines 1` 50161 else 50162 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50163 | $GREP -i /x86/ | $HEAD --lines 1` 50164 fi 50165 50166 DLL_NAME="$DLL_NAME" 50167 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50168 METHOD="search of VS100COMNTOOLS" 50169 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50170 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50171 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50172 50173 # Need to check if the found msvcr is correct architecture 50174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50175 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50176 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50178 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50179 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50180 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50181 CORRECT_MSVCR_ARCH="PE32 executable" 50182 else 50183 CORRECT_MSVCR_ARCH="PE32+ executable" 50184 fi 50185 else 50186 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50187 CORRECT_MSVCR_ARCH=386 50188 else 50189 CORRECT_MSVCR_ARCH=x86-64 50190 fi 50191 fi 50192 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50194 $as_echo "ok" >&6; } 50195 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50197 $as_echo_n "checking for $DLL_NAME... " >&6; } 50198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50199 $as_echo "$MSVC_DLL" >&6; } 50200 else 50201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50202 $as_echo "incorrect, ignoring" >&6; } 50203 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50204 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50205 fi 50206 fi 50207 50208 fi 50209 fi 50210 50211 if test "x$MSVC_DLL" = x; then 50212 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50213 # (This was the original behaviour; kept since it might turn something up) 50214 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50215 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50216 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50217 | $GREP x64 | $HEAD --lines 1` 50218 else 50219 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50220 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50221 if test "x$POSSIBLE_MSVC_DLL" = x; then 50222 # We're grasping at straws now... 50223 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50224 | $HEAD --lines 1` 50225 fi 50226 fi 50227 50228 50229 DLL_NAME="$DLL_NAME" 50230 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50231 METHOD="search of VCINSTALLDIR" 50232 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50233 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50234 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50235 50236 # Need to check if the found msvcr is correct architecture 50237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50238 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50239 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50241 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50242 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50243 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50244 CORRECT_MSVCR_ARCH="PE32 executable" 50245 else 50246 CORRECT_MSVCR_ARCH="PE32+ executable" 50247 fi 50248 else 50249 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50250 CORRECT_MSVCR_ARCH=386 50251 else 50252 CORRECT_MSVCR_ARCH=x86-64 50253 fi 50254 fi 50255 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50257 $as_echo "ok" >&6; } 50258 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50260 $as_echo_n "checking for $DLL_NAME... " >&6; } 50261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50262 $as_echo "$MSVC_DLL" >&6; } 50263 else 50264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50265 $as_echo "incorrect, ignoring" >&6; } 50266 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50267 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50268 fi 50269 fi 50270 50271 fi 50272 fi 50273 50274 if test "x$MSVC_DLL" = x; then 50275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50276 $as_echo_n "checking for $DLL_NAME... " >&6; } 50277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50278 $as_echo "no" >&6; } 50279 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50280 fi 50281 50282 MSVCR_DLL=$MSVC_DLL 50283 50284 # Only process if variable expands to non-empty 50285 50286 if test "x$MSVCR_DLL" != x; then 50287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50288 50289 # Input might be given as Windows format, start by converting to 50290 # unix format. 50291 path="$MSVCR_DLL" 50292 new_path=`$CYGPATH -u "$path"` 50293 50294 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50295 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50296 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50297 # "foo.exe" is OK but "foo" is an error. 50298 # 50299 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50300 # It is also a way to make sure we got the proper file name for the real test later on. 50301 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50302 if test "x$test_shortpath" = x; then 50303 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50304 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50305 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 50306 fi 50307 50308 # Call helper function which possibly converts this using DOS-style short mode. 50309 # If so, the updated path is stored in $new_path. 50310 50311 input_path="$new_path" 50312 # Check if we need to convert this using DOS-style short mode. If the path 50313 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50314 # take no chances and rewrite it. 50315 # Note: m4 eats our [], so we need to use [ and ] instead. 50316 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50317 if test "x$has_forbidden_chars" != x; then 50318 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50319 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50320 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50321 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50322 # Going to short mode and back again did indeed matter. Since short mode is 50323 # case insensitive, let's make it lowercase to improve readability. 50324 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50325 # Now convert it back to Unix-stile (cygpath) 50326 input_path=`$CYGPATH -u "$shortmode_path"` 50327 new_path="$input_path" 50328 fi 50329 fi 50330 50331 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50332 if test "x$test_cygdrive_prefix" = x; then 50333 # As a simple fix, exclude /usr/bin since it's not a real path. 50334 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50335 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50336 # a path prefixed by /cygdrive for fixpath to work. 50337 new_path="$CYGWIN_ROOT_PATH$input_path" 50338 fi 50339 fi 50340 50341 50342 if test "x$path" != "x$new_path"; then 50343 MSVCR_DLL="$new_path" 50344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50345 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50346 fi 50347 50348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50349 50350 path="$MSVCR_DLL" 50351 has_colon=`$ECHO $path | $GREP ^.:` 50352 new_path="$path" 50353 if test "x$has_colon" = x; then 50354 # Not in mixed or Windows style, start by that. 50355 new_path=`cmd //c echo $path` 50356 fi 50357 50358 50359 input_path="$new_path" 50360 # Check if we need to convert this using DOS-style short mode. If the path 50361 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50362 # take no chances and rewrite it. 50363 # Note: m4 eats our [], so we need to use [ and ] instead. 50364 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50365 if test "x$has_forbidden_chars" != x; then 50366 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50367 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50368 fi 50369 50370 50371 windows_path="$new_path" 50372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50373 unix_path=`$CYGPATH -u "$windows_path"` 50374 new_path="$unix_path" 50375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50377 new_path="$unix_path" 50378 fi 50379 50380 if test "x$path" != "x$new_path"; then 50381 MSVCR_DLL="$new_path" 50382 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50383 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50384 fi 50385 50386 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50387 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50388 50389 else 50390 # We're on a unix platform. Hooray! :) 50391 path="$MSVCR_DLL" 50392 has_space=`$ECHO "$path" | $GREP " "` 50393 if test "x$has_space" != x; then 50394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50395 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50396 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50397 fi 50398 50399 # Use eval to expand a potential ~ 50400 eval path="$path" 50401 if test ! -f "$path" && test ! -d "$path"; then 50402 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50403 fi 50404 50405 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50406 fi 50407 fi 50408 50409 MSVCR_DLL=$MSVCR_DLL 50410 50411 50412 fi 50413 50414 50415 # Check whether --with-msvcp-dll was given. 50416 if test "${with_msvcp_dll+set}" = set; then : 50417 withval=$with_msvcp_dll; 50418 fi 50419 50420 50421 if test "x$MSVCP_NAME" != "x"; then 50422 if test "x$with_msvcp_dll" != x; then 50423 # If given explicitely by user, do not probe. If not present, fail directly. 50424 50425 DLL_NAME="$DLL_NAME" 50426 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 50427 METHOD="--with-msvcp-dll" 50428 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50429 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50430 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50431 50432 # Need to check if the found msvcr is correct architecture 50433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50434 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50435 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50437 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50438 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50439 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50440 CORRECT_MSVCR_ARCH="PE32 executable" 50441 else 50442 CORRECT_MSVCR_ARCH="PE32+ executable" 50443 fi 50444 else 50445 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50446 CORRECT_MSVCR_ARCH=386 50447 else 50448 CORRECT_MSVCR_ARCH=x86-64 50449 fi 50450 fi 50451 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50453 $as_echo "ok" >&6; } 50454 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50456 $as_echo_n "checking for $DLL_NAME... " >&6; } 50457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50458 $as_echo "$MSVC_DLL" >&6; } 50459 else 50460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50461 $as_echo "incorrect, ignoring" >&6; } 50462 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50463 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50464 fi 50465 fi 50466 50467 if test "x$MSVC_DLL" = x; then 50468 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50469 fi 50470 else 50471 50472 VAR_NAME="MSVCP_DLL" 50473 DLL_NAME="${MSVCP_NAME}" 50474 MSVC_DLL= 50475 50476 if test "x$MSVC_DLL" = x; then 50477 # Probe: Using well-known location from Visual Studio 10.0 50478 if test "x$VCINSTALLDIR" != x; then 50479 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50480 50481 windows_path="$CYGWIN_VC_INSTALL_DIR" 50482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50483 unix_path=`$CYGPATH -u "$windows_path"` 50484 CYGWIN_VC_INSTALL_DIR="$unix_path" 50485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50487 CYGWIN_VC_INSTALL_DIR="$unix_path" 50488 fi 50489 50490 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50491 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50492 else 50493 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50494 fi 50495 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 50496 50497 DLL_NAME="$DLL_NAME" 50498 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50499 METHOD="well-known location in VCINSTALLDIR" 50500 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50501 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50502 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50503 50504 # Need to check if the found msvcr is correct architecture 50505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50506 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50507 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50509 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50510 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50511 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50512 CORRECT_MSVCR_ARCH="PE32 executable" 50513 else 50514 CORRECT_MSVCR_ARCH="PE32+ executable" 50515 fi 50516 else 50517 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50518 CORRECT_MSVCR_ARCH=386 50519 else 50520 CORRECT_MSVCR_ARCH=x86-64 50521 fi 50522 fi 50523 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50525 $as_echo "ok" >&6; } 50526 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50528 $as_echo_n "checking for $DLL_NAME... " >&6; } 50529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50530 $as_echo "$MSVC_DLL" >&6; } 50531 else 50532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50533 $as_echo "incorrect, ignoring" >&6; } 50534 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50535 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50536 fi 50537 fi 50538 50539 fi 50540 fi 50541 50542 if test "x$MSVC_DLL" = x; then 50543 # Probe: Check in the Boot JDK directory. 50544 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50545 50546 DLL_NAME="$DLL_NAME" 50547 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50548 METHOD="well-known location in Boot JDK" 50549 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50550 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50551 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50552 50553 # Need to check if the found msvcr is correct architecture 50554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50555 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50556 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50558 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50559 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50560 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50561 CORRECT_MSVCR_ARCH="PE32 executable" 50562 else 50563 CORRECT_MSVCR_ARCH="PE32+ executable" 50564 fi 50565 else 50566 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50567 CORRECT_MSVCR_ARCH=386 50568 else 50569 CORRECT_MSVCR_ARCH=x86-64 50570 fi 50571 fi 50572 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50574 $as_echo "ok" >&6; } 50575 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50577 $as_echo_n "checking for $DLL_NAME... " >&6; } 50578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50579 $as_echo "$MSVC_DLL" >&6; } 50580 else 50581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50582 $as_echo "incorrect, ignoring" >&6; } 50583 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50584 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50585 fi 50586 fi 50587 50588 fi 50589 50590 if test "x$MSVC_DLL" = x; then 50591 # Probe: Look in the Windows system32 directory 50592 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50593 50594 windows_path="$CYGWIN_SYSTEMROOT" 50595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50596 unix_path=`$CYGPATH -u "$windows_path"` 50597 CYGWIN_SYSTEMROOT="$unix_path" 50598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50600 CYGWIN_SYSTEMROOT="$unix_path" 50601 fi 50602 50603 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50604 50605 DLL_NAME="$DLL_NAME" 50606 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50607 METHOD="well-known location in SYSTEMROOT" 50608 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50609 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50610 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50611 50612 # Need to check if the found msvcr is correct architecture 50613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50614 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50615 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50617 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50618 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50619 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50620 CORRECT_MSVCR_ARCH="PE32 executable" 50621 else 50622 CORRECT_MSVCR_ARCH="PE32+ executable" 50623 fi 50624 else 50625 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50626 CORRECT_MSVCR_ARCH=386 50627 else 50628 CORRECT_MSVCR_ARCH=x86-64 50629 fi 50630 fi 50631 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50633 $as_echo "ok" >&6; } 50634 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50636 $as_echo_n "checking for $DLL_NAME... " >&6; } 50637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50638 $as_echo "$MSVC_DLL" >&6; } 50639 else 50640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50641 $as_echo "incorrect, ignoring" >&6; } 50642 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50643 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50644 fi 50645 fi 50646 50647 fi 50648 50649 if test "x$MSVC_DLL" = x; then 50650 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50651 if test "x$VS100COMNTOOLS" != x; then 50652 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50653 50654 windows_path="$CYGWIN_VS_TOOLS_DIR" 50655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50656 unix_path=`$CYGPATH -u "$windows_path"` 50657 CYGWIN_VS_TOOLS_DIR="$unix_path" 50658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50659 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50660 CYGWIN_VS_TOOLS_DIR="$unix_path" 50661 fi 50662 50663 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50664 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50665 | $GREP -i /x64/ | $HEAD --lines 1` 50666 else 50667 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50668 | $GREP -i /x86/ | $HEAD --lines 1` 50669 fi 50670 50671 DLL_NAME="$DLL_NAME" 50672 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50673 METHOD="search of VS100COMNTOOLS" 50674 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50675 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50676 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50677 50678 # Need to check if the found msvcr is correct architecture 50679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50680 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50681 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50683 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50684 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50685 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50686 CORRECT_MSVCR_ARCH="PE32 executable" 50687 else 50688 CORRECT_MSVCR_ARCH="PE32+ executable" 50689 fi 50690 else 50691 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50692 CORRECT_MSVCR_ARCH=386 50693 else 50694 CORRECT_MSVCR_ARCH=x86-64 50695 fi 50696 fi 50697 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50699 $as_echo "ok" >&6; } 50700 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50702 $as_echo_n "checking for $DLL_NAME... " >&6; } 50703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50704 $as_echo "$MSVC_DLL" >&6; } 50705 else 50706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50707 $as_echo "incorrect, ignoring" >&6; } 50708 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50709 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50710 fi 50711 fi 50712 50713 fi 50714 fi 50715 50716 if test "x$MSVC_DLL" = x; then 50717 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50718 # (This was the original behaviour; kept since it might turn something up) 50719 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50720 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50721 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50722 | $GREP x64 | $HEAD --lines 1` 50723 else 50724 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50725 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50726 if test "x$POSSIBLE_MSVC_DLL" = x; then 50727 # We're grasping at straws now... 50728 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50729 | $HEAD --lines 1` 50730 fi 50731 fi 50732 50733 50734 DLL_NAME="$DLL_NAME" 50735 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50736 METHOD="search of VCINSTALLDIR" 50737 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50738 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50739 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50740 50741 # Need to check if the found msvcr is correct architecture 50742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50743 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50744 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50746 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50747 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50748 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50749 CORRECT_MSVCR_ARCH="PE32 executable" 50750 else 50751 CORRECT_MSVCR_ARCH="PE32+ executable" 50752 fi 50753 else 50754 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50755 CORRECT_MSVCR_ARCH=386 50756 else 50757 CORRECT_MSVCR_ARCH=x86-64 50758 fi 50759 fi 50760 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50762 $as_echo "ok" >&6; } 50763 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50765 $as_echo_n "checking for $DLL_NAME... " >&6; } 50766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50767 $as_echo "$MSVC_DLL" >&6; } 50768 else 50769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50770 $as_echo "incorrect, ignoring" >&6; } 50771 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50772 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50773 fi 50774 fi 50775 50776 fi 50777 fi 50778 50779 if test "x$MSVC_DLL" = x; then 50780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50781 $as_echo_n "checking for $DLL_NAME... " >&6; } 50782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50783 $as_echo "no" >&6; } 50784 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50785 fi 50786 50787 MSVCP_DLL=$MSVC_DLL 50788 50789 # Only process if variable expands to non-empty 50790 50791 if test "x$MSVCP_DLL" != x; then 50792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50793 50794 # Input might be given as Windows format, start by converting to 50795 # unix format. 50796 path="$MSVCP_DLL" 50797 new_path=`$CYGPATH -u "$path"` 50798 50799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50802 # "foo.exe" is OK but "foo" is an error. 50803 # 50804 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50805 # It is also a way to make sure we got the proper file name for the real test later on. 50806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50807 if test "x$test_shortpath" = x; then 50808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50809 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50810 as_fn_error $? "Cannot locate the the path of MSVCP_DLL" "$LINENO" 5 50811 fi 50812 50813 # Call helper function which possibly converts this using DOS-style short mode. 50814 # If so, the updated path is stored in $new_path. 50815 50816 input_path="$new_path" 50817 # Check if we need to convert this using DOS-style short mode. If the path 50818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50819 # take no chances and rewrite it. 50820 # Note: m4 eats our [], so we need to use [ and ] instead. 50821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50822 if test "x$has_forbidden_chars" != x; then 50823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50827 # Going to short mode and back again did indeed matter. Since short mode is 50828 # case insensitive, let's make it lowercase to improve readability. 50829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50830 # Now convert it back to Unix-stile (cygpath) 50831 input_path=`$CYGPATH -u "$shortmode_path"` 50832 new_path="$input_path" 50833 fi 50834 fi 50835 50836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50837 if test "x$test_cygdrive_prefix" = x; then 50838 # As a simple fix, exclude /usr/bin since it's not a real path. 50839 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50841 # a path prefixed by /cygdrive for fixpath to work. 50842 new_path="$CYGWIN_ROOT_PATH$input_path" 50843 fi 50844 fi 50845 50846 50847 if test "x$path" != "x$new_path"; then 50848 MSVCP_DLL="$new_path" 50849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50850 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50851 fi 50852 50853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50854 50855 path="$MSVCP_DLL" 50856 has_colon=`$ECHO $path | $GREP ^.:` 50857 new_path="$path" 50858 if test "x$has_colon" = x; then 50859 # Not in mixed or Windows style, start by that. 50860 new_path=`cmd //c echo $path` 50861 fi 50862 50863 50864 input_path="$new_path" 50865 # Check if we need to convert this using DOS-style short mode. If the path 50866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50867 # take no chances and rewrite it. 50868 # Note: m4 eats our [], so we need to use [ and ] instead. 50869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50870 if test "x$has_forbidden_chars" != x; then 50871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50873 fi 50874 50875 50876 windows_path="$new_path" 50877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50878 unix_path=`$CYGPATH -u "$windows_path"` 50879 new_path="$unix_path" 50880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50882 new_path="$unix_path" 50883 fi 50884 50885 if test "x$path" != "x$new_path"; then 50886 MSVCP_DLL="$new_path" 50887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50888 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50889 fi 50890 50891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50893 50894 else 50895 # We're on a unix platform. Hooray! :) 50896 path="$MSVCP_DLL" 50897 has_space=`$ECHO "$path" | $GREP " "` 50898 if test "x$has_space" != x; then 50899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50900 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50901 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50902 fi 50903 50904 # Use eval to expand a potential ~ 50905 eval path="$path" 50906 if test ! -f "$path" && test ! -d "$path"; then 50907 as_fn_error $? "The path of MSVCP_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50908 fi 50909 50910 MSVCP_DLL="`cd "$path"; $THEPWDCMD -L`" 50911 fi 50912 fi 50913 50914 MSVCP_DLL=$MSVCP_DLL 50915 50916 50917 fi 50918 fi 50919 50920 50921 50922 # Check whether --with-dxsdk was given. 50923 if test "${with_dxsdk+set}" = set; then : 50924 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 50925 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 50926 fi 50927 50928 50929 50930 50931 # Check whether --with-dxsdk-lib was given. 50932 if test "${with_dxsdk_lib+set}" = set; then : 50933 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 50934 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 50935 fi 50936 50937 50938 50939 50940 # Check whether --with-dxsdk-include was given. 50941 if test "${with_dxsdk_include+set}" = set; then : 50942 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 50943 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 50944 fi 50945 50946 50947 fi 50948 50949 50950 ############################################################################### 50951 # 50952 # We need to do some final tweaking, when everything else is done. 50953 # 50954 ############################################################################### 50955 50956 50957 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 50958 50959 50960 # The name of the Service Agent jar. 50961 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 50962 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 50963 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 50964 fi 50965 50966 50967 50968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 50969 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 50970 50971 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 50972 ENABLE_INTREE_EC=yes 50973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50974 $as_echo "yes" >&6; } 50975 else 50976 ENABLE_INTREE_EC=no 50977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50978 $as_echo "no" >&6; } 50979 fi 50980 50981 50982 50983 50984 ############################################################################### 50985 # 50986 # Configure parts of the build that only affect the build performance, 50987 # not the result. 50988 # 50989 ############################################################################### 50990 50991 50992 # How many cores do we have on this build system? 50993 50994 # Check whether --with-num-cores was given. 50995 if test "${with_num_cores+set}" = set; then : 50996 withval=$with_num_cores; 50997 fi 50998 50999 if test "x$with_num_cores" = x; then 51000 # The number of cores were not specified, try to probe them. 51001 51002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 51003 $as_echo_n "checking for number of cores... " >&6; } 51004 NUM_CORES=1 51005 FOUND_CORES=no 51006 51007 if test -f /proc/cpuinfo; then 51008 # Looks like a Linux (or cygwin) system 51009 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 51010 FOUND_CORES=yes 51011 elif test -x /usr/sbin/psrinfo; then 51012 # Looks like a Solaris system 51013 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 51014 FOUND_CORES=yes 51015 elif test -x /usr/sbin/system_profiler; then 51016 # Looks like a MacOSX system 51017 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 51018 FOUND_CORES=yes 51019 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 51020 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 51021 FOUND_CORES=yes 51022 elif test -n "$NUMBER_OF_PROCESSORS"; then 51023 # On windows, look in the env 51024 NUM_CORES=$NUMBER_OF_PROCESSORS 51025 FOUND_CORES=yes 51026 fi 51027 51028 if test "x$FOUND_CORES" = xyes; then 51029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 51030 $as_echo "$NUM_CORES" >&6; } 51031 else 51032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 51033 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 51034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 51035 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 51036 fi 51037 51038 else 51039 NUM_CORES=$with_num_cores 51040 fi 51041 51042 51043 51044 # How much memory do we have on this build system? 51045 51046 # Check whether --with-memory-size was given. 51047 if test "${with_memory_size+set}" = set; then : 51048 withval=$with_memory_size; 51049 fi 51050 51051 if test "x$with_memory_size" = x; then 51052 # The memory size was not specified, try to probe it. 51053 51054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 51055 $as_echo_n "checking for memory size... " >&6; } 51056 # Default to 1024 MB 51057 MEMORY_SIZE=1024 51058 FOUND_MEM=no 51059 51060 if test -f /proc/meminfo; then 51061 # Looks like a Linux (or cygwin) system 51062 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 51063 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 51064 FOUND_MEM=yes 51065 elif test -x /usr/sbin/prtconf; then 51066 # Looks like a Solaris or AIX system 51067 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 51068 FOUND_MEM=yes 51069 elif test -x /usr/sbin/system_profiler; then 51070 # Looks like a MacOSX system 51071 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 51072 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 51073 FOUND_MEM=yes 51074 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51075 # Windows, but without cygwin 51076 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 51077 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 51078 FOUND_MEM=yes 51079 fi 51080 51081 if test "x$FOUND_MEM" = xyes; then 51082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 51083 $as_echo "$MEMORY_SIZE MB" >&6; } 51084 else 51085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 51086 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 51087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 51088 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 51089 fi 51090 51091 else 51092 MEMORY_SIZE=$with_memory_size 51093 fi 51094 51095 51096 51097 # Provide a decent default number of parallel jobs for make depending on 51098 # number of cores, amount of memory and machine architecture. 51099 51100 # Check whether --with-jobs was given. 51101 if test "${with_jobs+set}" = set; then : 51102 withval=$with_jobs; 51103 fi 51104 51105 if test "x$with_jobs" = x; then 51106 # Number of jobs was not specified, calculate. 51107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 51108 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 51109 # Approximate memory in GB. 51110 memory_gb=`expr $MEMORY_SIZE / 1024` 51111 # Pick the lowest of memory in gb and number of cores. 51112 if test "$memory_gb" -lt "$NUM_CORES"; then 51113 JOBS="$memory_gb" 51114 else 51115 JOBS="$NUM_CORES" 51116 # On bigger machines, leave some room for other processes to run 51117 if test "$JOBS" -gt "4"; then 51118 JOBS=`expr $JOBS '*' 90 / 100` 51119 fi 51120 fi 51121 # Cap number of jobs to 16 51122 if test "$JOBS" -gt "16"; then 51123 JOBS=16 51124 fi 51125 if test "$JOBS" -eq "0"; then 51126 JOBS=1 51127 fi 51128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 51129 $as_echo "$JOBS" >&6; } 51130 else 51131 JOBS=$with_jobs 51132 fi 51133 51134 51135 51136 # Setup arguments for the boot jdk (after cores and memory have been setup) 51137 51138 ############################################################################## 51139 # 51140 # Specify jvm options for anything that is run with the Boot JDK. 51141 # Not all JVM:s accept the same arguments on the command line. 51142 # 51143 51144 # Check whether --with-boot-jdk-jvmargs was given. 51145 if test "${with_boot_jdk_jvmargs+set}" = set; then : 51146 withval=$with_boot_jdk_jvmargs; 51147 fi 51148 51149 51150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 51151 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 51152 51153 # Disable special log output when a debug build is used as Boot JDK... 51154 51155 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 51156 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 51157 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 51158 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51159 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51160 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51161 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 51162 JVM_ARG_OK=true 51163 else 51164 $ECHO "Arg failed:" >&5 51165 $ECHO "$OUTPUT" >&5 51166 JVM_ARG_OK=false 51167 fi 51168 51169 51170 # Apply user provided options. 51171 51172 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 51173 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 51174 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 51175 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51176 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51177 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51178 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 51179 JVM_ARG_OK=true 51180 else 51181 $ECHO "Arg failed:" >&5 51182 $ECHO "$OUTPUT" >&5 51183 JVM_ARG_OK=false 51184 fi 51185 51186 51187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 51188 $as_echo "$boot_jdk_jvmargs" >&6; } 51189 51190 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 51191 JAVA_FLAGS=$boot_jdk_jvmargs 51192 51193 51194 51195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 51196 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 51197 51198 # Starting amount of heap memory. 51199 51200 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 51201 $ECHO "Command: $JAVA -Xms64M -version" >&5 51202 OUTPUT=`$JAVA -Xms64M -version 2>&1` 51203 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51204 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51205 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51206 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 51207 JVM_ARG_OK=true 51208 else 51209 $ECHO "Arg failed:" >&5 51210 $ECHO "$OUTPUT" >&5 51211 JVM_ARG_OK=false 51212 fi 51213 51214 51215 # Maximum amount of heap memory. 51216 # Maximum stack size. 51217 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 51218 if test "x$BUILD_NUM_BITS" = x32; then 51219 if test "$JVM_MAX_HEAP" -gt "1100"; then 51220 JVM_MAX_HEAP=1100 51221 elif test "$JVM_MAX_HEAP" -lt "512"; then 51222 JVM_MAX_HEAP=512 51223 fi 51224 STACK_SIZE=768 51225 else 51226 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 51227 # pointers are used. Apparently, we need to increase the heap and stack 51228 # space for the jvm. More specifically, when running javac to build huge 51229 # jdk batch 51230 if test "$JVM_MAX_HEAP" -gt "1600"; then 51231 JVM_MAX_HEAP=1600 51232 elif test "$JVM_MAX_HEAP" -lt "512"; then 51233 JVM_MAX_HEAP=512 51234 fi 51235 STACK_SIZE=1536 51236 fi 51237 51238 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 51239 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 51240 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 51241 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51242 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51243 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51244 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 51245 JVM_ARG_OK=true 51246 else 51247 $ECHO "Arg failed:" >&5 51248 $ECHO "$OUTPUT" >&5 51249 JVM_ARG_OK=false 51250 fi 51251 51252 51253 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 51254 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 51255 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 51256 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51257 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51258 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51259 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 51260 JVM_ARG_OK=true 51261 else 51262 $ECHO "Arg failed:" >&5 51263 $ECHO "$OUTPUT" >&5 51264 JVM_ARG_OK=false 51265 fi 51266 51267 51268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 51269 $as_echo "$boot_jdk_jvmargs_big" >&6; } 51270 51271 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 51272 51273 51274 51275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 51276 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 51277 51278 # Use serial gc for small short lived tools if possible 51279 51280 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 51281 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 51282 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 51283 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51284 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51285 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51286 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 51287 JVM_ARG_OK=true 51288 else 51289 $ECHO "Arg failed:" >&5 51290 $ECHO "$OUTPUT" >&5 51291 JVM_ARG_OK=false 51292 fi 51293 51294 51295 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 51296 $ECHO "Command: $JAVA -Xms32M -version" >&5 51297 OUTPUT=`$JAVA -Xms32M -version 2>&1` 51298 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51299 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51300 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51301 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 51302 JVM_ARG_OK=true 51303 else 51304 $ECHO "Arg failed:" >&5 51305 $ECHO "$OUTPUT" >&5 51306 JVM_ARG_OK=false 51307 fi 51308 51309 51310 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 51311 $ECHO "Command: $JAVA -Xmx512M -version" >&5 51312 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 51313 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51314 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51315 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51316 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 51317 JVM_ARG_OK=true 51318 else 51319 $ECHO "Arg failed:" >&5 51320 $ECHO "$OUTPUT" >&5 51321 JVM_ARG_OK=false 51322 fi 51323 51324 51325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 51326 $as_echo "$boot_jdk_jvmargs_small" >&6; } 51327 51328 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 51329 51330 51331 JAVA_TOOL_FLAGS_SMALL="" 51332 for f in $JAVA_FLAGS_SMALL; do 51333 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 51334 done 51335 51336 51337 51338 # Setup smart javac (after cores and memory have been setup) 51339 51340 51341 # Check whether --with-sjavac-server-java was given. 51342 if test "${with_sjavac_server_java+set}" = set; then : 51343 withval=$with_sjavac_server_java; 51344 fi 51345 51346 51347 if test "x$with_sjavac_server_java" != x; then 51348 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 51349 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 51350 if test "x$FOUND_VERSION" = x; then 51351 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 51352 fi 51353 else 51354 SJAVAC_SERVER_JAVA="$JAVA" 51355 fi 51356 51357 51358 if test "$MEMORY_SIZE" -gt "3000"; then 51359 51360 $ECHO "Check if jvm arg is ok: -d64" >&5 51361 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 51362 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 51363 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51364 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51365 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51366 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 51367 JVM_ARG_OK=true 51368 else 51369 $ECHO "Arg failed:" >&5 51370 $ECHO "$OUTPUT" >&5 51371 JVM_ARG_OK=false 51372 fi 51373 51374 if test "$JVM_ARG_OK" = true; then 51375 JVM_64BIT=true 51376 JVM_ARG_OK=false 51377 fi 51378 fi 51379 51380 MX_VALUE=`expr $MEMORY_SIZE / 2` 51381 if test "$JVM_64BIT" = true; then 51382 # Set ms lower than mx since more than one instance of the server might 51383 # get launched at the same time before they figure out which instance won. 51384 MS_VALUE=512 51385 if test "$MX_VALUE" -gt "2048"; then 51386 MX_VALUE=2048 51387 fi 51388 else 51389 MS_VALUE=256 51390 if test "$MX_VALUE" -gt "1500"; then 51391 MX_VALUE=1500 51392 fi 51393 fi 51394 if test "$MX_VALUE" -lt "512"; then 51395 MX_VALUE=512 51396 fi 51397 51398 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 51399 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 51400 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 51401 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51402 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51403 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51404 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 51405 JVM_ARG_OK=true 51406 else 51407 $ECHO "Arg failed:" >&5 51408 $ECHO "$OUTPUT" >&5 51409 JVM_ARG_OK=false 51410 fi 51411 51412 51413 51414 # Check whether --enable-sjavac was given. 51415 if test "${enable_sjavac+set}" = set; then : 51416 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 51417 else 51418 ENABLE_SJAVAC='no' 51419 fi 51420 51421 if test "x$JVM_ARG_OK" = "xfalse"; then 51422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 51423 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 51424 ENABLE_SJAVAC=no; 51425 fi 51426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 51427 $as_echo_n "checking whether to use sjavac... " >&6; } 51428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 51429 $as_echo "$ENABLE_SJAVAC" >&6; } 51430 51431 51432 51433 # Can the C/C++ compiler use precompiled headers? 51434 51435 51436 ############################################################################### 51437 # 51438 # Can the C/C++ compiler use precompiled headers? 51439 # 51440 # Check whether --enable-precompiled-headers was given. 51441 if test "${enable_precompiled_headers+set}" = set; then : 51442 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 51443 else 51444 ENABLE_PRECOMPH=yes 51445 fi 51446 51447 51448 USE_PRECOMPILED_HEADER=1 51449 if test "x$ENABLE_PRECOMPH" = xno; then 51450 USE_PRECOMPILED_HEADER=0 51451 fi 51452 51453 if test "x$ENABLE_PRECOMPH" = xyes; then 51454 # Check that the compiler actually supports precomp headers. 51455 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 51457 $as_echo_n "checking that precompiled headers work... " >&6; } 51458 echo "int alfa();" > conftest.h 51459 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 51460 if test ! -f conftest.hpp.gch; then 51461 USE_PRECOMPILED_HEADER=0 51462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51463 $as_echo "no" >&6; } 51464 else 51465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51466 $as_echo "yes" >&6; } 51467 fi 51468 rm -f conftest.h conftest.hpp.gch 51469 fi 51470 fi 51471 51472 51473 51474 51475 # Setup use of ccache, if available 51476 51477 # Check whether --enable-ccache was given. 51478 if test "${enable_ccache+set}" = set; then : 51479 enableval=$enable_ccache; 51480 fi 51481 51482 51483 CCACHE= 51484 CCACHE_STATUS= 51485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 51486 $as_echo_n "checking is ccache enabled... " >&6; } 51487 if test "x$enable_ccache" = xyes; then 51488 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 51489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51490 $as_echo "yes" >&6; } 51491 OLD_PATH="$PATH" 51492 if test "x$TOOLCHAIN_PATH" != x; then 51493 PATH=$TOOLCHAIN_PATH:$PATH 51494 fi 51495 51496 51497 51498 # Publish this variable in the help. 51499 51500 51501 if test "x$CCACHE" = x; then 51502 # The variable is not set by user, try to locate tool using the code snippet 51503 for ac_prog in ccache 51504 do 51505 # Extract the first word of "$ac_prog", so it can be a program name with args. 51506 set dummy $ac_prog; ac_word=$2 51507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51508 $as_echo_n "checking for $ac_word... " >&6; } 51509 if ${ac_cv_path_CCACHE+:} false; then : 51510 $as_echo_n "(cached) " >&6 51511 else 51512 case $CCACHE in 51513 [\\/]* | ?:[\\/]*) 51514 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51515 ;; 51516 *) 51517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51518 for as_dir in $PATH 51519 do 51520 IFS=$as_save_IFS 51521 test -z "$as_dir" && as_dir=. 51522 for ac_exec_ext in '' $ac_executable_extensions; do 51523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51524 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51526 break 2 51527 fi 51528 done 51529 done 51530 IFS=$as_save_IFS 51531 51532 ;; 51533 esac 51534 fi 51535 CCACHE=$ac_cv_path_CCACHE 51536 if test -n "$CCACHE"; then 51537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51538 $as_echo "$CCACHE" >&6; } 51539 else 51540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51541 $as_echo "no" >&6; } 51542 fi 51543 51544 51545 test -n "$CCACHE" && break 51546 done 51547 51548 else 51549 # The variable is set, but is it from the command line or the environment? 51550 51551 # Try to remove the string !CCACHE! from our list. 51552 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 51553 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 51554 # If it failed, the variable was not from the command line. Ignore it, 51555 # but warn the user (except for BASH, which is always set by the calling BASH). 51556 if test "xCCACHE" != xBASH; then 51557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 51558 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 51559 fi 51560 # Try to locate tool using the code snippet 51561 for ac_prog in ccache 51562 do 51563 # Extract the first word of "$ac_prog", so it can be a program name with args. 51564 set dummy $ac_prog; ac_word=$2 51565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51566 $as_echo_n "checking for $ac_word... " >&6; } 51567 if ${ac_cv_path_CCACHE+:} false; then : 51568 $as_echo_n "(cached) " >&6 51569 else 51570 case $CCACHE in 51571 [\\/]* | ?:[\\/]*) 51572 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51573 ;; 51574 *) 51575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51576 for as_dir in $PATH 51577 do 51578 IFS=$as_save_IFS 51579 test -z "$as_dir" && as_dir=. 51580 for ac_exec_ext in '' $ac_executable_extensions; do 51581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51582 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51584 break 2 51585 fi 51586 done 51587 done 51588 IFS=$as_save_IFS 51589 51590 ;; 51591 esac 51592 fi 51593 CCACHE=$ac_cv_path_CCACHE 51594 if test -n "$CCACHE"; then 51595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51596 $as_echo "$CCACHE" >&6; } 51597 else 51598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51599 $as_echo "no" >&6; } 51600 fi 51601 51602 51603 test -n "$CCACHE" && break 51604 done 51605 51606 else 51607 # If it succeeded, then it was overridden by the user. We will use it 51608 # for the tool. 51609 51610 # First remove it from the list of overridden variables, so we can test 51611 # for unknown variables in the end. 51612 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 51613 51614 # Check if the provided tool contains a complete path. 51615 tool_specified="$CCACHE" 51616 tool_basename="${tool_specified##*/}" 51617 if test "x$tool_basename" = "x$tool_specified"; then 51618 # A command without a complete path is provided, search $PATH. 51619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 51620 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 51621 # Extract the first word of "$tool_basename", so it can be a program name with args. 51622 set dummy $tool_basename; ac_word=$2 51623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51624 $as_echo_n "checking for $ac_word... " >&6; } 51625 if ${ac_cv_path_CCACHE+:} false; then : 51626 $as_echo_n "(cached) " >&6 51627 else 51628 case $CCACHE in 51629 [\\/]* | ?:[\\/]*) 51630 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51631 ;; 51632 *) 51633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51634 for as_dir in $PATH 51635 do 51636 IFS=$as_save_IFS 51637 test -z "$as_dir" && as_dir=. 51638 for ac_exec_ext in '' $ac_executable_extensions; do 51639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51640 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51642 break 2 51643 fi 51644 done 51645 done 51646 IFS=$as_save_IFS 51647 51648 ;; 51649 esac 51650 fi 51651 CCACHE=$ac_cv_path_CCACHE 51652 if test -n "$CCACHE"; then 51653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51654 $as_echo "$CCACHE" >&6; } 51655 else 51656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51657 $as_echo "no" >&6; } 51658 fi 51659 51660 51661 if test "x$CCACHE" = x; then 51662 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 51663 fi 51664 else 51665 # Otherwise we believe it is a complete path. Use it as it is. 51666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 51667 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 51668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 51669 $as_echo_n "checking for CCACHE... " >&6; } 51670 if test ! -x "$tool_specified"; then 51671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 51672 $as_echo "not found" >&6; } 51673 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 51674 fi 51675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 51676 $as_echo "$tool_specified" >&6; } 51677 fi 51678 fi 51679 fi 51680 51681 51682 51683 if test "x$CCACHE" = x; then 51684 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 51685 fi 51686 51687 51688 PATH="$OLD_PATH" 51689 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 51690 CCACHE_STATUS="Active ($CCACHE_VERSION)" 51691 else 51692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51693 $as_echo "no" >&6; } 51694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 51695 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 51696 fi 51697 elif test "x$enable_ccache" = xno; then 51698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 51699 $as_echo "no, explicitly disabled" >&6; } 51700 CCACHE_STATUS="Disabled" 51701 elif test "x$enable_ccache" = x; then 51702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51703 $as_echo "no" >&6; } 51704 else 51705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 51706 $as_echo "unknown" >&6; } 51707 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 51708 fi 51709 51710 51711 51712 # Check whether --with-ccache-dir was given. 51713 if test "${with_ccache_dir+set}" = set; then : 51714 withval=$with_ccache_dir; 51715 fi 51716 51717 51718 if test "x$with_ccache_dir" != x; then 51719 # When using a non home ccache directory, assume the use is to share ccache files 51720 # with other users. Thus change the umask. 51721 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 51722 if test "x$CCACHE" = x; then 51723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 51724 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 51725 fi 51726 fi 51727 51728 if test "x$CCACHE" != x; then 51729 51730 if test "x$CCACHE" != x; then 51731 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 51732 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 51733 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 51734 if test "x$HAS_BAD_CCACHE" != "x"; then 51735 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 51736 fi 51737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 51738 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 51739 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 51740 PUSHED_FLAGS="$CXXFLAGS" 51741 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 51742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51743 /* end confdefs.h. */ 51744 51745 int 51746 main () 51747 { 51748 51749 ; 51750 return 0; 51751 } 51752 _ACEOF 51753 if ac_fn_cxx_try_compile "$LINENO"; then : 51754 CC_KNOWS_CCACHE_TRICK=yes 51755 else 51756 CC_KNOWS_CCACHE_TRICK=no 51757 fi 51758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51759 CXXFLAGS="$PUSHED_FLAGS" 51760 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 51761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51762 $as_echo "yes" >&6; } 51763 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 51764 51765 CCACHE_SLOPPINESS=pch_defines,time_macros 51766 else 51767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51768 $as_echo "no" >&6; } 51769 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 51770 fi 51771 fi 51772 51773 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 51774 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 51775 51776 if test "x$SET_CCACHE_DIR" != x; then 51777 mkdir -p $CCACHE_DIR > /dev/null 2>&1 51778 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 51779 fi 51780 fi 51781 51782 fi 51783 51784 51785 ############################################################################### 51786 # 51787 # And now the finish... 51788 # 51789 ############################################################################### 51790 51791 # Check for some common pitfalls 51792 51793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51794 file_to_test="$SRC_ROOT/LICENSE" 51795 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 51796 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 51797 fi 51798 fi 51799 51800 51801 # Did user specify any unknown variables? 51802 51803 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 51804 # Replace the separating ! with spaces before presenting for end user. 51805 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 51806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 51807 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 51808 fi 51809 51810 51811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 51812 $as_echo_n "checking if build directory is on local disk... " >&6; } 51813 51814 # df -l lists only local disks; if the given directory is not found then 51815 # a non-zero exit code is given 51816 if test "x$DF" = x; then 51817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51818 # msys does not have df; use Windows "net use" instead. 51819 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 51820 if test "x$IS_NETWORK_DISK" = x; then 51821 OUTPUT_DIR_IS_LOCAL="yes" 51822 else 51823 OUTPUT_DIR_IS_LOCAL="no" 51824 fi 51825 else 51826 # No df here, say it's local 51827 OUTPUT_DIR_IS_LOCAL="yes" 51828 fi 51829 else 51830 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 51831 OUTPUT_DIR_IS_LOCAL="yes" 51832 else 51833 OUTPUT_DIR_IS_LOCAL="no" 51834 fi 51835 fi 51836 51837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 51838 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 51839 51840 51841 51842 # Check if the user has any old-style ALT_ variables set. 51843 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 51844 51845 # Before generating output files, test if they exist. If they do, this is a reconfigure. 51846 # Since we can't properly handle the dependencies for this, warn the user about the situation 51847 if test -e $OUTPUT_ROOT/spec.gmk; then 51848 IS_RECONFIGURE=yes 51849 else 51850 IS_RECONFIGURE=no 51851 fi 51852 51853 51854 # At the end, call the custom hook. (Dummy macro if no custom sources available) 51855 51856 51857 # We're messing a bit with internal autoconf variables to put the config.status 51858 # in the output directory instead of the current directory. 51859 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 51860 51861 # Create the actual output files. Now the main work of configure is done. 51862 cat >confcache <<\_ACEOF 51863 # This file is a shell script that caches the results of configure 51864 # tests run on this system so they can be shared between configure 51865 # scripts and configure runs, see configure's option --config-cache. 51866 # It is not useful on other systems. If it contains results you don't 51867 # want to keep, you may remove or edit it. 51868 # 51869 # config.status only pays attention to the cache file if you give it 51870 # the --recheck option to rerun configure. 51871 # 51872 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51873 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51874 # following values. 51875 51876 _ACEOF 51877 51878 # The following way of writing the cache mishandles newlines in values, 51879 # but we know of no workaround that is simple, portable, and efficient. 51880 # So, we kill variables containing newlines. 51881 # Ultrix sh set writes to stderr and can't be redirected directly, 51882 # and sets the high bit in the cache file unless we assign to the vars. 51883 ( 51884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51885 eval ac_val=\$$ac_var 51886 case $ac_val in #( 51887 *${as_nl}*) 51888 case $ac_var in #( 51889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51890 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51891 esac 51892 case $ac_var in #( 51893 _ | IFS | as_nl) ;; #( 51894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51895 *) { eval $ac_var=; unset $ac_var;} ;; 51896 esac ;; 51897 esac 51898 done 51899 51900 (set) 2>&1 | 51901 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51902 *${as_nl}ac_space=\ *) 51903 # `set' does not quote correctly, so add quotes: double-quote 51904 # substitution turns \\\\ into \\, and sed turns \\ into \. 51905 sed -n \ 51906 "s/'/'\\\\''/g; 51907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51908 ;; #( 51909 *) 51910 # `set' quotes correctly as required by POSIX, so do not add quotes. 51911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51912 ;; 51913 esac | 51914 sort 51915 ) | 51916 sed ' 51917 /^ac_cv_env_/b end 51918 t clear 51919 :clear 51920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51921 t end 51922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51923 :end' >>confcache 51924 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51925 if test -w "$cache_file"; then 51926 if test "x$cache_file" != "x/dev/null"; then 51927 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51928 $as_echo "$as_me: updating cache $cache_file" >&6;} 51929 if test ! -f "$cache_file" || test -h "$cache_file"; then 51930 cat confcache >"$cache_file" 51931 else 51932 case $cache_file in #( 51933 */* | ?:*) 51934 mv -f confcache "$cache_file"$$ && 51935 mv -f "$cache_file"$$ "$cache_file" ;; #( 51936 *) 51937 mv -f confcache "$cache_file" ;; 51938 esac 51939 fi 51940 fi 51941 else 51942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51943 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51944 fi 51945 fi 51946 rm -f confcache 51947 51948 test "x$prefix" = xNONE && prefix=$ac_default_prefix 51949 # Let make expand exec_prefix. 51950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51951 51952 # Transform confdefs.h into DEFS. 51953 # Protect against shell expansion while executing Makefile rules. 51954 # Protect against Makefile macro expansion. 51955 # 51956 # If the first sed substitution is executed (which looks for macros that 51957 # take arguments), then branch to the quote section. Otherwise, 51958 # look for a macro that doesn't take arguments. 51959 ac_script=' 51960 :mline 51961 /\\$/{ 51962 N 51963 s,\\\n,, 51964 b mline 51965 } 51966 t clear 51967 :clear 51968 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 51969 t quote 51970 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 51971 t quote 51972 b any 51973 :quote 51974 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 51975 s/\[/\\&/g 51976 s/\]/\\&/g 51977 s/\$/$$/g 51978 H 51979 :any 51980 ${ 51981 g 51982 s/^\n// 51983 s/\n/ /g 51984 p 51985 } 51986 ' 51987 DEFS=`sed -n "$ac_script" confdefs.h` 51988 51989 51990 ac_libobjs= 51991 ac_ltlibobjs= 51992 U= 51993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51994 # 1. Remove the extension, and $U if already installed. 51995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51998 # will be set to the directory where LIBOBJS objects are built. 51999 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 52000 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 52001 done 52002 LIBOBJS=$ac_libobjs 52003 52004 LTLIBOBJS=$ac_ltlibobjs 52005 52006 52007 52008 : "${CONFIG_STATUS=./config.status}" 52009 ac_write_fail=0 52010 ac_clean_files_save=$ac_clean_files 52011 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 52012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 52013 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52014 as_write_fail=0 52015 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52016 #! $SHELL 52017 # Generated by $as_me. 52018 # Run this file to recreate the current configuration. 52019 # Compiler output produced by configure, useful for debugging 52020 # configure, is in config.log if it exists. 52021 52022 debug=false 52023 ac_cs_recheck=false 52024 ac_cs_silent=false 52025 52026 SHELL=\${CONFIG_SHELL-$SHELL} 52027 export SHELL 52028 _ASEOF 52029 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52030 ## -------------------- ## 52031 ## M4sh Initialization. ## 52032 ## -------------------- ## 52033 52034 # Be more Bourne compatible 52035 DUALCASE=1; export DUALCASE # for MKS sh 52036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52037 emulate sh 52038 NULLCMD=: 52039 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52040 # is contrary to our usage. Disable this feature. 52041 alias -g '${1+"$@"}'='"$@"' 52042 setopt NO_GLOB_SUBST 52043 else 52044 case `(set -o) 2>/dev/null` in #( 52045 *posix*) : 52046 set -o posix ;; #( 52047 *) : 52048 ;; 52049 esac 52050 fi 52051 52052 52053 as_nl=' 52054 ' 52055 export as_nl 52056 # Printing a long string crashes Solaris 7 /usr/bin/printf. 52057 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52059 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52060 # Prefer a ksh shell builtin over an external printf program on Solaris, 52061 # but without wasting forks for bash or zsh. 52062 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52063 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52064 as_echo='print -r --' 52065 as_echo_n='print -rn --' 52066 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52067 as_echo='printf %s\n' 52068 as_echo_n='printf %s' 52069 else 52070 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52071 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52072 as_echo_n='/usr/ucb/echo -n' 52073 else 52074 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 52075 as_echo_n_body='eval 52076 arg=$1; 52077 case $arg in #( 52078 *"$as_nl"*) 52079 expr "X$arg" : "X\\(.*\\)$as_nl"; 52080 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 52081 esac; 52082 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 52083 ' 52084 export as_echo_n_body 52085 as_echo_n='sh -c $as_echo_n_body as_echo' 52086 fi 52087 export as_echo_body 52088 as_echo='sh -c $as_echo_body as_echo' 52089 fi 52090 52091 # The user is always right. 52092 if test "${PATH_SEPARATOR+set}" != set; then 52093 PATH_SEPARATOR=: 52094 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 52095 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 52096 PATH_SEPARATOR=';' 52097 } 52098 fi 52099 52100 52101 # IFS 52102 # We need space, tab and new line, in precisely that order. Quoting is 52103 # there to prevent editors from complaining about space-tab. 52104 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 52105 # splitting by setting IFS to empty value.) 52106 IFS=" "" $as_nl" 52107 52108 # Find who we are. Look in the path if we contain no directory separator. 52109 as_myself= 52110 case $0 in #(( 52111 *[\\/]* ) as_myself=$0 ;; 52112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52113 for as_dir in $PATH 52114 do 52115 IFS=$as_save_IFS 52116 test -z "$as_dir" && as_dir=. 52117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 52118 done 52119 IFS=$as_save_IFS 52120 52121 ;; 52122 esac 52123 # We did not find ourselves, most probably we were run as `sh COMMAND' 52124 # in which case we are not to be found in the path. 52125 if test "x$as_myself" = x; then 52126 as_myself=$0 52127 fi 52128 if test ! -f "$as_myself"; then 52129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 52130 exit 1 52131 fi 52132 52133 # Unset variables that we do not need and which cause bugs (e.g. in 52134 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 52135 # suppresses any "Segmentation fault" message there. '((' could 52136 # trigger a bug in pdksh 5.2.14. 52137 for as_var in BASH_ENV ENV MAIL MAILPATH 52138 do eval test x\${$as_var+set} = xset \ 52139 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 52140 done 52141 PS1='$ ' 52142 PS2='> ' 52143 PS4='+ ' 52144 52145 # NLS nuisances. 52146 LC_ALL=C 52147 export LC_ALL 52148 LANGUAGE=C 52149 export LANGUAGE 52150 52151 # CDPATH. 52152 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 52153 52154 52155 # as_fn_error STATUS ERROR [LINENO LOG_FD] 52156 # ---------------------------------------- 52157 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 52158 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 52159 # script with STATUS, using 1 if that was 0. 52160 as_fn_error () 52161 { 52162 as_status=$1; test $as_status -eq 0 && as_status=1 52163 if test "$4"; then 52164 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 52165 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 52166 fi 52167 $as_echo "$as_me: error: $2" >&2 52168 as_fn_exit $as_status 52169 } # as_fn_error 52170 52171 52172 # as_fn_set_status STATUS 52173 # ----------------------- 52174 # Set $? to STATUS, without forking. 52175 as_fn_set_status () 52176 { 52177 return $1 52178 } # as_fn_set_status 52179 52180 # as_fn_exit STATUS 52181 # ----------------- 52182 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 52183 as_fn_exit () 52184 { 52185 set +e 52186 as_fn_set_status $1 52187 exit $1 52188 } # as_fn_exit 52189 52190 # as_fn_unset VAR 52191 # --------------- 52192 # Portably unset VAR. 52193 as_fn_unset () 52194 { 52195 { eval $1=; unset $1;} 52196 } 52197 as_unset=as_fn_unset 52198 # as_fn_append VAR VALUE 52199 # ---------------------- 52200 # Append the text in VALUE to the end of the definition contained in VAR. Take 52201 # advantage of any shell optimizations that allow amortized linear growth over 52202 # repeated appends, instead of the typical quadratic growth present in naive 52203 # implementations. 52204 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 52205 eval 'as_fn_append () 52206 { 52207 eval $1+=\$2 52208 }' 52209 else 52210 as_fn_append () 52211 { 52212 eval $1=\$$1\$2 52213 } 52214 fi # as_fn_append 52215 52216 # as_fn_arith ARG... 52217 # ------------------ 52218 # Perform arithmetic evaluation on the ARGs, and store the result in the 52219 # global $as_val. Take advantage of shells that can avoid forks. The arguments 52220 # must be portable across $(()) and expr. 52221 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 52222 eval 'as_fn_arith () 52223 { 52224 as_val=$(( $* )) 52225 }' 52226 else 52227 as_fn_arith () 52228 { 52229 as_val=`expr "$@" || test $? -eq 1` 52230 } 52231 fi # as_fn_arith 52232 52233 52234 if expr a : '\(a\)' >/dev/null 2>&1 && 52235 test "X`expr 00001 : '.*\(...\)'`" = X001; then 52236 as_expr=expr 52237 else 52238 as_expr=false 52239 fi 52240 52241 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 52242 as_basename=basename 52243 else 52244 as_basename=false 52245 fi 52246 52247 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 52248 as_dirname=dirname 52249 else 52250 as_dirname=false 52251 fi 52252 52253 as_me=`$as_basename -- "$0" || 52254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 52255 X"$0" : 'X\(//\)$' \| \ 52256 X"$0" : 'X\(/\)' \| . 2>/dev/null || 52257 $as_echo X/"$0" | 52258 sed '/^.*\/\([^/][^/]*\)\/*$/{ 52259 s//\1/ 52260 q 52261 } 52262 /^X\/\(\/\/\)$/{ 52263 s//\1/ 52264 q 52265 } 52266 /^X\/\(\/\).*/{ 52267 s//\1/ 52268 q 52269 } 52270 s/.*/./; q'` 52271 52272 # Avoid depending upon Character Ranges. 52273 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 52274 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 52275 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 52276 as_cr_digits='0123456789' 52277 as_cr_alnum=$as_cr_Letters$as_cr_digits 52278 52279 ECHO_C= ECHO_N= ECHO_T= 52280 case `echo -n x` in #((((( 52281 -n*) 52282 case `echo 'xy\c'` in 52283 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52284 xy) ECHO_C='\c';; 52285 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52286 ECHO_T=' ';; 52287 esac;; 52288 *) 52289 ECHO_N='-n';; 52290 esac 52291 52292 rm -f conf$$ conf$$.exe conf$$.file 52293 if test -d conf$$.dir; then 52294 rm -f conf$$.dir/conf$$.file 52295 else 52296 rm -f conf$$.dir 52297 mkdir conf$$.dir 2>/dev/null 52298 fi 52299 if (echo >conf$$.file) 2>/dev/null; then 52300 if ln -s conf$$.file conf$$ 2>/dev/null; then 52301 as_ln_s='ln -s' 52302 # ... but there are two gotchas: 52303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52305 # In both cases, we have to default to `cp -pR'. 52306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 52307 as_ln_s='cp -pR' 52308 elif ln conf$$.file conf$$ 2>/dev/null; then 52309 as_ln_s=ln 52310 else 52311 as_ln_s='cp -pR' 52312 fi 52313 else 52314 as_ln_s='cp -pR' 52315 fi 52316 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 52317 rmdir conf$$.dir 2>/dev/null 52318 52319 52320 # as_fn_mkdir_p 52321 # ------------- 52322 # Create "$as_dir" as a directory, including parents if necessary. 52323 as_fn_mkdir_p () 52324 { 52325 52326 case $as_dir in #( 52327 -*) as_dir=./$as_dir;; 52328 esac 52329 test -d "$as_dir" || eval $as_mkdir_p || { 52330 as_dirs= 52331 while :; do 52332 case $as_dir in #( 52333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 52334 *) as_qdir=$as_dir;; 52335 esac 52336 as_dirs="'$as_qdir' $as_dirs" 52337 as_dir=`$as_dirname -- "$as_dir" || 52338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52339 X"$as_dir" : 'X\(//\)[^/]' \| \ 52340 X"$as_dir" : 'X\(//\)$' \| \ 52341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 52342 $as_echo X"$as_dir" | 52343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52344 s//\1/ 52345 q 52346 } 52347 /^X\(\/\/\)[^/].*/{ 52348 s//\1/ 52349 q 52350 } 52351 /^X\(\/\/\)$/{ 52352 s//\1/ 52353 q 52354 } 52355 /^X\(\/\).*/{ 52356 s//\1/ 52357 q 52358 } 52359 s/.*/./; q'` 52360 test -d "$as_dir" && break 52361 done 52362 test -z "$as_dirs" || eval "mkdir $as_dirs" 52363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 52364 52365 52366 } # as_fn_mkdir_p 52367 if mkdir -p . 2>/dev/null; then 52368 as_mkdir_p='mkdir -p "$as_dir"' 52369 else 52370 test -d ./-p && rmdir ./-p 52371 as_mkdir_p=false 52372 fi 52373 52374 52375 # as_fn_executable_p FILE 52376 # ----------------------- 52377 # Test if FILE is an executable regular file. 52378 as_fn_executable_p () 52379 { 52380 test -f "$1" && test -x "$1" 52381 } # as_fn_executable_p 52382 as_test_x='test -x' 52383 as_executable_p=as_fn_executable_p 52384 52385 # Sed expression to map a string onto a valid CPP name. 52386 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 52387 52388 # Sed expression to map a string onto a valid variable name. 52389 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 52390 52391 52392 exec 6>&1 52393 ## ----------------------------------- ## 52394 ## Main body of $CONFIG_STATUS script. ## 52395 ## ----------------------------------- ## 52396 _ASEOF 52397 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 52398 52399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52400 # Save the log message, to keep $0 and so on meaningful, and to 52401 # report actual input values of CONFIG_FILES etc. instead of their 52402 # values after options handling. 52403 ac_log=" 52404 This file was extended by OpenJDK $as_me jdk9, which was 52405 generated by GNU Autoconf 2.69. Invocation command line was 52406 52407 CONFIG_FILES = $CONFIG_FILES 52408 CONFIG_HEADERS = $CONFIG_HEADERS 52409 CONFIG_LINKS = $CONFIG_LINKS 52410 CONFIG_COMMANDS = $CONFIG_COMMANDS 52411 $ $0 $@ 52412 52413 on `(hostname || uname -n) 2>/dev/null | sed 1q` 52414 " 52415 52416 _ACEOF 52417 52418 case $ac_config_files in *" 52419 "*) set x $ac_config_files; shift; ac_config_files=$*;; 52420 esac 52421 52422 52423 52424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52425 # Files that config.status was made for. 52426 config_files="$ac_config_files" 52427 52428 _ACEOF 52429 52430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52431 ac_cs_usage="\ 52432 \`$as_me' instantiates files and other configuration actions 52433 from templates according to the current configuration. Unless the files 52434 and actions are specified as TAGs, all are instantiated by default. 52435 52436 Usage: $0 [OPTION]... [TAG]... 52437 52438 -h, --help print this help, then exit 52439 -V, --version print version number and configuration settings, then exit 52440 --config print configuration, then exit 52441 -q, --quiet, --silent 52442 do not print progress messages 52443 -d, --debug don't remove temporary files 52444 --recheck update $as_me by reconfiguring in the same conditions 52445 --file=FILE[:TEMPLATE] 52446 instantiate the configuration file FILE 52447 52448 Configuration files: 52449 $config_files 52450 52451 Report bugs to <build-dev@openjdk.java.net>. 52452 OpenJDK home page: <http://openjdk.java.net>." 52453 52454 _ACEOF 52455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52456 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 52457 ac_cs_version="\\ 52458 OpenJDK config.status jdk9 52459 configured by $0, generated by GNU Autoconf 2.69, 52460 with options \\"\$ac_cs_config\\" 52461 52462 Copyright (C) 2012 Free Software Foundation, Inc. 52463 This config.status script is free software; the Free Software Foundation 52464 gives unlimited permission to copy, distribute and modify it." 52465 52466 ac_pwd='$ac_pwd' 52467 srcdir='$srcdir' 52468 AWK='$AWK' 52469 test -n "\$AWK" || AWK=awk 52470 _ACEOF 52471 52472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52473 # The default lists apply if the user does not specify any file. 52474 ac_need_defaults=: 52475 while test $# != 0 52476 do 52477 case $1 in 52478 --*=?*) 52479 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 52481 ac_shift=: 52482 ;; 52483 --*=) 52484 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52485 ac_optarg= 52486 ac_shift=: 52487 ;; 52488 *) 52489 ac_option=$1 52490 ac_optarg=$2 52491 ac_shift=shift 52492 ;; 52493 esac 52494 52495 case $ac_option in 52496 # Handling of the options. 52497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 52498 ac_cs_recheck=: ;; 52499 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 52500 $as_echo "$ac_cs_version"; exit ;; 52501 --config | --confi | --conf | --con | --co | --c ) 52502 $as_echo "$ac_cs_config"; exit ;; 52503 --debug | --debu | --deb | --de | --d | -d ) 52504 debug=: ;; 52505 --file | --fil | --fi | --f ) 52506 $ac_shift 52507 case $ac_optarg in 52508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 52509 '') as_fn_error $? "missing file argument" ;; 52510 esac 52511 as_fn_append CONFIG_FILES " '$ac_optarg'" 52512 ac_need_defaults=false;; 52513 --he | --h | --help | --hel | -h ) 52514 $as_echo "$ac_cs_usage"; exit ;; 52515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 52516 | -silent | --silent | --silen | --sile | --sil | --si | --s) 52517 ac_cs_silent=: ;; 52518 52519 # This is an error. 52520 -*) as_fn_error $? "unrecognized option: \`$1' 52521 Try \`$0 --help' for more information." ;; 52522 52523 *) as_fn_append ac_config_targets " $1" 52524 ac_need_defaults=false ;; 52525 52526 esac 52527 shift 52528 done 52529 52530 ac_configure_extra_args= 52531 52532 if $ac_cs_silent; then 52533 exec 6>/dev/null 52534 ac_configure_extra_args="$ac_configure_extra_args --silent" 52535 fi 52536 52537 _ACEOF 52538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52539 if \$ac_cs_recheck; then 52540 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 52541 shift 52542 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 52543 CONFIG_SHELL='$SHELL' 52544 export CONFIG_SHELL 52545 exec "\$@" 52546 fi 52547 52548 _ACEOF 52549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52550 exec 5>>config.log 52551 { 52552 echo 52553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 52554 ## Running $as_me. ## 52555 _ASBOX 52556 $as_echo "$ac_log" 52557 } >&5 52558 52559 _ACEOF 52560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52561 _ACEOF 52562 52563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52564 52565 # Handling of arguments. 52566 for ac_config_target in $ac_config_targets 52567 do 52568 case $ac_config_target in 52569 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 52570 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 52571 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 52572 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 52573 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 52574 52575 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 52576 esac 52577 done 52578 52579 52580 # If the user did not use the arguments to specify the items to instantiate, 52581 # then the envvar interface is used. Set only those that are not. 52582 # We use the long form for the default assignment because of an extremely 52583 # bizarre bug on SunOS 4.1.3. 52584 if $ac_need_defaults; then 52585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 52586 fi 52587 52588 # Have a temporary directory for convenience. Make it in the build tree 52589 # simply because there is no reason against having it here, and in addition, 52590 # creating and moving files from /tmp can sometimes cause problems. 52591 # Hook for its removal unless debugging. 52592 # Note that there is a small window in which the directory will not be cleaned: 52593 # after its creation but before its name has been assigned to `$tmp'. 52594 $debug || 52595 { 52596 tmp= ac_tmp= 52597 trap 'exit_status=$? 52598 : "${ac_tmp:=$tmp}" 52599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 52600 ' 0 52601 trap 'as_fn_exit 1' 1 2 13 15 52602 } 52603 # Create a (secure) tmp directory for tmp files. 52604 52605 { 52606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 52607 test -d "$tmp" 52608 } || 52609 { 52610 tmp=./conf$$-$RANDOM 52611 (umask 077 && mkdir "$tmp") 52612 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 52613 ac_tmp=$tmp 52614 52615 # Set up the scripts for CONFIG_FILES section. 52616 # No need to generate them if there are no CONFIG_FILES. 52617 # This happens for instance with `./config.status config.h'. 52618 if test -n "$CONFIG_FILES"; then 52619 52620 52621 ac_cr=`echo X | tr X '\015'` 52622 # On cygwin, bash can eat \r inside `` if the user requested igncr. 52623 # But we know of no other shell where ac_cr would be empty at this 52624 # point, so we can use a bashism as a fallback. 52625 if test "x$ac_cr" = x; then 52626 eval ac_cr=\$\'\\r\' 52627 fi 52628 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 52629 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 52630 ac_cs_awk_cr='\\r' 52631 else 52632 ac_cs_awk_cr=$ac_cr 52633 fi 52634 52635 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 52636 _ACEOF 52637 52638 52639 { 52640 echo "cat >conf$$subs.awk <<_ACEOF" && 52641 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 52642 echo "_ACEOF" 52643 } >conf$$subs.sh || 52644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52645 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 52646 ac_delim='%!_!# ' 52647 for ac_last_try in false false false false false :; do 52648 . ./conf$$subs.sh || 52649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52650 52651 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 52652 if test $ac_delim_n = $ac_delim_num; then 52653 break 52654 elif $ac_last_try; then 52655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52656 else 52657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 52658 fi 52659 done 52660 rm -f conf$$subs.sh 52661 52662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52663 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 52664 _ACEOF 52665 sed -n ' 52666 h 52667 s/^/S["/; s/!.*/"]=/ 52668 p 52669 g 52670 s/^[^!]*!// 52671 :repl 52672 t repl 52673 s/'"$ac_delim"'$// 52674 t delim 52675 :nl 52676 h 52677 s/\(.\{148\}\)..*/\1/ 52678 t more1 52679 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 52680 p 52681 n 52682 b repl 52683 :more1 52684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52685 p 52686 g 52687 s/.\{148\}// 52688 t nl 52689 :delim 52690 h 52691 s/\(.\{148\}\)..*/\1/ 52692 t more2 52693 s/["\\]/\\&/g; s/^/"/; s/$/"/ 52694 p 52695 b 52696 :more2 52697 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52698 p 52699 g 52700 s/.\{148\}// 52701 t delim 52702 ' <conf$$subs.awk | sed ' 52703 /^[^""]/{ 52704 N 52705 s/\n// 52706 } 52707 ' >>$CONFIG_STATUS || ac_write_fail=1 52708 rm -f conf$$subs.awk 52709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52710 _ACAWK 52711 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 52712 for (key in S) S_is_set[key] = 1 52713 FS = "" 52714 52715 } 52716 { 52717 line = $ 0 52718 nfields = split(line, field, "@") 52719 substed = 0 52720 len = length(field[1]) 52721 for (i = 2; i < nfields; i++) { 52722 key = field[i] 52723 keylen = length(key) 52724 if (S_is_set[key]) { 52725 value = S[key] 52726 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 52727 len += length(value) + length(field[++i]) 52728 substed = 1 52729 } else 52730 len += 1 + keylen 52731 } 52732 52733 print line 52734 } 52735 52736 _ACAWK 52737 _ACEOF 52738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52739 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 52740 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 52741 else 52742 cat 52743 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 52744 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 52745 _ACEOF 52746 52747 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 52748 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 52749 # trailing colons and then remove the whole line if VPATH becomes empty 52750 # (actually we leave an empty line to preserve line numbers). 52751 if test "x$srcdir" = x.; then 52752 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 52753 h 52754 s/// 52755 s/^/:/ 52756 s/[ ]*$/:/ 52757 s/:\$(srcdir):/:/g 52758 s/:\${srcdir}:/:/g 52759 s/:@srcdir@:/:/g 52760 s/^:*// 52761 s/:*$// 52762 x 52763 s/\(=[ ]*\).*/\1/ 52764 G 52765 s/\n// 52766 s/^[^=]*=[ ]*$// 52767 }' 52768 fi 52769 52770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52771 fi # test -n "$CONFIG_FILES" 52772 52773 52774 eval set X " :F $CONFIG_FILES " 52775 shift 52776 for ac_tag 52777 do 52778 case $ac_tag in 52779 :[FHLC]) ac_mode=$ac_tag; continue;; 52780 esac 52781 case $ac_mode$ac_tag in 52782 :[FHL]*:*);; 52783 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52784 :[FH]-) ac_tag=-:-;; 52785 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52786 esac 52787 ac_save_IFS=$IFS 52788 IFS=: 52789 set x $ac_tag 52790 IFS=$ac_save_IFS 52791 shift 52792 ac_file=$1 52793 shift 52794 52795 case $ac_mode in 52796 :L) ac_source=$1;; 52797 :[FH]) 52798 ac_file_inputs= 52799 for ac_f 52800 do 52801 case $ac_f in 52802 -) ac_f="$ac_tmp/stdin";; 52803 *) # Look for the file first in the build tree, then in the source tree 52804 # (if the path is not absolute). The absolute path cannot be DOS-style, 52805 # because $ac_f cannot contain `:'. 52806 test -f "$ac_f" || 52807 case $ac_f in 52808 [\\/$]*) false;; 52809 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52810 esac || 52811 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52812 esac 52813 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52814 as_fn_append ac_file_inputs " '$ac_f'" 52815 done 52816 52817 # Let's still pretend it is `configure' which instantiates (i.e., don't 52818 # use $as_me), people would be surprised to read: 52819 # /* config.h. Generated by config.status. */ 52820 configure_input='Generated from '` 52821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52822 `' by configure.' 52823 if test x"$ac_file" != x-; then 52824 configure_input="$ac_file. $configure_input" 52825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52826 $as_echo "$as_me: creating $ac_file" >&6;} 52827 fi 52828 # Neutralize special characters interpreted by sed in replacement strings. 52829 case $configure_input in #( 52830 *\&* | *\|* | *\\* ) 52831 ac_sed_conf_input=`$as_echo "$configure_input" | 52832 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52833 *) ac_sed_conf_input=$configure_input;; 52834 esac 52835 52836 case $ac_tag in 52837 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52839 esac 52840 ;; 52841 esac 52842 52843 ac_dir=`$as_dirname -- "$ac_file" || 52844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52845 X"$ac_file" : 'X\(//\)[^/]' \| \ 52846 X"$ac_file" : 'X\(//\)$' \| \ 52847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52848 $as_echo X"$ac_file" | 52849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52850 s//\1/ 52851 q 52852 } 52853 /^X\(\/\/\)[^/].*/{ 52854 s//\1/ 52855 q 52856 } 52857 /^X\(\/\/\)$/{ 52858 s//\1/ 52859 q 52860 } 52861 /^X\(\/\).*/{ 52862 s//\1/ 52863 q 52864 } 52865 s/.*/./; q'` 52866 as_dir="$ac_dir"; as_fn_mkdir_p 52867 ac_builddir=. 52868 52869 case "$ac_dir" in 52870 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52871 *) 52872 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52873 # A ".." for each directory in $ac_dir_suffix. 52874 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52875 case $ac_top_builddir_sub in 52876 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52877 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52878 esac ;; 52879 esac 52880 ac_abs_top_builddir=$ac_pwd 52881 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52882 # for backward compatibility: 52883 ac_top_builddir=$ac_top_build_prefix 52884 52885 case $srcdir in 52886 .) # We are building in place. 52887 ac_srcdir=. 52888 ac_top_srcdir=$ac_top_builddir_sub 52889 ac_abs_top_srcdir=$ac_pwd ;; 52890 [\\/]* | ?:[\\/]* ) # Absolute name. 52891 ac_srcdir=$srcdir$ac_dir_suffix; 52892 ac_top_srcdir=$srcdir 52893 ac_abs_top_srcdir=$srcdir ;; 52894 *) # Relative name. 52895 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52896 ac_top_srcdir=$ac_top_build_prefix$srcdir 52897 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52898 esac 52899 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52900 52901 52902 case $ac_mode in 52903 :F) 52904 # 52905 # CONFIG_FILE 52906 # 52907 52908 _ACEOF 52909 52910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52911 # If the template does not know about datarootdir, expand it. 52912 # FIXME: This hack should be removed a few years after 2.60. 52913 ac_datarootdir_hack=; ac_datarootdir_seen= 52914 ac_sed_dataroot=' 52915 /datarootdir/ { 52916 p 52917 q 52918 } 52919 /@datadir@/p 52920 /@docdir@/p 52921 /@infodir@/p 52922 /@localedir@/p 52923 /@mandir@/p' 52924 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 52925 *datarootdir*) ac_datarootdir_seen=yes;; 52926 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 52927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 52928 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 52929 _ACEOF 52930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52931 ac_datarootdir_hack=' 52932 s&@datadir@&$datadir&g 52933 s&@docdir@&$docdir&g 52934 s&@infodir@&$infodir&g 52935 s&@localedir@&$localedir&g 52936 s&@mandir@&$mandir&g 52937 s&\\\${datarootdir}&$datarootdir&g' ;; 52938 esac 52939 _ACEOF 52940 52941 # Neutralize VPATH when `$srcdir' = `.'. 52942 # Shell code in configure.ac might set extrasub. 52943 # FIXME: do we really want to maintain this feature? 52944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52945 ac_sed_extra="$ac_vpsub 52946 $extrasub 52947 _ACEOF 52948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52949 :t 52950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 52951 s|@configure_input@|$ac_sed_conf_input|;t t 52952 s&@top_builddir@&$ac_top_builddir_sub&;t t 52953 s&@top_build_prefix@&$ac_top_build_prefix&;t t 52954 s&@srcdir@&$ac_srcdir&;t t 52955 s&@abs_srcdir@&$ac_abs_srcdir&;t t 52956 s&@top_srcdir@&$ac_top_srcdir&;t t 52957 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 52958 s&@builddir@&$ac_builddir&;t t 52959 s&@abs_builddir@&$ac_abs_builddir&;t t 52960 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 52961 $ac_datarootdir_hack 52962 " 52963 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 52964 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52965 52966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 52967 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 52968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 52969 "$ac_tmp/out"`; test -z "$ac_out"; } && 52970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52971 which seems to be undefined. Please make sure it is defined" >&5 52972 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52973 which seems to be undefined. Please make sure it is defined" >&2;} 52974 52975 rm -f "$ac_tmp/stdin" 52976 case $ac_file in 52977 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 52978 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 52979 esac \ 52980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52981 ;; 52982 52983 52984 52985 esac 52986 52987 done # for ac_tag 52988 52989 52990 as_fn_exit 0 52991 _ACEOF 52992 ac_clean_files=$ac_clean_files_save 52993 52994 test $ac_write_fail = 0 || 52995 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 52996 52997 52998 # configure is writing to config.log, and then calls config.status. 52999 # config.status does its own redirection, appending to config.log. 53000 # Unfortunately, on DOS this fails, as config.log is still kept open 53001 # by configure, so config.status won't be able to write to it; its 53002 # output is simply discarded. So we exec the FD to /dev/null, 53003 # effectively closing config.log, so it can be properly (re)opened and 53004 # appended to by config.status. When coming back to configure, we 53005 # need to make the FD available again. 53006 if test "$no_create" != yes; then 53007 ac_cs_success=: 53008 ac_config_status_args= 53009 test "$silent" = yes && 53010 ac_config_status_args="$ac_config_status_args --quiet" 53011 exec 5>/dev/null 53012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 53013 exec 5>>config.log 53014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 53015 # would make configure fail if this is the last instruction. 53016 $ac_cs_success || as_fn_exit 1 53017 fi 53018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 53019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 53020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 53021 fi 53022 53023 53024 53025 # Try to move the config.log file to the output directory. 53026 if test -e ./config.log; then 53027 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 53028 fi 53029 53030 # Make the compare script executable 53031 $CHMOD +x $OUTPUT_ROOT/compare.sh 53032 53033 # Finally output some useful information to the user 53034 53035 # Finally output some useful information to the user 53036 53037 printf "\n" 53038 printf "====================================================\n" 53039 if test "x$no_create" != "xyes"; then 53040 if test "x$IS_RECONFIGURE" != "xyes"; then 53041 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 53042 else 53043 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 53044 fi 53045 else 53046 if test "x$IS_RECONFIGURE" != "xyes"; then 53047 printf "A configuration has been successfully checked but not created\n" 53048 else 53049 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 53050 fi 53051 fi 53052 if test "x$CONFIGURE_COMMAND_LINE" != x; then 53053 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 53054 else 53055 printf "using default settings.\n" 53056 fi 53057 53058 printf "\n" 53059 printf "Configuration summary:\n" 53060 printf "* Debug level: $DEBUG_LEVEL\n" 53061 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 53062 printf "* JDK variant: $JDK_VARIANT\n" 53063 printf "* JVM variants: $with_jvm_variants\n" 53064 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 53065 53066 printf "\n" 53067 printf "Tools summary:\n" 53068 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 53069 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 53070 fi 53071 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 53072 if test "x$TOOLCHAIN_VERSION" != "x"; then 53073 print_version=" $TOOLCHAIN_VERSION" 53074 fi 53075 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 53076 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 53077 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 53078 53079 printf "\n" 53080 printf "Build performance summary:\n" 53081 printf "* Cores to use: $JOBS\n" 53082 printf "* Memory limit: $MEMORY_SIZE MB\n" 53083 if test "x$CCACHE_STATUS" != "x"; then 53084 printf "* ccache status: $CCACHE_STATUS\n" 53085 fi 53086 printf "\n" 53087 53088 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 53089 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 53090 printf "will result in longer build times.\n" 53091 printf "\n" 53092 fi 53093 53094 if test "x$FOUND_ALT_VARIABLES" != "x"; then 53095 printf "WARNING: You have old-style ALT_ environment variables set.\n" 53096 printf "These are not respected, and will be ignored. It is recommended\n" 53097 printf "that you clean your environment. The following variables are set:\n" 53098 printf "$FOUND_ALT_VARIABLES\n" 53099 printf "\n" 53100 fi 53101 53102 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 53103 printf "WARNING: Your build output directory is not on a local disk.\n" 53104 printf "This will severely degrade build performance!\n" 53105 printf "It is recommended that you create an output directory on a local disk,\n" 53106 printf "and run the configure script again from that directory.\n" 53107 printf "\n" 53108 fi 53109 53110 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 53111 printf "WARNING: The result of this configuration has overridden an older\n" 53112 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 53113 printf "proper build. Failure to do so might result in strange build problems.\n" 53114 printf "\n" 53115 fi 53116 53117 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 53118 printf "WARNING: The result of this configuration was not saved.\n" 53119 printf "You should run without '--no-create | -n' to create the configuration.\n" 53120 printf "\n" 53121 fi 53122 53123 53124 53125 if test -e "$OUTPUT_ROOT/config.log"; then 53126 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 53127 if test $? -eq 0; then 53128 printf "The following warnings were produced. Repeated here for convenience:\n" 53129 # We must quote sed expression (using []) to stop m4 from eating the []. 53130 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //' 53131 printf "\n" 53132 fi 53133 fi 53134 53135