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 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 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 MSVCR_DLL 649 LIBCXX 650 LLVM_LIBS 651 LLVM_LDFLAGS 652 LLVM_CFLAGS 653 LLVM_CONFIG 654 LIBFFI_LIBS 655 LIBFFI_CFLAGS 656 STATIC_CXX_SETTING 657 LIBDL 658 LIBM 659 LIBZIP_CAN_USE_MMAP 660 USE_EXTERNAL_LIBZ 661 USE_EXTERNAL_LIBPNG 662 PNG_LIBS 663 PNG_CFLAGS 664 USE_EXTERNAL_LCMS 665 LCMS_LIBS 666 LCMS_CFLAGS 667 USE_EXTERNAL_LIBGIF 668 USE_EXTERNAL_LIBJPEG 669 ALSA_LIBS 670 ALSA_CFLAGS 671 FREETYPE_BUNDLE_LIB_PATH 672 FREETYPE_LIBS 673 FREETYPE_CFLAGS 674 CUPS_CFLAGS 675 X_EXTRA_LIBS 676 X_LIBS 677 X_PRE_LIBS 678 X_CFLAGS 679 XMKMF 680 FIXPATH 681 ZIP_DEBUGINFO_FILES 682 ENABLE_DEBUG_SYMBOLS 683 CFLAGS_WARNINGS_ARE_ERRORS 684 COMPILER_SUPPORTS_TARGET_BITS_FLAG 685 ZERO_ARCHFLAG 686 LDFLAGS_CXX_JDK 687 LDFLAGS_JDKEXE_SUFFIX 688 LDFLAGS_JDKLIB_SUFFIX 689 LDFLAGS_JDKEXE 690 LDFLAGS_JDKLIB 691 CXXFLAGS_JDKEXE 692 CXXFLAGS_JDKLIB 693 CFLAGS_JDKEXE 694 CFLAGS_JDKLIB 695 MACOSX_VERSION_MIN 696 LEGACY_EXTRA_LDFLAGS 697 LEGACY_EXTRA_CXXFLAGS 698 LEGACY_EXTRA_CFLAGS 699 CXX_O_FLAG_NONE 700 CXX_O_FLAG_DEBUG 701 CXX_O_FLAG_NORM 702 CXX_O_FLAG_HI 703 CXX_O_FLAG_HIGHEST 704 C_O_FLAG_NONE 705 C_O_FLAG_DEBUG 706 C_O_FLAG_NORM 707 C_O_FLAG_HI 708 C_O_FLAG_HIGHEST 709 CXXFLAGS_DEBUG_OPTIONS 710 CFLAGS_DEBUG_OPTIONS 711 CXXFLAGS_DEBUG_SYMBOLS 712 CFLAGS_DEBUG_SYMBOLS 713 CXX_FLAG_DEPS 714 C_FLAG_DEPS 715 SET_SHARED_LIBRARY_MAPFILE 716 SET_SHARED_LIBRARY_NAME 717 SET_SHARED_LIBRARY_ORIGIN 718 SET_EXECUTABLE_ORIGIN 719 SHARED_LIBRARY_FLAGS 720 CXX_FLAG_REORDER 721 C_FLAG_REORDER 722 SYSROOT_LDFLAGS 723 SYSROOT_CFLAGS 724 RC_FLAGS 725 AR_OUT_OPTION 726 LD_OUT_OPTION 727 EXE_OUT_OPTION 728 CC_OUT_OPTION 729 POST_MCS_CMD 730 POST_STRIP_CMD 731 ARFLAGS 732 COMPILER_TARGET_BITS_FLAG 733 JT_HOME 734 JTREGEXE 735 USING_BROKEN_SUSE_LD 736 PACKAGE_PATH 737 LDEXECXX 738 LDEXE 739 USE_CLANG 740 HOTSPOT_LD 741 HOTSPOT_CXX 742 HOTSPOT_RC 743 HOTSPOT_MT 744 BUILD_LD 745 BUILD_CXX 746 BUILD_CC 747 ac_ct_OBJDUMP 748 OBJDUMP 749 ac_ct_OBJCOPY 750 OBJCOPY 751 ac_ct_NM 752 ac_ct_STRIP 753 MCS 754 GNM 755 NM 756 STRIP 757 MSBUILD 758 DUMPBIN 759 RC 760 MT 761 LIPO 762 ac_ct_OBJC 763 OBJCFLAGS 764 OBJC 765 ac_ct_AR 766 AR 767 AS 768 LDCXX 769 LD 770 CXXCPP 771 CPP 772 ac_ct_CXX 773 CXXFLAGS 774 CXX 775 ac_ct_PROPER_COMPILER_CXX 776 PROPER_COMPILER_CXX 777 TOOLCHAIN_PATH_CXX 778 POTENTIAL_CXX 779 OBJEXT 780 EXEEXT 781 ac_ct_CC 782 CPPFLAGS 783 LDFLAGS 784 CFLAGS 785 CC 786 ac_ct_PROPER_COMPILER_CC 787 PROPER_COMPILER_CC 788 TOOLCHAIN_PATH_CC 789 POTENTIAL_CC 790 VS_LIB 791 VS_INCLUDE 792 VS_PATH 793 CYGWIN_LINK 794 EXE_SUFFIX 795 OBJ_SUFFIX 796 STATIC_LIBRARY 797 SHARED_LIBRARY 798 STATIC_LIBRARY_SUFFIX 799 SHARED_LIBRARY_SUFFIX 800 LIBRARY_PREFIX 801 TOOLCHAIN_TYPE 802 BUILD_HOTSPOT 803 HOTSPOT_DIST 804 BUILD_OUTPUT 805 OVERRIDE_SRC_ROOT 806 ADD_SRC_ROOT 807 JDK_TOPDIR 808 NASHORN_TOPDIR 809 HOTSPOT_TOPDIR 810 JAXWS_TOPDIR 811 JAXP_TOPDIR 812 CORBA_TOPDIR 813 LANGTOOLS_TOPDIR 814 JAVAC_FLAGS 815 BOOT_JDK_SOURCETARGET 816 JARSIGNER 817 NATIVE2ASCII 818 JAR 819 JAVAH 820 JAVAC 821 JAVA 822 BOOT_JDK 823 JAVA_CHECK 824 JAVAC_CHECK 825 COOKED_BUILD_NUMBER 826 JDK_VERSION 827 COPYRIGHT_YEAR 828 MACOSX_BUNDLE_ID_BASE 829 MACOSX_BUNDLE_NAME_BASE 830 COMPANY_NAME 831 JDK_RC_PLATFORM_NAME 832 PRODUCT_SUFFIX 833 PRODUCT_NAME 834 LAUNCHER_NAME 835 MILESTONE 836 JDK_BUILD_NUMBER 837 JDK_UPDATE_VERSION 838 JDK_MICRO_VERSION 839 JDK_MINOR_VERSION 840 JDK_MAJOR_VERSION 841 USER_RELEASE_SUFFIX 842 COMPRESS_JARS 843 RMICONNECTOR_IIOP 844 UNLIMITED_CRYPTO 845 CACERTS_FILE 846 TEST_IN_BUILD 847 BUILD_HEADLESS 848 SUPPORT_HEADFUL 849 SUPPORT_HEADLESS 850 BDEPS_FTP 851 BDEPS_UNZIP 852 OS_VERSION_MICRO 853 OS_VERSION_MINOR 854 OS_VERSION_MAJOR 855 PKG_CONFIG 856 CODESIGN 857 XATTR 858 DSYMUTIL 859 IS_GNU_TIME 860 TIME 861 STAT 862 HG 863 READELF 864 OTOOL 865 LDD 866 ZIP 867 UNZIP 868 FIND_DELETE 869 OUTPUT_SYNC 870 OUTPUT_SYNC_SUPPORTED 871 MAKE 872 CHECK_TOOLSDIR_MAKE 873 CHECK_TOOLSDIR_GMAKE 874 CHECK_MAKE 875 CHECK_GMAKE 876 PKGHANDLER 877 OUTPUT_ROOT 878 CONF_NAME 879 SPEC 880 SDKROOT 881 XCODEBUILD 882 BUILD_VARIANT_RELEASE 883 DEBUG_CLASSFILES 884 FASTDEBUG 885 VARIANT 886 DEBUG_LEVEL 887 MACOSX_UNIVERSAL 888 INCLUDE_SA 889 JVM_VARIANT_CORE 890 JVM_VARIANT_ZEROSHARK 891 JVM_VARIANT_ZERO 892 JVM_VARIANT_KERNEL 893 JVM_VARIANT_MINIMAL1 894 JVM_VARIANT_CLIENT 895 JVM_VARIANT_SERVER 896 JVM_VARIANTS 897 JVM_INTERPRETER 898 JDK_VARIANT 899 SET_OPENJDK 900 BUILD_LOG_WRAPPER 901 BUILD_LOG_PREVIOUS 902 BUILD_LOG 903 TOPDIR 904 PATH_SEP 905 ZERO_ARCHDEF 906 DEFINE_CROSS_COMPILE_ARCH 907 LP64 908 OPENJDK_TARGET_OS_EXPORT_DIR 909 OPENJDK_TARGET_CPU_JLI_CFLAGS 910 OPENJDK_TARGET_CPU_OSARCH 911 OPENJDK_TARGET_CPU_ISADIR 912 OPENJDK_TARGET_CPU_LIBDIR 913 OPENJDK_TARGET_CPU_LEGACY_LIB 914 OPENJDK_TARGET_CPU_LEGACY 915 REQUIRED_OS_VERSION 916 REQUIRED_OS_NAME 917 COMPILE_TYPE 918 OPENJDK_TARGET_CPU_ENDIAN 919 OPENJDK_TARGET_CPU_BITS 920 OPENJDK_TARGET_CPU_ARCH 921 OPENJDK_TARGET_CPU 922 OPENJDK_TARGET_OS_ENV 923 OPENJDK_TARGET_OS_TYPE 924 OPENJDK_TARGET_OS 925 OPENJDK_BUILD_CPU_ENDIAN 926 OPENJDK_BUILD_CPU_BITS 927 OPENJDK_BUILD_CPU_ARCH 928 OPENJDK_BUILD_CPU 929 OPENJDK_BUILD_OS_ENV 930 OPENJDK_BUILD_OS_TYPE 931 OPENJDK_BUILD_OS 932 OPENJDK_BUILD_AUTOCONF_NAME 933 OPENJDK_TARGET_AUTOCONF_NAME 934 target_os 935 target_vendor 936 target_cpu 937 target 938 host_os 939 host_vendor 940 host_cpu 941 host 942 build_os 943 build_vendor 944 build_cpu 945 build 946 CPIO 947 SETFILE 948 DF 949 READLINK 950 CYGPATH 951 SED 952 FGREP 953 EGREP 954 GREP 955 AWK 956 XARGS 957 WHICH 958 WC 959 UNIQ 960 UNAME 961 TR 962 TOUCH 963 TEE 964 TAR 965 TAIL 966 SORT 967 SH 968 RM 969 PRINTF 970 NAWK 971 MV 972 MKTEMP 973 MKDIR 974 LS 975 LN 976 HEAD 977 FIND 978 FILE 979 EXPR 980 ECHO 981 DIRNAME 982 DIFF 983 DATE 984 CUT 985 CP 986 COMM 987 CMP 988 CHMOD 989 CAT 990 BASH 991 BASENAME 992 DATE_WHEN_CONFIGURED 993 ORIGINAL_PATH 994 CONFIGURE_COMMAND_LINE 995 target_alias 996 host_alias 997 build_alias 998 LIBS 999 ECHO_T 1000 ECHO_N 1001 ECHO_C 1002 DEFS 1003 mandir 1004 localedir 1005 libdir 1006 psdir 1007 pdfdir 1008 dvidir 1009 htmldir 1010 infodir 1011 docdir 1012 oldincludedir 1013 includedir 1014 localstatedir 1015 sharedstatedir 1016 sysconfdir 1017 datadir 1018 datarootdir 1019 libexecdir 1020 sbindir 1021 bindir 1022 program_transform_name 1023 prefix 1024 exec_prefix 1025 PACKAGE_URL 1026 PACKAGE_BUGREPORT 1027 PACKAGE_STRING 1028 PACKAGE_VERSION 1029 PACKAGE_TARNAME 1030 PACKAGE_NAME 1031 PATH_SEPARATOR 1032 SHELL' 1033 ac_subst_files='' 1034 ac_user_opts=' 1035 enable_option_checking 1036 with_target_bits 1037 enable_openjdk_only 1038 with_custom_make_dir 1039 with_jdk_variant 1040 with_jvm_interpreter 1041 with_jvm_variants 1042 enable_debug 1043 with_debug_level 1044 with_devkit 1045 with_sys_root 1046 with_sysroot 1047 with_tools_dir 1048 with_toolchain_path 1049 with_extra_path 1050 with_sdk_name 1051 with_conf_name 1052 with_output_sync 1053 with_builddeps_conf 1054 with_builddeps_server 1055 with_builddeps_dir 1056 with_builddeps_group 1057 enable_headful 1058 enable_hotspot_test_in_build 1059 with_cacerts_file 1060 enable_unlimited_crypto 1061 enable_rmiconnector_iiop 1062 with_milestone 1063 with_update_version 1064 with_user_release_suffix 1065 with_build_number 1066 with_copyright_year 1067 with_boot_jdk 1068 with_add_source_root 1069 with_override_source_root 1070 with_adds_and_overrides 1071 with_override_langtools 1072 with_override_corba 1073 with_override_jaxp 1074 with_override_jaxws 1075 with_override_hotspot 1076 with_override_nashorn 1077 with_override_jdk 1078 with_import_hotspot 1079 with_toolchain_type 1080 with_jtreg 1081 with_extra_cflags 1082 with_extra_cxxflags 1083 with_extra_ldflags 1084 enable_debug_symbols 1085 enable_zip_debug_info 1086 with_x 1087 with_cups 1088 with_cups_include 1089 with_freetype 1090 with_freetype_include 1091 with_freetype_lib 1092 with_freetype_src 1093 enable_freetype_bundling 1094 with_alsa 1095 with_alsa_include 1096 with_alsa_lib 1097 with_libjpeg 1098 with_giflib 1099 with_lcms 1100 with_libpng 1101 with_zlib 1102 with_stdc__lib 1103 with_msvcr_dll 1104 with_dxsdk 1105 with_dxsdk_lib 1106 with_dxsdk_include 1107 with_num_cores 1108 with_memory_size 1109 with_jobs 1110 with_boot_jdk_jvmargs 1111 with_sjavac_server_java 1112 enable_sjavac 1113 enable_precompiled_headers 1114 enable_ccache 1115 with_ccache_dir 1116 ' 1117 ac_precious_vars='build_alias 1118 host_alias 1119 target_alias 1120 BASENAME 1121 BASH 1122 CAT 1123 CHMOD 1124 CMP 1125 COMM 1126 CP 1127 CUT 1128 DATE 1129 DIFF 1130 DIRNAME 1131 ECHO 1132 EXPR 1133 FILE 1134 FIND 1135 HEAD 1136 LN 1137 LS 1138 MKDIR 1139 MKTEMP 1140 MV 1141 NAWK 1142 PRINTF 1143 RM 1144 SH 1145 SORT 1146 TAIL 1147 TAR 1148 TEE 1149 TOUCH 1150 TR 1151 UNAME 1152 UNIQ 1153 WC 1154 WHICH 1155 XARGS 1156 AWK 1157 GREP 1158 EGREP 1159 FGREP 1160 SED 1161 CYGPATH 1162 READLINK 1163 DF 1164 SETFILE 1165 CPIO 1166 UNZIP 1167 ZIP 1168 LDD 1169 OTOOL 1170 READELF 1171 HG 1172 STAT 1173 TIME 1174 DSYMUTIL 1175 XATTR 1176 CODESIGN 1177 PKG_CONFIG 1178 JAVA 1179 JAVAC 1180 JAVAH 1181 JAR 1182 NATIVE2ASCII 1183 JARSIGNER 1184 CC 1185 CFLAGS 1186 LDFLAGS 1187 LIBS 1188 CPPFLAGS 1189 CXX 1190 CXXFLAGS 1191 CCC 1192 CPP 1193 CXXCPP 1194 AS 1195 AR 1196 OBJC 1197 OBJCFLAGS 1198 LIPO 1199 STRIP 1200 NM 1201 GNM 1202 MCS 1203 OBJCOPY 1204 OBJDUMP 1205 BUILD_CC 1206 BUILD_CXX 1207 BUILD_LD 1208 JTREGEXE 1209 XMKMF 1210 FREETYPE_CFLAGS 1211 FREETYPE_LIBS 1212 ALSA_CFLAGS 1213 ALSA_LIBS 1214 LCMS_CFLAGS 1215 LCMS_LIBS 1216 PNG_CFLAGS 1217 PNG_LIBS 1218 LIBFFI_CFLAGS 1219 LIBFFI_LIBS 1220 CCACHE' 1221 1222 1223 # Initialize some variables set by options. 1224 ac_init_help= 1225 ac_init_version=false 1226 ac_unrecognized_opts= 1227 ac_unrecognized_sep= 1228 # The variables have the same names as the options, with 1229 # dashes changed to underlines. 1230 cache_file=/dev/null 1231 exec_prefix=NONE 1232 no_create= 1233 no_recursion= 1234 prefix=NONE 1235 program_prefix=NONE 1236 program_suffix=NONE 1237 program_transform_name=s,x,x, 1238 silent= 1239 site= 1240 srcdir= 1241 verbose= 1242 x_includes=NONE 1243 x_libraries=NONE 1244 1245 # Installation directory options. 1246 # These are left unexpanded so users can "make install exec_prefix=/foo" 1247 # and all the variables that are supposed to be based on exec_prefix 1248 # by default will actually change. 1249 # Use braces instead of parens because sh, perl, etc. also accept them. 1250 # (The list follows the same order as the GNU Coding Standards.) 1251 bindir='${exec_prefix}/bin' 1252 sbindir='${exec_prefix}/sbin' 1253 libexecdir='${exec_prefix}/libexec' 1254 datarootdir='${prefix}/share' 1255 datadir='${datarootdir}' 1256 sysconfdir='${prefix}/etc' 1257 sharedstatedir='${prefix}/com' 1258 localstatedir='${prefix}/var' 1259 includedir='${prefix}/include' 1260 oldincludedir='/usr/include' 1261 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1262 infodir='${datarootdir}/info' 1263 htmldir='${docdir}' 1264 dvidir='${docdir}' 1265 pdfdir='${docdir}' 1266 psdir='${docdir}' 1267 libdir='${exec_prefix}/lib' 1268 localedir='${datarootdir}/locale' 1269 mandir='${datarootdir}/man' 1270 1271 ac_prev= 1272 ac_dashdash= 1273 for ac_option 1274 do 1275 # If the previous option needs an argument, assign it. 1276 if test -n "$ac_prev"; then 1277 eval $ac_prev=\$ac_option 1278 ac_prev= 1279 continue 1280 fi 1281 1282 case $ac_option in 1283 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1284 *=) ac_optarg= ;; 1285 *) ac_optarg=yes ;; 1286 esac 1287 1288 # Accept the important Cygnus configure options, so we can diagnose typos. 1289 1290 case $ac_dashdash$ac_option in 1291 --) 1292 ac_dashdash=yes ;; 1293 1294 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1295 ac_prev=bindir ;; 1296 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1297 bindir=$ac_optarg ;; 1298 1299 -build | --build | --buil | --bui | --bu) 1300 ac_prev=build_alias ;; 1301 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1302 build_alias=$ac_optarg ;; 1303 1304 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1306 ac_prev=cache_file ;; 1307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1309 cache_file=$ac_optarg ;; 1310 1311 --config-cache | -C) 1312 cache_file=config.cache ;; 1313 1314 -datadir | --datadir | --datadi | --datad) 1315 ac_prev=datadir ;; 1316 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1317 datadir=$ac_optarg ;; 1318 1319 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1320 | --dataroo | --dataro | --datar) 1321 ac_prev=datarootdir ;; 1322 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1323 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1324 datarootdir=$ac_optarg ;; 1325 1326 -disable-* | --disable-*) 1327 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1328 # Reject names that are not valid shell variable names. 1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1330 as_fn_error $? "invalid feature name: $ac_useropt" 1331 ac_useropt_orig=$ac_useropt 1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1333 case $ac_user_opts in 1334 *" 1335 "enable_$ac_useropt" 1336 "*) ;; 1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1338 ac_unrecognized_sep=', ';; 1339 esac 1340 eval enable_$ac_useropt=no ;; 1341 1342 -docdir | --docdir | --docdi | --doc | --do) 1343 ac_prev=docdir ;; 1344 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1345 docdir=$ac_optarg ;; 1346 1347 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1348 ac_prev=dvidir ;; 1349 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1350 dvidir=$ac_optarg ;; 1351 1352 -enable-* | --enable-*) 1353 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1354 # Reject names that are not valid shell variable names. 1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1356 as_fn_error $? "invalid feature name: $ac_useropt" 1357 ac_useropt_orig=$ac_useropt 1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1359 case $ac_user_opts in 1360 *" 1361 "enable_$ac_useropt" 1362 "*) ;; 1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1364 ac_unrecognized_sep=', ';; 1365 esac 1366 eval enable_$ac_useropt=\$ac_optarg ;; 1367 1368 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1369 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1370 | --exec | --exe | --ex) 1371 ac_prev=exec_prefix ;; 1372 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1373 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1374 | --exec=* | --exe=* | --ex=*) 1375 exec_prefix=$ac_optarg ;; 1376 1377 -gas | --gas | --ga | --g) 1378 # Obsolete; use --with-gas. 1379 with_gas=yes ;; 1380 1381 -help | --help | --hel | --he | -h) 1382 ac_init_help=long ;; 1383 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1384 ac_init_help=recursive ;; 1385 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1386 ac_init_help=short ;; 1387 1388 -host | --host | --hos | --ho) 1389 ac_prev=host_alias ;; 1390 -host=* | --host=* | --hos=* | --ho=*) 1391 host_alias=$ac_optarg ;; 1392 1393 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1394 ac_prev=htmldir ;; 1395 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1396 | --ht=*) 1397 htmldir=$ac_optarg ;; 1398 1399 -includedir | --includedir | --includedi | --included | --include \ 1400 | --includ | --inclu | --incl | --inc) 1401 ac_prev=includedir ;; 1402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1403 | --includ=* | --inclu=* | --incl=* | --inc=*) 1404 includedir=$ac_optarg ;; 1405 1406 -infodir | --infodir | --infodi | --infod | --info | --inf) 1407 ac_prev=infodir ;; 1408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1409 infodir=$ac_optarg ;; 1410 1411 -libdir | --libdir | --libdi | --libd) 1412 ac_prev=libdir ;; 1413 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1414 libdir=$ac_optarg ;; 1415 1416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1417 | --libexe | --libex | --libe) 1418 ac_prev=libexecdir ;; 1419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1420 | --libexe=* | --libex=* | --libe=*) 1421 libexecdir=$ac_optarg ;; 1422 1423 -localedir | --localedir | --localedi | --localed | --locale) 1424 ac_prev=localedir ;; 1425 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1426 localedir=$ac_optarg ;; 1427 1428 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1429 | --localstate | --localstat | --localsta | --localst | --locals) 1430 ac_prev=localstatedir ;; 1431 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1432 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1433 localstatedir=$ac_optarg ;; 1434 1435 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1436 ac_prev=mandir ;; 1437 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1438 mandir=$ac_optarg ;; 1439 1440 -nfp | --nfp | --nf) 1441 # Obsolete; use --without-fp. 1442 with_fp=no ;; 1443 1444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1445 | --no-cr | --no-c | -n) 1446 no_create=yes ;; 1447 1448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1450 no_recursion=yes ;; 1451 1452 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1453 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1454 | --oldin | --oldi | --old | --ol | --o) 1455 ac_prev=oldincludedir ;; 1456 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1457 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1458 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1459 oldincludedir=$ac_optarg ;; 1460 1461 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1462 ac_prev=prefix ;; 1463 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1464 prefix=$ac_optarg ;; 1465 1466 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1467 | --program-pre | --program-pr | --program-p) 1468 ac_prev=program_prefix ;; 1469 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1470 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1471 program_prefix=$ac_optarg ;; 1472 1473 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1474 | --program-suf | --program-su | --program-s) 1475 ac_prev=program_suffix ;; 1476 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1477 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1478 program_suffix=$ac_optarg ;; 1479 1480 -program-transform-name | --program-transform-name \ 1481 | --program-transform-nam | --program-transform-na \ 1482 | --program-transform-n | --program-transform- \ 1483 | --program-transform | --program-transfor \ 1484 | --program-transfo | --program-transf \ 1485 | --program-trans | --program-tran \ 1486 | --progr-tra | --program-tr | --program-t) 1487 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1496 1497 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1498 ac_prev=pdfdir ;; 1499 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1500 pdfdir=$ac_optarg ;; 1501 1502 -psdir | --psdir | --psdi | --psd | --ps) 1503 ac_prev=psdir ;; 1504 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1505 psdir=$ac_optarg ;; 1506 1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1508 | -silent | --silent | --silen | --sile | --sil) 1509 silent=yes ;; 1510 1511 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1512 ac_prev=sbindir ;; 1513 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1514 | --sbi=* | --sb=*) 1515 sbindir=$ac_optarg ;; 1516 1517 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1518 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1519 | --sharedst | --shareds | --shared | --share | --shar \ 1520 | --sha | --sh) 1521 ac_prev=sharedstatedir ;; 1522 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1523 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1524 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1525 | --sha=* | --sh=*) 1526 sharedstatedir=$ac_optarg ;; 1527 1528 -site | --site | --sit) 1529 ac_prev=site ;; 1530 -site=* | --site=* | --sit=*) 1531 site=$ac_optarg ;; 1532 1533 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1534 ac_prev=srcdir ;; 1535 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1536 srcdir=$ac_optarg ;; 1537 1538 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1539 | --syscon | --sysco | --sysc | --sys | --sy) 1540 ac_prev=sysconfdir ;; 1541 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1542 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1543 sysconfdir=$ac_optarg ;; 1544 1545 -target | --target | --targe | --targ | --tar | --ta | --t) 1546 ac_prev=target_alias ;; 1547 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1548 target_alias=$ac_optarg ;; 1549 1550 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1551 verbose=yes ;; 1552 1553 -version | --version | --versio | --versi | --vers | -V) 1554 ac_init_version=: ;; 1555 1556 -with-* | --with-*) 1557 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1558 # Reject names that are not valid shell variable names. 1559 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1560 as_fn_error $? "invalid package name: $ac_useropt" 1561 ac_useropt_orig=$ac_useropt 1562 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1563 case $ac_user_opts in 1564 *" 1565 "with_$ac_useropt" 1566 "*) ;; 1567 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1568 ac_unrecognized_sep=', ';; 1569 esac 1570 eval with_$ac_useropt=\$ac_optarg ;; 1571 1572 -without-* | --without-*) 1573 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1574 # Reject names that are not valid shell variable names. 1575 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1576 as_fn_error $? "invalid package name: $ac_useropt" 1577 ac_useropt_orig=$ac_useropt 1578 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1579 case $ac_user_opts in 1580 *" 1581 "with_$ac_useropt" 1582 "*) ;; 1583 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1584 ac_unrecognized_sep=', ';; 1585 esac 1586 eval with_$ac_useropt=no ;; 1587 1588 --x) 1589 # Obsolete; use --with-x. 1590 with_x=yes ;; 1591 1592 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1593 | --x-incl | --x-inc | --x-in | --x-i) 1594 ac_prev=x_includes ;; 1595 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1596 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1597 x_includes=$ac_optarg ;; 1598 1599 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1600 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1601 ac_prev=x_libraries ;; 1602 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1603 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1604 x_libraries=$ac_optarg ;; 1605 1606 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1607 Try \`$0 --help' for more information" 1608 ;; 1609 1610 *=*) 1611 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1612 # Reject names that are not valid shell variable names. 1613 case $ac_envvar in #( 1614 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1615 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1616 esac 1617 eval $ac_envvar=\$ac_optarg 1618 export $ac_envvar ;; 1619 1620 *) 1621 # FIXME: should be removed in autoconf 3.0. 1622 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1623 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1624 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1625 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1626 ;; 1627 1628 esac 1629 done 1630 1631 if test -n "$ac_prev"; then 1632 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1633 as_fn_error $? "missing argument to $ac_option" 1634 fi 1635 1636 if test -n "$ac_unrecognized_opts"; then 1637 case $enable_option_checking in 1638 no) ;; 1639 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1640 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1641 esac 1642 fi 1643 1644 # Check all directory arguments for consistency. 1645 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1646 datadir sysconfdir sharedstatedir localstatedir includedir \ 1647 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1648 libdir localedir mandir 1649 do 1650 eval ac_val=\$$ac_var 1651 # Remove trailing slashes. 1652 case $ac_val in 1653 */ ) 1654 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1655 eval $ac_var=\$ac_val;; 1656 esac 1657 # Be sure to have absolute directory names. 1658 case $ac_val in 1659 [\\/$]* | ?:[\\/]* ) continue;; 1660 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1661 esac 1662 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1663 done 1664 1665 # There might be people who depend on the old broken behavior: `$host' 1666 # used to hold the argument of --host etc. 1667 # FIXME: To remove some day. 1668 build=$build_alias 1669 host=$host_alias 1670 target=$target_alias 1671 1672 # FIXME: To remove some day. 1673 if test "x$host_alias" != x; then 1674 if test "x$build_alias" = x; then 1675 cross_compiling=maybe 1676 elif test "x$build_alias" != "x$host_alias"; then 1677 cross_compiling=yes 1678 fi 1679 fi 1680 1681 ac_tool_prefix= 1682 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1683 1684 test "$silent" = yes && exec 6>/dev/null 1685 1686 1687 ac_pwd=`pwd` && test -n "$ac_pwd" && 1688 ac_ls_di=`ls -di .` && 1689 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1690 as_fn_error $? "working directory cannot be determined" 1691 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1692 as_fn_error $? "pwd does not report name of working directory" 1693 1694 1695 # Find the source files, if location was not specified. 1696 if test -z "$srcdir"; then 1697 ac_srcdir_defaulted=yes 1698 # Try the directory containing this script, then the parent directory. 1699 ac_confdir=`$as_dirname -- "$as_myself" || 1700 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1701 X"$as_myself" : 'X\(//\)[^/]' \| \ 1702 X"$as_myself" : 'X\(//\)$' \| \ 1703 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1704 $as_echo X"$as_myself" | 1705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1706 s//\1/ 1707 q 1708 } 1709 /^X\(\/\/\)[^/].*/{ 1710 s//\1/ 1711 q 1712 } 1713 /^X\(\/\/\)$/{ 1714 s//\1/ 1715 q 1716 } 1717 /^X\(\/\).*/{ 1718 s//\1/ 1719 q 1720 } 1721 s/.*/./; q'` 1722 srcdir=$ac_confdir 1723 if test ! -r "$srcdir/$ac_unique_file"; then 1724 srcdir=.. 1725 fi 1726 else 1727 ac_srcdir_defaulted=no 1728 fi 1729 if test ! -r "$srcdir/$ac_unique_file"; then 1730 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1731 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1732 fi 1733 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1734 ac_abs_confdir=`( 1735 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1736 pwd)` 1737 # When building in place, set srcdir=. 1738 if test "$ac_abs_confdir" = "$ac_pwd"; then 1739 srcdir=. 1740 fi 1741 # Remove unnecessary trailing slashes from srcdir. 1742 # Double slashes in file names in object file debugging info 1743 # mess up M-x gdb in Emacs. 1744 case $srcdir in 1745 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1746 esac 1747 for ac_var in $ac_precious_vars; do 1748 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1749 eval ac_env_${ac_var}_value=\$${ac_var} 1750 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1751 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1752 done 1753 1754 # 1755 # Report the --help message. 1756 # 1757 if test "$ac_init_help" = "long"; then 1758 # Omit some internal or obsolete options to make the list less imposing. 1759 # This message is too long to be a string in the A/UX 3.1 sh. 1760 cat <<_ACEOF 1761 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1762 1763 Usage: $0 [OPTION]... [VAR=VALUE]... 1764 1765 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1766 VAR=VALUE. See below for descriptions of some of the useful variables. 1767 1768 Defaults for the options are specified in brackets. 1769 1770 Configuration: 1771 -h, --help display this help and exit 1772 --help=short display options specific to this package 1773 --help=recursive display the short help of all the included packages 1774 -V, --version display version information and exit 1775 -q, --quiet, --silent do not print \`checking ...' messages 1776 --cache-file=FILE cache test results in FILE [disabled] 1777 -C, --config-cache alias for \`--cache-file=config.cache' 1778 -n, --no-create do not create output files 1779 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1780 1781 Installation directories: 1782 --prefix=PREFIX install architecture-independent files in PREFIX 1783 [$ac_default_prefix] 1784 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1785 [PREFIX] 1786 1787 By default, \`make install' will install all the files in 1788 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1789 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1790 for instance \`--prefix=\$HOME'. 1791 1792 For better control, use the options below. 1793 1794 Fine tuning of the installation directories: 1795 --bindir=DIR user executables [EPREFIX/bin] 1796 --sbindir=DIR system admin executables [EPREFIX/sbin] 1797 --libexecdir=DIR program executables [EPREFIX/libexec] 1798 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1799 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1800 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1801 --libdir=DIR object code libraries [EPREFIX/lib] 1802 --includedir=DIR C header files [PREFIX/include] 1803 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1804 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1805 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1806 --infodir=DIR info documentation [DATAROOTDIR/info] 1807 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1808 --mandir=DIR man documentation [DATAROOTDIR/man] 1809 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1810 --htmldir=DIR html documentation [DOCDIR] 1811 --dvidir=DIR dvi documentation [DOCDIR] 1812 --pdfdir=DIR pdf documentation [DOCDIR] 1813 --psdir=DIR ps documentation [DOCDIR] 1814 _ACEOF 1815 1816 cat <<\_ACEOF 1817 1818 X features: 1819 --x-includes=DIR X include files are in DIR 1820 --x-libraries=DIR X library files are in DIR 1821 1822 System types: 1823 --build=BUILD configure for building on BUILD [guessed] 1824 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1825 --target=TARGET configure for building compilers for TARGET [HOST] 1826 _ACEOF 1827 fi 1828 1829 if test -n "$ac_init_help"; then 1830 case $ac_init_help in 1831 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1832 esac 1833 cat <<\_ACEOF 1834 1835 Optional Features: 1836 --disable-option-checking ignore unrecognized --enable/--with options 1837 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1838 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1839 --enable-openjdk-only suppress building custom source even if present 1840 [disabled] 1841 --enable-debug set the debug level to fastdebug (shorthand for 1842 --with-debug-level=fastdebug) [disabled] 1843 --disable-headful disable building headful support (graphical UI 1844 support) [enabled] 1845 --enable-hotspot-test-in-build 1846 run the Queens test after Hotspot build [disabled] 1847 --enable-unlimited-crypto 1848 Enable unlimited crypto policy [disabled] 1849 --enable-rmiconnector-iiop 1850 enable the JMX RMIConnector iiop transport 1851 [disabled] 1852 --disable-debug-symbols disable generation of debug symbols [enabled] 1853 --disable-zip-debug-info 1854 disable zipping of debug-info files [enabled] 1855 --disable-freetype-bundling 1856 disable bundling of the freetype library with the 1857 build result [enabled on Windows or when using 1858 --with-freetype, disabled otherwise] 1859 --enable-sjavac use sjavac to do fast incremental compiles 1860 [disabled] 1861 --disable-precompiled-headers 1862 disable using precompiled headers when compiling C++ 1863 [enabled] 1864 --enable-ccache enable using ccache to speed up recompilations 1865 [disabled] 1866 1867 Optional Packages: 1868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1870 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1871 support it), e.g. --with-target-bits=32 [guessed] 1872 --with-custom-make-dir Deprecated. Option is kept for backwards 1873 compatibility and is ignored 1874 --with-jdk-variant JDK variant to build (normal) [normal] 1875 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1876 --with-jvm-variants JVM variants (separated by commas) to build (server, 1877 client, minimal1, kernel, zero, zeroshark, core) 1878 [server] 1879 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1880 optimized (HotSpot build only)) [release] 1881 --with-devkit use this devkit for compilers, tools and resources 1882 --with-sys-root alias for --with-sysroot for backwards compatability 1883 --with-sysroot use this directory as sysroot 1884 --with-tools-dir alias for --with-toolchain-path for backwards 1885 compatibility 1886 --with-toolchain-path prepend these directories when searching for 1887 toolchain binaries (compilers etc) 1888 --with-extra-path prepend these directories to the default path 1889 --with-sdk-name use the platform SDK of the given name. [macosx] 1890 --with-conf-name use this as the name of the configuration [generated 1891 from important configuration options] 1892 --with-output-sync set make output sync type if supported by make. 1893 [recurse] 1894 --with-builddeps-conf use this configuration file for the builddeps 1895 --with-builddeps-server download and use build dependencies from this server 1896 url 1897 --with-builddeps-dir store downloaded build dependencies here 1898 [/localhome/builddeps] 1899 --with-builddeps-group chgrp the downloaded build dependencies to this 1900 group 1901 --with-cacerts-file specify alternative cacerts file 1902 --with-milestone Set milestone value for build [internal] 1903 --with-update-version Set update version value for build [b00] 1904 --with-user-release-suffix 1905 Add a custom string to the version string if build 1906 number is not set.[username_builddateb00] 1907 --with-build-number Set build number value for build [b00] 1908 --with-copyright-year Set copyright year value for build [current year] 1909 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1910 --with-add-source-root for each and every source directory, look in this 1911 additional source root for the same directory; if it 1912 exists and have files in it, include it in the build 1913 --with-override-source-root 1914 for each and every source directory, look in this 1915 override source root for the same directory; if it 1916 exists, use that directory instead and ignore the 1917 directory in the original source root 1918 --with-adds-and-overrides 1919 use the subdirs 'adds' and 'overrides' in the 1920 specified directory as add-source-root and 1921 override-source-root 1922 --with-override-langtools 1923 use this langtools dir for the build 1924 --with-override-corba use this corba dir for the build 1925 --with-override-jaxp use this jaxp dir for the build 1926 --with-override-jaxws use this jaxws dir for the build 1927 --with-override-hotspot use this hotspot dir for the build 1928 --with-override-nashorn use this nashorn dir for the build 1929 --with-override-jdk use this jdk dir for the build 1930 --with-import-hotspot import hotspot binaries from this jdk image or 1931 hotspot build dist dir instead of building from 1932 source 1933 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1934 to show possible values [platform dependent] 1935 --with-jtreg Regression Test Harness [probed] 1936 --with-extra-cflags extra flags to be used when compiling jdk c-files 1937 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1938 --with-extra-ldflags extra flags to be used when linking jdk 1939 --with-x use the X Window System 1940 --with-cups specify prefix directory for the cups package 1941 (expecting the headers under PATH/include) 1942 --with-cups-include specify directory for the cups include files 1943 --with-freetype specify prefix directory for the freetype package 1944 (expecting the libraries under PATH/lib and the 1945 headers under PATH/include) 1946 --with-freetype-include specify directory for the freetype include files 1947 --with-freetype-lib specify directory for the freetype library 1948 --with-freetype-src specify directory with freetype sources to 1949 automatically build the library (experimental, 1950 Windows-only) 1951 --with-alsa specify prefix directory for the alsa package 1952 (expecting the libraries under PATH/lib and the 1953 headers under PATH/include) 1954 --with-alsa-include specify directory for the alsa include files 1955 --with-alsa-lib specify directory for the alsa library 1956 --with-libjpeg use libjpeg from build system or OpenJDK source 1957 (system, bundled) [bundled] 1958 --with-giflib use giflib from build system or OpenJDK source 1959 (system, bundled) [bundled] 1960 --with-lcms use lcms2 from build system or OpenJDK source 1961 (system, bundled) [bundled] 1962 --with-libpng use libpng from build system or OpenJDK source 1963 (system, bundled) [bundled] 1964 --with-zlib use zlib from build system or OpenJDK source 1965 (system, bundled) [bundled] 1966 --with-stdc++lib=<static>,<dynamic>,<default> 1967 force linking of the C++ runtime on Linux to either 1968 static or dynamic, default is static with dynamic as 1969 fallback 1970 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1971 only) [probed] 1972 --with-dxsdk Deprecated. Option is kept for backwards 1973 compatibility and is ignored 1974 --with-dxsdk-lib Deprecated. Option is kept for backwards 1975 compatibility and is ignored 1976 --with-dxsdk-include Deprecated. Option is kept for backwards 1977 compatibility and is ignored 1978 --with-num-cores number of cores in the build system, e.g. 1979 --with-num-cores=8 [probed] 1980 --with-memory-size memory (in MB) available in the build system, e.g. 1981 --with-memory-size=1024 [probed] 1982 --with-jobs number of parallel jobs to let make run [calculated 1983 based on cores and memory] 1984 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1985 invocations of boot JDK, overriding the default 1986 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1987 -enableassertions" 1988 --with-sjavac-server-java 1989 use this java binary for running the sjavac 1990 background server [Boot JDK java] 1991 --with-ccache-dir where to store ccache files [~/.ccache] 1992 1993 Some influential environment variables: 1994 BASENAME Override default value for BASENAME 1995 BASH Override default value for BASH 1996 CAT Override default value for CAT 1997 CHMOD Override default value for CHMOD 1998 CMP Override default value for CMP 1999 COMM Override default value for COMM 2000 CP Override default value for CP 2001 CUT Override default value for CUT 2002 DATE Override default value for DATE 2003 DIFF Override default value for DIFF 2004 DIRNAME Override default value for DIRNAME 2005 ECHO Override default value for ECHO 2006 EXPR Override default value for EXPR 2007 FILE Override default value for FILE 2008 FIND Override default value for FIND 2009 HEAD Override default value for HEAD 2010 LN Override default value for LN 2011 LS Override default value for LS 2012 MKDIR Override default value for MKDIR 2013 MKTEMP Override default value for MKTEMP 2014 MV Override default value for MV 2015 NAWK Override default value for NAWK 2016 PRINTF Override default value for PRINTF 2017 RM Override default value for RM 2018 SH Override default value for SH 2019 SORT Override default value for SORT 2020 TAIL Override default value for TAIL 2021 TAR Override default value for TAR 2022 TEE Override default value for TEE 2023 TOUCH Override default value for TOUCH 2024 TR Override default value for TR 2025 UNAME Override default value for UNAME 2026 UNIQ Override default value for UNIQ 2027 WC Override default value for WC 2028 WHICH Override default value for WHICH 2029 XARGS Override default value for XARGS 2030 AWK Override default value for AWK 2031 GREP Override default value for GREP 2032 EGREP Override default value for EGREP 2033 FGREP Override default value for FGREP 2034 SED Override default value for SED 2035 CYGPATH Override default value for CYGPATH 2036 READLINK Override default value for READLINK 2037 DF Override default value for DF 2038 SETFILE Override default value for SETFILE 2039 CPIO Override default value for CPIO 2040 UNZIP Override default value for UNZIP 2041 ZIP Override default value for ZIP 2042 LDD Override default value for LDD 2043 OTOOL Override default value for OTOOL 2044 READELF Override default value for READELF 2045 HG Override default value for HG 2046 STAT Override default value for STAT 2047 TIME Override default value for TIME 2048 DSYMUTIL Override default value for DSYMUTIL 2049 XATTR Override default value for XATTR 2050 CODESIGN Override default value for CODESIGN 2051 PKG_CONFIG path to pkg-config utility 2052 JAVA Override default value for JAVA 2053 JAVAC Override default value for JAVAC 2054 JAVAH Override default value for JAVAH 2055 JAR Override default value for JAR 2056 NATIVE2ASCII 2057 Override default value for NATIVE2ASCII 2058 JARSIGNER Override default value for JARSIGNER 2059 CC C compiler command 2060 CFLAGS C compiler flags 2061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2062 nonstandard directory <lib dir> 2063 LIBS libraries to pass to the linker, e.g. -l<library> 2064 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2065 you have headers in a nonstandard directory <include dir> 2066 CXX C++ compiler command 2067 CXXFLAGS C++ compiler flags 2068 CPP C preprocessor 2069 CXXCPP C++ preprocessor 2070 AS Override default value for AS 2071 AR Override default value for AR 2072 OBJC Objective C compiler command 2073 OBJCFLAGS Objective C compiler flags 2074 LIPO Override default value for LIPO 2075 STRIP Override default value for STRIP 2076 NM Override default value for NM 2077 GNM Override default value for GNM 2078 MCS Override default value for MCS 2079 OBJCOPY Override default value for OBJCOPY 2080 OBJDUMP Override default value for OBJDUMP 2081 BUILD_CC Override default value for BUILD_CC 2082 BUILD_CXX Override default value for BUILD_CXX 2083 BUILD_LD Override default value for BUILD_LD 2084 JTREGEXE Override default value for JTREGEXE 2085 XMKMF Path to xmkmf, Makefile generator for X Window System 2086 FREETYPE_CFLAGS 2087 C compiler flags for FREETYPE, overriding pkg-config 2088 FREETYPE_LIBS 2089 linker flags for FREETYPE, overriding pkg-config 2090 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2091 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2092 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2093 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2094 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2095 PNG_LIBS linker flags for PNG, overriding pkg-config 2096 LIBFFI_CFLAGS 2097 C compiler flags for LIBFFI, overriding pkg-config 2098 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2099 CCACHE Override default value for CCACHE 2100 2101 Use these variables to override the choices made by `configure' or to help 2102 it to find libraries and programs with nonstandard names/locations. 2103 2104 Report bugs to <build-dev@openjdk.java.net>. 2105 OpenJDK home page: <http://openjdk.java.net>. 2106 _ACEOF 2107 ac_status=$? 2108 fi 2109 2110 if test "$ac_init_help" = "recursive"; then 2111 # If there are subdirs, report their specific --help. 2112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2113 test -d "$ac_dir" || 2114 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2115 continue 2116 ac_builddir=. 2117 2118 case "$ac_dir" in 2119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2120 *) 2121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2122 # A ".." for each directory in $ac_dir_suffix. 2123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2124 case $ac_top_builddir_sub in 2125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2127 esac ;; 2128 esac 2129 ac_abs_top_builddir=$ac_pwd 2130 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2131 # for backward compatibility: 2132 ac_top_builddir=$ac_top_build_prefix 2133 2134 case $srcdir in 2135 .) # We are building in place. 2136 ac_srcdir=. 2137 ac_top_srcdir=$ac_top_builddir_sub 2138 ac_abs_top_srcdir=$ac_pwd ;; 2139 [\\/]* | ?:[\\/]* ) # Absolute name. 2140 ac_srcdir=$srcdir$ac_dir_suffix; 2141 ac_top_srcdir=$srcdir 2142 ac_abs_top_srcdir=$srcdir ;; 2143 *) # Relative name. 2144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2145 ac_top_srcdir=$ac_top_build_prefix$srcdir 2146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2147 esac 2148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2149 2150 cd "$ac_dir" || { ac_status=$?; continue; } 2151 # Check for guested configure. 2152 if test -f "$ac_srcdir/configure.gnu"; then 2153 echo && 2154 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2155 elif test -f "$ac_srcdir/configure"; then 2156 echo && 2157 $SHELL "$ac_srcdir/configure" --help=recursive 2158 else 2159 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2160 fi || ac_status=$? 2161 cd "$ac_pwd" || { ac_status=$?; break; } 2162 done 2163 fi 2164 2165 test -n "$ac_init_help" && exit $ac_status 2166 if $ac_init_version; then 2167 cat <<\_ACEOF 2168 OpenJDK configure jdk9 2169 generated by GNU Autoconf 2.69 2170 2171 Copyright (C) 2012 Free Software Foundation, Inc. 2172 This configure script is free software; the Free Software Foundation 2173 gives unlimited permission to copy, distribute and modify it. 2174 _ACEOF 2175 exit 2176 fi 2177 2178 ## ------------------------ ## 2179 ## Autoconf initialization. ## 2180 ## ------------------------ ## 2181 2182 # ac_fn_c_try_compile LINENO 2183 # -------------------------- 2184 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2185 ac_fn_c_try_compile () 2186 { 2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2188 rm -f conftest.$ac_objext 2189 if { { ac_try="$ac_compile" 2190 case "(($ac_try" in 2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2192 *) ac_try_echo=$ac_try;; 2193 esac 2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2195 $as_echo "$ac_try_echo"; } >&5 2196 (eval "$ac_compile") 2>conftest.err 2197 ac_status=$? 2198 if test -s conftest.err; then 2199 grep -v '^ *+' conftest.err >conftest.er1 2200 cat conftest.er1 >&5 2201 mv -f conftest.er1 conftest.err 2202 fi 2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2204 test $ac_status = 0; } && { 2205 test -z "$ac_c_werror_flag" || 2206 test ! -s conftest.err 2207 } && test -s conftest.$ac_objext; then : 2208 ac_retval=0 2209 else 2210 $as_echo "$as_me: failed program was:" >&5 2211 sed 's/^/| /' conftest.$ac_ext >&5 2212 2213 ac_retval=1 2214 fi 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 as_fn_set_status $ac_retval 2217 2218 } # ac_fn_c_try_compile 2219 2220 # ac_fn_cxx_try_compile LINENO 2221 # ---------------------------- 2222 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2223 ac_fn_cxx_try_compile () 2224 { 2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2226 rm -f conftest.$ac_objext 2227 if { { ac_try="$ac_compile" 2228 case "(($ac_try" in 2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2230 *) ac_try_echo=$ac_try;; 2231 esac 2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2233 $as_echo "$ac_try_echo"; } >&5 2234 (eval "$ac_compile") 2>conftest.err 2235 ac_status=$? 2236 if test -s conftest.err; then 2237 grep -v '^ *+' conftest.err >conftest.er1 2238 cat conftest.er1 >&5 2239 mv -f conftest.er1 conftest.err 2240 fi 2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2242 test $ac_status = 0; } && { 2243 test -z "$ac_cxx_werror_flag" || 2244 test ! -s conftest.err 2245 } && test -s conftest.$ac_objext; then : 2246 ac_retval=0 2247 else 2248 $as_echo "$as_me: failed program was:" >&5 2249 sed 's/^/| /' conftest.$ac_ext >&5 2250 2251 ac_retval=1 2252 fi 2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2254 as_fn_set_status $ac_retval 2255 2256 } # ac_fn_cxx_try_compile 2257 2258 # ac_fn_c_try_cpp LINENO 2259 # ---------------------- 2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2261 ac_fn_c_try_cpp () 2262 { 2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2264 if { { ac_try="$ac_cpp conftest.$ac_ext" 2265 case "(($ac_try" in 2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2267 *) ac_try_echo=$ac_try;; 2268 esac 2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2270 $as_echo "$ac_try_echo"; } >&5 2271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2272 ac_status=$? 2273 if test -s conftest.err; then 2274 grep -v '^ *+' conftest.err >conftest.er1 2275 cat conftest.er1 >&5 2276 mv -f conftest.er1 conftest.err 2277 fi 2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2279 test $ac_status = 0; } > conftest.i && { 2280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2281 test ! -s conftest.err 2282 }; then : 2283 ac_retval=0 2284 else 2285 $as_echo "$as_me: failed program was:" >&5 2286 sed 's/^/| /' conftest.$ac_ext >&5 2287 2288 ac_retval=1 2289 fi 2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2291 as_fn_set_status $ac_retval 2292 2293 } # ac_fn_c_try_cpp 2294 2295 # ac_fn_cxx_try_cpp LINENO 2296 # ------------------------ 2297 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2298 ac_fn_cxx_try_cpp () 2299 { 2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2301 if { { ac_try="$ac_cpp conftest.$ac_ext" 2302 case "(($ac_try" in 2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2304 *) ac_try_echo=$ac_try;; 2305 esac 2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2307 $as_echo "$ac_try_echo"; } >&5 2308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2309 ac_status=$? 2310 if test -s conftest.err; then 2311 grep -v '^ *+' conftest.err >conftest.er1 2312 cat conftest.er1 >&5 2313 mv -f conftest.er1 conftest.err 2314 fi 2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2316 test $ac_status = 0; } > conftest.i && { 2317 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2318 test ! -s conftest.err 2319 }; then : 2320 ac_retval=0 2321 else 2322 $as_echo "$as_me: failed program was:" >&5 2323 sed 's/^/| /' conftest.$ac_ext >&5 2324 2325 ac_retval=1 2326 fi 2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2328 as_fn_set_status $ac_retval 2329 2330 } # ac_fn_cxx_try_cpp 2331 2332 # ac_fn_objc_try_compile LINENO 2333 # ----------------------------- 2334 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2335 ac_fn_objc_try_compile () 2336 { 2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2338 rm -f conftest.$ac_objext 2339 if { { ac_try="$ac_compile" 2340 case "(($ac_try" in 2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2342 *) ac_try_echo=$ac_try;; 2343 esac 2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2345 $as_echo "$ac_try_echo"; } >&5 2346 (eval "$ac_compile") 2>conftest.err 2347 ac_status=$? 2348 if test -s conftest.err; then 2349 grep -v '^ *+' conftest.err >conftest.er1 2350 cat conftest.er1 >&5 2351 mv -f conftest.er1 conftest.err 2352 fi 2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2354 test $ac_status = 0; } && { 2355 test -z "$ac_objc_werror_flag" || 2356 test ! -s conftest.err 2357 } && test -s conftest.$ac_objext; then : 2358 ac_retval=0 2359 else 2360 $as_echo "$as_me: failed program was:" >&5 2361 sed 's/^/| /' conftest.$ac_ext >&5 2362 2363 ac_retval=1 2364 fi 2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2366 as_fn_set_status $ac_retval 2367 2368 } # ac_fn_objc_try_compile 2369 2370 # ac_fn_c_try_link LINENO 2371 # ----------------------- 2372 # Try to link conftest.$ac_ext, and return whether this succeeded. 2373 ac_fn_c_try_link () 2374 { 2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2376 rm -f conftest.$ac_objext conftest$ac_exeext 2377 if { { ac_try="$ac_link" 2378 case "(($ac_try" in 2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2380 *) ac_try_echo=$ac_try;; 2381 esac 2382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2383 $as_echo "$ac_try_echo"; } >&5 2384 (eval "$ac_link") 2>conftest.err 2385 ac_status=$? 2386 if test -s conftest.err; then 2387 grep -v '^ *+' conftest.err >conftest.er1 2388 cat conftest.er1 >&5 2389 mv -f conftest.er1 conftest.err 2390 fi 2391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2392 test $ac_status = 0; } && { 2393 test -z "$ac_c_werror_flag" || 2394 test ! -s conftest.err 2395 } && test -s conftest$ac_exeext && { 2396 test "$cross_compiling" = yes || 2397 test -x conftest$ac_exeext 2398 }; then : 2399 ac_retval=0 2400 else 2401 $as_echo "$as_me: failed program was:" >&5 2402 sed 's/^/| /' conftest.$ac_ext >&5 2403 2404 ac_retval=1 2405 fi 2406 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2407 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2408 # interfere with the next link command; also delete a directory that is 2409 # left behind by Apple's compiler. We do this before executing the actions. 2410 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2412 as_fn_set_status $ac_retval 2413 2414 } # ac_fn_c_try_link 2415 2416 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2417 # --------------------------------------------------------- 2418 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2419 # the include files in INCLUDES and setting the cache variable VAR 2420 # accordingly. 2421 ac_fn_cxx_check_header_mongrel () 2422 { 2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2424 if eval \${$3+:} false; then : 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2426 $as_echo_n "checking for $2... " >&6; } 2427 if eval \${$3+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429 fi 2430 eval ac_res=\$$3 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2432 $as_echo "$ac_res" >&6; } 2433 else 2434 # Is the header compilable? 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2436 $as_echo_n "checking $2 usability... " >&6; } 2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2438 /* end confdefs.h. */ 2439 $4 2440 #include <$2> 2441 _ACEOF 2442 if ac_fn_cxx_try_compile "$LINENO"; then : 2443 ac_header_compiler=yes 2444 else 2445 ac_header_compiler=no 2446 fi 2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2449 $as_echo "$ac_header_compiler" >&6; } 2450 2451 # Is the header present? 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2453 $as_echo_n "checking $2 presence... " >&6; } 2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2455 /* end confdefs.h. */ 2456 #include <$2> 2457 _ACEOF 2458 if ac_fn_cxx_try_cpp "$LINENO"; then : 2459 ac_header_preproc=yes 2460 else 2461 ac_header_preproc=no 2462 fi 2463 rm -f conftest.err conftest.i conftest.$ac_ext 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2465 $as_echo "$ac_header_preproc" >&6; } 2466 2467 # So? What about this header? 2468 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2469 yes:no: ) 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2471 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2473 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2474 ;; 2475 no:yes:* ) 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2477 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2479 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2481 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2483 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2485 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2486 ( $as_echo "## ----------------------------------------- ## 2487 ## Report this to build-dev@openjdk.java.net ## 2488 ## ----------------------------------------- ##" 2489 ) | sed "s/^/$as_me: WARNING: /" >&2 2490 ;; 2491 esac 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2493 $as_echo_n "checking for $2... " >&6; } 2494 if eval \${$3+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496 else 2497 eval "$3=\$ac_header_compiler" 2498 fi 2499 eval ac_res=\$$3 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2501 $as_echo "$ac_res" >&6; } 2502 fi 2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2504 2505 } # ac_fn_cxx_check_header_mongrel 2506 2507 # ac_fn_cxx_try_run LINENO 2508 # ------------------------ 2509 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2510 # that executables *can* be run. 2511 ac_fn_cxx_try_run () 2512 { 2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2514 if { { ac_try="$ac_link" 2515 case "(($ac_try" in 2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2517 *) ac_try_echo=$ac_try;; 2518 esac 2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2520 $as_echo "$ac_try_echo"; } >&5 2521 (eval "$ac_link") 2>&5 2522 ac_status=$? 2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2524 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2525 { { case "(($ac_try" in 2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2527 *) ac_try_echo=$ac_try;; 2528 esac 2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2530 $as_echo "$ac_try_echo"; } >&5 2531 (eval "$ac_try") 2>&5 2532 ac_status=$? 2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2534 test $ac_status = 0; }; }; then : 2535 ac_retval=0 2536 else 2537 $as_echo "$as_me: program exited with status $ac_status" >&5 2538 $as_echo "$as_me: failed program was:" >&5 2539 sed 's/^/| /' conftest.$ac_ext >&5 2540 2541 ac_retval=$ac_status 2542 fi 2543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2545 as_fn_set_status $ac_retval 2546 2547 } # ac_fn_cxx_try_run 2548 2549 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2550 # --------------------------------------------------------- 2551 # Tests whether HEADER exists and can be compiled using the include files in 2552 # INCLUDES, setting the cache variable VAR accordingly. 2553 ac_fn_cxx_check_header_compile () 2554 { 2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2557 $as_echo_n "checking for $2... " >&6; } 2558 if eval \${$3+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560 else 2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2562 /* end confdefs.h. */ 2563 $4 2564 #include <$2> 2565 _ACEOF 2566 if ac_fn_cxx_try_compile "$LINENO"; then : 2567 eval "$3=yes" 2568 else 2569 eval "$3=no" 2570 fi 2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2572 fi 2573 eval ac_res=\$$3 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2575 $as_echo "$ac_res" >&6; } 2576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2577 2578 } # ac_fn_cxx_check_header_compile 2579 2580 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2581 # ---------------------------------------------- 2582 # Tries to find the compile-time value of EXPR in a program that includes 2583 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2584 # computed 2585 ac_fn_cxx_compute_int () 2586 { 2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2588 if test "$cross_compiling" = yes; then 2589 # Depending upon the size, compute the lo and hi bounds. 2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2591 /* end confdefs.h. */ 2592 $4 2593 int 2594 main () 2595 { 2596 static int test_array [1 - 2 * !(($2) >= 0)]; 2597 test_array [0] = 0; 2598 return test_array [0]; 2599 2600 ; 2601 return 0; 2602 } 2603 _ACEOF 2604 if ac_fn_cxx_try_compile "$LINENO"; then : 2605 ac_lo=0 ac_mid=0 2606 while :; do 2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2608 /* end confdefs.h. */ 2609 $4 2610 int 2611 main () 2612 { 2613 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2614 test_array [0] = 0; 2615 return test_array [0]; 2616 2617 ; 2618 return 0; 2619 } 2620 _ACEOF 2621 if ac_fn_cxx_try_compile "$LINENO"; then : 2622 ac_hi=$ac_mid; break 2623 else 2624 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2625 if test $ac_lo -le $ac_mid; then 2626 ac_lo= ac_hi= 2627 break 2628 fi 2629 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2630 fi 2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2632 done 2633 else 2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2635 /* end confdefs.h. */ 2636 $4 2637 int 2638 main () 2639 { 2640 static int test_array [1 - 2 * !(($2) < 0)]; 2641 test_array [0] = 0; 2642 return test_array [0]; 2643 2644 ; 2645 return 0; 2646 } 2647 _ACEOF 2648 if ac_fn_cxx_try_compile "$LINENO"; then : 2649 ac_hi=-1 ac_mid=-1 2650 while :; do 2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2652 /* end confdefs.h. */ 2653 $4 2654 int 2655 main () 2656 { 2657 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2658 test_array [0] = 0; 2659 return test_array [0]; 2660 2661 ; 2662 return 0; 2663 } 2664 _ACEOF 2665 if ac_fn_cxx_try_compile "$LINENO"; then : 2666 ac_lo=$ac_mid; break 2667 else 2668 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2669 if test $ac_mid -le $ac_hi; then 2670 ac_lo= ac_hi= 2671 break 2672 fi 2673 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2674 fi 2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2676 done 2677 else 2678 ac_lo= ac_hi= 2679 fi 2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2681 fi 2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2683 # Binary search between lo and hi bounds. 2684 while test "x$ac_lo" != "x$ac_hi"; do 2685 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687 /* end confdefs.h. */ 2688 $4 2689 int 2690 main () 2691 { 2692 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2693 test_array [0] = 0; 2694 return test_array [0]; 2695 2696 ; 2697 return 0; 2698 } 2699 _ACEOF 2700 if ac_fn_cxx_try_compile "$LINENO"; then : 2701 ac_hi=$ac_mid 2702 else 2703 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2704 fi 2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2706 done 2707 case $ac_lo in #(( 2708 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2709 '') ac_retval=1 ;; 2710 esac 2711 else 2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2713 /* end confdefs.h. */ 2714 $4 2715 static long int longval () { return $2; } 2716 static unsigned long int ulongval () { return $2; } 2717 #include <stdio.h> 2718 #include <stdlib.h> 2719 int 2720 main () 2721 { 2722 2723 FILE *f = fopen ("conftest.val", "w"); 2724 if (! f) 2725 return 1; 2726 if (($2) < 0) 2727 { 2728 long int i = longval (); 2729 if (i != ($2)) 2730 return 1; 2731 fprintf (f, "%ld", i); 2732 } 2733 else 2734 { 2735 unsigned long int i = ulongval (); 2736 if (i != ($2)) 2737 return 1; 2738 fprintf (f, "%lu", i); 2739 } 2740 /* Do not output a trailing newline, as this causes \r\n confusion 2741 on some platforms. */ 2742 return ferror (f) || fclose (f) != 0; 2743 2744 ; 2745 return 0; 2746 } 2747 _ACEOF 2748 if ac_fn_cxx_try_run "$LINENO"; then : 2749 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2750 else 2751 ac_retval=1 2752 fi 2753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2754 conftest.$ac_objext conftest.beam conftest.$ac_ext 2755 rm -f conftest.val 2756 2757 fi 2758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2759 as_fn_set_status $ac_retval 2760 2761 } # ac_fn_cxx_compute_int 2762 2763 # ac_fn_cxx_try_link LINENO 2764 # ------------------------- 2765 # Try to link conftest.$ac_ext, and return whether this succeeded. 2766 ac_fn_cxx_try_link () 2767 { 2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2769 rm -f conftest.$ac_objext conftest$ac_exeext 2770 if { { ac_try="$ac_link" 2771 case "(($ac_try" in 2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2773 *) ac_try_echo=$ac_try;; 2774 esac 2775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2776 $as_echo "$ac_try_echo"; } >&5 2777 (eval "$ac_link") 2>conftest.err 2778 ac_status=$? 2779 if test -s conftest.err; then 2780 grep -v '^ *+' conftest.err >conftest.er1 2781 cat conftest.er1 >&5 2782 mv -f conftest.er1 conftest.err 2783 fi 2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2785 test $ac_status = 0; } && { 2786 test -z "$ac_cxx_werror_flag" || 2787 test ! -s conftest.err 2788 } && test -s conftest$ac_exeext && { 2789 test "$cross_compiling" = yes || 2790 test -x conftest$ac_exeext 2791 }; then : 2792 ac_retval=0 2793 else 2794 $as_echo "$as_me: failed program was:" >&5 2795 sed 's/^/| /' conftest.$ac_ext >&5 2796 2797 ac_retval=1 2798 fi 2799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2801 # interfere with the next link command; also delete a directory that is 2802 # left behind by Apple's compiler. We do this before executing the actions. 2803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2805 as_fn_set_status $ac_retval 2806 2807 } # ac_fn_cxx_try_link 2808 2809 # ac_fn_cxx_check_func LINENO FUNC VAR 2810 # ------------------------------------ 2811 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2812 ac_fn_cxx_check_func () 2813 { 2814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2816 $as_echo_n "checking for $2... " >&6; } 2817 if eval \${$3+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819 else 2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2821 /* end confdefs.h. */ 2822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2823 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2824 #define $2 innocuous_$2 2825 2826 /* System header to define __stub macros and hopefully few prototypes, 2827 which can conflict with char $2 (); below. 2828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2829 <limits.h> exists even on freestanding compilers. */ 2830 2831 #ifdef __STDC__ 2832 # include <limits.h> 2833 #else 2834 # include <assert.h> 2835 #endif 2836 2837 #undef $2 2838 2839 /* Override any GCC internal prototype to avoid an error. 2840 Use char because int might match the return type of a GCC 2841 builtin and then its argument prototype would still apply. */ 2842 #ifdef __cplusplus 2843 extern "C" 2844 #endif 2845 char $2 (); 2846 /* The GNU C library defines this for functions which it implements 2847 to always fail with ENOSYS. Some functions are actually named 2848 something starting with __ and the normal name is an alias. */ 2849 #if defined __stub_$2 || defined __stub___$2 2850 choke me 2851 #endif 2852 2853 int 2854 main () 2855 { 2856 return $2 (); 2857 ; 2858 return 0; 2859 } 2860 _ACEOF 2861 if ac_fn_cxx_try_link "$LINENO"; then : 2862 eval "$3=yes" 2863 else 2864 eval "$3=no" 2865 fi 2866 rm -f core conftest.err conftest.$ac_objext \ 2867 conftest$ac_exeext conftest.$ac_ext 2868 fi 2869 eval ac_res=\$$3 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2871 $as_echo "$ac_res" >&6; } 2872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2873 2874 } # ac_fn_cxx_check_func 2875 2876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2877 # ------------------------------------------------------- 2878 # Tests whether HEADER exists and can be compiled using the include files in 2879 # INCLUDES, setting the cache variable VAR accordingly. 2880 ac_fn_c_check_header_compile () 2881 { 2882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2884 $as_echo_n "checking for $2... " >&6; } 2885 if eval \${$3+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887 else 2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2889 /* end confdefs.h. */ 2890 $4 2891 #include <$2> 2892 _ACEOF 2893 if ac_fn_c_try_compile "$LINENO"; then : 2894 eval "$3=yes" 2895 else 2896 eval "$3=no" 2897 fi 2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2899 fi 2900 eval ac_res=\$$3 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2902 $as_echo "$ac_res" >&6; } 2903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2904 2905 } # ac_fn_c_check_header_compile 2906 cat >config.log <<_ACEOF 2907 This file contains any messages produced by compilers while 2908 running configure, to aid debugging if configure makes a mistake. 2909 2910 It was created by OpenJDK $as_me jdk9, which was 2911 generated by GNU Autoconf 2.69. Invocation command line was 2912 2913 $ $0 $@ 2914 2915 _ACEOF 2916 exec 5>>config.log 2917 { 2918 cat <<_ASUNAME 2919 ## --------- ## 2920 ## Platform. ## 2921 ## --------- ## 2922 2923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2924 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2925 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2926 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2927 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2928 2929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2931 2932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2939 2940 _ASUNAME 2941 2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2943 for as_dir in $PATH 2944 do 2945 IFS=$as_save_IFS 2946 test -z "$as_dir" && as_dir=. 2947 $as_echo "PATH: $as_dir" 2948 done 2949 IFS=$as_save_IFS 2950 2951 } >&5 2952 2953 cat >&5 <<_ACEOF 2954 2955 2956 ## ----------- ## 2957 ## Core tests. ## 2958 ## ----------- ## 2959 2960 _ACEOF 2961 2962 2963 # Keep a trace of the command line. 2964 # Strip out --no-create and --no-recursion so they do not pile up. 2965 # Strip out --silent because we don't want to record it for future runs. 2966 # Also quote any args containing shell meta-characters. 2967 # Make two passes to allow for proper duplicate-argument suppression. 2968 ac_configure_args= 2969 ac_configure_args0= 2970 ac_configure_args1= 2971 ac_must_keep_next=false 2972 for ac_pass in 1 2 2973 do 2974 for ac_arg 2975 do 2976 case $ac_arg in 2977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2979 | -silent | --silent | --silen | --sile | --sil) 2980 continue ;; 2981 *\'*) 2982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2983 esac 2984 case $ac_pass in 2985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2986 2) 2987 as_fn_append ac_configure_args1 " '$ac_arg'" 2988 if test $ac_must_keep_next = true; then 2989 ac_must_keep_next=false # Got value, back to normal. 2990 else 2991 case $ac_arg in 2992 *=* | --config-cache | -C | -disable-* | --disable-* \ 2993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2995 | -with-* | --with-* | -without-* | --without-* | --x) 2996 case "$ac_configure_args0 " in 2997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2998 esac 2999 ;; 3000 -* ) ac_must_keep_next=true ;; 3001 esac 3002 fi 3003 as_fn_append ac_configure_args " '$ac_arg'" 3004 ;; 3005 esac 3006 done 3007 done 3008 { ac_configure_args0=; unset ac_configure_args0;} 3009 { ac_configure_args1=; unset ac_configure_args1;} 3010 3011 # When interrupted or exit'd, cleanup temporary files, and complete 3012 # config.log. We remove comments because anyway the quotes in there 3013 # would cause problems or look ugly. 3014 # WARNING: Use '\'' to represent an apostrophe within the trap. 3015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3016 trap 'exit_status=$? 3017 # Save into config.log some information that might help in debugging. 3018 { 3019 echo 3020 3021 $as_echo "## ---------------- ## 3022 ## Cache variables. ## 3023 ## ---------------- ##" 3024 echo 3025 # The following way of writing the cache mishandles newlines in values, 3026 ( 3027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3028 eval ac_val=\$$ac_var 3029 case $ac_val in #( 3030 *${as_nl}*) 3031 case $ac_var in #( 3032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3034 esac 3035 case $ac_var in #( 3036 _ | IFS | as_nl) ;; #( 3037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3038 *) { eval $ac_var=; unset $ac_var;} ;; 3039 esac ;; 3040 esac 3041 done 3042 (set) 2>&1 | 3043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3044 *${as_nl}ac_space=\ *) 3045 sed -n \ 3046 "s/'\''/'\''\\\\'\'''\''/g; 3047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3048 ;; #( 3049 *) 3050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3051 ;; 3052 esac | 3053 sort 3054 ) 3055 echo 3056 3057 $as_echo "## ----------------- ## 3058 ## Output variables. ## 3059 ## ----------------- ##" 3060 echo 3061 for ac_var in $ac_subst_vars 3062 do 3063 eval ac_val=\$$ac_var 3064 case $ac_val in 3065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3066 esac 3067 $as_echo "$ac_var='\''$ac_val'\''" 3068 done | sort 3069 echo 3070 3071 if test -n "$ac_subst_files"; then 3072 $as_echo "## ------------------- ## 3073 ## File substitutions. ## 3074 ## ------------------- ##" 3075 echo 3076 for ac_var in $ac_subst_files 3077 do 3078 eval ac_val=\$$ac_var 3079 case $ac_val in 3080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3081 esac 3082 $as_echo "$ac_var='\''$ac_val'\''" 3083 done | sort 3084 echo 3085 fi 3086 3087 if test -s confdefs.h; then 3088 $as_echo "## ----------- ## 3089 ## confdefs.h. ## 3090 ## ----------- ##" 3091 echo 3092 cat confdefs.h 3093 echo 3094 fi 3095 test "$ac_signal" != 0 && 3096 $as_echo "$as_me: caught signal $ac_signal" 3097 $as_echo "$as_me: exit $exit_status" 3098 } >&5 3099 rm -f core *.core core.conftest.* && 3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3101 exit $exit_status 3102 ' 0 3103 for ac_signal in 1 2 13 15; do 3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3105 done 3106 ac_signal=0 3107 3108 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3109 rm -f -r conftest* confdefs.h 3110 3111 $as_echo "/* confdefs.h */" > confdefs.h 3112 3113 # Predefined preprocessor variables. 3114 3115 cat >>confdefs.h <<_ACEOF 3116 #define PACKAGE_NAME "$PACKAGE_NAME" 3117 _ACEOF 3118 3119 cat >>confdefs.h <<_ACEOF 3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3121 _ACEOF 3122 3123 cat >>confdefs.h <<_ACEOF 3124 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3125 _ACEOF 3126 3127 cat >>confdefs.h <<_ACEOF 3128 #define PACKAGE_STRING "$PACKAGE_STRING" 3129 _ACEOF 3130 3131 cat >>confdefs.h <<_ACEOF 3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3133 _ACEOF 3134 3135 cat >>confdefs.h <<_ACEOF 3136 #define PACKAGE_URL "$PACKAGE_URL" 3137 _ACEOF 3138 3139 3140 # Let the site file select an alternate cache file if it wants to. 3141 # Prefer an explicitly selected file to automatically selected ones. 3142 ac_site_file1=NONE 3143 ac_site_file2=NONE 3144 if test -n "$CONFIG_SITE"; then 3145 # We do not want a PATH search for config.site. 3146 case $CONFIG_SITE in #(( 3147 -*) ac_site_file1=./$CONFIG_SITE;; 3148 */*) ac_site_file1=$CONFIG_SITE;; 3149 *) ac_site_file1=./$CONFIG_SITE;; 3150 esac 3151 elif test "x$prefix" != xNONE; then 3152 ac_site_file1=$prefix/share/config.site 3153 ac_site_file2=$prefix/etc/config.site 3154 else 3155 ac_site_file1=$ac_default_prefix/share/config.site 3156 ac_site_file2=$ac_default_prefix/etc/config.site 3157 fi 3158 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3159 do 3160 test "x$ac_site_file" = xNONE && continue 3161 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3163 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3164 sed 's/^/| /' "$ac_site_file" >&5 3165 . "$ac_site_file" \ 3166 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168 as_fn_error $? "failed to load site script $ac_site_file 3169 See \`config.log' for more details" "$LINENO" 5; } 3170 fi 3171 done 3172 3173 if test -r "$cache_file"; then 3174 # Some versions of bash will fail to source /dev/null (special files 3175 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3178 $as_echo "$as_me: loading cache $cache_file" >&6;} 3179 case $cache_file in 3180 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3181 *) . "./$cache_file";; 3182 esac 3183 fi 3184 else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3186 $as_echo "$as_me: creating cache $cache_file" >&6;} 3187 >$cache_file 3188 fi 3189 3190 # Check that the precious variables saved in the cache have kept the same 3191 # value. 3192 ac_cache_corrupted=false 3193 for ac_var in $ac_precious_vars; do 3194 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3195 eval ac_new_set=\$ac_env_${ac_var}_set 3196 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3197 eval ac_new_val=\$ac_env_${ac_var}_value 3198 case $ac_old_set,$ac_new_set in 3199 set,) 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3202 ac_cache_corrupted=: ;; 3203 ,set) 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3206 ac_cache_corrupted=: ;; 3207 ,);; 3208 *) 3209 if test "x$ac_old_val" != "x$ac_new_val"; then 3210 # differences in whitespace do not lead to failure. 3211 ac_old_val_w=`echo x $ac_old_val` 3212 ac_new_val_w=`echo x $ac_new_val` 3213 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3216 ac_cache_corrupted=: 3217 else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3220 eval $ac_var=\$ac_old_val 3221 fi 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3223 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3225 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3226 fi;; 3227 esac 3228 # Pass precious variables to config.status. 3229 if test "$ac_new_set" = set; then 3230 case $ac_new_val in 3231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3232 *) ac_arg=$ac_var=$ac_new_val ;; 3233 esac 3234 case " $ac_configure_args " in 3235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3236 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3237 esac 3238 fi 3239 done 3240 if $ac_cache_corrupted; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3246 fi 3247 ## -------------------- ## 3248 ## Main body of script. ## 3249 ## -------------------- ## 3250 3251 ac_ext=c 3252 ac_cpp='$CPP $CPPFLAGS' 3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3256 3257 3258 3259 ac_aux_dir= 3260 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3261 if test -f "$ac_dir/install-sh"; then 3262 ac_aux_dir=$ac_dir 3263 ac_install_sh="$ac_aux_dir/install-sh -c" 3264 break 3265 elif test -f "$ac_dir/install.sh"; then 3266 ac_aux_dir=$ac_dir 3267 ac_install_sh="$ac_aux_dir/install.sh -c" 3268 break 3269 elif test -f "$ac_dir/shtool"; then 3270 ac_aux_dir=$ac_dir 3271 ac_install_sh="$ac_aux_dir/shtool install -c" 3272 break 3273 fi 3274 done 3275 if test -z "$ac_aux_dir"; then 3276 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 3277 fi 3278 3279 # These three variables are undocumented and unsupported, 3280 # and are intended to be withdrawn in a future Autoconf release. 3281 # They can cause serious problems if a builder's source tree is in a directory 3282 # whose full name contains unusual characters. 3283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3286 3287 3288 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3289 3290 # 3291 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3292 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3293 # 3294 # This code is free software; you can redistribute it and/or modify it 3295 # under the terms of the GNU General Public License version 2 only, as 3296 # published by the Free Software Foundation. Oracle designates this 3297 # particular file as subject to the "Classpath" exception as provided 3298 # by Oracle in the LICENSE file that accompanied this code. 3299 # 3300 # This code is distributed in the hope that it will be useful, but WITHOUT 3301 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3302 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3303 # version 2 for more details (a copy is included in the LICENSE file that 3304 # accompanied this code). 3305 # 3306 # You should have received a copy of the GNU General Public License version 3307 # 2 along with this work; if not, write to the Free Software Foundation, 3308 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3309 # 3310 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3311 # or visit www.oracle.com if you need additional information or have any 3312 # questions. 3313 # 3314 3315 # 3316 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3317 # 3318 # This program is free software; you can redistribute it and/or modify 3319 # it under the terms of the GNU General Public License as published by 3320 # the Free Software Foundation; either version 2 of the License, or 3321 # (at your option) any later version. 3322 # 3323 # This program is distributed in the hope that it will be useful, but 3324 # WITHOUT ANY WARRANTY; without even the implied warranty of 3325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3326 # General Public License for more details. 3327 # 3328 # You should have received a copy of the GNU General Public License 3329 # along with this program; if not, write to the Free Software 3330 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3331 # 3332 # As a special exception to the GNU General Public License, if you 3333 # distribute this file as part of a program that contains a 3334 # configuration script generated by Autoconf, you may include it under 3335 # the same distribution terms that you use for the rest of that program. 3336 3337 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3338 # ---------------------------------- 3339 # PKG_PROG_PKG_CONFIG 3340 3341 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3342 # 3343 # Check to see whether a particular set of modules exists. Similar 3344 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3345 # 3346 # 3347 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3348 # this or PKG_CHECK_MODULES is called, or make sure to call 3349 # PKG_CHECK_EXISTS manually 3350 # -------------------------------------------------------------- 3351 3352 3353 3354 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3355 # --------------------------------------------- 3356 # _PKG_CONFIG 3357 3358 # _PKG_SHORT_ERRORS_SUPPORTED 3359 # ----------------------------- 3360 # _PKG_SHORT_ERRORS_SUPPORTED 3361 3362 3363 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3364 # [ACTION-IF-NOT-FOUND]) 3365 # 3366 # 3367 # Note that if there is a possibility the first call to 3368 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3369 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3370 # 3371 # 3372 # -------------------------------------------------------------- 3373 # PKG_CHECK_MODULES 3374 3375 3376 # Include these first... 3377 # 3378 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3379 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3380 # 3381 # This code is free software; you can redistribute it and/or modify it 3382 # under the terms of the GNU General Public License version 2 only, as 3383 # published by the Free Software Foundation. Oracle designates this 3384 # particular file as subject to the "Classpath" exception as provided 3385 # by Oracle in the LICENSE file that accompanied this code. 3386 # 3387 # This code is distributed in the hope that it will be useful, but WITHOUT 3388 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3389 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3390 # version 2 for more details (a copy is included in the LICENSE file that 3391 # accompanied this code). 3392 # 3393 # You should have received a copy of the GNU General Public License version 3394 # 2 along with this work; if not, write to the Free Software Foundation, 3395 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3396 # 3397 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3398 # or visit www.oracle.com if you need additional information or have any 3399 # questions. 3400 # 3401 3402 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3403 # If so, then append $1 to $2 \ 3404 # Also set JVM_ARG_OK to true/false depending on outcome. 3405 3406 3407 # Appends a string to a path variable, only adding the : when needed. 3408 3409 3410 # Prepends a string to a path variable, only adding the : when needed. 3411 3412 3413 # This will make sure the given variable points to a full and proper 3414 # path. This means: 3415 # 1) There will be no spaces in the path. On unix platforms, 3416 # spaces in the path will result in an error. On Windows, 3417 # the path will be rewritten using short-style to be space-free. 3418 # 2) The path will be absolute, and it will be in unix-style (on 3419 # cygwin). 3420 # $1: The name of the variable to fix 3421 3422 3423 # This will make sure the given variable points to a executable 3424 # with a full and proper path. This means: 3425 # 1) There will be no spaces in the path. On unix platforms, 3426 # spaces in the path will result in an error. On Windows, 3427 # the path will be rewritten using short-style to be space-free. 3428 # 2) The path will be absolute, and it will be in unix-style (on 3429 # cygwin). 3430 # Any arguments given to the executable is preserved. 3431 # If the input variable does not have a directory specification, then 3432 # it need to be in the PATH. 3433 # $1: The name of the variable to fix 3434 3435 3436 3437 3438 # Register a --with argument but mark it as deprecated 3439 # $1: The name of the with argument to deprecate, not including --with- 3440 3441 3442 # Register a --enable argument but mark it as deprecated 3443 # $1: The name of the with argument to deprecate, not including --enable- 3444 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3445 3446 3447 3448 3449 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3450 # $1: variable to check 3451 3452 3453 # Check that there are no unprocessed overridden variables left. 3454 # If so, they are an incorrect argument and we will exit with an error. 3455 3456 3457 # Setup a tool for the given variable. If correctly specified by the user, 3458 # use that value, otherwise search for the tool using the supplied code snippet. 3459 # $1: variable to set 3460 # $2: code snippet to call to look for the tool 3461 3462 3463 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3464 # $1: variable to set 3465 # $2: executable name (or list of names) to look for 3466 3467 3468 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3469 # $1: variable to set 3470 # $2: executable name (or list of names) to look for 3471 3472 3473 # Like BASIC_PATH_PROGS but fails if no tool was found. 3474 # $1: variable to set 3475 # $2: executable name (or list of names) to look for 3476 3477 3478 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3479 # $1: variable to set 3480 # $2: autoconf macro to call to look for the special tool 3481 3482 3483 # Setup the most fundamental tools that relies on not much else to set up, 3484 # but is used by much of the early bootstrap code. 3485 3486 3487 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 #%%% Simple tools %%% 3498 3499 # Check if we have found a usable version of make 3500 # $1: the path to a potential make binary (or empty) 3501 # $2: the description on how we found this 3502 3503 3504 3505 3506 # Goes looking for a usable version of GNU make. 3507 3508 3509 3510 3511 3512 3513 # Check if build directory is on local disk. If not possible to determine, 3514 # we prefer to claim it's local. 3515 # Argument 1: directory to test 3516 # Argument 2: what to do if it is on local disk 3517 # Argument 3: what to do otherwise (remote disk or failure) 3518 3519 3520 # Check that source files have basic read permissions set. This might 3521 # not be the case in cygwin in certain conditions. 3522 3523 3524 3525 3526 # 3527 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3528 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3529 # 3530 # This code is free software; you can redistribute it and/or modify it 3531 # under the terms of the GNU General Public License version 2 only, as 3532 # published by the Free Software Foundation. Oracle designates this 3533 # particular file as subject to the "Classpath" exception as provided 3534 # by Oracle in the LICENSE file that accompanied this code. 3535 # 3536 # This code is distributed in the hope that it will be useful, but WITHOUT 3537 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3538 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3539 # version 2 for more details (a copy is included in the LICENSE file that 3540 # accompanied this code). 3541 # 3542 # You should have received a copy of the GNU General Public License version 3543 # 2 along with this work; if not, write to the Free Software Foundation, 3544 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3545 # 3546 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3547 # or visit www.oracle.com if you need additional information or have any 3548 # questions. 3549 # 3550 3551 3552 3553 3554 3555 # Helper function which possibly converts a path using DOS-style short mode. 3556 # If so, the updated path is stored in $new_path. 3557 # $1: The path to check 3558 3559 3560 # Helper function which possibly converts a path using DOS-style short mode. 3561 # If so, the updated path is stored in $new_path. 3562 # $1: The path to check 3563 3564 3565 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3566 # and could probably be heavily simplified. However, all changes in this 3567 # area tend to need lot of testing in different scenarios, and in lack of 3568 # proper unit testing, cleaning this up has not been deemed worth the effort 3569 # at the moment. 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3580 3581 3582 3583 3584 # 3585 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3586 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3587 # 3588 # This code is free software; you can redistribute it and/or modify it 3589 # under the terms of the GNU General Public License version 2 only, as 3590 # published by the Free Software Foundation. Oracle designates this 3591 # particular file as subject to the "Classpath" exception as provided 3592 # by Oracle in the LICENSE file that accompanied this code. 3593 # 3594 # This code is distributed in the hope that it will be useful, but WITHOUT 3595 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3596 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3597 # version 2 for more details (a copy is included in the LICENSE file that 3598 # accompanied this code). 3599 # 3600 # You should have received a copy of the GNU General Public License version 3601 # 2 along with this work; if not, write to the Free Software Foundation, 3602 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3603 # 3604 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3605 # or visit www.oracle.com if you need additional information or have any 3606 # questions. 3607 # 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 # ... then the rest 3620 # 3621 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3622 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3623 # 3624 # This code is free software; you can redistribute it and/or modify it 3625 # under the terms of the GNU General Public License version 2 only, as 3626 # published by the Free Software Foundation. Oracle designates this 3627 # particular file as subject to the "Classpath" exception as provided 3628 # by Oracle in the LICENSE file that accompanied this code. 3629 # 3630 # This code is distributed in the hope that it will be useful, but WITHOUT 3631 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3632 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3633 # version 2 for more details (a copy is included in the LICENSE file that 3634 # accompanied this code). 3635 # 3636 # You should have received a copy of the GNU General Public License version 3637 # 2 along with this work; if not, write to the Free Software Foundation, 3638 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3639 # 3640 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3641 # or visit www.oracle.com if you need additional information or have any 3642 # questions. 3643 # 3644 3645 ######################################################################## 3646 # This file handles detection of the Boot JDK. The Boot JDK detection 3647 # process has been developed as a response to solve a complex real-world 3648 # problem. Initially, it was simple, but it has grown as platform after 3649 # platform, idiosyncracy after idiosyncracy has been supported. 3650 # 3651 # The basic idea is this: 3652 # 1) You need an acceptable *) JDK to use as a Boot JDK 3653 # 2) There are several ways to locate a JDK, that are mostly platform 3654 # dependent **) 3655 # 3) You can have multiple JDKs installed 3656 # 4) If possible, configure should try to dig out an acceptable JDK 3657 # automatically, without having to resort to command-line options 3658 # 3659 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3660 # javac) and not a JRE, etc. 3661 # 3662 # **) On Windows we typically use a well-known path. 3663 # On MacOSX we typically use the tool java_home. 3664 # On Linux we typically find javac in the $PATH, and then follow a 3665 # chain of symlinks that often ends up in a real JDK. 3666 # 3667 # This leads to the code where we check in different ways to locate a 3668 # JDK, and if one is found, check if it is acceptable. If not, we print 3669 # our reasons for rejecting it (useful when debugging non-working 3670 # configure situations) and continue checking the next one. 3671 ######################################################################## 3672 3673 # Execute the check given as argument, and verify the result 3674 # If the Boot JDK was previously found, do nothing 3675 # $1 A command line (typically autoconf macro) to execute 3676 3677 3678 # Test: Is bootjdk explicitely set by command line arguments? 3679 3680 3681 # Test: Is bootjdk available from builddeps? 3682 3683 3684 # Test: Is $JAVA_HOME set? 3685 3686 3687 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3688 3689 3690 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3691 # $1: Argument to the java_home binary (optional) 3692 3693 3694 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3695 3696 3697 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3698 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3699 # $1 = Path to directory containing jdk installations. 3700 # $2 = String to append to the found JDK directory to get the proper JDK home 3701 3702 3703 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3704 # environmental variable as base for where to look. 3705 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3706 3707 3708 # Test: Is there a JDK installed in default, well-known locations? 3709 3710 3711 # Check that a command-line tool in the Boot JDK is correct 3712 # $1 = name of variable to assign 3713 # $2 = name of binary 3714 3715 3716 ############################################################################### 3717 # 3718 # We need a Boot JDK to bootstrap the build. 3719 # 3720 3721 3722 3723 3724 3725 # 3726 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3727 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3728 # 3729 # This code is free software; you can redistribute it and/or modify it 3730 # under the terms of the GNU General Public License version 2 only, as 3731 # published by the Free Software Foundation. Oracle designates this 3732 # particular file as subject to the "Classpath" exception as provided 3733 # by Oracle in the LICENSE file that accompanied this code. 3734 # 3735 # This code is distributed in the hope that it will be useful, but WITHOUT 3736 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3737 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3738 # version 2 for more details (a copy is included in the LICENSE file that 3739 # accompanied this code). 3740 # 3741 # You should have received a copy of the GNU General Public License version 3742 # 2 along with this work; if not, write to the Free Software Foundation, 3743 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3744 # 3745 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3746 # or visit www.oracle.com if you need additional information or have any 3747 # questions. 3748 # 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 # 3770 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3771 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3772 # 3773 # This code is free software; you can redistribute it and/or modify it 3774 # under the terms of the GNU General Public License version 2 only, as 3775 # published by the Free Software Foundation. Oracle designates this 3776 # particular file as subject to the "Classpath" exception as provided 3777 # by Oracle in the LICENSE file that accompanied this code. 3778 # 3779 # This code is distributed in the hope that it will be useful, but WITHOUT 3780 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3781 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3782 # version 2 for more details (a copy is included in the LICENSE file that 3783 # accompanied this code). 3784 # 3785 # You should have received a copy of the GNU General Public License version 3786 # 2 along with this work; if not, write to the Free Software Foundation, 3787 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3788 # 3789 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3790 # or visit www.oracle.com if you need additional information or have any 3791 # questions. 3792 # 3793 3794 3795 3796 3797 3798 # Documentation on common flags used for solstudio in HIGHEST. 3799 # 3800 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3801 # done with care, there are some assumptions below that need to 3802 # be understood about the use of pointers, and IEEE behavior. 3803 # 3804 # -fns: Use non-standard floating point mode (not IEEE 754) 3805 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3806 # -fsingle: Use single precision floating point with 'float' 3807 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3808 # (Source with excessing pointer casting and data access with mixed 3809 # pointer types are not recommended) 3810 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3811 # (If you expect perfect errno behavior, do not use this) 3812 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3813 # -xrestrict: Pointer parameters to functions do not overlap 3814 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3815 # If you pass in multiple pointers to the same data, do not use this) 3816 # -xlibmil: Inline some library routines 3817 # (If you expect perfect errno behavior, do not use this) 3818 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3819 # (If you expect perfect errno behavior, do not use this) 3820 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3821 3822 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3823 # Bug? 3824 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3825 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3826 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3827 #fi 3828 3829 3830 3831 3832 3833 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3834 # [RUN-IF-FALSE]) 3835 # ------------------------------------------------------------ 3836 # Check that the c and c++ compilers support an argument 3837 3838 3839 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3840 # [RUN-IF-FALSE]) 3841 # ------------------------------------------------------------ 3842 # Check that the linker support an argument 3843 3844 3845 3846 3847 # 3848 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3849 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3850 # 3851 # This code is free software; you can redistribute it and/or modify it 3852 # under the terms of the GNU General Public License version 2 only, as 3853 # published by the Free Software Foundation. Oracle designates this 3854 # particular file as subject to the "Classpath" exception as provided 3855 # by Oracle in the LICENSE file that accompanied this code. 3856 # 3857 # This code is distributed in the hope that it will be useful, but WITHOUT 3858 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3859 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3860 # version 2 for more details (a copy is included in the LICENSE file that 3861 # accompanied this code). 3862 # 3863 # You should have received a copy of the GNU General Public License version 3864 # 2 along with this work; if not, write to the Free Software Foundation, 3865 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3866 # 3867 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3868 # or visit www.oracle.com if you need additional information or have any 3869 # questions. 3870 # 3871 3872 3873 3874 3875 3876 cygwin_help() { 3877 case $1 in 3878 unzip) 3879 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3880 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3881 ;; 3882 zip) 3883 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3884 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3885 ;; 3886 make) 3887 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3888 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3889 ;; 3890 freetype) 3891 HELP_MSG=" 3892 The freetype library can now be build during the configure process. 3893 Download the freetype sources and unpack them into an arbitrary directory: 3894 3895 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3896 tar -xzf freetype-2.5.3.tar.gz 3897 3898 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3899 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3900 builds or into '<freetype_src>/lib32' for 32-bit builds. 3901 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3902 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3903 ;; 3904 esac 3905 } 3906 3907 msys_help() { 3908 PKGHANDLER_COMMAND="" 3909 } 3910 3911 apt_help() { 3912 case $1 in 3913 devkit) 3914 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3915 openjdk) 3916 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3917 alsa) 3918 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3919 cups) 3920 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3921 freetype) 3922 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3923 pulse) 3924 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3925 x11) 3926 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3927 ccache) 3928 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3929 esac 3930 } 3931 3932 yum_help() { 3933 case $1 in 3934 devkit) 3935 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3936 openjdk) 3937 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3938 alsa) 3939 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3940 cups) 3941 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3942 freetype) 3943 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3944 pulse) 3945 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3946 x11) 3947 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3948 ccache) 3949 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3950 esac 3951 } 3952 3953 port_help() { 3954 PKGHANDLER_COMMAND="" 3955 } 3956 3957 pkgutil_help() { 3958 PKGHANDLER_COMMAND="" 3959 } 3960 3961 pkgadd_help() { 3962 PKGHANDLER_COMMAND="" 3963 } 3964 3965 # This function will check if we're called from the "configure" wrapper while 3966 # printing --help. If so, we will print out additional information that can 3967 # only be extracted within the autoconf script, and then exit. This must be 3968 # called at the very beginning in configure.ac. 3969 3970 3971 3972 3973 3974 3975 # 3976 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3977 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3978 # 3979 # This code is free software; you can redistribute it and/or modify it 3980 # under the terms of the GNU General Public License version 2 only, as 3981 # published by the Free Software Foundation. Oracle designates this 3982 # particular file as subject to the "Classpath" exception as provided 3983 # by Oracle in the LICENSE file that accompanied this code. 3984 # 3985 # This code is distributed in the hope that it will be useful, but WITHOUT 3986 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3987 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3988 # version 2 for more details (a copy is included in the LICENSE file that 3989 # accompanied this code). 3990 # 3991 # You should have received a copy of the GNU General Public License version 3992 # 2 along with this work; if not, write to the Free Software Foundation, 3993 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3994 # 3995 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3996 # or visit www.oracle.com if you need additional information or have any 3997 # questions. 3998 # 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 ############################################################################### 4010 # 4011 # Should we build only OpenJDK even if closed sources are present? 4012 # 4013 4014 4015 4016 4017 ############################################################################### 4018 # 4019 # Setup version numbers 4020 # 4021 4022 4023 4024 4025 4026 4027 # 4028 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4029 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4030 # 4031 # This code is free software; you can redistribute it and/or modify it 4032 # under the terms of the GNU General Public License version 2 only, as 4033 # published by the Free Software Foundation. Oracle designates this 4034 # particular file as subject to the "Classpath" exception as provided 4035 # by Oracle in the LICENSE file that accompanied this code. 4036 # 4037 # This code is distributed in the hope that it will be useful, but WITHOUT 4038 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4039 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4040 # version 2 for more details (a copy is included in the LICENSE file that 4041 # accompanied this code). 4042 # 4043 # You should have received a copy of the GNU General Public License version 4044 # 2 along with this work; if not, write to the Free Software Foundation, 4045 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4046 # 4047 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4048 # or visit www.oracle.com if you need additional information or have any 4049 # questions. 4050 # 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 # 4073 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4074 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4075 # 4076 # This code is free software; you can redistribute it and/or modify it 4077 # under the terms of the GNU General Public License version 2 only, as 4078 # published by the Free Software Foundation. Oracle designates this 4079 # particular file as subject to the "Classpath" exception as provided 4080 # by Oracle in the LICENSE file that accompanied this code. 4081 # 4082 # This code is distributed in the hope that it will be useful, but WITHOUT 4083 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4084 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4085 # version 2 for more details (a copy is included in the LICENSE file that 4086 # accompanied this code). 4087 # 4088 # You should have received a copy of the GNU General Public License version 4089 # 2 along with this work; if not, write to the Free Software Foundation, 4090 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4091 # 4092 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4093 # or visit www.oracle.com if you need additional information or have any 4094 # questions. 4095 # 4096 4097 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4098 # Converts autoconf style CPU name to OpenJDK style, into 4099 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4100 4101 4102 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4103 # Converts autoconf style OS name to OpenJDK style, into 4104 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4105 4106 4107 # Expects $host_os $host_cpu $build_os and $build_cpu 4108 # and $with_target_bits to have been setup! 4109 # 4110 # Translate the standard triplet(quadruplet) definition 4111 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4112 # OPENJDK_BUILD_OS, etc. 4113 4114 4115 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4116 # accordingly. Must be done after setting up build and target system, but before 4117 # doing anything else with these values. 4118 4119 4120 # Setup the legacy variables, for controlling the old makefiles. 4121 # 4122 4123 4124 4125 4126 #%%% Build and target systems %%% 4127 4128 4129 4130 4131 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4132 # Add -mX to various FLAGS variables. 4133 4134 4135 4136 4137 4138 4139 # 4140 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4141 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4142 # 4143 # This code is free software; you can redistribute it and/or modify it 4144 # under the terms of the GNU General Public License version 2 only, as 4145 # published by the Free Software Foundation. Oracle designates this 4146 # particular file as subject to the "Classpath" exception as provided 4147 # by Oracle in the LICENSE file that accompanied this code. 4148 # 4149 # This code is distributed in the hope that it will be useful, but WITHOUT 4150 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4151 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4152 # version 2 for more details (a copy is included in the LICENSE file that 4153 # accompanied this code). 4154 # 4155 # You should have received a copy of the GNU General Public License version 4156 # 2 along with this work; if not, write to the Free Software Foundation, 4157 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4158 # 4159 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4160 # or visit www.oracle.com if you need additional information or have any 4161 # questions. 4162 # 4163 4164 4165 4166 4167 4168 4169 4170 4171 # 4172 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4173 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4174 # 4175 # This code is free software; you can redistribute it and/or modify it 4176 # under the terms of the GNU General Public License version 2 only, as 4177 # published by the Free Software Foundation. Oracle designates this 4178 # particular file as subject to the "Classpath" exception as provided 4179 # by Oracle in the LICENSE file that accompanied this code. 4180 # 4181 # This code is distributed in the hope that it will be useful, but WITHOUT 4182 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4183 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4184 # version 2 for more details (a copy is included in the LICENSE file that 4185 # accompanied this code). 4186 # 4187 # You should have received a copy of the GNU General Public License version 4188 # 2 along with this work; if not, write to the Free Software Foundation, 4189 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4190 # 4191 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4192 # or visit www.oracle.com if you need additional information or have any 4193 # questions. 4194 # 4195 4196 ######################################################################## 4197 # This file is responsible for detecting, verifying and setting up the 4198 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4199 # proper paths to the binaries, but it will not setup any flags. 4200 # 4201 # The binaries used is determined by the toolchain type, which is the family of 4202 # compilers and related tools that are used. 4203 ######################################################################## 4204 4205 4206 # All valid toolchains, regardless of platform (used by help.m4) 4207 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4208 4209 # These toolchains are valid on different platforms 4210 VALID_TOOLCHAINS_linux="gcc clang" 4211 VALID_TOOLCHAINS_solaris="solstudio" 4212 VALID_TOOLCHAINS_macosx="gcc clang" 4213 VALID_TOOLCHAINS_aix="xlc" 4214 VALID_TOOLCHAINS_windows="microsoft" 4215 4216 # Toolchain descriptions 4217 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4218 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4219 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4220 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4221 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4222 4223 # Setup a number of variables describing how native output files are 4224 # named on this platform/toolchain. 4225 4226 4227 # Determine which toolchain type to use, and make sure it is valid for this 4228 # platform. Setup various information about the selected toolchain. 4229 4230 4231 # Before we start detecting the toolchain executables, we might need some 4232 # special setup, e.g. additional paths etc. 4233 4234 4235 # Restore path, etc 4236 4237 4238 # Check if a compiler is of the toolchain type we expect, and save the version 4239 # information from it. If the compiler does not match the expected type, 4240 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4241 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4242 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4243 # 4244 # $1 = compiler to test (CC or CXX) 4245 # $2 = human readable name of compiler (C or C++) 4246 4247 4248 # Try to locate the given C or C++ compiler in the path, or otherwise. 4249 # 4250 # $1 = compiler to test (CC or CXX) 4251 # $2 = human readable name of compiler (C or C++) 4252 # $3 = list of compiler names to search for 4253 4254 4255 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4256 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4257 # archiver (AR). Verify that the compilers are correct according to the 4258 # toolchain type. 4259 4260 4261 # Setup additional tools that is considered a part of the toolchain, but not the 4262 # core part. Many of these are highly platform-specific and do not exist, 4263 # and/or are not needed on all platforms. 4264 4265 4266 # Setup the build tools (i.e, the compiler and linker used to build programs 4267 # that should be run on the build platform, not the target platform, as a build 4268 # helper). Since the non-cross-compile case uses the normal, target compilers 4269 # for this, we can only do this after these have been setup. 4270 4271 4272 # Setup legacy variables that are still needed as alternative ways to refer to 4273 # parts of the toolchain. 4274 4275 4276 # Do some additional checks on the detected tools. 4277 4278 4279 # Setup the JTReg Regression Test Harness. 4280 4281 4282 # 4283 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4284 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4285 # 4286 # This code is free software; you can redistribute it and/or modify it 4287 # under the terms of the GNU General Public License version 2 only, as 4288 # published by the Free Software Foundation. Oracle designates this 4289 # particular file as subject to the "Classpath" exception as provided 4290 # by Oracle in the LICENSE file that accompanied this code. 4291 # 4292 # This code is distributed in the hope that it will be useful, but WITHOUT 4293 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4294 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4295 # version 2 for more details (a copy is included in the LICENSE file that 4296 # accompanied this code). 4297 # 4298 # You should have received a copy of the GNU General Public License version 4299 # 2 along with this work; if not, write to the Free Software Foundation, 4300 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4301 # 4302 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4303 # or visit www.oracle.com if you need additional information or have any 4304 # questions. 4305 # 4306 4307 4308 4309 4310 4311 4312 4313 # Check if the VS env variables were setup prior to running configure. 4314 # If not, then find vcvarsall.bat and run it automatically, and integrate 4315 # the set env variables into the spec file. 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 # This line needs to be here, verbatim, after all includes and the dummy hook 4328 # definitions. It is replaced with custom functionality when building 4329 # custom sources. 4330 #CUSTOM_AUTOCONF_INCLUDE 4331 4332 # Do not change or remove the following line, it is needed for consistency checks: 4333 DATE_WHEN_GENERATED=1421850849 4334 4335 ############################################################################### 4336 # 4337 # Initialization / Boot-strapping 4338 # 4339 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4340 # thus it jumps back and forth, each time gaining something needed later on. 4341 # 4342 ############################################################################### 4343 4344 # If we are requested to print additional help, do that and then exit. 4345 # This must be the very first call. 4346 4347 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4348 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4349 $PRINTF "Which are valid to use depends on the build platform.\n" 4350 for toolchain in $VALID_TOOLCHAINS_all; do 4351 # Use indirect variable referencing 4352 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4353 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4354 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4355 done 4356 4357 # And now exit directly 4358 exit 0 4359 fi 4360 4361 4362 # Basic initialization that must happen first of all in the normal process. 4363 4364 # Save the original command line. This is passed to us by the wrapper configure script. 4365 4366 # Save the path variable before it gets changed 4367 ORIGINAL_PATH="$PATH" 4368 4369 DATE_WHEN_CONFIGURED=`LANG=C date` 4370 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4372 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4374 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4375 4376 4377 # Start with tools that do not need have cross compilation support 4378 # and can be expected to be found in the default PATH. These tools are 4379 # used by configure. Nor are these tools expected to be found in the 4380 # devkit from the builddeps server either, since they are 4381 # needed to download the devkit. 4382 4383 # First are all the simple required tools. 4384 4385 4386 4387 # Publish this variable in the help. 4388 4389 4390 if test "x$BASENAME" = x; then 4391 # The variable is not set by user, try to locate tool using the code snippet 4392 for ac_prog in basename 4393 do 4394 # Extract the first word of "$ac_prog", so it can be a program name with args. 4395 set dummy $ac_prog; ac_word=$2 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4397 $as_echo_n "checking for $ac_word... " >&6; } 4398 if ${ac_cv_path_BASENAME+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400 else 4401 case $BASENAME in 4402 [\\/]* | ?:[\\/]*) 4403 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4404 ;; 4405 *) 4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407 for as_dir in $PATH 4408 do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4413 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4415 break 2 4416 fi 4417 done 4418 done 4419 IFS=$as_save_IFS 4420 4421 ;; 4422 esac 4423 fi 4424 BASENAME=$ac_cv_path_BASENAME 4425 if test -n "$BASENAME"; then 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4427 $as_echo "$BASENAME" >&6; } 4428 else 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4430 $as_echo "no" >&6; } 4431 fi 4432 4433 4434 test -n "$BASENAME" && break 4435 done 4436 4437 else 4438 # The variable is set, but is it from the command line or the environment? 4439 4440 # Try to remove the string !BASENAME! from our list. 4441 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4442 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4443 # If it failed, the variable was not from the command line. Ignore it, 4444 # but warn the user (except for BASH, which is always set by the calling BASH). 4445 if test "xBASENAME" != xBASH; then 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4447 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4448 fi 4449 # Try to locate tool using the code snippet 4450 for ac_prog in basename 4451 do 4452 # Extract the first word of "$ac_prog", so it can be a program name with args. 4453 set dummy $ac_prog; ac_word=$2 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4455 $as_echo_n "checking for $ac_word... " >&6; } 4456 if ${ac_cv_path_BASENAME+:} false; then : 4457 $as_echo_n "(cached) " >&6 4458 else 4459 case $BASENAME in 4460 [\\/]* | ?:[\\/]*) 4461 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4462 ;; 4463 *) 4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4465 for as_dir in $PATH 4466 do 4467 IFS=$as_save_IFS 4468 test -z "$as_dir" && as_dir=. 4469 for ac_exec_ext in '' $ac_executable_extensions; do 4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4471 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4473 break 2 4474 fi 4475 done 4476 done 4477 IFS=$as_save_IFS 4478 4479 ;; 4480 esac 4481 fi 4482 BASENAME=$ac_cv_path_BASENAME 4483 if test -n "$BASENAME"; then 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4485 $as_echo "$BASENAME" >&6; } 4486 else 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488 $as_echo "no" >&6; } 4489 fi 4490 4491 4492 test -n "$BASENAME" && break 4493 done 4494 4495 else 4496 # If it succeeded, then it was overridden by the user. We will use it 4497 # for the tool. 4498 4499 # First remove it from the list of overridden variables, so we can test 4500 # for unknown variables in the end. 4501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4502 4503 # Check if the provided tool contains a complete path. 4504 tool_specified="$BASENAME" 4505 tool_basename="${tool_specified##*/}" 4506 if test "x$tool_basename" = "x$tool_specified"; then 4507 # A command without a complete path is provided, search $PATH. 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4509 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4510 # Extract the first word of "$tool_basename", so it can be a program name with args. 4511 set dummy $tool_basename; ac_word=$2 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513 $as_echo_n "checking for $ac_word... " >&6; } 4514 if ${ac_cv_path_BASENAME+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516 else 4517 case $BASENAME in 4518 [\\/]* | ?:[\\/]*) 4519 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4520 ;; 4521 *) 4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4523 for as_dir in $PATH 4524 do 4525 IFS=$as_save_IFS 4526 test -z "$as_dir" && as_dir=. 4527 for ac_exec_ext in '' $ac_executable_extensions; do 4528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4529 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4531 break 2 4532 fi 4533 done 4534 done 4535 IFS=$as_save_IFS 4536 4537 ;; 4538 esac 4539 fi 4540 BASENAME=$ac_cv_path_BASENAME 4541 if test -n "$BASENAME"; then 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4543 $as_echo "$BASENAME" >&6; } 4544 else 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4546 $as_echo "no" >&6; } 4547 fi 4548 4549 4550 if test "x$BASENAME" = x; then 4551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4552 fi 4553 else 4554 # Otherwise we believe it is a complete path. Use it as it is. 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4556 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4558 $as_echo_n "checking for BASENAME... " >&6; } 4559 if test ! -x "$tool_specified"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4561 $as_echo "not found" >&6; } 4562 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4563 fi 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4565 $as_echo "$tool_specified" >&6; } 4566 fi 4567 fi 4568 fi 4569 4570 4571 4572 if test "x$BASENAME" = x; then 4573 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4574 fi 4575 4576 4577 4578 4579 4580 # Publish this variable in the help. 4581 4582 4583 if test "x$BASH" = x; then 4584 # The variable is not set by user, try to locate tool using the code snippet 4585 for ac_prog in bash 4586 do 4587 # Extract the first word of "$ac_prog", so it can be a program name with args. 4588 set dummy $ac_prog; ac_word=$2 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4590 $as_echo_n "checking for $ac_word... " >&6; } 4591 if ${ac_cv_path_BASH+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593 else 4594 case $BASH in 4595 [\\/]* | ?:[\\/]*) 4596 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4597 ;; 4598 *) 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600 for as_dir in $PATH 4601 do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4606 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610 done 4611 done 4612 IFS=$as_save_IFS 4613 4614 ;; 4615 esac 4616 fi 4617 BASH=$ac_cv_path_BASH 4618 if test -n "$BASH"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4620 $as_echo "$BASH" >&6; } 4621 else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623 $as_echo "no" >&6; } 4624 fi 4625 4626 4627 test -n "$BASH" && break 4628 done 4629 4630 else 4631 # The variable is set, but is it from the command line or the environment? 4632 4633 # Try to remove the string !BASH! from our list. 4634 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4635 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4636 # If it failed, the variable was not from the command line. Ignore it, 4637 # but warn the user (except for BASH, which is always set by the calling BASH). 4638 if test "xBASH" != xBASH; then 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4640 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4641 fi 4642 # Try to locate tool using the code snippet 4643 for ac_prog in bash 4644 do 4645 # Extract the first word of "$ac_prog", so it can be a program name with args. 4646 set dummy $ac_prog; ac_word=$2 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4648 $as_echo_n "checking for $ac_word... " >&6; } 4649 if ${ac_cv_path_BASH+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651 else 4652 case $BASH in 4653 [\\/]* | ?:[\\/]*) 4654 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4655 ;; 4656 *) 4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4658 for as_dir in $PATH 4659 do 4660 IFS=$as_save_IFS 4661 test -z "$as_dir" && as_dir=. 4662 for ac_exec_ext in '' $ac_executable_extensions; do 4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4664 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4666 break 2 4667 fi 4668 done 4669 done 4670 IFS=$as_save_IFS 4671 4672 ;; 4673 esac 4674 fi 4675 BASH=$ac_cv_path_BASH 4676 if test -n "$BASH"; then 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4678 $as_echo "$BASH" >&6; } 4679 else 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4681 $as_echo "no" >&6; } 4682 fi 4683 4684 4685 test -n "$BASH" && break 4686 done 4687 4688 else 4689 # If it succeeded, then it was overridden by the user. We will use it 4690 # for the tool. 4691 4692 # First remove it from the list of overridden variables, so we can test 4693 # for unknown variables in the end. 4694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4695 4696 # Check if the provided tool contains a complete path. 4697 tool_specified="$BASH" 4698 tool_basename="${tool_specified##*/}" 4699 if test "x$tool_basename" = "x$tool_specified"; then 4700 # A command without a complete path is provided, search $PATH. 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4702 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4703 # Extract the first word of "$tool_basename", so it can be a program name with args. 4704 set dummy $tool_basename; ac_word=$2 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4706 $as_echo_n "checking for $ac_word... " >&6; } 4707 if ${ac_cv_path_BASH+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709 else 4710 case $BASH in 4711 [\\/]* | ?:[\\/]*) 4712 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4713 ;; 4714 *) 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4716 for as_dir in $PATH 4717 do 4718 IFS=$as_save_IFS 4719 test -z "$as_dir" && as_dir=. 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4722 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4724 break 2 4725 fi 4726 done 4727 done 4728 IFS=$as_save_IFS 4729 4730 ;; 4731 esac 4732 fi 4733 BASH=$ac_cv_path_BASH 4734 if test -n "$BASH"; then 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4736 $as_echo "$BASH" >&6; } 4737 else 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4739 $as_echo "no" >&6; } 4740 fi 4741 4742 4743 if test "x$BASH" = x; then 4744 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4745 fi 4746 else 4747 # Otherwise we believe it is a complete path. Use it as it is. 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4749 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4751 $as_echo_n "checking for BASH... " >&6; } 4752 if test ! -x "$tool_specified"; then 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4754 $as_echo "not found" >&6; } 4755 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4756 fi 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4758 $as_echo "$tool_specified" >&6; } 4759 fi 4760 fi 4761 fi 4762 4763 4764 4765 if test "x$BASH" = x; then 4766 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4767 fi 4768 4769 4770 4771 4772 4773 # Publish this variable in the help. 4774 4775 4776 if test "x$CAT" = x; then 4777 # The variable is not set by user, try to locate tool using the code snippet 4778 for ac_prog in cat 4779 do 4780 # Extract the first word of "$ac_prog", so it can be a program name with args. 4781 set dummy $ac_prog; ac_word=$2 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4783 $as_echo_n "checking for $ac_word... " >&6; } 4784 if ${ac_cv_path_CAT+:} false; then : 4785 $as_echo_n "(cached) " >&6 4786 else 4787 case $CAT in 4788 [\\/]* | ?:[\\/]*) 4789 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4790 ;; 4791 *) 4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4793 for as_dir in $PATH 4794 do 4795 IFS=$as_save_IFS 4796 test -z "$as_dir" && as_dir=. 4797 for ac_exec_ext in '' $ac_executable_extensions; do 4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4799 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4801 break 2 4802 fi 4803 done 4804 done 4805 IFS=$as_save_IFS 4806 4807 ;; 4808 esac 4809 fi 4810 CAT=$ac_cv_path_CAT 4811 if test -n "$CAT"; then 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4813 $as_echo "$CAT" >&6; } 4814 else 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4816 $as_echo "no" >&6; } 4817 fi 4818 4819 4820 test -n "$CAT" && break 4821 done 4822 4823 else 4824 # The variable is set, but is it from the command line or the environment? 4825 4826 # Try to remove the string !CAT! from our list. 4827 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4828 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4829 # If it failed, the variable was not from the command line. Ignore it, 4830 # but warn the user (except for BASH, which is always set by the calling BASH). 4831 if test "xCAT" != xBASH; then 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4833 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4834 fi 4835 # Try to locate tool using the code snippet 4836 for ac_prog in cat 4837 do 4838 # Extract the first word of "$ac_prog", so it can be a program name with args. 4839 set dummy $ac_prog; ac_word=$2 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4841 $as_echo_n "checking for $ac_word... " >&6; } 4842 if ${ac_cv_path_CAT+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844 else 4845 case $CAT in 4846 [\\/]* | ?:[\\/]*) 4847 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4848 ;; 4849 *) 4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4851 for as_dir in $PATH 4852 do 4853 IFS=$as_save_IFS 4854 test -z "$as_dir" && as_dir=. 4855 for ac_exec_ext in '' $ac_executable_extensions; do 4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4857 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4859 break 2 4860 fi 4861 done 4862 done 4863 IFS=$as_save_IFS 4864 4865 ;; 4866 esac 4867 fi 4868 CAT=$ac_cv_path_CAT 4869 if test -n "$CAT"; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4871 $as_echo "$CAT" >&6; } 4872 else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4874 $as_echo "no" >&6; } 4875 fi 4876 4877 4878 test -n "$CAT" && break 4879 done 4880 4881 else 4882 # If it succeeded, then it was overridden by the user. We will use it 4883 # for the tool. 4884 4885 # First remove it from the list of overridden variables, so we can test 4886 # for unknown variables in the end. 4887 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4888 4889 # Check if the provided tool contains a complete path. 4890 tool_specified="$CAT" 4891 tool_basename="${tool_specified##*/}" 4892 if test "x$tool_basename" = "x$tool_specified"; then 4893 # A command without a complete path is provided, search $PATH. 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4895 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4896 # Extract the first word of "$tool_basename", so it can be a program name with args. 4897 set dummy $tool_basename; ac_word=$2 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4899 $as_echo_n "checking for $ac_word... " >&6; } 4900 if ${ac_cv_path_CAT+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902 else 4903 case $CAT in 4904 [\\/]* | ?:[\\/]*) 4905 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4906 ;; 4907 *) 4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4909 for as_dir in $PATH 4910 do 4911 IFS=$as_save_IFS 4912 test -z "$as_dir" && as_dir=. 4913 for ac_exec_ext in '' $ac_executable_extensions; do 4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4915 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4917 break 2 4918 fi 4919 done 4920 done 4921 IFS=$as_save_IFS 4922 4923 ;; 4924 esac 4925 fi 4926 CAT=$ac_cv_path_CAT 4927 if test -n "$CAT"; then 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4929 $as_echo "$CAT" >&6; } 4930 else 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4932 $as_echo "no" >&6; } 4933 fi 4934 4935 4936 if test "x$CAT" = x; then 4937 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4938 fi 4939 else 4940 # Otherwise we believe it is a complete path. Use it as it is. 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4942 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4944 $as_echo_n "checking for CAT... " >&6; } 4945 if test ! -x "$tool_specified"; then 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4947 $as_echo "not found" >&6; } 4948 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4949 fi 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4951 $as_echo "$tool_specified" >&6; } 4952 fi 4953 fi 4954 fi 4955 4956 4957 4958 if test "x$CAT" = x; then 4959 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4960 fi 4961 4962 4963 4964 4965 4966 # Publish this variable in the help. 4967 4968 4969 if test "x$CHMOD" = x; then 4970 # The variable is not set by user, try to locate tool using the code snippet 4971 for ac_prog in chmod 4972 do 4973 # Extract the first word of "$ac_prog", so it can be a program name with args. 4974 set dummy $ac_prog; ac_word=$2 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4976 $as_echo_n "checking for $ac_word... " >&6; } 4977 if ${ac_cv_path_CHMOD+:} false; then : 4978 $as_echo_n "(cached) " >&6 4979 else 4980 case $CHMOD in 4981 [\\/]* | ?:[\\/]*) 4982 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4983 ;; 4984 *) 4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4986 for as_dir in $PATH 4987 do 4988 IFS=$as_save_IFS 4989 test -z "$as_dir" && as_dir=. 4990 for ac_exec_ext in '' $ac_executable_extensions; do 4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4992 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4994 break 2 4995 fi 4996 done 4997 done 4998 IFS=$as_save_IFS 4999 5000 ;; 5001 esac 5002 fi 5003 CHMOD=$ac_cv_path_CHMOD 5004 if test -n "$CHMOD"; then 5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5006 $as_echo "$CHMOD" >&6; } 5007 else 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5009 $as_echo "no" >&6; } 5010 fi 5011 5012 5013 test -n "$CHMOD" && break 5014 done 5015 5016 else 5017 # The variable is set, but is it from the command line or the environment? 5018 5019 # Try to remove the string !CHMOD! from our list. 5020 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5021 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5022 # If it failed, the variable was not from the command line. Ignore it, 5023 # but warn the user (except for BASH, which is always set by the calling BASH). 5024 if test "xCHMOD" != xBASH; then 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5026 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5027 fi 5028 # Try to locate tool using the code snippet 5029 for ac_prog in chmod 5030 do 5031 # Extract the first word of "$ac_prog", so it can be a program name with args. 5032 set dummy $ac_prog; ac_word=$2 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5034 $as_echo_n "checking for $ac_word... " >&6; } 5035 if ${ac_cv_path_CHMOD+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037 else 5038 case $CHMOD in 5039 [\\/]* | ?:[\\/]*) 5040 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5041 ;; 5042 *) 5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5044 for as_dir in $PATH 5045 do 5046 IFS=$as_save_IFS 5047 test -z "$as_dir" && as_dir=. 5048 for ac_exec_ext in '' $ac_executable_extensions; do 5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5050 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5052 break 2 5053 fi 5054 done 5055 done 5056 IFS=$as_save_IFS 5057 5058 ;; 5059 esac 5060 fi 5061 CHMOD=$ac_cv_path_CHMOD 5062 if test -n "$CHMOD"; then 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5064 $as_echo "$CHMOD" >&6; } 5065 else 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5067 $as_echo "no" >&6; } 5068 fi 5069 5070 5071 test -n "$CHMOD" && break 5072 done 5073 5074 else 5075 # If it succeeded, then it was overridden by the user. We will use it 5076 # for the tool. 5077 5078 # First remove it from the list of overridden variables, so we can test 5079 # for unknown variables in the end. 5080 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5081 5082 # Check if the provided tool contains a complete path. 5083 tool_specified="$CHMOD" 5084 tool_basename="${tool_specified##*/}" 5085 if test "x$tool_basename" = "x$tool_specified"; then 5086 # A command without a complete path is provided, search $PATH. 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5088 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5089 # Extract the first word of "$tool_basename", so it can be a program name with args. 5090 set dummy $tool_basename; ac_word=$2 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5092 $as_echo_n "checking for $ac_word... " >&6; } 5093 if ${ac_cv_path_CHMOD+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095 else 5096 case $CHMOD in 5097 [\\/]* | ?:[\\/]*) 5098 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5099 ;; 5100 *) 5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5102 for as_dir in $PATH 5103 do 5104 IFS=$as_save_IFS 5105 test -z "$as_dir" && as_dir=. 5106 for ac_exec_ext in '' $ac_executable_extensions; do 5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5108 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5110 break 2 5111 fi 5112 done 5113 done 5114 IFS=$as_save_IFS 5115 5116 ;; 5117 esac 5118 fi 5119 CHMOD=$ac_cv_path_CHMOD 5120 if test -n "$CHMOD"; then 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5122 $as_echo "$CHMOD" >&6; } 5123 else 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5125 $as_echo "no" >&6; } 5126 fi 5127 5128 5129 if test "x$CHMOD" = x; then 5130 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5131 fi 5132 else 5133 # Otherwise we believe it is a complete path. Use it as it is. 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5135 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5137 $as_echo_n "checking for CHMOD... " >&6; } 5138 if test ! -x "$tool_specified"; then 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5140 $as_echo "not found" >&6; } 5141 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5142 fi 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5144 $as_echo "$tool_specified" >&6; } 5145 fi 5146 fi 5147 fi 5148 5149 5150 5151 if test "x$CHMOD" = x; then 5152 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5153 fi 5154 5155 5156 5157 5158 5159 # Publish this variable in the help. 5160 5161 5162 if test "x$CMP" = x; then 5163 # The variable is not set by user, try to locate tool using the code snippet 5164 for ac_prog in cmp 5165 do 5166 # Extract the first word of "$ac_prog", so it can be a program name with args. 5167 set dummy $ac_prog; ac_word=$2 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5169 $as_echo_n "checking for $ac_word... " >&6; } 5170 if ${ac_cv_path_CMP+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172 else 5173 case $CMP in 5174 [\\/]* | ?:[\\/]*) 5175 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5176 ;; 5177 *) 5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179 for as_dir in $PATH 5180 do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5185 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189 done 5190 done 5191 IFS=$as_save_IFS 5192 5193 ;; 5194 esac 5195 fi 5196 CMP=$ac_cv_path_CMP 5197 if test -n "$CMP"; then 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5199 $as_echo "$CMP" >&6; } 5200 else 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202 $as_echo "no" >&6; } 5203 fi 5204 5205 5206 test -n "$CMP" && break 5207 done 5208 5209 else 5210 # The variable is set, but is it from the command line or the environment? 5211 5212 # Try to remove the string !CMP! from our list. 5213 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5214 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5215 # If it failed, the variable was not from the command line. Ignore it, 5216 # but warn the user (except for BASH, which is always set by the calling BASH). 5217 if test "xCMP" != xBASH; then 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5219 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5220 fi 5221 # Try to locate tool using the code snippet 5222 for ac_prog in cmp 5223 do 5224 # Extract the first word of "$ac_prog", so it can be a program name with args. 5225 set dummy $ac_prog; ac_word=$2 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5227 $as_echo_n "checking for $ac_word... " >&6; } 5228 if ${ac_cv_path_CMP+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230 else 5231 case $CMP in 5232 [\\/]* | ?:[\\/]*) 5233 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5234 ;; 5235 *) 5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237 for as_dir in $PATH 5238 do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247 done 5248 done 5249 IFS=$as_save_IFS 5250 5251 ;; 5252 esac 5253 fi 5254 CMP=$ac_cv_path_CMP 5255 if test -n "$CMP"; then 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5257 $as_echo "$CMP" >&6; } 5258 else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260 $as_echo "no" >&6; } 5261 fi 5262 5263 5264 test -n "$CMP" && break 5265 done 5266 5267 else 5268 # If it succeeded, then it was overridden by the user. We will use it 5269 # for the tool. 5270 5271 # First remove it from the list of overridden variables, so we can test 5272 # for unknown variables in the end. 5273 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5274 5275 # Check if the provided tool contains a complete path. 5276 tool_specified="$CMP" 5277 tool_basename="${tool_specified##*/}" 5278 if test "x$tool_basename" = "x$tool_specified"; then 5279 # A command without a complete path is provided, search $PATH. 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5281 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5282 # Extract the first word of "$tool_basename", so it can be a program name with args. 5283 set dummy $tool_basename; ac_word=$2 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5285 $as_echo_n "checking for $ac_word... " >&6; } 5286 if ${ac_cv_path_CMP+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288 else 5289 case $CMP in 5290 [\\/]* | ?:[\\/]*) 5291 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5292 ;; 5293 *) 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295 for as_dir in $PATH 5296 do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5301 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305 done 5306 done 5307 IFS=$as_save_IFS 5308 5309 ;; 5310 esac 5311 fi 5312 CMP=$ac_cv_path_CMP 5313 if test -n "$CMP"; then 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5315 $as_echo "$CMP" >&6; } 5316 else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5318 $as_echo "no" >&6; } 5319 fi 5320 5321 5322 if test "x$CMP" = x; then 5323 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5324 fi 5325 else 5326 # Otherwise we believe it is a complete path. Use it as it is. 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5328 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5330 $as_echo_n "checking for CMP... " >&6; } 5331 if test ! -x "$tool_specified"; then 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5333 $as_echo "not found" >&6; } 5334 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5335 fi 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5337 $as_echo "$tool_specified" >&6; } 5338 fi 5339 fi 5340 fi 5341 5342 5343 5344 if test "x$CMP" = x; then 5345 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5346 fi 5347 5348 5349 5350 5351 5352 # Publish this variable in the help. 5353 5354 5355 if test "x$COMM" = x; then 5356 # The variable is not set by user, try to locate tool using the code snippet 5357 for ac_prog in comm 5358 do 5359 # Extract the first word of "$ac_prog", so it can be a program name with args. 5360 set dummy $ac_prog; ac_word=$2 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5362 $as_echo_n "checking for $ac_word... " >&6; } 5363 if ${ac_cv_path_COMM+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365 else 5366 case $COMM in 5367 [\\/]* | ?:[\\/]*) 5368 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5369 ;; 5370 *) 5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5372 for as_dir in $PATH 5373 do 5374 IFS=$as_save_IFS 5375 test -z "$as_dir" && as_dir=. 5376 for ac_exec_ext in '' $ac_executable_extensions; do 5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5378 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5380 break 2 5381 fi 5382 done 5383 done 5384 IFS=$as_save_IFS 5385 5386 ;; 5387 esac 5388 fi 5389 COMM=$ac_cv_path_COMM 5390 if test -n "$COMM"; then 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5392 $as_echo "$COMM" >&6; } 5393 else 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5395 $as_echo "no" >&6; } 5396 fi 5397 5398 5399 test -n "$COMM" && break 5400 done 5401 5402 else 5403 # The variable is set, but is it from the command line or the environment? 5404 5405 # Try to remove the string !COMM! from our list. 5406 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5407 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5408 # If it failed, the variable was not from the command line. Ignore it, 5409 # but warn the user (except for BASH, which is always set by the calling BASH). 5410 if test "xCOMM" != xBASH; then 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5412 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5413 fi 5414 # Try to locate tool using the code snippet 5415 for ac_prog in comm 5416 do 5417 # Extract the first word of "$ac_prog", so it can be a program name with args. 5418 set dummy $ac_prog; ac_word=$2 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5420 $as_echo_n "checking for $ac_word... " >&6; } 5421 if ${ac_cv_path_COMM+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423 else 5424 case $COMM in 5425 [\\/]* | ?:[\\/]*) 5426 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5427 ;; 5428 *) 5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5430 for as_dir in $PATH 5431 do 5432 IFS=$as_save_IFS 5433 test -z "$as_dir" && as_dir=. 5434 for ac_exec_ext in '' $ac_executable_extensions; do 5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5436 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5438 break 2 5439 fi 5440 done 5441 done 5442 IFS=$as_save_IFS 5443 5444 ;; 5445 esac 5446 fi 5447 COMM=$ac_cv_path_COMM 5448 if test -n "$COMM"; then 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5450 $as_echo "$COMM" >&6; } 5451 else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453 $as_echo "no" >&6; } 5454 fi 5455 5456 5457 test -n "$COMM" && break 5458 done 5459 5460 else 5461 # If it succeeded, then it was overridden by the user. We will use it 5462 # for the tool. 5463 5464 # First remove it from the list of overridden variables, so we can test 5465 # for unknown variables in the end. 5466 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5467 5468 # Check if the provided tool contains a complete path. 5469 tool_specified="$COMM" 5470 tool_basename="${tool_specified##*/}" 5471 if test "x$tool_basename" = "x$tool_specified"; then 5472 # A command without a complete path is provided, search $PATH. 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5474 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5475 # Extract the first word of "$tool_basename", so it can be a program name with args. 5476 set dummy $tool_basename; ac_word=$2 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5478 $as_echo_n "checking for $ac_word... " >&6; } 5479 if ${ac_cv_path_COMM+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481 else 5482 case $COMM in 5483 [\\/]* | ?:[\\/]*) 5484 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5485 ;; 5486 *) 5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488 for as_dir in $PATH 5489 do 5490 IFS=$as_save_IFS 5491 test -z "$as_dir" && as_dir=. 5492 for ac_exec_ext in '' $ac_executable_extensions; do 5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5494 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5496 break 2 5497 fi 5498 done 5499 done 5500 IFS=$as_save_IFS 5501 5502 ;; 5503 esac 5504 fi 5505 COMM=$ac_cv_path_COMM 5506 if test -n "$COMM"; then 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5508 $as_echo "$COMM" >&6; } 5509 else 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5511 $as_echo "no" >&6; } 5512 fi 5513 5514 5515 if test "x$COMM" = x; then 5516 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5517 fi 5518 else 5519 # Otherwise we believe it is a complete path. Use it as it is. 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5521 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5523 $as_echo_n "checking for COMM... " >&6; } 5524 if test ! -x "$tool_specified"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5526 $as_echo "not found" >&6; } 5527 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5528 fi 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5530 $as_echo "$tool_specified" >&6; } 5531 fi 5532 fi 5533 fi 5534 5535 5536 5537 if test "x$COMM" = x; then 5538 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5539 fi 5540 5541 5542 5543 5544 5545 # Publish this variable in the help. 5546 5547 5548 if test "x$CP" = x; then 5549 # The variable is not set by user, try to locate tool using the code snippet 5550 for ac_prog in cp 5551 do 5552 # Extract the first word of "$ac_prog", so it can be a program name with args. 5553 set dummy $ac_prog; ac_word=$2 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5555 $as_echo_n "checking for $ac_word... " >&6; } 5556 if ${ac_cv_path_CP+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558 else 5559 case $CP in 5560 [\\/]* | ?:[\\/]*) 5561 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5562 ;; 5563 *) 5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565 for as_dir in $PATH 5566 do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_exec_ext in '' $ac_executable_extensions; do 5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5571 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5573 break 2 5574 fi 5575 done 5576 done 5577 IFS=$as_save_IFS 5578 5579 ;; 5580 esac 5581 fi 5582 CP=$ac_cv_path_CP 5583 if test -n "$CP"; then 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5585 $as_echo "$CP" >&6; } 5586 else 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5588 $as_echo "no" >&6; } 5589 fi 5590 5591 5592 test -n "$CP" && break 5593 done 5594 5595 else 5596 # The variable is set, but is it from the command line or the environment? 5597 5598 # Try to remove the string !CP! from our list. 5599 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5600 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5601 # If it failed, the variable was not from the command line. Ignore it, 5602 # but warn the user (except for BASH, which is always set by the calling BASH). 5603 if test "xCP" != xBASH; then 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5605 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5606 fi 5607 # Try to locate tool using the code snippet 5608 for ac_prog in cp 5609 do 5610 # Extract the first word of "$ac_prog", so it can be a program name with args. 5611 set dummy $ac_prog; ac_word=$2 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5613 $as_echo_n "checking for $ac_word... " >&6; } 5614 if ${ac_cv_path_CP+:} false; then : 5615 $as_echo_n "(cached) " >&6 5616 else 5617 case $CP in 5618 [\\/]* | ?:[\\/]*) 5619 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5620 ;; 5621 *) 5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5623 for as_dir in $PATH 5624 do 5625 IFS=$as_save_IFS 5626 test -z "$as_dir" && as_dir=. 5627 for ac_exec_ext in '' $ac_executable_extensions; do 5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5629 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5631 break 2 5632 fi 5633 done 5634 done 5635 IFS=$as_save_IFS 5636 5637 ;; 5638 esac 5639 fi 5640 CP=$ac_cv_path_CP 5641 if test -n "$CP"; then 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5643 $as_echo "$CP" >&6; } 5644 else 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5646 $as_echo "no" >&6; } 5647 fi 5648 5649 5650 test -n "$CP" && break 5651 done 5652 5653 else 5654 # If it succeeded, then it was overridden by the user. We will use it 5655 # for the tool. 5656 5657 # First remove it from the list of overridden variables, so we can test 5658 # for unknown variables in the end. 5659 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5660 5661 # Check if the provided tool contains a complete path. 5662 tool_specified="$CP" 5663 tool_basename="${tool_specified##*/}" 5664 if test "x$tool_basename" = "x$tool_specified"; then 5665 # A command without a complete path is provided, search $PATH. 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5667 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5668 # Extract the first word of "$tool_basename", so it can be a program name with args. 5669 set dummy $tool_basename; ac_word=$2 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5671 $as_echo_n "checking for $ac_word... " >&6; } 5672 if ${ac_cv_path_CP+:} false; then : 5673 $as_echo_n "(cached) " >&6 5674 else 5675 case $CP in 5676 [\\/]* | ?:[\\/]*) 5677 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5678 ;; 5679 *) 5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5681 for as_dir in $PATH 5682 do 5683 IFS=$as_save_IFS 5684 test -z "$as_dir" && as_dir=. 5685 for ac_exec_ext in '' $ac_executable_extensions; do 5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5687 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5689 break 2 5690 fi 5691 done 5692 done 5693 IFS=$as_save_IFS 5694 5695 ;; 5696 esac 5697 fi 5698 CP=$ac_cv_path_CP 5699 if test -n "$CP"; then 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5701 $as_echo "$CP" >&6; } 5702 else 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5704 $as_echo "no" >&6; } 5705 fi 5706 5707 5708 if test "x$CP" = x; then 5709 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5710 fi 5711 else 5712 # Otherwise we believe it is a complete path. Use it as it is. 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5714 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5716 $as_echo_n "checking for CP... " >&6; } 5717 if test ! -x "$tool_specified"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5719 $as_echo "not found" >&6; } 5720 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5721 fi 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5723 $as_echo "$tool_specified" >&6; } 5724 fi 5725 fi 5726 fi 5727 5728 5729 5730 if test "x$CP" = x; then 5731 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5732 fi 5733 5734 5735 5736 5737 5738 # Publish this variable in the help. 5739 5740 5741 if test "x$CUT" = x; then 5742 # The variable is not set by user, try to locate tool using the code snippet 5743 for ac_prog in cut 5744 do 5745 # Extract the first word of "$ac_prog", so it can be a program name with args. 5746 set dummy $ac_prog; ac_word=$2 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5748 $as_echo_n "checking for $ac_word... " >&6; } 5749 if ${ac_cv_path_CUT+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751 else 5752 case $CUT in 5753 [\\/]* | ?:[\\/]*) 5754 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5755 ;; 5756 *) 5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5758 for as_dir in $PATH 5759 do 5760 IFS=$as_save_IFS 5761 test -z "$as_dir" && as_dir=. 5762 for ac_exec_ext in '' $ac_executable_extensions; do 5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5764 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5766 break 2 5767 fi 5768 done 5769 done 5770 IFS=$as_save_IFS 5771 5772 ;; 5773 esac 5774 fi 5775 CUT=$ac_cv_path_CUT 5776 if test -n "$CUT"; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5778 $as_echo "$CUT" >&6; } 5779 else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781 $as_echo "no" >&6; } 5782 fi 5783 5784 5785 test -n "$CUT" && break 5786 done 5787 5788 else 5789 # The variable is set, but is it from the command line or the environment? 5790 5791 # Try to remove the string !CUT! from our list. 5792 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5793 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5794 # If it failed, the variable was not from the command line. Ignore it, 5795 # but warn the user (except for BASH, which is always set by the calling BASH). 5796 if test "xCUT" != xBASH; then 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5798 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5799 fi 5800 # Try to locate tool using the code snippet 5801 for ac_prog in cut 5802 do 5803 # Extract the first word of "$ac_prog", so it can be a program name with args. 5804 set dummy $ac_prog; ac_word=$2 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5806 $as_echo_n "checking for $ac_word... " >&6; } 5807 if ${ac_cv_path_CUT+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809 else 5810 case $CUT in 5811 [\\/]* | ?:[\\/]*) 5812 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5813 ;; 5814 *) 5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5816 for as_dir in $PATH 5817 do 5818 IFS=$as_save_IFS 5819 test -z "$as_dir" && as_dir=. 5820 for ac_exec_ext in '' $ac_executable_extensions; do 5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5822 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5824 break 2 5825 fi 5826 done 5827 done 5828 IFS=$as_save_IFS 5829 5830 ;; 5831 esac 5832 fi 5833 CUT=$ac_cv_path_CUT 5834 if test -n "$CUT"; then 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5836 $as_echo "$CUT" >&6; } 5837 else 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5839 $as_echo "no" >&6; } 5840 fi 5841 5842 5843 test -n "$CUT" && break 5844 done 5845 5846 else 5847 # If it succeeded, then it was overridden by the user. We will use it 5848 # for the tool. 5849 5850 # First remove it from the list of overridden variables, so we can test 5851 # for unknown variables in the end. 5852 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5853 5854 # Check if the provided tool contains a complete path. 5855 tool_specified="$CUT" 5856 tool_basename="${tool_specified##*/}" 5857 if test "x$tool_basename" = "x$tool_specified"; then 5858 # A command without a complete path is provided, search $PATH. 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5860 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5861 # Extract the first word of "$tool_basename", so it can be a program name with args. 5862 set dummy $tool_basename; ac_word=$2 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5864 $as_echo_n "checking for $ac_word... " >&6; } 5865 if ${ac_cv_path_CUT+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867 else 5868 case $CUT in 5869 [\\/]* | ?:[\\/]*) 5870 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5871 ;; 5872 *) 5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874 for as_dir in $PATH 5875 do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5880 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884 done 5885 done 5886 IFS=$as_save_IFS 5887 5888 ;; 5889 esac 5890 fi 5891 CUT=$ac_cv_path_CUT 5892 if test -n "$CUT"; then 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5894 $as_echo "$CUT" >&6; } 5895 else 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5897 $as_echo "no" >&6; } 5898 fi 5899 5900 5901 if test "x$CUT" = x; then 5902 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5903 fi 5904 else 5905 # Otherwise we believe it is a complete path. Use it as it is. 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5907 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5909 $as_echo_n "checking for CUT... " >&6; } 5910 if test ! -x "$tool_specified"; then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5912 $as_echo "not found" >&6; } 5913 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5914 fi 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5916 $as_echo "$tool_specified" >&6; } 5917 fi 5918 fi 5919 fi 5920 5921 5922 5923 if test "x$CUT" = x; then 5924 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5925 fi 5926 5927 5928 5929 5930 5931 # Publish this variable in the help. 5932 5933 5934 if test "x$DATE" = x; then 5935 # The variable is not set by user, try to locate tool using the code snippet 5936 for ac_prog in date 5937 do 5938 # Extract the first word of "$ac_prog", so it can be a program name with args. 5939 set dummy $ac_prog; ac_word=$2 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5941 $as_echo_n "checking for $ac_word... " >&6; } 5942 if ${ac_cv_path_DATE+:} false; then : 5943 $as_echo_n "(cached) " >&6 5944 else 5945 case $DATE in 5946 [\\/]* | ?:[\\/]*) 5947 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5948 ;; 5949 *) 5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5951 for as_dir in $PATH 5952 do 5953 IFS=$as_save_IFS 5954 test -z "$as_dir" && as_dir=. 5955 for ac_exec_ext in '' $ac_executable_extensions; do 5956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5957 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5959 break 2 5960 fi 5961 done 5962 done 5963 IFS=$as_save_IFS 5964 5965 ;; 5966 esac 5967 fi 5968 DATE=$ac_cv_path_DATE 5969 if test -n "$DATE"; then 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5971 $as_echo "$DATE" >&6; } 5972 else 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5974 $as_echo "no" >&6; } 5975 fi 5976 5977 5978 test -n "$DATE" && break 5979 done 5980 5981 else 5982 # The variable is set, but is it from the command line or the environment? 5983 5984 # Try to remove the string !DATE! from our list. 5985 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 5986 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5987 # If it failed, the variable was not from the command line. Ignore it, 5988 # but warn the user (except for BASH, which is always set by the calling BASH). 5989 if test "xDATE" != xBASH; then 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 5991 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 5992 fi 5993 # Try to locate tool using the code snippet 5994 for ac_prog in date 5995 do 5996 # Extract the first word of "$ac_prog", so it can be a program name with args. 5997 set dummy $ac_prog; ac_word=$2 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5999 $as_echo_n "checking for $ac_word... " >&6; } 6000 if ${ac_cv_path_DATE+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002 else 6003 case $DATE in 6004 [\\/]* | ?:[\\/]*) 6005 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6006 ;; 6007 *) 6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009 for as_dir in $PATH 6010 do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6015 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6017 break 2 6018 fi 6019 done 6020 done 6021 IFS=$as_save_IFS 6022 6023 ;; 6024 esac 6025 fi 6026 DATE=$ac_cv_path_DATE 6027 if test -n "$DATE"; then 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6029 $as_echo "$DATE" >&6; } 6030 else 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6032 $as_echo "no" >&6; } 6033 fi 6034 6035 6036 test -n "$DATE" && break 6037 done 6038 6039 else 6040 # If it succeeded, then it was overridden by the user. We will use it 6041 # for the tool. 6042 6043 # First remove it from the list of overridden variables, so we can test 6044 # for unknown variables in the end. 6045 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6046 6047 # Check if the provided tool contains a complete path. 6048 tool_specified="$DATE" 6049 tool_basename="${tool_specified##*/}" 6050 if test "x$tool_basename" = "x$tool_specified"; then 6051 # A command without a complete path is provided, search $PATH. 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6053 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6054 # Extract the first word of "$tool_basename", so it can be a program name with args. 6055 set dummy $tool_basename; ac_word=$2 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6057 $as_echo_n "checking for $ac_word... " >&6; } 6058 if ${ac_cv_path_DATE+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060 else 6061 case $DATE in 6062 [\\/]* | ?:[\\/]*) 6063 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6064 ;; 6065 *) 6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6067 for as_dir in $PATH 6068 do 6069 IFS=$as_save_IFS 6070 test -z "$as_dir" && as_dir=. 6071 for ac_exec_ext in '' $ac_executable_extensions; do 6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6073 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6075 break 2 6076 fi 6077 done 6078 done 6079 IFS=$as_save_IFS 6080 6081 ;; 6082 esac 6083 fi 6084 DATE=$ac_cv_path_DATE 6085 if test -n "$DATE"; then 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6087 $as_echo "$DATE" >&6; } 6088 else 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6090 $as_echo "no" >&6; } 6091 fi 6092 6093 6094 if test "x$DATE" = x; then 6095 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6096 fi 6097 else 6098 # Otherwise we believe it is a complete path. Use it as it is. 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6100 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6102 $as_echo_n "checking for DATE... " >&6; } 6103 if test ! -x "$tool_specified"; then 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6105 $as_echo "not found" >&6; } 6106 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6107 fi 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6109 $as_echo "$tool_specified" >&6; } 6110 fi 6111 fi 6112 fi 6113 6114 6115 6116 if test "x$DATE" = x; then 6117 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6118 fi 6119 6120 6121 6122 6123 6124 # Publish this variable in the help. 6125 6126 6127 if test "x$DIFF" = x; then 6128 # The variable is not set by user, try to locate tool using the code snippet 6129 for ac_prog in gdiff diff 6130 do 6131 # Extract the first word of "$ac_prog", so it can be a program name with args. 6132 set dummy $ac_prog; ac_word=$2 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6134 $as_echo_n "checking for $ac_word... " >&6; } 6135 if ${ac_cv_path_DIFF+:} false; then : 6136 $as_echo_n "(cached) " >&6 6137 else 6138 case $DIFF in 6139 [\\/]* | ?:[\\/]*) 6140 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6141 ;; 6142 *) 6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144 for as_dir in $PATH 6145 do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6150 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154 done 6155 done 6156 IFS=$as_save_IFS 6157 6158 ;; 6159 esac 6160 fi 6161 DIFF=$ac_cv_path_DIFF 6162 if test -n "$DIFF"; then 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6164 $as_echo "$DIFF" >&6; } 6165 else 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6167 $as_echo "no" >&6; } 6168 fi 6169 6170 6171 test -n "$DIFF" && break 6172 done 6173 6174 else 6175 # The variable is set, but is it from the command line or the environment? 6176 6177 # Try to remove the string !DIFF! from our list. 6178 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6179 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6180 # If it failed, the variable was not from the command line. Ignore it, 6181 # but warn the user (except for BASH, which is always set by the calling BASH). 6182 if test "xDIFF" != xBASH; then 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6184 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6185 fi 6186 # Try to locate tool using the code snippet 6187 for ac_prog in gdiff diff 6188 do 6189 # Extract the first word of "$ac_prog", so it can be a program name with args. 6190 set dummy $ac_prog; ac_word=$2 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6192 $as_echo_n "checking for $ac_word... " >&6; } 6193 if ${ac_cv_path_DIFF+:} false; then : 6194 $as_echo_n "(cached) " >&6 6195 else 6196 case $DIFF in 6197 [\\/]* | ?:[\\/]*) 6198 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6199 ;; 6200 *) 6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6202 for as_dir in $PATH 6203 do 6204 IFS=$as_save_IFS 6205 test -z "$as_dir" && as_dir=. 6206 for ac_exec_ext in '' $ac_executable_extensions; do 6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6208 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6210 break 2 6211 fi 6212 done 6213 done 6214 IFS=$as_save_IFS 6215 6216 ;; 6217 esac 6218 fi 6219 DIFF=$ac_cv_path_DIFF 6220 if test -n "$DIFF"; then 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6222 $as_echo "$DIFF" >&6; } 6223 else 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225 $as_echo "no" >&6; } 6226 fi 6227 6228 6229 test -n "$DIFF" && break 6230 done 6231 6232 else 6233 # If it succeeded, then it was overridden by the user. We will use it 6234 # for the tool. 6235 6236 # First remove it from the list of overridden variables, so we can test 6237 # for unknown variables in the end. 6238 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6239 6240 # Check if the provided tool contains a complete path. 6241 tool_specified="$DIFF" 6242 tool_basename="${tool_specified##*/}" 6243 if test "x$tool_basename" = "x$tool_specified"; then 6244 # A command without a complete path is provided, search $PATH. 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6246 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6247 # Extract the first word of "$tool_basename", so it can be a program name with args. 6248 set dummy $tool_basename; ac_word=$2 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6250 $as_echo_n "checking for $ac_word... " >&6; } 6251 if ${ac_cv_path_DIFF+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253 else 6254 case $DIFF in 6255 [\\/]* | ?:[\\/]*) 6256 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6257 ;; 6258 *) 6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6260 for as_dir in $PATH 6261 do 6262 IFS=$as_save_IFS 6263 test -z "$as_dir" && as_dir=. 6264 for ac_exec_ext in '' $ac_executable_extensions; do 6265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6266 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6268 break 2 6269 fi 6270 done 6271 done 6272 IFS=$as_save_IFS 6273 6274 ;; 6275 esac 6276 fi 6277 DIFF=$ac_cv_path_DIFF 6278 if test -n "$DIFF"; then 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6280 $as_echo "$DIFF" >&6; } 6281 else 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6283 $as_echo "no" >&6; } 6284 fi 6285 6286 6287 if test "x$DIFF" = x; then 6288 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6289 fi 6290 else 6291 # Otherwise we believe it is a complete path. Use it as it is. 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6293 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6295 $as_echo_n "checking for DIFF... " >&6; } 6296 if test ! -x "$tool_specified"; then 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6298 $as_echo "not found" >&6; } 6299 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6300 fi 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6302 $as_echo "$tool_specified" >&6; } 6303 fi 6304 fi 6305 fi 6306 6307 6308 6309 if test "x$DIFF" = x; then 6310 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6311 fi 6312 6313 6314 6315 6316 6317 # Publish this variable in the help. 6318 6319 6320 if test "x$DIRNAME" = x; then 6321 # The variable is not set by user, try to locate tool using the code snippet 6322 for ac_prog in dirname 6323 do 6324 # Extract the first word of "$ac_prog", so it can be a program name with args. 6325 set dummy $ac_prog; ac_word=$2 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6327 $as_echo_n "checking for $ac_word... " >&6; } 6328 if ${ac_cv_path_DIRNAME+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330 else 6331 case $DIRNAME in 6332 [\\/]* | ?:[\\/]*) 6333 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6334 ;; 6335 *) 6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6337 for as_dir in $PATH 6338 do 6339 IFS=$as_save_IFS 6340 test -z "$as_dir" && as_dir=. 6341 for ac_exec_ext in '' $ac_executable_extensions; do 6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6343 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6345 break 2 6346 fi 6347 done 6348 done 6349 IFS=$as_save_IFS 6350 6351 ;; 6352 esac 6353 fi 6354 DIRNAME=$ac_cv_path_DIRNAME 6355 if test -n "$DIRNAME"; then 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6357 $as_echo "$DIRNAME" >&6; } 6358 else 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360 $as_echo "no" >&6; } 6361 fi 6362 6363 6364 test -n "$DIRNAME" && break 6365 done 6366 6367 else 6368 # The variable is set, but is it from the command line or the environment? 6369 6370 # Try to remove the string !DIRNAME! from our list. 6371 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6372 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6373 # If it failed, the variable was not from the command line. Ignore it, 6374 # but warn the user (except for BASH, which is always set by the calling BASH). 6375 if test "xDIRNAME" != xBASH; then 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6377 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6378 fi 6379 # Try to locate tool using the code snippet 6380 for ac_prog in dirname 6381 do 6382 # Extract the first word of "$ac_prog", so it can be a program name with args. 6383 set dummy $ac_prog; ac_word=$2 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6385 $as_echo_n "checking for $ac_word... " >&6; } 6386 if ${ac_cv_path_DIRNAME+:} false; then : 6387 $as_echo_n "(cached) " >&6 6388 else 6389 case $DIRNAME in 6390 [\\/]* | ?:[\\/]*) 6391 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6392 ;; 6393 *) 6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6395 for as_dir in $PATH 6396 do 6397 IFS=$as_save_IFS 6398 test -z "$as_dir" && as_dir=. 6399 for ac_exec_ext in '' $ac_executable_extensions; do 6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6401 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6403 break 2 6404 fi 6405 done 6406 done 6407 IFS=$as_save_IFS 6408 6409 ;; 6410 esac 6411 fi 6412 DIRNAME=$ac_cv_path_DIRNAME 6413 if test -n "$DIRNAME"; then 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6415 $as_echo "$DIRNAME" >&6; } 6416 else 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6418 $as_echo "no" >&6; } 6419 fi 6420 6421 6422 test -n "$DIRNAME" && break 6423 done 6424 6425 else 6426 # If it succeeded, then it was overridden by the user. We will use it 6427 # for the tool. 6428 6429 # First remove it from the list of overridden variables, so we can test 6430 # for unknown variables in the end. 6431 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6432 6433 # Check if the provided tool contains a complete path. 6434 tool_specified="$DIRNAME" 6435 tool_basename="${tool_specified##*/}" 6436 if test "x$tool_basename" = "x$tool_specified"; then 6437 # A command without a complete path is provided, search $PATH. 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6439 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6440 # Extract the first word of "$tool_basename", so it can be a program name with args. 6441 set dummy $tool_basename; ac_word=$2 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6443 $as_echo_n "checking for $ac_word... " >&6; } 6444 if ${ac_cv_path_DIRNAME+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446 else 6447 case $DIRNAME in 6448 [\\/]* | ?:[\\/]*) 6449 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6450 ;; 6451 *) 6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6453 for as_dir in $PATH 6454 do 6455 IFS=$as_save_IFS 6456 test -z "$as_dir" && as_dir=. 6457 for ac_exec_ext in '' $ac_executable_extensions; do 6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6459 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6461 break 2 6462 fi 6463 done 6464 done 6465 IFS=$as_save_IFS 6466 6467 ;; 6468 esac 6469 fi 6470 DIRNAME=$ac_cv_path_DIRNAME 6471 if test -n "$DIRNAME"; then 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6473 $as_echo "$DIRNAME" >&6; } 6474 else 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6476 $as_echo "no" >&6; } 6477 fi 6478 6479 6480 if test "x$DIRNAME" = x; then 6481 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6482 fi 6483 else 6484 # Otherwise we believe it is a complete path. Use it as it is. 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6486 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6488 $as_echo_n "checking for DIRNAME... " >&6; } 6489 if test ! -x "$tool_specified"; then 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6491 $as_echo "not found" >&6; } 6492 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6493 fi 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6495 $as_echo "$tool_specified" >&6; } 6496 fi 6497 fi 6498 fi 6499 6500 6501 6502 if test "x$DIRNAME" = x; then 6503 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6504 fi 6505 6506 6507 6508 6509 6510 # Publish this variable in the help. 6511 6512 6513 if test "x$ECHO" = x; then 6514 # The variable is not set by user, try to locate tool using the code snippet 6515 for ac_prog in echo 6516 do 6517 # Extract the first word of "$ac_prog", so it can be a program name with args. 6518 set dummy $ac_prog; ac_word=$2 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6520 $as_echo_n "checking for $ac_word... " >&6; } 6521 if ${ac_cv_path_ECHO+:} false; then : 6522 $as_echo_n "(cached) " >&6 6523 else 6524 case $ECHO in 6525 [\\/]* | ?:[\\/]*) 6526 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6527 ;; 6528 *) 6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6530 for as_dir in $PATH 6531 do 6532 IFS=$as_save_IFS 6533 test -z "$as_dir" && as_dir=. 6534 for ac_exec_ext in '' $ac_executable_extensions; do 6535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6536 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6538 break 2 6539 fi 6540 done 6541 done 6542 IFS=$as_save_IFS 6543 6544 ;; 6545 esac 6546 fi 6547 ECHO=$ac_cv_path_ECHO 6548 if test -n "$ECHO"; then 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6550 $as_echo "$ECHO" >&6; } 6551 else 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6553 $as_echo "no" >&6; } 6554 fi 6555 6556 6557 test -n "$ECHO" && break 6558 done 6559 6560 else 6561 # The variable is set, but is it from the command line or the environment? 6562 6563 # Try to remove the string !ECHO! from our list. 6564 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6565 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6566 # If it failed, the variable was not from the command line. Ignore it, 6567 # but warn the user (except for BASH, which is always set by the calling BASH). 6568 if test "xECHO" != xBASH; then 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6570 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6571 fi 6572 # Try to locate tool using the code snippet 6573 for ac_prog in echo 6574 do 6575 # Extract the first word of "$ac_prog", so it can be a program name with args. 6576 set dummy $ac_prog; ac_word=$2 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6578 $as_echo_n "checking for $ac_word... " >&6; } 6579 if ${ac_cv_path_ECHO+:} false; then : 6580 $as_echo_n "(cached) " >&6 6581 else 6582 case $ECHO in 6583 [\\/]* | ?:[\\/]*) 6584 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6585 ;; 6586 *) 6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588 for as_dir in $PATH 6589 do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6594 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598 done 6599 done 6600 IFS=$as_save_IFS 6601 6602 ;; 6603 esac 6604 fi 6605 ECHO=$ac_cv_path_ECHO 6606 if test -n "$ECHO"; then 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6608 $as_echo "$ECHO" >&6; } 6609 else 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6611 $as_echo "no" >&6; } 6612 fi 6613 6614 6615 test -n "$ECHO" && break 6616 done 6617 6618 else 6619 # If it succeeded, then it was overridden by the user. We will use it 6620 # for the tool. 6621 6622 # First remove it from the list of overridden variables, so we can test 6623 # for unknown variables in the end. 6624 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6625 6626 # Check if the provided tool contains a complete path. 6627 tool_specified="$ECHO" 6628 tool_basename="${tool_specified##*/}" 6629 if test "x$tool_basename" = "x$tool_specified"; then 6630 # A command without a complete path is provided, search $PATH. 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6632 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6633 # Extract the first word of "$tool_basename", so it can be a program name with args. 6634 set dummy $tool_basename; ac_word=$2 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6636 $as_echo_n "checking for $ac_word... " >&6; } 6637 if ${ac_cv_path_ECHO+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639 else 6640 case $ECHO in 6641 [\\/]* | ?:[\\/]*) 6642 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6643 ;; 6644 *) 6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6646 for as_dir in $PATH 6647 do 6648 IFS=$as_save_IFS 6649 test -z "$as_dir" && as_dir=. 6650 for ac_exec_ext in '' $ac_executable_extensions; do 6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6652 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6654 break 2 6655 fi 6656 done 6657 done 6658 IFS=$as_save_IFS 6659 6660 ;; 6661 esac 6662 fi 6663 ECHO=$ac_cv_path_ECHO 6664 if test -n "$ECHO"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6666 $as_echo "$ECHO" >&6; } 6667 else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669 $as_echo "no" >&6; } 6670 fi 6671 6672 6673 if test "x$ECHO" = x; then 6674 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6675 fi 6676 else 6677 # Otherwise we believe it is a complete path. Use it as it is. 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6679 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6681 $as_echo_n "checking for ECHO... " >&6; } 6682 if test ! -x "$tool_specified"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6684 $as_echo "not found" >&6; } 6685 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6686 fi 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6688 $as_echo "$tool_specified" >&6; } 6689 fi 6690 fi 6691 fi 6692 6693 6694 6695 if test "x$ECHO" = x; then 6696 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6697 fi 6698 6699 6700 6701 6702 6703 # Publish this variable in the help. 6704 6705 6706 if test "x$EXPR" = x; then 6707 # The variable is not set by user, try to locate tool using the code snippet 6708 for ac_prog in expr 6709 do 6710 # Extract the first word of "$ac_prog", so it can be a program name with args. 6711 set dummy $ac_prog; ac_word=$2 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6713 $as_echo_n "checking for $ac_word... " >&6; } 6714 if ${ac_cv_path_EXPR+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716 else 6717 case $EXPR in 6718 [\\/]* | ?:[\\/]*) 6719 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6720 ;; 6721 *) 6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6723 for as_dir in $PATH 6724 do 6725 IFS=$as_save_IFS 6726 test -z "$as_dir" && as_dir=. 6727 for ac_exec_ext in '' $ac_executable_extensions; do 6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6729 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6731 break 2 6732 fi 6733 done 6734 done 6735 IFS=$as_save_IFS 6736 6737 ;; 6738 esac 6739 fi 6740 EXPR=$ac_cv_path_EXPR 6741 if test -n "$EXPR"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6743 $as_echo "$EXPR" >&6; } 6744 else 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746 $as_echo "no" >&6; } 6747 fi 6748 6749 6750 test -n "$EXPR" && break 6751 done 6752 6753 else 6754 # The variable is set, but is it from the command line or the environment? 6755 6756 # Try to remove the string !EXPR! from our list. 6757 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6758 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6759 # If it failed, the variable was not from the command line. Ignore it, 6760 # but warn the user (except for BASH, which is always set by the calling BASH). 6761 if test "xEXPR" != xBASH; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6763 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6764 fi 6765 # Try to locate tool using the code snippet 6766 for ac_prog in expr 6767 do 6768 # Extract the first word of "$ac_prog", so it can be a program name with args. 6769 set dummy $ac_prog; ac_word=$2 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6771 $as_echo_n "checking for $ac_word... " >&6; } 6772 if ${ac_cv_path_EXPR+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774 else 6775 case $EXPR in 6776 [\\/]* | ?:[\\/]*) 6777 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6778 ;; 6779 *) 6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781 for as_dir in $PATH 6782 do 6783 IFS=$as_save_IFS 6784 test -z "$as_dir" && as_dir=. 6785 for ac_exec_ext in '' $ac_executable_extensions; do 6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6787 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 break 2 6790 fi 6791 done 6792 done 6793 IFS=$as_save_IFS 6794 6795 ;; 6796 esac 6797 fi 6798 EXPR=$ac_cv_path_EXPR 6799 if test -n "$EXPR"; then 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6801 $as_echo "$EXPR" >&6; } 6802 else 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6804 $as_echo "no" >&6; } 6805 fi 6806 6807 6808 test -n "$EXPR" && break 6809 done 6810 6811 else 6812 # If it succeeded, then it was overridden by the user. We will use it 6813 # for the tool. 6814 6815 # First remove it from the list of overridden variables, so we can test 6816 # for unknown variables in the end. 6817 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6818 6819 # Check if the provided tool contains a complete path. 6820 tool_specified="$EXPR" 6821 tool_basename="${tool_specified##*/}" 6822 if test "x$tool_basename" = "x$tool_specified"; then 6823 # A command without a complete path is provided, search $PATH. 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6825 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6826 # Extract the first word of "$tool_basename", so it can be a program name with args. 6827 set dummy $tool_basename; ac_word=$2 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6829 $as_echo_n "checking for $ac_word... " >&6; } 6830 if ${ac_cv_path_EXPR+:} false; then : 6831 $as_echo_n "(cached) " >&6 6832 else 6833 case $EXPR in 6834 [\\/]* | ?:[\\/]*) 6835 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6836 ;; 6837 *) 6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839 for as_dir in $PATH 6840 do 6841 IFS=$as_save_IFS 6842 test -z "$as_dir" && as_dir=. 6843 for ac_exec_ext in '' $ac_executable_extensions; do 6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6845 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6847 break 2 6848 fi 6849 done 6850 done 6851 IFS=$as_save_IFS 6852 6853 ;; 6854 esac 6855 fi 6856 EXPR=$ac_cv_path_EXPR 6857 if test -n "$EXPR"; then 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6859 $as_echo "$EXPR" >&6; } 6860 else 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6862 $as_echo "no" >&6; } 6863 fi 6864 6865 6866 if test "x$EXPR" = x; then 6867 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6868 fi 6869 else 6870 # Otherwise we believe it is a complete path. Use it as it is. 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6872 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6874 $as_echo_n "checking for EXPR... " >&6; } 6875 if test ! -x "$tool_specified"; then 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6877 $as_echo "not found" >&6; } 6878 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6879 fi 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6881 $as_echo "$tool_specified" >&6; } 6882 fi 6883 fi 6884 fi 6885 6886 6887 6888 if test "x$EXPR" = x; then 6889 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6890 fi 6891 6892 6893 6894 6895 6896 # Publish this variable in the help. 6897 6898 6899 if test "x$FILE" = x; then 6900 # The variable is not set by user, try to locate tool using the code snippet 6901 for ac_prog in file 6902 do 6903 # Extract the first word of "$ac_prog", so it can be a program name with args. 6904 set dummy $ac_prog; ac_word=$2 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6906 $as_echo_n "checking for $ac_word... " >&6; } 6907 if ${ac_cv_path_FILE+:} false; then : 6908 $as_echo_n "(cached) " >&6 6909 else 6910 case $FILE in 6911 [\\/]* | ?:[\\/]*) 6912 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6913 ;; 6914 *) 6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916 for as_dir in $PATH 6917 do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6922 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926 done 6927 done 6928 IFS=$as_save_IFS 6929 6930 ;; 6931 esac 6932 fi 6933 FILE=$ac_cv_path_FILE 6934 if test -n "$FILE"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6936 $as_echo "$FILE" >&6; } 6937 else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939 $as_echo "no" >&6; } 6940 fi 6941 6942 6943 test -n "$FILE" && break 6944 done 6945 6946 else 6947 # The variable is set, but is it from the command line or the environment? 6948 6949 # Try to remove the string !FILE! from our list. 6950 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6951 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6952 # If it failed, the variable was not from the command line. Ignore it, 6953 # but warn the user (except for BASH, which is always set by the calling BASH). 6954 if test "xFILE" != xBASH; then 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6956 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6957 fi 6958 # Try to locate tool using the code snippet 6959 for ac_prog in file 6960 do 6961 # Extract the first word of "$ac_prog", so it can be a program name with args. 6962 set dummy $ac_prog; ac_word=$2 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6964 $as_echo_n "checking for $ac_word... " >&6; } 6965 if ${ac_cv_path_FILE+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967 else 6968 case $FILE in 6969 [\\/]* | ?:[\\/]*) 6970 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6971 ;; 6972 *) 6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6974 for as_dir in $PATH 6975 do 6976 IFS=$as_save_IFS 6977 test -z "$as_dir" && as_dir=. 6978 for ac_exec_ext in '' $ac_executable_extensions; do 6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6980 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6982 break 2 6983 fi 6984 done 6985 done 6986 IFS=$as_save_IFS 6987 6988 ;; 6989 esac 6990 fi 6991 FILE=$ac_cv_path_FILE 6992 if test -n "$FILE"; then 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6994 $as_echo "$FILE" >&6; } 6995 else 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6997 $as_echo "no" >&6; } 6998 fi 6999 7000 7001 test -n "$FILE" && break 7002 done 7003 7004 else 7005 # If it succeeded, then it was overridden by the user. We will use it 7006 # for the tool. 7007 7008 # First remove it from the list of overridden variables, so we can test 7009 # for unknown variables in the end. 7010 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7011 7012 # Check if the provided tool contains a complete path. 7013 tool_specified="$FILE" 7014 tool_basename="${tool_specified##*/}" 7015 if test "x$tool_basename" = "x$tool_specified"; then 7016 # A command without a complete path is provided, search $PATH. 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7018 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7019 # Extract the first word of "$tool_basename", so it can be a program name with args. 7020 set dummy $tool_basename; ac_word=$2 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7022 $as_echo_n "checking for $ac_word... " >&6; } 7023 if ${ac_cv_path_FILE+:} false; then : 7024 $as_echo_n "(cached) " >&6 7025 else 7026 case $FILE in 7027 [\\/]* | ?:[\\/]*) 7028 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7029 ;; 7030 *) 7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7032 for as_dir in $PATH 7033 do 7034 IFS=$as_save_IFS 7035 test -z "$as_dir" && as_dir=. 7036 for ac_exec_ext in '' $ac_executable_extensions; do 7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7038 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7040 break 2 7041 fi 7042 done 7043 done 7044 IFS=$as_save_IFS 7045 7046 ;; 7047 esac 7048 fi 7049 FILE=$ac_cv_path_FILE 7050 if test -n "$FILE"; then 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7052 $as_echo "$FILE" >&6; } 7053 else 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7055 $as_echo "no" >&6; } 7056 fi 7057 7058 7059 if test "x$FILE" = x; then 7060 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7061 fi 7062 else 7063 # Otherwise we believe it is a complete path. Use it as it is. 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7065 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7067 $as_echo_n "checking for FILE... " >&6; } 7068 if test ! -x "$tool_specified"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7070 $as_echo "not found" >&6; } 7071 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7072 fi 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7074 $as_echo "$tool_specified" >&6; } 7075 fi 7076 fi 7077 fi 7078 7079 7080 7081 if test "x$FILE" = x; then 7082 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7083 fi 7084 7085 7086 7087 7088 7089 # Publish this variable in the help. 7090 7091 7092 if test "x$FIND" = x; then 7093 # The variable is not set by user, try to locate tool using the code snippet 7094 for ac_prog in find 7095 do 7096 # Extract the first word of "$ac_prog", so it can be a program name with args. 7097 set dummy $ac_prog; ac_word=$2 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7099 $as_echo_n "checking for $ac_word... " >&6; } 7100 if ${ac_cv_path_FIND+:} false; then : 7101 $as_echo_n "(cached) " >&6 7102 else 7103 case $FIND in 7104 [\\/]* | ?:[\\/]*) 7105 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7106 ;; 7107 *) 7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7109 for as_dir in $PATH 7110 do 7111 IFS=$as_save_IFS 7112 test -z "$as_dir" && as_dir=. 7113 for ac_exec_ext in '' $ac_executable_extensions; do 7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7115 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7117 break 2 7118 fi 7119 done 7120 done 7121 IFS=$as_save_IFS 7122 7123 ;; 7124 esac 7125 fi 7126 FIND=$ac_cv_path_FIND 7127 if test -n "$FIND"; then 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7129 $as_echo "$FIND" >&6; } 7130 else 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7132 $as_echo "no" >&6; } 7133 fi 7134 7135 7136 test -n "$FIND" && break 7137 done 7138 7139 else 7140 # The variable is set, but is it from the command line or the environment? 7141 7142 # Try to remove the string !FIND! from our list. 7143 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7144 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7145 # If it failed, the variable was not from the command line. Ignore it, 7146 # but warn the user (except for BASH, which is always set by the calling BASH). 7147 if test "xFIND" != xBASH; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7149 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7150 fi 7151 # Try to locate tool using the code snippet 7152 for ac_prog in find 7153 do 7154 # Extract the first word of "$ac_prog", so it can be a program name with args. 7155 set dummy $ac_prog; ac_word=$2 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7157 $as_echo_n "checking for $ac_word... " >&6; } 7158 if ${ac_cv_path_FIND+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160 else 7161 case $FIND in 7162 [\\/]* | ?:[\\/]*) 7163 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7164 ;; 7165 *) 7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7167 for as_dir in $PATH 7168 do 7169 IFS=$as_save_IFS 7170 test -z "$as_dir" && as_dir=. 7171 for ac_exec_ext in '' $ac_executable_extensions; do 7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7173 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7175 break 2 7176 fi 7177 done 7178 done 7179 IFS=$as_save_IFS 7180 7181 ;; 7182 esac 7183 fi 7184 FIND=$ac_cv_path_FIND 7185 if test -n "$FIND"; then 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7187 $as_echo "$FIND" >&6; } 7188 else 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7190 $as_echo "no" >&6; } 7191 fi 7192 7193 7194 test -n "$FIND" && break 7195 done 7196 7197 else 7198 # If it succeeded, then it was overridden by the user. We will use it 7199 # for the tool. 7200 7201 # First remove it from the list of overridden variables, so we can test 7202 # for unknown variables in the end. 7203 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7204 7205 # Check if the provided tool contains a complete path. 7206 tool_specified="$FIND" 7207 tool_basename="${tool_specified##*/}" 7208 if test "x$tool_basename" = "x$tool_specified"; then 7209 # A command without a complete path is provided, search $PATH. 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7211 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7212 # Extract the first word of "$tool_basename", so it can be a program name with args. 7213 set dummy $tool_basename; ac_word=$2 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7215 $as_echo_n "checking for $ac_word... " >&6; } 7216 if ${ac_cv_path_FIND+:} false; then : 7217 $as_echo_n "(cached) " >&6 7218 else 7219 case $FIND in 7220 [\\/]* | ?:[\\/]*) 7221 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7222 ;; 7223 *) 7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7225 for as_dir in $PATH 7226 do 7227 IFS=$as_save_IFS 7228 test -z "$as_dir" && as_dir=. 7229 for ac_exec_ext in '' $ac_executable_extensions; do 7230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7231 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7233 break 2 7234 fi 7235 done 7236 done 7237 IFS=$as_save_IFS 7238 7239 ;; 7240 esac 7241 fi 7242 FIND=$ac_cv_path_FIND 7243 if test -n "$FIND"; then 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7245 $as_echo "$FIND" >&6; } 7246 else 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7248 $as_echo "no" >&6; } 7249 fi 7250 7251 7252 if test "x$FIND" = x; then 7253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7254 fi 7255 else 7256 # Otherwise we believe it is a complete path. Use it as it is. 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7258 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7260 $as_echo_n "checking for FIND... " >&6; } 7261 if test ! -x "$tool_specified"; then 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7263 $as_echo "not found" >&6; } 7264 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7265 fi 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7267 $as_echo "$tool_specified" >&6; } 7268 fi 7269 fi 7270 fi 7271 7272 7273 7274 if test "x$FIND" = x; then 7275 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7276 fi 7277 7278 7279 7280 7281 7282 # Publish this variable in the help. 7283 7284 7285 if test "x$HEAD" = x; then 7286 # The variable is not set by user, try to locate tool using the code snippet 7287 for ac_prog in head 7288 do 7289 # Extract the first word of "$ac_prog", so it can be a program name with args. 7290 set dummy $ac_prog; ac_word=$2 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7292 $as_echo_n "checking for $ac_word... " >&6; } 7293 if ${ac_cv_path_HEAD+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295 else 7296 case $HEAD in 7297 [\\/]* | ?:[\\/]*) 7298 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7299 ;; 7300 *) 7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7302 for as_dir in $PATH 7303 do 7304 IFS=$as_save_IFS 7305 test -z "$as_dir" && as_dir=. 7306 for ac_exec_ext in '' $ac_executable_extensions; do 7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7308 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7310 break 2 7311 fi 7312 done 7313 done 7314 IFS=$as_save_IFS 7315 7316 ;; 7317 esac 7318 fi 7319 HEAD=$ac_cv_path_HEAD 7320 if test -n "$HEAD"; then 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7322 $as_echo "$HEAD" >&6; } 7323 else 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7325 $as_echo "no" >&6; } 7326 fi 7327 7328 7329 test -n "$HEAD" && break 7330 done 7331 7332 else 7333 # The variable is set, but is it from the command line or the environment? 7334 7335 # Try to remove the string !HEAD! from our list. 7336 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7337 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7338 # If it failed, the variable was not from the command line. Ignore it, 7339 # but warn the user (except for BASH, which is always set by the calling BASH). 7340 if test "xHEAD" != xBASH; then 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7342 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7343 fi 7344 # Try to locate tool using the code snippet 7345 for ac_prog in head 7346 do 7347 # Extract the first word of "$ac_prog", so it can be a program name with args. 7348 set dummy $ac_prog; ac_word=$2 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7350 $as_echo_n "checking for $ac_word... " >&6; } 7351 if ${ac_cv_path_HEAD+:} false; then : 7352 $as_echo_n "(cached) " >&6 7353 else 7354 case $HEAD in 7355 [\\/]* | ?:[\\/]*) 7356 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7357 ;; 7358 *) 7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7360 for as_dir in $PATH 7361 do 7362 IFS=$as_save_IFS 7363 test -z "$as_dir" && as_dir=. 7364 for ac_exec_ext in '' $ac_executable_extensions; do 7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7366 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7368 break 2 7369 fi 7370 done 7371 done 7372 IFS=$as_save_IFS 7373 7374 ;; 7375 esac 7376 fi 7377 HEAD=$ac_cv_path_HEAD 7378 if test -n "$HEAD"; then 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7380 $as_echo "$HEAD" >&6; } 7381 else 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7383 $as_echo "no" >&6; } 7384 fi 7385 7386 7387 test -n "$HEAD" && break 7388 done 7389 7390 else 7391 # If it succeeded, then it was overridden by the user. We will use it 7392 # for the tool. 7393 7394 # First remove it from the list of overridden variables, so we can test 7395 # for unknown variables in the end. 7396 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7397 7398 # Check if the provided tool contains a complete path. 7399 tool_specified="$HEAD" 7400 tool_basename="${tool_specified##*/}" 7401 if test "x$tool_basename" = "x$tool_specified"; then 7402 # A command without a complete path is provided, search $PATH. 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7404 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7405 # Extract the first word of "$tool_basename", so it can be a program name with args. 7406 set dummy $tool_basename; ac_word=$2 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7408 $as_echo_n "checking for $ac_word... " >&6; } 7409 if ${ac_cv_path_HEAD+:} false; then : 7410 $as_echo_n "(cached) " >&6 7411 else 7412 case $HEAD in 7413 [\\/]* | ?:[\\/]*) 7414 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7415 ;; 7416 *) 7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7418 for as_dir in $PATH 7419 do 7420 IFS=$as_save_IFS 7421 test -z "$as_dir" && as_dir=. 7422 for ac_exec_ext in '' $ac_executable_extensions; do 7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7424 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7426 break 2 7427 fi 7428 done 7429 done 7430 IFS=$as_save_IFS 7431 7432 ;; 7433 esac 7434 fi 7435 HEAD=$ac_cv_path_HEAD 7436 if test -n "$HEAD"; then 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7438 $as_echo "$HEAD" >&6; } 7439 else 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7441 $as_echo "no" >&6; } 7442 fi 7443 7444 7445 if test "x$HEAD" = x; then 7446 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7447 fi 7448 else 7449 # Otherwise we believe it is a complete path. Use it as it is. 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7451 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7453 $as_echo_n "checking for HEAD... " >&6; } 7454 if test ! -x "$tool_specified"; then 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7456 $as_echo "not found" >&6; } 7457 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7458 fi 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7460 $as_echo "$tool_specified" >&6; } 7461 fi 7462 fi 7463 fi 7464 7465 7466 7467 if test "x$HEAD" = x; then 7468 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7469 fi 7470 7471 7472 7473 7474 7475 # Publish this variable in the help. 7476 7477 7478 if test "x$LN" = x; then 7479 # The variable is not set by user, try to locate tool using the code snippet 7480 for ac_prog in ln 7481 do 7482 # Extract the first word of "$ac_prog", so it can be a program name with args. 7483 set dummy $ac_prog; ac_word=$2 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7485 $as_echo_n "checking for $ac_word... " >&6; } 7486 if ${ac_cv_path_LN+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488 else 7489 case $LN in 7490 [\\/]* | ?:[\\/]*) 7491 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7492 ;; 7493 *) 7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7495 for as_dir in $PATH 7496 do 7497 IFS=$as_save_IFS 7498 test -z "$as_dir" && as_dir=. 7499 for ac_exec_ext in '' $ac_executable_extensions; do 7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7501 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7503 break 2 7504 fi 7505 done 7506 done 7507 IFS=$as_save_IFS 7508 7509 ;; 7510 esac 7511 fi 7512 LN=$ac_cv_path_LN 7513 if test -n "$LN"; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7515 $as_echo "$LN" >&6; } 7516 else 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518 $as_echo "no" >&6; } 7519 fi 7520 7521 7522 test -n "$LN" && break 7523 done 7524 7525 else 7526 # The variable is set, but is it from the command line or the environment? 7527 7528 # Try to remove the string !LN! from our list. 7529 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7530 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7531 # If it failed, the variable was not from the command line. Ignore it, 7532 # but warn the user (except for BASH, which is always set by the calling BASH). 7533 if test "xLN" != xBASH; then 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7535 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7536 fi 7537 # Try to locate tool using the code snippet 7538 for ac_prog in ln 7539 do 7540 # Extract the first word of "$ac_prog", so it can be a program name with args. 7541 set dummy $ac_prog; ac_word=$2 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7543 $as_echo_n "checking for $ac_word... " >&6; } 7544 if ${ac_cv_path_LN+:} false; then : 7545 $as_echo_n "(cached) " >&6 7546 else 7547 case $LN in 7548 [\\/]* | ?:[\\/]*) 7549 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7550 ;; 7551 *) 7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7553 for as_dir in $PATH 7554 do 7555 IFS=$as_save_IFS 7556 test -z "$as_dir" && as_dir=. 7557 for ac_exec_ext in '' $ac_executable_extensions; do 7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7559 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7561 break 2 7562 fi 7563 done 7564 done 7565 IFS=$as_save_IFS 7566 7567 ;; 7568 esac 7569 fi 7570 LN=$ac_cv_path_LN 7571 if test -n "$LN"; then 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7573 $as_echo "$LN" >&6; } 7574 else 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7576 $as_echo "no" >&6; } 7577 fi 7578 7579 7580 test -n "$LN" && break 7581 done 7582 7583 else 7584 # If it succeeded, then it was overridden by the user. We will use it 7585 # for the tool. 7586 7587 # First remove it from the list of overridden variables, so we can test 7588 # for unknown variables in the end. 7589 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7590 7591 # Check if the provided tool contains a complete path. 7592 tool_specified="$LN" 7593 tool_basename="${tool_specified##*/}" 7594 if test "x$tool_basename" = "x$tool_specified"; then 7595 # A command without a complete path is provided, search $PATH. 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7597 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7598 # Extract the first word of "$tool_basename", so it can be a program name with args. 7599 set dummy $tool_basename; ac_word=$2 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7601 $as_echo_n "checking for $ac_word... " >&6; } 7602 if ${ac_cv_path_LN+:} false; then : 7603 $as_echo_n "(cached) " >&6 7604 else 7605 case $LN in 7606 [\\/]* | ?:[\\/]*) 7607 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7608 ;; 7609 *) 7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7611 for as_dir in $PATH 7612 do 7613 IFS=$as_save_IFS 7614 test -z "$as_dir" && as_dir=. 7615 for ac_exec_ext in '' $ac_executable_extensions; do 7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7617 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7619 break 2 7620 fi 7621 done 7622 done 7623 IFS=$as_save_IFS 7624 7625 ;; 7626 esac 7627 fi 7628 LN=$ac_cv_path_LN 7629 if test -n "$LN"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7631 $as_echo "$LN" >&6; } 7632 else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634 $as_echo "no" >&6; } 7635 fi 7636 7637 7638 if test "x$LN" = x; then 7639 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7640 fi 7641 else 7642 # Otherwise we believe it is a complete path. Use it as it is. 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7644 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7646 $as_echo_n "checking for LN... " >&6; } 7647 if test ! -x "$tool_specified"; then 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7649 $as_echo "not found" >&6; } 7650 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7651 fi 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7653 $as_echo "$tool_specified" >&6; } 7654 fi 7655 fi 7656 fi 7657 7658 7659 7660 if test "x$LN" = x; then 7661 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7662 fi 7663 7664 7665 7666 7667 7668 # Publish this variable in the help. 7669 7670 7671 if test "x$LS" = x; then 7672 # The variable is not set by user, try to locate tool using the code snippet 7673 for ac_prog in ls 7674 do 7675 # Extract the first word of "$ac_prog", so it can be a program name with args. 7676 set dummy $ac_prog; ac_word=$2 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7678 $as_echo_n "checking for $ac_word... " >&6; } 7679 if ${ac_cv_path_LS+:} false; then : 7680 $as_echo_n "(cached) " >&6 7681 else 7682 case $LS in 7683 [\\/]* | ?:[\\/]*) 7684 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7685 ;; 7686 *) 7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7688 for as_dir in $PATH 7689 do 7690 IFS=$as_save_IFS 7691 test -z "$as_dir" && as_dir=. 7692 for ac_exec_ext in '' $ac_executable_extensions; do 7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7694 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7696 break 2 7697 fi 7698 done 7699 done 7700 IFS=$as_save_IFS 7701 7702 ;; 7703 esac 7704 fi 7705 LS=$ac_cv_path_LS 7706 if test -n "$LS"; then 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7708 $as_echo "$LS" >&6; } 7709 else 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7711 $as_echo "no" >&6; } 7712 fi 7713 7714 7715 test -n "$LS" && break 7716 done 7717 7718 else 7719 # The variable is set, but is it from the command line or the environment? 7720 7721 # Try to remove the string !LS! from our list. 7722 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7723 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7724 # If it failed, the variable was not from the command line. Ignore it, 7725 # but warn the user (except for BASH, which is always set by the calling BASH). 7726 if test "xLS" != xBASH; then 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7728 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7729 fi 7730 # Try to locate tool using the code snippet 7731 for ac_prog in ls 7732 do 7733 # Extract the first word of "$ac_prog", so it can be a program name with args. 7734 set dummy $ac_prog; ac_word=$2 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7736 $as_echo_n "checking for $ac_word... " >&6; } 7737 if ${ac_cv_path_LS+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739 else 7740 case $LS in 7741 [\\/]* | ?:[\\/]*) 7742 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7743 ;; 7744 *) 7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7746 for as_dir in $PATH 7747 do 7748 IFS=$as_save_IFS 7749 test -z "$as_dir" && as_dir=. 7750 for ac_exec_ext in '' $ac_executable_extensions; do 7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7752 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7754 break 2 7755 fi 7756 done 7757 done 7758 IFS=$as_save_IFS 7759 7760 ;; 7761 esac 7762 fi 7763 LS=$ac_cv_path_LS 7764 if test -n "$LS"; then 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7766 $as_echo "$LS" >&6; } 7767 else 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7769 $as_echo "no" >&6; } 7770 fi 7771 7772 7773 test -n "$LS" && break 7774 done 7775 7776 else 7777 # If it succeeded, then it was overridden by the user. We will use it 7778 # for the tool. 7779 7780 # First remove it from the list of overridden variables, so we can test 7781 # for unknown variables in the end. 7782 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7783 7784 # Check if the provided tool contains a complete path. 7785 tool_specified="$LS" 7786 tool_basename="${tool_specified##*/}" 7787 if test "x$tool_basename" = "x$tool_specified"; then 7788 # A command without a complete path is provided, search $PATH. 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7790 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7791 # Extract the first word of "$tool_basename", so it can be a program name with args. 7792 set dummy $tool_basename; ac_word=$2 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7794 $as_echo_n "checking for $ac_word... " >&6; } 7795 if ${ac_cv_path_LS+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797 else 7798 case $LS in 7799 [\\/]* | ?:[\\/]*) 7800 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7801 ;; 7802 *) 7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7804 for as_dir in $PATH 7805 do 7806 IFS=$as_save_IFS 7807 test -z "$as_dir" && as_dir=. 7808 for ac_exec_ext in '' $ac_executable_extensions; do 7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7810 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7812 break 2 7813 fi 7814 done 7815 done 7816 IFS=$as_save_IFS 7817 7818 ;; 7819 esac 7820 fi 7821 LS=$ac_cv_path_LS 7822 if test -n "$LS"; then 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7824 $as_echo "$LS" >&6; } 7825 else 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7827 $as_echo "no" >&6; } 7828 fi 7829 7830 7831 if test "x$LS" = x; then 7832 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7833 fi 7834 else 7835 # Otherwise we believe it is a complete path. Use it as it is. 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7837 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7839 $as_echo_n "checking for LS... " >&6; } 7840 if test ! -x "$tool_specified"; then 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7842 $as_echo "not found" >&6; } 7843 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7844 fi 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7846 $as_echo "$tool_specified" >&6; } 7847 fi 7848 fi 7849 fi 7850 7851 7852 7853 if test "x$LS" = x; then 7854 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7855 fi 7856 7857 7858 7859 7860 7861 # Publish this variable in the help. 7862 7863 7864 if test "x$MKDIR" = x; then 7865 # The variable is not set by user, try to locate tool using the code snippet 7866 for ac_prog in mkdir 7867 do 7868 # Extract the first word of "$ac_prog", so it can be a program name with args. 7869 set dummy $ac_prog; ac_word=$2 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7871 $as_echo_n "checking for $ac_word... " >&6; } 7872 if ${ac_cv_path_MKDIR+:} false; then : 7873 $as_echo_n "(cached) " >&6 7874 else 7875 case $MKDIR in 7876 [\\/]* | ?:[\\/]*) 7877 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7878 ;; 7879 *) 7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7881 for as_dir in $PATH 7882 do 7883 IFS=$as_save_IFS 7884 test -z "$as_dir" && as_dir=. 7885 for ac_exec_ext in '' $ac_executable_extensions; do 7886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7887 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7889 break 2 7890 fi 7891 done 7892 done 7893 IFS=$as_save_IFS 7894 7895 ;; 7896 esac 7897 fi 7898 MKDIR=$ac_cv_path_MKDIR 7899 if test -n "$MKDIR"; then 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7901 $as_echo "$MKDIR" >&6; } 7902 else 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7904 $as_echo "no" >&6; } 7905 fi 7906 7907 7908 test -n "$MKDIR" && break 7909 done 7910 7911 else 7912 # The variable is set, but is it from the command line or the environment? 7913 7914 # Try to remove the string !MKDIR! from our list. 7915 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7916 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7917 # If it failed, the variable was not from the command line. Ignore it, 7918 # but warn the user (except for BASH, which is always set by the calling BASH). 7919 if test "xMKDIR" != xBASH; then 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7921 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7922 fi 7923 # Try to locate tool using the code snippet 7924 for ac_prog in mkdir 7925 do 7926 # Extract the first word of "$ac_prog", so it can be a program name with args. 7927 set dummy $ac_prog; ac_word=$2 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7929 $as_echo_n "checking for $ac_word... " >&6; } 7930 if ${ac_cv_path_MKDIR+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932 else 7933 case $MKDIR in 7934 [\\/]* | ?:[\\/]*) 7935 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7936 ;; 7937 *) 7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7939 for as_dir in $PATH 7940 do 7941 IFS=$as_save_IFS 7942 test -z "$as_dir" && as_dir=. 7943 for ac_exec_ext in '' $ac_executable_extensions; do 7944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7945 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7947 break 2 7948 fi 7949 done 7950 done 7951 IFS=$as_save_IFS 7952 7953 ;; 7954 esac 7955 fi 7956 MKDIR=$ac_cv_path_MKDIR 7957 if test -n "$MKDIR"; then 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7959 $as_echo "$MKDIR" >&6; } 7960 else 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7962 $as_echo "no" >&6; } 7963 fi 7964 7965 7966 test -n "$MKDIR" && break 7967 done 7968 7969 else 7970 # If it succeeded, then it was overridden by the user. We will use it 7971 # for the tool. 7972 7973 # First remove it from the list of overridden variables, so we can test 7974 # for unknown variables in the end. 7975 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7976 7977 # Check if the provided tool contains a complete path. 7978 tool_specified="$MKDIR" 7979 tool_basename="${tool_specified##*/}" 7980 if test "x$tool_basename" = "x$tool_specified"; then 7981 # A command without a complete path is provided, search $PATH. 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 7983 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 7984 # Extract the first word of "$tool_basename", so it can be a program name with args. 7985 set dummy $tool_basename; ac_word=$2 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7987 $as_echo_n "checking for $ac_word... " >&6; } 7988 if ${ac_cv_path_MKDIR+:} false; then : 7989 $as_echo_n "(cached) " >&6 7990 else 7991 case $MKDIR in 7992 [\\/]* | ?:[\\/]*) 7993 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7994 ;; 7995 *) 7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7997 for as_dir in $PATH 7998 do 7999 IFS=$as_save_IFS 8000 test -z "$as_dir" && as_dir=. 8001 for ac_exec_ext in '' $ac_executable_extensions; do 8002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8003 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8005 break 2 8006 fi 8007 done 8008 done 8009 IFS=$as_save_IFS 8010 8011 ;; 8012 esac 8013 fi 8014 MKDIR=$ac_cv_path_MKDIR 8015 if test -n "$MKDIR"; then 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8017 $as_echo "$MKDIR" >&6; } 8018 else 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8020 $as_echo "no" >&6; } 8021 fi 8022 8023 8024 if test "x$MKDIR" = x; then 8025 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8026 fi 8027 else 8028 # Otherwise we believe it is a complete path. Use it as it is. 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8030 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8032 $as_echo_n "checking for MKDIR... " >&6; } 8033 if test ! -x "$tool_specified"; then 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8035 $as_echo "not found" >&6; } 8036 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8037 fi 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8039 $as_echo "$tool_specified" >&6; } 8040 fi 8041 fi 8042 fi 8043 8044 8045 8046 if test "x$MKDIR" = x; then 8047 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8048 fi 8049 8050 8051 8052 8053 8054 # Publish this variable in the help. 8055 8056 8057 if test "x$MKTEMP" = x; then 8058 # The variable is not set by user, try to locate tool using the code snippet 8059 for ac_prog in mktemp 8060 do 8061 # Extract the first word of "$ac_prog", so it can be a program name with args. 8062 set dummy $ac_prog; ac_word=$2 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8064 $as_echo_n "checking for $ac_word... " >&6; } 8065 if ${ac_cv_path_MKTEMP+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067 else 8068 case $MKTEMP in 8069 [\\/]* | ?:[\\/]*) 8070 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8071 ;; 8072 *) 8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8074 for as_dir in $PATH 8075 do 8076 IFS=$as_save_IFS 8077 test -z "$as_dir" && as_dir=. 8078 for ac_exec_ext in '' $ac_executable_extensions; do 8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8080 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8082 break 2 8083 fi 8084 done 8085 done 8086 IFS=$as_save_IFS 8087 8088 ;; 8089 esac 8090 fi 8091 MKTEMP=$ac_cv_path_MKTEMP 8092 if test -n "$MKTEMP"; then 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8094 $as_echo "$MKTEMP" >&6; } 8095 else 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8097 $as_echo "no" >&6; } 8098 fi 8099 8100 8101 test -n "$MKTEMP" && break 8102 done 8103 8104 else 8105 # The variable is set, but is it from the command line or the environment? 8106 8107 # Try to remove the string !MKTEMP! from our list. 8108 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8109 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8110 # If it failed, the variable was not from the command line. Ignore it, 8111 # but warn the user (except for BASH, which is always set by the calling BASH). 8112 if test "xMKTEMP" != xBASH; then 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8114 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8115 fi 8116 # Try to locate tool using the code snippet 8117 for ac_prog in mktemp 8118 do 8119 # Extract the first word of "$ac_prog", so it can be a program name with args. 8120 set dummy $ac_prog; ac_word=$2 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8122 $as_echo_n "checking for $ac_word... " >&6; } 8123 if ${ac_cv_path_MKTEMP+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125 else 8126 case $MKTEMP in 8127 [\\/]* | ?:[\\/]*) 8128 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8129 ;; 8130 *) 8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132 for as_dir in $PATH 8133 do 8134 IFS=$as_save_IFS 8135 test -z "$as_dir" && as_dir=. 8136 for ac_exec_ext in '' $ac_executable_extensions; do 8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8138 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8140 break 2 8141 fi 8142 done 8143 done 8144 IFS=$as_save_IFS 8145 8146 ;; 8147 esac 8148 fi 8149 MKTEMP=$ac_cv_path_MKTEMP 8150 if test -n "$MKTEMP"; then 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8152 $as_echo "$MKTEMP" >&6; } 8153 else 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8155 $as_echo "no" >&6; } 8156 fi 8157 8158 8159 test -n "$MKTEMP" && break 8160 done 8161 8162 else 8163 # If it succeeded, then it was overridden by the user. We will use it 8164 # for the tool. 8165 8166 # First remove it from the list of overridden variables, so we can test 8167 # for unknown variables in the end. 8168 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8169 8170 # Check if the provided tool contains a complete path. 8171 tool_specified="$MKTEMP" 8172 tool_basename="${tool_specified##*/}" 8173 if test "x$tool_basename" = "x$tool_specified"; then 8174 # A command without a complete path is provided, search $PATH. 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8176 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8177 # Extract the first word of "$tool_basename", so it can be a program name with args. 8178 set dummy $tool_basename; ac_word=$2 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8180 $as_echo_n "checking for $ac_word... " >&6; } 8181 if ${ac_cv_path_MKTEMP+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183 else 8184 case $MKTEMP in 8185 [\\/]* | ?:[\\/]*) 8186 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8187 ;; 8188 *) 8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190 for as_dir in $PATH 8191 do 8192 IFS=$as_save_IFS 8193 test -z "$as_dir" && as_dir=. 8194 for ac_exec_ext in '' $ac_executable_extensions; do 8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8196 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8198 break 2 8199 fi 8200 done 8201 done 8202 IFS=$as_save_IFS 8203 8204 ;; 8205 esac 8206 fi 8207 MKTEMP=$ac_cv_path_MKTEMP 8208 if test -n "$MKTEMP"; then 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8210 $as_echo "$MKTEMP" >&6; } 8211 else 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8213 $as_echo "no" >&6; } 8214 fi 8215 8216 8217 if test "x$MKTEMP" = x; then 8218 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8219 fi 8220 else 8221 # Otherwise we believe it is a complete path. Use it as it is. 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8223 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8225 $as_echo_n "checking for MKTEMP... " >&6; } 8226 if test ! -x "$tool_specified"; then 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8228 $as_echo "not found" >&6; } 8229 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8230 fi 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8232 $as_echo "$tool_specified" >&6; } 8233 fi 8234 fi 8235 fi 8236 8237 8238 8239 if test "x$MKTEMP" = x; then 8240 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8241 fi 8242 8243 8244 8245 8246 8247 # Publish this variable in the help. 8248 8249 8250 if test "x$MV" = x; then 8251 # The variable is not set by user, try to locate tool using the code snippet 8252 for ac_prog in mv 8253 do 8254 # Extract the first word of "$ac_prog", so it can be a program name with args. 8255 set dummy $ac_prog; ac_word=$2 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8257 $as_echo_n "checking for $ac_word... " >&6; } 8258 if ${ac_cv_path_MV+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260 else 8261 case $MV in 8262 [\\/]* | ?:[\\/]*) 8263 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8264 ;; 8265 *) 8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8267 for as_dir in $PATH 8268 do 8269 IFS=$as_save_IFS 8270 test -z "$as_dir" && as_dir=. 8271 for ac_exec_ext in '' $ac_executable_extensions; do 8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8273 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8275 break 2 8276 fi 8277 done 8278 done 8279 IFS=$as_save_IFS 8280 8281 ;; 8282 esac 8283 fi 8284 MV=$ac_cv_path_MV 8285 if test -n "$MV"; then 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8287 $as_echo "$MV" >&6; } 8288 else 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8290 $as_echo "no" >&6; } 8291 fi 8292 8293 8294 test -n "$MV" && break 8295 done 8296 8297 else 8298 # The variable is set, but is it from the command line or the environment? 8299 8300 # Try to remove the string !MV! from our list. 8301 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8302 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8303 # If it failed, the variable was not from the command line. Ignore it, 8304 # but warn the user (except for BASH, which is always set by the calling BASH). 8305 if test "xMV" != xBASH; then 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8307 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8308 fi 8309 # Try to locate tool using the code snippet 8310 for ac_prog in mv 8311 do 8312 # Extract the first word of "$ac_prog", so it can be a program name with args. 8313 set dummy $ac_prog; ac_word=$2 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8315 $as_echo_n "checking for $ac_word... " >&6; } 8316 if ${ac_cv_path_MV+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318 else 8319 case $MV in 8320 [\\/]* | ?:[\\/]*) 8321 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8322 ;; 8323 *) 8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8325 for as_dir in $PATH 8326 do 8327 IFS=$as_save_IFS 8328 test -z "$as_dir" && as_dir=. 8329 for ac_exec_ext in '' $ac_executable_extensions; do 8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8331 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8333 break 2 8334 fi 8335 done 8336 done 8337 IFS=$as_save_IFS 8338 8339 ;; 8340 esac 8341 fi 8342 MV=$ac_cv_path_MV 8343 if test -n "$MV"; then 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8345 $as_echo "$MV" >&6; } 8346 else 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8348 $as_echo "no" >&6; } 8349 fi 8350 8351 8352 test -n "$MV" && break 8353 done 8354 8355 else 8356 # If it succeeded, then it was overridden by the user. We will use it 8357 # for the tool. 8358 8359 # First remove it from the list of overridden variables, so we can test 8360 # for unknown variables in the end. 8361 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8362 8363 # Check if the provided tool contains a complete path. 8364 tool_specified="$MV" 8365 tool_basename="${tool_specified##*/}" 8366 if test "x$tool_basename" = "x$tool_specified"; then 8367 # A command without a complete path is provided, search $PATH. 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8369 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8370 # Extract the first word of "$tool_basename", so it can be a program name with args. 8371 set dummy $tool_basename; ac_word=$2 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8373 $as_echo_n "checking for $ac_word... " >&6; } 8374 if ${ac_cv_path_MV+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376 else 8377 case $MV in 8378 [\\/]* | ?:[\\/]*) 8379 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8380 ;; 8381 *) 8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8383 for as_dir in $PATH 8384 do 8385 IFS=$as_save_IFS 8386 test -z "$as_dir" && as_dir=. 8387 for ac_exec_ext in '' $ac_executable_extensions; do 8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8389 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8391 break 2 8392 fi 8393 done 8394 done 8395 IFS=$as_save_IFS 8396 8397 ;; 8398 esac 8399 fi 8400 MV=$ac_cv_path_MV 8401 if test -n "$MV"; then 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8403 $as_echo "$MV" >&6; } 8404 else 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8406 $as_echo "no" >&6; } 8407 fi 8408 8409 8410 if test "x$MV" = x; then 8411 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8412 fi 8413 else 8414 # Otherwise we believe it is a complete path. Use it as it is. 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8416 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8418 $as_echo_n "checking for MV... " >&6; } 8419 if test ! -x "$tool_specified"; then 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8421 $as_echo "not found" >&6; } 8422 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8423 fi 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8425 $as_echo "$tool_specified" >&6; } 8426 fi 8427 fi 8428 fi 8429 8430 8431 8432 if test "x$MV" = x; then 8433 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8434 fi 8435 8436 8437 8438 8439 8440 # Publish this variable in the help. 8441 8442 8443 if test "x$NAWK" = x; then 8444 # The variable is not set by user, try to locate tool using the code snippet 8445 for ac_prog in nawk gawk awk 8446 do 8447 # Extract the first word of "$ac_prog", so it can be a program name with args. 8448 set dummy $ac_prog; ac_word=$2 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8450 $as_echo_n "checking for $ac_word... " >&6; } 8451 if ${ac_cv_path_NAWK+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453 else 8454 case $NAWK in 8455 [\\/]* | ?:[\\/]*) 8456 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8457 ;; 8458 *) 8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8460 for as_dir in $PATH 8461 do 8462 IFS=$as_save_IFS 8463 test -z "$as_dir" && as_dir=. 8464 for ac_exec_ext in '' $ac_executable_extensions; do 8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8466 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8468 break 2 8469 fi 8470 done 8471 done 8472 IFS=$as_save_IFS 8473 8474 ;; 8475 esac 8476 fi 8477 NAWK=$ac_cv_path_NAWK 8478 if test -n "$NAWK"; then 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8480 $as_echo "$NAWK" >&6; } 8481 else 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8483 $as_echo "no" >&6; } 8484 fi 8485 8486 8487 test -n "$NAWK" && break 8488 done 8489 8490 else 8491 # The variable is set, but is it from the command line or the environment? 8492 8493 # Try to remove the string !NAWK! from our list. 8494 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8495 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8496 # If it failed, the variable was not from the command line. Ignore it, 8497 # but warn the user (except for BASH, which is always set by the calling BASH). 8498 if test "xNAWK" != xBASH; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8500 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8501 fi 8502 # Try to locate tool using the code snippet 8503 for ac_prog in nawk gawk awk 8504 do 8505 # Extract the first word of "$ac_prog", so it can be a program name with args. 8506 set dummy $ac_prog; ac_word=$2 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8508 $as_echo_n "checking for $ac_word... " >&6; } 8509 if ${ac_cv_path_NAWK+:} false; then : 8510 $as_echo_n "(cached) " >&6 8511 else 8512 case $NAWK in 8513 [\\/]* | ?:[\\/]*) 8514 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8515 ;; 8516 *) 8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8518 for as_dir in $PATH 8519 do 8520 IFS=$as_save_IFS 8521 test -z "$as_dir" && as_dir=. 8522 for ac_exec_ext in '' $ac_executable_extensions; do 8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8524 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8526 break 2 8527 fi 8528 done 8529 done 8530 IFS=$as_save_IFS 8531 8532 ;; 8533 esac 8534 fi 8535 NAWK=$ac_cv_path_NAWK 8536 if test -n "$NAWK"; then 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8538 $as_echo "$NAWK" >&6; } 8539 else 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8541 $as_echo "no" >&6; } 8542 fi 8543 8544 8545 test -n "$NAWK" && break 8546 done 8547 8548 else 8549 # If it succeeded, then it was overridden by the user. We will use it 8550 # for the tool. 8551 8552 # First remove it from the list of overridden variables, so we can test 8553 # for unknown variables in the end. 8554 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8555 8556 # Check if the provided tool contains a complete path. 8557 tool_specified="$NAWK" 8558 tool_basename="${tool_specified##*/}" 8559 if test "x$tool_basename" = "x$tool_specified"; then 8560 # A command without a complete path is provided, search $PATH. 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8562 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8563 # Extract the first word of "$tool_basename", so it can be a program name with args. 8564 set dummy $tool_basename; ac_word=$2 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8566 $as_echo_n "checking for $ac_word... " >&6; } 8567 if ${ac_cv_path_NAWK+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569 else 8570 case $NAWK in 8571 [\\/]* | ?:[\\/]*) 8572 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8573 ;; 8574 *) 8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8576 for as_dir in $PATH 8577 do 8578 IFS=$as_save_IFS 8579 test -z "$as_dir" && as_dir=. 8580 for ac_exec_ext in '' $ac_executable_extensions; do 8581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8582 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8584 break 2 8585 fi 8586 done 8587 done 8588 IFS=$as_save_IFS 8589 8590 ;; 8591 esac 8592 fi 8593 NAWK=$ac_cv_path_NAWK 8594 if test -n "$NAWK"; then 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8596 $as_echo "$NAWK" >&6; } 8597 else 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8599 $as_echo "no" >&6; } 8600 fi 8601 8602 8603 if test "x$NAWK" = x; then 8604 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8605 fi 8606 else 8607 # Otherwise we believe it is a complete path. Use it as it is. 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8609 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8611 $as_echo_n "checking for NAWK... " >&6; } 8612 if test ! -x "$tool_specified"; then 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8614 $as_echo "not found" >&6; } 8615 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8616 fi 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8618 $as_echo "$tool_specified" >&6; } 8619 fi 8620 fi 8621 fi 8622 8623 8624 8625 if test "x$NAWK" = x; then 8626 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8627 fi 8628 8629 8630 8631 8632 8633 # Publish this variable in the help. 8634 8635 8636 if test "x$PRINTF" = x; then 8637 # The variable is not set by user, try to locate tool using the code snippet 8638 for ac_prog in printf 8639 do 8640 # Extract the first word of "$ac_prog", so it can be a program name with args. 8641 set dummy $ac_prog; ac_word=$2 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8643 $as_echo_n "checking for $ac_word... " >&6; } 8644 if ${ac_cv_path_PRINTF+:} false; then : 8645 $as_echo_n "(cached) " >&6 8646 else 8647 case $PRINTF in 8648 [\\/]* | ?:[\\/]*) 8649 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8650 ;; 8651 *) 8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8653 for as_dir in $PATH 8654 do 8655 IFS=$as_save_IFS 8656 test -z "$as_dir" && as_dir=. 8657 for ac_exec_ext in '' $ac_executable_extensions; do 8658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8659 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8661 break 2 8662 fi 8663 done 8664 done 8665 IFS=$as_save_IFS 8666 8667 ;; 8668 esac 8669 fi 8670 PRINTF=$ac_cv_path_PRINTF 8671 if test -n "$PRINTF"; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8673 $as_echo "$PRINTF" >&6; } 8674 else 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8676 $as_echo "no" >&6; } 8677 fi 8678 8679 8680 test -n "$PRINTF" && break 8681 done 8682 8683 else 8684 # The variable is set, but is it from the command line or the environment? 8685 8686 # Try to remove the string !PRINTF! from our list. 8687 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8688 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8689 # If it failed, the variable was not from the command line. Ignore it, 8690 # but warn the user (except for BASH, which is always set by the calling BASH). 8691 if test "xPRINTF" != xBASH; then 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8693 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8694 fi 8695 # Try to locate tool using the code snippet 8696 for ac_prog in printf 8697 do 8698 # Extract the first word of "$ac_prog", so it can be a program name with args. 8699 set dummy $ac_prog; ac_word=$2 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8701 $as_echo_n "checking for $ac_word... " >&6; } 8702 if ${ac_cv_path_PRINTF+:} false; then : 8703 $as_echo_n "(cached) " >&6 8704 else 8705 case $PRINTF in 8706 [\\/]* | ?:[\\/]*) 8707 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8708 ;; 8709 *) 8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8711 for as_dir in $PATH 8712 do 8713 IFS=$as_save_IFS 8714 test -z "$as_dir" && as_dir=. 8715 for ac_exec_ext in '' $ac_executable_extensions; do 8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8717 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8719 break 2 8720 fi 8721 done 8722 done 8723 IFS=$as_save_IFS 8724 8725 ;; 8726 esac 8727 fi 8728 PRINTF=$ac_cv_path_PRINTF 8729 if test -n "$PRINTF"; then 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8731 $as_echo "$PRINTF" >&6; } 8732 else 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8734 $as_echo "no" >&6; } 8735 fi 8736 8737 8738 test -n "$PRINTF" && break 8739 done 8740 8741 else 8742 # If it succeeded, then it was overridden by the user. We will use it 8743 # for the tool. 8744 8745 # First remove it from the list of overridden variables, so we can test 8746 # for unknown variables in the end. 8747 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8748 8749 # Check if the provided tool contains a complete path. 8750 tool_specified="$PRINTF" 8751 tool_basename="${tool_specified##*/}" 8752 if test "x$tool_basename" = "x$tool_specified"; then 8753 # A command without a complete path is provided, search $PATH. 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8755 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8756 # Extract the first word of "$tool_basename", so it can be a program name with args. 8757 set dummy $tool_basename; ac_word=$2 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8759 $as_echo_n "checking for $ac_word... " >&6; } 8760 if ${ac_cv_path_PRINTF+:} false; then : 8761 $as_echo_n "(cached) " >&6 8762 else 8763 case $PRINTF in 8764 [\\/]* | ?:[\\/]*) 8765 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8766 ;; 8767 *) 8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8769 for as_dir in $PATH 8770 do 8771 IFS=$as_save_IFS 8772 test -z "$as_dir" && as_dir=. 8773 for ac_exec_ext in '' $ac_executable_extensions; do 8774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8775 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8777 break 2 8778 fi 8779 done 8780 done 8781 IFS=$as_save_IFS 8782 8783 ;; 8784 esac 8785 fi 8786 PRINTF=$ac_cv_path_PRINTF 8787 if test -n "$PRINTF"; then 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8789 $as_echo "$PRINTF" >&6; } 8790 else 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8792 $as_echo "no" >&6; } 8793 fi 8794 8795 8796 if test "x$PRINTF" = x; then 8797 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8798 fi 8799 else 8800 # Otherwise we believe it is a complete path. Use it as it is. 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8802 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8804 $as_echo_n "checking for PRINTF... " >&6; } 8805 if test ! -x "$tool_specified"; then 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8807 $as_echo "not found" >&6; } 8808 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8809 fi 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8811 $as_echo "$tool_specified" >&6; } 8812 fi 8813 fi 8814 fi 8815 8816 8817 8818 if test "x$PRINTF" = x; then 8819 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8820 fi 8821 8822 8823 8824 8825 8826 # Publish this variable in the help. 8827 8828 8829 if test "x$RM" = x; then 8830 # The variable is not set by user, try to locate tool using the code snippet 8831 for ac_prog in rm 8832 do 8833 # Extract the first word of "$ac_prog", so it can be a program name with args. 8834 set dummy $ac_prog; ac_word=$2 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8836 $as_echo_n "checking for $ac_word... " >&6; } 8837 if ${ac_cv_path_RM+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839 else 8840 case $RM in 8841 [\\/]* | ?:[\\/]*) 8842 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8843 ;; 8844 *) 8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8846 for as_dir in $PATH 8847 do 8848 IFS=$as_save_IFS 8849 test -z "$as_dir" && as_dir=. 8850 for ac_exec_ext in '' $ac_executable_extensions; do 8851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8852 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8854 break 2 8855 fi 8856 done 8857 done 8858 IFS=$as_save_IFS 8859 8860 ;; 8861 esac 8862 fi 8863 RM=$ac_cv_path_RM 8864 if test -n "$RM"; then 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8866 $as_echo "$RM" >&6; } 8867 else 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8869 $as_echo "no" >&6; } 8870 fi 8871 8872 8873 test -n "$RM" && break 8874 done 8875 8876 else 8877 # The variable is set, but is it from the command line or the environment? 8878 8879 # Try to remove the string !RM! from our list. 8880 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8881 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8882 # If it failed, the variable was not from the command line. Ignore it, 8883 # but warn the user (except for BASH, which is always set by the calling BASH). 8884 if test "xRM" != xBASH; then 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8886 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8887 fi 8888 # Try to locate tool using the code snippet 8889 for ac_prog in rm 8890 do 8891 # Extract the first word of "$ac_prog", so it can be a program name with args. 8892 set dummy $ac_prog; ac_word=$2 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8894 $as_echo_n "checking for $ac_word... " >&6; } 8895 if ${ac_cv_path_RM+:} false; then : 8896 $as_echo_n "(cached) " >&6 8897 else 8898 case $RM in 8899 [\\/]* | ?:[\\/]*) 8900 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8901 ;; 8902 *) 8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8904 for as_dir in $PATH 8905 do 8906 IFS=$as_save_IFS 8907 test -z "$as_dir" && as_dir=. 8908 for ac_exec_ext in '' $ac_executable_extensions; do 8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8910 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8912 break 2 8913 fi 8914 done 8915 done 8916 IFS=$as_save_IFS 8917 8918 ;; 8919 esac 8920 fi 8921 RM=$ac_cv_path_RM 8922 if test -n "$RM"; then 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8924 $as_echo "$RM" >&6; } 8925 else 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8927 $as_echo "no" >&6; } 8928 fi 8929 8930 8931 test -n "$RM" && break 8932 done 8933 8934 else 8935 # If it succeeded, then it was overridden by the user. We will use it 8936 # for the tool. 8937 8938 # First remove it from the list of overridden variables, so we can test 8939 # for unknown variables in the end. 8940 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8941 8942 # Check if the provided tool contains a complete path. 8943 tool_specified="$RM" 8944 tool_basename="${tool_specified##*/}" 8945 if test "x$tool_basename" = "x$tool_specified"; then 8946 # A command without a complete path is provided, search $PATH. 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8948 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8949 # Extract the first word of "$tool_basename", so it can be a program name with args. 8950 set dummy $tool_basename; ac_word=$2 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8952 $as_echo_n "checking for $ac_word... " >&6; } 8953 if ${ac_cv_path_RM+:} false; then : 8954 $as_echo_n "(cached) " >&6 8955 else 8956 case $RM in 8957 [\\/]* | ?:[\\/]*) 8958 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8959 ;; 8960 *) 8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8962 for as_dir in $PATH 8963 do 8964 IFS=$as_save_IFS 8965 test -z "$as_dir" && as_dir=. 8966 for ac_exec_ext in '' $ac_executable_extensions; do 8967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8968 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8970 break 2 8971 fi 8972 done 8973 done 8974 IFS=$as_save_IFS 8975 8976 ;; 8977 esac 8978 fi 8979 RM=$ac_cv_path_RM 8980 if test -n "$RM"; then 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8982 $as_echo "$RM" >&6; } 8983 else 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8985 $as_echo "no" >&6; } 8986 fi 8987 8988 8989 if test "x$RM" = x; then 8990 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8991 fi 8992 else 8993 # Otherwise we believe it is a complete path. Use it as it is. 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 8995 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 8997 $as_echo_n "checking for RM... " >&6; } 8998 if test ! -x "$tool_specified"; then 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9000 $as_echo "not found" >&6; } 9001 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9002 fi 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9004 $as_echo "$tool_specified" >&6; } 9005 fi 9006 fi 9007 fi 9008 9009 9010 9011 if test "x$RM" = x; then 9012 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9013 fi 9014 9015 9016 9017 9018 9019 # Publish this variable in the help. 9020 9021 9022 if test "x$SH" = x; then 9023 # The variable is not set by user, try to locate tool using the code snippet 9024 for ac_prog in sh 9025 do 9026 # Extract the first word of "$ac_prog", so it can be a program name with args. 9027 set dummy $ac_prog; ac_word=$2 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9029 $as_echo_n "checking for $ac_word... " >&6; } 9030 if ${ac_cv_path_SH+:} false; then : 9031 $as_echo_n "(cached) " >&6 9032 else 9033 case $SH in 9034 [\\/]* | ?:[\\/]*) 9035 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9036 ;; 9037 *) 9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9039 for as_dir in $PATH 9040 do 9041 IFS=$as_save_IFS 9042 test -z "$as_dir" && as_dir=. 9043 for ac_exec_ext in '' $ac_executable_extensions; do 9044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9045 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9047 break 2 9048 fi 9049 done 9050 done 9051 IFS=$as_save_IFS 9052 9053 ;; 9054 esac 9055 fi 9056 SH=$ac_cv_path_SH 9057 if test -n "$SH"; then 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9059 $as_echo "$SH" >&6; } 9060 else 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9062 $as_echo "no" >&6; } 9063 fi 9064 9065 9066 test -n "$SH" && break 9067 done 9068 9069 else 9070 # The variable is set, but is it from the command line or the environment? 9071 9072 # Try to remove the string !SH! from our list. 9073 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9074 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9075 # If it failed, the variable was not from the command line. Ignore it, 9076 # but warn the user (except for BASH, which is always set by the calling BASH). 9077 if test "xSH" != xBASH; then 9078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9079 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9080 fi 9081 # Try to locate tool using the code snippet 9082 for ac_prog in sh 9083 do 9084 # Extract the first word of "$ac_prog", so it can be a program name with args. 9085 set dummy $ac_prog; ac_word=$2 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9087 $as_echo_n "checking for $ac_word... " >&6; } 9088 if ${ac_cv_path_SH+:} false; then : 9089 $as_echo_n "(cached) " >&6 9090 else 9091 case $SH in 9092 [\\/]* | ?:[\\/]*) 9093 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9094 ;; 9095 *) 9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9097 for as_dir in $PATH 9098 do 9099 IFS=$as_save_IFS 9100 test -z "$as_dir" && as_dir=. 9101 for ac_exec_ext in '' $ac_executable_extensions; do 9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9103 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9105 break 2 9106 fi 9107 done 9108 done 9109 IFS=$as_save_IFS 9110 9111 ;; 9112 esac 9113 fi 9114 SH=$ac_cv_path_SH 9115 if test -n "$SH"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9117 $as_echo "$SH" >&6; } 9118 else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120 $as_echo "no" >&6; } 9121 fi 9122 9123 9124 test -n "$SH" && break 9125 done 9126 9127 else 9128 # If it succeeded, then it was overridden by the user. We will use it 9129 # for the tool. 9130 9131 # First remove it from the list of overridden variables, so we can test 9132 # for unknown variables in the end. 9133 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9134 9135 # Check if the provided tool contains a complete path. 9136 tool_specified="$SH" 9137 tool_basename="${tool_specified##*/}" 9138 if test "x$tool_basename" = "x$tool_specified"; then 9139 # A command without a complete path is provided, search $PATH. 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9141 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9142 # Extract the first word of "$tool_basename", so it can be a program name with args. 9143 set dummy $tool_basename; ac_word=$2 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9145 $as_echo_n "checking for $ac_word... " >&6; } 9146 if ${ac_cv_path_SH+:} false; then : 9147 $as_echo_n "(cached) " >&6 9148 else 9149 case $SH in 9150 [\\/]* | ?:[\\/]*) 9151 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9152 ;; 9153 *) 9154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9155 for as_dir in $PATH 9156 do 9157 IFS=$as_save_IFS 9158 test -z "$as_dir" && as_dir=. 9159 for ac_exec_ext in '' $ac_executable_extensions; do 9160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9161 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9163 break 2 9164 fi 9165 done 9166 done 9167 IFS=$as_save_IFS 9168 9169 ;; 9170 esac 9171 fi 9172 SH=$ac_cv_path_SH 9173 if test -n "$SH"; then 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9175 $as_echo "$SH" >&6; } 9176 else 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9178 $as_echo "no" >&6; } 9179 fi 9180 9181 9182 if test "x$SH" = x; then 9183 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9184 fi 9185 else 9186 # Otherwise we believe it is a complete path. Use it as it is. 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9188 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9190 $as_echo_n "checking for SH... " >&6; } 9191 if test ! -x "$tool_specified"; then 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9193 $as_echo "not found" >&6; } 9194 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9195 fi 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9197 $as_echo "$tool_specified" >&6; } 9198 fi 9199 fi 9200 fi 9201 9202 9203 9204 if test "x$SH" = x; then 9205 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9206 fi 9207 9208 9209 9210 9211 9212 # Publish this variable in the help. 9213 9214 9215 if test "x$SORT" = x; then 9216 # The variable is not set by user, try to locate tool using the code snippet 9217 for ac_prog in sort 9218 do 9219 # Extract the first word of "$ac_prog", so it can be a program name with args. 9220 set dummy $ac_prog; ac_word=$2 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9222 $as_echo_n "checking for $ac_word... " >&6; } 9223 if ${ac_cv_path_SORT+:} false; then : 9224 $as_echo_n "(cached) " >&6 9225 else 9226 case $SORT in 9227 [\\/]* | ?:[\\/]*) 9228 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9229 ;; 9230 *) 9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9232 for as_dir in $PATH 9233 do 9234 IFS=$as_save_IFS 9235 test -z "$as_dir" && as_dir=. 9236 for ac_exec_ext in '' $ac_executable_extensions; do 9237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9238 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9240 break 2 9241 fi 9242 done 9243 done 9244 IFS=$as_save_IFS 9245 9246 ;; 9247 esac 9248 fi 9249 SORT=$ac_cv_path_SORT 9250 if test -n "$SORT"; then 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9252 $as_echo "$SORT" >&6; } 9253 else 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9255 $as_echo "no" >&6; } 9256 fi 9257 9258 9259 test -n "$SORT" && break 9260 done 9261 9262 else 9263 # The variable is set, but is it from the command line or the environment? 9264 9265 # Try to remove the string !SORT! from our list. 9266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9268 # If it failed, the variable was not from the command line. Ignore it, 9269 # but warn the user (except for BASH, which is always set by the calling BASH). 9270 if test "xSORT" != xBASH; then 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9272 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9273 fi 9274 # Try to locate tool using the code snippet 9275 for ac_prog in sort 9276 do 9277 # Extract the first word of "$ac_prog", so it can be a program name with args. 9278 set dummy $ac_prog; ac_word=$2 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9280 $as_echo_n "checking for $ac_word... " >&6; } 9281 if ${ac_cv_path_SORT+:} false; then : 9282 $as_echo_n "(cached) " >&6 9283 else 9284 case $SORT in 9285 [\\/]* | ?:[\\/]*) 9286 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9287 ;; 9288 *) 9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9290 for as_dir in $PATH 9291 do 9292 IFS=$as_save_IFS 9293 test -z "$as_dir" && as_dir=. 9294 for ac_exec_ext in '' $ac_executable_extensions; do 9295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9296 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9298 break 2 9299 fi 9300 done 9301 done 9302 IFS=$as_save_IFS 9303 9304 ;; 9305 esac 9306 fi 9307 SORT=$ac_cv_path_SORT 9308 if test -n "$SORT"; then 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9310 $as_echo "$SORT" >&6; } 9311 else 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9313 $as_echo "no" >&6; } 9314 fi 9315 9316 9317 test -n "$SORT" && break 9318 done 9319 9320 else 9321 # If it succeeded, then it was overridden by the user. We will use it 9322 # for the tool. 9323 9324 # First remove it from the list of overridden variables, so we can test 9325 # for unknown variables in the end. 9326 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9327 9328 # Check if the provided tool contains a complete path. 9329 tool_specified="$SORT" 9330 tool_basename="${tool_specified##*/}" 9331 if test "x$tool_basename" = "x$tool_specified"; then 9332 # A command without a complete path is provided, search $PATH. 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9334 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9335 # Extract the first word of "$tool_basename", so it can be a program name with args. 9336 set dummy $tool_basename; ac_word=$2 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9338 $as_echo_n "checking for $ac_word... " >&6; } 9339 if ${ac_cv_path_SORT+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341 else 9342 case $SORT in 9343 [\\/]* | ?:[\\/]*) 9344 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9345 ;; 9346 *) 9347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9348 for as_dir in $PATH 9349 do 9350 IFS=$as_save_IFS 9351 test -z "$as_dir" && as_dir=. 9352 for ac_exec_ext in '' $ac_executable_extensions; do 9353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9354 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9356 break 2 9357 fi 9358 done 9359 done 9360 IFS=$as_save_IFS 9361 9362 ;; 9363 esac 9364 fi 9365 SORT=$ac_cv_path_SORT 9366 if test -n "$SORT"; then 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9368 $as_echo "$SORT" >&6; } 9369 else 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9371 $as_echo "no" >&6; } 9372 fi 9373 9374 9375 if test "x$SORT" = x; then 9376 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9377 fi 9378 else 9379 # Otherwise we believe it is a complete path. Use it as it is. 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9381 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9383 $as_echo_n "checking for SORT... " >&6; } 9384 if test ! -x "$tool_specified"; then 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9386 $as_echo "not found" >&6; } 9387 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9388 fi 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9390 $as_echo "$tool_specified" >&6; } 9391 fi 9392 fi 9393 fi 9394 9395 9396 9397 if test "x$SORT" = x; then 9398 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9399 fi 9400 9401 9402 9403 9404 9405 # Publish this variable in the help. 9406 9407 9408 if test "x$TAIL" = x; then 9409 # The variable is not set by user, try to locate tool using the code snippet 9410 for ac_prog in tail 9411 do 9412 # Extract the first word of "$ac_prog", so it can be a program name with args. 9413 set dummy $ac_prog; ac_word=$2 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9415 $as_echo_n "checking for $ac_word... " >&6; } 9416 if ${ac_cv_path_TAIL+:} false; then : 9417 $as_echo_n "(cached) " >&6 9418 else 9419 case $TAIL in 9420 [\\/]* | ?:[\\/]*) 9421 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9422 ;; 9423 *) 9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9425 for as_dir in $PATH 9426 do 9427 IFS=$as_save_IFS 9428 test -z "$as_dir" && as_dir=. 9429 for ac_exec_ext in '' $ac_executable_extensions; do 9430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9431 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9433 break 2 9434 fi 9435 done 9436 done 9437 IFS=$as_save_IFS 9438 9439 ;; 9440 esac 9441 fi 9442 TAIL=$ac_cv_path_TAIL 9443 if test -n "$TAIL"; then 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9445 $as_echo "$TAIL" >&6; } 9446 else 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9448 $as_echo "no" >&6; } 9449 fi 9450 9451 9452 test -n "$TAIL" && break 9453 done 9454 9455 else 9456 # The variable is set, but is it from the command line or the environment? 9457 9458 # Try to remove the string !TAIL! from our list. 9459 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9460 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9461 # If it failed, the variable was not from the command line. Ignore it, 9462 # but warn the user (except for BASH, which is always set by the calling BASH). 9463 if test "xTAIL" != xBASH; then 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9465 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9466 fi 9467 # Try to locate tool using the code snippet 9468 for ac_prog in tail 9469 do 9470 # Extract the first word of "$ac_prog", so it can be a program name with args. 9471 set dummy $ac_prog; ac_word=$2 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9473 $as_echo_n "checking for $ac_word... " >&6; } 9474 if ${ac_cv_path_TAIL+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476 else 9477 case $TAIL in 9478 [\\/]* | ?:[\\/]*) 9479 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9480 ;; 9481 *) 9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9483 for as_dir in $PATH 9484 do 9485 IFS=$as_save_IFS 9486 test -z "$as_dir" && as_dir=. 9487 for ac_exec_ext in '' $ac_executable_extensions; do 9488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9489 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9491 break 2 9492 fi 9493 done 9494 done 9495 IFS=$as_save_IFS 9496 9497 ;; 9498 esac 9499 fi 9500 TAIL=$ac_cv_path_TAIL 9501 if test -n "$TAIL"; then 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9503 $as_echo "$TAIL" >&6; } 9504 else 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9506 $as_echo "no" >&6; } 9507 fi 9508 9509 9510 test -n "$TAIL" && break 9511 done 9512 9513 else 9514 # If it succeeded, then it was overridden by the user. We will use it 9515 # for the tool. 9516 9517 # First remove it from the list of overridden variables, so we can test 9518 # for unknown variables in the end. 9519 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9520 9521 # Check if the provided tool contains a complete path. 9522 tool_specified="$TAIL" 9523 tool_basename="${tool_specified##*/}" 9524 if test "x$tool_basename" = "x$tool_specified"; then 9525 # A command without a complete path is provided, search $PATH. 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9527 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9528 # Extract the first word of "$tool_basename", so it can be a program name with args. 9529 set dummy $tool_basename; ac_word=$2 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9531 $as_echo_n "checking for $ac_word... " >&6; } 9532 if ${ac_cv_path_TAIL+:} false; then : 9533 $as_echo_n "(cached) " >&6 9534 else 9535 case $TAIL in 9536 [\\/]* | ?:[\\/]*) 9537 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9538 ;; 9539 *) 9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9541 for as_dir in $PATH 9542 do 9543 IFS=$as_save_IFS 9544 test -z "$as_dir" && as_dir=. 9545 for ac_exec_ext in '' $ac_executable_extensions; do 9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9547 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9549 break 2 9550 fi 9551 done 9552 done 9553 IFS=$as_save_IFS 9554 9555 ;; 9556 esac 9557 fi 9558 TAIL=$ac_cv_path_TAIL 9559 if test -n "$TAIL"; then 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9561 $as_echo "$TAIL" >&6; } 9562 else 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9564 $as_echo "no" >&6; } 9565 fi 9566 9567 9568 if test "x$TAIL" = x; then 9569 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9570 fi 9571 else 9572 # Otherwise we believe it is a complete path. Use it as it is. 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9574 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9576 $as_echo_n "checking for TAIL... " >&6; } 9577 if test ! -x "$tool_specified"; then 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9579 $as_echo "not found" >&6; } 9580 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9581 fi 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9583 $as_echo "$tool_specified" >&6; } 9584 fi 9585 fi 9586 fi 9587 9588 9589 9590 if test "x$TAIL" = x; then 9591 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9592 fi 9593 9594 9595 9596 9597 9598 # Publish this variable in the help. 9599 9600 9601 if test "x$TAR" = x; then 9602 # The variable is not set by user, try to locate tool using the code snippet 9603 for ac_prog in tar 9604 do 9605 # Extract the first word of "$ac_prog", so it can be a program name with args. 9606 set dummy $ac_prog; ac_word=$2 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9608 $as_echo_n "checking for $ac_word... " >&6; } 9609 if ${ac_cv_path_TAR+:} false; then : 9610 $as_echo_n "(cached) " >&6 9611 else 9612 case $TAR in 9613 [\\/]* | ?:[\\/]*) 9614 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9615 ;; 9616 *) 9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9618 for as_dir in $PATH 9619 do 9620 IFS=$as_save_IFS 9621 test -z "$as_dir" && as_dir=. 9622 for ac_exec_ext in '' $ac_executable_extensions; do 9623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9624 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9626 break 2 9627 fi 9628 done 9629 done 9630 IFS=$as_save_IFS 9631 9632 ;; 9633 esac 9634 fi 9635 TAR=$ac_cv_path_TAR 9636 if test -n "$TAR"; then 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9638 $as_echo "$TAR" >&6; } 9639 else 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9641 $as_echo "no" >&6; } 9642 fi 9643 9644 9645 test -n "$TAR" && break 9646 done 9647 9648 else 9649 # The variable is set, but is it from the command line or the environment? 9650 9651 # Try to remove the string !TAR! from our list. 9652 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9653 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9654 # If it failed, the variable was not from the command line. Ignore it, 9655 # but warn the user (except for BASH, which is always set by the calling BASH). 9656 if test "xTAR" != xBASH; then 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9658 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9659 fi 9660 # Try to locate tool using the code snippet 9661 for ac_prog in tar 9662 do 9663 # Extract the first word of "$ac_prog", so it can be a program name with args. 9664 set dummy $ac_prog; ac_word=$2 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9666 $as_echo_n "checking for $ac_word... " >&6; } 9667 if ${ac_cv_path_TAR+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669 else 9670 case $TAR in 9671 [\\/]* | ?:[\\/]*) 9672 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9673 ;; 9674 *) 9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9676 for as_dir in $PATH 9677 do 9678 IFS=$as_save_IFS 9679 test -z "$as_dir" && as_dir=. 9680 for ac_exec_ext in '' $ac_executable_extensions; do 9681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9682 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9684 break 2 9685 fi 9686 done 9687 done 9688 IFS=$as_save_IFS 9689 9690 ;; 9691 esac 9692 fi 9693 TAR=$ac_cv_path_TAR 9694 if test -n "$TAR"; then 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9696 $as_echo "$TAR" >&6; } 9697 else 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9699 $as_echo "no" >&6; } 9700 fi 9701 9702 9703 test -n "$TAR" && break 9704 done 9705 9706 else 9707 # If it succeeded, then it was overridden by the user. We will use it 9708 # for the tool. 9709 9710 # First remove it from the list of overridden variables, so we can test 9711 # for unknown variables in the end. 9712 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9713 9714 # Check if the provided tool contains a complete path. 9715 tool_specified="$TAR" 9716 tool_basename="${tool_specified##*/}" 9717 if test "x$tool_basename" = "x$tool_specified"; then 9718 # A command without a complete path is provided, search $PATH. 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9720 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9721 # Extract the first word of "$tool_basename", so it can be a program name with args. 9722 set dummy $tool_basename; ac_word=$2 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9724 $as_echo_n "checking for $ac_word... " >&6; } 9725 if ${ac_cv_path_TAR+:} false; then : 9726 $as_echo_n "(cached) " >&6 9727 else 9728 case $TAR in 9729 [\\/]* | ?:[\\/]*) 9730 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9731 ;; 9732 *) 9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9734 for as_dir in $PATH 9735 do 9736 IFS=$as_save_IFS 9737 test -z "$as_dir" && as_dir=. 9738 for ac_exec_ext in '' $ac_executable_extensions; do 9739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9740 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9742 break 2 9743 fi 9744 done 9745 done 9746 IFS=$as_save_IFS 9747 9748 ;; 9749 esac 9750 fi 9751 TAR=$ac_cv_path_TAR 9752 if test -n "$TAR"; then 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9754 $as_echo "$TAR" >&6; } 9755 else 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9757 $as_echo "no" >&6; } 9758 fi 9759 9760 9761 if test "x$TAR" = x; then 9762 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9763 fi 9764 else 9765 # Otherwise we believe it is a complete path. Use it as it is. 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9767 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9769 $as_echo_n "checking for TAR... " >&6; } 9770 if test ! -x "$tool_specified"; then 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9772 $as_echo "not found" >&6; } 9773 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9774 fi 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9776 $as_echo "$tool_specified" >&6; } 9777 fi 9778 fi 9779 fi 9780 9781 9782 9783 if test "x$TAR" = x; then 9784 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9785 fi 9786 9787 9788 9789 9790 9791 # Publish this variable in the help. 9792 9793 9794 if test "x$TEE" = x; then 9795 # The variable is not set by user, try to locate tool using the code snippet 9796 for ac_prog in tee 9797 do 9798 # Extract the first word of "$ac_prog", so it can be a program name with args. 9799 set dummy $ac_prog; ac_word=$2 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9801 $as_echo_n "checking for $ac_word... " >&6; } 9802 if ${ac_cv_path_TEE+:} false; then : 9803 $as_echo_n "(cached) " >&6 9804 else 9805 case $TEE in 9806 [\\/]* | ?:[\\/]*) 9807 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9808 ;; 9809 *) 9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9811 for as_dir in $PATH 9812 do 9813 IFS=$as_save_IFS 9814 test -z "$as_dir" && as_dir=. 9815 for ac_exec_ext in '' $ac_executable_extensions; do 9816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9817 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9819 break 2 9820 fi 9821 done 9822 done 9823 IFS=$as_save_IFS 9824 9825 ;; 9826 esac 9827 fi 9828 TEE=$ac_cv_path_TEE 9829 if test -n "$TEE"; then 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9831 $as_echo "$TEE" >&6; } 9832 else 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9834 $as_echo "no" >&6; } 9835 fi 9836 9837 9838 test -n "$TEE" && break 9839 done 9840 9841 else 9842 # The variable is set, but is it from the command line or the environment? 9843 9844 # Try to remove the string !TEE! from our list. 9845 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9846 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9847 # If it failed, the variable was not from the command line. Ignore it, 9848 # but warn the user (except for BASH, which is always set by the calling BASH). 9849 if test "xTEE" != xBASH; then 9850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9851 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9852 fi 9853 # Try to locate tool using the code snippet 9854 for ac_prog in tee 9855 do 9856 # Extract the first word of "$ac_prog", so it can be a program name with args. 9857 set dummy $ac_prog; ac_word=$2 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9859 $as_echo_n "checking for $ac_word... " >&6; } 9860 if ${ac_cv_path_TEE+:} false; then : 9861 $as_echo_n "(cached) " >&6 9862 else 9863 case $TEE in 9864 [\\/]* | ?:[\\/]*) 9865 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9866 ;; 9867 *) 9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9869 for as_dir in $PATH 9870 do 9871 IFS=$as_save_IFS 9872 test -z "$as_dir" && as_dir=. 9873 for ac_exec_ext in '' $ac_executable_extensions; do 9874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9875 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9877 break 2 9878 fi 9879 done 9880 done 9881 IFS=$as_save_IFS 9882 9883 ;; 9884 esac 9885 fi 9886 TEE=$ac_cv_path_TEE 9887 if test -n "$TEE"; then 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9889 $as_echo "$TEE" >&6; } 9890 else 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9892 $as_echo "no" >&6; } 9893 fi 9894 9895 9896 test -n "$TEE" && break 9897 done 9898 9899 else 9900 # If it succeeded, then it was overridden by the user. We will use it 9901 # for the tool. 9902 9903 # First remove it from the list of overridden variables, so we can test 9904 # for unknown variables in the end. 9905 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9906 9907 # Check if the provided tool contains a complete path. 9908 tool_specified="$TEE" 9909 tool_basename="${tool_specified##*/}" 9910 if test "x$tool_basename" = "x$tool_specified"; then 9911 # A command without a complete path is provided, search $PATH. 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9913 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9914 # Extract the first word of "$tool_basename", so it can be a program name with args. 9915 set dummy $tool_basename; ac_word=$2 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9917 $as_echo_n "checking for $ac_word... " >&6; } 9918 if ${ac_cv_path_TEE+:} false; then : 9919 $as_echo_n "(cached) " >&6 9920 else 9921 case $TEE in 9922 [\\/]* | ?:[\\/]*) 9923 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9924 ;; 9925 *) 9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9927 for as_dir in $PATH 9928 do 9929 IFS=$as_save_IFS 9930 test -z "$as_dir" && as_dir=. 9931 for ac_exec_ext in '' $ac_executable_extensions; do 9932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9933 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9935 break 2 9936 fi 9937 done 9938 done 9939 IFS=$as_save_IFS 9940 9941 ;; 9942 esac 9943 fi 9944 TEE=$ac_cv_path_TEE 9945 if test -n "$TEE"; then 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9947 $as_echo "$TEE" >&6; } 9948 else 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9950 $as_echo "no" >&6; } 9951 fi 9952 9953 9954 if test "x$TEE" = x; then 9955 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9956 fi 9957 else 9958 # Otherwise we believe it is a complete path. Use it as it is. 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9960 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9962 $as_echo_n "checking for TEE... " >&6; } 9963 if test ! -x "$tool_specified"; then 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9965 $as_echo "not found" >&6; } 9966 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9967 fi 9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9969 $as_echo "$tool_specified" >&6; } 9970 fi 9971 fi 9972 fi 9973 9974 9975 9976 if test "x$TEE" = x; then 9977 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 9978 fi 9979 9980 9981 9982 9983 9984 # Publish this variable in the help. 9985 9986 9987 if test "x$TOUCH" = x; then 9988 # The variable is not set by user, try to locate tool using the code snippet 9989 for ac_prog in touch 9990 do 9991 # Extract the first word of "$ac_prog", so it can be a program name with args. 9992 set dummy $ac_prog; ac_word=$2 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9994 $as_echo_n "checking for $ac_word... " >&6; } 9995 if ${ac_cv_path_TOUCH+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997 else 9998 case $TOUCH in 9999 [\\/]* | ?:[\\/]*) 10000 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10001 ;; 10002 *) 10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10004 for as_dir in $PATH 10005 do 10006 IFS=$as_save_IFS 10007 test -z "$as_dir" && as_dir=. 10008 for ac_exec_ext in '' $ac_executable_extensions; do 10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10010 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10012 break 2 10013 fi 10014 done 10015 done 10016 IFS=$as_save_IFS 10017 10018 ;; 10019 esac 10020 fi 10021 TOUCH=$ac_cv_path_TOUCH 10022 if test -n "$TOUCH"; then 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10024 $as_echo "$TOUCH" >&6; } 10025 else 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10027 $as_echo "no" >&6; } 10028 fi 10029 10030 10031 test -n "$TOUCH" && break 10032 done 10033 10034 else 10035 # The variable is set, but is it from the command line or the environment? 10036 10037 # Try to remove the string !TOUCH! from our list. 10038 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10039 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10040 # If it failed, the variable was not from the command line. Ignore it, 10041 # but warn the user (except for BASH, which is always set by the calling BASH). 10042 if test "xTOUCH" != xBASH; then 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10044 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10045 fi 10046 # Try to locate tool using the code snippet 10047 for ac_prog in touch 10048 do 10049 # Extract the first word of "$ac_prog", so it can be a program name with args. 10050 set dummy $ac_prog; ac_word=$2 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10052 $as_echo_n "checking for $ac_word... " >&6; } 10053 if ${ac_cv_path_TOUCH+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055 else 10056 case $TOUCH in 10057 [\\/]* | ?:[\\/]*) 10058 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10059 ;; 10060 *) 10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10062 for as_dir in $PATH 10063 do 10064 IFS=$as_save_IFS 10065 test -z "$as_dir" && as_dir=. 10066 for ac_exec_ext in '' $ac_executable_extensions; do 10067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10068 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10070 break 2 10071 fi 10072 done 10073 done 10074 IFS=$as_save_IFS 10075 10076 ;; 10077 esac 10078 fi 10079 TOUCH=$ac_cv_path_TOUCH 10080 if test -n "$TOUCH"; then 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10082 $as_echo "$TOUCH" >&6; } 10083 else 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10085 $as_echo "no" >&6; } 10086 fi 10087 10088 10089 test -n "$TOUCH" && break 10090 done 10091 10092 else 10093 # If it succeeded, then it was overridden by the user. We will use it 10094 # for the tool. 10095 10096 # First remove it from the list of overridden variables, so we can test 10097 # for unknown variables in the end. 10098 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10099 10100 # Check if the provided tool contains a complete path. 10101 tool_specified="$TOUCH" 10102 tool_basename="${tool_specified##*/}" 10103 if test "x$tool_basename" = "x$tool_specified"; then 10104 # A command without a complete path is provided, search $PATH. 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10106 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10107 # Extract the first word of "$tool_basename", so it can be a program name with args. 10108 set dummy $tool_basename; ac_word=$2 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10110 $as_echo_n "checking for $ac_word... " >&6; } 10111 if ${ac_cv_path_TOUCH+:} false; then : 10112 $as_echo_n "(cached) " >&6 10113 else 10114 case $TOUCH in 10115 [\\/]* | ?:[\\/]*) 10116 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10117 ;; 10118 *) 10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10120 for as_dir in $PATH 10121 do 10122 IFS=$as_save_IFS 10123 test -z "$as_dir" && as_dir=. 10124 for ac_exec_ext in '' $ac_executable_extensions; do 10125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10126 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10128 break 2 10129 fi 10130 done 10131 done 10132 IFS=$as_save_IFS 10133 10134 ;; 10135 esac 10136 fi 10137 TOUCH=$ac_cv_path_TOUCH 10138 if test -n "$TOUCH"; then 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10140 $as_echo "$TOUCH" >&6; } 10141 else 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10143 $as_echo "no" >&6; } 10144 fi 10145 10146 10147 if test "x$TOUCH" = x; then 10148 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10149 fi 10150 else 10151 # Otherwise we believe it is a complete path. Use it as it is. 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10153 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10155 $as_echo_n "checking for TOUCH... " >&6; } 10156 if test ! -x "$tool_specified"; then 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10158 $as_echo "not found" >&6; } 10159 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10160 fi 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10162 $as_echo "$tool_specified" >&6; } 10163 fi 10164 fi 10165 fi 10166 10167 10168 10169 if test "x$TOUCH" = x; then 10170 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10171 fi 10172 10173 10174 10175 10176 10177 # Publish this variable in the help. 10178 10179 10180 if test "x$TR" = x; then 10181 # The variable is not set by user, try to locate tool using the code snippet 10182 for ac_prog in tr 10183 do 10184 # Extract the first word of "$ac_prog", so it can be a program name with args. 10185 set dummy $ac_prog; ac_word=$2 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10187 $as_echo_n "checking for $ac_word... " >&6; } 10188 if ${ac_cv_path_TR+:} false; then : 10189 $as_echo_n "(cached) " >&6 10190 else 10191 case $TR in 10192 [\\/]* | ?:[\\/]*) 10193 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10194 ;; 10195 *) 10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10197 for as_dir in $PATH 10198 do 10199 IFS=$as_save_IFS 10200 test -z "$as_dir" && as_dir=. 10201 for ac_exec_ext in '' $ac_executable_extensions; do 10202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10203 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10205 break 2 10206 fi 10207 done 10208 done 10209 IFS=$as_save_IFS 10210 10211 ;; 10212 esac 10213 fi 10214 TR=$ac_cv_path_TR 10215 if test -n "$TR"; then 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10217 $as_echo "$TR" >&6; } 10218 else 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10220 $as_echo "no" >&6; } 10221 fi 10222 10223 10224 test -n "$TR" && break 10225 done 10226 10227 else 10228 # The variable is set, but is it from the command line or the environment? 10229 10230 # Try to remove the string !TR! from our list. 10231 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10232 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10233 # If it failed, the variable was not from the command line. Ignore it, 10234 # but warn the user (except for BASH, which is always set by the calling BASH). 10235 if test "xTR" != xBASH; then 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10237 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10238 fi 10239 # Try to locate tool using the code snippet 10240 for ac_prog in tr 10241 do 10242 # Extract the first word of "$ac_prog", so it can be a program name with args. 10243 set dummy $ac_prog; ac_word=$2 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10245 $as_echo_n "checking for $ac_word... " >&6; } 10246 if ${ac_cv_path_TR+:} false; then : 10247 $as_echo_n "(cached) " >&6 10248 else 10249 case $TR in 10250 [\\/]* | ?:[\\/]*) 10251 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10252 ;; 10253 *) 10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10255 for as_dir in $PATH 10256 do 10257 IFS=$as_save_IFS 10258 test -z "$as_dir" && as_dir=. 10259 for ac_exec_ext in '' $ac_executable_extensions; do 10260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10261 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10263 break 2 10264 fi 10265 done 10266 done 10267 IFS=$as_save_IFS 10268 10269 ;; 10270 esac 10271 fi 10272 TR=$ac_cv_path_TR 10273 if test -n "$TR"; then 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10275 $as_echo "$TR" >&6; } 10276 else 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10278 $as_echo "no" >&6; } 10279 fi 10280 10281 10282 test -n "$TR" && break 10283 done 10284 10285 else 10286 # If it succeeded, then it was overridden by the user. We will use it 10287 # for the tool. 10288 10289 # First remove it from the list of overridden variables, so we can test 10290 # for unknown variables in the end. 10291 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10292 10293 # Check if the provided tool contains a complete path. 10294 tool_specified="$TR" 10295 tool_basename="${tool_specified##*/}" 10296 if test "x$tool_basename" = "x$tool_specified"; then 10297 # A command without a complete path is provided, search $PATH. 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10299 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10300 # Extract the first word of "$tool_basename", so it can be a program name with args. 10301 set dummy $tool_basename; ac_word=$2 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10303 $as_echo_n "checking for $ac_word... " >&6; } 10304 if ${ac_cv_path_TR+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306 else 10307 case $TR in 10308 [\\/]* | ?:[\\/]*) 10309 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10310 ;; 10311 *) 10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10313 for as_dir in $PATH 10314 do 10315 IFS=$as_save_IFS 10316 test -z "$as_dir" && as_dir=. 10317 for ac_exec_ext in '' $ac_executable_extensions; do 10318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10319 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10321 break 2 10322 fi 10323 done 10324 done 10325 IFS=$as_save_IFS 10326 10327 ;; 10328 esac 10329 fi 10330 TR=$ac_cv_path_TR 10331 if test -n "$TR"; then 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10333 $as_echo "$TR" >&6; } 10334 else 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10336 $as_echo "no" >&6; } 10337 fi 10338 10339 10340 if test "x$TR" = x; then 10341 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10342 fi 10343 else 10344 # Otherwise we believe it is a complete path. Use it as it is. 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10346 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10348 $as_echo_n "checking for TR... " >&6; } 10349 if test ! -x "$tool_specified"; then 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10351 $as_echo "not found" >&6; } 10352 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10353 fi 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10355 $as_echo "$tool_specified" >&6; } 10356 fi 10357 fi 10358 fi 10359 10360 10361 10362 if test "x$TR" = x; then 10363 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10364 fi 10365 10366 10367 10368 10369 10370 # Publish this variable in the help. 10371 10372 10373 if test "x$UNAME" = x; then 10374 # The variable is not set by user, try to locate tool using the code snippet 10375 for ac_prog in uname 10376 do 10377 # Extract the first word of "$ac_prog", so it can be a program name with args. 10378 set dummy $ac_prog; ac_word=$2 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10380 $as_echo_n "checking for $ac_word... " >&6; } 10381 if ${ac_cv_path_UNAME+:} false; then : 10382 $as_echo_n "(cached) " >&6 10383 else 10384 case $UNAME in 10385 [\\/]* | ?:[\\/]*) 10386 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10387 ;; 10388 *) 10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10390 for as_dir in $PATH 10391 do 10392 IFS=$as_save_IFS 10393 test -z "$as_dir" && as_dir=. 10394 for ac_exec_ext in '' $ac_executable_extensions; do 10395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10396 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10398 break 2 10399 fi 10400 done 10401 done 10402 IFS=$as_save_IFS 10403 10404 ;; 10405 esac 10406 fi 10407 UNAME=$ac_cv_path_UNAME 10408 if test -n "$UNAME"; then 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10410 $as_echo "$UNAME" >&6; } 10411 else 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10413 $as_echo "no" >&6; } 10414 fi 10415 10416 10417 test -n "$UNAME" && break 10418 done 10419 10420 else 10421 # The variable is set, but is it from the command line or the environment? 10422 10423 # Try to remove the string !UNAME! from our list. 10424 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10425 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10426 # If it failed, the variable was not from the command line. Ignore it, 10427 # but warn the user (except for BASH, which is always set by the calling BASH). 10428 if test "xUNAME" != xBASH; then 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10430 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10431 fi 10432 # Try to locate tool using the code snippet 10433 for ac_prog in uname 10434 do 10435 # Extract the first word of "$ac_prog", so it can be a program name with args. 10436 set dummy $ac_prog; ac_word=$2 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10438 $as_echo_n "checking for $ac_word... " >&6; } 10439 if ${ac_cv_path_UNAME+:} false; then : 10440 $as_echo_n "(cached) " >&6 10441 else 10442 case $UNAME in 10443 [\\/]* | ?:[\\/]*) 10444 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10445 ;; 10446 *) 10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10448 for as_dir in $PATH 10449 do 10450 IFS=$as_save_IFS 10451 test -z "$as_dir" && as_dir=. 10452 for ac_exec_ext in '' $ac_executable_extensions; do 10453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10454 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10456 break 2 10457 fi 10458 done 10459 done 10460 IFS=$as_save_IFS 10461 10462 ;; 10463 esac 10464 fi 10465 UNAME=$ac_cv_path_UNAME 10466 if test -n "$UNAME"; then 10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10468 $as_echo "$UNAME" >&6; } 10469 else 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10471 $as_echo "no" >&6; } 10472 fi 10473 10474 10475 test -n "$UNAME" && break 10476 done 10477 10478 else 10479 # If it succeeded, then it was overridden by the user. We will use it 10480 # for the tool. 10481 10482 # First remove it from the list of overridden variables, so we can test 10483 # for unknown variables in the end. 10484 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10485 10486 # Check if the provided tool contains a complete path. 10487 tool_specified="$UNAME" 10488 tool_basename="${tool_specified##*/}" 10489 if test "x$tool_basename" = "x$tool_specified"; then 10490 # A command without a complete path is provided, search $PATH. 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10492 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10493 # Extract the first word of "$tool_basename", so it can be a program name with args. 10494 set dummy $tool_basename; ac_word=$2 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10496 $as_echo_n "checking for $ac_word... " >&6; } 10497 if ${ac_cv_path_UNAME+:} false; then : 10498 $as_echo_n "(cached) " >&6 10499 else 10500 case $UNAME in 10501 [\\/]* | ?:[\\/]*) 10502 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10503 ;; 10504 *) 10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10506 for as_dir in $PATH 10507 do 10508 IFS=$as_save_IFS 10509 test -z "$as_dir" && as_dir=. 10510 for ac_exec_ext in '' $ac_executable_extensions; do 10511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10512 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10514 break 2 10515 fi 10516 done 10517 done 10518 IFS=$as_save_IFS 10519 10520 ;; 10521 esac 10522 fi 10523 UNAME=$ac_cv_path_UNAME 10524 if test -n "$UNAME"; then 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10526 $as_echo "$UNAME" >&6; } 10527 else 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10529 $as_echo "no" >&6; } 10530 fi 10531 10532 10533 if test "x$UNAME" = x; then 10534 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10535 fi 10536 else 10537 # Otherwise we believe it is a complete path. Use it as it is. 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10539 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10541 $as_echo_n "checking for UNAME... " >&6; } 10542 if test ! -x "$tool_specified"; then 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10544 $as_echo "not found" >&6; } 10545 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10546 fi 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10548 $as_echo "$tool_specified" >&6; } 10549 fi 10550 fi 10551 fi 10552 10553 10554 10555 if test "x$UNAME" = x; then 10556 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10557 fi 10558 10559 10560 10561 10562 10563 # Publish this variable in the help. 10564 10565 10566 if test "x$UNIQ" = x; then 10567 # The variable is not set by user, try to locate tool using the code snippet 10568 for ac_prog in uniq 10569 do 10570 # Extract the first word of "$ac_prog", so it can be a program name with args. 10571 set dummy $ac_prog; ac_word=$2 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10573 $as_echo_n "checking for $ac_word... " >&6; } 10574 if ${ac_cv_path_UNIQ+:} false; then : 10575 $as_echo_n "(cached) " >&6 10576 else 10577 case $UNIQ in 10578 [\\/]* | ?:[\\/]*) 10579 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10580 ;; 10581 *) 10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10583 for as_dir in $PATH 10584 do 10585 IFS=$as_save_IFS 10586 test -z "$as_dir" && as_dir=. 10587 for ac_exec_ext in '' $ac_executable_extensions; do 10588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10589 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10591 break 2 10592 fi 10593 done 10594 done 10595 IFS=$as_save_IFS 10596 10597 ;; 10598 esac 10599 fi 10600 UNIQ=$ac_cv_path_UNIQ 10601 if test -n "$UNIQ"; then 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10603 $as_echo "$UNIQ" >&6; } 10604 else 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10606 $as_echo "no" >&6; } 10607 fi 10608 10609 10610 test -n "$UNIQ" && break 10611 done 10612 10613 else 10614 # The variable is set, but is it from the command line or the environment? 10615 10616 # Try to remove the string !UNIQ! from our list. 10617 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10618 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10619 # If it failed, the variable was not from the command line. Ignore it, 10620 # but warn the user (except for BASH, which is always set by the calling BASH). 10621 if test "xUNIQ" != xBASH; then 10622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10623 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10624 fi 10625 # Try to locate tool using the code snippet 10626 for ac_prog in uniq 10627 do 10628 # Extract the first word of "$ac_prog", so it can be a program name with args. 10629 set dummy $ac_prog; ac_word=$2 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10631 $as_echo_n "checking for $ac_word... " >&6; } 10632 if ${ac_cv_path_UNIQ+:} false; then : 10633 $as_echo_n "(cached) " >&6 10634 else 10635 case $UNIQ in 10636 [\\/]* | ?:[\\/]*) 10637 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10638 ;; 10639 *) 10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10641 for as_dir in $PATH 10642 do 10643 IFS=$as_save_IFS 10644 test -z "$as_dir" && as_dir=. 10645 for ac_exec_ext in '' $ac_executable_extensions; do 10646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10647 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10649 break 2 10650 fi 10651 done 10652 done 10653 IFS=$as_save_IFS 10654 10655 ;; 10656 esac 10657 fi 10658 UNIQ=$ac_cv_path_UNIQ 10659 if test -n "$UNIQ"; then 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10661 $as_echo "$UNIQ" >&6; } 10662 else 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10664 $as_echo "no" >&6; } 10665 fi 10666 10667 10668 test -n "$UNIQ" && break 10669 done 10670 10671 else 10672 # If it succeeded, then it was overridden by the user. We will use it 10673 # for the tool. 10674 10675 # First remove it from the list of overridden variables, so we can test 10676 # for unknown variables in the end. 10677 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10678 10679 # Check if the provided tool contains a complete path. 10680 tool_specified="$UNIQ" 10681 tool_basename="${tool_specified##*/}" 10682 if test "x$tool_basename" = "x$tool_specified"; then 10683 # A command without a complete path is provided, search $PATH. 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10685 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10686 # Extract the first word of "$tool_basename", so it can be a program name with args. 10687 set dummy $tool_basename; ac_word=$2 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10689 $as_echo_n "checking for $ac_word... " >&6; } 10690 if ${ac_cv_path_UNIQ+:} false; then : 10691 $as_echo_n "(cached) " >&6 10692 else 10693 case $UNIQ in 10694 [\\/]* | ?:[\\/]*) 10695 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10696 ;; 10697 *) 10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10699 for as_dir in $PATH 10700 do 10701 IFS=$as_save_IFS 10702 test -z "$as_dir" && as_dir=. 10703 for ac_exec_ext in '' $ac_executable_extensions; do 10704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10705 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10707 break 2 10708 fi 10709 done 10710 done 10711 IFS=$as_save_IFS 10712 10713 ;; 10714 esac 10715 fi 10716 UNIQ=$ac_cv_path_UNIQ 10717 if test -n "$UNIQ"; then 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10719 $as_echo "$UNIQ" >&6; } 10720 else 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10722 $as_echo "no" >&6; } 10723 fi 10724 10725 10726 if test "x$UNIQ" = x; then 10727 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10728 fi 10729 else 10730 # Otherwise we believe it is a complete path. Use it as it is. 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10732 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10734 $as_echo_n "checking for UNIQ... " >&6; } 10735 if test ! -x "$tool_specified"; then 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10737 $as_echo "not found" >&6; } 10738 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10739 fi 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10741 $as_echo "$tool_specified" >&6; } 10742 fi 10743 fi 10744 fi 10745 10746 10747 10748 if test "x$UNIQ" = x; then 10749 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10750 fi 10751 10752 10753 10754 10755 10756 # Publish this variable in the help. 10757 10758 10759 if test "x$WC" = x; then 10760 # The variable is not set by user, try to locate tool using the code snippet 10761 for ac_prog in wc 10762 do 10763 # Extract the first word of "$ac_prog", so it can be a program name with args. 10764 set dummy $ac_prog; ac_word=$2 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10766 $as_echo_n "checking for $ac_word... " >&6; } 10767 if ${ac_cv_path_WC+:} false; then : 10768 $as_echo_n "(cached) " >&6 10769 else 10770 case $WC in 10771 [\\/]* | ?:[\\/]*) 10772 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10773 ;; 10774 *) 10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10776 for as_dir in $PATH 10777 do 10778 IFS=$as_save_IFS 10779 test -z "$as_dir" && as_dir=. 10780 for ac_exec_ext in '' $ac_executable_extensions; do 10781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10782 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10784 break 2 10785 fi 10786 done 10787 done 10788 IFS=$as_save_IFS 10789 10790 ;; 10791 esac 10792 fi 10793 WC=$ac_cv_path_WC 10794 if test -n "$WC"; then 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10796 $as_echo "$WC" >&6; } 10797 else 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10799 $as_echo "no" >&6; } 10800 fi 10801 10802 10803 test -n "$WC" && break 10804 done 10805 10806 else 10807 # The variable is set, but is it from the command line or the environment? 10808 10809 # Try to remove the string !WC! from our list. 10810 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10811 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10812 # If it failed, the variable was not from the command line. Ignore it, 10813 # but warn the user (except for BASH, which is always set by the calling BASH). 10814 if test "xWC" != xBASH; then 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10816 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10817 fi 10818 # Try to locate tool using the code snippet 10819 for ac_prog in wc 10820 do 10821 # Extract the first word of "$ac_prog", so it can be a program name with args. 10822 set dummy $ac_prog; ac_word=$2 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10824 $as_echo_n "checking for $ac_word... " >&6; } 10825 if ${ac_cv_path_WC+:} false; then : 10826 $as_echo_n "(cached) " >&6 10827 else 10828 case $WC in 10829 [\\/]* | ?:[\\/]*) 10830 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10831 ;; 10832 *) 10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10834 for as_dir in $PATH 10835 do 10836 IFS=$as_save_IFS 10837 test -z "$as_dir" && as_dir=. 10838 for ac_exec_ext in '' $ac_executable_extensions; do 10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10840 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10842 break 2 10843 fi 10844 done 10845 done 10846 IFS=$as_save_IFS 10847 10848 ;; 10849 esac 10850 fi 10851 WC=$ac_cv_path_WC 10852 if test -n "$WC"; then 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10854 $as_echo "$WC" >&6; } 10855 else 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10857 $as_echo "no" >&6; } 10858 fi 10859 10860 10861 test -n "$WC" && break 10862 done 10863 10864 else 10865 # If it succeeded, then it was overridden by the user. We will use it 10866 # for the tool. 10867 10868 # First remove it from the list of overridden variables, so we can test 10869 # for unknown variables in the end. 10870 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10871 10872 # Check if the provided tool contains a complete path. 10873 tool_specified="$WC" 10874 tool_basename="${tool_specified##*/}" 10875 if test "x$tool_basename" = "x$tool_specified"; then 10876 # A command without a complete path is provided, search $PATH. 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10878 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10879 # Extract the first word of "$tool_basename", so it can be a program name with args. 10880 set dummy $tool_basename; ac_word=$2 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10882 $as_echo_n "checking for $ac_word... " >&6; } 10883 if ${ac_cv_path_WC+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885 else 10886 case $WC in 10887 [\\/]* | ?:[\\/]*) 10888 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10889 ;; 10890 *) 10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10892 for as_dir in $PATH 10893 do 10894 IFS=$as_save_IFS 10895 test -z "$as_dir" && as_dir=. 10896 for ac_exec_ext in '' $ac_executable_extensions; do 10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10898 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10900 break 2 10901 fi 10902 done 10903 done 10904 IFS=$as_save_IFS 10905 10906 ;; 10907 esac 10908 fi 10909 WC=$ac_cv_path_WC 10910 if test -n "$WC"; then 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10912 $as_echo "$WC" >&6; } 10913 else 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10915 $as_echo "no" >&6; } 10916 fi 10917 10918 10919 if test "x$WC" = x; then 10920 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10921 fi 10922 else 10923 # Otherwise we believe it is a complete path. Use it as it is. 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10925 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10927 $as_echo_n "checking for WC... " >&6; } 10928 if test ! -x "$tool_specified"; then 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10930 $as_echo "not found" >&6; } 10931 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10932 fi 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10934 $as_echo "$tool_specified" >&6; } 10935 fi 10936 fi 10937 fi 10938 10939 10940 10941 if test "x$WC" = x; then 10942 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10943 fi 10944 10945 10946 10947 10948 10949 # Publish this variable in the help. 10950 10951 10952 if test "x$WHICH" = x; then 10953 # The variable is not set by user, try to locate tool using the code snippet 10954 for ac_prog in which 10955 do 10956 # Extract the first word of "$ac_prog", so it can be a program name with args. 10957 set dummy $ac_prog; ac_word=$2 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10959 $as_echo_n "checking for $ac_word... " >&6; } 10960 if ${ac_cv_path_WHICH+:} false; then : 10961 $as_echo_n "(cached) " >&6 10962 else 10963 case $WHICH in 10964 [\\/]* | ?:[\\/]*) 10965 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10966 ;; 10967 *) 10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10969 for as_dir in $PATH 10970 do 10971 IFS=$as_save_IFS 10972 test -z "$as_dir" && as_dir=. 10973 for ac_exec_ext in '' $ac_executable_extensions; do 10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10975 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10977 break 2 10978 fi 10979 done 10980 done 10981 IFS=$as_save_IFS 10982 10983 ;; 10984 esac 10985 fi 10986 WHICH=$ac_cv_path_WHICH 10987 if test -n "$WHICH"; then 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 10989 $as_echo "$WHICH" >&6; } 10990 else 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10992 $as_echo "no" >&6; } 10993 fi 10994 10995 10996 test -n "$WHICH" && break 10997 done 10998 10999 else 11000 # The variable is set, but is it from the command line or the environment? 11001 11002 # Try to remove the string !WHICH! from our list. 11003 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11004 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11005 # If it failed, the variable was not from the command line. Ignore it, 11006 # but warn the user (except for BASH, which is always set by the calling BASH). 11007 if test "xWHICH" != xBASH; then 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11009 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11010 fi 11011 # Try to locate tool using the code snippet 11012 for ac_prog in which 11013 do 11014 # Extract the first word of "$ac_prog", so it can be a program name with args. 11015 set dummy $ac_prog; ac_word=$2 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11017 $as_echo_n "checking for $ac_word... " >&6; } 11018 if ${ac_cv_path_WHICH+:} false; then : 11019 $as_echo_n "(cached) " >&6 11020 else 11021 case $WHICH in 11022 [\\/]* | ?:[\\/]*) 11023 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11024 ;; 11025 *) 11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11027 for as_dir in $PATH 11028 do 11029 IFS=$as_save_IFS 11030 test -z "$as_dir" && as_dir=. 11031 for ac_exec_ext in '' $ac_executable_extensions; do 11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11033 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11035 break 2 11036 fi 11037 done 11038 done 11039 IFS=$as_save_IFS 11040 11041 ;; 11042 esac 11043 fi 11044 WHICH=$ac_cv_path_WHICH 11045 if test -n "$WHICH"; then 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11047 $as_echo "$WHICH" >&6; } 11048 else 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11050 $as_echo "no" >&6; } 11051 fi 11052 11053 11054 test -n "$WHICH" && break 11055 done 11056 11057 else 11058 # If it succeeded, then it was overridden by the user. We will use it 11059 # for the tool. 11060 11061 # First remove it from the list of overridden variables, so we can test 11062 # for unknown variables in the end. 11063 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11064 11065 # Check if the provided tool contains a complete path. 11066 tool_specified="$WHICH" 11067 tool_basename="${tool_specified##*/}" 11068 if test "x$tool_basename" = "x$tool_specified"; then 11069 # A command without a complete path is provided, search $PATH. 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11071 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11072 # Extract the first word of "$tool_basename", so it can be a program name with args. 11073 set dummy $tool_basename; ac_word=$2 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11075 $as_echo_n "checking for $ac_word... " >&6; } 11076 if ${ac_cv_path_WHICH+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078 else 11079 case $WHICH in 11080 [\\/]* | ?:[\\/]*) 11081 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11082 ;; 11083 *) 11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11085 for as_dir in $PATH 11086 do 11087 IFS=$as_save_IFS 11088 test -z "$as_dir" && as_dir=. 11089 for ac_exec_ext in '' $ac_executable_extensions; do 11090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11091 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11093 break 2 11094 fi 11095 done 11096 done 11097 IFS=$as_save_IFS 11098 11099 ;; 11100 esac 11101 fi 11102 WHICH=$ac_cv_path_WHICH 11103 if test -n "$WHICH"; then 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11105 $as_echo "$WHICH" >&6; } 11106 else 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11108 $as_echo "no" >&6; } 11109 fi 11110 11111 11112 if test "x$WHICH" = x; then 11113 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11114 fi 11115 else 11116 # Otherwise we believe it is a complete path. Use it as it is. 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11118 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11120 $as_echo_n "checking for WHICH... " >&6; } 11121 if test ! -x "$tool_specified"; then 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11123 $as_echo "not found" >&6; } 11124 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11125 fi 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11127 $as_echo "$tool_specified" >&6; } 11128 fi 11129 fi 11130 fi 11131 11132 11133 11134 if test "x$WHICH" = x; then 11135 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11136 fi 11137 11138 11139 11140 11141 11142 # Publish this variable in the help. 11143 11144 11145 if test "x$XARGS" = x; then 11146 # The variable is not set by user, try to locate tool using the code snippet 11147 for ac_prog in xargs 11148 do 11149 # Extract the first word of "$ac_prog", so it can be a program name with args. 11150 set dummy $ac_prog; ac_word=$2 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11152 $as_echo_n "checking for $ac_word... " >&6; } 11153 if ${ac_cv_path_XARGS+:} false; then : 11154 $as_echo_n "(cached) " >&6 11155 else 11156 case $XARGS in 11157 [\\/]* | ?:[\\/]*) 11158 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11159 ;; 11160 *) 11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11162 for as_dir in $PATH 11163 do 11164 IFS=$as_save_IFS 11165 test -z "$as_dir" && as_dir=. 11166 for ac_exec_ext in '' $ac_executable_extensions; do 11167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11168 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11170 break 2 11171 fi 11172 done 11173 done 11174 IFS=$as_save_IFS 11175 11176 ;; 11177 esac 11178 fi 11179 XARGS=$ac_cv_path_XARGS 11180 if test -n "$XARGS"; then 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11182 $as_echo "$XARGS" >&6; } 11183 else 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11185 $as_echo "no" >&6; } 11186 fi 11187 11188 11189 test -n "$XARGS" && break 11190 done 11191 11192 else 11193 # The variable is set, but is it from the command line or the environment? 11194 11195 # Try to remove the string !XARGS! from our list. 11196 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11197 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11198 # If it failed, the variable was not from the command line. Ignore it, 11199 # but warn the user (except for BASH, which is always set by the calling BASH). 11200 if test "xXARGS" != xBASH; then 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11202 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11203 fi 11204 # Try to locate tool using the code snippet 11205 for ac_prog in xargs 11206 do 11207 # Extract the first word of "$ac_prog", so it can be a program name with args. 11208 set dummy $ac_prog; ac_word=$2 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11210 $as_echo_n "checking for $ac_word... " >&6; } 11211 if ${ac_cv_path_XARGS+:} false; then : 11212 $as_echo_n "(cached) " >&6 11213 else 11214 case $XARGS in 11215 [\\/]* | ?:[\\/]*) 11216 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11217 ;; 11218 *) 11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11220 for as_dir in $PATH 11221 do 11222 IFS=$as_save_IFS 11223 test -z "$as_dir" && as_dir=. 11224 for ac_exec_ext in '' $ac_executable_extensions; do 11225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11226 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11228 break 2 11229 fi 11230 done 11231 done 11232 IFS=$as_save_IFS 11233 11234 ;; 11235 esac 11236 fi 11237 XARGS=$ac_cv_path_XARGS 11238 if test -n "$XARGS"; then 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11240 $as_echo "$XARGS" >&6; } 11241 else 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11243 $as_echo "no" >&6; } 11244 fi 11245 11246 11247 test -n "$XARGS" && break 11248 done 11249 11250 else 11251 # If it succeeded, then it was overridden by the user. We will use it 11252 # for the tool. 11253 11254 # First remove it from the list of overridden variables, so we can test 11255 # for unknown variables in the end. 11256 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11257 11258 # Check if the provided tool contains a complete path. 11259 tool_specified="$XARGS" 11260 tool_basename="${tool_specified##*/}" 11261 if test "x$tool_basename" = "x$tool_specified"; then 11262 # A command without a complete path is provided, search $PATH. 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11264 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11265 # Extract the first word of "$tool_basename", so it can be a program name with args. 11266 set dummy $tool_basename; ac_word=$2 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11268 $as_echo_n "checking for $ac_word... " >&6; } 11269 if ${ac_cv_path_XARGS+:} false; then : 11270 $as_echo_n "(cached) " >&6 11271 else 11272 case $XARGS in 11273 [\\/]* | ?:[\\/]*) 11274 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11275 ;; 11276 *) 11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11278 for as_dir in $PATH 11279 do 11280 IFS=$as_save_IFS 11281 test -z "$as_dir" && as_dir=. 11282 for ac_exec_ext in '' $ac_executable_extensions; do 11283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11284 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11286 break 2 11287 fi 11288 done 11289 done 11290 IFS=$as_save_IFS 11291 11292 ;; 11293 esac 11294 fi 11295 XARGS=$ac_cv_path_XARGS 11296 if test -n "$XARGS"; then 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11298 $as_echo "$XARGS" >&6; } 11299 else 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11301 $as_echo "no" >&6; } 11302 fi 11303 11304 11305 if test "x$XARGS" = x; then 11306 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11307 fi 11308 else 11309 # Otherwise we believe it is a complete path. Use it as it is. 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11311 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11313 $as_echo_n "checking for XARGS... " >&6; } 11314 if test ! -x "$tool_specified"; then 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11316 $as_echo "not found" >&6; } 11317 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11318 fi 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11320 $as_echo "$tool_specified" >&6; } 11321 fi 11322 fi 11323 fi 11324 11325 11326 11327 if test "x$XARGS" = x; then 11328 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11329 fi 11330 11331 11332 11333 # Then required tools that require some special treatment. 11334 11335 11336 # Publish this variable in the help. 11337 11338 11339 if test "x$AWK" = x; then 11340 # The variable is not set by user, try to locate tool using the code snippet 11341 for ac_prog in gawk mawk nawk awk 11342 do 11343 # Extract the first word of "$ac_prog", so it can be a program name with args. 11344 set dummy $ac_prog; ac_word=$2 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11346 $as_echo_n "checking for $ac_word... " >&6; } 11347 if ${ac_cv_prog_AWK+:} false; then : 11348 $as_echo_n "(cached) " >&6 11349 else 11350 if test -n "$AWK"; then 11351 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11352 else 11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11354 for as_dir in $PATH 11355 do 11356 IFS=$as_save_IFS 11357 test -z "$as_dir" && as_dir=. 11358 for ac_exec_ext in '' $ac_executable_extensions; do 11359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11360 ac_cv_prog_AWK="$ac_prog" 11361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11362 break 2 11363 fi 11364 done 11365 done 11366 IFS=$as_save_IFS 11367 11368 fi 11369 fi 11370 AWK=$ac_cv_prog_AWK 11371 if test -n "$AWK"; then 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11373 $as_echo "$AWK" >&6; } 11374 else 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11376 $as_echo "no" >&6; } 11377 fi 11378 11379 11380 test -n "$AWK" && break 11381 done 11382 11383 else 11384 # The variable is set, but is it from the command line or the environment? 11385 11386 # Try to remove the string !AWK! from our list. 11387 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11388 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11389 # If it failed, the variable was not from the command line. Ignore it, 11390 # but warn the user (except for BASH, which is always set by the calling BASH). 11391 if test "xAWK" != xBASH; then 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11393 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11394 fi 11395 # Try to locate tool using the code snippet 11396 for ac_prog in gawk mawk nawk awk 11397 do 11398 # Extract the first word of "$ac_prog", so it can be a program name with args. 11399 set dummy $ac_prog; ac_word=$2 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11401 $as_echo_n "checking for $ac_word... " >&6; } 11402 if ${ac_cv_prog_AWK+:} false; then : 11403 $as_echo_n "(cached) " >&6 11404 else 11405 if test -n "$AWK"; then 11406 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11407 else 11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11409 for as_dir in $PATH 11410 do 11411 IFS=$as_save_IFS 11412 test -z "$as_dir" && as_dir=. 11413 for ac_exec_ext in '' $ac_executable_extensions; do 11414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11415 ac_cv_prog_AWK="$ac_prog" 11416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11417 break 2 11418 fi 11419 done 11420 done 11421 IFS=$as_save_IFS 11422 11423 fi 11424 fi 11425 AWK=$ac_cv_prog_AWK 11426 if test -n "$AWK"; then 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11428 $as_echo "$AWK" >&6; } 11429 else 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11431 $as_echo "no" >&6; } 11432 fi 11433 11434 11435 test -n "$AWK" && break 11436 done 11437 11438 else 11439 # If it succeeded, then it was overridden by the user. We will use it 11440 # for the tool. 11441 11442 # First remove it from the list of overridden variables, so we can test 11443 # for unknown variables in the end. 11444 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11445 11446 # Check if the provided tool contains a complete path. 11447 tool_specified="$AWK" 11448 tool_basename="${tool_specified##*/}" 11449 if test "x$tool_basename" = "x$tool_specified"; then 11450 # A command without a complete path is provided, search $PATH. 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11452 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11453 # Extract the first word of "$tool_basename", so it can be a program name with args. 11454 set dummy $tool_basename; ac_word=$2 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11456 $as_echo_n "checking for $ac_word... " >&6; } 11457 if ${ac_cv_path_AWK+:} false; then : 11458 $as_echo_n "(cached) " >&6 11459 else 11460 case $AWK in 11461 [\\/]* | ?:[\\/]*) 11462 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11463 ;; 11464 *) 11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11466 for as_dir in $PATH 11467 do 11468 IFS=$as_save_IFS 11469 test -z "$as_dir" && as_dir=. 11470 for ac_exec_ext in '' $ac_executable_extensions; do 11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11472 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11474 break 2 11475 fi 11476 done 11477 done 11478 IFS=$as_save_IFS 11479 11480 ;; 11481 esac 11482 fi 11483 AWK=$ac_cv_path_AWK 11484 if test -n "$AWK"; then 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11486 $as_echo "$AWK" >&6; } 11487 else 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11489 $as_echo "no" >&6; } 11490 fi 11491 11492 11493 if test "x$AWK" = x; then 11494 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11495 fi 11496 else 11497 # Otherwise we believe it is a complete path. Use it as it is. 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11499 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11501 $as_echo_n "checking for AWK... " >&6; } 11502 if test ! -x "$tool_specified"; then 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11504 $as_echo "not found" >&6; } 11505 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11506 fi 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11508 $as_echo "$tool_specified" >&6; } 11509 fi 11510 fi 11511 fi 11512 11513 11514 if test "x$AWK" = x; then 11515 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11516 fi 11517 11518 11519 11520 11521 # Publish this variable in the help. 11522 11523 11524 if test "x$GREP" = x; then 11525 # The variable is not set by user, try to locate tool using the code snippet 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11527 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11528 if ${ac_cv_path_GREP+:} false; then : 11529 $as_echo_n "(cached) " >&6 11530 else 11531 if test -z "$GREP"; then 11532 ac_path_GREP_found=false 11533 # Loop through the user's path and test for each of PROGNAME-LIST 11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11536 do 11537 IFS=$as_save_IFS 11538 test -z "$as_dir" && as_dir=. 11539 for ac_prog in grep ggrep; do 11540 for ac_exec_ext in '' $ac_executable_extensions; do 11541 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11542 as_fn_executable_p "$ac_path_GREP" || continue 11543 # Check for GNU ac_path_GREP and select it if it is found. 11544 # Check for GNU $ac_path_GREP 11545 case `"$ac_path_GREP" --version 2>&1` in 11546 *GNU*) 11547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11548 *) 11549 ac_count=0 11550 $as_echo_n 0123456789 >"conftest.in" 11551 while : 11552 do 11553 cat "conftest.in" "conftest.in" >"conftest.tmp" 11554 mv "conftest.tmp" "conftest.in" 11555 cp "conftest.in" "conftest.nl" 11556 $as_echo 'GREP' >> "conftest.nl" 11557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11559 as_fn_arith $ac_count + 1 && ac_count=$as_val 11560 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11561 # Best one so far, save it but keep looking for a better one 11562 ac_cv_path_GREP="$ac_path_GREP" 11563 ac_path_GREP_max=$ac_count 11564 fi 11565 # 10*(2^10) chars as input seems more than enough 11566 test $ac_count -gt 10 && break 11567 done 11568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11569 esac 11570 11571 $ac_path_GREP_found && break 3 11572 done 11573 done 11574 done 11575 IFS=$as_save_IFS 11576 if test -z "$ac_cv_path_GREP"; then 11577 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11578 fi 11579 else 11580 ac_cv_path_GREP=$GREP 11581 fi 11582 11583 fi 11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11585 $as_echo "$ac_cv_path_GREP" >&6; } 11586 GREP="$ac_cv_path_GREP" 11587 11588 11589 else 11590 # The variable is set, but is it from the command line or the environment? 11591 11592 # Try to remove the string !GREP! from our list. 11593 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11594 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11595 # If it failed, the variable was not from the command line. Ignore it, 11596 # but warn the user (except for BASH, which is always set by the calling BASH). 11597 if test "xGREP" != xBASH; then 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11599 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11600 fi 11601 # Try to locate tool using the code snippet 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11603 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11604 if ${ac_cv_path_GREP+:} false; then : 11605 $as_echo_n "(cached) " >&6 11606 else 11607 if test -z "$GREP"; then 11608 ac_path_GREP_found=false 11609 # Loop through the user's path and test for each of PROGNAME-LIST 11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11612 do 11613 IFS=$as_save_IFS 11614 test -z "$as_dir" && as_dir=. 11615 for ac_prog in grep ggrep; do 11616 for ac_exec_ext in '' $ac_executable_extensions; do 11617 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11618 as_fn_executable_p "$ac_path_GREP" || continue 11619 # Check for GNU ac_path_GREP and select it if it is found. 11620 # Check for GNU $ac_path_GREP 11621 case `"$ac_path_GREP" --version 2>&1` in 11622 *GNU*) 11623 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11624 *) 11625 ac_count=0 11626 $as_echo_n 0123456789 >"conftest.in" 11627 while : 11628 do 11629 cat "conftest.in" "conftest.in" >"conftest.tmp" 11630 mv "conftest.tmp" "conftest.in" 11631 cp "conftest.in" "conftest.nl" 11632 $as_echo 'GREP' >> "conftest.nl" 11633 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11635 as_fn_arith $ac_count + 1 && ac_count=$as_val 11636 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11637 # Best one so far, save it but keep looking for a better one 11638 ac_cv_path_GREP="$ac_path_GREP" 11639 ac_path_GREP_max=$ac_count 11640 fi 11641 # 10*(2^10) chars as input seems more than enough 11642 test $ac_count -gt 10 && break 11643 done 11644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11645 esac 11646 11647 $ac_path_GREP_found && break 3 11648 done 11649 done 11650 done 11651 IFS=$as_save_IFS 11652 if test -z "$ac_cv_path_GREP"; then 11653 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11654 fi 11655 else 11656 ac_cv_path_GREP=$GREP 11657 fi 11658 11659 fi 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11661 $as_echo "$ac_cv_path_GREP" >&6; } 11662 GREP="$ac_cv_path_GREP" 11663 11664 11665 else 11666 # If it succeeded, then it was overridden by the user. We will use it 11667 # for the tool. 11668 11669 # First remove it from the list of overridden variables, so we can test 11670 # for unknown variables in the end. 11671 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11672 11673 # Check if the provided tool contains a complete path. 11674 tool_specified="$GREP" 11675 tool_basename="${tool_specified##*/}" 11676 if test "x$tool_basename" = "x$tool_specified"; then 11677 # A command without a complete path is provided, search $PATH. 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11679 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11680 # Extract the first word of "$tool_basename", so it can be a program name with args. 11681 set dummy $tool_basename; ac_word=$2 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11683 $as_echo_n "checking for $ac_word... " >&6; } 11684 if ${ac_cv_path_GREP+:} false; then : 11685 $as_echo_n "(cached) " >&6 11686 else 11687 case $GREP in 11688 [\\/]* | ?:[\\/]*) 11689 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11690 ;; 11691 *) 11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11693 for as_dir in $PATH 11694 do 11695 IFS=$as_save_IFS 11696 test -z "$as_dir" && as_dir=. 11697 for ac_exec_ext in '' $ac_executable_extensions; do 11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11699 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11701 break 2 11702 fi 11703 done 11704 done 11705 IFS=$as_save_IFS 11706 11707 ;; 11708 esac 11709 fi 11710 GREP=$ac_cv_path_GREP 11711 if test -n "$GREP"; then 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11713 $as_echo "$GREP" >&6; } 11714 else 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11716 $as_echo "no" >&6; } 11717 fi 11718 11719 11720 if test "x$GREP" = x; then 11721 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11722 fi 11723 else 11724 # Otherwise we believe it is a complete path. Use it as it is. 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11726 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11728 $as_echo_n "checking for GREP... " >&6; } 11729 if test ! -x "$tool_specified"; then 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11731 $as_echo "not found" >&6; } 11732 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11733 fi 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11735 $as_echo "$tool_specified" >&6; } 11736 fi 11737 fi 11738 fi 11739 11740 11741 if test "x$GREP" = x; then 11742 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11743 fi 11744 11745 11746 11747 11748 # Publish this variable in the help. 11749 11750 11751 if test "x$EGREP" = x; then 11752 # The variable is not set by user, try to locate tool using the code snippet 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11754 $as_echo_n "checking for egrep... " >&6; } 11755 if ${ac_cv_path_EGREP+:} false; then : 11756 $as_echo_n "(cached) " >&6 11757 else 11758 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11759 then ac_cv_path_EGREP="$GREP -E" 11760 else 11761 if test -z "$EGREP"; then 11762 ac_path_EGREP_found=false 11763 # Loop through the user's path and test for each of PROGNAME-LIST 11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11766 do 11767 IFS=$as_save_IFS 11768 test -z "$as_dir" && as_dir=. 11769 for ac_prog in egrep; do 11770 for ac_exec_ext in '' $ac_executable_extensions; do 11771 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11772 as_fn_executable_p "$ac_path_EGREP" || continue 11773 # Check for GNU ac_path_EGREP and select it if it is found. 11774 # Check for GNU $ac_path_EGREP 11775 case `"$ac_path_EGREP" --version 2>&1` in 11776 *GNU*) 11777 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11778 *) 11779 ac_count=0 11780 $as_echo_n 0123456789 >"conftest.in" 11781 while : 11782 do 11783 cat "conftest.in" "conftest.in" >"conftest.tmp" 11784 mv "conftest.tmp" "conftest.in" 11785 cp "conftest.in" "conftest.nl" 11786 $as_echo 'EGREP' >> "conftest.nl" 11787 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11789 as_fn_arith $ac_count + 1 && ac_count=$as_val 11790 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11791 # Best one so far, save it but keep looking for a better one 11792 ac_cv_path_EGREP="$ac_path_EGREP" 11793 ac_path_EGREP_max=$ac_count 11794 fi 11795 # 10*(2^10) chars as input seems more than enough 11796 test $ac_count -gt 10 && break 11797 done 11798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11799 esac 11800 11801 $ac_path_EGREP_found && break 3 11802 done 11803 done 11804 done 11805 IFS=$as_save_IFS 11806 if test -z "$ac_cv_path_EGREP"; then 11807 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11808 fi 11809 else 11810 ac_cv_path_EGREP=$EGREP 11811 fi 11812 11813 fi 11814 fi 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11816 $as_echo "$ac_cv_path_EGREP" >&6; } 11817 EGREP="$ac_cv_path_EGREP" 11818 11819 11820 else 11821 # The variable is set, but is it from the command line or the environment? 11822 11823 # Try to remove the string !EGREP! from our list. 11824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11826 # If it failed, the variable was not from the command line. Ignore it, 11827 # but warn the user (except for BASH, which is always set by the calling BASH). 11828 if test "xEGREP" != xBASH; then 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11830 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11831 fi 11832 # Try to locate tool using the code snippet 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11834 $as_echo_n "checking for egrep... " >&6; } 11835 if ${ac_cv_path_EGREP+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837 else 11838 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11839 then ac_cv_path_EGREP="$GREP -E" 11840 else 11841 if test -z "$EGREP"; then 11842 ac_path_EGREP_found=false 11843 # Loop through the user's path and test for each of PROGNAME-LIST 11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11846 do 11847 IFS=$as_save_IFS 11848 test -z "$as_dir" && as_dir=. 11849 for ac_prog in egrep; do 11850 for ac_exec_ext in '' $ac_executable_extensions; do 11851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11852 as_fn_executable_p "$ac_path_EGREP" || continue 11853 # Check for GNU ac_path_EGREP and select it if it is found. 11854 # Check for GNU $ac_path_EGREP 11855 case `"$ac_path_EGREP" --version 2>&1` in 11856 *GNU*) 11857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11858 *) 11859 ac_count=0 11860 $as_echo_n 0123456789 >"conftest.in" 11861 while : 11862 do 11863 cat "conftest.in" "conftest.in" >"conftest.tmp" 11864 mv "conftest.tmp" "conftest.in" 11865 cp "conftest.in" "conftest.nl" 11866 $as_echo 'EGREP' >> "conftest.nl" 11867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11869 as_fn_arith $ac_count + 1 && ac_count=$as_val 11870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11871 # Best one so far, save it but keep looking for a better one 11872 ac_cv_path_EGREP="$ac_path_EGREP" 11873 ac_path_EGREP_max=$ac_count 11874 fi 11875 # 10*(2^10) chars as input seems more than enough 11876 test $ac_count -gt 10 && break 11877 done 11878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11879 esac 11880 11881 $ac_path_EGREP_found && break 3 11882 done 11883 done 11884 done 11885 IFS=$as_save_IFS 11886 if test -z "$ac_cv_path_EGREP"; then 11887 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11888 fi 11889 else 11890 ac_cv_path_EGREP=$EGREP 11891 fi 11892 11893 fi 11894 fi 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11896 $as_echo "$ac_cv_path_EGREP" >&6; } 11897 EGREP="$ac_cv_path_EGREP" 11898 11899 11900 else 11901 # If it succeeded, then it was overridden by the user. We will use it 11902 # for the tool. 11903 11904 # First remove it from the list of overridden variables, so we can test 11905 # for unknown variables in the end. 11906 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11907 11908 # Check if the provided tool contains a complete path. 11909 tool_specified="$EGREP" 11910 tool_basename="${tool_specified##*/}" 11911 if test "x$tool_basename" = "x$tool_specified"; then 11912 # A command without a complete path is provided, search $PATH. 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11914 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11915 # Extract the first word of "$tool_basename", so it can be a program name with args. 11916 set dummy $tool_basename; ac_word=$2 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11918 $as_echo_n "checking for $ac_word... " >&6; } 11919 if ${ac_cv_path_EGREP+:} false; then : 11920 $as_echo_n "(cached) " >&6 11921 else 11922 case $EGREP in 11923 [\\/]* | ?:[\\/]*) 11924 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11925 ;; 11926 *) 11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11928 for as_dir in $PATH 11929 do 11930 IFS=$as_save_IFS 11931 test -z "$as_dir" && as_dir=. 11932 for ac_exec_ext in '' $ac_executable_extensions; do 11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11934 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11936 break 2 11937 fi 11938 done 11939 done 11940 IFS=$as_save_IFS 11941 11942 ;; 11943 esac 11944 fi 11945 EGREP=$ac_cv_path_EGREP 11946 if test -n "$EGREP"; then 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11948 $as_echo "$EGREP" >&6; } 11949 else 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11951 $as_echo "no" >&6; } 11952 fi 11953 11954 11955 if test "x$EGREP" = x; then 11956 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11957 fi 11958 else 11959 # Otherwise we believe it is a complete path. Use it as it is. 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11961 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11963 $as_echo_n "checking for EGREP... " >&6; } 11964 if test ! -x "$tool_specified"; then 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11966 $as_echo "not found" >&6; } 11967 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11968 fi 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11970 $as_echo "$tool_specified" >&6; } 11971 fi 11972 fi 11973 fi 11974 11975 11976 if test "x$EGREP" = x; then 11977 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 11978 fi 11979 11980 11981 11982 11983 # Publish this variable in the help. 11984 11985 11986 if test "x$FGREP" = x; then 11987 # The variable is not set by user, try to locate tool using the code snippet 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11989 $as_echo_n "checking for fgrep... " >&6; } 11990 if ${ac_cv_path_FGREP+:} false; then : 11991 $as_echo_n "(cached) " >&6 11992 else 11993 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11994 then ac_cv_path_FGREP="$GREP -F" 11995 else 11996 if test -z "$FGREP"; then 11997 ac_path_FGREP_found=false 11998 # Loop through the user's path and test for each of PROGNAME-LIST 11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12001 do 12002 IFS=$as_save_IFS 12003 test -z "$as_dir" && as_dir=. 12004 for ac_prog in fgrep; do 12005 for ac_exec_ext in '' $ac_executable_extensions; do 12006 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12007 as_fn_executable_p "$ac_path_FGREP" || continue 12008 # Check for GNU ac_path_FGREP and select it if it is found. 12009 # Check for GNU $ac_path_FGREP 12010 case `"$ac_path_FGREP" --version 2>&1` in 12011 *GNU*) 12012 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12013 *) 12014 ac_count=0 12015 $as_echo_n 0123456789 >"conftest.in" 12016 while : 12017 do 12018 cat "conftest.in" "conftest.in" >"conftest.tmp" 12019 mv "conftest.tmp" "conftest.in" 12020 cp "conftest.in" "conftest.nl" 12021 $as_echo 'FGREP' >> "conftest.nl" 12022 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12024 as_fn_arith $ac_count + 1 && ac_count=$as_val 12025 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12026 # Best one so far, save it but keep looking for a better one 12027 ac_cv_path_FGREP="$ac_path_FGREP" 12028 ac_path_FGREP_max=$ac_count 12029 fi 12030 # 10*(2^10) chars as input seems more than enough 12031 test $ac_count -gt 10 && break 12032 done 12033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12034 esac 12035 12036 $ac_path_FGREP_found && break 3 12037 done 12038 done 12039 done 12040 IFS=$as_save_IFS 12041 if test -z "$ac_cv_path_FGREP"; then 12042 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12043 fi 12044 else 12045 ac_cv_path_FGREP=$FGREP 12046 fi 12047 12048 fi 12049 fi 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12051 $as_echo "$ac_cv_path_FGREP" >&6; } 12052 FGREP="$ac_cv_path_FGREP" 12053 12054 12055 else 12056 # The variable is set, but is it from the command line or the environment? 12057 12058 # Try to remove the string !FGREP! from our list. 12059 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12060 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12061 # If it failed, the variable was not from the command line. Ignore it, 12062 # but warn the user (except for BASH, which is always set by the calling BASH). 12063 if test "xFGREP" != xBASH; then 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12065 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12066 fi 12067 # Try to locate tool using the code snippet 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12069 $as_echo_n "checking for fgrep... " >&6; } 12070 if ${ac_cv_path_FGREP+:} false; then : 12071 $as_echo_n "(cached) " >&6 12072 else 12073 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12074 then ac_cv_path_FGREP="$GREP -F" 12075 else 12076 if test -z "$FGREP"; then 12077 ac_path_FGREP_found=false 12078 # Loop through the user's path and test for each of PROGNAME-LIST 12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12081 do 12082 IFS=$as_save_IFS 12083 test -z "$as_dir" && as_dir=. 12084 for ac_prog in fgrep; do 12085 for ac_exec_ext in '' $ac_executable_extensions; do 12086 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12087 as_fn_executable_p "$ac_path_FGREP" || continue 12088 # Check for GNU ac_path_FGREP and select it if it is found. 12089 # Check for GNU $ac_path_FGREP 12090 case `"$ac_path_FGREP" --version 2>&1` in 12091 *GNU*) 12092 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12093 *) 12094 ac_count=0 12095 $as_echo_n 0123456789 >"conftest.in" 12096 while : 12097 do 12098 cat "conftest.in" "conftest.in" >"conftest.tmp" 12099 mv "conftest.tmp" "conftest.in" 12100 cp "conftest.in" "conftest.nl" 12101 $as_echo 'FGREP' >> "conftest.nl" 12102 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12104 as_fn_arith $ac_count + 1 && ac_count=$as_val 12105 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12106 # Best one so far, save it but keep looking for a better one 12107 ac_cv_path_FGREP="$ac_path_FGREP" 12108 ac_path_FGREP_max=$ac_count 12109 fi 12110 # 10*(2^10) chars as input seems more than enough 12111 test $ac_count -gt 10 && break 12112 done 12113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12114 esac 12115 12116 $ac_path_FGREP_found && break 3 12117 done 12118 done 12119 done 12120 IFS=$as_save_IFS 12121 if test -z "$ac_cv_path_FGREP"; then 12122 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12123 fi 12124 else 12125 ac_cv_path_FGREP=$FGREP 12126 fi 12127 12128 fi 12129 fi 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12131 $as_echo "$ac_cv_path_FGREP" >&6; } 12132 FGREP="$ac_cv_path_FGREP" 12133 12134 12135 else 12136 # If it succeeded, then it was overridden by the user. We will use it 12137 # for the tool. 12138 12139 # First remove it from the list of overridden variables, so we can test 12140 # for unknown variables in the end. 12141 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12142 12143 # Check if the provided tool contains a complete path. 12144 tool_specified="$FGREP" 12145 tool_basename="${tool_specified##*/}" 12146 if test "x$tool_basename" = "x$tool_specified"; then 12147 # A command without a complete path is provided, search $PATH. 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12149 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12150 # Extract the first word of "$tool_basename", so it can be a program name with args. 12151 set dummy $tool_basename; ac_word=$2 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12153 $as_echo_n "checking for $ac_word... " >&6; } 12154 if ${ac_cv_path_FGREP+:} false; then : 12155 $as_echo_n "(cached) " >&6 12156 else 12157 case $FGREP in 12158 [\\/]* | ?:[\\/]*) 12159 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12160 ;; 12161 *) 12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12163 for as_dir in $PATH 12164 do 12165 IFS=$as_save_IFS 12166 test -z "$as_dir" && as_dir=. 12167 for ac_exec_ext in '' $ac_executable_extensions; do 12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12169 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12171 break 2 12172 fi 12173 done 12174 done 12175 IFS=$as_save_IFS 12176 12177 ;; 12178 esac 12179 fi 12180 FGREP=$ac_cv_path_FGREP 12181 if test -n "$FGREP"; then 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12183 $as_echo "$FGREP" >&6; } 12184 else 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12186 $as_echo "no" >&6; } 12187 fi 12188 12189 12190 if test "x$FGREP" = x; then 12191 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12192 fi 12193 else 12194 # Otherwise we believe it is a complete path. Use it as it is. 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12196 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12198 $as_echo_n "checking for FGREP... " >&6; } 12199 if test ! -x "$tool_specified"; then 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12201 $as_echo "not found" >&6; } 12202 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12203 fi 12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12205 $as_echo "$tool_specified" >&6; } 12206 fi 12207 fi 12208 fi 12209 12210 12211 if test "x$FGREP" = x; then 12212 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12213 fi 12214 12215 12216 12217 12218 # Publish this variable in the help. 12219 12220 12221 if test "x$SED" = x; then 12222 # The variable is not set by user, try to locate tool using the code snippet 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12224 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12225 if ${ac_cv_path_SED+:} false; then : 12226 $as_echo_n "(cached) " >&6 12227 else 12228 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12229 for ac_i in 1 2 3 4 5 6 7; do 12230 ac_script="$ac_script$as_nl$ac_script" 12231 done 12232 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12233 { ac_script=; unset ac_script;} 12234 if test -z "$SED"; then 12235 ac_path_SED_found=false 12236 # Loop through the user's path and test for each of PROGNAME-LIST 12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12238 for as_dir in $PATH 12239 do 12240 IFS=$as_save_IFS 12241 test -z "$as_dir" && as_dir=. 12242 for ac_prog in sed gsed; do 12243 for ac_exec_ext in '' $ac_executable_extensions; do 12244 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12245 as_fn_executable_p "$ac_path_SED" || continue 12246 # Check for GNU ac_path_SED and select it if it is found. 12247 # Check for GNU $ac_path_SED 12248 case `"$ac_path_SED" --version 2>&1` in 12249 *GNU*) 12250 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12251 *) 12252 ac_count=0 12253 $as_echo_n 0123456789 >"conftest.in" 12254 while : 12255 do 12256 cat "conftest.in" "conftest.in" >"conftest.tmp" 12257 mv "conftest.tmp" "conftest.in" 12258 cp "conftest.in" "conftest.nl" 12259 $as_echo '' >> "conftest.nl" 12260 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12262 as_fn_arith $ac_count + 1 && ac_count=$as_val 12263 if test $ac_count -gt ${ac_path_SED_max-0}; then 12264 # Best one so far, save it but keep looking for a better one 12265 ac_cv_path_SED="$ac_path_SED" 12266 ac_path_SED_max=$ac_count 12267 fi 12268 # 10*(2^10) chars as input seems more than enough 12269 test $ac_count -gt 10 && break 12270 done 12271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12272 esac 12273 12274 $ac_path_SED_found && break 3 12275 done 12276 done 12277 done 12278 IFS=$as_save_IFS 12279 if test -z "$ac_cv_path_SED"; then 12280 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12281 fi 12282 else 12283 ac_cv_path_SED=$SED 12284 fi 12285 12286 fi 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12288 $as_echo "$ac_cv_path_SED" >&6; } 12289 SED="$ac_cv_path_SED" 12290 rm -f conftest.sed 12291 12292 else 12293 # The variable is set, but is it from the command line or the environment? 12294 12295 # Try to remove the string !SED! from our list. 12296 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12297 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12298 # If it failed, the variable was not from the command line. Ignore it, 12299 # but warn the user (except for BASH, which is always set by the calling BASH). 12300 if test "xSED" != xBASH; then 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12302 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12303 fi 12304 # Try to locate tool using the code snippet 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12306 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12307 if ${ac_cv_path_SED+:} false; then : 12308 $as_echo_n "(cached) " >&6 12309 else 12310 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12311 for ac_i in 1 2 3 4 5 6 7; do 12312 ac_script="$ac_script$as_nl$ac_script" 12313 done 12314 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12315 { ac_script=; unset ac_script;} 12316 if test -z "$SED"; then 12317 ac_path_SED_found=false 12318 # Loop through the user's path and test for each of PROGNAME-LIST 12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12320 for as_dir in $PATH 12321 do 12322 IFS=$as_save_IFS 12323 test -z "$as_dir" && as_dir=. 12324 for ac_prog in sed gsed; do 12325 for ac_exec_ext in '' $ac_executable_extensions; do 12326 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12327 as_fn_executable_p "$ac_path_SED" || continue 12328 # Check for GNU ac_path_SED and select it if it is found. 12329 # Check for GNU $ac_path_SED 12330 case `"$ac_path_SED" --version 2>&1` in 12331 *GNU*) 12332 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12333 *) 12334 ac_count=0 12335 $as_echo_n 0123456789 >"conftest.in" 12336 while : 12337 do 12338 cat "conftest.in" "conftest.in" >"conftest.tmp" 12339 mv "conftest.tmp" "conftest.in" 12340 cp "conftest.in" "conftest.nl" 12341 $as_echo '' >> "conftest.nl" 12342 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12344 as_fn_arith $ac_count + 1 && ac_count=$as_val 12345 if test $ac_count -gt ${ac_path_SED_max-0}; then 12346 # Best one so far, save it but keep looking for a better one 12347 ac_cv_path_SED="$ac_path_SED" 12348 ac_path_SED_max=$ac_count 12349 fi 12350 # 10*(2^10) chars as input seems more than enough 12351 test $ac_count -gt 10 && break 12352 done 12353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12354 esac 12355 12356 $ac_path_SED_found && break 3 12357 done 12358 done 12359 done 12360 IFS=$as_save_IFS 12361 if test -z "$ac_cv_path_SED"; then 12362 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12363 fi 12364 else 12365 ac_cv_path_SED=$SED 12366 fi 12367 12368 fi 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12370 $as_echo "$ac_cv_path_SED" >&6; } 12371 SED="$ac_cv_path_SED" 12372 rm -f conftest.sed 12373 12374 else 12375 # If it succeeded, then it was overridden by the user. We will use it 12376 # for the tool. 12377 12378 # First remove it from the list of overridden variables, so we can test 12379 # for unknown variables in the end. 12380 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12381 12382 # Check if the provided tool contains a complete path. 12383 tool_specified="$SED" 12384 tool_basename="${tool_specified##*/}" 12385 if test "x$tool_basename" = "x$tool_specified"; then 12386 # A command without a complete path is provided, search $PATH. 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12388 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12389 # Extract the first word of "$tool_basename", so it can be a program name with args. 12390 set dummy $tool_basename; ac_word=$2 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12392 $as_echo_n "checking for $ac_word... " >&6; } 12393 if ${ac_cv_path_SED+:} false; then : 12394 $as_echo_n "(cached) " >&6 12395 else 12396 case $SED in 12397 [\\/]* | ?:[\\/]*) 12398 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12399 ;; 12400 *) 12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12402 for as_dir in $PATH 12403 do 12404 IFS=$as_save_IFS 12405 test -z "$as_dir" && as_dir=. 12406 for ac_exec_ext in '' $ac_executable_extensions; do 12407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12408 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12410 break 2 12411 fi 12412 done 12413 done 12414 IFS=$as_save_IFS 12415 12416 ;; 12417 esac 12418 fi 12419 SED=$ac_cv_path_SED 12420 if test -n "$SED"; then 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12422 $as_echo "$SED" >&6; } 12423 else 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12425 $as_echo "no" >&6; } 12426 fi 12427 12428 12429 if test "x$SED" = x; then 12430 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12431 fi 12432 else 12433 # Otherwise we believe it is a complete path. Use it as it is. 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12435 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12437 $as_echo_n "checking for SED... " >&6; } 12438 if test ! -x "$tool_specified"; then 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12440 $as_echo "not found" >&6; } 12441 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12442 fi 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12444 $as_echo "$tool_specified" >&6; } 12445 fi 12446 fi 12447 fi 12448 12449 12450 if test "x$SED" = x; then 12451 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12452 fi 12453 12454 12455 12456 # Always force rm. 12457 RM="$RM -f" 12458 12459 # pwd behaves differently on various platforms and some don't support the -L flag. 12460 # Always use the bash builtin pwd to get uniform behavior. 12461 THEPWDCMD=pwd 12462 12463 # These are not required on all platforms 12464 12465 12466 # Publish this variable in the help. 12467 12468 12469 if test "x$CYGPATH" = x; then 12470 # The variable is not set by user, try to locate tool using the code snippet 12471 for ac_prog in cygpath 12472 do 12473 # Extract the first word of "$ac_prog", so it can be a program name with args. 12474 set dummy $ac_prog; ac_word=$2 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12476 $as_echo_n "checking for $ac_word... " >&6; } 12477 if ${ac_cv_path_CYGPATH+:} false; then : 12478 $as_echo_n "(cached) " >&6 12479 else 12480 case $CYGPATH in 12481 [\\/]* | ?:[\\/]*) 12482 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12483 ;; 12484 *) 12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12486 for as_dir in $PATH 12487 do 12488 IFS=$as_save_IFS 12489 test -z "$as_dir" && as_dir=. 12490 for ac_exec_ext in '' $ac_executable_extensions; do 12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12492 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12494 break 2 12495 fi 12496 done 12497 done 12498 IFS=$as_save_IFS 12499 12500 ;; 12501 esac 12502 fi 12503 CYGPATH=$ac_cv_path_CYGPATH 12504 if test -n "$CYGPATH"; then 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12506 $as_echo "$CYGPATH" >&6; } 12507 else 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12509 $as_echo "no" >&6; } 12510 fi 12511 12512 12513 test -n "$CYGPATH" && break 12514 done 12515 12516 else 12517 # The variable is set, but is it from the command line or the environment? 12518 12519 # Try to remove the string !CYGPATH! from our list. 12520 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12521 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12522 # If it failed, the variable was not from the command line. Ignore it, 12523 # but warn the user (except for BASH, which is always set by the calling BASH). 12524 if test "xCYGPATH" != xBASH; then 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12526 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12527 fi 12528 # Try to locate tool using the code snippet 12529 for ac_prog in cygpath 12530 do 12531 # Extract the first word of "$ac_prog", so it can be a program name with args. 12532 set dummy $ac_prog; ac_word=$2 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12534 $as_echo_n "checking for $ac_word... " >&6; } 12535 if ${ac_cv_path_CYGPATH+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537 else 12538 case $CYGPATH in 12539 [\\/]* | ?:[\\/]*) 12540 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12541 ;; 12542 *) 12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12544 for as_dir in $PATH 12545 do 12546 IFS=$as_save_IFS 12547 test -z "$as_dir" && as_dir=. 12548 for ac_exec_ext in '' $ac_executable_extensions; do 12549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12550 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12552 break 2 12553 fi 12554 done 12555 done 12556 IFS=$as_save_IFS 12557 12558 ;; 12559 esac 12560 fi 12561 CYGPATH=$ac_cv_path_CYGPATH 12562 if test -n "$CYGPATH"; then 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12564 $as_echo "$CYGPATH" >&6; } 12565 else 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12567 $as_echo "no" >&6; } 12568 fi 12569 12570 12571 test -n "$CYGPATH" && break 12572 done 12573 12574 else 12575 # If it succeeded, then it was overridden by the user. We will use it 12576 # for the tool. 12577 12578 # First remove it from the list of overridden variables, so we can test 12579 # for unknown variables in the end. 12580 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12581 12582 # Check if the provided tool contains a complete path. 12583 tool_specified="$CYGPATH" 12584 tool_basename="${tool_specified##*/}" 12585 if test "x$tool_basename" = "x$tool_specified"; then 12586 # A command without a complete path is provided, search $PATH. 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12588 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12589 # Extract the first word of "$tool_basename", so it can be a program name with args. 12590 set dummy $tool_basename; ac_word=$2 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12592 $as_echo_n "checking for $ac_word... " >&6; } 12593 if ${ac_cv_path_CYGPATH+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595 else 12596 case $CYGPATH in 12597 [\\/]* | ?:[\\/]*) 12598 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12599 ;; 12600 *) 12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12602 for as_dir in $PATH 12603 do 12604 IFS=$as_save_IFS 12605 test -z "$as_dir" && as_dir=. 12606 for ac_exec_ext in '' $ac_executable_extensions; do 12607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12608 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12610 break 2 12611 fi 12612 done 12613 done 12614 IFS=$as_save_IFS 12615 12616 ;; 12617 esac 12618 fi 12619 CYGPATH=$ac_cv_path_CYGPATH 12620 if test -n "$CYGPATH"; then 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12622 $as_echo "$CYGPATH" >&6; } 12623 else 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12625 $as_echo "no" >&6; } 12626 fi 12627 12628 12629 if test "x$CYGPATH" = x; then 12630 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12631 fi 12632 else 12633 # Otherwise we believe it is a complete path. Use it as it is. 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12635 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12637 $as_echo_n "checking for CYGPATH... " >&6; } 12638 if test ! -x "$tool_specified"; then 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12640 $as_echo "not found" >&6; } 12641 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12642 fi 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12644 $as_echo "$tool_specified" >&6; } 12645 fi 12646 fi 12647 fi 12648 12649 12650 12651 12652 # Publish this variable in the help. 12653 12654 12655 if test "x$READLINK" = x; then 12656 # The variable is not set by user, try to locate tool using the code snippet 12657 for ac_prog in greadlink readlink 12658 do 12659 # Extract the first word of "$ac_prog", so it can be a program name with args. 12660 set dummy $ac_prog; ac_word=$2 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12662 $as_echo_n "checking for $ac_word... " >&6; } 12663 if ${ac_cv_path_READLINK+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665 else 12666 case $READLINK in 12667 [\\/]* | ?:[\\/]*) 12668 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12669 ;; 12670 *) 12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12672 for as_dir in $PATH 12673 do 12674 IFS=$as_save_IFS 12675 test -z "$as_dir" && as_dir=. 12676 for ac_exec_ext in '' $ac_executable_extensions; do 12677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12678 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12680 break 2 12681 fi 12682 done 12683 done 12684 IFS=$as_save_IFS 12685 12686 ;; 12687 esac 12688 fi 12689 READLINK=$ac_cv_path_READLINK 12690 if test -n "$READLINK"; then 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12692 $as_echo "$READLINK" >&6; } 12693 else 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12695 $as_echo "no" >&6; } 12696 fi 12697 12698 12699 test -n "$READLINK" && break 12700 done 12701 12702 else 12703 # The variable is set, but is it from the command line or the environment? 12704 12705 # Try to remove the string !READLINK! from our list. 12706 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12707 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12708 # If it failed, the variable was not from the command line. Ignore it, 12709 # but warn the user (except for BASH, which is always set by the calling BASH). 12710 if test "xREADLINK" != xBASH; then 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12712 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12713 fi 12714 # Try to locate tool using the code snippet 12715 for ac_prog in greadlink readlink 12716 do 12717 # Extract the first word of "$ac_prog", so it can be a program name with args. 12718 set dummy $ac_prog; ac_word=$2 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12720 $as_echo_n "checking for $ac_word... " >&6; } 12721 if ${ac_cv_path_READLINK+:} false; then : 12722 $as_echo_n "(cached) " >&6 12723 else 12724 case $READLINK in 12725 [\\/]* | ?:[\\/]*) 12726 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12727 ;; 12728 *) 12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12730 for as_dir in $PATH 12731 do 12732 IFS=$as_save_IFS 12733 test -z "$as_dir" && as_dir=. 12734 for ac_exec_ext in '' $ac_executable_extensions; do 12735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12736 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12738 break 2 12739 fi 12740 done 12741 done 12742 IFS=$as_save_IFS 12743 12744 ;; 12745 esac 12746 fi 12747 READLINK=$ac_cv_path_READLINK 12748 if test -n "$READLINK"; then 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12750 $as_echo "$READLINK" >&6; } 12751 else 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12753 $as_echo "no" >&6; } 12754 fi 12755 12756 12757 test -n "$READLINK" && break 12758 done 12759 12760 else 12761 # If it succeeded, then it was overridden by the user. We will use it 12762 # for the tool. 12763 12764 # First remove it from the list of overridden variables, so we can test 12765 # for unknown variables in the end. 12766 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12767 12768 # Check if the provided tool contains a complete path. 12769 tool_specified="$READLINK" 12770 tool_basename="${tool_specified##*/}" 12771 if test "x$tool_basename" = "x$tool_specified"; then 12772 # A command without a complete path is provided, search $PATH. 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12774 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12775 # Extract the first word of "$tool_basename", so it can be a program name with args. 12776 set dummy $tool_basename; ac_word=$2 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12778 $as_echo_n "checking for $ac_word... " >&6; } 12779 if ${ac_cv_path_READLINK+:} false; then : 12780 $as_echo_n "(cached) " >&6 12781 else 12782 case $READLINK in 12783 [\\/]* | ?:[\\/]*) 12784 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12785 ;; 12786 *) 12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12788 for as_dir in $PATH 12789 do 12790 IFS=$as_save_IFS 12791 test -z "$as_dir" && as_dir=. 12792 for ac_exec_ext in '' $ac_executable_extensions; do 12793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12794 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12796 break 2 12797 fi 12798 done 12799 done 12800 IFS=$as_save_IFS 12801 12802 ;; 12803 esac 12804 fi 12805 READLINK=$ac_cv_path_READLINK 12806 if test -n "$READLINK"; then 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12808 $as_echo "$READLINK" >&6; } 12809 else 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12811 $as_echo "no" >&6; } 12812 fi 12813 12814 12815 if test "x$READLINK" = x; then 12816 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12817 fi 12818 else 12819 # Otherwise we believe it is a complete path. Use it as it is. 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12821 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12823 $as_echo_n "checking for READLINK... " >&6; } 12824 if test ! -x "$tool_specified"; then 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12826 $as_echo "not found" >&6; } 12827 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12828 fi 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12830 $as_echo "$tool_specified" >&6; } 12831 fi 12832 fi 12833 fi 12834 12835 12836 12837 12838 # Publish this variable in the help. 12839 12840 12841 if test "x$DF" = x; then 12842 # The variable is not set by user, try to locate tool using the code snippet 12843 for ac_prog in df 12844 do 12845 # Extract the first word of "$ac_prog", so it can be a program name with args. 12846 set dummy $ac_prog; ac_word=$2 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12848 $as_echo_n "checking for $ac_word... " >&6; } 12849 if ${ac_cv_path_DF+:} false; then : 12850 $as_echo_n "(cached) " >&6 12851 else 12852 case $DF in 12853 [\\/]* | ?:[\\/]*) 12854 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12855 ;; 12856 *) 12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12858 for as_dir in $PATH 12859 do 12860 IFS=$as_save_IFS 12861 test -z "$as_dir" && as_dir=. 12862 for ac_exec_ext in '' $ac_executable_extensions; do 12863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12864 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12866 break 2 12867 fi 12868 done 12869 done 12870 IFS=$as_save_IFS 12871 12872 ;; 12873 esac 12874 fi 12875 DF=$ac_cv_path_DF 12876 if test -n "$DF"; then 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12878 $as_echo "$DF" >&6; } 12879 else 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12881 $as_echo "no" >&6; } 12882 fi 12883 12884 12885 test -n "$DF" && break 12886 done 12887 12888 else 12889 # The variable is set, but is it from the command line or the environment? 12890 12891 # Try to remove the string !DF! from our list. 12892 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12893 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12894 # If it failed, the variable was not from the command line. Ignore it, 12895 # but warn the user (except for BASH, which is always set by the calling BASH). 12896 if test "xDF" != xBASH; then 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12898 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12899 fi 12900 # Try to locate tool using the code snippet 12901 for ac_prog in df 12902 do 12903 # Extract the first word of "$ac_prog", so it can be a program name with args. 12904 set dummy $ac_prog; ac_word=$2 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12906 $as_echo_n "checking for $ac_word... " >&6; } 12907 if ${ac_cv_path_DF+:} false; then : 12908 $as_echo_n "(cached) " >&6 12909 else 12910 case $DF in 12911 [\\/]* | ?:[\\/]*) 12912 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12913 ;; 12914 *) 12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12916 for as_dir in $PATH 12917 do 12918 IFS=$as_save_IFS 12919 test -z "$as_dir" && as_dir=. 12920 for ac_exec_ext in '' $ac_executable_extensions; do 12921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12922 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12924 break 2 12925 fi 12926 done 12927 done 12928 IFS=$as_save_IFS 12929 12930 ;; 12931 esac 12932 fi 12933 DF=$ac_cv_path_DF 12934 if test -n "$DF"; then 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12936 $as_echo "$DF" >&6; } 12937 else 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12939 $as_echo "no" >&6; } 12940 fi 12941 12942 12943 test -n "$DF" && break 12944 done 12945 12946 else 12947 # If it succeeded, then it was overridden by the user. We will use it 12948 # for the tool. 12949 12950 # First remove it from the list of overridden variables, so we can test 12951 # for unknown variables in the end. 12952 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12953 12954 # Check if the provided tool contains a complete path. 12955 tool_specified="$DF" 12956 tool_basename="${tool_specified##*/}" 12957 if test "x$tool_basename" = "x$tool_specified"; then 12958 # A command without a complete path is provided, search $PATH. 12959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12960 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12961 # Extract the first word of "$tool_basename", so it can be a program name with args. 12962 set dummy $tool_basename; ac_word=$2 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12964 $as_echo_n "checking for $ac_word... " >&6; } 12965 if ${ac_cv_path_DF+:} false; then : 12966 $as_echo_n "(cached) " >&6 12967 else 12968 case $DF in 12969 [\\/]* | ?:[\\/]*) 12970 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12971 ;; 12972 *) 12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12974 for as_dir in $PATH 12975 do 12976 IFS=$as_save_IFS 12977 test -z "$as_dir" && as_dir=. 12978 for ac_exec_ext in '' $ac_executable_extensions; do 12979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12980 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12982 break 2 12983 fi 12984 done 12985 done 12986 IFS=$as_save_IFS 12987 12988 ;; 12989 esac 12990 fi 12991 DF=$ac_cv_path_DF 12992 if test -n "$DF"; then 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12994 $as_echo "$DF" >&6; } 12995 else 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12997 $as_echo "no" >&6; } 12998 fi 12999 13000 13001 if test "x$DF" = x; then 13002 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13003 fi 13004 else 13005 # Otherwise we believe it is a complete path. Use it as it is. 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13007 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13009 $as_echo_n "checking for DF... " >&6; } 13010 if test ! -x "$tool_specified"; then 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13012 $as_echo "not found" >&6; } 13013 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13014 fi 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13016 $as_echo "$tool_specified" >&6; } 13017 fi 13018 fi 13019 fi 13020 13021 13022 13023 13024 # Publish this variable in the help. 13025 13026 13027 if test "x$SETFILE" = x; then 13028 # The variable is not set by user, try to locate tool using the code snippet 13029 for ac_prog in SetFile 13030 do 13031 # Extract the first word of "$ac_prog", so it can be a program name with args. 13032 set dummy $ac_prog; ac_word=$2 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13034 $as_echo_n "checking for $ac_word... " >&6; } 13035 if ${ac_cv_path_SETFILE+:} false; then : 13036 $as_echo_n "(cached) " >&6 13037 else 13038 case $SETFILE in 13039 [\\/]* | ?:[\\/]*) 13040 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13041 ;; 13042 *) 13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13044 for as_dir in $PATH 13045 do 13046 IFS=$as_save_IFS 13047 test -z "$as_dir" && as_dir=. 13048 for ac_exec_ext in '' $ac_executable_extensions; do 13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13050 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13052 break 2 13053 fi 13054 done 13055 done 13056 IFS=$as_save_IFS 13057 13058 ;; 13059 esac 13060 fi 13061 SETFILE=$ac_cv_path_SETFILE 13062 if test -n "$SETFILE"; then 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13064 $as_echo "$SETFILE" >&6; } 13065 else 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13067 $as_echo "no" >&6; } 13068 fi 13069 13070 13071 test -n "$SETFILE" && break 13072 done 13073 13074 else 13075 # The variable is set, but is it from the command line or the environment? 13076 13077 # Try to remove the string !SETFILE! from our list. 13078 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13079 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13080 # If it failed, the variable was not from the command line. Ignore it, 13081 # but warn the user (except for BASH, which is always set by the calling BASH). 13082 if test "xSETFILE" != xBASH; then 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13084 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13085 fi 13086 # Try to locate tool using the code snippet 13087 for ac_prog in SetFile 13088 do 13089 # Extract the first word of "$ac_prog", so it can be a program name with args. 13090 set dummy $ac_prog; ac_word=$2 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13092 $as_echo_n "checking for $ac_word... " >&6; } 13093 if ${ac_cv_path_SETFILE+:} false; then : 13094 $as_echo_n "(cached) " >&6 13095 else 13096 case $SETFILE in 13097 [\\/]* | ?:[\\/]*) 13098 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13099 ;; 13100 *) 13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13102 for as_dir in $PATH 13103 do 13104 IFS=$as_save_IFS 13105 test -z "$as_dir" && as_dir=. 13106 for ac_exec_ext in '' $ac_executable_extensions; do 13107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13108 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13110 break 2 13111 fi 13112 done 13113 done 13114 IFS=$as_save_IFS 13115 13116 ;; 13117 esac 13118 fi 13119 SETFILE=$ac_cv_path_SETFILE 13120 if test -n "$SETFILE"; then 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13122 $as_echo "$SETFILE" >&6; } 13123 else 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13125 $as_echo "no" >&6; } 13126 fi 13127 13128 13129 test -n "$SETFILE" && break 13130 done 13131 13132 else 13133 # If it succeeded, then it was overridden by the user. We will use it 13134 # for the tool. 13135 13136 # First remove it from the list of overridden variables, so we can test 13137 # for unknown variables in the end. 13138 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13139 13140 # Check if the provided tool contains a complete path. 13141 tool_specified="$SETFILE" 13142 tool_basename="${tool_specified##*/}" 13143 if test "x$tool_basename" = "x$tool_specified"; then 13144 # A command without a complete path is provided, search $PATH. 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13146 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13147 # Extract the first word of "$tool_basename", so it can be a program name with args. 13148 set dummy $tool_basename; ac_word=$2 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13150 $as_echo_n "checking for $ac_word... " >&6; } 13151 if ${ac_cv_path_SETFILE+:} false; then : 13152 $as_echo_n "(cached) " >&6 13153 else 13154 case $SETFILE in 13155 [\\/]* | ?:[\\/]*) 13156 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13157 ;; 13158 *) 13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13160 for as_dir in $PATH 13161 do 13162 IFS=$as_save_IFS 13163 test -z "$as_dir" && as_dir=. 13164 for ac_exec_ext in '' $ac_executable_extensions; do 13165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13166 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13168 break 2 13169 fi 13170 done 13171 done 13172 IFS=$as_save_IFS 13173 13174 ;; 13175 esac 13176 fi 13177 SETFILE=$ac_cv_path_SETFILE 13178 if test -n "$SETFILE"; then 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13180 $as_echo "$SETFILE" >&6; } 13181 else 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13183 $as_echo "no" >&6; } 13184 fi 13185 13186 13187 if test "x$SETFILE" = x; then 13188 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13189 fi 13190 else 13191 # Otherwise we believe it is a complete path. Use it as it is. 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13193 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13195 $as_echo_n "checking for SETFILE... " >&6; } 13196 if test ! -x "$tool_specified"; then 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13198 $as_echo "not found" >&6; } 13199 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13200 fi 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13202 $as_echo "$tool_specified" >&6; } 13203 fi 13204 fi 13205 fi 13206 13207 13208 13209 13210 # Publish this variable in the help. 13211 13212 13213 if test "x$CPIO" = x; then 13214 # The variable is not set by user, try to locate tool using the code snippet 13215 for ac_prog in cpio bsdcpio 13216 do 13217 # Extract the first word of "$ac_prog", so it can be a program name with args. 13218 set dummy $ac_prog; ac_word=$2 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13220 $as_echo_n "checking for $ac_word... " >&6; } 13221 if ${ac_cv_path_CPIO+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223 else 13224 case $CPIO in 13225 [\\/]* | ?:[\\/]*) 13226 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13227 ;; 13228 *) 13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13230 for as_dir in $PATH 13231 do 13232 IFS=$as_save_IFS 13233 test -z "$as_dir" && as_dir=. 13234 for ac_exec_ext in '' $ac_executable_extensions; do 13235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13236 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13238 break 2 13239 fi 13240 done 13241 done 13242 IFS=$as_save_IFS 13243 13244 ;; 13245 esac 13246 fi 13247 CPIO=$ac_cv_path_CPIO 13248 if test -n "$CPIO"; then 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13250 $as_echo "$CPIO" >&6; } 13251 else 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13253 $as_echo "no" >&6; } 13254 fi 13255 13256 13257 test -n "$CPIO" && break 13258 done 13259 13260 else 13261 # The variable is set, but is it from the command line or the environment? 13262 13263 # Try to remove the string !CPIO! from our list. 13264 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13265 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13266 # If it failed, the variable was not from the command line. Ignore it, 13267 # but warn the user (except for BASH, which is always set by the calling BASH). 13268 if test "xCPIO" != xBASH; then 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13270 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13271 fi 13272 # Try to locate tool using the code snippet 13273 for ac_prog in cpio bsdcpio 13274 do 13275 # Extract the first word of "$ac_prog", so it can be a program name with args. 13276 set dummy $ac_prog; ac_word=$2 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13278 $as_echo_n "checking for $ac_word... " >&6; } 13279 if ${ac_cv_path_CPIO+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281 else 13282 case $CPIO in 13283 [\\/]* | ?:[\\/]*) 13284 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13285 ;; 13286 *) 13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13288 for as_dir in $PATH 13289 do 13290 IFS=$as_save_IFS 13291 test -z "$as_dir" && as_dir=. 13292 for ac_exec_ext in '' $ac_executable_extensions; do 13293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13294 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13296 break 2 13297 fi 13298 done 13299 done 13300 IFS=$as_save_IFS 13301 13302 ;; 13303 esac 13304 fi 13305 CPIO=$ac_cv_path_CPIO 13306 if test -n "$CPIO"; then 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13308 $as_echo "$CPIO" >&6; } 13309 else 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13311 $as_echo "no" >&6; } 13312 fi 13313 13314 13315 test -n "$CPIO" && break 13316 done 13317 13318 else 13319 # If it succeeded, then it was overridden by the user. We will use it 13320 # for the tool. 13321 13322 # First remove it from the list of overridden variables, so we can test 13323 # for unknown variables in the end. 13324 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13325 13326 # Check if the provided tool contains a complete path. 13327 tool_specified="$CPIO" 13328 tool_basename="${tool_specified##*/}" 13329 if test "x$tool_basename" = "x$tool_specified"; then 13330 # A command without a complete path is provided, search $PATH. 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13332 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13333 # Extract the first word of "$tool_basename", so it can be a program name with args. 13334 set dummy $tool_basename; ac_word=$2 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13336 $as_echo_n "checking for $ac_word... " >&6; } 13337 if ${ac_cv_path_CPIO+:} false; then : 13338 $as_echo_n "(cached) " >&6 13339 else 13340 case $CPIO in 13341 [\\/]* | ?:[\\/]*) 13342 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13343 ;; 13344 *) 13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13346 for as_dir in $PATH 13347 do 13348 IFS=$as_save_IFS 13349 test -z "$as_dir" && as_dir=. 13350 for ac_exec_ext in '' $ac_executable_extensions; do 13351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13352 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13354 break 2 13355 fi 13356 done 13357 done 13358 IFS=$as_save_IFS 13359 13360 ;; 13361 esac 13362 fi 13363 CPIO=$ac_cv_path_CPIO 13364 if test -n "$CPIO"; then 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13366 $as_echo "$CPIO" >&6; } 13367 else 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13369 $as_echo "no" >&6; } 13370 fi 13371 13372 13373 if test "x$CPIO" = x; then 13374 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13375 fi 13376 else 13377 # Otherwise we believe it is a complete path. Use it as it is. 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13379 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13381 $as_echo_n "checking for CPIO... " >&6; } 13382 if test ! -x "$tool_specified"; then 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13384 $as_echo "not found" >&6; } 13385 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13386 fi 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13388 $as_echo "$tool_specified" >&6; } 13389 fi 13390 fi 13391 fi 13392 13393 13394 13395 13396 # Now we can determine OpenJDK build and target platforms. This is required to 13397 # have early on. 13398 # Make sure we can run config.sub. 13399 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13400 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13401 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13403 $as_echo_n "checking build system type... " >&6; } 13404 if ${ac_cv_build+:} false; then : 13405 $as_echo_n "(cached) " >&6 13406 else 13407 ac_build_alias=$build_alias 13408 test "x$ac_build_alias" = x && 13409 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13410 test "x$ac_build_alias" = x && 13411 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13412 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13414 13415 fi 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13417 $as_echo "$ac_cv_build" >&6; } 13418 case $ac_cv_build in 13419 *-*-*) ;; 13420 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13421 esac 13422 build=$ac_cv_build 13423 ac_save_IFS=$IFS; IFS='-' 13424 set x $ac_cv_build 13425 shift 13426 build_cpu=$1 13427 build_vendor=$2 13428 shift; shift 13429 # Remember, the first character of IFS is used to create $*, 13430 # except with old shells: 13431 build_os=$* 13432 IFS=$ac_save_IFS 13433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13434 13435 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13437 $as_echo_n "checking host system type... " >&6; } 13438 if ${ac_cv_host+:} false; then : 13439 $as_echo_n "(cached) " >&6 13440 else 13441 if test "x$host_alias" = x; then 13442 ac_cv_host=$ac_cv_build 13443 else 13444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13446 fi 13447 13448 fi 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13450 $as_echo "$ac_cv_host" >&6; } 13451 case $ac_cv_host in 13452 *-*-*) ;; 13453 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13454 esac 13455 host=$ac_cv_host 13456 ac_save_IFS=$IFS; IFS='-' 13457 set x $ac_cv_host 13458 shift 13459 host_cpu=$1 13460 host_vendor=$2 13461 shift; shift 13462 # Remember, the first character of IFS is used to create $*, 13463 # except with old shells: 13464 host_os=$* 13465 IFS=$ac_save_IFS 13466 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13467 13468 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13470 $as_echo_n "checking target system type... " >&6; } 13471 if ${ac_cv_target+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473 else 13474 if test "x$target_alias" = x; then 13475 ac_cv_target=$ac_cv_host 13476 else 13477 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13479 fi 13480 13481 fi 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13483 $as_echo "$ac_cv_target" >&6; } 13484 case $ac_cv_target in 13485 *-*-*) ;; 13486 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13487 esac 13488 target=$ac_cv_target 13489 ac_save_IFS=$IFS; IFS='-' 13490 set x $ac_cv_target 13491 shift 13492 target_cpu=$1 13493 target_vendor=$2 13494 shift; shift 13495 # Remember, the first character of IFS is used to create $*, 13496 # except with old shells: 13497 target_os=$* 13498 IFS=$ac_save_IFS 13499 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13500 13501 13502 # The aliases save the names the user supplied, while $host etc. 13503 # will get canonicalized. 13504 test -n "$target_alias" && 13505 test "$program_prefix$program_suffix$program_transform_name" = \ 13506 NONENONEs,x,x, && 13507 program_prefix=${target_alias}- 13508 13509 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13510 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13511 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13512 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13513 # to use the configure naming style. 13514 13515 13516 13517 13518 13519 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13520 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13521 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13522 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13523 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13524 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13525 13526 13527 13528 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13529 13530 case "$build_os" in 13531 *linux*) 13532 VAR_OS=linux 13533 VAR_OS_TYPE=unix 13534 ;; 13535 *solaris*) 13536 VAR_OS=solaris 13537 VAR_OS_TYPE=unix 13538 ;; 13539 *darwin*) 13540 VAR_OS=macosx 13541 VAR_OS_TYPE=unix 13542 ;; 13543 *bsd*) 13544 VAR_OS=bsd 13545 VAR_OS_TYPE=unix 13546 ;; 13547 *cygwin*) 13548 VAR_OS=windows 13549 VAR_OS_ENV=windows.cygwin 13550 ;; 13551 *mingw*) 13552 VAR_OS=windows 13553 VAR_OS_ENV=windows.msys 13554 ;; 13555 *aix*) 13556 VAR_OS=aix 13557 VAR_OS_TYPE=unix 13558 ;; 13559 *) 13560 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13561 ;; 13562 esac 13563 13564 13565 # First argument is the cpu name from the trip/quad 13566 case "$build_cpu" in 13567 x86_64) 13568 VAR_CPU=x86_64 13569 VAR_CPU_ARCH=x86 13570 VAR_CPU_BITS=64 13571 VAR_CPU_ENDIAN=little 13572 ;; 13573 i?86) 13574 VAR_CPU=x86 13575 VAR_CPU_ARCH=x86 13576 VAR_CPU_BITS=32 13577 VAR_CPU_ENDIAN=little 13578 ;; 13579 arm*) 13580 VAR_CPU=arm 13581 VAR_CPU_ARCH=arm 13582 VAR_CPU_BITS=32 13583 VAR_CPU_ENDIAN=little 13584 ;; 13585 powerpc) 13586 VAR_CPU=ppc 13587 VAR_CPU_ARCH=ppc 13588 VAR_CPU_BITS=32 13589 VAR_CPU_ENDIAN=big 13590 ;; 13591 powerpc64) 13592 VAR_CPU=ppc64 13593 VAR_CPU_ARCH=ppc 13594 VAR_CPU_BITS=64 13595 VAR_CPU_ENDIAN=big 13596 ;; 13597 powerpc64le) 13598 VAR_CPU=ppc64 13599 VAR_CPU_ARCH=ppc 13600 VAR_CPU_BITS=64 13601 VAR_CPU_ENDIAN=little 13602 ;; 13603 s390) 13604 VAR_CPU=s390 13605 VAR_CPU_ARCH=s390 13606 VAR_CPU_BITS=32 13607 VAR_CPU_ENDIAN=big 13608 ;; 13609 s390x) 13610 VAR_CPU=s390x 13611 VAR_CPU_ARCH=s390 13612 VAR_CPU_BITS=64 13613 VAR_CPU_ENDIAN=big 13614 ;; 13615 sparc) 13616 VAR_CPU=sparc 13617 VAR_CPU_ARCH=sparc 13618 VAR_CPU_BITS=32 13619 VAR_CPU_ENDIAN=big 13620 ;; 13621 sparcv9|sparc64) 13622 VAR_CPU=sparcv9 13623 VAR_CPU_ARCH=sparc 13624 VAR_CPU_BITS=64 13625 VAR_CPU_ENDIAN=big 13626 ;; 13627 *) 13628 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13629 ;; 13630 esac 13631 13632 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13633 OPENJDK_BUILD_OS="$VAR_OS" 13634 if test "x$VAR_OS_TYPE" != x; then 13635 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 13636 else 13637 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 13638 fi 13639 if test "x$VAR_OS_ENV" != x; then 13640 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13641 else 13642 OPENJDK_BUILD_OS_ENV="$VAR_OS" 13643 fi 13644 OPENJDK_BUILD_CPU="$VAR_CPU" 13645 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13646 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13647 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13648 13649 13650 13651 13652 13653 13654 13655 13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13657 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13659 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13660 13661 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13662 13663 case "$host_os" in 13664 *linux*) 13665 VAR_OS=linux 13666 VAR_OS_TYPE=unix 13667 ;; 13668 *solaris*) 13669 VAR_OS=solaris 13670 VAR_OS_TYPE=unix 13671 ;; 13672 *darwin*) 13673 VAR_OS=macosx 13674 VAR_OS_TYPE=unix 13675 ;; 13676 *bsd*) 13677 VAR_OS=bsd 13678 VAR_OS_TYPE=unix 13679 ;; 13680 *cygwin*) 13681 VAR_OS=windows 13682 VAR_OS_ENV=windows.cygwin 13683 ;; 13684 *mingw*) 13685 VAR_OS=windows 13686 VAR_OS_ENV=windows.msys 13687 ;; 13688 *aix*) 13689 VAR_OS=aix 13690 VAR_OS_TYPE=unix 13691 ;; 13692 *) 13693 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13694 ;; 13695 esac 13696 13697 13698 # First argument is the cpu name from the trip/quad 13699 case "$host_cpu" in 13700 x86_64) 13701 VAR_CPU=x86_64 13702 VAR_CPU_ARCH=x86 13703 VAR_CPU_BITS=64 13704 VAR_CPU_ENDIAN=little 13705 ;; 13706 i?86) 13707 VAR_CPU=x86 13708 VAR_CPU_ARCH=x86 13709 VAR_CPU_BITS=32 13710 VAR_CPU_ENDIAN=little 13711 ;; 13712 arm*) 13713 VAR_CPU=arm 13714 VAR_CPU_ARCH=arm 13715 VAR_CPU_BITS=32 13716 VAR_CPU_ENDIAN=little 13717 ;; 13718 powerpc) 13719 VAR_CPU=ppc 13720 VAR_CPU_ARCH=ppc 13721 VAR_CPU_BITS=32 13722 VAR_CPU_ENDIAN=big 13723 ;; 13724 powerpc64) 13725 VAR_CPU=ppc64 13726 VAR_CPU_ARCH=ppc 13727 VAR_CPU_BITS=64 13728 VAR_CPU_ENDIAN=big 13729 ;; 13730 powerpc64le) 13731 VAR_CPU=ppc64 13732 VAR_CPU_ARCH=ppc 13733 VAR_CPU_BITS=64 13734 VAR_CPU_ENDIAN=little 13735 ;; 13736 s390) 13737 VAR_CPU=s390 13738 VAR_CPU_ARCH=s390 13739 VAR_CPU_BITS=32 13740 VAR_CPU_ENDIAN=big 13741 ;; 13742 s390x) 13743 VAR_CPU=s390x 13744 VAR_CPU_ARCH=s390 13745 VAR_CPU_BITS=64 13746 VAR_CPU_ENDIAN=big 13747 ;; 13748 sparc) 13749 VAR_CPU=sparc 13750 VAR_CPU_ARCH=sparc 13751 VAR_CPU_BITS=32 13752 VAR_CPU_ENDIAN=big 13753 ;; 13754 sparcv9|sparc64) 13755 VAR_CPU=sparcv9 13756 VAR_CPU_ARCH=sparc 13757 VAR_CPU_BITS=64 13758 VAR_CPU_ENDIAN=big 13759 ;; 13760 *) 13761 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13762 ;; 13763 esac 13764 13765 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13766 OPENJDK_TARGET_OS="$VAR_OS" 13767 if test "x$VAR_OS_TYPE" != x; then 13768 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 13769 else 13770 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 13771 fi 13772 if test "x$VAR_OS_ENV" != x; then 13773 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13774 else 13775 OPENJDK_TARGET_OS_ENV="$VAR_OS" 13776 fi 13777 OPENJDK_TARGET_CPU="$VAR_CPU" 13778 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13779 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13780 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13781 13782 13783 13784 13785 13786 13787 13788 13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13790 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13792 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13793 13794 13795 13796 # Check whether --with-target-bits was given. 13797 if test "${with_target_bits+set}" = set; then : 13798 withval=$with_target_bits; 13799 fi 13800 13801 13802 # We have three types of compiles: 13803 # native == normal compilation, target system == build system 13804 # cross == traditional cross compilation, target system != build system; special toolchain needed 13805 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13806 # 13807 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13808 # We're doing a proper cross-compilation 13809 COMPILE_TYPE="cross" 13810 else 13811 COMPILE_TYPE="native" 13812 fi 13813 13814 if test "x$with_target_bits" != x; then 13815 if test "x$COMPILE_TYPE" = "xcross"; then 13816 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13817 fi 13818 13819 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13820 # A reduced build is requested 13821 COMPILE_TYPE="reduced" 13822 OPENJDK_TARGET_CPU_BITS=32 13823 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13824 OPENJDK_TARGET_CPU=x86 13825 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13826 OPENJDK_TARGET_CPU=sparc 13827 else 13828 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13829 fi 13830 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13831 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 13832 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13834 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13835 else 13836 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13837 fi 13838 fi 13839 13840 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13842 $as_echo_n "checking compilation type... " >&6; } 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13844 $as_echo "$COMPILE_TYPE" >&6; } 13845 13846 13847 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13848 REQUIRED_OS_NAME=SunOS 13849 REQUIRED_OS_VERSION=5.10 13850 fi 13851 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13852 REQUIRED_OS_NAME=Linux 13853 REQUIRED_OS_VERSION=2.6 13854 fi 13855 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13856 REQUIRED_OS_NAME=Windows 13857 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13858 REQUIRED_OS_VERSION=5.2 13859 else 13860 REQUIRED_OS_VERSION=5.1 13861 fi 13862 fi 13863 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13864 REQUIRED_OS_NAME=Darwin 13865 REQUIRED_OS_VERSION=11.2 13866 fi 13867 13868 13869 13870 13871 13872 # Also store the legacy naming of the cpu. 13873 # Ie i586 and amd64 instead of x86 and x86_64 13874 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13875 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13876 OPENJDK_TARGET_CPU_LEGACY="i586" 13877 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13878 # On all platforms except MacOSX replace x86_64 with amd64. 13879 OPENJDK_TARGET_CPU_LEGACY="amd64" 13880 fi 13881 13882 13883 # And the second legacy naming of the cpu. 13884 # Ie i386 and amd64 instead of x86 and x86_64. 13885 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13886 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13887 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13888 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13889 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13890 fi 13891 13892 13893 # This is the name of the cpu (but using i386 and amd64 instead of 13894 # x86 and x86_64, respectively), preceeded by a /, to be used when 13895 # locating libraries. On macosx, it's empty, though. 13896 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13897 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13898 OPENJDK_TARGET_CPU_LIBDIR="" 13899 fi 13900 13901 13902 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13903 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13904 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13905 OPENJDK_TARGET_CPU_ISADIR="" 13906 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13907 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13908 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13909 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13910 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13911 fi 13912 fi 13913 13914 13915 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13916 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13917 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13918 # On linux only, we replace x86 with i386. 13919 OPENJDK_TARGET_CPU_OSARCH="i386" 13920 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13921 # On all platforms except macosx, we replace x86_64 with amd64. 13922 OPENJDK_TARGET_CPU_OSARCH="amd64" 13923 fi 13924 13925 13926 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13927 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13928 OPENJDK_TARGET_CPU_JLI="i386" 13929 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13930 # On all platforms except macosx, we replace x86_64 with amd64. 13931 OPENJDK_TARGET_CPU_JLI="amd64" 13932 fi 13933 # Now setup the -D flags for building libjli. 13934 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13935 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13936 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13937 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13938 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13939 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13940 fi 13941 fi 13942 13943 13944 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13945 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13946 else 13947 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 13948 fi 13949 13950 13951 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13952 A_LP64="LP64:=" 13953 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13954 # unpack200.exe 13955 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13956 ADD_LP64="-D_LP64=1" 13957 fi 13958 fi 13959 LP64=$A_LP64 13960 13961 13962 if test "x$COMPILE_TYPE" = "xcross"; then 13963 # FIXME: ... or should this include reduced builds..? 13964 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13965 else 13966 DEFINE_CROSS_COMPILE_ARCH="" 13967 fi 13968 13969 13970 # ZERO_ARCHDEF is used to enable architecture-specific code 13971 case "${OPENJDK_TARGET_CPU}" in 13972 ppc) ZERO_ARCHDEF=PPC32 ;; 13973 ppc64) ZERO_ARCHDEF=PPC64 ;; 13974 s390*) ZERO_ARCHDEF=S390 ;; 13975 sparc*) ZERO_ARCHDEF=SPARC ;; 13976 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13977 x86) ZERO_ARCHDEF=IA32 ;; 13978 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13979 esac 13980 13981 13982 13983 13984 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13985 13986 # Save the current directory this script was started from 13987 CURDIR="$PWD" 13988 13989 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13990 PATH_SEP=";" 13991 13992 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13993 if test $SRC_ROOT_LENGTH -gt 100; then 13994 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13995 fi 13996 13997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13999 $as_echo_n "checking cygwin release... " >&6; } 14000 CYGWIN_VERSION=`$UNAME -r` 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14002 $as_echo "$CYGWIN_VERSION" >&6; } 14003 WINDOWS_ENV_VENDOR='cygwin' 14004 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14005 14006 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14007 if test "x$CYGWIN_VERSION_OK" = x; then 14008 { $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 14009 $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;} 14010 as_fn_error $? "Cannot continue" "$LINENO" 5 14011 fi 14012 if test "x$CYGPATH" = x; then 14013 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14014 fi 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14016 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14017 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14018 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14019 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14020 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14022 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14023 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14024 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14025 if test "x$test_cygdrive_prefix" = x; then 14026 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14027 fi 14028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14030 $as_echo_n "checking msys release... " >&6; } 14031 MSYS_VERSION=`$UNAME -r` 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14033 $as_echo "$MSYS_VERSION" >&6; } 14034 14035 WINDOWS_ENV_VENDOR='msys' 14036 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14037 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14039 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14040 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14041 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14042 14043 windows_path="$MSYS_ROOT_PATH" 14044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14045 unix_path=`$CYGPATH -u "$windows_path"` 14046 MSYS_ROOT_PATH="$unix_path" 14047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14049 MSYS_ROOT_PATH="$unix_path" 14050 fi 14051 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14053 $as_echo "$MSYS_ROOT_PATH" >&6; } 14054 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14055 else 14056 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14057 fi 14058 14059 # Test if windows or unix (cygwin/msys) find is first in path. 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14061 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14062 FIND_BINARY_OUTPUT=`find --version 2>&1` 14063 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14065 $as_echo "unix style" >&6; } 14066 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14068 $as_echo "Windows" >&6; } 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14070 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14071 { $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 14072 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14073 as_fn_error $? "Cannot continue" "$LINENO" 5 14074 else 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14076 $as_echo "unknown" >&6; } 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14078 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14079 fi 14080 14081 else 14082 PATH_SEP=":" 14083 fi 14084 14085 14086 # We get the top-level directory from the supporting wrappers. 14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14088 $as_echo_n "checking for top-level directory... " >&6; } 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14090 $as_echo "$TOPDIR" >&6; } 14091 14092 14093 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14094 14095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14096 14097 # Input might be given as Windows format, start by converting to 14098 # unix format. 14099 path="$CURDIR" 14100 new_path=`$CYGPATH -u "$path"` 14101 14102 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14103 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14104 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14105 # "foo.exe" is OK but "foo" is an error. 14106 # 14107 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14108 # It is also a way to make sure we got the proper file name for the real test later on. 14109 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14110 if test "x$test_shortpath" = x; then 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14112 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14113 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14114 fi 14115 14116 # Call helper function which possibly converts this using DOS-style short mode. 14117 # If so, the updated path is stored in $new_path. 14118 14119 input_path="$new_path" 14120 # Check if we need to convert this using DOS-style short mode. If the path 14121 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14122 # take no chances and rewrite it. 14123 # Note: m4 eats our [], so we need to use [ and ] instead. 14124 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14125 if test "x$has_forbidden_chars" != x; then 14126 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14127 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14128 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14129 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14130 # Going to short mode and back again did indeed matter. Since short mode is 14131 # case insensitive, let's make it lowercase to improve readability. 14132 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14133 # Now convert it back to Unix-stile (cygpath) 14134 input_path=`$CYGPATH -u "$shortmode_path"` 14135 new_path="$input_path" 14136 fi 14137 fi 14138 14139 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14140 if test "x$test_cygdrive_prefix" = x; then 14141 # As a simple fix, exclude /usr/bin since it's not a real path. 14142 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14143 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14144 # a path prefixed by /cygdrive for fixpath to work. 14145 new_path="$CYGWIN_ROOT_PATH$input_path" 14146 fi 14147 fi 14148 14149 14150 if test "x$path" != "x$new_path"; then 14151 CURDIR="$new_path" 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14153 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14154 fi 14155 14156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14157 14158 path="$CURDIR" 14159 has_colon=`$ECHO $path | $GREP ^.:` 14160 new_path="$path" 14161 if test "x$has_colon" = x; then 14162 # Not in mixed or Windows style, start by that. 14163 new_path=`cmd //c echo $path` 14164 fi 14165 14166 14167 input_path="$new_path" 14168 # Check if we need to convert this using DOS-style short mode. If the path 14169 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14170 # take no chances and rewrite it. 14171 # Note: m4 eats our [], so we need to use [ and ] instead. 14172 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14173 if test "x$has_forbidden_chars" != x; then 14174 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14175 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14176 fi 14177 14178 14179 windows_path="$new_path" 14180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14181 unix_path=`$CYGPATH -u "$windows_path"` 14182 new_path="$unix_path" 14183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14185 new_path="$unix_path" 14186 fi 14187 14188 if test "x$path" != "x$new_path"; then 14189 CURDIR="$new_path" 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14191 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14192 fi 14193 14194 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14195 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14196 14197 else 14198 # We're on a unix platform. Hooray! :) 14199 path="$CURDIR" 14200 has_space=`$ECHO "$path" | $GREP " "` 14201 if test "x$has_space" != x; then 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14203 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14204 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14205 fi 14206 14207 # Use eval to expand a potential ~ 14208 eval path="$path" 14209 if test ! -f "$path" && test ! -d "$path"; then 14210 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14211 fi 14212 14213 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14214 fi 14215 14216 14217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14218 14219 # Input might be given as Windows format, start by converting to 14220 # unix format. 14221 path="$TOPDIR" 14222 new_path=`$CYGPATH -u "$path"` 14223 14224 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14225 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14226 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14227 # "foo.exe" is OK but "foo" is an error. 14228 # 14229 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14230 # It is also a way to make sure we got the proper file name for the real test later on. 14231 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14232 if test "x$test_shortpath" = x; then 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14234 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14235 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14236 fi 14237 14238 # Call helper function which possibly converts this using DOS-style short mode. 14239 # If so, the updated path is stored in $new_path. 14240 14241 input_path="$new_path" 14242 # Check if we need to convert this using DOS-style short mode. If the path 14243 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14244 # take no chances and rewrite it. 14245 # Note: m4 eats our [], so we need to use [ and ] instead. 14246 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14247 if test "x$has_forbidden_chars" != x; then 14248 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14249 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14250 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14251 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14252 # Going to short mode and back again did indeed matter. Since short mode is 14253 # case insensitive, let's make it lowercase to improve readability. 14254 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14255 # Now convert it back to Unix-stile (cygpath) 14256 input_path=`$CYGPATH -u "$shortmode_path"` 14257 new_path="$input_path" 14258 fi 14259 fi 14260 14261 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14262 if test "x$test_cygdrive_prefix" = x; then 14263 # As a simple fix, exclude /usr/bin since it's not a real path. 14264 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14265 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14266 # a path prefixed by /cygdrive for fixpath to work. 14267 new_path="$CYGWIN_ROOT_PATH$input_path" 14268 fi 14269 fi 14270 14271 14272 if test "x$path" != "x$new_path"; then 14273 TOPDIR="$new_path" 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14275 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14276 fi 14277 14278 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14279 14280 path="$TOPDIR" 14281 has_colon=`$ECHO $path | $GREP ^.:` 14282 new_path="$path" 14283 if test "x$has_colon" = x; then 14284 # Not in mixed or Windows style, start by that. 14285 new_path=`cmd //c echo $path` 14286 fi 14287 14288 14289 input_path="$new_path" 14290 # Check if we need to convert this using DOS-style short mode. If the path 14291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14292 # take no chances and rewrite it. 14293 # Note: m4 eats our [], so we need to use [ and ] instead. 14294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14295 if test "x$has_forbidden_chars" != x; then 14296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14297 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14298 fi 14299 14300 14301 windows_path="$new_path" 14302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14303 unix_path=`$CYGPATH -u "$windows_path"` 14304 new_path="$unix_path" 14305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14307 new_path="$unix_path" 14308 fi 14309 14310 if test "x$path" != "x$new_path"; then 14311 TOPDIR="$new_path" 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14313 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14314 fi 14315 14316 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14317 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14318 14319 else 14320 # We're on a unix platform. Hooray! :) 14321 path="$TOPDIR" 14322 has_space=`$ECHO "$path" | $GREP " "` 14323 if test "x$has_space" != x; then 14324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14325 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14326 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14327 fi 14328 14329 # Use eval to expand a potential ~ 14330 eval path="$path" 14331 if test ! -f "$path" && test ! -d "$path"; then 14332 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14333 fi 14334 14335 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14336 fi 14337 14338 # SRC_ROOT is a traditional alias for TOPDIR. 14339 SRC_ROOT=$TOPDIR 14340 14341 # Locate the directory of this script. 14342 AUTOCONF_DIR=$TOPDIR/common/autoconf 14343 14344 14345 # Setup default logging of stdout and stderr to build.log in the output root. 14346 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14347 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14348 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14349 14350 14351 14352 14353 14354 # Check if it's a pure open build or if custom sources are to be used. 14355 14356 # Check whether --enable-openjdk-only was given. 14357 if test "${enable_openjdk_only+set}" = set; then : 14358 enableval=$enable_openjdk_only; 14359 else 14360 enable_openjdk_only="no" 14361 fi 14362 14363 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14365 $as_echo_n "checking for presence of closed sources... " >&6; } 14366 if test -d "$SRC_ROOT/jdk/src/closed"; then 14367 CLOSED_SOURCE_PRESENT=yes 14368 else 14369 CLOSED_SOURCE_PRESENT=no 14370 fi 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14372 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14373 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14375 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14376 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14378 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14379 14380 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14381 OPENJDK=true 14382 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14384 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14385 fi 14386 else 14387 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14388 OPENJDK=true 14389 else 14390 OPENJDK=false 14391 fi 14392 fi 14393 14394 if test "x$OPENJDK" = "xtrue"; then 14395 SET_OPENJDK="OPENJDK=true" 14396 fi 14397 14398 14399 14400 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14401 # the IncludeCustomExtension macro. 14402 14403 14404 # Check whether --with-custom-make-dir was given. 14405 if test "${with_custom_make_dir+set}" = set; then : 14406 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 14407 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14408 fi 14409 14410 14411 14412 14413 # These are needed to be able to create a configuration name (and thus the output directory) 14414 14415 ############################################################################### 14416 # 14417 # Check which variant of the JDK that we want to build. 14418 # Currently we have: 14419 # normal: standard edition 14420 # but the custom make system may add other variants 14421 # 14422 # Effectively the JDK variant gives a name to a specific set of 14423 # modules to compile into the JDK. In the future, these modules 14424 # might even be Jigsaw modules. 14425 # 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14427 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14428 14429 # Check whether --with-jdk-variant was given. 14430 if test "${with_jdk_variant+set}" = set; then : 14431 withval=$with_jdk_variant; 14432 fi 14433 14434 14435 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14436 JDK_VARIANT="normal" 14437 else 14438 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14439 fi 14440 14441 14442 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14444 $as_echo "$JDK_VARIANT" >&6; } 14445 14446 14447 ############################################################################### 14448 # 14449 # Check which interpreter of the JVM we want to build. 14450 # Currently we have: 14451 # template: Template interpreter (the default) 14452 # cpp : C++ interpreter 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14454 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14455 14456 # Check whether --with-jvm-interpreter was given. 14457 if test "${with_jvm_interpreter+set}" = set; then : 14458 withval=$with_jvm_interpreter; 14459 fi 14460 14461 14462 if test "x$with_jvm_interpreter" = x; then 14463 with_jvm_interpreter="template" 14464 fi 14465 14466 JVM_INTERPRETER="$with_jvm_interpreter" 14467 14468 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14469 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14470 fi 14471 14472 14473 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14475 $as_echo "$with_jvm_interpreter" >&6; } 14476 14477 14478 14479 ############################################################################### 14480 # 14481 # Check which variants of the JVM that we want to build. 14482 # Currently we have: 14483 # server: normal interpreter and a tiered C1/C2 compiler 14484 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14485 # minimal1: reduced form of client with optional VM services and features stripped out 14486 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14487 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14488 # zero: no machine code interpreter, no compiler 14489 # zeroshark: zero interpreter and shark/llvm compiler backend 14490 # core: interpreter only, no compiler (only works on some platforms) 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14492 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14493 14494 # Check whether --with-jvm-variants was given. 14495 if test "${with_jvm_variants+set}" = set; then : 14496 withval=$with_jvm_variants; 14497 fi 14498 14499 14500 if test "x$with_jvm_variants" = x; then 14501 with_jvm_variants="server" 14502 fi 14503 14504 JVM_VARIANTS=",$with_jvm_variants," 14505 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,//'` 14506 14507 if test "x$TEST_VARIANTS" != "x,"; then 14508 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14509 fi 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14511 $as_echo "$with_jvm_variants" >&6; } 14512 14513 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14514 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14515 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14516 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14517 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14518 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14519 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14520 14521 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14522 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14523 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14524 fi 14525 fi 14526 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14527 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14528 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14529 fi 14530 fi 14531 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14532 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14533 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14534 fi 14535 fi 14536 14537 # Replace the commas with AND for use in the build directory name. 14538 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14539 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/'` 14540 if test "x$COUNT_VARIANTS" != "x,1"; then 14541 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14542 else 14543 BUILDING_MULTIPLE_JVM_VARIANTS=no 14544 fi 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 INCLUDE_SA=true 14556 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14557 INCLUDE_SA=false 14558 fi 14559 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14560 INCLUDE_SA=false 14561 fi 14562 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14563 INCLUDE_SA=false 14564 fi 14565 14566 14567 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14568 MACOSX_UNIVERSAL="true" 14569 fi 14570 14571 14572 14573 14574 ############################################################################### 14575 # 14576 # Set the debug level 14577 # release: no debug information, all optimizations, no asserts. 14578 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14579 # fastdebug: debug information (-g), all optimizations, all asserts 14580 # slowdebug: debug information (-g), no optimizations, all asserts 14581 # 14582 DEBUG_LEVEL="release" 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14584 $as_echo_n "checking which debug level to use... " >&6; } 14585 # Check whether --enable-debug was given. 14586 if test "${enable_debug+set}" = set; then : 14587 enableval=$enable_debug; 14588 ENABLE_DEBUG="${enableval}" 14589 DEBUG_LEVEL="fastdebug" 14590 14591 else 14592 ENABLE_DEBUG="no" 14593 fi 14594 14595 14596 14597 # Check whether --with-debug-level was given. 14598 if test "${with_debug_level+set}" = set; then : 14599 withval=$with_debug_level; 14600 DEBUG_LEVEL="${withval}" 14601 if test "x$ENABLE_DEBUG" = xyes; then 14602 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14603 fi 14604 14605 fi 14606 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14608 $as_echo "$DEBUG_LEVEL" >&6; } 14609 14610 if test "x$DEBUG_LEVEL" != xrelease && \ 14611 test "x$DEBUG_LEVEL" != xoptimized && \ 14612 test "x$DEBUG_LEVEL" != xfastdebug && \ 14613 test "x$DEBUG_LEVEL" != xslowdebug; then 14614 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14615 fi 14616 14617 14618 ############################################################################### 14619 # 14620 # Setup legacy vars/targets and new vars to deal with different debug levels. 14621 # 14622 14623 case $DEBUG_LEVEL in 14624 release ) 14625 VARIANT="OPT" 14626 FASTDEBUG="false" 14627 DEBUG_CLASSFILES="false" 14628 BUILD_VARIANT_RELEASE="" 14629 HOTSPOT_DEBUG_LEVEL="product" 14630 HOTSPOT_EXPORT="product" 14631 ;; 14632 fastdebug ) 14633 VARIANT="DBG" 14634 FASTDEBUG="true" 14635 DEBUG_CLASSFILES="true" 14636 BUILD_VARIANT_RELEASE="-fastdebug" 14637 HOTSPOT_DEBUG_LEVEL="fastdebug" 14638 HOTSPOT_EXPORT="fastdebug" 14639 ;; 14640 slowdebug ) 14641 VARIANT="DBG" 14642 FASTDEBUG="false" 14643 DEBUG_CLASSFILES="true" 14644 BUILD_VARIANT_RELEASE="-debug" 14645 HOTSPOT_DEBUG_LEVEL="debug" 14646 HOTSPOT_EXPORT="debug" 14647 ;; 14648 optimized ) 14649 VARIANT="OPT" 14650 FASTDEBUG="false" 14651 DEBUG_CLASSFILES="false" 14652 BUILD_VARIANT_RELEASE="-optimized" 14653 HOTSPOT_DEBUG_LEVEL="optimized" 14654 HOTSPOT_EXPORT="optimized" 14655 ;; 14656 esac 14657 14658 # The debug level 'optimized' is a little special because it is currently only 14659 # applicable to the HotSpot build where it means to build a completely 14660 # optimized version of the VM without any debugging code (like for the 14661 # 'release' debug level which is called 'product' in the HotSpot build) but 14662 # with the exception that it can contain additional code which is otherwise 14663 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14664 # test new and/or experimental features which are not intended for customer 14665 # shipment. Because these new features need to be tested and benchmarked in 14666 # real world scenarios, we want to build the containing JDK at the 'release' 14667 # debug level. 14668 if test "x$DEBUG_LEVEL" = xoptimized; then 14669 DEBUG_LEVEL="release" 14670 fi 14671 14672 ##### 14673 # Generate the legacy makefile targets for hotspot. 14674 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14675 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14676 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14677 # But until then ... 14678 HOTSPOT_TARGET="" 14679 14680 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14681 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14682 fi 14683 14684 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14685 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14686 fi 14687 14688 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14689 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14690 fi 14691 14692 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14693 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14694 fi 14695 14696 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14697 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14698 fi 14699 14700 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14701 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14702 fi 14703 14704 if test "x$JVM_VARIANT_CORE" = xtrue; then 14705 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14706 fi 14707 14708 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14709 14710 # On Macosx universal binaries are produced, but they only contain 14711 # 64 bit intel. This invalidates control of which jvms are built 14712 # from configure, but only server is valid anyway. Fix this 14713 # when hotspot makefiles are rewritten. 14714 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14715 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14716 fi 14717 14718 ##### 14719 14720 14721 14722 14723 14724 14725 14726 14727 # With basic setup done, call the custom early hook. 14728 14729 14730 # Check if we have devkits, extra paths or sysroot set. 14731 14732 14733 # Check whether --with-devkit was given. 14734 if test "${with_devkit+set}" = set; then : 14735 withval=$with_devkit; 14736 14737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14738 14739 # Input might be given as Windows format, start by converting to 14740 # unix format. 14741 path="$with_devkit" 14742 new_path=`$CYGPATH -u "$path"` 14743 14744 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14745 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14746 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14747 # "foo.exe" is OK but "foo" is an error. 14748 # 14749 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14750 # It is also a way to make sure we got the proper file name for the real test later on. 14751 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14752 if test "x$test_shortpath" = x; then 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14754 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14755 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14756 fi 14757 14758 # Call helper function which possibly converts this using DOS-style short mode. 14759 # If so, the updated path is stored in $new_path. 14760 14761 input_path="$new_path" 14762 # Check if we need to convert this using DOS-style short mode. If the path 14763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14764 # take no chances and rewrite it. 14765 # Note: m4 eats our [], so we need to use [ and ] instead. 14766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14767 if test "x$has_forbidden_chars" != x; then 14768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14769 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14770 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14771 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14772 # Going to short mode and back again did indeed matter. Since short mode is 14773 # case insensitive, let's make it lowercase to improve readability. 14774 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14775 # Now convert it back to Unix-stile (cygpath) 14776 input_path=`$CYGPATH -u "$shortmode_path"` 14777 new_path="$input_path" 14778 fi 14779 fi 14780 14781 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14782 if test "x$test_cygdrive_prefix" = x; then 14783 # As a simple fix, exclude /usr/bin since it's not a real path. 14784 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14785 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14786 # a path prefixed by /cygdrive for fixpath to work. 14787 new_path="$CYGWIN_ROOT_PATH$input_path" 14788 fi 14789 fi 14790 14791 14792 if test "x$path" != "x$new_path"; then 14793 with_devkit="$new_path" 14794 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14795 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14796 fi 14797 14798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14799 14800 path="$with_devkit" 14801 has_colon=`$ECHO $path | $GREP ^.:` 14802 new_path="$path" 14803 if test "x$has_colon" = x; then 14804 # Not in mixed or Windows style, start by that. 14805 new_path=`cmd //c echo $path` 14806 fi 14807 14808 14809 input_path="$new_path" 14810 # Check if we need to convert this using DOS-style short mode. If the path 14811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14812 # take no chances and rewrite it. 14813 # Note: m4 eats our [], so we need to use [ and ] instead. 14814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14815 if test "x$has_forbidden_chars" != x; then 14816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14817 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14818 fi 14819 14820 14821 windows_path="$new_path" 14822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14823 unix_path=`$CYGPATH -u "$windows_path"` 14824 new_path="$unix_path" 14825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14827 new_path="$unix_path" 14828 fi 14829 14830 if test "x$path" != "x$new_path"; then 14831 with_devkit="$new_path" 14832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14833 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14834 fi 14835 14836 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14837 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14838 14839 else 14840 # We're on a unix platform. Hooray! :) 14841 path="$with_devkit" 14842 has_space=`$ECHO "$path" | $GREP " "` 14843 if test "x$has_space" != x; then 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14845 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14846 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14847 fi 14848 14849 # Use eval to expand a potential ~ 14850 eval path="$path" 14851 if test ! -f "$path" && test ! -d "$path"; then 14852 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14853 fi 14854 14855 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14856 fi 14857 14858 DEVKIT_ROOT="$with_devkit" 14859 # Check for a meta data info file in the root of the devkit 14860 if test -f "$DEVKIT_ROOT/devkit.info"; then 14861 # This potentially sets the following: 14862 # DEVKIT_NAME: A descriptive name of the devkit 14863 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14864 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14865 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14866 . $DEVKIT_ROOT/devkit.info 14867 fi 14868 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14870 $as_echo_n "checking for devkit... " >&6; } 14871 if test "x$DEVKIT_NAME" != x; then 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14873 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14874 else 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14876 $as_echo "$DEVKIT_ROOT" >&6; } 14877 fi 14878 14879 if test "x$DEVKIT_EXTRA_PATH" != x; then 14880 14881 if test "x$DEVKIT_EXTRA_PATH" != x; then 14882 if test "x$EXTRA_PATH" = x; then 14883 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14884 else 14885 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14886 fi 14887 fi 14888 14889 fi 14890 14891 # Fallback default of just /bin if DEVKIT_PATH is not defined 14892 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14893 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14894 fi 14895 14896 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14897 if test "x$TOOLCHAIN_PATH" = x; then 14898 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14899 else 14900 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14901 fi 14902 fi 14903 14904 14905 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14906 # places for backwards compatiblity. 14907 if test "x$DEVKIT_SYSROOT" != x; then 14908 SYSROOT="$DEVKIT_SYSROOT" 14909 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14910 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14911 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14912 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14913 fi 14914 14915 14916 fi 14917 14918 14919 # You can force the sysroot if the sysroot encoded into the compiler tools 14920 # is not correct. 14921 14922 # Check whether --with-sys-root was given. 14923 if test "${with_sys_root+set}" = set; then : 14924 withval=$with_sys_root; SYSROOT=$with_sys_root 14925 14926 fi 14927 14928 14929 14930 # Check whether --with-sysroot was given. 14931 if test "${with_sysroot+set}" = set; then : 14932 withval=$with_sysroot; SYSROOT=$with_sysroot 14933 14934 fi 14935 14936 14937 14938 # Check whether --with-tools-dir was given. 14939 if test "${with_tools_dir+set}" = set; then : 14940 withval=$with_tools_dir; 14941 if test "x$with_tools_dir" != x; then 14942 if test "x$TOOLCHAIN_PATH" = x; then 14943 TOOLCHAIN_PATH="$with_tools_dir" 14944 else 14945 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14946 fi 14947 fi 14948 14949 14950 fi 14951 14952 14953 14954 # Check whether --with-toolchain-path was given. 14955 if test "${with_toolchain_path+set}" = set; then : 14956 withval=$with_toolchain_path; 14957 if test "x$with_toolchain_path" != x; then 14958 if test "x$TOOLCHAIN_PATH" = x; then 14959 TOOLCHAIN_PATH="$with_toolchain_path" 14960 else 14961 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14962 fi 14963 fi 14964 14965 14966 fi 14967 14968 14969 14970 # Check whether --with-extra-path was given. 14971 if test "${with_extra_path+set}" = set; then : 14972 withval=$with_extra_path; 14973 if test "x$with_extra_path" != x; then 14974 if test "x$EXTRA_PATH" = x; then 14975 EXTRA_PATH="$with_extra_path" 14976 else 14977 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14978 fi 14979 fi 14980 14981 14982 fi 14983 14984 14985 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 14986 # detect if Xcode is installed by running xcodebuild -version 14987 # if no Xcode installed, xcodebuild exits with 1 14988 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 14989 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 14990 # We need to use xcodebuild in the toolchain dir provided by the user, this will 14991 # fall back on the stub binary in /usr/bin/xcodebuild 14992 # Extract the first word of "xcodebuild", so it can be a program name with args. 14993 set dummy xcodebuild; ac_word=$2 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14995 $as_echo_n "checking for $ac_word... " >&6; } 14996 if ${ac_cv_path_XCODEBUILD+:} false; then : 14997 $as_echo_n "(cached) " >&6 14998 else 14999 case $XCODEBUILD in 15000 [\\/]* | ?:[\\/]*) 15001 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15002 ;; 15003 *) 15004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15005 for as_dir in $TOOLCHAIN_PATH 15006 do 15007 IFS=$as_save_IFS 15008 test -z "$as_dir" && as_dir=. 15009 for ac_exec_ext in '' $ac_executable_extensions; do 15010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15011 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15013 break 2 15014 fi 15015 done 15016 done 15017 IFS=$as_save_IFS 15018 15019 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15020 ;; 15021 esac 15022 fi 15023 XCODEBUILD=$ac_cv_path_XCODEBUILD 15024 if test -n "$XCODEBUILD"; then 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15026 $as_echo "$XCODEBUILD" >&6; } 15027 else 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15029 $as_echo "no" >&6; } 15030 fi 15031 15032 15033 else 15034 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15035 # when only the command line tools are installed there are no SDKs, so headers 15036 # are copied into the system frameworks 15037 XCODEBUILD= 15038 15039 fi 15040 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15042 $as_echo_n "checking for sdk name... " >&6; } 15043 15044 # Check whether --with-sdk-name was given. 15045 if test "${with_sdk_name+set}" = set; then : 15046 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15047 15048 fi 15049 15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15051 $as_echo "$SDKNAME" >&6; } 15052 15053 # if toolchain path is specified then don't rely on system headers, they may not compile 15054 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15055 test -z "$TOOLCHAIN_PATH" && \ 15056 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15057 15058 if test -z "$SYSROOT"; then 15059 if test -n "$XCODEBUILD"; then 15060 # if we don't have system headers, use default SDK name (last resort) 15061 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15062 SDKNAME=${SDKNAME:-macosx} 15063 fi 15064 15065 if test -n "$SDKNAME"; then 15066 # Call xcodebuild to determine SYSROOT 15067 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15068 fi 15069 else 15070 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15071 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 15072 fi 15073 fi 15074 else 15075 # warn user if --with-sdk-name was also set 15076 if test -n "$with_sdk_name"; then 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15078 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15079 fi 15080 fi 15081 15082 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15083 # If no system framework headers, then SYSROOT must be set, or we won't build 15084 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 15085 fi 15086 15087 # Perform a basic sanity test 15088 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15089 if test -z "$SYSROOT"; then 15090 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 15091 else 15092 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15093 fi 15094 fi 15095 15096 # set SDKROOT too, Xcode tools will pick it up 15097 SDKROOT=$SYSROOT 15098 15099 fi 15100 15101 # Prepend the extra path to the global path 15102 15103 if test "x$EXTRA_PATH" != x; then 15104 if test "x$PATH" = x; then 15105 PATH="$EXTRA_PATH" 15106 else 15107 PATH="$EXTRA_PATH:$PATH" 15108 fi 15109 fi 15110 15111 15112 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15113 # Add extra search paths on solaris for utilities like ar and as etc... 15114 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15115 fi 15116 15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15118 $as_echo_n "checking for sysroot... " >&6; } 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15120 $as_echo "$SYSROOT" >&6; } 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15122 $as_echo_n "checking for toolchain path... " >&6; } 15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15124 $as_echo "$TOOLCHAIN_PATH" >&6; } 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15126 $as_echo_n "checking for extra path... " >&6; } 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15128 $as_echo "$EXTRA_PATH" >&6; } 15129 15130 15131 # To properly create a configuration name, we need to have the OpenJDK target 15132 # and options (variants and debug level) parsed. 15133 15134 15135 15136 # Check whether --with-conf-name was given. 15137 if test "${with_conf_name+set}" = set; then : 15138 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15139 fi 15140 15141 15142 # Test from where we are running configure, in or outside of src root. 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15144 $as_echo_n "checking where to store configuration... " >&6; } 15145 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15146 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15147 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15148 # We are running configure from the src root. 15149 # Create a default ./build/target-variant-debuglevel output root. 15150 if test "x${CONF_NAME}" = x; then 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15152 $as_echo "in default location" >&6; } 15153 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15154 else 15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15156 $as_echo "in build directory with custom name" >&6; } 15157 fi 15158 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15159 $MKDIR -p "$OUTPUT_ROOT" 15160 if test ! -d "$OUTPUT_ROOT"; then 15161 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15162 fi 15163 else 15164 # We are running configure from outside of the src dir. 15165 # Then use the current directory as output dir! 15166 # If configuration is situated in normal build directory, just use the build 15167 # directory name as configuration name, otherwise use the complete path. 15168 if test "x${CONF_NAME}" = x; then 15169 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15170 fi 15171 OUTPUT_ROOT="$CURDIR" 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15173 $as_echo "in current directory" >&6; } 15174 15175 # WARNING: This might be a bad thing to do. You need to be sure you want to 15176 # have a configuration in this directory. Do some sanity checks! 15177 15178 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15179 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15180 # other files 15181 files_present=`$LS $OUTPUT_ROOT` 15182 # Configure has already touched config.log and confdefs.h in the current dir when this check 15183 # is performed. 15184 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15185 | $TR -d '\n'` 15186 if test "x$filtered_files" != x; then 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15188 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15190 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15192 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15194 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15196 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15198 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15200 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15201 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15202 fi 15203 fi 15204 fi 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15206 $as_echo_n "checking what configuration name to use... " >&6; } 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15208 $as_echo "$CONF_NAME" >&6; } 15209 15210 15211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15212 15213 # Input might be given as Windows format, start by converting to 15214 # unix format. 15215 path="$OUTPUT_ROOT" 15216 new_path=`$CYGPATH -u "$path"` 15217 15218 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15219 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15220 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15221 # "foo.exe" is OK but "foo" is an error. 15222 # 15223 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15224 # It is also a way to make sure we got the proper file name for the real test later on. 15225 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15226 if test "x$test_shortpath" = x; then 15227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15228 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15229 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15230 fi 15231 15232 # Call helper function which possibly converts this using DOS-style short mode. 15233 # If so, the updated path is stored in $new_path. 15234 15235 input_path="$new_path" 15236 # Check if we need to convert this using DOS-style short mode. If the path 15237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15238 # take no chances and rewrite it. 15239 # Note: m4 eats our [], so we need to use [ and ] instead. 15240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15241 if test "x$has_forbidden_chars" != x; then 15242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15246 # Going to short mode and back again did indeed matter. Since short mode is 15247 # case insensitive, let's make it lowercase to improve readability. 15248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15249 # Now convert it back to Unix-stile (cygpath) 15250 input_path=`$CYGPATH -u "$shortmode_path"` 15251 new_path="$input_path" 15252 fi 15253 fi 15254 15255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15256 if test "x$test_cygdrive_prefix" = x; then 15257 # As a simple fix, exclude /usr/bin since it's not a real path. 15258 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15260 # a path prefixed by /cygdrive for fixpath to work. 15261 new_path="$CYGWIN_ROOT_PATH$input_path" 15262 fi 15263 fi 15264 15265 15266 if test "x$path" != "x$new_path"; then 15267 OUTPUT_ROOT="$new_path" 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15269 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15270 fi 15271 15272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15273 15274 path="$OUTPUT_ROOT" 15275 has_colon=`$ECHO $path | $GREP ^.:` 15276 new_path="$path" 15277 if test "x$has_colon" = x; then 15278 # Not in mixed or Windows style, start by that. 15279 new_path=`cmd //c echo $path` 15280 fi 15281 15282 15283 input_path="$new_path" 15284 # Check if we need to convert this using DOS-style short mode. If the path 15285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15286 # take no chances and rewrite it. 15287 # Note: m4 eats our [], so we need to use [ and ] instead. 15288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15289 if test "x$has_forbidden_chars" != x; then 15290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15291 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15292 fi 15293 15294 15295 windows_path="$new_path" 15296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15297 unix_path=`$CYGPATH -u "$windows_path"` 15298 new_path="$unix_path" 15299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15301 new_path="$unix_path" 15302 fi 15303 15304 if test "x$path" != "x$new_path"; then 15305 OUTPUT_ROOT="$new_path" 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15307 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15308 fi 15309 15310 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15311 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15312 15313 else 15314 # We're on a unix platform. Hooray! :) 15315 path="$OUTPUT_ROOT" 15316 has_space=`$ECHO "$path" | $GREP " "` 15317 if test "x$has_space" != x; then 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15319 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15320 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15321 fi 15322 15323 # Use eval to expand a potential ~ 15324 eval path="$path" 15325 if test ! -f "$path" && test ! -d "$path"; then 15326 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15327 fi 15328 15329 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15330 fi 15331 15332 15333 SPEC=$OUTPUT_ROOT/spec.gmk 15334 15335 CONF_NAME=$CONF_NAME 15336 15337 OUTPUT_ROOT=$OUTPUT_ROOT 15338 15339 15340 # The spec.gmk file contains all variables for the make system. 15341 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15342 15343 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15344 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15345 15346 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15347 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15348 15349 # The compare.sh is used to compare the build output to other builds. 15350 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15351 15352 # The generated Makefile knows where the spec.gmk is and where the source is. 15353 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15354 # which will look for generated configurations 15355 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15356 15357 15358 15359 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15360 15361 for ac_prog in apt-get yum port pkgutil pkgadd 15362 do 15363 # Extract the first word of "$ac_prog", so it can be a program name with args. 15364 set dummy $ac_prog; ac_word=$2 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15366 $as_echo_n "checking for $ac_word... " >&6; } 15367 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15368 $as_echo_n "(cached) " >&6 15369 else 15370 if test -n "$PKGHANDLER"; then 15371 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15372 else 15373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15374 for as_dir in $PATH 15375 do 15376 IFS=$as_save_IFS 15377 test -z "$as_dir" && as_dir=. 15378 for ac_exec_ext in '' $ac_executable_extensions; do 15379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15380 ac_cv_prog_PKGHANDLER="$ac_prog" 15381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15382 break 2 15383 fi 15384 done 15385 done 15386 IFS=$as_save_IFS 15387 15388 fi 15389 fi 15390 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15391 if test -n "$PKGHANDLER"; then 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15393 $as_echo "$PKGHANDLER" >&6; } 15394 else 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15396 $as_echo "no" >&6; } 15397 fi 15398 15399 15400 test -n "$PKGHANDLER" && break 15401 done 15402 15403 15404 15405 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15406 15407 15408 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15409 if test "x$MAKE" != x; then 15410 # User has supplied a make, test it. 15411 if test ! -f "$MAKE"; then 15412 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15413 fi 15414 15415 MAKE_CANDIDATE=""$MAKE"" 15416 DESCRIPTION="user supplied MAKE=$MAKE" 15417 if test "x$MAKE_CANDIDATE" != x; then 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15419 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15420 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15421 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15422 if test "x$IS_GNU_MAKE" = x; then 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15424 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15425 else 15426 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15427 if test "x$IS_MODERN_MAKE" = x; then 15428 { $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 15429 $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;} 15430 else 15431 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15433 MAKE_EXPECTED_ENV='cygwin' 15434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15435 MAKE_EXPECTED_ENV='msys' 15436 else 15437 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15438 fi 15439 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15440 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15441 else 15442 # Not relevant for non-Windows 15443 IS_MAKE_CORRECT_ENV=true 15444 fi 15445 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15446 { $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 15447 $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;} 15448 else 15449 FOUND_MAKE=$MAKE_CANDIDATE 15450 15451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15452 15453 # First separate the path from the arguments. This will split at the first 15454 # space. 15455 complete="$FOUND_MAKE" 15456 path="${complete%% *}" 15457 tmp="$complete EOL" 15458 arguments="${tmp#* }" 15459 15460 # Input might be given as Windows format, start by converting to 15461 # unix format. 15462 new_path=`$CYGPATH -u "$path"` 15463 15464 # Now try to locate executable using which 15465 new_path=`$WHICH "$new_path" 2> /dev/null` 15466 # bat and cmd files are not always considered executable in cygwin causing which 15467 # to not find them 15468 if test "x$new_path" = x \ 15469 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15470 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15471 new_path=`$CYGPATH -u "$path"` 15472 fi 15473 if test "x$new_path" = x; then 15474 # Oops. Which didn't find the executable. 15475 # The splitting of arguments from the executable at a space might have been incorrect, 15476 # since paths with space are more likely in Windows. Give it another try with the whole 15477 # argument. 15478 path="$complete" 15479 arguments="EOL" 15480 new_path=`$CYGPATH -u "$path"` 15481 new_path=`$WHICH "$new_path" 2> /dev/null` 15482 # bat and cmd files are not always considered executable in cygwin causing which 15483 # to not find them 15484 if test "x$new_path" = x \ 15485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15487 new_path=`$CYGPATH -u "$path"` 15488 fi 15489 if test "x$new_path" = x; then 15490 # It's still not found. Now this is an unrecoverable error. 15491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15492 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15493 has_space=`$ECHO "$complete" | $GREP " "` 15494 if test "x$has_space" != x; then 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15496 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15497 fi 15498 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15499 fi 15500 fi 15501 15502 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15503 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15504 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15505 # "foo.exe" is OK but "foo" is an error. 15506 # 15507 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15508 # It is also a way to make sure we got the proper file name for the real test later on. 15509 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15510 if test "x$test_shortpath" = x; then 15511 # Short path failed, file does not exist as specified. 15512 # Try adding .exe or .cmd 15513 if test -f "${new_path}.exe"; then 15514 input_to_shortpath="${new_path}.exe" 15515 elif test -f "${new_path}.cmd"; then 15516 input_to_shortpath="${new_path}.cmd" 15517 else 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15519 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15521 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15522 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15523 fi 15524 else 15525 input_to_shortpath="$new_path" 15526 fi 15527 15528 # Call helper function which possibly converts this using DOS-style short mode. 15529 # If so, the updated path is stored in $new_path. 15530 new_path="$input_to_shortpath" 15531 15532 input_path="$input_to_shortpath" 15533 # Check if we need to convert this using DOS-style short mode. If the path 15534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15535 # take no chances and rewrite it. 15536 # Note: m4 eats our [], so we need to use [ and ] instead. 15537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15538 if test "x$has_forbidden_chars" != x; then 15539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15543 # Going to short mode and back again did indeed matter. Since short mode is 15544 # case insensitive, let's make it lowercase to improve readability. 15545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15546 # Now convert it back to Unix-stile (cygpath) 15547 input_path=`$CYGPATH -u "$shortmode_path"` 15548 new_path="$input_path" 15549 fi 15550 fi 15551 15552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15553 if test "x$test_cygdrive_prefix" = x; then 15554 # As a simple fix, exclude /usr/bin since it's not a real path. 15555 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15557 # a path prefixed by /cygdrive for fixpath to work. 15558 new_path="$CYGWIN_ROOT_PATH$input_path" 15559 fi 15560 fi 15561 15562 # remove trailing .exe if any 15563 new_path="${new_path/%.exe/}" 15564 15565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15566 15567 # First separate the path from the arguments. This will split at the first 15568 # space. 15569 complete="$FOUND_MAKE" 15570 path="${complete%% *}" 15571 tmp="$complete EOL" 15572 arguments="${tmp#* }" 15573 15574 # Input might be given as Windows format, start by converting to 15575 # unix format. 15576 new_path="$path" 15577 15578 windows_path="$new_path" 15579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15580 unix_path=`$CYGPATH -u "$windows_path"` 15581 new_path="$unix_path" 15582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15584 new_path="$unix_path" 15585 fi 15586 15587 15588 # Now try to locate executable using which 15589 new_path=`$WHICH "$new_path" 2> /dev/null` 15590 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="$path" 15599 15600 windows_path="$new_path" 15601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15602 unix_path=`$CYGPATH -u "$windows_path"` 15603 new_path="$unix_path" 15604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15606 new_path="$unix_path" 15607 fi 15608 15609 15610 new_path=`$WHICH "$new_path" 2> /dev/null` 15611 # bat and cmd files are not always considered executable in MSYS causing which 15612 # to not find them 15613 if test "x$new_path" = x \ 15614 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15615 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15616 new_path="$path" 15617 15618 windows_path="$new_path" 15619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15620 unix_path=`$CYGPATH -u "$windows_path"` 15621 new_path="$unix_path" 15622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15624 new_path="$unix_path" 15625 fi 15626 15627 fi 15628 15629 if test "x$new_path" = x; then 15630 # It's still not found. Now this is an unrecoverable error. 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15632 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15633 has_space=`$ECHO "$complete" | $GREP " "` 15634 if test "x$has_space" != x; then 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15636 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15637 fi 15638 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15639 fi 15640 fi 15641 15642 # Now new_path has a complete unix path to the binary 15643 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15644 # Keep paths in /bin as-is, but remove trailing .exe if any 15645 new_path="${new_path/%.exe/}" 15646 # Do not save /bin paths to all_fixpath_prefixes! 15647 else 15648 # Not in mixed or Windows style, start by that. 15649 new_path=`cmd //c echo $new_path` 15650 15651 input_path="$new_path" 15652 # Check if we need to convert this using DOS-style short mode. If the path 15653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15654 # take no chances and rewrite it. 15655 # Note: m4 eats our [], so we need to use [ and ] instead. 15656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15657 if test "x$has_forbidden_chars" != x; then 15658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15659 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15660 fi 15661 15662 # Output is in $new_path 15663 15664 windows_path="$new_path" 15665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15666 unix_path=`$CYGPATH -u "$windows_path"` 15667 new_path="$unix_path" 15668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15670 new_path="$unix_path" 15671 fi 15672 15673 # remove trailing .exe if any 15674 new_path="${new_path/%.exe/}" 15675 15676 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15677 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15678 fi 15679 15680 else 15681 # We're on a unix platform. Hooray! :) 15682 # First separate the path from the arguments. This will split at the first 15683 # space. 15684 complete="$FOUND_MAKE" 15685 path="${complete%% *}" 15686 tmp="$complete EOL" 15687 arguments="${tmp#* }" 15688 15689 # Cannot rely on the command "which" here since it doesn't always work. 15690 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15691 if test -z "$is_absolute_path"; then 15692 # Path to executable is not absolute. Find it. 15693 IFS_save="$IFS" 15694 IFS=: 15695 for p in $PATH; do 15696 if test -f "$p/$path" && test -x "$p/$path"; then 15697 new_path="$p/$path" 15698 break 15699 fi 15700 done 15701 IFS="$IFS_save" 15702 else 15703 # This is an absolute path, we can use it without further modifications. 15704 new_path="$path" 15705 fi 15706 15707 if test "x$new_path" = x; then 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15709 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15710 has_space=`$ECHO "$complete" | $GREP " "` 15711 if test "x$has_space" != x; then 15712 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15713 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15714 fi 15715 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15716 fi 15717 fi 15718 15719 # Now join together the path and the arguments once again 15720 if test "x$arguments" != xEOL; then 15721 new_complete="$new_path ${arguments% *}" 15722 else 15723 new_complete="$new_path" 15724 fi 15725 15726 if test "x$complete" != "x$new_complete"; then 15727 FOUND_MAKE="$new_complete" 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15729 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15730 fi 15731 15732 fi 15733 fi 15734 fi 15735 fi 15736 15737 if test "x$FOUND_MAKE" = x; then 15738 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15739 fi 15740 else 15741 # Try our hardest to locate a correct version of GNU make 15742 for ac_prog in gmake 15743 do 15744 # Extract the first word of "$ac_prog", so it can be a program name with args. 15745 set dummy $ac_prog; ac_word=$2 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15747 $as_echo_n "checking for $ac_word... " >&6; } 15748 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15749 $as_echo_n "(cached) " >&6 15750 else 15751 case $CHECK_GMAKE in 15752 [\\/]* | ?:[\\/]*) 15753 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15754 ;; 15755 *) 15756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15757 for as_dir in $PATH 15758 do 15759 IFS=$as_save_IFS 15760 test -z "$as_dir" && as_dir=. 15761 for ac_exec_ext in '' $ac_executable_extensions; do 15762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15763 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15765 break 2 15766 fi 15767 done 15768 done 15769 IFS=$as_save_IFS 15770 15771 ;; 15772 esac 15773 fi 15774 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15775 if test -n "$CHECK_GMAKE"; then 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15777 $as_echo "$CHECK_GMAKE" >&6; } 15778 else 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15780 $as_echo "no" >&6; } 15781 fi 15782 15783 15784 test -n "$CHECK_GMAKE" && break 15785 done 15786 15787 15788 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15789 DESCRIPTION="gmake in PATH" 15790 if test "x$MAKE_CANDIDATE" != x; then 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15792 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15793 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15794 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15795 if test "x$IS_GNU_MAKE" = x; then 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15797 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15798 else 15799 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15800 if test "x$IS_MODERN_MAKE" = x; then 15801 { $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 15802 $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;} 15803 else 15804 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15806 MAKE_EXPECTED_ENV='cygwin' 15807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15808 MAKE_EXPECTED_ENV='msys' 15809 else 15810 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15811 fi 15812 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15813 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15814 else 15815 # Not relevant for non-Windows 15816 IS_MAKE_CORRECT_ENV=true 15817 fi 15818 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15819 { $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 15820 $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;} 15821 else 15822 FOUND_MAKE=$MAKE_CANDIDATE 15823 15824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15825 15826 # First separate the path from the arguments. This will split at the first 15827 # space. 15828 complete="$FOUND_MAKE" 15829 path="${complete%% *}" 15830 tmp="$complete EOL" 15831 arguments="${tmp#* }" 15832 15833 # Input might be given as Windows format, start by converting to 15834 # unix format. 15835 new_path=`$CYGPATH -u "$path"` 15836 15837 # Now try to locate executable using which 15838 new_path=`$WHICH "$new_path" 2> /dev/null` 15839 # bat and cmd files are not always considered executable in cygwin causing which 15840 # to not find them 15841 if test "x$new_path" = x \ 15842 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15843 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15844 new_path=`$CYGPATH -u "$path"` 15845 fi 15846 if test "x$new_path" = x; then 15847 # Oops. Which didn't find the executable. 15848 # The splitting of arguments from the executable at a space might have been incorrect, 15849 # since paths with space are more likely in Windows. Give it another try with the whole 15850 # argument. 15851 path="$complete" 15852 arguments="EOL" 15853 new_path=`$CYGPATH -u "$path"` 15854 new_path=`$WHICH "$new_path" 2> /dev/null` 15855 # bat and cmd files are not always considered executable in cygwin causing which 15856 # to not find them 15857 if test "x$new_path" = x \ 15858 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15859 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15860 new_path=`$CYGPATH -u "$path"` 15861 fi 15862 if test "x$new_path" = x; then 15863 # It's still not found. Now this is an unrecoverable error. 15864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15865 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15866 has_space=`$ECHO "$complete" | $GREP " "` 15867 if test "x$has_space" != x; then 15868 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15869 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15870 fi 15871 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15872 fi 15873 fi 15874 15875 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15876 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15877 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15878 # "foo.exe" is OK but "foo" is an error. 15879 # 15880 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15881 # It is also a way to make sure we got the proper file name for the real test later on. 15882 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15883 if test "x$test_shortpath" = x; then 15884 # Short path failed, file does not exist as specified. 15885 # Try adding .exe or .cmd 15886 if test -f "${new_path}.exe"; then 15887 input_to_shortpath="${new_path}.exe" 15888 elif test -f "${new_path}.cmd"; then 15889 input_to_shortpath="${new_path}.cmd" 15890 else 15891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15892 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15894 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15895 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15896 fi 15897 else 15898 input_to_shortpath="$new_path" 15899 fi 15900 15901 # Call helper function which possibly converts this using DOS-style short mode. 15902 # If so, the updated path is stored in $new_path. 15903 new_path="$input_to_shortpath" 15904 15905 input_path="$input_to_shortpath" 15906 # Check if we need to convert this using DOS-style short mode. If the path 15907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15908 # take no chances and rewrite it. 15909 # Note: m4 eats our [], so we need to use [ and ] instead. 15910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15911 if test "x$has_forbidden_chars" != x; then 15912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15916 # Going to short mode and back again did indeed matter. Since short mode is 15917 # case insensitive, let's make it lowercase to improve readability. 15918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15919 # Now convert it back to Unix-stile (cygpath) 15920 input_path=`$CYGPATH -u "$shortmode_path"` 15921 new_path="$input_path" 15922 fi 15923 fi 15924 15925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15926 if test "x$test_cygdrive_prefix" = x; then 15927 # As a simple fix, exclude /usr/bin since it's not a real path. 15928 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15930 # a path prefixed by /cygdrive for fixpath to work. 15931 new_path="$CYGWIN_ROOT_PATH$input_path" 15932 fi 15933 fi 15934 15935 # remove trailing .exe if any 15936 new_path="${new_path/%.exe/}" 15937 15938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15939 15940 # First separate the path from the arguments. This will split at the first 15941 # space. 15942 complete="$FOUND_MAKE" 15943 path="${complete%% *}" 15944 tmp="$complete EOL" 15945 arguments="${tmp#* }" 15946 15947 # Input might be given as Windows format, start by converting to 15948 # unix format. 15949 new_path="$path" 15950 15951 windows_path="$new_path" 15952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15953 unix_path=`$CYGPATH -u "$windows_path"` 15954 new_path="$unix_path" 15955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15957 new_path="$unix_path" 15958 fi 15959 15960 15961 # Now try to locate executable using which 15962 new_path=`$WHICH "$new_path" 2> /dev/null` 15963 15964 if test "x$new_path" = x; then 15965 # Oops. Which didn't find the executable. 15966 # The splitting of arguments from the executable at a space might have been incorrect, 15967 # since paths with space are more likely in Windows. Give it another try with the whole 15968 # argument. 15969 path="$complete" 15970 arguments="EOL" 15971 new_path="$path" 15972 15973 windows_path="$new_path" 15974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15975 unix_path=`$CYGPATH -u "$windows_path"` 15976 new_path="$unix_path" 15977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15979 new_path="$unix_path" 15980 fi 15981 15982 15983 new_path=`$WHICH "$new_path" 2> /dev/null` 15984 # bat and cmd files are not always considered executable in MSYS causing which 15985 # to not find them 15986 if test "x$new_path" = x \ 15987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15989 new_path="$path" 15990 15991 windows_path="$new_path" 15992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15993 unix_path=`$CYGPATH -u "$windows_path"` 15994 new_path="$unix_path" 15995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15997 new_path="$unix_path" 15998 fi 15999 16000 fi 16001 16002 if test "x$new_path" = x; then 16003 # It's still not found. Now this is an unrecoverable error. 16004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16005 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16006 has_space=`$ECHO "$complete" | $GREP " "` 16007 if test "x$has_space" != x; then 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16009 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16010 fi 16011 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16012 fi 16013 fi 16014 16015 # Now new_path has a complete unix path to the binary 16016 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16017 # Keep paths in /bin as-is, but remove trailing .exe if any 16018 new_path="${new_path/%.exe/}" 16019 # Do not save /bin paths to all_fixpath_prefixes! 16020 else 16021 # Not in mixed or Windows style, start by that. 16022 new_path=`cmd //c echo $new_path` 16023 16024 input_path="$new_path" 16025 # Check if we need to convert this using DOS-style short mode. If the path 16026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16027 # take no chances and rewrite it. 16028 # Note: m4 eats our [], so we need to use [ and ] instead. 16029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16030 if test "x$has_forbidden_chars" != x; then 16031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16032 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16033 fi 16034 16035 # Output is in $new_path 16036 16037 windows_path="$new_path" 16038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16039 unix_path=`$CYGPATH -u "$windows_path"` 16040 new_path="$unix_path" 16041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16043 new_path="$unix_path" 16044 fi 16045 16046 # remove trailing .exe if any 16047 new_path="${new_path/%.exe/}" 16048 16049 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16050 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16051 fi 16052 16053 else 16054 # We're on a unix platform. Hooray! :) 16055 # First separate the path from the arguments. This will split at the first 16056 # space. 16057 complete="$FOUND_MAKE" 16058 path="${complete%% *}" 16059 tmp="$complete EOL" 16060 arguments="${tmp#* }" 16061 16062 # Cannot rely on the command "which" here since it doesn't always work. 16063 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16064 if test -z "$is_absolute_path"; then 16065 # Path to executable is not absolute. Find it. 16066 IFS_save="$IFS" 16067 IFS=: 16068 for p in $PATH; do 16069 if test -f "$p/$path" && test -x "$p/$path"; then 16070 new_path="$p/$path" 16071 break 16072 fi 16073 done 16074 IFS="$IFS_save" 16075 else 16076 # This is an absolute path, we can use it without further modifications. 16077 new_path="$path" 16078 fi 16079 16080 if test "x$new_path" = x; then 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16082 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16083 has_space=`$ECHO "$complete" | $GREP " "` 16084 if test "x$has_space" != x; then 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16086 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16087 fi 16088 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16089 fi 16090 fi 16091 16092 # Now join together the path and the arguments once again 16093 if test "x$arguments" != xEOL; then 16094 new_complete="$new_path ${arguments% *}" 16095 else 16096 new_complete="$new_path" 16097 fi 16098 16099 if test "x$complete" != "x$new_complete"; then 16100 FOUND_MAKE="$new_complete" 16101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16102 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16103 fi 16104 16105 fi 16106 fi 16107 fi 16108 fi 16109 16110 16111 if test "x$FOUND_MAKE" = x; then 16112 for ac_prog in make 16113 do 16114 # Extract the first word of "$ac_prog", so it can be a program name with args. 16115 set dummy $ac_prog; ac_word=$2 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16117 $as_echo_n "checking for $ac_word... " >&6; } 16118 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16119 $as_echo_n "(cached) " >&6 16120 else 16121 case $CHECK_MAKE in 16122 [\\/]* | ?:[\\/]*) 16123 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16124 ;; 16125 *) 16126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16127 for as_dir in $PATH 16128 do 16129 IFS=$as_save_IFS 16130 test -z "$as_dir" && as_dir=. 16131 for ac_exec_ext in '' $ac_executable_extensions; do 16132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16133 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16135 break 2 16136 fi 16137 done 16138 done 16139 IFS=$as_save_IFS 16140 16141 ;; 16142 esac 16143 fi 16144 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16145 if test -n "$CHECK_MAKE"; then 16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16147 $as_echo "$CHECK_MAKE" >&6; } 16148 else 16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16150 $as_echo "no" >&6; } 16151 fi 16152 16153 16154 test -n "$CHECK_MAKE" && break 16155 done 16156 16157 16158 MAKE_CANDIDATE=""$CHECK_MAKE"" 16159 DESCRIPTION="make in PATH" 16160 if test "x$MAKE_CANDIDATE" != x; then 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16162 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16163 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16164 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16165 if test "x$IS_GNU_MAKE" = x; then 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16167 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16168 else 16169 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16170 if test "x$IS_MODERN_MAKE" = x; then 16171 { $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 16172 $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;} 16173 else 16174 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16176 MAKE_EXPECTED_ENV='cygwin' 16177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16178 MAKE_EXPECTED_ENV='msys' 16179 else 16180 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16181 fi 16182 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16183 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16184 else 16185 # Not relevant for non-Windows 16186 IS_MAKE_CORRECT_ENV=true 16187 fi 16188 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16189 { $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 16190 $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;} 16191 else 16192 FOUND_MAKE=$MAKE_CANDIDATE 16193 16194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16195 16196 # First separate the path from the arguments. This will split at the first 16197 # space. 16198 complete="$FOUND_MAKE" 16199 path="${complete%% *}" 16200 tmp="$complete EOL" 16201 arguments="${tmp#* }" 16202 16203 # Input might be given as Windows format, start by converting to 16204 # unix format. 16205 new_path=`$CYGPATH -u "$path"` 16206 16207 # Now try to locate executable using which 16208 new_path=`$WHICH "$new_path" 2> /dev/null` 16209 # bat and cmd files are not always considered executable in cygwin causing which 16210 # to not find them 16211 if test "x$new_path" = x \ 16212 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16213 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16214 new_path=`$CYGPATH -u "$path"` 16215 fi 16216 if test "x$new_path" = x; then 16217 # Oops. Which didn't find the executable. 16218 # The splitting of arguments from the executable at a space might have been incorrect, 16219 # since paths with space are more likely in Windows. Give it another try with the whole 16220 # argument. 16221 path="$complete" 16222 arguments="EOL" 16223 new_path=`$CYGPATH -u "$path"` 16224 new_path=`$WHICH "$new_path" 2> /dev/null` 16225 # bat and cmd files are not always considered executable in cygwin causing which 16226 # to not find them 16227 if test "x$new_path" = x \ 16228 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16229 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16230 new_path=`$CYGPATH -u "$path"` 16231 fi 16232 if test "x$new_path" = x; then 16233 # It's still not found. Now this is an unrecoverable error. 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16235 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16236 has_space=`$ECHO "$complete" | $GREP " "` 16237 if test "x$has_space" != x; then 16238 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16239 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16240 fi 16241 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16242 fi 16243 fi 16244 16245 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16246 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16247 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16248 # "foo.exe" is OK but "foo" is an error. 16249 # 16250 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16251 # It is also a way to make sure we got the proper file name for the real test later on. 16252 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16253 if test "x$test_shortpath" = x; then 16254 # Short path failed, file does not exist as specified. 16255 # Try adding .exe or .cmd 16256 if test -f "${new_path}.exe"; then 16257 input_to_shortpath="${new_path}.exe" 16258 elif test -f "${new_path}.cmd"; then 16259 input_to_shortpath="${new_path}.cmd" 16260 else 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16262 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16264 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16265 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16266 fi 16267 else 16268 input_to_shortpath="$new_path" 16269 fi 16270 16271 # Call helper function which possibly converts this using DOS-style short mode. 16272 # If so, the updated path is stored in $new_path. 16273 new_path="$input_to_shortpath" 16274 16275 input_path="$input_to_shortpath" 16276 # Check if we need to convert this using DOS-style short mode. If the path 16277 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16278 # take no chances and rewrite it. 16279 # Note: m4 eats our [], so we need to use [ and ] instead. 16280 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16281 if test "x$has_forbidden_chars" != x; then 16282 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16283 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16284 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16285 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16286 # Going to short mode and back again did indeed matter. Since short mode is 16287 # case insensitive, let's make it lowercase to improve readability. 16288 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16289 # Now convert it back to Unix-stile (cygpath) 16290 input_path=`$CYGPATH -u "$shortmode_path"` 16291 new_path="$input_path" 16292 fi 16293 fi 16294 16295 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16296 if test "x$test_cygdrive_prefix" = x; then 16297 # As a simple fix, exclude /usr/bin since it's not a real path. 16298 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16299 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16300 # a path prefixed by /cygdrive for fixpath to work. 16301 new_path="$CYGWIN_ROOT_PATH$input_path" 16302 fi 16303 fi 16304 16305 # remove trailing .exe if any 16306 new_path="${new_path/%.exe/}" 16307 16308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16309 16310 # First separate the path from the arguments. This will split at the first 16311 # space. 16312 complete="$FOUND_MAKE" 16313 path="${complete%% *}" 16314 tmp="$complete EOL" 16315 arguments="${tmp#* }" 16316 16317 # Input might be given as Windows format, start by converting to 16318 # unix format. 16319 new_path="$path" 16320 16321 windows_path="$new_path" 16322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16323 unix_path=`$CYGPATH -u "$windows_path"` 16324 new_path="$unix_path" 16325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16327 new_path="$unix_path" 16328 fi 16329 16330 16331 # Now try to locate executable using which 16332 new_path=`$WHICH "$new_path" 2> /dev/null` 16333 16334 if test "x$new_path" = x; then 16335 # Oops. Which didn't find the executable. 16336 # The splitting of arguments from the executable at a space might have been incorrect, 16337 # since paths with space are more likely in Windows. Give it another try with the whole 16338 # argument. 16339 path="$complete" 16340 arguments="EOL" 16341 new_path="$path" 16342 16343 windows_path="$new_path" 16344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16345 unix_path=`$CYGPATH -u "$windows_path"` 16346 new_path="$unix_path" 16347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16349 new_path="$unix_path" 16350 fi 16351 16352 16353 new_path=`$WHICH "$new_path" 2> /dev/null` 16354 # bat and cmd files are not always considered executable in MSYS causing which 16355 # to not find them 16356 if test "x$new_path" = x \ 16357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16359 new_path="$path" 16360 16361 windows_path="$new_path" 16362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16363 unix_path=`$CYGPATH -u "$windows_path"` 16364 new_path="$unix_path" 16365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16367 new_path="$unix_path" 16368 fi 16369 16370 fi 16371 16372 if test "x$new_path" = x; then 16373 # It's still not found. Now this is an unrecoverable error. 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16375 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16376 has_space=`$ECHO "$complete" | $GREP " "` 16377 if test "x$has_space" != x; then 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16379 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16380 fi 16381 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16382 fi 16383 fi 16384 16385 # Now new_path has a complete unix path to the binary 16386 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16387 # Keep paths in /bin as-is, but remove trailing .exe if any 16388 new_path="${new_path/%.exe/}" 16389 # Do not save /bin paths to all_fixpath_prefixes! 16390 else 16391 # Not in mixed or Windows style, start by that. 16392 new_path=`cmd //c echo $new_path` 16393 16394 input_path="$new_path" 16395 # Check if we need to convert this using DOS-style short mode. If the path 16396 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16397 # take no chances and rewrite it. 16398 # Note: m4 eats our [], so we need to use [ and ] instead. 16399 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16400 if test "x$has_forbidden_chars" != x; then 16401 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16402 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16403 fi 16404 16405 # Output is in $new_path 16406 16407 windows_path="$new_path" 16408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16409 unix_path=`$CYGPATH -u "$windows_path"` 16410 new_path="$unix_path" 16411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16413 new_path="$unix_path" 16414 fi 16415 16416 # remove trailing .exe if any 16417 new_path="${new_path/%.exe/}" 16418 16419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16421 fi 16422 16423 else 16424 # We're on a unix platform. Hooray! :) 16425 # First separate the path from the arguments. This will split at the first 16426 # space. 16427 complete="$FOUND_MAKE" 16428 path="${complete%% *}" 16429 tmp="$complete EOL" 16430 arguments="${tmp#* }" 16431 16432 # Cannot rely on the command "which" here since it doesn't always work. 16433 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16434 if test -z "$is_absolute_path"; then 16435 # Path to executable is not absolute. Find it. 16436 IFS_save="$IFS" 16437 IFS=: 16438 for p in $PATH; do 16439 if test -f "$p/$path" && test -x "$p/$path"; then 16440 new_path="$p/$path" 16441 break 16442 fi 16443 done 16444 IFS="$IFS_save" 16445 else 16446 # This is an absolute path, we can use it without further modifications. 16447 new_path="$path" 16448 fi 16449 16450 if test "x$new_path" = x; then 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16452 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16453 has_space=`$ECHO "$complete" | $GREP " "` 16454 if test "x$has_space" != x; then 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16456 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16457 fi 16458 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16459 fi 16460 fi 16461 16462 # Now join together the path and the arguments once again 16463 if test "x$arguments" != xEOL; then 16464 new_complete="$new_path ${arguments% *}" 16465 else 16466 new_complete="$new_path" 16467 fi 16468 16469 if test "x$complete" != "x$new_complete"; then 16470 FOUND_MAKE="$new_complete" 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16472 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16473 fi 16474 16475 fi 16476 fi 16477 fi 16478 fi 16479 16480 fi 16481 16482 if test "x$FOUND_MAKE" = x; then 16483 if test "x$TOOLCHAIN_PATH" != x; then 16484 # We have a toolchain path, check that as well before giving up. 16485 OLD_PATH=$PATH 16486 PATH=$TOOLCHAIN_PATH:$PATH 16487 for ac_prog in gmake 16488 do 16489 # Extract the first word of "$ac_prog", so it can be a program name with args. 16490 set dummy $ac_prog; ac_word=$2 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16492 $as_echo_n "checking for $ac_word... " >&6; } 16493 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16494 $as_echo_n "(cached) " >&6 16495 else 16496 case $CHECK_TOOLSDIR_GMAKE in 16497 [\\/]* | ?:[\\/]*) 16498 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16499 ;; 16500 *) 16501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16502 for as_dir in $PATH 16503 do 16504 IFS=$as_save_IFS 16505 test -z "$as_dir" && as_dir=. 16506 for ac_exec_ext in '' $ac_executable_extensions; do 16507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16508 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16510 break 2 16511 fi 16512 done 16513 done 16514 IFS=$as_save_IFS 16515 16516 ;; 16517 esac 16518 fi 16519 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16520 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16522 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16523 else 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16525 $as_echo "no" >&6; } 16526 fi 16527 16528 16529 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16530 done 16531 16532 16533 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16534 DESCRIPTION="gmake in tools-dir" 16535 if test "x$MAKE_CANDIDATE" != x; then 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16537 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16538 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16539 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16540 if test "x$IS_GNU_MAKE" = x; then 16541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16542 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16543 else 16544 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16545 if test "x$IS_MODERN_MAKE" = x; then 16546 { $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 16547 $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;} 16548 else 16549 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16551 MAKE_EXPECTED_ENV='cygwin' 16552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16553 MAKE_EXPECTED_ENV='msys' 16554 else 16555 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16556 fi 16557 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16558 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16559 else 16560 # Not relevant for non-Windows 16561 IS_MAKE_CORRECT_ENV=true 16562 fi 16563 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16564 { $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 16565 $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;} 16566 else 16567 FOUND_MAKE=$MAKE_CANDIDATE 16568 16569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16570 16571 # First separate the path from the arguments. This will split at the first 16572 # space. 16573 complete="$FOUND_MAKE" 16574 path="${complete%% *}" 16575 tmp="$complete EOL" 16576 arguments="${tmp#* }" 16577 16578 # Input might be given as Windows format, start by converting to 16579 # unix format. 16580 new_path=`$CYGPATH -u "$path"` 16581 16582 # Now try to locate executable using which 16583 new_path=`$WHICH "$new_path" 2> /dev/null` 16584 # bat and cmd files are not always considered executable in cygwin causing which 16585 # to not find them 16586 if test "x$new_path" = x \ 16587 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16588 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16589 new_path=`$CYGPATH -u "$path"` 16590 fi 16591 if test "x$new_path" = x; then 16592 # Oops. Which didn't find the executable. 16593 # The splitting of arguments from the executable at a space might have been incorrect, 16594 # since paths with space are more likely in Windows. Give it another try with the whole 16595 # argument. 16596 path="$complete" 16597 arguments="EOL" 16598 new_path=`$CYGPATH -u "$path"` 16599 new_path=`$WHICH "$new_path" 2> /dev/null` 16600 # bat and cmd files are not always considered executable in cygwin causing which 16601 # to not find them 16602 if test "x$new_path" = x \ 16603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16605 new_path=`$CYGPATH -u "$path"` 16606 fi 16607 if test "x$new_path" = x; then 16608 # It's still not found. Now this is an unrecoverable error. 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16610 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16611 has_space=`$ECHO "$complete" | $GREP " "` 16612 if test "x$has_space" != x; then 16613 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16614 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16615 fi 16616 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16617 fi 16618 fi 16619 16620 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16621 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16622 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16623 # "foo.exe" is OK but "foo" is an error. 16624 # 16625 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16626 # It is also a way to make sure we got the proper file name for the real test later on. 16627 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16628 if test "x$test_shortpath" = x; then 16629 # Short path failed, file does not exist as specified. 16630 # Try adding .exe or .cmd 16631 if test -f "${new_path}.exe"; then 16632 input_to_shortpath="${new_path}.exe" 16633 elif test -f "${new_path}.cmd"; then 16634 input_to_shortpath="${new_path}.cmd" 16635 else 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16637 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16639 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16640 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16641 fi 16642 else 16643 input_to_shortpath="$new_path" 16644 fi 16645 16646 # Call helper function which possibly converts this using DOS-style short mode. 16647 # If so, the updated path is stored in $new_path. 16648 new_path="$input_to_shortpath" 16649 16650 input_path="$input_to_shortpath" 16651 # Check if we need to convert this using DOS-style short mode. If the path 16652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16653 # take no chances and rewrite it. 16654 # Note: m4 eats our [], so we need to use [ and ] instead. 16655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16656 if test "x$has_forbidden_chars" != x; then 16657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16658 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16659 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16660 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16661 # Going to short mode and back again did indeed matter. Since short mode is 16662 # case insensitive, let's make it lowercase to improve readability. 16663 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16664 # Now convert it back to Unix-stile (cygpath) 16665 input_path=`$CYGPATH -u "$shortmode_path"` 16666 new_path="$input_path" 16667 fi 16668 fi 16669 16670 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16671 if test "x$test_cygdrive_prefix" = x; then 16672 # As a simple fix, exclude /usr/bin since it's not a real path. 16673 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16674 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16675 # a path prefixed by /cygdrive for fixpath to work. 16676 new_path="$CYGWIN_ROOT_PATH$input_path" 16677 fi 16678 fi 16679 16680 # remove trailing .exe if any 16681 new_path="${new_path/%.exe/}" 16682 16683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16684 16685 # First separate the path from the arguments. This will split at the first 16686 # space. 16687 complete="$FOUND_MAKE" 16688 path="${complete%% *}" 16689 tmp="$complete EOL" 16690 arguments="${tmp#* }" 16691 16692 # Input might be given as Windows format, start by converting to 16693 # unix format. 16694 new_path="$path" 16695 16696 windows_path="$new_path" 16697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16698 unix_path=`$CYGPATH -u "$windows_path"` 16699 new_path="$unix_path" 16700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16702 new_path="$unix_path" 16703 fi 16704 16705 16706 # Now try to locate executable using which 16707 new_path=`$WHICH "$new_path" 2> /dev/null` 16708 16709 if test "x$new_path" = x; then 16710 # Oops. Which didn't find the executable. 16711 # The splitting of arguments from the executable at a space might have been incorrect, 16712 # since paths with space are more likely in Windows. Give it another try with the whole 16713 # argument. 16714 path="$complete" 16715 arguments="EOL" 16716 new_path="$path" 16717 16718 windows_path="$new_path" 16719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16720 unix_path=`$CYGPATH -u "$windows_path"` 16721 new_path="$unix_path" 16722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16724 new_path="$unix_path" 16725 fi 16726 16727 16728 new_path=`$WHICH "$new_path" 2> /dev/null` 16729 # bat and cmd files are not always considered executable in MSYS causing which 16730 # to not find them 16731 if test "x$new_path" = x \ 16732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16734 new_path="$path" 16735 16736 windows_path="$new_path" 16737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16738 unix_path=`$CYGPATH -u "$windows_path"` 16739 new_path="$unix_path" 16740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16742 new_path="$unix_path" 16743 fi 16744 16745 fi 16746 16747 if test "x$new_path" = x; then 16748 # It's still not found. Now this is an unrecoverable error. 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16750 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16751 has_space=`$ECHO "$complete" | $GREP " "` 16752 if test "x$has_space" != x; then 16753 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16754 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16755 fi 16756 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16757 fi 16758 fi 16759 16760 # Now new_path has a complete unix path to the binary 16761 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16762 # Keep paths in /bin as-is, but remove trailing .exe if any 16763 new_path="${new_path/%.exe/}" 16764 # Do not save /bin paths to all_fixpath_prefixes! 16765 else 16766 # Not in mixed or Windows style, start by that. 16767 new_path=`cmd //c echo $new_path` 16768 16769 input_path="$new_path" 16770 # Check if we need to convert this using DOS-style short mode. If the path 16771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16772 # take no chances and rewrite it. 16773 # Note: m4 eats our [], so we need to use [ and ] instead. 16774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16775 if test "x$has_forbidden_chars" != x; then 16776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16777 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16778 fi 16779 16780 # Output is in $new_path 16781 16782 windows_path="$new_path" 16783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16784 unix_path=`$CYGPATH -u "$windows_path"` 16785 new_path="$unix_path" 16786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16788 new_path="$unix_path" 16789 fi 16790 16791 # remove trailing .exe if any 16792 new_path="${new_path/%.exe/}" 16793 16794 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16795 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16796 fi 16797 16798 else 16799 # We're on a unix platform. Hooray! :) 16800 # First separate the path from the arguments. This will split at the first 16801 # space. 16802 complete="$FOUND_MAKE" 16803 path="${complete%% *}" 16804 tmp="$complete EOL" 16805 arguments="${tmp#* }" 16806 16807 # Cannot rely on the command "which" here since it doesn't always work. 16808 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16809 if test -z "$is_absolute_path"; then 16810 # Path to executable is not absolute. Find it. 16811 IFS_save="$IFS" 16812 IFS=: 16813 for p in $PATH; do 16814 if test -f "$p/$path" && test -x "$p/$path"; then 16815 new_path="$p/$path" 16816 break 16817 fi 16818 done 16819 IFS="$IFS_save" 16820 else 16821 # This is an absolute path, we can use it without further modifications. 16822 new_path="$path" 16823 fi 16824 16825 if test "x$new_path" = x; then 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16827 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16828 has_space=`$ECHO "$complete" | $GREP " "` 16829 if test "x$has_space" != x; then 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16831 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16832 fi 16833 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16834 fi 16835 fi 16836 16837 # Now join together the path and the arguments once again 16838 if test "x$arguments" != xEOL; then 16839 new_complete="$new_path ${arguments% *}" 16840 else 16841 new_complete="$new_path" 16842 fi 16843 16844 if test "x$complete" != "x$new_complete"; then 16845 FOUND_MAKE="$new_complete" 16846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16847 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16848 fi 16849 16850 fi 16851 fi 16852 fi 16853 fi 16854 16855 if test "x$FOUND_MAKE" = x; then 16856 for ac_prog in make 16857 do 16858 # Extract the first word of "$ac_prog", so it can be a program name with args. 16859 set dummy $ac_prog; ac_word=$2 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16861 $as_echo_n "checking for $ac_word... " >&6; } 16862 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16863 $as_echo_n "(cached) " >&6 16864 else 16865 case $CHECK_TOOLSDIR_MAKE in 16866 [\\/]* | ?:[\\/]*) 16867 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16868 ;; 16869 *) 16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16871 for as_dir in $PATH 16872 do 16873 IFS=$as_save_IFS 16874 test -z "$as_dir" && as_dir=. 16875 for ac_exec_ext in '' $ac_executable_extensions; do 16876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16877 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16879 break 2 16880 fi 16881 done 16882 done 16883 IFS=$as_save_IFS 16884 16885 ;; 16886 esac 16887 fi 16888 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16889 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16891 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16892 else 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16894 $as_echo "no" >&6; } 16895 fi 16896 16897 16898 test -n "$CHECK_TOOLSDIR_MAKE" && break 16899 done 16900 16901 16902 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16903 DESCRIPTION="make in tools-dir" 16904 if test "x$MAKE_CANDIDATE" != x; then 16905 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16906 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16907 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16908 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16909 if test "x$IS_GNU_MAKE" = x; then 16910 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16911 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16912 else 16913 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16914 if test "x$IS_MODERN_MAKE" = x; then 16915 { $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 16916 $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;} 16917 else 16918 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16920 MAKE_EXPECTED_ENV='cygwin' 16921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16922 MAKE_EXPECTED_ENV='msys' 16923 else 16924 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16925 fi 16926 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16927 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16928 else 16929 # Not relevant for non-Windows 16930 IS_MAKE_CORRECT_ENV=true 16931 fi 16932 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16933 { $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 16934 $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;} 16935 else 16936 FOUND_MAKE=$MAKE_CANDIDATE 16937 16938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16939 16940 # First separate the path from the arguments. This will split at the first 16941 # space. 16942 complete="$FOUND_MAKE" 16943 path="${complete%% *}" 16944 tmp="$complete EOL" 16945 arguments="${tmp#* }" 16946 16947 # Input might be given as Windows format, start by converting to 16948 # unix format. 16949 new_path=`$CYGPATH -u "$path"` 16950 16951 # Now try to locate executable using which 16952 new_path=`$WHICH "$new_path" 2> /dev/null` 16953 # bat and cmd files are not always considered executable in cygwin causing which 16954 # to not find them 16955 if test "x$new_path" = x \ 16956 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16957 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16958 new_path=`$CYGPATH -u "$path"` 16959 fi 16960 if test "x$new_path" = x; then 16961 # Oops. Which didn't find the executable. 16962 # The splitting of arguments from the executable at a space might have been incorrect, 16963 # since paths with space are more likely in Windows. Give it another try with the whole 16964 # argument. 16965 path="$complete" 16966 arguments="EOL" 16967 new_path=`$CYGPATH -u "$path"` 16968 new_path=`$WHICH "$new_path" 2> /dev/null` 16969 # bat and cmd files are not always considered executable in cygwin causing which 16970 # to not find them 16971 if test "x$new_path" = x \ 16972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16974 new_path=`$CYGPATH -u "$path"` 16975 fi 16976 if test "x$new_path" = x; then 16977 # It's still not found. Now this is an unrecoverable error. 16978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16979 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16980 has_space=`$ECHO "$complete" | $GREP " "` 16981 if test "x$has_space" != x; then 16982 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16983 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16984 fi 16985 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16986 fi 16987 fi 16988 16989 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16990 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16991 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16992 # "foo.exe" is OK but "foo" is an error. 16993 # 16994 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16995 # It is also a way to make sure we got the proper file name for the real test later on. 16996 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16997 if test "x$test_shortpath" = x; then 16998 # Short path failed, file does not exist as specified. 16999 # Try adding .exe or .cmd 17000 if test -f "${new_path}.exe"; then 17001 input_to_shortpath="${new_path}.exe" 17002 elif test -f "${new_path}.cmd"; then 17003 input_to_shortpath="${new_path}.cmd" 17004 else 17005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17006 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17008 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17009 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17010 fi 17011 else 17012 input_to_shortpath="$new_path" 17013 fi 17014 17015 # Call helper function which possibly converts this using DOS-style short mode. 17016 # If so, the updated path is stored in $new_path. 17017 new_path="$input_to_shortpath" 17018 17019 input_path="$input_to_shortpath" 17020 # Check if we need to convert this using DOS-style short mode. If the path 17021 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17022 # take no chances and rewrite it. 17023 # Note: m4 eats our [], so we need to use [ and ] instead. 17024 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17025 if test "x$has_forbidden_chars" != x; then 17026 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17027 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17028 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17029 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17030 # Going to short mode and back again did indeed matter. Since short mode is 17031 # case insensitive, let's make it lowercase to improve readability. 17032 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17033 # Now convert it back to Unix-stile (cygpath) 17034 input_path=`$CYGPATH -u "$shortmode_path"` 17035 new_path="$input_path" 17036 fi 17037 fi 17038 17039 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17040 if test "x$test_cygdrive_prefix" = x; then 17041 # As a simple fix, exclude /usr/bin since it's not a real path. 17042 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17043 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17044 # a path prefixed by /cygdrive for fixpath to work. 17045 new_path="$CYGWIN_ROOT_PATH$input_path" 17046 fi 17047 fi 17048 17049 # remove trailing .exe if any 17050 new_path="${new_path/%.exe/}" 17051 17052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17053 17054 # First separate the path from the arguments. This will split at the first 17055 # space. 17056 complete="$FOUND_MAKE" 17057 path="${complete%% *}" 17058 tmp="$complete EOL" 17059 arguments="${tmp#* }" 17060 17061 # Input might be given as Windows format, start by converting to 17062 # unix format. 17063 new_path="$path" 17064 17065 windows_path="$new_path" 17066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17067 unix_path=`$CYGPATH -u "$windows_path"` 17068 new_path="$unix_path" 17069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17070 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17071 new_path="$unix_path" 17072 fi 17073 17074 17075 # Now try to locate executable using which 17076 new_path=`$WHICH "$new_path" 2> /dev/null` 17077 17078 if test "x$new_path" = x; then 17079 # Oops. Which didn't find the executable. 17080 # The splitting of arguments from the executable at a space might have been incorrect, 17081 # since paths with space are more likely in Windows. Give it another try with the whole 17082 # argument. 17083 path="$complete" 17084 arguments="EOL" 17085 new_path="$path" 17086 17087 windows_path="$new_path" 17088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17089 unix_path=`$CYGPATH -u "$windows_path"` 17090 new_path="$unix_path" 17091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17093 new_path="$unix_path" 17094 fi 17095 17096 17097 new_path=`$WHICH "$new_path" 2> /dev/null` 17098 # bat and cmd files are not always considered executable in MSYS causing which 17099 # to not find them 17100 if test "x$new_path" = x \ 17101 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17102 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17103 new_path="$path" 17104 17105 windows_path="$new_path" 17106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17107 unix_path=`$CYGPATH -u "$windows_path"` 17108 new_path="$unix_path" 17109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17111 new_path="$unix_path" 17112 fi 17113 17114 fi 17115 17116 if test "x$new_path" = x; then 17117 # It's still not found. Now this is an unrecoverable error. 17118 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17119 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17120 has_space=`$ECHO "$complete" | $GREP " "` 17121 if test "x$has_space" != x; then 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17123 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17124 fi 17125 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17126 fi 17127 fi 17128 17129 # Now new_path has a complete unix path to the binary 17130 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17131 # Keep paths in /bin as-is, but remove trailing .exe if any 17132 new_path="${new_path/%.exe/}" 17133 # Do not save /bin paths to all_fixpath_prefixes! 17134 else 17135 # Not in mixed or Windows style, start by that. 17136 new_path=`cmd //c echo $new_path` 17137 17138 input_path="$new_path" 17139 # Check if we need to convert this using DOS-style short mode. If the path 17140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17141 # take no chances and rewrite it. 17142 # Note: m4 eats our [], so we need to use [ and ] instead. 17143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17144 if test "x$has_forbidden_chars" != x; then 17145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17146 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17147 fi 17148 17149 # Output is in $new_path 17150 17151 windows_path="$new_path" 17152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17153 unix_path=`$CYGPATH -u "$windows_path"` 17154 new_path="$unix_path" 17155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17157 new_path="$unix_path" 17158 fi 17159 17160 # remove trailing .exe if any 17161 new_path="${new_path/%.exe/}" 17162 17163 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17164 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17165 fi 17166 17167 else 17168 # We're on a unix platform. Hooray! :) 17169 # First separate the path from the arguments. This will split at the first 17170 # space. 17171 complete="$FOUND_MAKE" 17172 path="${complete%% *}" 17173 tmp="$complete EOL" 17174 arguments="${tmp#* }" 17175 17176 # Cannot rely on the command "which" here since it doesn't always work. 17177 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17178 if test -z "$is_absolute_path"; then 17179 # Path to executable is not absolute. Find it. 17180 IFS_save="$IFS" 17181 IFS=: 17182 for p in $PATH; do 17183 if test -f "$p/$path" && test -x "$p/$path"; then 17184 new_path="$p/$path" 17185 break 17186 fi 17187 done 17188 IFS="$IFS_save" 17189 else 17190 # This is an absolute path, we can use it without further modifications. 17191 new_path="$path" 17192 fi 17193 17194 if test "x$new_path" = x; then 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17196 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17197 has_space=`$ECHO "$complete" | $GREP " "` 17198 if test "x$has_space" != x; then 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17200 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17201 fi 17202 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17203 fi 17204 fi 17205 17206 # Now join together the path and the arguments once again 17207 if test "x$arguments" != xEOL; then 17208 new_complete="$new_path ${arguments% *}" 17209 else 17210 new_complete="$new_path" 17211 fi 17212 17213 if test "x$complete" != "x$new_complete"; then 17214 FOUND_MAKE="$new_complete" 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17216 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17217 fi 17218 17219 fi 17220 fi 17221 fi 17222 fi 17223 17224 fi 17225 PATH=$OLD_PATH 17226 fi 17227 fi 17228 17229 if test "x$FOUND_MAKE" = x; then 17230 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 17231 fi 17232 fi 17233 17234 MAKE=$FOUND_MAKE 17235 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17237 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17238 17239 17240 # Check if make supports the output sync option and if so, setup using it. 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17242 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17243 if $MAKE --version -O > /dev/null 2>&1; then 17244 OUTPUT_SYNC_SUPPORTED=true 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17246 $as_echo "yes" >&6; } 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17248 $as_echo_n "checking for output-sync value... " >&6; } 17249 17250 # Check whether --with-output-sync was given. 17251 if test "${with_output_sync+set}" = set; then : 17252 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17253 fi 17254 17255 if test "x$OUTPUT_SYNC" = "x"; then 17256 OUTPUT_SYNC=none 17257 fi 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17259 $as_echo "$OUTPUT_SYNC" >&6; } 17260 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17261 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17262 fi 17263 else 17264 OUTPUT_SYNC_SUPPORTED=false 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17266 $as_echo "no" >&6; } 17267 fi 17268 17269 17270 17271 17272 17273 17274 # Test if find supports -delete 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17276 $as_echo_n "checking if find supports -delete... " >&6; } 17277 FIND_DELETE="-delete" 17278 17279 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17280 17281 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17282 17283 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17284 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17285 # No, it does not. 17286 rm $DELETEDIR/TestIfFindSupportsDelete 17287 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17288 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17289 FIND_DELETE="-print | xargs rm" 17290 else 17291 FIND_DELETE="-exec rm \{\} \+" 17292 fi 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17294 $as_echo "no" >&6; } 17295 else 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17297 $as_echo "yes" >&6; } 17298 fi 17299 rmdir $DELETEDIR 17300 17301 17302 17303 # These tools might not be installed by default, 17304 # need hint on how to install them. 17305 17306 17307 17308 # Publish this variable in the help. 17309 17310 17311 if test "x$UNZIP" = x; then 17312 # The variable is not set by user, try to locate tool using the code snippet 17313 for ac_prog in unzip 17314 do 17315 # Extract the first word of "$ac_prog", so it can be a program name with args. 17316 set dummy $ac_prog; ac_word=$2 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17318 $as_echo_n "checking for $ac_word... " >&6; } 17319 if ${ac_cv_path_UNZIP+:} false; then : 17320 $as_echo_n "(cached) " >&6 17321 else 17322 case $UNZIP in 17323 [\\/]* | ?:[\\/]*) 17324 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17325 ;; 17326 *) 17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17328 for as_dir in $PATH 17329 do 17330 IFS=$as_save_IFS 17331 test -z "$as_dir" && as_dir=. 17332 for ac_exec_ext in '' $ac_executable_extensions; do 17333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17334 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17336 break 2 17337 fi 17338 done 17339 done 17340 IFS=$as_save_IFS 17341 17342 ;; 17343 esac 17344 fi 17345 UNZIP=$ac_cv_path_UNZIP 17346 if test -n "$UNZIP"; then 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17348 $as_echo "$UNZIP" >&6; } 17349 else 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17351 $as_echo "no" >&6; } 17352 fi 17353 17354 17355 test -n "$UNZIP" && break 17356 done 17357 17358 else 17359 # The variable is set, but is it from the command line or the environment? 17360 17361 # Try to remove the string !UNZIP! from our list. 17362 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17363 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17364 # If it failed, the variable was not from the command line. Ignore it, 17365 # but warn the user (except for BASH, which is always set by the calling BASH). 17366 if test "xUNZIP" != xBASH; then 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17368 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17369 fi 17370 # Try to locate tool using the code snippet 17371 for ac_prog in unzip 17372 do 17373 # Extract the first word of "$ac_prog", so it can be a program name with args. 17374 set dummy $ac_prog; ac_word=$2 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17376 $as_echo_n "checking for $ac_word... " >&6; } 17377 if ${ac_cv_path_UNZIP+:} false; then : 17378 $as_echo_n "(cached) " >&6 17379 else 17380 case $UNZIP in 17381 [\\/]* | ?:[\\/]*) 17382 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17383 ;; 17384 *) 17385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17386 for as_dir in $PATH 17387 do 17388 IFS=$as_save_IFS 17389 test -z "$as_dir" && as_dir=. 17390 for ac_exec_ext in '' $ac_executable_extensions; do 17391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17392 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17394 break 2 17395 fi 17396 done 17397 done 17398 IFS=$as_save_IFS 17399 17400 ;; 17401 esac 17402 fi 17403 UNZIP=$ac_cv_path_UNZIP 17404 if test -n "$UNZIP"; then 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17406 $as_echo "$UNZIP" >&6; } 17407 else 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17409 $as_echo "no" >&6; } 17410 fi 17411 17412 17413 test -n "$UNZIP" && break 17414 done 17415 17416 else 17417 # If it succeeded, then it was overridden by the user. We will use it 17418 # for the tool. 17419 17420 # First remove it from the list of overridden variables, so we can test 17421 # for unknown variables in the end. 17422 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17423 17424 # Check if the provided tool contains a complete path. 17425 tool_specified="$UNZIP" 17426 tool_basename="${tool_specified##*/}" 17427 if test "x$tool_basename" = "x$tool_specified"; then 17428 # A command without a complete path is provided, search $PATH. 17429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17430 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17431 # Extract the first word of "$tool_basename", so it can be a program name with args. 17432 set dummy $tool_basename; ac_word=$2 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17434 $as_echo_n "checking for $ac_word... " >&6; } 17435 if ${ac_cv_path_UNZIP+:} false; then : 17436 $as_echo_n "(cached) " >&6 17437 else 17438 case $UNZIP in 17439 [\\/]* | ?:[\\/]*) 17440 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17441 ;; 17442 *) 17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17444 for as_dir in $PATH 17445 do 17446 IFS=$as_save_IFS 17447 test -z "$as_dir" && as_dir=. 17448 for ac_exec_ext in '' $ac_executable_extensions; do 17449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17450 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17452 break 2 17453 fi 17454 done 17455 done 17456 IFS=$as_save_IFS 17457 17458 ;; 17459 esac 17460 fi 17461 UNZIP=$ac_cv_path_UNZIP 17462 if test -n "$UNZIP"; then 17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17464 $as_echo "$UNZIP" >&6; } 17465 else 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17467 $as_echo "no" >&6; } 17468 fi 17469 17470 17471 if test "x$UNZIP" = x; then 17472 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17473 fi 17474 else 17475 # Otherwise we believe it is a complete path. Use it as it is. 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17477 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17479 $as_echo_n "checking for UNZIP... " >&6; } 17480 if test ! -x "$tool_specified"; then 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17482 $as_echo "not found" >&6; } 17483 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17484 fi 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17486 $as_echo "$tool_specified" >&6; } 17487 fi 17488 fi 17489 fi 17490 17491 17492 17493 if test "x$UNZIP" = x; then 17494 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17495 fi 17496 17497 17498 17499 17500 17501 # Publish this variable in the help. 17502 17503 17504 if test "x$ZIP" = x; then 17505 # The variable is not set by user, try to locate tool using the code snippet 17506 for ac_prog in zip 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_ZIP+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514 else 17515 case $ZIP in 17516 [\\/]* | ?:[\\/]*) 17517 ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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 ZIP=$ac_cv_path_ZIP 17539 if test -n "$ZIP"; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17541 $as_echo "$ZIP" >&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 "$ZIP" && break 17549 done 17550 17551 else 17552 # The variable is set, but is it from the command line or the environment? 17553 17554 # Try to remove the string !ZIP! from our list. 17555 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17556 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17557 # If it failed, the variable was not from the command line. Ignore it, 17558 # but warn the user (except for BASH, which is always set by the calling BASH). 17559 if test "xZIP" != xBASH; then 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17561 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17562 fi 17563 # Try to locate tool using the code snippet 17564 for ac_prog in zip 17565 do 17566 # Extract the first word of "$ac_prog", so it can be a program name with args. 17567 set dummy $ac_prog; 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_ZIP+:} false; then : 17571 $as_echo_n "(cached) " >&6 17572 else 17573 case $ZIP in 17574 [\\/]* | ?:[\\/]*) 17575 ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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 ZIP=$ac_cv_path_ZIP 17597 if test -n "$ZIP"; then 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17599 $as_echo "$ZIP" >&6; } 17600 else 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17602 $as_echo "no" >&6; } 17603 fi 17604 17605 17606 test -n "$ZIP" && break 17607 done 17608 17609 else 17610 # If it succeeded, then it was overridden by the user. We will use it 17611 # for the tool. 17612 17613 # First remove it from the list of overridden variables, so we can test 17614 # for unknown variables in the end. 17615 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17616 17617 # Check if the provided tool contains a complete path. 17618 tool_specified="$ZIP" 17619 tool_basename="${tool_specified##*/}" 17620 if test "x$tool_basename" = "x$tool_specified"; then 17621 # A command without a complete path is provided, search $PATH. 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17623 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17624 # Extract the first word of "$tool_basename", so it can be a program name with args. 17625 set dummy $tool_basename; ac_word=$2 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17627 $as_echo_n "checking for $ac_word... " >&6; } 17628 if ${ac_cv_path_ZIP+:} false; then : 17629 $as_echo_n "(cached) " >&6 17630 else 17631 case $ZIP in 17632 [\\/]* | ?:[\\/]*) 17633 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17634 ;; 17635 *) 17636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17637 for as_dir in $PATH 17638 do 17639 IFS=$as_save_IFS 17640 test -z "$as_dir" && as_dir=. 17641 for ac_exec_ext in '' $ac_executable_extensions; do 17642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17643 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17645 break 2 17646 fi 17647 done 17648 done 17649 IFS=$as_save_IFS 17650 17651 ;; 17652 esac 17653 fi 17654 ZIP=$ac_cv_path_ZIP 17655 if test -n "$ZIP"; then 17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17657 $as_echo "$ZIP" >&6; } 17658 else 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17660 $as_echo "no" >&6; } 17661 fi 17662 17663 17664 if test "x$ZIP" = x; then 17665 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17666 fi 17667 else 17668 # Otherwise we believe it is a complete path. Use it as it is. 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17670 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17672 $as_echo_n "checking for ZIP... " >&6; } 17673 if test ! -x "$tool_specified"; then 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17675 $as_echo "not found" >&6; } 17676 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17677 fi 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17679 $as_echo "$tool_specified" >&6; } 17680 fi 17681 fi 17682 fi 17683 17684 17685 17686 if test "x$ZIP" = x; then 17687 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17688 fi 17689 17690 17691 17692 # Non-required basic tools 17693 17694 17695 17696 # Publish this variable in the help. 17697 17698 17699 if test "x$LDD" = x; then 17700 # The variable is not set by user, try to locate tool using the code snippet 17701 for ac_prog in ldd 17702 do 17703 # Extract the first word of "$ac_prog", so it can be a program name with args. 17704 set dummy $ac_prog; ac_word=$2 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17706 $as_echo_n "checking for $ac_word... " >&6; } 17707 if ${ac_cv_path_LDD+:} false; then : 17708 $as_echo_n "(cached) " >&6 17709 else 17710 case $LDD in 17711 [\\/]* | ?:[\\/]*) 17712 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17713 ;; 17714 *) 17715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17716 for as_dir in $PATH 17717 do 17718 IFS=$as_save_IFS 17719 test -z "$as_dir" && as_dir=. 17720 for ac_exec_ext in '' $ac_executable_extensions; do 17721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17722 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17724 break 2 17725 fi 17726 done 17727 done 17728 IFS=$as_save_IFS 17729 17730 ;; 17731 esac 17732 fi 17733 LDD=$ac_cv_path_LDD 17734 if test -n "$LDD"; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17736 $as_echo "$LDD" >&6; } 17737 else 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17739 $as_echo "no" >&6; } 17740 fi 17741 17742 17743 test -n "$LDD" && break 17744 done 17745 17746 else 17747 # The variable is set, but is it from the command line or the environment? 17748 17749 # Try to remove the string !LDD! from our list. 17750 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17751 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17752 # If it failed, the variable was not from the command line. Ignore it, 17753 # but warn the user (except for BASH, which is always set by the calling BASH). 17754 if test "xLDD" != xBASH; then 17755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17756 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17757 fi 17758 # Try to locate tool using the code snippet 17759 for ac_prog in ldd 17760 do 17761 # Extract the first word of "$ac_prog", so it can be a program name with args. 17762 set dummy $ac_prog; ac_word=$2 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17764 $as_echo_n "checking for $ac_word... " >&6; } 17765 if ${ac_cv_path_LDD+:} false; then : 17766 $as_echo_n "(cached) " >&6 17767 else 17768 case $LDD in 17769 [\\/]* | ?:[\\/]*) 17770 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17771 ;; 17772 *) 17773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17774 for as_dir in $PATH 17775 do 17776 IFS=$as_save_IFS 17777 test -z "$as_dir" && as_dir=. 17778 for ac_exec_ext in '' $ac_executable_extensions; do 17779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17780 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17782 break 2 17783 fi 17784 done 17785 done 17786 IFS=$as_save_IFS 17787 17788 ;; 17789 esac 17790 fi 17791 LDD=$ac_cv_path_LDD 17792 if test -n "$LDD"; then 17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17794 $as_echo "$LDD" >&6; } 17795 else 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17797 $as_echo "no" >&6; } 17798 fi 17799 17800 17801 test -n "$LDD" && break 17802 done 17803 17804 else 17805 # If it succeeded, then it was overridden by the user. We will use it 17806 # for the tool. 17807 17808 # First remove it from the list of overridden variables, so we can test 17809 # for unknown variables in the end. 17810 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17811 17812 # Check if the provided tool contains a complete path. 17813 tool_specified="$LDD" 17814 tool_basename="${tool_specified##*/}" 17815 if test "x$tool_basename" = "x$tool_specified"; then 17816 # A command without a complete path is provided, search $PATH. 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17818 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17819 # Extract the first word of "$tool_basename", so it can be a program name with args. 17820 set dummy $tool_basename; ac_word=$2 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17822 $as_echo_n "checking for $ac_word... " >&6; } 17823 if ${ac_cv_path_LDD+:} false; then : 17824 $as_echo_n "(cached) " >&6 17825 else 17826 case $LDD in 17827 [\\/]* | ?:[\\/]*) 17828 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17829 ;; 17830 *) 17831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17832 for as_dir in $PATH 17833 do 17834 IFS=$as_save_IFS 17835 test -z "$as_dir" && as_dir=. 17836 for ac_exec_ext in '' $ac_executable_extensions; do 17837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17838 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17840 break 2 17841 fi 17842 done 17843 done 17844 IFS=$as_save_IFS 17845 17846 ;; 17847 esac 17848 fi 17849 LDD=$ac_cv_path_LDD 17850 if test -n "$LDD"; then 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17852 $as_echo "$LDD" >&6; } 17853 else 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17855 $as_echo "no" >&6; } 17856 fi 17857 17858 17859 if test "x$LDD" = x; then 17860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17861 fi 17862 else 17863 # Otherwise we believe it is a complete path. Use it as it is. 17864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17865 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17867 $as_echo_n "checking for LDD... " >&6; } 17868 if test ! -x "$tool_specified"; then 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17870 $as_echo "not found" >&6; } 17871 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17872 fi 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17874 $as_echo "$tool_specified" >&6; } 17875 fi 17876 fi 17877 fi 17878 17879 17880 if test "x$LDD" = "x"; then 17881 # List shared lib dependencies is used for 17882 # debug output and checking for forbidden dependencies. 17883 # We can build without it. 17884 LDD="true" 17885 fi 17886 17887 17888 # Publish this variable in the help. 17889 17890 17891 if test "x$OTOOL" = x; then 17892 # The variable is not set by user, try to locate tool using the code snippet 17893 for ac_prog in otool 17894 do 17895 # Extract the first word of "$ac_prog", so it can be a program name with args. 17896 set dummy $ac_prog; ac_word=$2 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17898 $as_echo_n "checking for $ac_word... " >&6; } 17899 if ${ac_cv_path_OTOOL+:} false; then : 17900 $as_echo_n "(cached) " >&6 17901 else 17902 case $OTOOL in 17903 [\\/]* | ?:[\\/]*) 17904 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17905 ;; 17906 *) 17907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17908 for as_dir in $PATH 17909 do 17910 IFS=$as_save_IFS 17911 test -z "$as_dir" && as_dir=. 17912 for ac_exec_ext in '' $ac_executable_extensions; do 17913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17914 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17916 break 2 17917 fi 17918 done 17919 done 17920 IFS=$as_save_IFS 17921 17922 ;; 17923 esac 17924 fi 17925 OTOOL=$ac_cv_path_OTOOL 17926 if test -n "$OTOOL"; then 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17928 $as_echo "$OTOOL" >&6; } 17929 else 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17931 $as_echo "no" >&6; } 17932 fi 17933 17934 17935 test -n "$OTOOL" && break 17936 done 17937 17938 else 17939 # The variable is set, but is it from the command line or the environment? 17940 17941 # Try to remove the string !OTOOL! from our list. 17942 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17943 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17944 # If it failed, the variable was not from the command line. Ignore it, 17945 # but warn the user (except for BASH, which is always set by the calling BASH). 17946 if test "xOTOOL" != xBASH; then 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17948 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17949 fi 17950 # Try to locate tool using the code snippet 17951 for ac_prog in otool 17952 do 17953 # Extract the first word of "$ac_prog", so it can be a program name with args. 17954 set dummy $ac_prog; ac_word=$2 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17956 $as_echo_n "checking for $ac_word... " >&6; } 17957 if ${ac_cv_path_OTOOL+:} false; then : 17958 $as_echo_n "(cached) " >&6 17959 else 17960 case $OTOOL in 17961 [\\/]* | ?:[\\/]*) 17962 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17963 ;; 17964 *) 17965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17966 for as_dir in $PATH 17967 do 17968 IFS=$as_save_IFS 17969 test -z "$as_dir" && as_dir=. 17970 for ac_exec_ext in '' $ac_executable_extensions; do 17971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17972 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17974 break 2 17975 fi 17976 done 17977 done 17978 IFS=$as_save_IFS 17979 17980 ;; 17981 esac 17982 fi 17983 OTOOL=$ac_cv_path_OTOOL 17984 if test -n "$OTOOL"; then 17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17986 $as_echo "$OTOOL" >&6; } 17987 else 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17989 $as_echo "no" >&6; } 17990 fi 17991 17992 17993 test -n "$OTOOL" && break 17994 done 17995 17996 else 17997 # If it succeeded, then it was overridden by the user. We will use it 17998 # for the tool. 17999 18000 # First remove it from the list of overridden variables, so we can test 18001 # for unknown variables in the end. 18002 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18003 18004 # Check if the provided tool contains a complete path. 18005 tool_specified="$OTOOL" 18006 tool_basename="${tool_specified##*/}" 18007 if test "x$tool_basename" = "x$tool_specified"; then 18008 # A command without a complete path is provided, search $PATH. 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18010 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18011 # Extract the first word of "$tool_basename", so it can be a program name with args. 18012 set dummy $tool_basename; ac_word=$2 18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18014 $as_echo_n "checking for $ac_word... " >&6; } 18015 if ${ac_cv_path_OTOOL+:} false; then : 18016 $as_echo_n "(cached) " >&6 18017 else 18018 case $OTOOL in 18019 [\\/]* | ?:[\\/]*) 18020 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18021 ;; 18022 *) 18023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18024 for as_dir in $PATH 18025 do 18026 IFS=$as_save_IFS 18027 test -z "$as_dir" && as_dir=. 18028 for ac_exec_ext in '' $ac_executable_extensions; do 18029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18030 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18032 break 2 18033 fi 18034 done 18035 done 18036 IFS=$as_save_IFS 18037 18038 ;; 18039 esac 18040 fi 18041 OTOOL=$ac_cv_path_OTOOL 18042 if test -n "$OTOOL"; then 18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18044 $as_echo "$OTOOL" >&6; } 18045 else 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18047 $as_echo "no" >&6; } 18048 fi 18049 18050 18051 if test "x$OTOOL" = x; then 18052 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18053 fi 18054 else 18055 # Otherwise we believe it is a complete path. Use it as it is. 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18057 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18059 $as_echo_n "checking for OTOOL... " >&6; } 18060 if test ! -x "$tool_specified"; then 18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18062 $as_echo "not found" >&6; } 18063 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18064 fi 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18066 $as_echo "$tool_specified" >&6; } 18067 fi 18068 fi 18069 fi 18070 18071 18072 if test "x$OTOOL" = "x"; then 18073 OTOOL="true" 18074 fi 18075 18076 18077 # Publish this variable in the help. 18078 18079 18080 if test "x$READELF" = x; then 18081 # The variable is not set by user, try to locate tool using the code snippet 18082 for ac_prog in greadelf readelf 18083 do 18084 # Extract the first word of "$ac_prog", so it can be a program name with args. 18085 set dummy $ac_prog; ac_word=$2 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18087 $as_echo_n "checking for $ac_word... " >&6; } 18088 if ${ac_cv_path_READELF+:} false; then : 18089 $as_echo_n "(cached) " >&6 18090 else 18091 case $READELF in 18092 [\\/]* | ?:[\\/]*) 18093 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18094 ;; 18095 *) 18096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18097 for as_dir in $PATH 18098 do 18099 IFS=$as_save_IFS 18100 test -z "$as_dir" && as_dir=. 18101 for ac_exec_ext in '' $ac_executable_extensions; do 18102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18103 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18105 break 2 18106 fi 18107 done 18108 done 18109 IFS=$as_save_IFS 18110 18111 ;; 18112 esac 18113 fi 18114 READELF=$ac_cv_path_READELF 18115 if test -n "$READELF"; then 18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18117 $as_echo "$READELF" >&6; } 18118 else 18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18120 $as_echo "no" >&6; } 18121 fi 18122 18123 18124 test -n "$READELF" && break 18125 done 18126 18127 else 18128 # The variable is set, but is it from the command line or the environment? 18129 18130 # Try to remove the string !READELF! from our list. 18131 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18132 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18133 # If it failed, the variable was not from the command line. Ignore it, 18134 # but warn the user (except for BASH, which is always set by the calling BASH). 18135 if test "xREADELF" != xBASH; then 18136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18137 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18138 fi 18139 # Try to locate tool using the code snippet 18140 for ac_prog in greadelf readelf 18141 do 18142 # Extract the first word of "$ac_prog", so it can be a program name with args. 18143 set dummy $ac_prog; ac_word=$2 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18145 $as_echo_n "checking for $ac_word... " >&6; } 18146 if ${ac_cv_path_READELF+:} false; then : 18147 $as_echo_n "(cached) " >&6 18148 else 18149 case $READELF in 18150 [\\/]* | ?:[\\/]*) 18151 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18152 ;; 18153 *) 18154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18155 for as_dir in $PATH 18156 do 18157 IFS=$as_save_IFS 18158 test -z "$as_dir" && as_dir=. 18159 for ac_exec_ext in '' $ac_executable_extensions; do 18160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18161 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18163 break 2 18164 fi 18165 done 18166 done 18167 IFS=$as_save_IFS 18168 18169 ;; 18170 esac 18171 fi 18172 READELF=$ac_cv_path_READELF 18173 if test -n "$READELF"; then 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18175 $as_echo "$READELF" >&6; } 18176 else 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18178 $as_echo "no" >&6; } 18179 fi 18180 18181 18182 test -n "$READELF" && break 18183 done 18184 18185 else 18186 # If it succeeded, then it was overridden by the user. We will use it 18187 # for the tool. 18188 18189 # First remove it from the list of overridden variables, so we can test 18190 # for unknown variables in the end. 18191 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18192 18193 # Check if the provided tool contains a complete path. 18194 tool_specified="$READELF" 18195 tool_basename="${tool_specified##*/}" 18196 if test "x$tool_basename" = "x$tool_specified"; then 18197 # A command without a complete path is provided, search $PATH. 18198 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18199 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18200 # Extract the first word of "$tool_basename", so it can be a program name with args. 18201 set dummy $tool_basename; ac_word=$2 18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18203 $as_echo_n "checking for $ac_word... " >&6; } 18204 if ${ac_cv_path_READELF+:} false; then : 18205 $as_echo_n "(cached) " >&6 18206 else 18207 case $READELF in 18208 [\\/]* | ?:[\\/]*) 18209 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18210 ;; 18211 *) 18212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18213 for as_dir in $PATH 18214 do 18215 IFS=$as_save_IFS 18216 test -z "$as_dir" && as_dir=. 18217 for ac_exec_ext in '' $ac_executable_extensions; do 18218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18219 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18221 break 2 18222 fi 18223 done 18224 done 18225 IFS=$as_save_IFS 18226 18227 ;; 18228 esac 18229 fi 18230 READELF=$ac_cv_path_READELF 18231 if test -n "$READELF"; then 18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18233 $as_echo "$READELF" >&6; } 18234 else 18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18236 $as_echo "no" >&6; } 18237 fi 18238 18239 18240 if test "x$READELF" = x; then 18241 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18242 fi 18243 else 18244 # Otherwise we believe it is a complete path. Use it as it is. 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18246 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18248 $as_echo_n "checking for READELF... " >&6; } 18249 if test ! -x "$tool_specified"; then 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18251 $as_echo "not found" >&6; } 18252 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18253 fi 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18255 $as_echo "$tool_specified" >&6; } 18256 fi 18257 fi 18258 fi 18259 18260 18261 18262 18263 # Publish this variable in the help. 18264 18265 18266 if test "x$HG" = x; then 18267 # The variable is not set by user, try to locate tool using the code snippet 18268 for ac_prog in hg 18269 do 18270 # Extract the first word of "$ac_prog", so it can be a program name with args. 18271 set dummy $ac_prog; ac_word=$2 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18273 $as_echo_n "checking for $ac_word... " >&6; } 18274 if ${ac_cv_path_HG+:} false; then : 18275 $as_echo_n "(cached) " >&6 18276 else 18277 case $HG in 18278 [\\/]* | ?:[\\/]*) 18279 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18280 ;; 18281 *) 18282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18283 for as_dir in $PATH 18284 do 18285 IFS=$as_save_IFS 18286 test -z "$as_dir" && as_dir=. 18287 for ac_exec_ext in '' $ac_executable_extensions; do 18288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18289 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18291 break 2 18292 fi 18293 done 18294 done 18295 IFS=$as_save_IFS 18296 18297 ;; 18298 esac 18299 fi 18300 HG=$ac_cv_path_HG 18301 if test -n "$HG"; then 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18303 $as_echo "$HG" >&6; } 18304 else 18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18306 $as_echo "no" >&6; } 18307 fi 18308 18309 18310 test -n "$HG" && break 18311 done 18312 18313 else 18314 # The variable is set, but is it from the command line or the environment? 18315 18316 # Try to remove the string !HG! from our list. 18317 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18318 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18319 # If it failed, the variable was not from the command line. Ignore it, 18320 # but warn the user (except for BASH, which is always set by the calling BASH). 18321 if test "xHG" != xBASH; then 18322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18323 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18324 fi 18325 # Try to locate tool using the code snippet 18326 for ac_prog in hg 18327 do 18328 # Extract the first word of "$ac_prog", so it can be a program name with args. 18329 set dummy $ac_prog; ac_word=$2 18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18331 $as_echo_n "checking for $ac_word... " >&6; } 18332 if ${ac_cv_path_HG+:} false; then : 18333 $as_echo_n "(cached) " >&6 18334 else 18335 case $HG in 18336 [\\/]* | ?:[\\/]*) 18337 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18338 ;; 18339 *) 18340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18341 for as_dir in $PATH 18342 do 18343 IFS=$as_save_IFS 18344 test -z "$as_dir" && as_dir=. 18345 for ac_exec_ext in '' $ac_executable_extensions; do 18346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18347 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18349 break 2 18350 fi 18351 done 18352 done 18353 IFS=$as_save_IFS 18354 18355 ;; 18356 esac 18357 fi 18358 HG=$ac_cv_path_HG 18359 if test -n "$HG"; then 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18361 $as_echo "$HG" >&6; } 18362 else 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18364 $as_echo "no" >&6; } 18365 fi 18366 18367 18368 test -n "$HG" && break 18369 done 18370 18371 else 18372 # If it succeeded, then it was overridden by the user. We will use it 18373 # for the tool. 18374 18375 # First remove it from the list of overridden variables, so we can test 18376 # for unknown variables in the end. 18377 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18378 18379 # Check if the provided tool contains a complete path. 18380 tool_specified="$HG" 18381 tool_basename="${tool_specified##*/}" 18382 if test "x$tool_basename" = "x$tool_specified"; then 18383 # A command without a complete path is provided, search $PATH. 18384 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18385 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18386 # Extract the first word of "$tool_basename", so it can be a program name with args. 18387 set dummy $tool_basename; ac_word=$2 18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18389 $as_echo_n "checking for $ac_word... " >&6; } 18390 if ${ac_cv_path_HG+:} false; then : 18391 $as_echo_n "(cached) " >&6 18392 else 18393 case $HG in 18394 [\\/]* | ?:[\\/]*) 18395 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18396 ;; 18397 *) 18398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18399 for as_dir in $PATH 18400 do 18401 IFS=$as_save_IFS 18402 test -z "$as_dir" && as_dir=. 18403 for ac_exec_ext in '' $ac_executable_extensions; do 18404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18405 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18407 break 2 18408 fi 18409 done 18410 done 18411 IFS=$as_save_IFS 18412 18413 ;; 18414 esac 18415 fi 18416 HG=$ac_cv_path_HG 18417 if test -n "$HG"; then 18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18419 $as_echo "$HG" >&6; } 18420 else 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18422 $as_echo "no" >&6; } 18423 fi 18424 18425 18426 if test "x$HG" = x; then 18427 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18428 fi 18429 else 18430 # Otherwise we believe it is a complete path. Use it as it is. 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18432 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18434 $as_echo_n "checking for HG... " >&6; } 18435 if test ! -x "$tool_specified"; then 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18437 $as_echo "not found" >&6; } 18438 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18439 fi 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18441 $as_echo "$tool_specified" >&6; } 18442 fi 18443 fi 18444 fi 18445 18446 18447 18448 18449 # Publish this variable in the help. 18450 18451 18452 if test "x$STAT" = x; then 18453 # The variable is not set by user, try to locate tool using the code snippet 18454 for ac_prog in stat 18455 do 18456 # Extract the first word of "$ac_prog", so it can be a program name with args. 18457 set dummy $ac_prog; ac_word=$2 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18459 $as_echo_n "checking for $ac_word... " >&6; } 18460 if ${ac_cv_path_STAT+:} false; then : 18461 $as_echo_n "(cached) " >&6 18462 else 18463 case $STAT in 18464 [\\/]* | ?:[\\/]*) 18465 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18466 ;; 18467 *) 18468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18469 for as_dir in $PATH 18470 do 18471 IFS=$as_save_IFS 18472 test -z "$as_dir" && as_dir=. 18473 for ac_exec_ext in '' $ac_executable_extensions; do 18474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18475 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18477 break 2 18478 fi 18479 done 18480 done 18481 IFS=$as_save_IFS 18482 18483 ;; 18484 esac 18485 fi 18486 STAT=$ac_cv_path_STAT 18487 if test -n "$STAT"; then 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18489 $as_echo "$STAT" >&6; } 18490 else 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18492 $as_echo "no" >&6; } 18493 fi 18494 18495 18496 test -n "$STAT" && break 18497 done 18498 18499 else 18500 # The variable is set, but is it from the command line or the environment? 18501 18502 # Try to remove the string !STAT! from our list. 18503 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18504 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18505 # If it failed, the variable was not from the command line. Ignore it, 18506 # but warn the user (except for BASH, which is always set by the calling BASH). 18507 if test "xSTAT" != xBASH; then 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18509 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18510 fi 18511 # Try to locate tool using the code snippet 18512 for ac_prog in stat 18513 do 18514 # Extract the first word of "$ac_prog", so it can be a program name with args. 18515 set dummy $ac_prog; ac_word=$2 18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18517 $as_echo_n "checking for $ac_word... " >&6; } 18518 if ${ac_cv_path_STAT+:} false; then : 18519 $as_echo_n "(cached) " >&6 18520 else 18521 case $STAT in 18522 [\\/]* | ?:[\\/]*) 18523 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18524 ;; 18525 *) 18526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18527 for as_dir in $PATH 18528 do 18529 IFS=$as_save_IFS 18530 test -z "$as_dir" && as_dir=. 18531 for ac_exec_ext in '' $ac_executable_extensions; do 18532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18533 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18535 break 2 18536 fi 18537 done 18538 done 18539 IFS=$as_save_IFS 18540 18541 ;; 18542 esac 18543 fi 18544 STAT=$ac_cv_path_STAT 18545 if test -n "$STAT"; then 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18547 $as_echo "$STAT" >&6; } 18548 else 18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18550 $as_echo "no" >&6; } 18551 fi 18552 18553 18554 test -n "$STAT" && break 18555 done 18556 18557 else 18558 # If it succeeded, then it was overridden by the user. We will use it 18559 # for the tool. 18560 18561 # First remove it from the list of overridden variables, so we can test 18562 # for unknown variables in the end. 18563 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18564 18565 # Check if the provided tool contains a complete path. 18566 tool_specified="$STAT" 18567 tool_basename="${tool_specified##*/}" 18568 if test "x$tool_basename" = "x$tool_specified"; then 18569 # A command without a complete path is provided, search $PATH. 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18571 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18572 # Extract the first word of "$tool_basename", so it can be a program name with args. 18573 set dummy $tool_basename; ac_word=$2 18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18575 $as_echo_n "checking for $ac_word... " >&6; } 18576 if ${ac_cv_path_STAT+:} false; then : 18577 $as_echo_n "(cached) " >&6 18578 else 18579 case $STAT in 18580 [\\/]* | ?:[\\/]*) 18581 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18582 ;; 18583 *) 18584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18585 for as_dir in $PATH 18586 do 18587 IFS=$as_save_IFS 18588 test -z "$as_dir" && as_dir=. 18589 for ac_exec_ext in '' $ac_executable_extensions; do 18590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18591 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18593 break 2 18594 fi 18595 done 18596 done 18597 IFS=$as_save_IFS 18598 18599 ;; 18600 esac 18601 fi 18602 STAT=$ac_cv_path_STAT 18603 if test -n "$STAT"; then 18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18605 $as_echo "$STAT" >&6; } 18606 else 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18608 $as_echo "no" >&6; } 18609 fi 18610 18611 18612 if test "x$STAT" = x; then 18613 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18614 fi 18615 else 18616 # Otherwise we believe it is a complete path. Use it as it is. 18617 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18618 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18620 $as_echo_n "checking for STAT... " >&6; } 18621 if test ! -x "$tool_specified"; then 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18623 $as_echo "not found" >&6; } 18624 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18625 fi 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18627 $as_echo "$tool_specified" >&6; } 18628 fi 18629 fi 18630 fi 18631 18632 18633 18634 18635 # Publish this variable in the help. 18636 18637 18638 if test "x$TIME" = x; then 18639 # The variable is not set by user, try to locate tool using the code snippet 18640 for ac_prog in time 18641 do 18642 # Extract the first word of "$ac_prog", so it can be a program name with args. 18643 set dummy $ac_prog; ac_word=$2 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18645 $as_echo_n "checking for $ac_word... " >&6; } 18646 if ${ac_cv_path_TIME+:} false; then : 18647 $as_echo_n "(cached) " >&6 18648 else 18649 case $TIME in 18650 [\\/]* | ?:[\\/]*) 18651 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18652 ;; 18653 *) 18654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18655 for as_dir in $PATH 18656 do 18657 IFS=$as_save_IFS 18658 test -z "$as_dir" && as_dir=. 18659 for ac_exec_ext in '' $ac_executable_extensions; do 18660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18661 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18663 break 2 18664 fi 18665 done 18666 done 18667 IFS=$as_save_IFS 18668 18669 ;; 18670 esac 18671 fi 18672 TIME=$ac_cv_path_TIME 18673 if test -n "$TIME"; then 18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18675 $as_echo "$TIME" >&6; } 18676 else 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18678 $as_echo "no" >&6; } 18679 fi 18680 18681 18682 test -n "$TIME" && break 18683 done 18684 18685 else 18686 # The variable is set, but is it from the command line or the environment? 18687 18688 # Try to remove the string !TIME! from our list. 18689 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18690 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18691 # If it failed, the variable was not from the command line. Ignore it, 18692 # but warn the user (except for BASH, which is always set by the calling BASH). 18693 if test "xTIME" != xBASH; then 18694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18695 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18696 fi 18697 # Try to locate tool using the code snippet 18698 for ac_prog in time 18699 do 18700 # Extract the first word of "$ac_prog", so it can be a program name with args. 18701 set dummy $ac_prog; ac_word=$2 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18703 $as_echo_n "checking for $ac_word... " >&6; } 18704 if ${ac_cv_path_TIME+:} false; then : 18705 $as_echo_n "(cached) " >&6 18706 else 18707 case $TIME in 18708 [\\/]* | ?:[\\/]*) 18709 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18710 ;; 18711 *) 18712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18713 for as_dir in $PATH 18714 do 18715 IFS=$as_save_IFS 18716 test -z "$as_dir" && as_dir=. 18717 for ac_exec_ext in '' $ac_executable_extensions; do 18718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18719 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18721 break 2 18722 fi 18723 done 18724 done 18725 IFS=$as_save_IFS 18726 18727 ;; 18728 esac 18729 fi 18730 TIME=$ac_cv_path_TIME 18731 if test -n "$TIME"; then 18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18733 $as_echo "$TIME" >&6; } 18734 else 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18736 $as_echo "no" >&6; } 18737 fi 18738 18739 18740 test -n "$TIME" && break 18741 done 18742 18743 else 18744 # If it succeeded, then it was overridden by the user. We will use it 18745 # for the tool. 18746 18747 # First remove it from the list of overridden variables, so we can test 18748 # for unknown variables in the end. 18749 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18750 18751 # Check if the provided tool contains a complete path. 18752 tool_specified="$TIME" 18753 tool_basename="${tool_specified##*/}" 18754 if test "x$tool_basename" = "x$tool_specified"; then 18755 # A command without a complete path is provided, search $PATH. 18756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18757 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18758 # Extract the first word of "$tool_basename", so it can be a program name with args. 18759 set dummy $tool_basename; ac_word=$2 18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18761 $as_echo_n "checking for $ac_word... " >&6; } 18762 if ${ac_cv_path_TIME+:} false; then : 18763 $as_echo_n "(cached) " >&6 18764 else 18765 case $TIME in 18766 [\\/]* | ?:[\\/]*) 18767 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18768 ;; 18769 *) 18770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18771 for as_dir in $PATH 18772 do 18773 IFS=$as_save_IFS 18774 test -z "$as_dir" && as_dir=. 18775 for ac_exec_ext in '' $ac_executable_extensions; do 18776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18777 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18779 break 2 18780 fi 18781 done 18782 done 18783 IFS=$as_save_IFS 18784 18785 ;; 18786 esac 18787 fi 18788 TIME=$ac_cv_path_TIME 18789 if test -n "$TIME"; then 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18791 $as_echo "$TIME" >&6; } 18792 else 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18794 $as_echo "no" >&6; } 18795 fi 18796 18797 18798 if test "x$TIME" = x; then 18799 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18800 fi 18801 else 18802 # Otherwise we believe it is a complete path. Use it as it is. 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18804 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18806 $as_echo_n "checking for TIME... " >&6; } 18807 if test ! -x "$tool_specified"; then 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18809 $as_echo "not found" >&6; } 18810 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18811 fi 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18813 $as_echo "$tool_specified" >&6; } 18814 fi 18815 fi 18816 fi 18817 18818 18819 # Check if it's GNU time 18820 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18821 if test "x$IS_GNU_TIME" != x; then 18822 IS_GNU_TIME=yes 18823 else 18824 IS_GNU_TIME=no 18825 fi 18826 18827 18828 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18829 18830 18831 18832 # Publish this variable in the help. 18833 18834 18835 if test "x$COMM" = x; then 18836 # The variable is not set by user, try to locate tool using the code snippet 18837 for ac_prog in comm 18838 do 18839 # Extract the first word of "$ac_prog", so it can be a program name with args. 18840 set dummy $ac_prog; ac_word=$2 18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18842 $as_echo_n "checking for $ac_word... " >&6; } 18843 if ${ac_cv_path_COMM+:} false; then : 18844 $as_echo_n "(cached) " >&6 18845 else 18846 case $COMM in 18847 [\\/]* | ?:[\\/]*) 18848 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18849 ;; 18850 *) 18851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18852 for as_dir in $PATH 18853 do 18854 IFS=$as_save_IFS 18855 test -z "$as_dir" && as_dir=. 18856 for ac_exec_ext in '' $ac_executable_extensions; do 18857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18858 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18860 break 2 18861 fi 18862 done 18863 done 18864 IFS=$as_save_IFS 18865 18866 ;; 18867 esac 18868 fi 18869 COMM=$ac_cv_path_COMM 18870 if test -n "$COMM"; then 18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18872 $as_echo "$COMM" >&6; } 18873 else 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18875 $as_echo "no" >&6; } 18876 fi 18877 18878 18879 test -n "$COMM" && break 18880 done 18881 18882 else 18883 # The variable is set, but is it from the command line or the environment? 18884 18885 # Try to remove the string !COMM! from our list. 18886 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18887 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18888 # If it failed, the variable was not from the command line. Ignore it, 18889 # but warn the user (except for BASH, which is always set by the calling BASH). 18890 if test "xCOMM" != xBASH; then 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18892 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18893 fi 18894 # Try to locate tool using the code snippet 18895 for ac_prog in comm 18896 do 18897 # Extract the first word of "$ac_prog", so it can be a program name with args. 18898 set dummy $ac_prog; ac_word=$2 18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18900 $as_echo_n "checking for $ac_word... " >&6; } 18901 if ${ac_cv_path_COMM+:} false; then : 18902 $as_echo_n "(cached) " >&6 18903 else 18904 case $COMM in 18905 [\\/]* | ?:[\\/]*) 18906 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18907 ;; 18908 *) 18909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18910 for as_dir in $PATH 18911 do 18912 IFS=$as_save_IFS 18913 test -z "$as_dir" && as_dir=. 18914 for ac_exec_ext in '' $ac_executable_extensions; do 18915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18916 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18918 break 2 18919 fi 18920 done 18921 done 18922 IFS=$as_save_IFS 18923 18924 ;; 18925 esac 18926 fi 18927 COMM=$ac_cv_path_COMM 18928 if test -n "$COMM"; then 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18930 $as_echo "$COMM" >&6; } 18931 else 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18933 $as_echo "no" >&6; } 18934 fi 18935 18936 18937 test -n "$COMM" && break 18938 done 18939 18940 else 18941 # If it succeeded, then it was overridden by the user. We will use it 18942 # for the tool. 18943 18944 # First remove it from the list of overridden variables, so we can test 18945 # for unknown variables in the end. 18946 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18947 18948 # Check if the provided tool contains a complete path. 18949 tool_specified="$COMM" 18950 tool_basename="${tool_specified##*/}" 18951 if test "x$tool_basename" = "x$tool_specified"; then 18952 # A command without a complete path is provided, search $PATH. 18953 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18954 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18955 # Extract the first word of "$tool_basename", so it can be a program name with args. 18956 set dummy $tool_basename; ac_word=$2 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18958 $as_echo_n "checking for $ac_word... " >&6; } 18959 if ${ac_cv_path_COMM+:} false; then : 18960 $as_echo_n "(cached) " >&6 18961 else 18962 case $COMM in 18963 [\\/]* | ?:[\\/]*) 18964 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18965 ;; 18966 *) 18967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18968 for as_dir in $PATH 18969 do 18970 IFS=$as_save_IFS 18971 test -z "$as_dir" && as_dir=. 18972 for ac_exec_ext in '' $ac_executable_extensions; do 18973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18974 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18976 break 2 18977 fi 18978 done 18979 done 18980 IFS=$as_save_IFS 18981 18982 ;; 18983 esac 18984 fi 18985 COMM=$ac_cv_path_COMM 18986 if test -n "$COMM"; then 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18988 $as_echo "$COMM" >&6; } 18989 else 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18991 $as_echo "no" >&6; } 18992 fi 18993 18994 18995 if test "x$COMM" = x; then 18996 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18997 fi 18998 else 18999 # Otherwise we believe it is a complete path. Use it as it is. 19000 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 19001 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 19003 $as_echo_n "checking for COMM... " >&6; } 19004 if test ! -x "$tool_specified"; then 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19006 $as_echo "not found" >&6; } 19007 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 19008 fi 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19010 $as_echo "$tool_specified" >&6; } 19011 fi 19012 fi 19013 fi 19014 19015 19016 19017 if test "x$COMM" = x; then 19018 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 19019 fi 19020 19021 19022 fi 19023 19024 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 19025 19026 19027 19028 # Publish this variable in the help. 19029 19030 19031 if test "x$DSYMUTIL" = x; then 19032 # The variable is not set by user, try to locate tool using the code snippet 19033 for ac_prog in dsymutil 19034 do 19035 # Extract the first word of "$ac_prog", so it can be a program name with args. 19036 set dummy $ac_prog; ac_word=$2 19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19038 $as_echo_n "checking for $ac_word... " >&6; } 19039 if ${ac_cv_path_DSYMUTIL+:} false; then : 19040 $as_echo_n "(cached) " >&6 19041 else 19042 case $DSYMUTIL in 19043 [\\/]* | ?:[\\/]*) 19044 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19045 ;; 19046 *) 19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19048 for as_dir in $PATH 19049 do 19050 IFS=$as_save_IFS 19051 test -z "$as_dir" && as_dir=. 19052 for ac_exec_ext in '' $ac_executable_extensions; do 19053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19054 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19056 break 2 19057 fi 19058 done 19059 done 19060 IFS=$as_save_IFS 19061 19062 ;; 19063 esac 19064 fi 19065 DSYMUTIL=$ac_cv_path_DSYMUTIL 19066 if test -n "$DSYMUTIL"; then 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19068 $as_echo "$DSYMUTIL" >&6; } 19069 else 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19071 $as_echo "no" >&6; } 19072 fi 19073 19074 19075 test -n "$DSYMUTIL" && break 19076 done 19077 19078 else 19079 # The variable is set, but is it from the command line or the environment? 19080 19081 # Try to remove the string !DSYMUTIL! from our list. 19082 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19083 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19084 # If it failed, the variable was not from the command line. Ignore it, 19085 # but warn the user (except for BASH, which is always set by the calling BASH). 19086 if test "xDSYMUTIL" != xBASH; then 19087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19088 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19089 fi 19090 # Try to locate tool using the code snippet 19091 for ac_prog in dsymutil 19092 do 19093 # Extract the first word of "$ac_prog", so it can be a program name with args. 19094 set dummy $ac_prog; ac_word=$2 19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19096 $as_echo_n "checking for $ac_word... " >&6; } 19097 if ${ac_cv_path_DSYMUTIL+:} false; then : 19098 $as_echo_n "(cached) " >&6 19099 else 19100 case $DSYMUTIL in 19101 [\\/]* | ?:[\\/]*) 19102 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19103 ;; 19104 *) 19105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19106 for as_dir in $PATH 19107 do 19108 IFS=$as_save_IFS 19109 test -z "$as_dir" && as_dir=. 19110 for ac_exec_ext in '' $ac_executable_extensions; do 19111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19112 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19114 break 2 19115 fi 19116 done 19117 done 19118 IFS=$as_save_IFS 19119 19120 ;; 19121 esac 19122 fi 19123 DSYMUTIL=$ac_cv_path_DSYMUTIL 19124 if test -n "$DSYMUTIL"; then 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19126 $as_echo "$DSYMUTIL" >&6; } 19127 else 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19129 $as_echo "no" >&6; } 19130 fi 19131 19132 19133 test -n "$DSYMUTIL" && break 19134 done 19135 19136 else 19137 # If it succeeded, then it was overridden by the user. We will use it 19138 # for the tool. 19139 19140 # First remove it from the list of overridden variables, so we can test 19141 # for unknown variables in the end. 19142 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19143 19144 # Check if the provided tool contains a complete path. 19145 tool_specified="$DSYMUTIL" 19146 tool_basename="${tool_specified##*/}" 19147 if test "x$tool_basename" = "x$tool_specified"; then 19148 # A command without a complete path is provided, search $PATH. 19149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19150 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19151 # Extract the first word of "$tool_basename", so it can be a program name with args. 19152 set dummy $tool_basename; ac_word=$2 19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19154 $as_echo_n "checking for $ac_word... " >&6; } 19155 if ${ac_cv_path_DSYMUTIL+:} false; then : 19156 $as_echo_n "(cached) " >&6 19157 else 19158 case $DSYMUTIL in 19159 [\\/]* | ?:[\\/]*) 19160 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19161 ;; 19162 *) 19163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19164 for as_dir in $PATH 19165 do 19166 IFS=$as_save_IFS 19167 test -z "$as_dir" && as_dir=. 19168 for ac_exec_ext in '' $ac_executable_extensions; do 19169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19170 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19172 break 2 19173 fi 19174 done 19175 done 19176 IFS=$as_save_IFS 19177 19178 ;; 19179 esac 19180 fi 19181 DSYMUTIL=$ac_cv_path_DSYMUTIL 19182 if test -n "$DSYMUTIL"; then 19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19184 $as_echo "$DSYMUTIL" >&6; } 19185 else 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19187 $as_echo "no" >&6; } 19188 fi 19189 19190 19191 if test "x$DSYMUTIL" = x; then 19192 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19193 fi 19194 else 19195 # Otherwise we believe it is a complete path. Use it as it is. 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19197 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19199 $as_echo_n "checking for DSYMUTIL... " >&6; } 19200 if test ! -x "$tool_specified"; then 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19202 $as_echo "not found" >&6; } 19203 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19204 fi 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19206 $as_echo "$tool_specified" >&6; } 19207 fi 19208 fi 19209 fi 19210 19211 19212 19213 if test "x$DSYMUTIL" = x; then 19214 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19215 fi 19216 19217 19218 19219 19220 19221 # Publish this variable in the help. 19222 19223 19224 if test "x$XATTR" = x; then 19225 # The variable is not set by user, try to locate tool using the code snippet 19226 for ac_prog in xattr 19227 do 19228 # Extract the first word of "$ac_prog", so it can be a program name with args. 19229 set dummy $ac_prog; ac_word=$2 19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19231 $as_echo_n "checking for $ac_word... " >&6; } 19232 if ${ac_cv_path_XATTR+:} false; then : 19233 $as_echo_n "(cached) " >&6 19234 else 19235 case $XATTR in 19236 [\\/]* | ?:[\\/]*) 19237 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19238 ;; 19239 *) 19240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19241 for as_dir in $PATH 19242 do 19243 IFS=$as_save_IFS 19244 test -z "$as_dir" && as_dir=. 19245 for ac_exec_ext in '' $ac_executable_extensions; do 19246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19247 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19249 break 2 19250 fi 19251 done 19252 done 19253 IFS=$as_save_IFS 19254 19255 ;; 19256 esac 19257 fi 19258 XATTR=$ac_cv_path_XATTR 19259 if test -n "$XATTR"; then 19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19261 $as_echo "$XATTR" >&6; } 19262 else 19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19264 $as_echo "no" >&6; } 19265 fi 19266 19267 19268 test -n "$XATTR" && break 19269 done 19270 19271 else 19272 # The variable is set, but is it from the command line or the environment? 19273 19274 # Try to remove the string !XATTR! from our list. 19275 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19276 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19277 # If it failed, the variable was not from the command line. Ignore it, 19278 # but warn the user (except for BASH, which is always set by the calling BASH). 19279 if test "xXATTR" != xBASH; then 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19281 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19282 fi 19283 # Try to locate tool using the code snippet 19284 for ac_prog in xattr 19285 do 19286 # Extract the first word of "$ac_prog", so it can be a program name with args. 19287 set dummy $ac_prog; ac_word=$2 19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19289 $as_echo_n "checking for $ac_word... " >&6; } 19290 if ${ac_cv_path_XATTR+:} false; then : 19291 $as_echo_n "(cached) " >&6 19292 else 19293 case $XATTR in 19294 [\\/]* | ?:[\\/]*) 19295 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19296 ;; 19297 *) 19298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19299 for as_dir in $PATH 19300 do 19301 IFS=$as_save_IFS 19302 test -z "$as_dir" && as_dir=. 19303 for ac_exec_ext in '' $ac_executable_extensions; do 19304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19305 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19307 break 2 19308 fi 19309 done 19310 done 19311 IFS=$as_save_IFS 19312 19313 ;; 19314 esac 19315 fi 19316 XATTR=$ac_cv_path_XATTR 19317 if test -n "$XATTR"; then 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19319 $as_echo "$XATTR" >&6; } 19320 else 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19322 $as_echo "no" >&6; } 19323 fi 19324 19325 19326 test -n "$XATTR" && break 19327 done 19328 19329 else 19330 # If it succeeded, then it was overridden by the user. We will use it 19331 # for the tool. 19332 19333 # First remove it from the list of overridden variables, so we can test 19334 # for unknown variables in the end. 19335 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19336 19337 # Check if the provided tool contains a complete path. 19338 tool_specified="$XATTR" 19339 tool_basename="${tool_specified##*/}" 19340 if test "x$tool_basename" = "x$tool_specified"; then 19341 # A command without a complete path is provided, search $PATH. 19342 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19343 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19344 # Extract the first word of "$tool_basename", so it can be a program name with args. 19345 set dummy $tool_basename; ac_word=$2 19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19347 $as_echo_n "checking for $ac_word... " >&6; } 19348 if ${ac_cv_path_XATTR+:} false; then : 19349 $as_echo_n "(cached) " >&6 19350 else 19351 case $XATTR in 19352 [\\/]* | ?:[\\/]*) 19353 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19354 ;; 19355 *) 19356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19357 for as_dir in $PATH 19358 do 19359 IFS=$as_save_IFS 19360 test -z "$as_dir" && as_dir=. 19361 for ac_exec_ext in '' $ac_executable_extensions; do 19362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19363 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19365 break 2 19366 fi 19367 done 19368 done 19369 IFS=$as_save_IFS 19370 19371 ;; 19372 esac 19373 fi 19374 XATTR=$ac_cv_path_XATTR 19375 if test -n "$XATTR"; then 19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19377 $as_echo "$XATTR" >&6; } 19378 else 19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19380 $as_echo "no" >&6; } 19381 fi 19382 19383 19384 if test "x$XATTR" = x; then 19385 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19386 fi 19387 else 19388 # Otherwise we believe it is a complete path. Use it as it is. 19389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19390 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19392 $as_echo_n "checking for XATTR... " >&6; } 19393 if test ! -x "$tool_specified"; then 19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19395 $as_echo "not found" >&6; } 19396 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19397 fi 19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19399 $as_echo "$tool_specified" >&6; } 19400 fi 19401 fi 19402 fi 19403 19404 19405 19406 if test "x$XATTR" = x; then 19407 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19408 fi 19409 19410 19411 19412 19413 # Publish this variable in the help. 19414 19415 19416 if test "x$CODESIGN" = x; then 19417 # The variable is not set by user, try to locate tool using the code snippet 19418 for ac_prog in codesign 19419 do 19420 # Extract the first word of "$ac_prog", so it can be a program name with args. 19421 set dummy $ac_prog; ac_word=$2 19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19423 $as_echo_n "checking for $ac_word... " >&6; } 19424 if ${ac_cv_path_CODESIGN+:} false; then : 19425 $as_echo_n "(cached) " >&6 19426 else 19427 case $CODESIGN in 19428 [\\/]* | ?:[\\/]*) 19429 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19430 ;; 19431 *) 19432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19433 for as_dir in $PATH 19434 do 19435 IFS=$as_save_IFS 19436 test -z "$as_dir" && as_dir=. 19437 for ac_exec_ext in '' $ac_executable_extensions; do 19438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19439 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19441 break 2 19442 fi 19443 done 19444 done 19445 IFS=$as_save_IFS 19446 19447 ;; 19448 esac 19449 fi 19450 CODESIGN=$ac_cv_path_CODESIGN 19451 if test -n "$CODESIGN"; then 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19453 $as_echo "$CODESIGN" >&6; } 19454 else 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19456 $as_echo "no" >&6; } 19457 fi 19458 19459 19460 test -n "$CODESIGN" && break 19461 done 19462 19463 else 19464 # The variable is set, but is it from the command line or the environment? 19465 19466 # Try to remove the string !CODESIGN! from our list. 19467 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19468 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19469 # If it failed, the variable was not from the command line. Ignore it, 19470 # but warn the user (except for BASH, which is always set by the calling BASH). 19471 if test "xCODESIGN" != xBASH; then 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19473 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19474 fi 19475 # Try to locate tool using the code snippet 19476 for ac_prog in codesign 19477 do 19478 # Extract the first word of "$ac_prog", so it can be a program name with args. 19479 set dummy $ac_prog; ac_word=$2 19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19481 $as_echo_n "checking for $ac_word... " >&6; } 19482 if ${ac_cv_path_CODESIGN+:} false; then : 19483 $as_echo_n "(cached) " >&6 19484 else 19485 case $CODESIGN in 19486 [\\/]* | ?:[\\/]*) 19487 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19488 ;; 19489 *) 19490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19491 for as_dir in $PATH 19492 do 19493 IFS=$as_save_IFS 19494 test -z "$as_dir" && as_dir=. 19495 for ac_exec_ext in '' $ac_executable_extensions; do 19496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19497 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19499 break 2 19500 fi 19501 done 19502 done 19503 IFS=$as_save_IFS 19504 19505 ;; 19506 esac 19507 fi 19508 CODESIGN=$ac_cv_path_CODESIGN 19509 if test -n "$CODESIGN"; then 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19511 $as_echo "$CODESIGN" >&6; } 19512 else 19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19514 $as_echo "no" >&6; } 19515 fi 19516 19517 19518 test -n "$CODESIGN" && break 19519 done 19520 19521 else 19522 # If it succeeded, then it was overridden by the user. We will use it 19523 # for the tool. 19524 19525 # First remove it from the list of overridden variables, so we can test 19526 # for unknown variables in the end. 19527 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19528 19529 # Check if the provided tool contains a complete path. 19530 tool_specified="$CODESIGN" 19531 tool_basename="${tool_specified##*/}" 19532 if test "x$tool_basename" = "x$tool_specified"; then 19533 # A command without a complete path is provided, search $PATH. 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19535 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19536 # Extract the first word of "$tool_basename", so it can be a program name with args. 19537 set dummy $tool_basename; ac_word=$2 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19539 $as_echo_n "checking for $ac_word... " >&6; } 19540 if ${ac_cv_path_CODESIGN+:} false; then : 19541 $as_echo_n "(cached) " >&6 19542 else 19543 case $CODESIGN in 19544 [\\/]* | ?:[\\/]*) 19545 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19546 ;; 19547 *) 19548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19549 for as_dir in $PATH 19550 do 19551 IFS=$as_save_IFS 19552 test -z "$as_dir" && as_dir=. 19553 for ac_exec_ext in '' $ac_executable_extensions; do 19554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19555 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19557 break 2 19558 fi 19559 done 19560 done 19561 IFS=$as_save_IFS 19562 19563 ;; 19564 esac 19565 fi 19566 CODESIGN=$ac_cv_path_CODESIGN 19567 if test -n "$CODESIGN"; then 19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19569 $as_echo "$CODESIGN" >&6; } 19570 else 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19572 $as_echo "no" >&6; } 19573 fi 19574 19575 19576 if test "x$CODESIGN" = x; then 19577 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19578 fi 19579 else 19580 # Otherwise we believe it is a complete path. Use it as it is. 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19582 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19584 $as_echo_n "checking for CODESIGN... " >&6; } 19585 if test ! -x "$tool_specified"; then 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19587 $as_echo "not found" >&6; } 19588 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19589 fi 19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19591 $as_echo "$tool_specified" >&6; } 19592 fi 19593 fi 19594 fi 19595 19596 19597 if test "x$CODESIGN" != "x"; then 19598 # Verify that the openjdk_codesign certificate is present 19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19600 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19601 rm -f codesign-testfile 19602 touch codesign-testfile 19603 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19604 rm -f codesign-testfile 19605 if test "x$CODESIGN" = x; then 19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19607 $as_echo "no" >&6; } 19608 else 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19610 $as_echo "yes" >&6; } 19611 fi 19612 fi 19613 fi 19614 19615 19616 # Check if pkg-config is available. 19617 19618 19619 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19620 if test -n "$ac_tool_prefix"; then 19621 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19622 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19624 $as_echo_n "checking for $ac_word... " >&6; } 19625 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19626 $as_echo_n "(cached) " >&6 19627 else 19628 case $PKG_CONFIG in 19629 [\\/]* | ?:[\\/]*) 19630 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19631 ;; 19632 *) 19633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19634 for as_dir in $PATH 19635 do 19636 IFS=$as_save_IFS 19637 test -z "$as_dir" && as_dir=. 19638 for ac_exec_ext in '' $ac_executable_extensions; do 19639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19640 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19642 break 2 19643 fi 19644 done 19645 done 19646 IFS=$as_save_IFS 19647 19648 ;; 19649 esac 19650 fi 19651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19652 if test -n "$PKG_CONFIG"; then 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19654 $as_echo "$PKG_CONFIG" >&6; } 19655 else 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19657 $as_echo "no" >&6; } 19658 fi 19659 19660 19661 fi 19662 if test -z "$ac_cv_path_PKG_CONFIG"; then 19663 ac_pt_PKG_CONFIG=$PKG_CONFIG 19664 # Extract the first word of "pkg-config", so it can be a program name with args. 19665 set dummy pkg-config; ac_word=$2 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19667 $as_echo_n "checking for $ac_word... " >&6; } 19668 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19669 $as_echo_n "(cached) " >&6 19670 else 19671 case $ac_pt_PKG_CONFIG in 19672 [\\/]* | ?:[\\/]*) 19673 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19674 ;; 19675 *) 19676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19677 for as_dir in $PATH 19678 do 19679 IFS=$as_save_IFS 19680 test -z "$as_dir" && as_dir=. 19681 for ac_exec_ext in '' $ac_executable_extensions; do 19682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19683 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19685 break 2 19686 fi 19687 done 19688 done 19689 IFS=$as_save_IFS 19690 19691 ;; 19692 esac 19693 fi 19694 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19695 if test -n "$ac_pt_PKG_CONFIG"; then 19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19697 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19698 else 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19700 $as_echo "no" >&6; } 19701 fi 19702 19703 if test "x$ac_pt_PKG_CONFIG" = x; then 19704 PKG_CONFIG="" 19705 else 19706 case $cross_compiling:$ac_tool_warned in 19707 yes:) 19708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19710 ac_tool_warned=yes ;; 19711 esac 19712 PKG_CONFIG=$ac_pt_PKG_CONFIG 19713 fi 19714 else 19715 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19716 fi 19717 19718 fi 19719 if test -n "$PKG_CONFIG"; then 19720 _pkg_min_version=0.9.0 19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19722 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19723 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19725 $as_echo "yes" >&6; } 19726 else 19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19728 $as_echo "no" >&6; } 19729 PKG_CONFIG="" 19730 fi 19731 19732 fi 19733 19734 # After basic tools have been setup, we can check build os specific details. 19735 19736 ############################################################################### 19737 19738 # Note that this is the build platform OS version! 19739 19740 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19741 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19742 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19743 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19744 19745 19746 19747 19748 19749 # Setup builddeps, for automatic downloading of tools we need. 19750 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19751 # boot-jdk setup, but we need to have basic tools setup first. 19752 19753 19754 # Check whether --with-builddeps-conf was given. 19755 if test "${with_builddeps_conf+set}" = set; then : 19756 withval=$with_builddeps_conf; 19757 fi 19758 19759 19760 19761 # Check whether --with-builddeps-server was given. 19762 if test "${with_builddeps_server+set}" = set; then : 19763 withval=$with_builddeps_server; 19764 fi 19765 19766 19767 19768 # Check whether --with-builddeps-dir was given. 19769 if test "${with_builddeps_dir+set}" = set; then : 19770 withval=$with_builddeps_dir; 19771 else 19772 with_builddeps_dir=/localhome/builddeps 19773 fi 19774 19775 19776 19777 # Check whether --with-builddeps-group was given. 19778 if test "${with_builddeps_group+set}" = set; then : 19779 withval=$with_builddeps_group; 19780 fi 19781 19782 19783 19784 19785 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19786 if test "x$with_builddeps_conf" != x; then 19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19788 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19789 builddepsfile=$with_builddeps_conf 19790 if test -s $builddepsfile; then 19791 . $builddepsfile 19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19793 $as_echo "loaded!" >&6; } 19794 else 19795 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19796 fi 19797 else 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19799 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19800 builddepsfile=`mktemp` 19801 touch $builddepsfile 19802 # Put all found confs into a single file. 19803 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19804 # Source the file to acquire the variables 19805 if test -s $builddepsfile; then 19806 . $builddepsfile 19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19808 $as_echo "found at least one!" >&6; } 19809 else 19810 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19811 fi 19812 fi 19813 # Create build and target names that use _ instead of "-" and ".". 19814 # This is necessary to use them in variable names. 19815 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19816 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19817 # Extract rewrite information for build and target 19818 eval rewritten_build=\${REWRITE_${build_var}} 19819 if test "x$rewritten_build" = x; then 19820 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19821 echo Build stays the same $rewritten_build 19822 else 19823 echo Rewriting build for builddeps into $rewritten_build 19824 fi 19825 eval rewritten_target=\${REWRITE_${target_var}} 19826 if test "x$rewritten_target" = x; then 19827 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19828 echo Target stays the same $rewritten_target 19829 else 19830 echo Rewriting target for builddeps into $rewritten_target 19831 fi 19832 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19833 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19834 fi 19835 for ac_prog in 7z unzip 19836 do 19837 # Extract the first word of "$ac_prog", so it can be a program name with args. 19838 set dummy $ac_prog; ac_word=$2 19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19840 $as_echo_n "checking for $ac_word... " >&6; } 19841 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19842 $as_echo_n "(cached) " >&6 19843 else 19844 if test -n "$BDEPS_UNZIP"; then 19845 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19846 else 19847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19848 for as_dir in $PATH 19849 do 19850 IFS=$as_save_IFS 19851 test -z "$as_dir" && as_dir=. 19852 for ac_exec_ext in '' $ac_executable_extensions; do 19853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19854 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19856 break 2 19857 fi 19858 done 19859 done 19860 IFS=$as_save_IFS 19861 19862 fi 19863 fi 19864 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19865 if test -n "$BDEPS_UNZIP"; then 19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19867 $as_echo "$BDEPS_UNZIP" >&6; } 19868 else 19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19870 $as_echo "no" >&6; } 19871 fi 19872 19873 19874 test -n "$BDEPS_UNZIP" && break 19875 done 19876 19877 if test "x$BDEPS_UNZIP" = x7z; then 19878 BDEPS_UNZIP="7z x" 19879 fi 19880 19881 for ac_prog in wget lftp ftp 19882 do 19883 # Extract the first word of "$ac_prog", so it can be a program name with args. 19884 set dummy $ac_prog; ac_word=$2 19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19886 $as_echo_n "checking for $ac_word... " >&6; } 19887 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19888 $as_echo_n "(cached) " >&6 19889 else 19890 if test -n "$BDEPS_FTP"; then 19891 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19892 else 19893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19894 for as_dir in $PATH 19895 do 19896 IFS=$as_save_IFS 19897 test -z "$as_dir" && as_dir=. 19898 for ac_exec_ext in '' $ac_executable_extensions; do 19899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19900 ac_cv_prog_BDEPS_FTP="$ac_prog" 19901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19902 break 2 19903 fi 19904 done 19905 done 19906 IFS=$as_save_IFS 19907 19908 fi 19909 fi 19910 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19911 if test -n "$BDEPS_FTP"; then 19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19913 $as_echo "$BDEPS_FTP" >&6; } 19914 else 19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19916 $as_echo "no" >&6; } 19917 fi 19918 19919 19920 test -n "$BDEPS_FTP" && break 19921 done 19922 19923 19924 19925 ############################################################################### 19926 # 19927 # Determine OpenJDK variants, options and version numbers. 19928 # 19929 ############################################################################### 19930 19931 # We need build & target for this. 19932 19933 19934 ############################################################################### 19935 # 19936 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19937 # We always build headless support. 19938 # 19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19940 $as_echo_n "checking headful support... " >&6; } 19941 # Check whether --enable-headful was given. 19942 if test "${enable_headful+set}" = set; then : 19943 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19944 else 19945 SUPPORT_HEADFUL=yes 19946 fi 19947 19948 19949 SUPPORT_HEADLESS=yes 19950 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19951 19952 if test "x$SUPPORT_HEADFUL" = xyes; then 19953 # We are building both headful and headless. 19954 headful_msg="include support for both headful and headless" 19955 fi 19956 19957 if test "x$SUPPORT_HEADFUL" = xno; then 19958 # Thus we are building headless only. 19959 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19960 headful_msg="headless only" 19961 fi 19962 19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19964 $as_echo "$headful_msg" >&6; } 19965 19966 19967 19968 19969 19970 # Control wether Hotspot runs Queens test after build. 19971 # Check whether --enable-hotspot-test-in-build was given. 19972 if test "${enable_hotspot_test_in_build+set}" = set; then : 19973 enableval=$enable_hotspot_test_in_build; 19974 else 19975 enable_hotspot_test_in_build=no 19976 fi 19977 19978 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19979 TEST_IN_BUILD=true 19980 else 19981 TEST_IN_BUILD=false 19982 fi 19983 19984 19985 ############################################################################### 19986 # 19987 # Choose cacerts source file 19988 # 19989 19990 # Check whether --with-cacerts-file was given. 19991 if test "${with_cacerts_file+set}" = set; then : 19992 withval=$with_cacerts_file; 19993 fi 19994 19995 if test "x$with_cacerts_file" != x; then 19996 CACERTS_FILE=$with_cacerts_file 19997 fi 19998 19999 20000 ############################################################################### 20001 # 20002 # Enable or disable unlimited crypto 20003 # 20004 # Check whether --enable-unlimited-crypto was given. 20005 if test "${enable_unlimited_crypto+set}" = set; then : 20006 enableval=$enable_unlimited_crypto; 20007 else 20008 enable_unlimited_crypto=no 20009 fi 20010 20011 if test "x$enable_unlimited_crypto" = "xyes"; then 20012 UNLIMITED_CRYPTO=true 20013 else 20014 UNLIMITED_CRYPTO=false 20015 fi 20016 20017 20018 ############################################################################### 20019 # 20020 # Enable or disable the elliptic curve crypto implementation 20021 # 20022 20023 20024 ############################################################################### 20025 # 20026 # --enable-rmiconnector-iiop 20027 # 20028 # Check whether --enable-rmiconnector-iiop was given. 20029 if test "${enable_rmiconnector_iiop+set}" = set; then : 20030 enableval=$enable_rmiconnector_iiop; 20031 fi 20032 20033 if test "x$enable_rmiconnector_iiop" = "xyes"; then 20034 RMICONNECTOR_IIOP=true 20035 else 20036 RMICONNECTOR_IIOP=false 20037 fi 20038 20039 20040 ############################################################################### 20041 # 20042 # Compress jars 20043 # 20044 COMPRESS_JARS=false 20045 20046 20047 20048 20049 # Source the version numbers 20050 . $AUTOCONF_DIR/version-numbers 20051 20052 # Get the settings from parameters 20053 20054 # Check whether --with-milestone was given. 20055 if test "${with_milestone+set}" = set; then : 20056 withval=$with_milestone; 20057 fi 20058 20059 if test "x$with_milestone" = xyes; then 20060 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20061 elif test "x$with_milestone" != x; then 20062 MILESTONE="$with_milestone" 20063 fi 20064 if test "x$MILESTONE" = x; then 20065 MILESTONE=internal 20066 fi 20067 20068 20069 # Check whether --with-update-version was given. 20070 if test "${with_update_version+set}" = set; then : 20071 withval=$with_update_version; 20072 fi 20073 20074 if test "x$with_update_version" = xyes; then 20075 as_fn_error $? "Update version must have a value" "$LINENO" 5 20076 elif test "x$with_update_version" != x; then 20077 JDK_UPDATE_VERSION="$with_update_version" 20078 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20079 # to a bug in expr (which reduces it to just X). To work around this, we 20080 # always add a 0 to one digit update versions. 20081 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20082 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20083 fi 20084 fi 20085 20086 20087 # Check whether --with-user-release-suffix was given. 20088 if test "${with_user_release_suffix+set}" = set; then : 20089 withval=$with_user_release_suffix; 20090 fi 20091 20092 if test "x$with_user_release_suffix" = xyes; then 20093 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20094 elif test "x$with_user_release_suffix" != x; then 20095 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20096 fi 20097 20098 20099 # Check whether --with-build-number was given. 20100 if test "${with_build_number+set}" = set; then : 20101 withval=$with_build_number; 20102 fi 20103 20104 if test "x$with_build_number" = xyes; then 20105 as_fn_error $? "Build number must have a value" "$LINENO" 5 20106 elif test "x$with_build_number" != x; then 20107 JDK_BUILD_NUMBER="$with_build_number" 20108 fi 20109 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20110 if test "x$JDK_BUILD_NUMBER" = x; then 20111 JDK_BUILD_NUMBER=b00 20112 if test "x$USER_RELEASE_SUFFIX" = x; then 20113 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20114 # Avoid [:alnum:] since it depends on the locale. 20115 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20116 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20117 fi 20118 fi 20119 20120 # Now set the JDK version, milestone, build number etc. 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 # Check whether --with-copyright-year was given. 20138 if test "${with_copyright_year+set}" = set; then : 20139 withval=$with_copyright_year; 20140 fi 20141 20142 if test "x$with_copyright_year" = xyes; then 20143 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20144 elif test "x$with_copyright_year" != x; then 20145 COPYRIGHT_YEAR="$with_copyright_year" 20146 else 20147 COPYRIGHT_YEAR=`date +'%Y'` 20148 fi 20149 20150 20151 if test "x$JDK_UPDATE_VERSION" != x; then 20152 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20153 else 20154 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20155 fi 20156 20157 20158 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20159 20160 20161 20162 ############################################################################### 20163 # 20164 # Setup BootJDK, used to bootstrap the build. 20165 # 20166 ############################################################################### 20167 20168 20169 BOOT_JDK_FOUND=no 20170 20171 # Check whether --with-boot-jdk was given. 20172 if test "${with_boot_jdk+set}" = set; then : 20173 withval=$with_boot_jdk; 20174 fi 20175 20176 20177 # We look for the Boot JDK through various means, going from more certain to 20178 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20179 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20180 # must check if this is indeed valid; otherwise we'll continue looking. 20181 20182 # Test: Is bootjdk explicitely set by command line arguments? 20183 20184 if test "x$BOOT_JDK_FOUND" = xno; then 20185 # Now execute the test 20186 20187 if test "x$with_boot_jdk" != x; then 20188 BOOT_JDK=$with_boot_jdk 20189 BOOT_JDK_FOUND=maybe 20190 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20191 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20192 fi 20193 20194 20195 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20196 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20197 # Do we have a bin/java? 20198 if test ! -x "$BOOT_JDK/bin/java"; then 20199 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20201 BOOT_JDK_FOUND=no 20202 else 20203 # Do we have a bin/javac? 20204 if test ! -x "$BOOT_JDK/bin/javac"; then 20205 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20206 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20207 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20208 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20209 BOOT_JDK_FOUND=no 20210 else 20211 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20212 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20213 20214 # Extra M4 quote needed to protect [] in grep expression. 20215 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20216 if test "x$FOUND_CORRECT_VERSION" = x; then 20217 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20218 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20219 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20220 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20221 BOOT_JDK_FOUND=no 20222 else 20223 # We're done! :-) 20224 BOOT_JDK_FOUND=yes 20225 20226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20227 20228 # Input might be given as Windows format, start by converting to 20229 # unix format. 20230 path="$BOOT_JDK" 20231 new_path=`$CYGPATH -u "$path"` 20232 20233 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20234 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20235 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20236 # "foo.exe" is OK but "foo" is an error. 20237 # 20238 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20239 # It is also a way to make sure we got the proper file name for the real test later on. 20240 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20241 if test "x$test_shortpath" = x; then 20242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20243 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20244 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20245 fi 20246 20247 # Call helper function which possibly converts this using DOS-style short mode. 20248 # If so, the updated path is stored in $new_path. 20249 20250 input_path="$new_path" 20251 # Check if we need to convert this using DOS-style short mode. If the path 20252 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20253 # take no chances and rewrite it. 20254 # Note: m4 eats our [], so we need to use [ and ] instead. 20255 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20256 if test "x$has_forbidden_chars" != x; then 20257 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20258 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20259 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20260 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20261 # Going to short mode and back again did indeed matter. Since short mode is 20262 # case insensitive, let's make it lowercase to improve readability. 20263 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20264 # Now convert it back to Unix-stile (cygpath) 20265 input_path=`$CYGPATH -u "$shortmode_path"` 20266 new_path="$input_path" 20267 fi 20268 fi 20269 20270 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20271 if test "x$test_cygdrive_prefix" = x; then 20272 # As a simple fix, exclude /usr/bin since it's not a real path. 20273 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20274 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20275 # a path prefixed by /cygdrive for fixpath to work. 20276 new_path="$CYGWIN_ROOT_PATH$input_path" 20277 fi 20278 fi 20279 20280 20281 if test "x$path" != "x$new_path"; then 20282 BOOT_JDK="$new_path" 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20284 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20285 fi 20286 20287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20288 20289 path="$BOOT_JDK" 20290 has_colon=`$ECHO $path | $GREP ^.:` 20291 new_path="$path" 20292 if test "x$has_colon" = x; then 20293 # Not in mixed or Windows style, start by that. 20294 new_path=`cmd //c echo $path` 20295 fi 20296 20297 20298 input_path="$new_path" 20299 # Check if we need to convert this using DOS-style short mode. If the path 20300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20301 # take no chances and rewrite it. 20302 # Note: m4 eats our [], so we need to use [ and ] instead. 20303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20304 if test "x$has_forbidden_chars" != x; then 20305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20306 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20307 fi 20308 20309 20310 windows_path="$new_path" 20311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20312 unix_path=`$CYGPATH -u "$windows_path"` 20313 new_path="$unix_path" 20314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20316 new_path="$unix_path" 20317 fi 20318 20319 if test "x$path" != "x$new_path"; then 20320 BOOT_JDK="$new_path" 20321 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20323 fi 20324 20325 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20326 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20327 20328 else 20329 # We're on a unix platform. Hooray! :) 20330 path="$BOOT_JDK" 20331 has_space=`$ECHO "$path" | $GREP " "` 20332 if test "x$has_space" != x; then 20333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20334 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20335 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20336 fi 20337 20338 # Use eval to expand a potential ~ 20339 eval path="$path" 20340 if test ! -f "$path" && test ! -d "$path"; then 20341 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20342 fi 20343 20344 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20345 fi 20346 20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20348 $as_echo_n "checking for Boot JDK... " >&6; } 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20350 $as_echo "$BOOT_JDK" >&6; } 20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20352 $as_echo_n "checking Boot JDK version... " >&6; } 20353 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20355 $as_echo "$BOOT_JDK_VERSION" >&6; } 20356 fi # end check jdk version 20357 fi # end check javac 20358 fi # end check java 20359 fi # end check boot jdk found 20360 fi 20361 20362 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20363 # Having specified an argument which is incorrect will produce an instant failure; 20364 # we should not go on looking 20365 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20366 fi 20367 20368 # Test: Is bootjdk available from builddeps? 20369 20370 if test "x$BOOT_JDK_FOUND" = xno; then 20371 # Now execute the test 20372 20373 20374 20375 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20376 # Source the builddeps file again, to make sure it uses the latest variables! 20377 . $builddepsfile 20378 # Look for a target and build machine specific resource! 20379 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20380 if test "x$resource" = x; then 20381 # Ok, lets instead look for a target specific resource 20382 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20383 fi 20384 if test "x$resource" = x; then 20385 # Ok, lets instead look for a build specific resource 20386 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20387 fi 20388 if test "x$resource" = x; then 20389 # Ok, lets instead look for a generic resource 20390 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20391 resource=${builddep_bootjdk} 20392 fi 20393 if test "x$resource" != x; then 20394 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20395 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20396 # If the resource in the builddeps.conf file is an existing directory, 20397 # for example /java/linux/cups 20398 if test -d ${resource}; then 20399 depdir=${resource} 20400 else 20401 20402 # bootjdk is for example mymodule 20403 # $resource is for example libs/general/libmymod_1_2_3.zip 20404 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20405 # $with_builddeps_dir is for example /localhome/builddeps 20406 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20407 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20408 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20409 filename=`basename $resource` 20410 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20411 filebase=${filename%%.*} 20412 extension=${filename#*.} 20413 installdir=$with_builddeps_dir/$filebase 20414 if test ! -f $installdir/$filename.unpacked; then 20415 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20416 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20417 if test ! -d $installdir; then 20418 mkdir -p $installdir 20419 fi 20420 if test ! -d $installdir; then 20421 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20422 fi 20423 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20424 touch $tmpfile 20425 if test ! -f $tmpfile; then 20426 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20427 fi 20428 20429 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20430 # $tmpfile is the local file name for the downloaded file. 20431 VALID_TOOL=no 20432 if test "x$BDEPS_FTP" = xwget; then 20433 VALID_TOOL=yes 20434 wget -O $tmpfile $with_builddeps_server/$resource 20435 fi 20436 if test "x$BDEPS_FTP" = xlftp; then 20437 VALID_TOOL=yes 20438 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20439 fi 20440 if test "x$BDEPS_FTP" = xftp; then 20441 VALID_TOOL=yes 20442 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20443 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20444 FTPUSERPWD=${FTPSERVER%%@*} 20445 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20446 FTPUSER=${userpwd%%:*} 20447 FTPPWD=${userpwd#*@} 20448 FTPSERVER=${FTPSERVER#*@} 20449 else 20450 FTPUSER=ftp 20451 FTPPWD=ftp 20452 fi 20453 # the "pass" command does not work on some 20454 # ftp clients (read ftp.exe) but if it works, 20455 # passive mode is better! 20456 ( \ 20457 echo "user $FTPUSER $FTPPWD" ; \ 20458 echo "pass" ; \ 20459 echo "bin" ; \ 20460 echo "get $FTPPATH $tmpfile" ; \ 20461 ) | ftp -in $FTPSERVER 20462 fi 20463 if test "x$VALID_TOOL" != xyes; then 20464 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20465 fi 20466 20467 mv $tmpfile $installdir/$filename 20468 if test ! -s $installdir/$filename; then 20469 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20470 fi 20471 case "$extension" in 20472 zip) echo "Unzipping $installdir/$filename..." 20473 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20474 ;; 20475 tar.gz) echo "Untaring $installdir/$filename..." 20476 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20477 ;; 20478 tgz) echo "Untaring $installdir/$filename..." 20479 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20480 ;; 20481 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20482 ;; 20483 esac 20484 fi 20485 if test -f $installdir/$filename.unpacked; then 20486 depdir=$installdir 20487 fi 20488 20489 fi 20490 # Source the builddeps file again, because in the previous command, the depdir 20491 # was updated to point at the current build dependency install directory. 20492 . $builddepsfile 20493 # Now extract variables from the builddeps.conf files. 20494 theroot=${builddep_bootjdk_ROOT} 20495 thecflags=${builddep_bootjdk_CFLAGS} 20496 thelibs=${builddep_bootjdk_LIBS} 20497 if test "x$depdir" = x; then 20498 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20499 fi 20500 BOOT_JDK=$depdir 20501 if test "x$theroot" != x; then 20502 BOOT_JDK="$theroot" 20503 fi 20504 if test "x$thecflags" != x; then 20505 BOOT_JDK_CFLAGS="$thecflags" 20506 fi 20507 if test "x$thelibs" != x; then 20508 BOOT_JDK_LIBS="$thelibs" 20509 fi 20510 BOOT_JDK_FOUND=maybe 20511 else BOOT_JDK_FOUND=no 20512 20513 fi 20514 else BOOT_JDK_FOUND=no 20515 20516 fi 20517 20518 20519 20520 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20521 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20522 # Do we have a bin/java? 20523 if test ! -x "$BOOT_JDK/bin/java"; then 20524 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20525 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20526 BOOT_JDK_FOUND=no 20527 else 20528 # Do we have a bin/javac? 20529 if test ! -x "$BOOT_JDK/bin/javac"; then 20530 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20531 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20532 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20533 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20534 BOOT_JDK_FOUND=no 20535 else 20536 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20537 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20538 20539 # Extra M4 quote needed to protect [] in grep expression. 20540 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20541 if test "x$FOUND_CORRECT_VERSION" = x; then 20542 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20543 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20544 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20545 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20546 BOOT_JDK_FOUND=no 20547 else 20548 # We're done! :-) 20549 BOOT_JDK_FOUND=yes 20550 20551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20552 20553 # Input might be given as Windows format, start by converting to 20554 # unix format. 20555 path="$BOOT_JDK" 20556 new_path=`$CYGPATH -u "$path"` 20557 20558 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20559 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20560 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20561 # "foo.exe" is OK but "foo" is an error. 20562 # 20563 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20564 # It is also a way to make sure we got the proper file name for the real test later on. 20565 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20566 if test "x$test_shortpath" = x; then 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20568 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20569 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20570 fi 20571 20572 # Call helper function which possibly converts this using DOS-style short mode. 20573 # If so, the updated path is stored in $new_path. 20574 20575 input_path="$new_path" 20576 # Check if we need to convert this using DOS-style short mode. If the path 20577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20578 # take no chances and rewrite it. 20579 # Note: m4 eats our [], so we need to use [ and ] instead. 20580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20581 if test "x$has_forbidden_chars" != x; then 20582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20583 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20584 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20585 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20586 # Going to short mode and back again did indeed matter. Since short mode is 20587 # case insensitive, let's make it lowercase to improve readability. 20588 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20589 # Now convert it back to Unix-stile (cygpath) 20590 input_path=`$CYGPATH -u "$shortmode_path"` 20591 new_path="$input_path" 20592 fi 20593 fi 20594 20595 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20596 if test "x$test_cygdrive_prefix" = x; then 20597 # As a simple fix, exclude /usr/bin since it's not a real path. 20598 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20599 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20600 # a path prefixed by /cygdrive for fixpath to work. 20601 new_path="$CYGWIN_ROOT_PATH$input_path" 20602 fi 20603 fi 20604 20605 20606 if test "x$path" != "x$new_path"; then 20607 BOOT_JDK="$new_path" 20608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20609 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20610 fi 20611 20612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20613 20614 path="$BOOT_JDK" 20615 has_colon=`$ECHO $path | $GREP ^.:` 20616 new_path="$path" 20617 if test "x$has_colon" = x; then 20618 # Not in mixed or Windows style, start by that. 20619 new_path=`cmd //c echo $path` 20620 fi 20621 20622 20623 input_path="$new_path" 20624 # Check if we need to convert this using DOS-style short mode. If the path 20625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20626 # take no chances and rewrite it. 20627 # Note: m4 eats our [], so we need to use [ and ] instead. 20628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20629 if test "x$has_forbidden_chars" != x; then 20630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20631 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20632 fi 20633 20634 20635 windows_path="$new_path" 20636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20637 unix_path=`$CYGPATH -u "$windows_path"` 20638 new_path="$unix_path" 20639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20640 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20641 new_path="$unix_path" 20642 fi 20643 20644 if test "x$path" != "x$new_path"; then 20645 BOOT_JDK="$new_path" 20646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20647 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20648 fi 20649 20650 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20651 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20652 20653 else 20654 # We're on a unix platform. Hooray! :) 20655 path="$BOOT_JDK" 20656 has_space=`$ECHO "$path" | $GREP " "` 20657 if test "x$has_space" != x; then 20658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20659 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20660 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20661 fi 20662 20663 # Use eval to expand a potential ~ 20664 eval path="$path" 20665 if test ! -f "$path" && test ! -d "$path"; then 20666 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20667 fi 20668 20669 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20670 fi 20671 20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20673 $as_echo_n "checking for Boot JDK... " >&6; } 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20675 $as_echo "$BOOT_JDK" >&6; } 20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20677 $as_echo_n "checking Boot JDK version... " >&6; } 20678 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20680 $as_echo "$BOOT_JDK_VERSION" >&6; } 20681 fi # end check jdk version 20682 fi # end check javac 20683 fi # end check java 20684 fi # end check boot jdk found 20685 fi 20686 20687 20688 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20689 20690 if test "x$BOOT_JDK_FOUND" = xno; then 20691 # Now execute the test 20692 20693 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20694 # First check at user selected default 20695 20696 if test "x$BOOT_JDK_FOUND" = xno; then 20697 # Now execute the test 20698 20699 if test -x /usr/libexec/java_home; then 20700 BOOT_JDK=`/usr/libexec/java_home ` 20701 BOOT_JDK_FOUND=maybe 20702 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20703 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20704 fi 20705 20706 20707 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20708 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20709 # Do we have a bin/java? 20710 if test ! -x "$BOOT_JDK/bin/java"; then 20711 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20712 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20713 BOOT_JDK_FOUND=no 20714 else 20715 # Do we have a bin/javac? 20716 if test ! -x "$BOOT_JDK/bin/javac"; then 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20718 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20719 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20720 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20721 BOOT_JDK_FOUND=no 20722 else 20723 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20724 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20725 20726 # Extra M4 quote needed to protect [] in grep expression. 20727 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20728 if test "x$FOUND_CORRECT_VERSION" = x; then 20729 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20731 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20732 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20733 BOOT_JDK_FOUND=no 20734 else 20735 # We're done! :-) 20736 BOOT_JDK_FOUND=yes 20737 20738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20739 20740 # Input might be given as Windows format, start by converting to 20741 # unix format. 20742 path="$BOOT_JDK" 20743 new_path=`$CYGPATH -u "$path"` 20744 20745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20748 # "foo.exe" is OK but "foo" is an error. 20749 # 20750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20751 # It is also a way to make sure we got the proper file name for the real test later on. 20752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20753 if test "x$test_shortpath" = x; then 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20755 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20756 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20757 fi 20758 20759 # Call helper function which possibly converts this using DOS-style short mode. 20760 # If so, the updated path is stored in $new_path. 20761 20762 input_path="$new_path" 20763 # Check if we need to convert this using DOS-style short mode. If the path 20764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20765 # take no chances and rewrite it. 20766 # Note: m4 eats our [], so we need to use [ and ] instead. 20767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20768 if test "x$has_forbidden_chars" != x; then 20769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20773 # Going to short mode and back again did indeed matter. Since short mode is 20774 # case insensitive, let's make it lowercase to improve readability. 20775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20776 # Now convert it back to Unix-stile (cygpath) 20777 input_path=`$CYGPATH -u "$shortmode_path"` 20778 new_path="$input_path" 20779 fi 20780 fi 20781 20782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20783 if test "x$test_cygdrive_prefix" = x; then 20784 # As a simple fix, exclude /usr/bin since it's not a real path. 20785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20787 # a path prefixed by /cygdrive for fixpath to work. 20788 new_path="$CYGWIN_ROOT_PATH$input_path" 20789 fi 20790 fi 20791 20792 20793 if test "x$path" != "x$new_path"; then 20794 BOOT_JDK="$new_path" 20795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20796 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20797 fi 20798 20799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20800 20801 path="$BOOT_JDK" 20802 has_colon=`$ECHO $path | $GREP ^.:` 20803 new_path="$path" 20804 if test "x$has_colon" = x; then 20805 # Not in mixed or Windows style, start by that. 20806 new_path=`cmd //c echo $path` 20807 fi 20808 20809 20810 input_path="$new_path" 20811 # Check if we need to convert this using DOS-style short mode. If the path 20812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20813 # take no chances and rewrite it. 20814 # Note: m4 eats our [], so we need to use [ and ] instead. 20815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20816 if test "x$has_forbidden_chars" != x; then 20817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20819 fi 20820 20821 20822 windows_path="$new_path" 20823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20824 unix_path=`$CYGPATH -u "$windows_path"` 20825 new_path="$unix_path" 20826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20828 new_path="$unix_path" 20829 fi 20830 20831 if test "x$path" != "x$new_path"; then 20832 BOOT_JDK="$new_path" 20833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20834 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20835 fi 20836 20837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20839 20840 else 20841 # We're on a unix platform. Hooray! :) 20842 path="$BOOT_JDK" 20843 has_space=`$ECHO "$path" | $GREP " "` 20844 if test "x$has_space" != x; then 20845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20846 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20848 fi 20849 20850 # Use eval to expand a potential ~ 20851 eval path="$path" 20852 if test ! -f "$path" && test ! -d "$path"; then 20853 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20854 fi 20855 20856 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20857 fi 20858 20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20860 $as_echo_n "checking for Boot JDK... " >&6; } 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20862 $as_echo "$BOOT_JDK" >&6; } 20863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20864 $as_echo_n "checking Boot JDK version... " >&6; } 20865 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20867 $as_echo "$BOOT_JDK_VERSION" >&6; } 20868 fi # end check jdk version 20869 fi # end check javac 20870 fi # end check java 20871 fi # end check boot jdk found 20872 fi 20873 20874 # If that did not work out (e.g. too old), try explicit versions instead 20875 20876 if test "x$BOOT_JDK_FOUND" = xno; then 20877 # Now execute the test 20878 20879 if test -x /usr/libexec/java_home; then 20880 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20881 BOOT_JDK_FOUND=maybe 20882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20883 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20884 fi 20885 20886 20887 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20888 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20889 # Do we have a bin/java? 20890 if test ! -x "$BOOT_JDK/bin/java"; then 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20892 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20893 BOOT_JDK_FOUND=no 20894 else 20895 # Do we have a bin/javac? 20896 if test ! -x "$BOOT_JDK/bin/javac"; then 20897 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20898 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20899 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20900 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20901 BOOT_JDK_FOUND=no 20902 else 20903 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20904 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20905 20906 # Extra M4 quote needed to protect [] in grep expression. 20907 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20908 if test "x$FOUND_CORRECT_VERSION" = x; then 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20910 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20911 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20912 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20913 BOOT_JDK_FOUND=no 20914 else 20915 # We're done! :-) 20916 BOOT_JDK_FOUND=yes 20917 20918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20919 20920 # Input might be given as Windows format, start by converting to 20921 # unix format. 20922 path="$BOOT_JDK" 20923 new_path=`$CYGPATH -u "$path"` 20924 20925 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20926 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20927 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20928 # "foo.exe" is OK but "foo" is an error. 20929 # 20930 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20931 # It is also a way to make sure we got the proper file name for the real test later on. 20932 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20933 if test "x$test_shortpath" = x; then 20934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20935 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20936 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20937 fi 20938 20939 # Call helper function which possibly converts this using DOS-style short mode. 20940 # If so, the updated path is stored in $new_path. 20941 20942 input_path="$new_path" 20943 # Check if we need to convert this using DOS-style short mode. If the path 20944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20945 # take no chances and rewrite it. 20946 # Note: m4 eats our [], so we need to use [ and ] instead. 20947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20948 if test "x$has_forbidden_chars" != x; then 20949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20950 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20951 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20952 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20953 # Going to short mode and back again did indeed matter. Since short mode is 20954 # case insensitive, let's make it lowercase to improve readability. 20955 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20956 # Now convert it back to Unix-stile (cygpath) 20957 input_path=`$CYGPATH -u "$shortmode_path"` 20958 new_path="$input_path" 20959 fi 20960 fi 20961 20962 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20963 if test "x$test_cygdrive_prefix" = x; then 20964 # As a simple fix, exclude /usr/bin since it's not a real path. 20965 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20966 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20967 # a path prefixed by /cygdrive for fixpath to work. 20968 new_path="$CYGWIN_ROOT_PATH$input_path" 20969 fi 20970 fi 20971 20972 20973 if test "x$path" != "x$new_path"; then 20974 BOOT_JDK="$new_path" 20975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20976 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20977 fi 20978 20979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20980 20981 path="$BOOT_JDK" 20982 has_colon=`$ECHO $path | $GREP ^.:` 20983 new_path="$path" 20984 if test "x$has_colon" = x; then 20985 # Not in mixed or Windows style, start by that. 20986 new_path=`cmd //c echo $path` 20987 fi 20988 20989 20990 input_path="$new_path" 20991 # Check if we need to convert this using DOS-style short mode. If the path 20992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20993 # take no chances and rewrite it. 20994 # Note: m4 eats our [], so we need to use [ and ] instead. 20995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20996 if test "x$has_forbidden_chars" != x; then 20997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20998 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20999 fi 21000 21001 21002 windows_path="$new_path" 21003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21004 unix_path=`$CYGPATH -u "$windows_path"` 21005 new_path="$unix_path" 21006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21008 new_path="$unix_path" 21009 fi 21010 21011 if test "x$path" != "x$new_path"; then 21012 BOOT_JDK="$new_path" 21013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21014 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21015 fi 21016 21017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21019 21020 else 21021 # We're on a unix platform. Hooray! :) 21022 path="$BOOT_JDK" 21023 has_space=`$ECHO "$path" | $GREP " "` 21024 if test "x$has_space" != x; then 21025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21026 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21027 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21028 fi 21029 21030 # Use eval to expand a potential ~ 21031 eval path="$path" 21032 if test ! -f "$path" && test ! -d "$path"; then 21033 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21034 fi 21035 21036 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21037 fi 21038 21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21040 $as_echo_n "checking for Boot JDK... " >&6; } 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21042 $as_echo "$BOOT_JDK" >&6; } 21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21044 $as_echo_n "checking Boot JDK version... " >&6; } 21045 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21047 $as_echo "$BOOT_JDK_VERSION" >&6; } 21048 fi # end check jdk version 21049 fi # end check javac 21050 fi # end check java 21051 fi # end check boot jdk found 21052 fi 21053 21054 21055 if test "x$BOOT_JDK_FOUND" = xno; then 21056 # Now execute the test 21057 21058 if test -x /usr/libexec/java_home; then 21059 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21060 BOOT_JDK_FOUND=maybe 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21062 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21063 fi 21064 21065 21066 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21067 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21068 # Do we have a bin/java? 21069 if test ! -x "$BOOT_JDK/bin/java"; then 21070 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21072 BOOT_JDK_FOUND=no 21073 else 21074 # Do we have a bin/javac? 21075 if test ! -x "$BOOT_JDK/bin/javac"; then 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21077 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21079 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21080 BOOT_JDK_FOUND=no 21081 else 21082 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21083 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21084 21085 # Extra M4 quote needed to protect [] in grep expression. 21086 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21087 if test "x$FOUND_CORRECT_VERSION" = x; then 21088 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21089 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21090 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21091 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21092 BOOT_JDK_FOUND=no 21093 else 21094 # We're done! :-) 21095 BOOT_JDK_FOUND=yes 21096 21097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21098 21099 # Input might be given as Windows format, start by converting to 21100 # unix format. 21101 path="$BOOT_JDK" 21102 new_path=`$CYGPATH -u "$path"` 21103 21104 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21105 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21106 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21107 # "foo.exe" is OK but "foo" is an error. 21108 # 21109 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21110 # It is also a way to make sure we got the proper file name for the real test later on. 21111 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21112 if test "x$test_shortpath" = x; then 21113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21114 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21115 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21116 fi 21117 21118 # Call helper function which possibly converts this using DOS-style short mode. 21119 # If so, the updated path is stored in $new_path. 21120 21121 input_path="$new_path" 21122 # Check if we need to convert this using DOS-style short mode. If the path 21123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21124 # take no chances and rewrite it. 21125 # Note: m4 eats our [], so we need to use [ and ] instead. 21126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21127 if test "x$has_forbidden_chars" != x; then 21128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21129 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21130 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21131 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21132 # Going to short mode and back again did indeed matter. Since short mode is 21133 # case insensitive, let's make it lowercase to improve readability. 21134 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21135 # Now convert it back to Unix-stile (cygpath) 21136 input_path=`$CYGPATH -u "$shortmode_path"` 21137 new_path="$input_path" 21138 fi 21139 fi 21140 21141 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21142 if test "x$test_cygdrive_prefix" = x; then 21143 # As a simple fix, exclude /usr/bin since it's not a real path. 21144 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21145 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21146 # a path prefixed by /cygdrive for fixpath to work. 21147 new_path="$CYGWIN_ROOT_PATH$input_path" 21148 fi 21149 fi 21150 21151 21152 if test "x$path" != "x$new_path"; then 21153 BOOT_JDK="$new_path" 21154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21155 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21156 fi 21157 21158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21159 21160 path="$BOOT_JDK" 21161 has_colon=`$ECHO $path | $GREP ^.:` 21162 new_path="$path" 21163 if test "x$has_colon" = x; then 21164 # Not in mixed or Windows style, start by that. 21165 new_path=`cmd //c echo $path` 21166 fi 21167 21168 21169 input_path="$new_path" 21170 # Check if we need to convert this using DOS-style short mode. If the path 21171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21172 # take no chances and rewrite it. 21173 # Note: m4 eats our [], so we need to use [ and ] instead. 21174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21175 if test "x$has_forbidden_chars" != x; then 21176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21178 fi 21179 21180 21181 windows_path="$new_path" 21182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21183 unix_path=`$CYGPATH -u "$windows_path"` 21184 new_path="$unix_path" 21185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21187 new_path="$unix_path" 21188 fi 21189 21190 if test "x$path" != "x$new_path"; then 21191 BOOT_JDK="$new_path" 21192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21193 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21194 fi 21195 21196 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21197 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21198 21199 else 21200 # We're on a unix platform. Hooray! :) 21201 path="$BOOT_JDK" 21202 has_space=`$ECHO "$path" | $GREP " "` 21203 if test "x$has_space" != x; then 21204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21205 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21206 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21207 fi 21208 21209 # Use eval to expand a potential ~ 21210 eval path="$path" 21211 if test ! -f "$path" && test ! -d "$path"; then 21212 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21213 fi 21214 21215 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21216 fi 21217 21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21219 $as_echo_n "checking for Boot JDK... " >&6; } 21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21221 $as_echo "$BOOT_JDK" >&6; } 21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21223 $as_echo_n "checking Boot JDK version... " >&6; } 21224 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21226 $as_echo "$BOOT_JDK_VERSION" >&6; } 21227 fi # end check jdk version 21228 fi # end check javac 21229 fi # end check java 21230 fi # end check boot jdk found 21231 fi 21232 21233 21234 if test "x$BOOT_JDK_FOUND" = xno; then 21235 # Now execute the test 21236 21237 if test -x /usr/libexec/java_home; then 21238 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21239 BOOT_JDK_FOUND=maybe 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21241 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21242 fi 21243 21244 21245 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21246 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21247 # Do we have a bin/java? 21248 if test ! -x "$BOOT_JDK/bin/java"; then 21249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21251 BOOT_JDK_FOUND=no 21252 else 21253 # Do we have a bin/javac? 21254 if test ! -x "$BOOT_JDK/bin/javac"; then 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21257 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21258 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21259 BOOT_JDK_FOUND=no 21260 else 21261 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21262 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21263 21264 # Extra M4 quote needed to protect [] in grep expression. 21265 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21266 if test "x$FOUND_CORRECT_VERSION" = x; then 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21270 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21271 BOOT_JDK_FOUND=no 21272 else 21273 # We're done! :-) 21274 BOOT_JDK_FOUND=yes 21275 21276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21277 21278 # Input might be given as Windows format, start by converting to 21279 # unix format. 21280 path="$BOOT_JDK" 21281 new_path=`$CYGPATH -u "$path"` 21282 21283 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21284 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21285 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21286 # "foo.exe" is OK but "foo" is an error. 21287 # 21288 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21289 # It is also a way to make sure we got the proper file name for the real test later on. 21290 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21291 if test "x$test_shortpath" = x; then 21292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21293 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21294 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21295 fi 21296 21297 # Call helper function which possibly converts this using DOS-style short mode. 21298 # If so, the updated path is stored in $new_path. 21299 21300 input_path="$new_path" 21301 # Check if we need to convert this using DOS-style short mode. If the path 21302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21303 # take no chances and rewrite it. 21304 # Note: m4 eats our [], so we need to use [ and ] instead. 21305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21306 if test "x$has_forbidden_chars" != x; then 21307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21308 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21309 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21310 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21311 # Going to short mode and back again did indeed matter. Since short mode is 21312 # case insensitive, let's make it lowercase to improve readability. 21313 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21314 # Now convert it back to Unix-stile (cygpath) 21315 input_path=`$CYGPATH -u "$shortmode_path"` 21316 new_path="$input_path" 21317 fi 21318 fi 21319 21320 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21321 if test "x$test_cygdrive_prefix" = x; then 21322 # As a simple fix, exclude /usr/bin since it's not a real path. 21323 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21324 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21325 # a path prefixed by /cygdrive for fixpath to work. 21326 new_path="$CYGWIN_ROOT_PATH$input_path" 21327 fi 21328 fi 21329 21330 21331 if test "x$path" != "x$new_path"; then 21332 BOOT_JDK="$new_path" 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21334 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21335 fi 21336 21337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21338 21339 path="$BOOT_JDK" 21340 has_colon=`$ECHO $path | $GREP ^.:` 21341 new_path="$path" 21342 if test "x$has_colon" = x; then 21343 # Not in mixed or Windows style, start by that. 21344 new_path=`cmd //c echo $path` 21345 fi 21346 21347 21348 input_path="$new_path" 21349 # Check if we need to convert this using DOS-style short mode. If the path 21350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21351 # take no chances and rewrite it. 21352 # Note: m4 eats our [], so we need to use [ and ] instead. 21353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21354 if test "x$has_forbidden_chars" != x; then 21355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21356 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21357 fi 21358 21359 21360 windows_path="$new_path" 21361 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21362 unix_path=`$CYGPATH -u "$windows_path"` 21363 new_path="$unix_path" 21364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21365 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21366 new_path="$unix_path" 21367 fi 21368 21369 if test "x$path" != "x$new_path"; then 21370 BOOT_JDK="$new_path" 21371 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21372 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21373 fi 21374 21375 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21376 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21377 21378 else 21379 # We're on a unix platform. Hooray! :) 21380 path="$BOOT_JDK" 21381 has_space=`$ECHO "$path" | $GREP " "` 21382 if test "x$has_space" != x; then 21383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21384 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21385 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21386 fi 21387 21388 # Use eval to expand a potential ~ 21389 eval path="$path" 21390 if test ! -f "$path" && test ! -d "$path"; then 21391 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21392 fi 21393 21394 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21395 fi 21396 21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21398 $as_echo_n "checking for Boot JDK... " >&6; } 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21400 $as_echo "$BOOT_JDK" >&6; } 21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21402 $as_echo_n "checking Boot JDK version... " >&6; } 21403 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21405 $as_echo "$BOOT_JDK_VERSION" >&6; } 21406 fi # end check jdk version 21407 fi # end check javac 21408 fi # end check java 21409 fi # end check boot jdk found 21410 fi 21411 21412 fi 21413 21414 21415 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21416 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21417 # Do we have a bin/java? 21418 if test ! -x "$BOOT_JDK/bin/java"; then 21419 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21421 BOOT_JDK_FOUND=no 21422 else 21423 # Do we have a bin/javac? 21424 if test ! -x "$BOOT_JDK/bin/javac"; then 21425 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21427 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21428 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21429 BOOT_JDK_FOUND=no 21430 else 21431 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21432 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21433 21434 # Extra M4 quote needed to protect [] in grep expression. 21435 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21436 if test "x$FOUND_CORRECT_VERSION" = x; then 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21439 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21440 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21441 BOOT_JDK_FOUND=no 21442 else 21443 # We're done! :-) 21444 BOOT_JDK_FOUND=yes 21445 21446 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21447 21448 # Input might be given as Windows format, start by converting to 21449 # unix format. 21450 path="$BOOT_JDK" 21451 new_path=`$CYGPATH -u "$path"` 21452 21453 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21454 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21455 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21456 # "foo.exe" is OK but "foo" is an error. 21457 # 21458 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21459 # It is also a way to make sure we got the proper file name for the real test later on. 21460 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21461 if test "x$test_shortpath" = x; then 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21463 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21464 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21465 fi 21466 21467 # Call helper function which possibly converts this using DOS-style short mode. 21468 # If so, the updated path is stored in $new_path. 21469 21470 input_path="$new_path" 21471 # Check if we need to convert this using DOS-style short mode. If the path 21472 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21473 # take no chances and rewrite it. 21474 # Note: m4 eats our [], so we need to use [ and ] instead. 21475 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21476 if test "x$has_forbidden_chars" != x; then 21477 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21478 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21479 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21480 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21481 # Going to short mode and back again did indeed matter. Since short mode is 21482 # case insensitive, let's make it lowercase to improve readability. 21483 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21484 # Now convert it back to Unix-stile (cygpath) 21485 input_path=`$CYGPATH -u "$shortmode_path"` 21486 new_path="$input_path" 21487 fi 21488 fi 21489 21490 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21491 if test "x$test_cygdrive_prefix" = x; then 21492 # As a simple fix, exclude /usr/bin since it's not a real path. 21493 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21494 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21495 # a path prefixed by /cygdrive for fixpath to work. 21496 new_path="$CYGWIN_ROOT_PATH$input_path" 21497 fi 21498 fi 21499 21500 21501 if test "x$path" != "x$new_path"; then 21502 BOOT_JDK="$new_path" 21503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21504 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21505 fi 21506 21507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21508 21509 path="$BOOT_JDK" 21510 has_colon=`$ECHO $path | $GREP ^.:` 21511 new_path="$path" 21512 if test "x$has_colon" = x; then 21513 # Not in mixed or Windows style, start by that. 21514 new_path=`cmd //c echo $path` 21515 fi 21516 21517 21518 input_path="$new_path" 21519 # Check if we need to convert this using DOS-style short mode. If the path 21520 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21521 # take no chances and rewrite it. 21522 # Note: m4 eats our [], so we need to use [ and ] instead. 21523 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21524 if test "x$has_forbidden_chars" != x; then 21525 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21526 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21527 fi 21528 21529 21530 windows_path="$new_path" 21531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21532 unix_path=`$CYGPATH -u "$windows_path"` 21533 new_path="$unix_path" 21534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21536 new_path="$unix_path" 21537 fi 21538 21539 if test "x$path" != "x$new_path"; then 21540 BOOT_JDK="$new_path" 21541 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21542 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21543 fi 21544 21545 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21546 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21547 21548 else 21549 # We're on a unix platform. Hooray! :) 21550 path="$BOOT_JDK" 21551 has_space=`$ECHO "$path" | $GREP " "` 21552 if test "x$has_space" != x; then 21553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21554 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21555 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21556 fi 21557 21558 # Use eval to expand a potential ~ 21559 eval path="$path" 21560 if test ! -f "$path" && test ! -d "$path"; then 21561 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21562 fi 21563 21564 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21565 fi 21566 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21568 $as_echo_n "checking for Boot JDK... " >&6; } 21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21570 $as_echo "$BOOT_JDK" >&6; } 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21572 $as_echo_n "checking Boot JDK version... " >&6; } 21573 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21575 $as_echo "$BOOT_JDK_VERSION" >&6; } 21576 fi # end check jdk version 21577 fi # end check javac 21578 fi # end check java 21579 fi # end check boot jdk found 21580 fi 21581 21582 21583 # Test: Is $JAVA_HOME set? 21584 21585 if test "x$BOOT_JDK_FOUND" = xno; then 21586 # Now execute the test 21587 21588 if test "x$JAVA_HOME" != x; then 21589 JAVA_HOME_PROCESSED="$JAVA_HOME" 21590 21591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21592 21593 # Input might be given as Windows format, start by converting to 21594 # unix format. 21595 path="$JAVA_HOME_PROCESSED" 21596 new_path=`$CYGPATH -u "$path"` 21597 21598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21601 # "foo.exe" is OK but "foo" is an error. 21602 # 21603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21604 # It is also a way to make sure we got the proper file name for the real test later on. 21605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21606 if test "x$test_shortpath" = x; then 21607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21608 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21609 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21610 fi 21611 21612 # Call helper function which possibly converts this using DOS-style short mode. 21613 # If so, the updated path is stored in $new_path. 21614 21615 input_path="$new_path" 21616 # Check if we need to convert this using DOS-style short mode. If the path 21617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21618 # take no chances and rewrite it. 21619 # Note: m4 eats our [], so we need to use [ and ] instead. 21620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21621 if test "x$has_forbidden_chars" != x; then 21622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21626 # Going to short mode and back again did indeed matter. Since short mode is 21627 # case insensitive, let's make it lowercase to improve readability. 21628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21629 # Now convert it back to Unix-stile (cygpath) 21630 input_path=`$CYGPATH -u "$shortmode_path"` 21631 new_path="$input_path" 21632 fi 21633 fi 21634 21635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21636 if test "x$test_cygdrive_prefix" = x; then 21637 # As a simple fix, exclude /usr/bin since it's not a real path. 21638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21640 # a path prefixed by /cygdrive for fixpath to work. 21641 new_path="$CYGWIN_ROOT_PATH$input_path" 21642 fi 21643 fi 21644 21645 21646 if test "x$path" != "x$new_path"; then 21647 JAVA_HOME_PROCESSED="$new_path" 21648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21649 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21650 fi 21651 21652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21653 21654 path="$JAVA_HOME_PROCESSED" 21655 has_colon=`$ECHO $path | $GREP ^.:` 21656 new_path="$path" 21657 if test "x$has_colon" = x; then 21658 # Not in mixed or Windows style, start by that. 21659 new_path=`cmd //c echo $path` 21660 fi 21661 21662 21663 input_path="$new_path" 21664 # Check if we need to convert this using DOS-style short mode. If the path 21665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21666 # take no chances and rewrite it. 21667 # Note: m4 eats our [], so we need to use [ and ] instead. 21668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21669 if test "x$has_forbidden_chars" != x; then 21670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21672 fi 21673 21674 21675 windows_path="$new_path" 21676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21677 unix_path=`$CYGPATH -u "$windows_path"` 21678 new_path="$unix_path" 21679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21681 new_path="$unix_path" 21682 fi 21683 21684 if test "x$path" != "x$new_path"; then 21685 JAVA_HOME_PROCESSED="$new_path" 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21687 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21688 fi 21689 21690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21692 21693 else 21694 # We're on a unix platform. Hooray! :) 21695 path="$JAVA_HOME_PROCESSED" 21696 has_space=`$ECHO "$path" | $GREP " "` 21697 if test "x$has_space" != x; then 21698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21699 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21701 fi 21702 21703 # Use eval to expand a potential ~ 21704 eval path="$path" 21705 if test ! -f "$path" && test ! -d "$path"; then 21706 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21707 fi 21708 21709 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21710 fi 21711 21712 if test ! -d "$JAVA_HOME_PROCESSED"; then 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21714 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21715 else 21716 # Aha, the user has set a JAVA_HOME 21717 # let us use that as the Boot JDK. 21718 BOOT_JDK="$JAVA_HOME_PROCESSED" 21719 BOOT_JDK_FOUND=maybe 21720 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21721 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21722 fi 21723 fi 21724 21725 21726 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21727 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21728 # Do we have a bin/java? 21729 if test ! -x "$BOOT_JDK/bin/java"; then 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21731 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21732 BOOT_JDK_FOUND=no 21733 else 21734 # Do we have a bin/javac? 21735 if test ! -x "$BOOT_JDK/bin/javac"; then 21736 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21738 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21739 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21740 BOOT_JDK_FOUND=no 21741 else 21742 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21743 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21744 21745 # Extra M4 quote needed to protect [] in grep expression. 21746 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21747 if test "x$FOUND_CORRECT_VERSION" = x; then 21748 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21751 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21752 BOOT_JDK_FOUND=no 21753 else 21754 # We're done! :-) 21755 BOOT_JDK_FOUND=yes 21756 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 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21879 $as_echo_n "checking for Boot JDK... " >&6; } 21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21881 $as_echo "$BOOT_JDK" >&6; } 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21883 $as_echo_n "checking Boot JDK version... " >&6; } 21884 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21886 $as_echo "$BOOT_JDK_VERSION" >&6; } 21887 fi # end check jdk version 21888 fi # end check javac 21889 fi # end check java 21890 fi # end check boot jdk found 21891 fi 21892 21893 21894 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21895 21896 if test "x$BOOT_JDK_FOUND" = xno; then 21897 # Now execute the test 21898 21899 # Extract the first word of "javac", so it can be a program name with args. 21900 set dummy javac; ac_word=$2 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21902 $as_echo_n "checking for $ac_word... " >&6; } 21903 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21904 $as_echo_n "(cached) " >&6 21905 else 21906 case $JAVAC_CHECK in 21907 [\\/]* | ?:[\\/]*) 21908 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21909 ;; 21910 *) 21911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21912 for as_dir in $PATH 21913 do 21914 IFS=$as_save_IFS 21915 test -z "$as_dir" && as_dir=. 21916 for ac_exec_ext in '' $ac_executable_extensions; do 21917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21918 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21920 break 2 21921 fi 21922 done 21923 done 21924 IFS=$as_save_IFS 21925 21926 ;; 21927 esac 21928 fi 21929 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21930 if test -n "$JAVAC_CHECK"; then 21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21932 $as_echo "$JAVAC_CHECK" >&6; } 21933 else 21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21935 $as_echo "no" >&6; } 21936 fi 21937 21938 21939 # Extract the first word of "java", so it can be a program name with args. 21940 set dummy java; ac_word=$2 21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21942 $as_echo_n "checking for $ac_word... " >&6; } 21943 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21944 $as_echo_n "(cached) " >&6 21945 else 21946 case $JAVA_CHECK in 21947 [\\/]* | ?:[\\/]*) 21948 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21949 ;; 21950 *) 21951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21952 for as_dir in $PATH 21953 do 21954 IFS=$as_save_IFS 21955 test -z "$as_dir" && as_dir=. 21956 for ac_exec_ext in '' $ac_executable_extensions; do 21957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21958 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21960 break 2 21961 fi 21962 done 21963 done 21964 IFS=$as_save_IFS 21965 21966 ;; 21967 esac 21968 fi 21969 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21970 if test -n "$JAVA_CHECK"; then 21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21972 $as_echo "$JAVA_CHECK" >&6; } 21973 else 21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21975 $as_echo "no" >&6; } 21976 fi 21977 21978 21979 BINARY="$JAVAC_CHECK" 21980 if test "x$JAVAC_CHECK" = x; then 21981 BINARY="$JAVA_CHECK" 21982 fi 21983 if test "x$BINARY" != x; then 21984 # So there is a java(c) binary, it might be part of a JDK. 21985 # Lets find the JDK/JRE directory by following symbolic links. 21986 # Linux/GNU systems often have links from /usr/bin/java to 21987 # /etc/alternatives/java to the real JDK binary. 21988 21989 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21990 # Follow a chain of symbolic links. Use readlink 21991 # where it exists, else fall back to horribly 21992 # complicated shell code. 21993 if test "x$READLINK_TESTED" != yes; then 21994 # On MacOSX there is a readlink tool with a different 21995 # purpose than the GNU readlink tool. Check the found readlink. 21996 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21997 if test "x$ISGNU" = x; then 21998 # A readlink that we do not know how to use. 21999 # Are there other non-GNU readlinks out there? 22000 READLINK_TESTED=yes 22001 READLINK= 22002 fi 22003 fi 22004 22005 if test "x$READLINK" != x; then 22006 BINARY=`$READLINK -f $BINARY` 22007 else 22008 # Save the current directory for restoring afterwards 22009 STARTDIR=$PWD 22010 COUNTER=0 22011 sym_link_dir=`$DIRNAME $BINARY` 22012 sym_link_file=`$BASENAME $BINARY` 22013 cd $sym_link_dir 22014 # Use -P flag to resolve symlinks in directories. 22015 cd `$THEPWDCMD -P` 22016 sym_link_dir=`$THEPWDCMD -P` 22017 # Resolve file symlinks 22018 while test $COUNTER -lt 20; do 22019 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22020 if test "x$ISLINK" == x; then 22021 # This is not a symbolic link! We are done! 22022 break 22023 fi 22024 # Again resolve directory symlinks since the target of the just found 22025 # link could be in a different directory 22026 cd `$DIRNAME $ISLINK` 22027 sym_link_dir=`$THEPWDCMD -P` 22028 sym_link_file=`$BASENAME $ISLINK` 22029 let COUNTER=COUNTER+1 22030 done 22031 cd $STARTDIR 22032 BINARY=$sym_link_dir/$sym_link_file 22033 fi 22034 fi 22035 22036 BOOT_JDK=`dirname "$BINARY"` 22037 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22038 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22039 # Looks like we found ourselves an JDK 22040 BOOT_JDK_FOUND=maybe 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22042 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22043 fi 22044 fi 22045 22046 22047 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22048 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22049 # Do we have a bin/java? 22050 if test ! -x "$BOOT_JDK/bin/java"; then 22051 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22053 BOOT_JDK_FOUND=no 22054 else 22055 # Do we have a bin/javac? 22056 if test ! -x "$BOOT_JDK/bin/javac"; then 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22058 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22059 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22060 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22061 BOOT_JDK_FOUND=no 22062 else 22063 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22064 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22065 22066 # Extra M4 quote needed to protect [] in grep expression. 22067 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22068 if test "x$FOUND_CORRECT_VERSION" = x; then 22069 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22070 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22071 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22072 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22073 BOOT_JDK_FOUND=no 22074 else 22075 # We're done! :-) 22076 BOOT_JDK_FOUND=yes 22077 22078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22079 22080 # Input might be given as Windows format, start by converting to 22081 # unix format. 22082 path="$BOOT_JDK" 22083 new_path=`$CYGPATH -u "$path"` 22084 22085 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22086 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22087 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22088 # "foo.exe" is OK but "foo" is an error. 22089 # 22090 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22091 # It is also a way to make sure we got the proper file name for the real test later on. 22092 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22093 if test "x$test_shortpath" = x; then 22094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22095 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22096 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22097 fi 22098 22099 # Call helper function which possibly converts this using DOS-style short mode. 22100 # If so, the updated path is stored in $new_path. 22101 22102 input_path="$new_path" 22103 # Check if we need to convert this using DOS-style short mode. If the path 22104 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22105 # take no chances and rewrite it. 22106 # Note: m4 eats our [], so we need to use [ and ] instead. 22107 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22108 if test "x$has_forbidden_chars" != x; then 22109 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22110 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22111 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22112 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22113 # Going to short mode and back again did indeed matter. Since short mode is 22114 # case insensitive, let's make it lowercase to improve readability. 22115 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22116 # Now convert it back to Unix-stile (cygpath) 22117 input_path=`$CYGPATH -u "$shortmode_path"` 22118 new_path="$input_path" 22119 fi 22120 fi 22121 22122 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22123 if test "x$test_cygdrive_prefix" = x; then 22124 # As a simple fix, exclude /usr/bin since it's not a real path. 22125 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22126 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22127 # a path prefixed by /cygdrive for fixpath to work. 22128 new_path="$CYGWIN_ROOT_PATH$input_path" 22129 fi 22130 fi 22131 22132 22133 if test "x$path" != "x$new_path"; then 22134 BOOT_JDK="$new_path" 22135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22136 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22137 fi 22138 22139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22140 22141 path="$BOOT_JDK" 22142 has_colon=`$ECHO $path | $GREP ^.:` 22143 new_path="$path" 22144 if test "x$has_colon" = x; then 22145 # Not in mixed or Windows style, start by that. 22146 new_path=`cmd //c echo $path` 22147 fi 22148 22149 22150 input_path="$new_path" 22151 # Check if we need to convert this using DOS-style short mode. If the path 22152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22153 # take no chances and rewrite it. 22154 # Note: m4 eats our [], so we need to use [ and ] instead. 22155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22156 if test "x$has_forbidden_chars" != x; then 22157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22158 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22159 fi 22160 22161 22162 windows_path="$new_path" 22163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22164 unix_path=`$CYGPATH -u "$windows_path"` 22165 new_path="$unix_path" 22166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22168 new_path="$unix_path" 22169 fi 22170 22171 if test "x$path" != "x$new_path"; then 22172 BOOT_JDK="$new_path" 22173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22174 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22175 fi 22176 22177 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22178 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22179 22180 else 22181 # We're on a unix platform. Hooray! :) 22182 path="$BOOT_JDK" 22183 has_space=`$ECHO "$path" | $GREP " "` 22184 if test "x$has_space" != x; then 22185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22186 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22187 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22188 fi 22189 22190 # Use eval to expand a potential ~ 22191 eval path="$path" 22192 if test ! -f "$path" && test ! -d "$path"; then 22193 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22194 fi 22195 22196 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22197 fi 22198 22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22200 $as_echo_n "checking for Boot JDK... " >&6; } 22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22202 $as_echo "$BOOT_JDK" >&6; } 22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22204 $as_echo_n "checking Boot JDK version... " >&6; } 22205 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22207 $as_echo "$BOOT_JDK_VERSION" >&6; } 22208 fi # end check jdk version 22209 fi # end check javac 22210 fi # end check java 22211 fi # end check boot jdk found 22212 fi 22213 22214 22215 # Test: Is there a JDK installed in default, well-known locations? 22216 22217 if test "x$BOOT_JDK_FOUND" = xno; then 22218 # Now execute the test 22219 22220 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22221 22222 if test "x$BOOT_JDK_FOUND" = xno; then 22223 # Now execute the test 22224 22225 if test "x$ProgramW6432" != x; then 22226 VIRTUAL_DIR="$ProgramW6432/Java" 22227 22228 windows_path="$VIRTUAL_DIR" 22229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22230 unix_path=`$CYGPATH -u "$windows_path"` 22231 VIRTUAL_DIR="$unix_path" 22232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22233 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22234 VIRTUAL_DIR="$unix_path" 22235 fi 22236 22237 22238 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22239 BOOT_JDK_SUFFIX="" 22240 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22241 if test "x$ALL_JDKS_FOUND" != x; then 22242 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22243 22244 if test "x$BOOT_JDK_FOUND" = xno; then 22245 # Now execute the test 22246 22247 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22248 if test -d "$BOOT_JDK"; then 22249 BOOT_JDK_FOUND=maybe 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22251 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22252 fi 22253 22254 22255 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22256 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22257 # Do we have a bin/java? 22258 if test ! -x "$BOOT_JDK/bin/java"; then 22259 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22260 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22261 BOOT_JDK_FOUND=no 22262 else 22263 # Do we have a bin/javac? 22264 if test ! -x "$BOOT_JDK/bin/javac"; then 22265 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22266 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22267 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22268 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22269 BOOT_JDK_FOUND=no 22270 else 22271 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22272 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22273 22274 # Extra M4 quote needed to protect [] in grep expression. 22275 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22276 if test "x$FOUND_CORRECT_VERSION" = x; then 22277 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22278 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22279 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22280 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22281 BOOT_JDK_FOUND=no 22282 else 22283 # We're done! :-) 22284 BOOT_JDK_FOUND=yes 22285 22286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22287 22288 # Input might be given as Windows format, start by converting to 22289 # unix format. 22290 path="$BOOT_JDK" 22291 new_path=`$CYGPATH -u "$path"` 22292 22293 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22294 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22295 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22296 # "foo.exe" is OK but "foo" is an error. 22297 # 22298 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22299 # It is also a way to make sure we got the proper file name for the real test later on. 22300 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22301 if test "x$test_shortpath" = x; then 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22303 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22304 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22305 fi 22306 22307 # Call helper function which possibly converts this using DOS-style short mode. 22308 # If so, the updated path is stored in $new_path. 22309 22310 input_path="$new_path" 22311 # Check if we need to convert this using DOS-style short mode. If the path 22312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22313 # take no chances and rewrite it. 22314 # Note: m4 eats our [], so we need to use [ and ] instead. 22315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22316 if test "x$has_forbidden_chars" != x; then 22317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22318 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22319 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22320 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22321 # Going to short mode and back again did indeed matter. Since short mode is 22322 # case insensitive, let's make it lowercase to improve readability. 22323 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22324 # Now convert it back to Unix-stile (cygpath) 22325 input_path=`$CYGPATH -u "$shortmode_path"` 22326 new_path="$input_path" 22327 fi 22328 fi 22329 22330 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22331 if test "x$test_cygdrive_prefix" = x; then 22332 # As a simple fix, exclude /usr/bin since it's not a real path. 22333 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22334 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22335 # a path prefixed by /cygdrive for fixpath to work. 22336 new_path="$CYGWIN_ROOT_PATH$input_path" 22337 fi 22338 fi 22339 22340 22341 if test "x$path" != "x$new_path"; then 22342 BOOT_JDK="$new_path" 22343 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22344 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22345 fi 22346 22347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22348 22349 path="$BOOT_JDK" 22350 has_colon=`$ECHO $path | $GREP ^.:` 22351 new_path="$path" 22352 if test "x$has_colon" = x; then 22353 # Not in mixed or Windows style, start by that. 22354 new_path=`cmd //c echo $path` 22355 fi 22356 22357 22358 input_path="$new_path" 22359 # Check if we need to convert this using DOS-style short mode. If the path 22360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22361 # take no chances and rewrite it. 22362 # Note: m4 eats our [], so we need to use [ and ] instead. 22363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22364 if test "x$has_forbidden_chars" != x; then 22365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22366 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22367 fi 22368 22369 22370 windows_path="$new_path" 22371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22372 unix_path=`$CYGPATH -u "$windows_path"` 22373 new_path="$unix_path" 22374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22375 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22376 new_path="$unix_path" 22377 fi 22378 22379 if test "x$path" != "x$new_path"; then 22380 BOOT_JDK="$new_path" 22381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22382 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22383 fi 22384 22385 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22386 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22387 22388 else 22389 # We're on a unix platform. Hooray! :) 22390 path="$BOOT_JDK" 22391 has_space=`$ECHO "$path" | $GREP " "` 22392 if test "x$has_space" != x; then 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22394 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22395 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22396 fi 22397 22398 # Use eval to expand a potential ~ 22399 eval path="$path" 22400 if test ! -f "$path" && test ! -d "$path"; then 22401 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22402 fi 22403 22404 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22405 fi 22406 22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22408 $as_echo_n "checking for Boot JDK... " >&6; } 22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22410 $as_echo "$BOOT_JDK" >&6; } 22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22412 $as_echo_n "checking Boot JDK version... " >&6; } 22413 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22415 $as_echo "$BOOT_JDK_VERSION" >&6; } 22416 fi # end check jdk version 22417 fi # end check javac 22418 fi # end check java 22419 fi # end check boot jdk found 22420 fi 22421 22422 done 22423 fi 22424 22425 fi 22426 22427 22428 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22429 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22430 # Do we have a bin/java? 22431 if test ! -x "$BOOT_JDK/bin/java"; then 22432 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22434 BOOT_JDK_FOUND=no 22435 else 22436 # Do we have a bin/javac? 22437 if test ! -x "$BOOT_JDK/bin/javac"; then 22438 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22439 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22440 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22441 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22442 BOOT_JDK_FOUND=no 22443 else 22444 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22445 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22446 22447 # Extra M4 quote needed to protect [] in grep expression. 22448 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22449 if test "x$FOUND_CORRECT_VERSION" = x; then 22450 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22451 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22452 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22453 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22454 BOOT_JDK_FOUND=no 22455 else 22456 # We're done! :-) 22457 BOOT_JDK_FOUND=yes 22458 22459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22460 22461 # Input might be given as Windows format, start by converting to 22462 # unix format. 22463 path="$BOOT_JDK" 22464 new_path=`$CYGPATH -u "$path"` 22465 22466 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22467 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22468 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22469 # "foo.exe" is OK but "foo" is an error. 22470 # 22471 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22472 # It is also a way to make sure we got the proper file name for the real test later on. 22473 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22474 if test "x$test_shortpath" = x; then 22475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22476 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22477 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22478 fi 22479 22480 # Call helper function which possibly converts this using DOS-style short mode. 22481 # If so, the updated path is stored in $new_path. 22482 22483 input_path="$new_path" 22484 # Check if we need to convert this using DOS-style short mode. If the path 22485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22486 # take no chances and rewrite it. 22487 # Note: m4 eats our [], so we need to use [ and ] instead. 22488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22489 if test "x$has_forbidden_chars" != x; then 22490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22491 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22492 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22493 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22494 # Going to short mode and back again did indeed matter. Since short mode is 22495 # case insensitive, let's make it lowercase to improve readability. 22496 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22497 # Now convert it back to Unix-stile (cygpath) 22498 input_path=`$CYGPATH -u "$shortmode_path"` 22499 new_path="$input_path" 22500 fi 22501 fi 22502 22503 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22504 if test "x$test_cygdrive_prefix" = x; then 22505 # As a simple fix, exclude /usr/bin since it's not a real path. 22506 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22507 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22508 # a path prefixed by /cygdrive for fixpath to work. 22509 new_path="$CYGWIN_ROOT_PATH$input_path" 22510 fi 22511 fi 22512 22513 22514 if test "x$path" != "x$new_path"; then 22515 BOOT_JDK="$new_path" 22516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22517 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22518 fi 22519 22520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22521 22522 path="$BOOT_JDK" 22523 has_colon=`$ECHO $path | $GREP ^.:` 22524 new_path="$path" 22525 if test "x$has_colon" = x; then 22526 # Not in mixed or Windows style, start by that. 22527 new_path=`cmd //c echo $path` 22528 fi 22529 22530 22531 input_path="$new_path" 22532 # Check if we need to convert this using DOS-style short mode. If the path 22533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22534 # take no chances and rewrite it. 22535 # Note: m4 eats our [], so we need to use [ and ] instead. 22536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22537 if test "x$has_forbidden_chars" != x; then 22538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22540 fi 22541 22542 22543 windows_path="$new_path" 22544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22545 unix_path=`$CYGPATH -u "$windows_path"` 22546 new_path="$unix_path" 22547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22549 new_path="$unix_path" 22550 fi 22551 22552 if test "x$path" != "x$new_path"; then 22553 BOOT_JDK="$new_path" 22554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22555 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22556 fi 22557 22558 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22559 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22560 22561 else 22562 # We're on a unix platform. Hooray! :) 22563 path="$BOOT_JDK" 22564 has_space=`$ECHO "$path" | $GREP " "` 22565 if test "x$has_space" != x; then 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22567 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22568 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22569 fi 22570 22571 # Use eval to expand a potential ~ 22572 eval path="$path" 22573 if test ! -f "$path" && test ! -d "$path"; then 22574 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22575 fi 22576 22577 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22578 fi 22579 22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22581 $as_echo_n "checking for Boot JDK... " >&6; } 22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22583 $as_echo "$BOOT_JDK" >&6; } 22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22585 $as_echo_n "checking Boot JDK version... " >&6; } 22586 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22588 $as_echo "$BOOT_JDK_VERSION" >&6; } 22589 fi # end check jdk version 22590 fi # end check javac 22591 fi # end check java 22592 fi # end check boot jdk found 22593 fi 22594 22595 22596 if test "x$BOOT_JDK_FOUND" = xno; then 22597 # Now execute the test 22598 22599 if test "x$PROGRAMW6432" != x; then 22600 VIRTUAL_DIR="$PROGRAMW6432/Java" 22601 22602 windows_path="$VIRTUAL_DIR" 22603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22604 unix_path=`$CYGPATH -u "$windows_path"` 22605 VIRTUAL_DIR="$unix_path" 22606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22607 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22608 VIRTUAL_DIR="$unix_path" 22609 fi 22610 22611 22612 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22613 BOOT_JDK_SUFFIX="" 22614 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22615 if test "x$ALL_JDKS_FOUND" != x; then 22616 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22617 22618 if test "x$BOOT_JDK_FOUND" = xno; then 22619 # Now execute the test 22620 22621 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22622 if test -d "$BOOT_JDK"; then 22623 BOOT_JDK_FOUND=maybe 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22625 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22626 fi 22627 22628 22629 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22630 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22631 # Do we have a bin/java? 22632 if test ! -x "$BOOT_JDK/bin/java"; then 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22635 BOOT_JDK_FOUND=no 22636 else 22637 # Do we have a bin/javac? 22638 if test ! -x "$BOOT_JDK/bin/javac"; then 22639 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22642 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22643 BOOT_JDK_FOUND=no 22644 else 22645 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22646 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22647 22648 # Extra M4 quote needed to protect [] in grep expression. 22649 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22650 if test "x$FOUND_CORRECT_VERSION" = x; then 22651 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22652 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22653 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22654 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22655 BOOT_JDK_FOUND=no 22656 else 22657 # We're done! :-) 22658 BOOT_JDK_FOUND=yes 22659 22660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22661 22662 # Input might be given as Windows format, start by converting to 22663 # unix format. 22664 path="$BOOT_JDK" 22665 new_path=`$CYGPATH -u "$path"` 22666 22667 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22668 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22669 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22670 # "foo.exe" is OK but "foo" is an error. 22671 # 22672 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22673 # It is also a way to make sure we got the proper file name for the real test later on. 22674 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22675 if test "x$test_shortpath" = x; then 22676 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22677 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22678 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22679 fi 22680 22681 # Call helper function which possibly converts this using DOS-style short mode. 22682 # If so, the updated path is stored in $new_path. 22683 22684 input_path="$new_path" 22685 # Check if we need to convert this using DOS-style short mode. If the path 22686 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22687 # take no chances and rewrite it. 22688 # Note: m4 eats our [], so we need to use [ and ] instead. 22689 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22690 if test "x$has_forbidden_chars" != x; then 22691 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22692 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22693 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22694 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22695 # Going to short mode and back again did indeed matter. Since short mode is 22696 # case insensitive, let's make it lowercase to improve readability. 22697 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22698 # Now convert it back to Unix-stile (cygpath) 22699 input_path=`$CYGPATH -u "$shortmode_path"` 22700 new_path="$input_path" 22701 fi 22702 fi 22703 22704 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22705 if test "x$test_cygdrive_prefix" = x; then 22706 # As a simple fix, exclude /usr/bin since it's not a real path. 22707 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22708 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22709 # a path prefixed by /cygdrive for fixpath to work. 22710 new_path="$CYGWIN_ROOT_PATH$input_path" 22711 fi 22712 fi 22713 22714 22715 if test "x$path" != "x$new_path"; then 22716 BOOT_JDK="$new_path" 22717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22718 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22719 fi 22720 22721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22722 22723 path="$BOOT_JDK" 22724 has_colon=`$ECHO $path | $GREP ^.:` 22725 new_path="$path" 22726 if test "x$has_colon" = x; then 22727 # Not in mixed or Windows style, start by that. 22728 new_path=`cmd //c echo $path` 22729 fi 22730 22731 22732 input_path="$new_path" 22733 # Check if we need to convert this using DOS-style short mode. If the path 22734 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22735 # take no chances and rewrite it. 22736 # Note: m4 eats our [], so we need to use [ and ] instead. 22737 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22738 if test "x$has_forbidden_chars" != x; then 22739 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22740 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22741 fi 22742 22743 22744 windows_path="$new_path" 22745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22746 unix_path=`$CYGPATH -u "$windows_path"` 22747 new_path="$unix_path" 22748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22750 new_path="$unix_path" 22751 fi 22752 22753 if test "x$path" != "x$new_path"; then 22754 BOOT_JDK="$new_path" 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22756 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22757 fi 22758 22759 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22760 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22761 22762 else 22763 # We're on a unix platform. Hooray! :) 22764 path="$BOOT_JDK" 22765 has_space=`$ECHO "$path" | $GREP " "` 22766 if test "x$has_space" != x; then 22767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22768 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22769 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22770 fi 22771 22772 # Use eval to expand a potential ~ 22773 eval path="$path" 22774 if test ! -f "$path" && test ! -d "$path"; then 22775 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22776 fi 22777 22778 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22779 fi 22780 22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22782 $as_echo_n "checking for Boot JDK... " >&6; } 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22784 $as_echo "$BOOT_JDK" >&6; } 22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22786 $as_echo_n "checking Boot JDK version... " >&6; } 22787 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22789 $as_echo "$BOOT_JDK_VERSION" >&6; } 22790 fi # end check jdk version 22791 fi # end check javac 22792 fi # end check java 22793 fi # end check boot jdk found 22794 fi 22795 22796 done 22797 fi 22798 22799 fi 22800 22801 22802 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22803 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22804 # Do we have a bin/java? 22805 if test ! -x "$BOOT_JDK/bin/java"; then 22806 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22807 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22808 BOOT_JDK_FOUND=no 22809 else 22810 # Do we have a bin/javac? 22811 if test ! -x "$BOOT_JDK/bin/javac"; then 22812 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22813 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22814 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22815 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22816 BOOT_JDK_FOUND=no 22817 else 22818 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22819 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22820 22821 # Extra M4 quote needed to protect [] in grep expression. 22822 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22823 if test "x$FOUND_CORRECT_VERSION" = x; then 22824 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22825 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22826 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22827 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22828 BOOT_JDK_FOUND=no 22829 else 22830 # We're done! :-) 22831 BOOT_JDK_FOUND=yes 22832 22833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22834 22835 # Input might be given as Windows format, start by converting to 22836 # unix format. 22837 path="$BOOT_JDK" 22838 new_path=`$CYGPATH -u "$path"` 22839 22840 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22841 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22842 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22843 # "foo.exe" is OK but "foo" is an error. 22844 # 22845 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22846 # It is also a way to make sure we got the proper file name for the real test later on. 22847 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22848 if test "x$test_shortpath" = x; then 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22850 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22851 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22852 fi 22853 22854 # Call helper function which possibly converts this using DOS-style short mode. 22855 # If so, the updated path is stored in $new_path. 22856 22857 input_path="$new_path" 22858 # Check if we need to convert this using DOS-style short mode. If the path 22859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22860 # take no chances and rewrite it. 22861 # Note: m4 eats our [], so we need to use [ and ] instead. 22862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22863 if test "x$has_forbidden_chars" != x; then 22864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22865 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22866 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22867 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22868 # Going to short mode and back again did indeed matter. Since short mode is 22869 # case insensitive, let's make it lowercase to improve readability. 22870 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22871 # Now convert it back to Unix-stile (cygpath) 22872 input_path=`$CYGPATH -u "$shortmode_path"` 22873 new_path="$input_path" 22874 fi 22875 fi 22876 22877 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22878 if test "x$test_cygdrive_prefix" = x; then 22879 # As a simple fix, exclude /usr/bin since it's not a real path. 22880 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22881 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22882 # a path prefixed by /cygdrive for fixpath to work. 22883 new_path="$CYGWIN_ROOT_PATH$input_path" 22884 fi 22885 fi 22886 22887 22888 if test "x$path" != "x$new_path"; then 22889 BOOT_JDK="$new_path" 22890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22891 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22892 fi 22893 22894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22895 22896 path="$BOOT_JDK" 22897 has_colon=`$ECHO $path | $GREP ^.:` 22898 new_path="$path" 22899 if test "x$has_colon" = x; then 22900 # Not in mixed or Windows style, start by that. 22901 new_path=`cmd //c echo $path` 22902 fi 22903 22904 22905 input_path="$new_path" 22906 # Check if we need to convert this using DOS-style short mode. If the path 22907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22908 # take no chances and rewrite it. 22909 # Note: m4 eats our [], so we need to use [ and ] instead. 22910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22911 if test "x$has_forbidden_chars" != x; then 22912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22913 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22914 fi 22915 22916 22917 windows_path="$new_path" 22918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22919 unix_path=`$CYGPATH -u "$windows_path"` 22920 new_path="$unix_path" 22921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22923 new_path="$unix_path" 22924 fi 22925 22926 if test "x$path" != "x$new_path"; then 22927 BOOT_JDK="$new_path" 22928 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22929 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22930 fi 22931 22932 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22933 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22934 22935 else 22936 # We're on a unix platform. Hooray! :) 22937 path="$BOOT_JDK" 22938 has_space=`$ECHO "$path" | $GREP " "` 22939 if test "x$has_space" != x; then 22940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22941 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22942 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22943 fi 22944 22945 # Use eval to expand a potential ~ 22946 eval path="$path" 22947 if test ! -f "$path" && test ! -d "$path"; then 22948 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22949 fi 22950 22951 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22952 fi 22953 22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22955 $as_echo_n "checking for Boot JDK... " >&6; } 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22957 $as_echo "$BOOT_JDK" >&6; } 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22959 $as_echo_n "checking Boot JDK version... " >&6; } 22960 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22962 $as_echo "$BOOT_JDK_VERSION" >&6; } 22963 fi # end check jdk version 22964 fi # end check javac 22965 fi # end check java 22966 fi # end check boot jdk found 22967 fi 22968 22969 22970 if test "x$BOOT_JDK_FOUND" = xno; then 22971 # Now execute the test 22972 22973 if test "x$PROGRAMFILES" != x; then 22974 VIRTUAL_DIR="$PROGRAMFILES/Java" 22975 22976 windows_path="$VIRTUAL_DIR" 22977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22978 unix_path=`$CYGPATH -u "$windows_path"` 22979 VIRTUAL_DIR="$unix_path" 22980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22982 VIRTUAL_DIR="$unix_path" 22983 fi 22984 22985 22986 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22987 BOOT_JDK_SUFFIX="" 22988 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22989 if test "x$ALL_JDKS_FOUND" != x; then 22990 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22991 22992 if test "x$BOOT_JDK_FOUND" = xno; then 22993 # Now execute the test 22994 22995 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22996 if test -d "$BOOT_JDK"; then 22997 BOOT_JDK_FOUND=maybe 22998 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22999 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23000 fi 23001 23002 23003 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23004 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23005 # Do we have a bin/java? 23006 if test ! -x "$BOOT_JDK/bin/java"; then 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23009 BOOT_JDK_FOUND=no 23010 else 23011 # Do we have a bin/javac? 23012 if test ! -x "$BOOT_JDK/bin/javac"; then 23013 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23014 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23015 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23016 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23017 BOOT_JDK_FOUND=no 23018 else 23019 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23020 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23021 23022 # Extra M4 quote needed to protect [] in grep expression. 23023 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23024 if test "x$FOUND_CORRECT_VERSION" = x; then 23025 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23026 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23028 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23029 BOOT_JDK_FOUND=no 23030 else 23031 # We're done! :-) 23032 BOOT_JDK_FOUND=yes 23033 23034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23035 23036 # Input might be given as Windows format, start by converting to 23037 # unix format. 23038 path="$BOOT_JDK" 23039 new_path=`$CYGPATH -u "$path"` 23040 23041 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23042 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23043 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23044 # "foo.exe" is OK but "foo" is an error. 23045 # 23046 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23047 # It is also a way to make sure we got the proper file name for the real test later on. 23048 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23049 if test "x$test_shortpath" = x; then 23050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23051 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23052 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23053 fi 23054 23055 # Call helper function which possibly converts this using DOS-style short mode. 23056 # If so, the updated path is stored in $new_path. 23057 23058 input_path="$new_path" 23059 # Check if we need to convert this using DOS-style short mode. If the path 23060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23061 # take no chances and rewrite it. 23062 # Note: m4 eats our [], so we need to use [ and ] instead. 23063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23064 if test "x$has_forbidden_chars" != x; then 23065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23066 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23067 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23068 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23069 # Going to short mode and back again did indeed matter. Since short mode is 23070 # case insensitive, let's make it lowercase to improve readability. 23071 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23072 # Now convert it back to Unix-stile (cygpath) 23073 input_path=`$CYGPATH -u "$shortmode_path"` 23074 new_path="$input_path" 23075 fi 23076 fi 23077 23078 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23079 if test "x$test_cygdrive_prefix" = x; then 23080 # As a simple fix, exclude /usr/bin since it's not a real path. 23081 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23082 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23083 # a path prefixed by /cygdrive for fixpath to work. 23084 new_path="$CYGWIN_ROOT_PATH$input_path" 23085 fi 23086 fi 23087 23088 23089 if test "x$path" != "x$new_path"; then 23090 BOOT_JDK="$new_path" 23091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23092 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23093 fi 23094 23095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23096 23097 path="$BOOT_JDK" 23098 has_colon=`$ECHO $path | $GREP ^.:` 23099 new_path="$path" 23100 if test "x$has_colon" = x; then 23101 # Not in mixed or Windows style, start by that. 23102 new_path=`cmd //c echo $path` 23103 fi 23104 23105 23106 input_path="$new_path" 23107 # Check if we need to convert this using DOS-style short mode. If the path 23108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23109 # take no chances and rewrite it. 23110 # Note: m4 eats our [], so we need to use [ and ] instead. 23111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23112 if test "x$has_forbidden_chars" != x; then 23113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23114 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23115 fi 23116 23117 23118 windows_path="$new_path" 23119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23120 unix_path=`$CYGPATH -u "$windows_path"` 23121 new_path="$unix_path" 23122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23124 new_path="$unix_path" 23125 fi 23126 23127 if test "x$path" != "x$new_path"; then 23128 BOOT_JDK="$new_path" 23129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23130 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23131 fi 23132 23133 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23134 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23135 23136 else 23137 # We're on a unix platform. Hooray! :) 23138 path="$BOOT_JDK" 23139 has_space=`$ECHO "$path" | $GREP " "` 23140 if test "x$has_space" != x; then 23141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23142 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23143 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23144 fi 23145 23146 # Use eval to expand a potential ~ 23147 eval path="$path" 23148 if test ! -f "$path" && test ! -d "$path"; then 23149 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23150 fi 23151 23152 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23153 fi 23154 23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23156 $as_echo_n "checking for Boot JDK... " >&6; } 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23158 $as_echo "$BOOT_JDK" >&6; } 23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23160 $as_echo_n "checking Boot JDK version... " >&6; } 23161 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23163 $as_echo "$BOOT_JDK_VERSION" >&6; } 23164 fi # end check jdk version 23165 fi # end check javac 23166 fi # end check java 23167 fi # end check boot jdk found 23168 fi 23169 23170 done 23171 fi 23172 23173 fi 23174 23175 23176 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23177 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23178 # Do we have a bin/java? 23179 if test ! -x "$BOOT_JDK/bin/java"; then 23180 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23181 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23182 BOOT_JDK_FOUND=no 23183 else 23184 # Do we have a bin/javac? 23185 if test ! -x "$BOOT_JDK/bin/javac"; then 23186 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23188 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23189 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23190 BOOT_JDK_FOUND=no 23191 else 23192 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23193 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23194 23195 # Extra M4 quote needed to protect [] in grep expression. 23196 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23197 if test "x$FOUND_CORRECT_VERSION" = x; then 23198 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23200 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23201 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23202 BOOT_JDK_FOUND=no 23203 else 23204 # We're done! :-) 23205 BOOT_JDK_FOUND=yes 23206 23207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23208 23209 # Input might be given as Windows format, start by converting to 23210 # unix format. 23211 path="$BOOT_JDK" 23212 new_path=`$CYGPATH -u "$path"` 23213 23214 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23215 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23216 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23217 # "foo.exe" is OK but "foo" is an error. 23218 # 23219 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23220 # It is also a way to make sure we got the proper file name for the real test later on. 23221 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23222 if test "x$test_shortpath" = x; then 23223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23224 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23225 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23226 fi 23227 23228 # Call helper function which possibly converts this using DOS-style short mode. 23229 # If so, the updated path is stored in $new_path. 23230 23231 input_path="$new_path" 23232 # Check if we need to convert this using DOS-style short mode. If the path 23233 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23234 # take no chances and rewrite it. 23235 # Note: m4 eats our [], so we need to use [ and ] instead. 23236 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23237 if test "x$has_forbidden_chars" != x; then 23238 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23239 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23240 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23241 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23242 # Going to short mode and back again did indeed matter. Since short mode is 23243 # case insensitive, let's make it lowercase to improve readability. 23244 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23245 # Now convert it back to Unix-stile (cygpath) 23246 input_path=`$CYGPATH -u "$shortmode_path"` 23247 new_path="$input_path" 23248 fi 23249 fi 23250 23251 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23252 if test "x$test_cygdrive_prefix" = x; then 23253 # As a simple fix, exclude /usr/bin since it's not a real path. 23254 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23255 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23256 # a path prefixed by /cygdrive for fixpath to work. 23257 new_path="$CYGWIN_ROOT_PATH$input_path" 23258 fi 23259 fi 23260 23261 23262 if test "x$path" != "x$new_path"; then 23263 BOOT_JDK="$new_path" 23264 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23265 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23266 fi 23267 23268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23269 23270 path="$BOOT_JDK" 23271 has_colon=`$ECHO $path | $GREP ^.:` 23272 new_path="$path" 23273 if test "x$has_colon" = x; then 23274 # Not in mixed or Windows style, start by that. 23275 new_path=`cmd //c echo $path` 23276 fi 23277 23278 23279 input_path="$new_path" 23280 # Check if we need to convert this using DOS-style short mode. If the path 23281 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23282 # take no chances and rewrite it. 23283 # Note: m4 eats our [], so we need to use [ and ] instead. 23284 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23285 if test "x$has_forbidden_chars" != x; then 23286 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23287 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23288 fi 23289 23290 23291 windows_path="$new_path" 23292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23293 unix_path=`$CYGPATH -u "$windows_path"` 23294 new_path="$unix_path" 23295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23297 new_path="$unix_path" 23298 fi 23299 23300 if test "x$path" != "x$new_path"; then 23301 BOOT_JDK="$new_path" 23302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23303 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23304 fi 23305 23306 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23307 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23308 23309 else 23310 # We're on a unix platform. Hooray! :) 23311 path="$BOOT_JDK" 23312 has_space=`$ECHO "$path" | $GREP " "` 23313 if test "x$has_space" != x; then 23314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23315 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23316 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23317 fi 23318 23319 # Use eval to expand a potential ~ 23320 eval path="$path" 23321 if test ! -f "$path" && test ! -d "$path"; then 23322 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23323 fi 23324 23325 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23326 fi 23327 23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23329 $as_echo_n "checking for Boot JDK... " >&6; } 23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23331 $as_echo "$BOOT_JDK" >&6; } 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23333 $as_echo_n "checking Boot JDK version... " >&6; } 23334 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23336 $as_echo "$BOOT_JDK_VERSION" >&6; } 23337 fi # end check jdk version 23338 fi # end check javac 23339 fi # end check java 23340 fi # end check boot jdk found 23341 fi 23342 23343 23344 if test "x$BOOT_JDK_FOUND" = xno; then 23345 # Now execute the test 23346 23347 if test "x$ProgramFiles" != x; then 23348 VIRTUAL_DIR="$ProgramFiles/Java" 23349 23350 windows_path="$VIRTUAL_DIR" 23351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23352 unix_path=`$CYGPATH -u "$windows_path"` 23353 VIRTUAL_DIR="$unix_path" 23354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23356 VIRTUAL_DIR="$unix_path" 23357 fi 23358 23359 23360 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23361 BOOT_JDK_SUFFIX="" 23362 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23363 if test "x$ALL_JDKS_FOUND" != x; then 23364 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23365 23366 if test "x$BOOT_JDK_FOUND" = xno; then 23367 # Now execute the test 23368 23369 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23370 if test -d "$BOOT_JDK"; then 23371 BOOT_JDK_FOUND=maybe 23372 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23373 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23374 fi 23375 23376 23377 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23378 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23379 # Do we have a bin/java? 23380 if test ! -x "$BOOT_JDK/bin/java"; then 23381 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23383 BOOT_JDK_FOUND=no 23384 else 23385 # Do we have a bin/javac? 23386 if test ! -x "$BOOT_JDK/bin/javac"; then 23387 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23389 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23390 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23391 BOOT_JDK_FOUND=no 23392 else 23393 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23394 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23395 23396 # Extra M4 quote needed to protect [] in grep expression. 23397 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23398 if test "x$FOUND_CORRECT_VERSION" = x; then 23399 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23400 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23402 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23403 BOOT_JDK_FOUND=no 23404 else 23405 # We're done! :-) 23406 BOOT_JDK_FOUND=yes 23407 23408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23409 23410 # Input might be given as Windows format, start by converting to 23411 # unix format. 23412 path="$BOOT_JDK" 23413 new_path=`$CYGPATH -u "$path"` 23414 23415 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23416 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23417 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23418 # "foo.exe" is OK but "foo" is an error. 23419 # 23420 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23421 # It is also a way to make sure we got the proper file name for the real test later on. 23422 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23423 if test "x$test_shortpath" = x; then 23424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23425 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23426 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23427 fi 23428 23429 # Call helper function which possibly converts this using DOS-style short mode. 23430 # If so, the updated path is stored in $new_path. 23431 23432 input_path="$new_path" 23433 # Check if we need to convert this using DOS-style short mode. If the path 23434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23435 # take no chances and rewrite it. 23436 # Note: m4 eats our [], so we need to use [ and ] instead. 23437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23438 if test "x$has_forbidden_chars" != x; then 23439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23440 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23441 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23442 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23443 # Going to short mode and back again did indeed matter. Since short mode is 23444 # case insensitive, let's make it lowercase to improve readability. 23445 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23446 # Now convert it back to Unix-stile (cygpath) 23447 input_path=`$CYGPATH -u "$shortmode_path"` 23448 new_path="$input_path" 23449 fi 23450 fi 23451 23452 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23453 if test "x$test_cygdrive_prefix" = x; then 23454 # As a simple fix, exclude /usr/bin since it's not a real path. 23455 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23456 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23457 # a path prefixed by /cygdrive for fixpath to work. 23458 new_path="$CYGWIN_ROOT_PATH$input_path" 23459 fi 23460 fi 23461 23462 23463 if test "x$path" != "x$new_path"; then 23464 BOOT_JDK="$new_path" 23465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23466 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23467 fi 23468 23469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23470 23471 path="$BOOT_JDK" 23472 has_colon=`$ECHO $path | $GREP ^.:` 23473 new_path="$path" 23474 if test "x$has_colon" = x; then 23475 # Not in mixed or Windows style, start by that. 23476 new_path=`cmd //c echo $path` 23477 fi 23478 23479 23480 input_path="$new_path" 23481 # Check if we need to convert this using DOS-style short mode. If the path 23482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23483 # take no chances and rewrite it. 23484 # Note: m4 eats our [], so we need to use [ and ] instead. 23485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23486 if test "x$has_forbidden_chars" != x; then 23487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23489 fi 23490 23491 23492 windows_path="$new_path" 23493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23494 unix_path=`$CYGPATH -u "$windows_path"` 23495 new_path="$unix_path" 23496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23498 new_path="$unix_path" 23499 fi 23500 23501 if test "x$path" != "x$new_path"; then 23502 BOOT_JDK="$new_path" 23503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23504 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23505 fi 23506 23507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23509 23510 else 23511 # We're on a unix platform. Hooray! :) 23512 path="$BOOT_JDK" 23513 has_space=`$ECHO "$path" | $GREP " "` 23514 if test "x$has_space" != x; then 23515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23516 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23517 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23518 fi 23519 23520 # Use eval to expand a potential ~ 23521 eval path="$path" 23522 if test ! -f "$path" && test ! -d "$path"; then 23523 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23524 fi 23525 23526 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23527 fi 23528 23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23530 $as_echo_n "checking for Boot JDK... " >&6; } 23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23532 $as_echo "$BOOT_JDK" >&6; } 23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23534 $as_echo_n "checking Boot JDK version... " >&6; } 23535 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23537 $as_echo "$BOOT_JDK_VERSION" >&6; } 23538 fi # end check jdk version 23539 fi # end check javac 23540 fi # end check java 23541 fi # end check boot jdk found 23542 fi 23543 23544 done 23545 fi 23546 23547 fi 23548 23549 23550 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23551 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23552 # Do we have a bin/java? 23553 if test ! -x "$BOOT_JDK/bin/java"; then 23554 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23555 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23556 BOOT_JDK_FOUND=no 23557 else 23558 # Do we have a bin/javac? 23559 if test ! -x "$BOOT_JDK/bin/javac"; then 23560 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23562 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23563 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23564 BOOT_JDK_FOUND=no 23565 else 23566 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23567 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23568 23569 # Extra M4 quote needed to protect [] in grep expression. 23570 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23571 if test "x$FOUND_CORRECT_VERSION" = x; then 23572 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23573 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23574 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23575 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23576 BOOT_JDK_FOUND=no 23577 else 23578 # We're done! :-) 23579 BOOT_JDK_FOUND=yes 23580 23581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23582 23583 # Input might be given as Windows format, start by converting to 23584 # unix format. 23585 path="$BOOT_JDK" 23586 new_path=`$CYGPATH -u "$path"` 23587 23588 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23589 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23590 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23591 # "foo.exe" is OK but "foo" is an error. 23592 # 23593 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23594 # It is also a way to make sure we got the proper file name for the real test later on. 23595 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23596 if test "x$test_shortpath" = x; then 23597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23598 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23599 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23600 fi 23601 23602 # Call helper function which possibly converts this using DOS-style short mode. 23603 # If so, the updated path is stored in $new_path. 23604 23605 input_path="$new_path" 23606 # Check if we need to convert this using DOS-style short mode. If the path 23607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23608 # take no chances and rewrite it. 23609 # Note: m4 eats our [], so we need to use [ and ] instead. 23610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23611 if test "x$has_forbidden_chars" != x; then 23612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23613 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23614 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23615 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23616 # Going to short mode and back again did indeed matter. Since short mode is 23617 # case insensitive, let's make it lowercase to improve readability. 23618 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23619 # Now convert it back to Unix-stile (cygpath) 23620 input_path=`$CYGPATH -u "$shortmode_path"` 23621 new_path="$input_path" 23622 fi 23623 fi 23624 23625 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23626 if test "x$test_cygdrive_prefix" = x; then 23627 # As a simple fix, exclude /usr/bin since it's not a real path. 23628 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23629 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23630 # a path prefixed by /cygdrive for fixpath to work. 23631 new_path="$CYGWIN_ROOT_PATH$input_path" 23632 fi 23633 fi 23634 23635 23636 if test "x$path" != "x$new_path"; then 23637 BOOT_JDK="$new_path" 23638 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23639 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23640 fi 23641 23642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23643 23644 path="$BOOT_JDK" 23645 has_colon=`$ECHO $path | $GREP ^.:` 23646 new_path="$path" 23647 if test "x$has_colon" = x; then 23648 # Not in mixed or Windows style, start by that. 23649 new_path=`cmd //c echo $path` 23650 fi 23651 23652 23653 input_path="$new_path" 23654 # Check if we need to convert this using DOS-style short mode. If the path 23655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23656 # take no chances and rewrite it. 23657 # Note: m4 eats our [], so we need to use [ and ] instead. 23658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23659 if test "x$has_forbidden_chars" != x; then 23660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23661 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23662 fi 23663 23664 23665 windows_path="$new_path" 23666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23667 unix_path=`$CYGPATH -u "$windows_path"` 23668 new_path="$unix_path" 23669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23671 new_path="$unix_path" 23672 fi 23673 23674 if test "x$path" != "x$new_path"; then 23675 BOOT_JDK="$new_path" 23676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23677 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23678 fi 23679 23680 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23681 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23682 23683 else 23684 # We're on a unix platform. Hooray! :) 23685 path="$BOOT_JDK" 23686 has_space=`$ECHO "$path" | $GREP " "` 23687 if test "x$has_space" != x; then 23688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23689 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23690 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23691 fi 23692 23693 # Use eval to expand a potential ~ 23694 eval path="$path" 23695 if test ! -f "$path" && test ! -d "$path"; then 23696 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23697 fi 23698 23699 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23700 fi 23701 23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23703 $as_echo_n "checking for Boot JDK... " >&6; } 23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23705 $as_echo "$BOOT_JDK" >&6; } 23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23707 $as_echo_n "checking Boot JDK version... " >&6; } 23708 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23710 $as_echo "$BOOT_JDK_VERSION" >&6; } 23711 fi # end check jdk version 23712 fi # end check javac 23713 fi # end check java 23714 fi # end check boot jdk found 23715 fi 23716 23717 23718 if test "x$BOOT_JDK_FOUND" = xno; then 23719 # Now execute the test 23720 23721 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23722 BOOT_JDK_SUFFIX="" 23723 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23724 if test "x$ALL_JDKS_FOUND" != x; then 23725 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23726 23727 if test "x$BOOT_JDK_FOUND" = xno; then 23728 # Now execute the test 23729 23730 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23731 if test -d "$BOOT_JDK"; then 23732 BOOT_JDK_FOUND=maybe 23733 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23734 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23735 fi 23736 23737 23738 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23739 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23740 # Do we have a bin/java? 23741 if test ! -x "$BOOT_JDK/bin/java"; then 23742 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23744 BOOT_JDK_FOUND=no 23745 else 23746 # Do we have a bin/javac? 23747 if test ! -x "$BOOT_JDK/bin/javac"; then 23748 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23750 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23751 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23752 BOOT_JDK_FOUND=no 23753 else 23754 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23755 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23756 23757 # Extra M4 quote needed to protect [] in grep expression. 23758 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23759 if test "x$FOUND_CORRECT_VERSION" = x; then 23760 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23761 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23762 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23763 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23764 BOOT_JDK_FOUND=no 23765 else 23766 # We're done! :-) 23767 BOOT_JDK_FOUND=yes 23768 23769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23770 23771 # Input might be given as Windows format, start by converting to 23772 # unix format. 23773 path="$BOOT_JDK" 23774 new_path=`$CYGPATH -u "$path"` 23775 23776 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23777 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23778 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23779 # "foo.exe" is OK but "foo" is an error. 23780 # 23781 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23782 # It is also a way to make sure we got the proper file name for the real test later on. 23783 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23784 if test "x$test_shortpath" = x; then 23785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23786 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23787 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23788 fi 23789 23790 # Call helper function which possibly converts this using DOS-style short mode. 23791 # If so, the updated path is stored in $new_path. 23792 23793 input_path="$new_path" 23794 # Check if we need to convert this using DOS-style short mode. If the path 23795 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23796 # take no chances and rewrite it. 23797 # Note: m4 eats our [], so we need to use [ and ] instead. 23798 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23799 if test "x$has_forbidden_chars" != x; then 23800 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23801 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23802 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23803 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23804 # Going to short mode and back again did indeed matter. Since short mode is 23805 # case insensitive, let's make it lowercase to improve readability. 23806 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23807 # Now convert it back to Unix-stile (cygpath) 23808 input_path=`$CYGPATH -u "$shortmode_path"` 23809 new_path="$input_path" 23810 fi 23811 fi 23812 23813 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23814 if test "x$test_cygdrive_prefix" = x; then 23815 # As a simple fix, exclude /usr/bin since it's not a real path. 23816 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23817 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23818 # a path prefixed by /cygdrive for fixpath to work. 23819 new_path="$CYGWIN_ROOT_PATH$input_path" 23820 fi 23821 fi 23822 23823 23824 if test "x$path" != "x$new_path"; then 23825 BOOT_JDK="$new_path" 23826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23827 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23828 fi 23829 23830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23831 23832 path="$BOOT_JDK" 23833 has_colon=`$ECHO $path | $GREP ^.:` 23834 new_path="$path" 23835 if test "x$has_colon" = x; then 23836 # Not in mixed or Windows style, start by that. 23837 new_path=`cmd //c echo $path` 23838 fi 23839 23840 23841 input_path="$new_path" 23842 # Check if we need to convert this using DOS-style short mode. If the path 23843 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23844 # take no chances and rewrite it. 23845 # Note: m4 eats our [], so we need to use [ and ] instead. 23846 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23847 if test "x$has_forbidden_chars" != x; then 23848 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23849 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23850 fi 23851 23852 23853 windows_path="$new_path" 23854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23855 unix_path=`$CYGPATH -u "$windows_path"` 23856 new_path="$unix_path" 23857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23859 new_path="$unix_path" 23860 fi 23861 23862 if test "x$path" != "x$new_path"; then 23863 BOOT_JDK="$new_path" 23864 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23865 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23866 fi 23867 23868 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23869 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23870 23871 else 23872 # We're on a unix platform. Hooray! :) 23873 path="$BOOT_JDK" 23874 has_space=`$ECHO "$path" | $GREP " "` 23875 if test "x$has_space" != x; then 23876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23877 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23878 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23879 fi 23880 23881 # Use eval to expand a potential ~ 23882 eval path="$path" 23883 if test ! -f "$path" && test ! -d "$path"; then 23884 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23885 fi 23886 23887 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23888 fi 23889 23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23891 $as_echo_n "checking for Boot JDK... " >&6; } 23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23893 $as_echo "$BOOT_JDK" >&6; } 23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23895 $as_echo_n "checking Boot JDK version... " >&6; } 23896 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23898 $as_echo "$BOOT_JDK_VERSION" >&6; } 23899 fi # end check jdk version 23900 fi # end check javac 23901 fi # end check java 23902 fi # end check boot jdk found 23903 fi 23904 23905 done 23906 fi 23907 23908 23909 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23910 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23911 # Do we have a bin/java? 23912 if test ! -x "$BOOT_JDK/bin/java"; then 23913 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23914 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23915 BOOT_JDK_FOUND=no 23916 else 23917 # Do we have a bin/javac? 23918 if test ! -x "$BOOT_JDK/bin/javac"; then 23919 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23920 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23921 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23922 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23923 BOOT_JDK_FOUND=no 23924 else 23925 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23926 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23927 23928 # Extra M4 quote needed to protect [] in grep expression. 23929 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23930 if test "x$FOUND_CORRECT_VERSION" = x; then 23931 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23932 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23934 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23935 BOOT_JDK_FOUND=no 23936 else 23937 # We're done! :-) 23938 BOOT_JDK_FOUND=yes 23939 23940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23941 23942 # Input might be given as Windows format, start by converting to 23943 # unix format. 23944 path="$BOOT_JDK" 23945 new_path=`$CYGPATH -u "$path"` 23946 23947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23950 # "foo.exe" is OK but "foo" is an error. 23951 # 23952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23953 # It is also a way to make sure we got the proper file name for the real test later on. 23954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23955 if test "x$test_shortpath" = x; then 23956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23958 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23959 fi 23960 23961 # Call helper function which possibly converts this using DOS-style short mode. 23962 # If so, the updated path is stored in $new_path. 23963 23964 input_path="$new_path" 23965 # Check if we need to convert this using DOS-style short mode. If the path 23966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23967 # take no chances and rewrite it. 23968 # Note: m4 eats our [], so we need to use [ and ] instead. 23969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23970 if test "x$has_forbidden_chars" != x; then 23971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23975 # Going to short mode and back again did indeed matter. Since short mode is 23976 # case insensitive, let's make it lowercase to improve readability. 23977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23978 # Now convert it back to Unix-stile (cygpath) 23979 input_path=`$CYGPATH -u "$shortmode_path"` 23980 new_path="$input_path" 23981 fi 23982 fi 23983 23984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23985 if test "x$test_cygdrive_prefix" = x; then 23986 # As a simple fix, exclude /usr/bin since it's not a real path. 23987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23989 # a path prefixed by /cygdrive for fixpath to work. 23990 new_path="$CYGWIN_ROOT_PATH$input_path" 23991 fi 23992 fi 23993 23994 23995 if test "x$path" != "x$new_path"; then 23996 BOOT_JDK="$new_path" 23997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23998 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23999 fi 24000 24001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24002 24003 path="$BOOT_JDK" 24004 has_colon=`$ECHO $path | $GREP ^.:` 24005 new_path="$path" 24006 if test "x$has_colon" = x; then 24007 # Not in mixed or Windows style, start by that. 24008 new_path=`cmd //c echo $path` 24009 fi 24010 24011 24012 input_path="$new_path" 24013 # Check if we need to convert this using DOS-style short mode. If the path 24014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24015 # take no chances and rewrite it. 24016 # Note: m4 eats our [], so we need to use [ and ] instead. 24017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24018 if test "x$has_forbidden_chars" != x; then 24019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24021 fi 24022 24023 24024 windows_path="$new_path" 24025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24026 unix_path=`$CYGPATH -u "$windows_path"` 24027 new_path="$unix_path" 24028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24030 new_path="$unix_path" 24031 fi 24032 24033 if test "x$path" != "x$new_path"; then 24034 BOOT_JDK="$new_path" 24035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24037 fi 24038 24039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24041 24042 else 24043 # We're on a unix platform. Hooray! :) 24044 path="$BOOT_JDK" 24045 has_space=`$ECHO "$path" | $GREP " "` 24046 if test "x$has_space" != x; then 24047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24050 fi 24051 24052 # Use eval to expand a potential ~ 24053 eval path="$path" 24054 if test ! -f "$path" && test ! -d "$path"; then 24055 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24056 fi 24057 24058 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24059 fi 24060 24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24062 $as_echo_n "checking for Boot JDK... " >&6; } 24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24064 $as_echo "$BOOT_JDK" >&6; } 24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24066 $as_echo_n "checking Boot JDK version... " >&6; } 24067 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24069 $as_echo "$BOOT_JDK_VERSION" >&6; } 24070 fi # end check jdk version 24071 fi # end check javac 24072 fi # end check java 24073 fi # end check boot jdk found 24074 fi 24075 24076 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24077 24078 if test "x$BOOT_JDK_FOUND" = xno; then 24079 # Now execute the test 24080 24081 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24082 BOOT_JDK_SUFFIX="/Contents/Home" 24083 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24084 if test "x$ALL_JDKS_FOUND" != x; then 24085 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24086 24087 if test "x$BOOT_JDK_FOUND" = xno; then 24088 # Now execute the test 24089 24090 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24091 if test -d "$BOOT_JDK"; then 24092 BOOT_JDK_FOUND=maybe 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24094 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24095 fi 24096 24097 24098 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24099 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24100 # Do we have a bin/java? 24101 if test ! -x "$BOOT_JDK/bin/java"; then 24102 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24103 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24104 BOOT_JDK_FOUND=no 24105 else 24106 # Do we have a bin/javac? 24107 if test ! -x "$BOOT_JDK/bin/javac"; then 24108 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24111 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24112 BOOT_JDK_FOUND=no 24113 else 24114 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24115 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24116 24117 # Extra M4 quote needed to protect [] in grep expression. 24118 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24119 if test "x$FOUND_CORRECT_VERSION" = x; then 24120 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24121 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24122 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24123 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24124 BOOT_JDK_FOUND=no 24125 else 24126 # We're done! :-) 24127 BOOT_JDK_FOUND=yes 24128 24129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24130 24131 # Input might be given as Windows format, start by converting to 24132 # unix format. 24133 path="$BOOT_JDK" 24134 new_path=`$CYGPATH -u "$path"` 24135 24136 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24137 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24138 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24139 # "foo.exe" is OK but "foo" is an error. 24140 # 24141 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24142 # It is also a way to make sure we got the proper file name for the real test later on. 24143 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24144 if test "x$test_shortpath" = x; then 24145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24147 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24148 fi 24149 24150 # Call helper function which possibly converts this using DOS-style short mode. 24151 # If so, the updated path is stored in $new_path. 24152 24153 input_path="$new_path" 24154 # Check if we need to convert this using DOS-style short mode. If the path 24155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24156 # take no chances and rewrite it. 24157 # Note: m4 eats our [], so we need to use [ and ] instead. 24158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24159 if test "x$has_forbidden_chars" != x; then 24160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24164 # Going to short mode and back again did indeed matter. Since short mode is 24165 # case insensitive, let's make it lowercase to improve readability. 24166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24167 # Now convert it back to Unix-stile (cygpath) 24168 input_path=`$CYGPATH -u "$shortmode_path"` 24169 new_path="$input_path" 24170 fi 24171 fi 24172 24173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24174 if test "x$test_cygdrive_prefix" = x; then 24175 # As a simple fix, exclude /usr/bin since it's not a real path. 24176 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24178 # a path prefixed by /cygdrive for fixpath to work. 24179 new_path="$CYGWIN_ROOT_PATH$input_path" 24180 fi 24181 fi 24182 24183 24184 if test "x$path" != "x$new_path"; then 24185 BOOT_JDK="$new_path" 24186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24188 fi 24189 24190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24191 24192 path="$BOOT_JDK" 24193 has_colon=`$ECHO $path | $GREP ^.:` 24194 new_path="$path" 24195 if test "x$has_colon" = x; then 24196 # Not in mixed or Windows style, start by that. 24197 new_path=`cmd //c echo $path` 24198 fi 24199 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24210 fi 24211 24212 24213 windows_path="$new_path" 24214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24215 unix_path=`$CYGPATH -u "$windows_path"` 24216 new_path="$unix_path" 24217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24219 new_path="$unix_path" 24220 fi 24221 24222 if test "x$path" != "x$new_path"; then 24223 BOOT_JDK="$new_path" 24224 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24226 fi 24227 24228 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24229 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24230 24231 else 24232 # We're on a unix platform. Hooray! :) 24233 path="$BOOT_JDK" 24234 has_space=`$ECHO "$path" | $GREP " "` 24235 if test "x$has_space" != x; then 24236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24238 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24239 fi 24240 24241 # Use eval to expand a potential ~ 24242 eval path="$path" 24243 if test ! -f "$path" && test ! -d "$path"; then 24244 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24245 fi 24246 24247 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24248 fi 24249 24250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24251 $as_echo_n "checking for Boot JDK... " >&6; } 24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24253 $as_echo "$BOOT_JDK" >&6; } 24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24255 $as_echo_n "checking Boot JDK version... " >&6; } 24256 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24258 $as_echo "$BOOT_JDK_VERSION" >&6; } 24259 fi # end check jdk version 24260 fi # end check javac 24261 fi # end check java 24262 fi # end check boot jdk found 24263 fi 24264 24265 done 24266 fi 24267 24268 24269 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24270 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24271 # Do we have a bin/java? 24272 if test ! -x "$BOOT_JDK/bin/java"; then 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24275 BOOT_JDK_FOUND=no 24276 else 24277 # Do we have a bin/javac? 24278 if test ! -x "$BOOT_JDK/bin/javac"; then 24279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24281 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24282 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24283 BOOT_JDK_FOUND=no 24284 else 24285 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24286 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24287 24288 # Extra M4 quote needed to protect [] in grep expression. 24289 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24290 if test "x$FOUND_CORRECT_VERSION" = x; then 24291 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24293 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24294 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24295 BOOT_JDK_FOUND=no 24296 else 24297 # We're done! :-) 24298 BOOT_JDK_FOUND=yes 24299 24300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24301 24302 # Input might be given as Windows format, start by converting to 24303 # unix format. 24304 path="$BOOT_JDK" 24305 new_path=`$CYGPATH -u "$path"` 24306 24307 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24308 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24309 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24310 # "foo.exe" is OK but "foo" is an error. 24311 # 24312 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24313 # It is also a way to make sure we got the proper file name for the real test later on. 24314 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24315 if test "x$test_shortpath" = x; then 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24317 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24318 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24319 fi 24320 24321 # Call helper function which possibly converts this using DOS-style short mode. 24322 # If so, the updated path is stored in $new_path. 24323 24324 input_path="$new_path" 24325 # Check if we need to convert this using DOS-style short mode. If the path 24326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24327 # take no chances and rewrite it. 24328 # Note: m4 eats our [], so we need to use [ and ] instead. 24329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24330 if test "x$has_forbidden_chars" != x; then 24331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24335 # Going to short mode and back again did indeed matter. Since short mode is 24336 # case insensitive, let's make it lowercase to improve readability. 24337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24338 # Now convert it back to Unix-stile (cygpath) 24339 input_path=`$CYGPATH -u "$shortmode_path"` 24340 new_path="$input_path" 24341 fi 24342 fi 24343 24344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24345 if test "x$test_cygdrive_prefix" = x; then 24346 # As a simple fix, exclude /usr/bin since it's not a real path. 24347 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24349 # a path prefixed by /cygdrive for fixpath to work. 24350 new_path="$CYGWIN_ROOT_PATH$input_path" 24351 fi 24352 fi 24353 24354 24355 if test "x$path" != "x$new_path"; then 24356 BOOT_JDK="$new_path" 24357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24358 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24359 fi 24360 24361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24362 24363 path="$BOOT_JDK" 24364 has_colon=`$ECHO $path | $GREP ^.:` 24365 new_path="$path" 24366 if test "x$has_colon" = x; then 24367 # Not in mixed or Windows style, start by that. 24368 new_path=`cmd //c echo $path` 24369 fi 24370 24371 24372 input_path="$new_path" 24373 # Check if we need to convert this using DOS-style short mode. If the path 24374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24375 # take no chances and rewrite it. 24376 # Note: m4 eats our [], so we need to use [ and ] instead. 24377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24378 if test "x$has_forbidden_chars" != x; then 24379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24381 fi 24382 24383 24384 windows_path="$new_path" 24385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24386 unix_path=`$CYGPATH -u "$windows_path"` 24387 new_path="$unix_path" 24388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24390 new_path="$unix_path" 24391 fi 24392 24393 if test "x$path" != "x$new_path"; then 24394 BOOT_JDK="$new_path" 24395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24396 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24397 fi 24398 24399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24401 24402 else 24403 # We're on a unix platform. Hooray! :) 24404 path="$BOOT_JDK" 24405 has_space=`$ECHO "$path" | $GREP " "` 24406 if test "x$has_space" != x; then 24407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24408 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24409 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24410 fi 24411 24412 # Use eval to expand a potential ~ 24413 eval path="$path" 24414 if test ! -f "$path" && test ! -d "$path"; then 24415 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24416 fi 24417 24418 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24419 fi 24420 24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24422 $as_echo_n "checking for Boot JDK... " >&6; } 24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24424 $as_echo "$BOOT_JDK" >&6; } 24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24426 $as_echo_n "checking Boot JDK version... " >&6; } 24427 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24429 $as_echo "$BOOT_JDK_VERSION" >&6; } 24430 fi # end check jdk version 24431 fi # end check javac 24432 fi # end check java 24433 fi # end check boot jdk found 24434 fi 24435 24436 24437 if test "x$BOOT_JDK_FOUND" = xno; then 24438 # Now execute the test 24439 24440 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24441 BOOT_JDK_SUFFIX="/Contents/Home" 24442 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24443 if test "x$ALL_JDKS_FOUND" != x; then 24444 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24445 24446 if test "x$BOOT_JDK_FOUND" = xno; then 24447 # Now execute the test 24448 24449 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24450 if test -d "$BOOT_JDK"; then 24451 BOOT_JDK_FOUND=maybe 24452 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24453 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24454 fi 24455 24456 24457 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24458 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24459 # Do we have a bin/java? 24460 if test ! -x "$BOOT_JDK/bin/java"; then 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24462 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24463 BOOT_JDK_FOUND=no 24464 else 24465 # Do we have a bin/javac? 24466 if test ! -x "$BOOT_JDK/bin/javac"; then 24467 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24469 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24470 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24471 BOOT_JDK_FOUND=no 24472 else 24473 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24474 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24475 24476 # Extra M4 quote needed to protect [] in grep expression. 24477 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24478 if test "x$FOUND_CORRECT_VERSION" = x; then 24479 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24480 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24481 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24482 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24483 BOOT_JDK_FOUND=no 24484 else 24485 # We're done! :-) 24486 BOOT_JDK_FOUND=yes 24487 24488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24489 24490 # Input might be given as Windows format, start by converting to 24491 # unix format. 24492 path="$BOOT_JDK" 24493 new_path=`$CYGPATH -u "$path"` 24494 24495 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24496 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24497 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24498 # "foo.exe" is OK but "foo" is an error. 24499 # 24500 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24501 # It is also a way to make sure we got the proper file name for the real test later on. 24502 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24503 if test "x$test_shortpath" = x; then 24504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24505 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24506 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24507 fi 24508 24509 # Call helper function which possibly converts this using DOS-style short mode. 24510 # If so, the updated path is stored in $new_path. 24511 24512 input_path="$new_path" 24513 # Check if we need to convert this using DOS-style short mode. If the path 24514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24515 # take no chances and rewrite it. 24516 # Note: m4 eats our [], so we need to use [ and ] instead. 24517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24518 if test "x$has_forbidden_chars" != x; then 24519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24520 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24521 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24522 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24523 # Going to short mode and back again did indeed matter. Since short mode is 24524 # case insensitive, let's make it lowercase to improve readability. 24525 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24526 # Now convert it back to Unix-stile (cygpath) 24527 input_path=`$CYGPATH -u "$shortmode_path"` 24528 new_path="$input_path" 24529 fi 24530 fi 24531 24532 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24533 if test "x$test_cygdrive_prefix" = x; then 24534 # As a simple fix, exclude /usr/bin since it's not a real path. 24535 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24536 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24537 # a path prefixed by /cygdrive for fixpath to work. 24538 new_path="$CYGWIN_ROOT_PATH$input_path" 24539 fi 24540 fi 24541 24542 24543 if test "x$path" != "x$new_path"; then 24544 BOOT_JDK="$new_path" 24545 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24546 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24547 fi 24548 24549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24550 24551 path="$BOOT_JDK" 24552 has_colon=`$ECHO $path | $GREP ^.:` 24553 new_path="$path" 24554 if test "x$has_colon" = x; then 24555 # Not in mixed or Windows style, start by that. 24556 new_path=`cmd //c echo $path` 24557 fi 24558 24559 24560 input_path="$new_path" 24561 # Check if we need to convert this using DOS-style short mode. If the path 24562 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24563 # take no chances and rewrite it. 24564 # Note: m4 eats our [], so we need to use [ and ] instead. 24565 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24566 if test "x$has_forbidden_chars" != x; then 24567 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24568 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24569 fi 24570 24571 24572 windows_path="$new_path" 24573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24574 unix_path=`$CYGPATH -u "$windows_path"` 24575 new_path="$unix_path" 24576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24577 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24578 new_path="$unix_path" 24579 fi 24580 24581 if test "x$path" != "x$new_path"; then 24582 BOOT_JDK="$new_path" 24583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24584 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24585 fi 24586 24587 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24588 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24589 24590 else 24591 # We're on a unix platform. Hooray! :) 24592 path="$BOOT_JDK" 24593 has_space=`$ECHO "$path" | $GREP " "` 24594 if test "x$has_space" != x; then 24595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24596 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24597 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24598 fi 24599 24600 # Use eval to expand a potential ~ 24601 eval path="$path" 24602 if test ! -f "$path" && test ! -d "$path"; then 24603 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24604 fi 24605 24606 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24607 fi 24608 24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24610 $as_echo_n "checking for Boot JDK... " >&6; } 24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24612 $as_echo "$BOOT_JDK" >&6; } 24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24614 $as_echo_n "checking Boot JDK version... " >&6; } 24615 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24617 $as_echo "$BOOT_JDK_VERSION" >&6; } 24618 fi # end check jdk version 24619 fi # end check javac 24620 fi # end check java 24621 fi # end check boot jdk found 24622 fi 24623 24624 done 24625 fi 24626 24627 24628 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24629 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24630 # Do we have a bin/java? 24631 if test ! -x "$BOOT_JDK/bin/java"; then 24632 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24633 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24634 BOOT_JDK_FOUND=no 24635 else 24636 # Do we have a bin/javac? 24637 if test ! -x "$BOOT_JDK/bin/javac"; then 24638 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24639 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24641 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24642 BOOT_JDK_FOUND=no 24643 else 24644 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24645 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24646 24647 # Extra M4 quote needed to protect [] in grep expression. 24648 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24649 if test "x$FOUND_CORRECT_VERSION" = x; then 24650 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24651 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24652 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24653 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24654 BOOT_JDK_FOUND=no 24655 else 24656 # We're done! :-) 24657 BOOT_JDK_FOUND=yes 24658 24659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24660 24661 # Input might be given as Windows format, start by converting to 24662 # unix format. 24663 path="$BOOT_JDK" 24664 new_path=`$CYGPATH -u "$path"` 24665 24666 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24667 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24668 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24669 # "foo.exe" is OK but "foo" is an error. 24670 # 24671 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24672 # It is also a way to make sure we got the proper file name for the real test later on. 24673 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24674 if test "x$test_shortpath" = x; then 24675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24676 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24677 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24678 fi 24679 24680 # Call helper function which possibly converts this using DOS-style short mode. 24681 # If so, the updated path is stored in $new_path. 24682 24683 input_path="$new_path" 24684 # Check if we need to convert this using DOS-style short mode. If the path 24685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24686 # take no chances and rewrite it. 24687 # Note: m4 eats our [], so we need to use [ and ] instead. 24688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24689 if test "x$has_forbidden_chars" != x; then 24690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24691 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24692 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24693 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24694 # Going to short mode and back again did indeed matter. Since short mode is 24695 # case insensitive, let's make it lowercase to improve readability. 24696 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24697 # Now convert it back to Unix-stile (cygpath) 24698 input_path=`$CYGPATH -u "$shortmode_path"` 24699 new_path="$input_path" 24700 fi 24701 fi 24702 24703 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24704 if test "x$test_cygdrive_prefix" = x; then 24705 # As a simple fix, exclude /usr/bin since it's not a real path. 24706 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24707 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24708 # a path prefixed by /cygdrive for fixpath to work. 24709 new_path="$CYGWIN_ROOT_PATH$input_path" 24710 fi 24711 fi 24712 24713 24714 if test "x$path" != "x$new_path"; then 24715 BOOT_JDK="$new_path" 24716 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24717 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24718 fi 24719 24720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24721 24722 path="$BOOT_JDK" 24723 has_colon=`$ECHO $path | $GREP ^.:` 24724 new_path="$path" 24725 if test "x$has_colon" = x; then 24726 # Not in mixed or Windows style, start by that. 24727 new_path=`cmd //c echo $path` 24728 fi 24729 24730 24731 input_path="$new_path" 24732 # Check if we need to convert this using DOS-style short mode. If the path 24733 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24734 # take no chances and rewrite it. 24735 # Note: m4 eats our [], so we need to use [ and ] instead. 24736 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24737 if test "x$has_forbidden_chars" != x; then 24738 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24739 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24740 fi 24741 24742 24743 windows_path="$new_path" 24744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24745 unix_path=`$CYGPATH -u "$windows_path"` 24746 new_path="$unix_path" 24747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24748 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24749 new_path="$unix_path" 24750 fi 24751 24752 if test "x$path" != "x$new_path"; then 24753 BOOT_JDK="$new_path" 24754 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24755 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24756 fi 24757 24758 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24759 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24760 24761 else 24762 # We're on a unix platform. Hooray! :) 24763 path="$BOOT_JDK" 24764 has_space=`$ECHO "$path" | $GREP " "` 24765 if test "x$has_space" != x; then 24766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24767 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24768 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24769 fi 24770 24771 # Use eval to expand a potential ~ 24772 eval path="$path" 24773 if test ! -f "$path" && test ! -d "$path"; then 24774 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24775 fi 24776 24777 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24778 fi 24779 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24781 $as_echo_n "checking for Boot JDK... " >&6; } 24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24783 $as_echo "$BOOT_JDK" >&6; } 24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24785 $as_echo_n "checking Boot JDK version... " >&6; } 24786 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24788 $as_echo "$BOOT_JDK_VERSION" >&6; } 24789 fi # end check jdk version 24790 fi # end check javac 24791 fi # end check java 24792 fi # end check boot jdk found 24793 fi 24794 24795 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24796 24797 if test "x$BOOT_JDK_FOUND" = xno; then 24798 # Now execute the test 24799 24800 BOOT_JDK_PREFIX="/usr/lib/jvm" 24801 BOOT_JDK_SUFFIX="" 24802 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24803 if test "x$ALL_JDKS_FOUND" != x; then 24804 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24805 24806 if test "x$BOOT_JDK_FOUND" = xno; then 24807 # Now execute the test 24808 24809 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24810 if test -d "$BOOT_JDK"; then 24811 BOOT_JDK_FOUND=maybe 24812 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24813 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24814 fi 24815 24816 24817 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24818 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24819 # Do we have a bin/java? 24820 if test ! -x "$BOOT_JDK/bin/java"; then 24821 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24822 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24823 BOOT_JDK_FOUND=no 24824 else 24825 # Do we have a bin/javac? 24826 if test ! -x "$BOOT_JDK/bin/javac"; then 24827 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24828 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24829 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24830 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24831 BOOT_JDK_FOUND=no 24832 else 24833 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24834 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24835 24836 # Extra M4 quote needed to protect [] in grep expression. 24837 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24838 if test "x$FOUND_CORRECT_VERSION" = x; then 24839 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24840 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24841 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24842 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24843 BOOT_JDK_FOUND=no 24844 else 24845 # We're done! :-) 24846 BOOT_JDK_FOUND=yes 24847 24848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24849 24850 # Input might be given as Windows format, start by converting to 24851 # unix format. 24852 path="$BOOT_JDK" 24853 new_path=`$CYGPATH -u "$path"` 24854 24855 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24856 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24857 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24858 # "foo.exe" is OK but "foo" is an error. 24859 # 24860 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24861 # It is also a way to make sure we got the proper file name for the real test later on. 24862 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24863 if test "x$test_shortpath" = x; then 24864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24865 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24866 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24867 fi 24868 24869 # Call helper function which possibly converts this using DOS-style short mode. 24870 # If so, the updated path is stored in $new_path. 24871 24872 input_path="$new_path" 24873 # Check if we need to convert this using DOS-style short mode. If the path 24874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24875 # take no chances and rewrite it. 24876 # Note: m4 eats our [], so we need to use [ and ] instead. 24877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24878 if test "x$has_forbidden_chars" != x; then 24879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24880 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24881 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24882 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24883 # Going to short mode and back again did indeed matter. Since short mode is 24884 # case insensitive, let's make it lowercase to improve readability. 24885 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24886 # Now convert it back to Unix-stile (cygpath) 24887 input_path=`$CYGPATH -u "$shortmode_path"` 24888 new_path="$input_path" 24889 fi 24890 fi 24891 24892 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24893 if test "x$test_cygdrive_prefix" = x; then 24894 # As a simple fix, exclude /usr/bin since it's not a real path. 24895 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24896 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24897 # a path prefixed by /cygdrive for fixpath to work. 24898 new_path="$CYGWIN_ROOT_PATH$input_path" 24899 fi 24900 fi 24901 24902 24903 if test "x$path" != "x$new_path"; then 24904 BOOT_JDK="$new_path" 24905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24906 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24907 fi 24908 24909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24910 24911 path="$BOOT_JDK" 24912 has_colon=`$ECHO $path | $GREP ^.:` 24913 new_path="$path" 24914 if test "x$has_colon" = x; then 24915 # Not in mixed or Windows style, start by that. 24916 new_path=`cmd //c echo $path` 24917 fi 24918 24919 24920 input_path="$new_path" 24921 # Check if we need to convert this using DOS-style short mode. If the path 24922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24923 # take no chances and rewrite it. 24924 # Note: m4 eats our [], so we need to use [ and ] instead. 24925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24926 if test "x$has_forbidden_chars" != x; then 24927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24929 fi 24930 24931 24932 windows_path="$new_path" 24933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24934 unix_path=`$CYGPATH -u "$windows_path"` 24935 new_path="$unix_path" 24936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24938 new_path="$unix_path" 24939 fi 24940 24941 if test "x$path" != "x$new_path"; then 24942 BOOT_JDK="$new_path" 24943 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24944 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24945 fi 24946 24947 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24948 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24949 24950 else 24951 # We're on a unix platform. Hooray! :) 24952 path="$BOOT_JDK" 24953 has_space=`$ECHO "$path" | $GREP " "` 24954 if test "x$has_space" != x; then 24955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24956 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24957 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24958 fi 24959 24960 # Use eval to expand a potential ~ 24961 eval path="$path" 24962 if test ! -f "$path" && test ! -d "$path"; then 24963 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24964 fi 24965 24966 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24967 fi 24968 24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24970 $as_echo_n "checking for Boot JDK... " >&6; } 24971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24972 $as_echo "$BOOT_JDK" >&6; } 24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24974 $as_echo_n "checking Boot JDK version... " >&6; } 24975 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24977 $as_echo "$BOOT_JDK_VERSION" >&6; } 24978 fi # end check jdk version 24979 fi # end check javac 24980 fi # end check java 24981 fi # end check boot jdk found 24982 fi 24983 24984 done 24985 fi 24986 24987 24988 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24989 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24990 # Do we have a bin/java? 24991 if test ! -x "$BOOT_JDK/bin/java"; then 24992 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24993 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24994 BOOT_JDK_FOUND=no 24995 else 24996 # Do we have a bin/javac? 24997 if test ! -x "$BOOT_JDK/bin/javac"; then 24998 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24999 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25000 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25001 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25002 BOOT_JDK_FOUND=no 25003 else 25004 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25005 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25006 25007 # Extra M4 quote needed to protect [] in grep expression. 25008 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25009 if test "x$FOUND_CORRECT_VERSION" = x; then 25010 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25011 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25012 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25013 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25014 BOOT_JDK_FOUND=no 25015 else 25016 # We're done! :-) 25017 BOOT_JDK_FOUND=yes 25018 25019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25020 25021 # Input might be given as Windows format, start by converting to 25022 # unix format. 25023 path="$BOOT_JDK" 25024 new_path=`$CYGPATH -u "$path"` 25025 25026 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25027 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25028 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25029 # "foo.exe" is OK but "foo" is an error. 25030 # 25031 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25032 # It is also a way to make sure we got the proper file name for the real test later on. 25033 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25034 if test "x$test_shortpath" = x; then 25035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25036 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25037 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25038 fi 25039 25040 # Call helper function which possibly converts this using DOS-style short mode. 25041 # If so, the updated path is stored in $new_path. 25042 25043 input_path="$new_path" 25044 # Check if we need to convert this using DOS-style short mode. If the path 25045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25046 # take no chances and rewrite it. 25047 # Note: m4 eats our [], so we need to use [ and ] instead. 25048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25049 if test "x$has_forbidden_chars" != x; then 25050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25051 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25052 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25053 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25054 # Going to short mode and back again did indeed matter. Since short mode is 25055 # case insensitive, let's make it lowercase to improve readability. 25056 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25057 # Now convert it back to Unix-stile (cygpath) 25058 input_path=`$CYGPATH -u "$shortmode_path"` 25059 new_path="$input_path" 25060 fi 25061 fi 25062 25063 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25064 if test "x$test_cygdrive_prefix" = x; then 25065 # As a simple fix, exclude /usr/bin since it's not a real path. 25066 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25067 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25068 # a path prefixed by /cygdrive for fixpath to work. 25069 new_path="$CYGWIN_ROOT_PATH$input_path" 25070 fi 25071 fi 25072 25073 25074 if test "x$path" != "x$new_path"; then 25075 BOOT_JDK="$new_path" 25076 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25077 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25078 fi 25079 25080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25081 25082 path="$BOOT_JDK" 25083 has_colon=`$ECHO $path | $GREP ^.:` 25084 new_path="$path" 25085 if test "x$has_colon" = x; then 25086 # Not in mixed or Windows style, start by that. 25087 new_path=`cmd //c echo $path` 25088 fi 25089 25090 25091 input_path="$new_path" 25092 # Check if we need to convert this using DOS-style short mode. If the path 25093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25094 # take no chances and rewrite it. 25095 # Note: m4 eats our [], so we need to use [ and ] instead. 25096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25097 if test "x$has_forbidden_chars" != x; then 25098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25099 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25100 fi 25101 25102 25103 windows_path="$new_path" 25104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25105 unix_path=`$CYGPATH -u "$windows_path"` 25106 new_path="$unix_path" 25107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25108 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25109 new_path="$unix_path" 25110 fi 25111 25112 if test "x$path" != "x$new_path"; then 25113 BOOT_JDK="$new_path" 25114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25115 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25116 fi 25117 25118 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25119 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25120 25121 else 25122 # We're on a unix platform. Hooray! :) 25123 path="$BOOT_JDK" 25124 has_space=`$ECHO "$path" | $GREP " "` 25125 if test "x$has_space" != x; then 25126 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25127 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25128 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25129 fi 25130 25131 # Use eval to expand a potential ~ 25132 eval path="$path" 25133 if test ! -f "$path" && test ! -d "$path"; then 25134 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25135 fi 25136 25137 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25138 fi 25139 25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25141 $as_echo_n "checking for Boot JDK... " >&6; } 25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25143 $as_echo "$BOOT_JDK" >&6; } 25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25145 $as_echo_n "checking Boot JDK version... " >&6; } 25146 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25148 $as_echo "$BOOT_JDK_VERSION" >&6; } 25149 fi # end check jdk version 25150 fi # end check javac 25151 fi # end check java 25152 fi # end check boot jdk found 25153 fi 25154 25155 fi 25156 25157 25158 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25159 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25160 # Do we have a bin/java? 25161 if test ! -x "$BOOT_JDK/bin/java"; then 25162 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25163 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25164 BOOT_JDK_FOUND=no 25165 else 25166 # Do we have a bin/javac? 25167 if test ! -x "$BOOT_JDK/bin/javac"; then 25168 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25170 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25171 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25172 BOOT_JDK_FOUND=no 25173 else 25174 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25175 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25176 25177 # Extra M4 quote needed to protect [] in grep expression. 25178 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25179 if test "x$FOUND_CORRECT_VERSION" = x; then 25180 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25181 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25183 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25184 BOOT_JDK_FOUND=no 25185 else 25186 # We're done! :-) 25187 BOOT_JDK_FOUND=yes 25188 25189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25190 25191 # Input might be given as Windows format, start by converting to 25192 # unix format. 25193 path="$BOOT_JDK" 25194 new_path=`$CYGPATH -u "$path"` 25195 25196 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25197 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25198 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25199 # "foo.exe" is OK but "foo" is an error. 25200 # 25201 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25202 # It is also a way to make sure we got the proper file name for the real test later on. 25203 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25204 if test "x$test_shortpath" = x; then 25205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25206 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25207 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25208 fi 25209 25210 # Call helper function which possibly converts this using DOS-style short mode. 25211 # If so, the updated path is stored in $new_path. 25212 25213 input_path="$new_path" 25214 # Check if we need to convert this using DOS-style short mode. If the path 25215 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25216 # take no chances and rewrite it. 25217 # Note: m4 eats our [], so we need to use [ and ] instead. 25218 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25219 if test "x$has_forbidden_chars" != x; then 25220 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25221 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25222 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25223 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25224 # Going to short mode and back again did indeed matter. Since short mode is 25225 # case insensitive, let's make it lowercase to improve readability. 25226 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25227 # Now convert it back to Unix-stile (cygpath) 25228 input_path=`$CYGPATH -u "$shortmode_path"` 25229 new_path="$input_path" 25230 fi 25231 fi 25232 25233 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25234 if test "x$test_cygdrive_prefix" = x; then 25235 # As a simple fix, exclude /usr/bin since it's not a real path. 25236 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25237 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25238 # a path prefixed by /cygdrive for fixpath to work. 25239 new_path="$CYGWIN_ROOT_PATH$input_path" 25240 fi 25241 fi 25242 25243 25244 if test "x$path" != "x$new_path"; then 25245 BOOT_JDK="$new_path" 25246 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25247 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25248 fi 25249 25250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25251 25252 path="$BOOT_JDK" 25253 has_colon=`$ECHO $path | $GREP ^.:` 25254 new_path="$path" 25255 if test "x$has_colon" = x; then 25256 # Not in mixed or Windows style, start by that. 25257 new_path=`cmd //c echo $path` 25258 fi 25259 25260 25261 input_path="$new_path" 25262 # Check if we need to convert this using DOS-style short mode. If the path 25263 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25264 # take no chances and rewrite it. 25265 # Note: m4 eats our [], so we need to use [ and ] instead. 25266 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25267 if test "x$has_forbidden_chars" != x; then 25268 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25269 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25270 fi 25271 25272 25273 windows_path="$new_path" 25274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25275 unix_path=`$CYGPATH -u "$windows_path"` 25276 new_path="$unix_path" 25277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25278 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25279 new_path="$unix_path" 25280 fi 25281 25282 if test "x$path" != "x$new_path"; then 25283 BOOT_JDK="$new_path" 25284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25285 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25286 fi 25287 25288 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25289 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25290 25291 else 25292 # We're on a unix platform. Hooray! :) 25293 path="$BOOT_JDK" 25294 has_space=`$ECHO "$path" | $GREP " "` 25295 if test "x$has_space" != x; then 25296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25297 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25298 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25299 fi 25300 25301 # Use eval to expand a potential ~ 25302 eval path="$path" 25303 if test ! -f "$path" && test ! -d "$path"; then 25304 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25305 fi 25306 25307 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25308 fi 25309 25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25311 $as_echo_n "checking for Boot JDK... " >&6; } 25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25313 $as_echo "$BOOT_JDK" >&6; } 25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25315 $as_echo_n "checking Boot JDK version... " >&6; } 25316 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25318 $as_echo "$BOOT_JDK_VERSION" >&6; } 25319 fi # end check jdk version 25320 fi # end check javac 25321 fi # end check java 25322 fi # end check boot jdk found 25323 fi 25324 25325 25326 # If we haven't found anything yet, we've truly lost. Give up. 25327 if test "x$BOOT_JDK_FOUND" = xno; then 25328 25329 # Print a helpful message on how to acquire the necessary build dependency. 25330 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25331 MISSING_DEPENDENCY=openjdk 25332 25333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25334 cygwin_help $MISSING_DEPENDENCY 25335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25336 msys_help $MISSING_DEPENDENCY 25337 else 25338 PKGHANDLER_COMMAND= 25339 25340 case $PKGHANDLER in 25341 apt-get) 25342 apt_help $MISSING_DEPENDENCY ;; 25343 yum) 25344 yum_help $MISSING_DEPENDENCY ;; 25345 port) 25346 port_help $MISSING_DEPENDENCY ;; 25347 pkgutil) 25348 pkgutil_help $MISSING_DEPENDENCY ;; 25349 pkgadd) 25350 pkgadd_help $MISSING_DEPENDENCY ;; 25351 esac 25352 25353 if test "x$PKGHANDLER_COMMAND" != x; then 25354 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25355 fi 25356 fi 25357 25358 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25359 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25360 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25361 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25362 as_fn_error $? "Cannot continue" "$LINENO" 5 25363 fi 25364 25365 25366 25367 # Setup tools from the Boot JDK. 25368 25369 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25370 25371 # Publish this variable in the help. 25372 25373 25374 if test "x$JAVA" = x; then 25375 # The variable is not set by user, try to locate tool using the code snippet 25376 25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25378 $as_echo_n "checking for java in Boot JDK... " >&6; } 25379 JAVA=$BOOT_JDK/bin/java 25380 if test ! -x $JAVA; then 25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25382 $as_echo "not found" >&6; } 25383 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25384 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25385 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25386 fi 25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25388 $as_echo "ok" >&6; } 25389 25390 25391 else 25392 # The variable is set, but is it from the command line or the environment? 25393 25394 # Try to remove the string !JAVA! from our list. 25395 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25396 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25397 # If it failed, the variable was not from the command line. Ignore it, 25398 # but warn the user (except for BASH, which is always set by the calling BASH). 25399 if test "xJAVA" != xBASH; then 25400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25401 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25402 fi 25403 # Try to locate tool using the code snippet 25404 25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25406 $as_echo_n "checking for java in Boot JDK... " >&6; } 25407 JAVA=$BOOT_JDK/bin/java 25408 if test ! -x $JAVA; then 25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25410 $as_echo "not found" >&6; } 25411 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25412 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25413 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25414 fi 25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25416 $as_echo "ok" >&6; } 25417 25418 25419 else 25420 # If it succeeded, then it was overridden by the user. We will use it 25421 # for the tool. 25422 25423 # First remove it from the list of overridden variables, so we can test 25424 # for unknown variables in the end. 25425 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25426 25427 # Check if the provided tool contains a complete path. 25428 tool_specified="$JAVA" 25429 tool_basename="${tool_specified##*/}" 25430 if test "x$tool_basename" = "x$tool_specified"; then 25431 # A command without a complete path is provided, search $PATH. 25432 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25433 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25434 # Extract the first word of "$tool_basename", so it can be a program name with args. 25435 set dummy $tool_basename; ac_word=$2 25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25437 $as_echo_n "checking for $ac_word... " >&6; } 25438 if ${ac_cv_path_JAVA+:} false; then : 25439 $as_echo_n "(cached) " >&6 25440 else 25441 case $JAVA in 25442 [\\/]* | ?:[\\/]*) 25443 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25444 ;; 25445 *) 25446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25447 for as_dir in $PATH 25448 do 25449 IFS=$as_save_IFS 25450 test -z "$as_dir" && as_dir=. 25451 for ac_exec_ext in '' $ac_executable_extensions; do 25452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25453 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25455 break 2 25456 fi 25457 done 25458 done 25459 IFS=$as_save_IFS 25460 25461 ;; 25462 esac 25463 fi 25464 JAVA=$ac_cv_path_JAVA 25465 if test -n "$JAVA"; then 25466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25467 $as_echo "$JAVA" >&6; } 25468 else 25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25470 $as_echo "no" >&6; } 25471 fi 25472 25473 25474 if test "x$JAVA" = x; then 25475 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25476 fi 25477 else 25478 # Otherwise we believe it is a complete path. Use it as it is. 25479 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25480 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25482 $as_echo_n "checking for JAVA... " >&6; } 25483 if test ! -x "$tool_specified"; then 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25485 $as_echo "not found" >&6; } 25486 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25487 fi 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25489 $as_echo "$tool_specified" >&6; } 25490 fi 25491 fi 25492 fi 25493 25494 25495 25496 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25497 25498 # Publish this variable in the help. 25499 25500 25501 if test "x$JAVAC" = x; then 25502 # The variable is not set by user, try to locate tool using the code snippet 25503 25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25505 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25506 JAVAC=$BOOT_JDK/bin/javac 25507 if test ! -x $JAVAC; then 25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25509 $as_echo "not found" >&6; } 25510 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25511 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25512 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25513 fi 25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25515 $as_echo "ok" >&6; } 25516 25517 25518 else 25519 # The variable is set, but is it from the command line or the environment? 25520 25521 # Try to remove the string !JAVAC! from our list. 25522 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25523 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25524 # If it failed, the variable was not from the command line. Ignore it, 25525 # but warn the user (except for BASH, which is always set by the calling BASH). 25526 if test "xJAVAC" != xBASH; then 25527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25528 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25529 fi 25530 # Try to locate tool using the code snippet 25531 25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25533 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25534 JAVAC=$BOOT_JDK/bin/javac 25535 if test ! -x $JAVAC; then 25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25537 $as_echo "not found" >&6; } 25538 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25539 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25540 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25541 fi 25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25543 $as_echo "ok" >&6; } 25544 25545 25546 else 25547 # If it succeeded, then it was overridden by the user. We will use it 25548 # for the tool. 25549 25550 # First remove it from the list of overridden variables, so we can test 25551 # for unknown variables in the end. 25552 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25553 25554 # Check if the provided tool contains a complete path. 25555 tool_specified="$JAVAC" 25556 tool_basename="${tool_specified##*/}" 25557 if test "x$tool_basename" = "x$tool_specified"; then 25558 # A command without a complete path is provided, search $PATH. 25559 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25560 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25561 # Extract the first word of "$tool_basename", so it can be a program name with args. 25562 set dummy $tool_basename; ac_word=$2 25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25564 $as_echo_n "checking for $ac_word... " >&6; } 25565 if ${ac_cv_path_JAVAC+:} false; then : 25566 $as_echo_n "(cached) " >&6 25567 else 25568 case $JAVAC in 25569 [\\/]* | ?:[\\/]*) 25570 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25571 ;; 25572 *) 25573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25574 for as_dir in $PATH 25575 do 25576 IFS=$as_save_IFS 25577 test -z "$as_dir" && as_dir=. 25578 for ac_exec_ext in '' $ac_executable_extensions; do 25579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25580 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25582 break 2 25583 fi 25584 done 25585 done 25586 IFS=$as_save_IFS 25587 25588 ;; 25589 esac 25590 fi 25591 JAVAC=$ac_cv_path_JAVAC 25592 if test -n "$JAVAC"; then 25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25594 $as_echo "$JAVAC" >&6; } 25595 else 25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25597 $as_echo "no" >&6; } 25598 fi 25599 25600 25601 if test "x$JAVAC" = x; then 25602 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25603 fi 25604 else 25605 # Otherwise we believe it is a complete path. Use it as it is. 25606 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25607 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25609 $as_echo_n "checking for JAVAC... " >&6; } 25610 if test ! -x "$tool_specified"; then 25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25612 $as_echo "not found" >&6; } 25613 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25614 fi 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25616 $as_echo "$tool_specified" >&6; } 25617 fi 25618 fi 25619 fi 25620 25621 25622 25623 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25624 25625 # Publish this variable in the help. 25626 25627 25628 if test "x$JAVAH" = x; then 25629 # The variable is not set by user, try to locate tool using the code snippet 25630 25631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25632 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25633 JAVAH=$BOOT_JDK/bin/javah 25634 if test ! -x $JAVAH; then 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25636 $as_echo "not found" >&6; } 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25638 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25639 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25640 fi 25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25642 $as_echo "ok" >&6; } 25643 25644 25645 else 25646 # The variable is set, but is it from the command line or the environment? 25647 25648 # Try to remove the string !JAVAH! from our list. 25649 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25650 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25651 # If it failed, the variable was not from the command line. Ignore it, 25652 # but warn the user (except for BASH, which is always set by the calling BASH). 25653 if test "xJAVAH" != xBASH; then 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25655 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25656 fi 25657 # Try to locate tool using the code snippet 25658 25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25660 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25661 JAVAH=$BOOT_JDK/bin/javah 25662 if test ! -x $JAVAH; then 25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25664 $as_echo "not found" >&6; } 25665 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25666 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25667 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25668 fi 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25670 $as_echo "ok" >&6; } 25671 25672 25673 else 25674 # If it succeeded, then it was overridden by the user. We will use it 25675 # for the tool. 25676 25677 # First remove it from the list of overridden variables, so we can test 25678 # for unknown variables in the end. 25679 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25680 25681 # Check if the provided tool contains a complete path. 25682 tool_specified="$JAVAH" 25683 tool_basename="${tool_specified##*/}" 25684 if test "x$tool_basename" = "x$tool_specified"; then 25685 # A command without a complete path is provided, search $PATH. 25686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25687 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25688 # Extract the first word of "$tool_basename", so it can be a program name with args. 25689 set dummy $tool_basename; ac_word=$2 25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25691 $as_echo_n "checking for $ac_word... " >&6; } 25692 if ${ac_cv_path_JAVAH+:} false; then : 25693 $as_echo_n "(cached) " >&6 25694 else 25695 case $JAVAH in 25696 [\\/]* | ?:[\\/]*) 25697 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25698 ;; 25699 *) 25700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25701 for as_dir in $PATH 25702 do 25703 IFS=$as_save_IFS 25704 test -z "$as_dir" && as_dir=. 25705 for ac_exec_ext in '' $ac_executable_extensions; do 25706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25707 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25709 break 2 25710 fi 25711 done 25712 done 25713 IFS=$as_save_IFS 25714 25715 ;; 25716 esac 25717 fi 25718 JAVAH=$ac_cv_path_JAVAH 25719 if test -n "$JAVAH"; then 25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25721 $as_echo "$JAVAH" >&6; } 25722 else 25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25724 $as_echo "no" >&6; } 25725 fi 25726 25727 25728 if test "x$JAVAH" = x; then 25729 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25730 fi 25731 else 25732 # Otherwise we believe it is a complete path. Use it as it is. 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25734 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25736 $as_echo_n "checking for JAVAH... " >&6; } 25737 if test ! -x "$tool_specified"; then 25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25739 $as_echo "not found" >&6; } 25740 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25741 fi 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25743 $as_echo "$tool_specified" >&6; } 25744 fi 25745 fi 25746 fi 25747 25748 25749 25750 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25751 25752 # Publish this variable in the help. 25753 25754 25755 if test "x$JAR" = x; then 25756 # The variable is not set by user, try to locate tool using the code snippet 25757 25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25759 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25760 JAR=$BOOT_JDK/bin/jar 25761 if test ! -x $JAR; then 25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25763 $as_echo "not found" >&6; } 25764 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25765 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25766 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25767 fi 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25769 $as_echo "ok" >&6; } 25770 25771 25772 else 25773 # The variable is set, but is it from the command line or the environment? 25774 25775 # Try to remove the string !JAR! from our list. 25776 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25777 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25778 # If it failed, the variable was not from the command line. Ignore it, 25779 # but warn the user (except for BASH, which is always set by the calling BASH). 25780 if test "xJAR" != xBASH; then 25781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25782 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25783 fi 25784 # Try to locate tool using the code snippet 25785 25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25787 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25788 JAR=$BOOT_JDK/bin/jar 25789 if test ! -x $JAR; then 25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25791 $as_echo "not found" >&6; } 25792 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25793 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25794 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25795 fi 25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25797 $as_echo "ok" >&6; } 25798 25799 25800 else 25801 # If it succeeded, then it was overridden by the user. We will use it 25802 # for the tool. 25803 25804 # First remove it from the list of overridden variables, so we can test 25805 # for unknown variables in the end. 25806 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25807 25808 # Check if the provided tool contains a complete path. 25809 tool_specified="$JAR" 25810 tool_basename="${tool_specified##*/}" 25811 if test "x$tool_basename" = "x$tool_specified"; then 25812 # A command without a complete path is provided, search $PATH. 25813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25814 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25815 # Extract the first word of "$tool_basename", so it can be a program name with args. 25816 set dummy $tool_basename; ac_word=$2 25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25818 $as_echo_n "checking for $ac_word... " >&6; } 25819 if ${ac_cv_path_JAR+:} false; then : 25820 $as_echo_n "(cached) " >&6 25821 else 25822 case $JAR in 25823 [\\/]* | ?:[\\/]*) 25824 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25825 ;; 25826 *) 25827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25828 for as_dir in $PATH 25829 do 25830 IFS=$as_save_IFS 25831 test -z "$as_dir" && as_dir=. 25832 for ac_exec_ext in '' $ac_executable_extensions; do 25833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25834 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25836 break 2 25837 fi 25838 done 25839 done 25840 IFS=$as_save_IFS 25841 25842 ;; 25843 esac 25844 fi 25845 JAR=$ac_cv_path_JAR 25846 if test -n "$JAR"; then 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25848 $as_echo "$JAR" >&6; } 25849 else 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25851 $as_echo "no" >&6; } 25852 fi 25853 25854 25855 if test "x$JAR" = x; then 25856 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25857 fi 25858 else 25859 # Otherwise we believe it is a complete path. Use it as it is. 25860 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25861 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25863 $as_echo_n "checking for JAR... " >&6; } 25864 if test ! -x "$tool_specified"; then 25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25866 $as_echo "not found" >&6; } 25867 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25868 fi 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25870 $as_echo "$tool_specified" >&6; } 25871 fi 25872 fi 25873 fi 25874 25875 25876 25877 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25878 25879 # Publish this variable in the help. 25880 25881 25882 if test "x$NATIVE2ASCII" = x; then 25883 # The variable is not set by user, try to locate tool using the code snippet 25884 25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25886 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25887 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25888 if test ! -x $NATIVE2ASCII; then 25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25890 $as_echo "not found" >&6; } 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25892 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25893 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25894 fi 25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25896 $as_echo "ok" >&6; } 25897 25898 25899 else 25900 # The variable is set, but is it from the command line or the environment? 25901 25902 # Try to remove the string !NATIVE2ASCII! from our list. 25903 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25904 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25905 # If it failed, the variable was not from the command line. Ignore it, 25906 # but warn the user (except for BASH, which is always set by the calling BASH). 25907 if test "xNATIVE2ASCII" != xBASH; then 25908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25909 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25910 fi 25911 # Try to locate tool using the code snippet 25912 25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25914 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25915 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25916 if test ! -x $NATIVE2ASCII; then 25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25918 $as_echo "not found" >&6; } 25919 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25920 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25921 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25922 fi 25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25924 $as_echo "ok" >&6; } 25925 25926 25927 else 25928 # If it succeeded, then it was overridden by the user. We will use it 25929 # for the tool. 25930 25931 # First remove it from the list of overridden variables, so we can test 25932 # for unknown variables in the end. 25933 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25934 25935 # Check if the provided tool contains a complete path. 25936 tool_specified="$NATIVE2ASCII" 25937 tool_basename="${tool_specified##*/}" 25938 if test "x$tool_basename" = "x$tool_specified"; then 25939 # A command without a complete path is provided, search $PATH. 25940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 25941 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 25942 # Extract the first word of "$tool_basename", so it can be a program name with args. 25943 set dummy $tool_basename; ac_word=$2 25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25945 $as_echo_n "checking for $ac_word... " >&6; } 25946 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 25947 $as_echo_n "(cached) " >&6 25948 else 25949 case $NATIVE2ASCII in 25950 [\\/]* | ?:[\\/]*) 25951 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 25952 ;; 25953 *) 25954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25955 for as_dir in $PATH 25956 do 25957 IFS=$as_save_IFS 25958 test -z "$as_dir" && as_dir=. 25959 for ac_exec_ext in '' $ac_executable_extensions; do 25960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25961 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 25962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25963 break 2 25964 fi 25965 done 25966 done 25967 IFS=$as_save_IFS 25968 25969 ;; 25970 esac 25971 fi 25972 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 25973 if test -n "$NATIVE2ASCII"; then 25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 25975 $as_echo "$NATIVE2ASCII" >&6; } 25976 else 25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25978 $as_echo "no" >&6; } 25979 fi 25980 25981 25982 if test "x$NATIVE2ASCII" = x; then 25983 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25984 fi 25985 else 25986 # Otherwise we believe it is a complete path. Use it as it is. 25987 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 25988 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 25990 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 25991 if test ! -x "$tool_specified"; then 25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25993 $as_echo "not found" >&6; } 25994 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 25995 fi 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25997 $as_echo "$tool_specified" >&6; } 25998 fi 25999 fi 26000 fi 26001 26002 26003 26004 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26005 26006 # Publish this variable in the help. 26007 26008 26009 if test "x$JARSIGNER" = x; then 26010 # The variable is not set by user, try to locate tool using the code snippet 26011 26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26013 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26014 JARSIGNER=$BOOT_JDK/bin/jarsigner 26015 if test ! -x $JARSIGNER; then 26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26017 $as_echo "not found" >&6; } 26018 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26019 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26020 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26021 fi 26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26023 $as_echo "ok" >&6; } 26024 26025 26026 else 26027 # The variable is set, but is it from the command line or the environment? 26028 26029 # Try to remove the string !JARSIGNER! from our list. 26030 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26031 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26032 # If it failed, the variable was not from the command line. Ignore it, 26033 # but warn the user (except for BASH, which is always set by the calling BASH). 26034 if test "xJARSIGNER" != xBASH; then 26035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26036 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26037 fi 26038 # Try to locate tool using the code snippet 26039 26040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26041 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26042 JARSIGNER=$BOOT_JDK/bin/jarsigner 26043 if test ! -x $JARSIGNER; then 26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26045 $as_echo "not found" >&6; } 26046 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26047 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26048 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26049 fi 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26051 $as_echo "ok" >&6; } 26052 26053 26054 else 26055 # If it succeeded, then it was overridden by the user. We will use it 26056 # for the tool. 26057 26058 # First remove it from the list of overridden variables, so we can test 26059 # for unknown variables in the end. 26060 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26061 26062 # Check if the provided tool contains a complete path. 26063 tool_specified="$JARSIGNER" 26064 tool_basename="${tool_specified##*/}" 26065 if test "x$tool_basename" = "x$tool_specified"; then 26066 # A command without a complete path is provided, search $PATH. 26067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26068 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26069 # Extract the first word of "$tool_basename", so it can be a program name with args. 26070 set dummy $tool_basename; ac_word=$2 26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26072 $as_echo_n "checking for $ac_word... " >&6; } 26073 if ${ac_cv_path_JARSIGNER+:} false; then : 26074 $as_echo_n "(cached) " >&6 26075 else 26076 case $JARSIGNER in 26077 [\\/]* | ?:[\\/]*) 26078 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26079 ;; 26080 *) 26081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26082 for as_dir in $PATH 26083 do 26084 IFS=$as_save_IFS 26085 test -z "$as_dir" && as_dir=. 26086 for ac_exec_ext in '' $ac_executable_extensions; do 26087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26088 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26090 break 2 26091 fi 26092 done 26093 done 26094 IFS=$as_save_IFS 26095 26096 ;; 26097 esac 26098 fi 26099 JARSIGNER=$ac_cv_path_JARSIGNER 26100 if test -n "$JARSIGNER"; then 26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26102 $as_echo "$JARSIGNER" >&6; } 26103 else 26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26105 $as_echo "no" >&6; } 26106 fi 26107 26108 26109 if test "x$JARSIGNER" = x; then 26110 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26111 fi 26112 else 26113 # Otherwise we believe it is a complete path. Use it as it is. 26114 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26115 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26117 $as_echo_n "checking for JARSIGNER... " >&6; } 26118 if test ! -x "$tool_specified"; then 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26120 $as_echo "not found" >&6; } 26121 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26122 fi 26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26124 $as_echo "$tool_specified" >&6; } 26125 fi 26126 fi 26127 fi 26128 26129 26130 26131 # Finally, set some other options... 26132 26133 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26134 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26135 26136 26137 26138 26139 ############################################################################### 26140 # 26141 # Configure the sources to use. We can add or override individual directories. 26142 # 26143 ############################################################################### 26144 26145 26146 # Where are the sources. Any of these can be overridden 26147 # using --with-override-corba and the likes. 26148 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26149 CORBA_TOPDIR="$SRC_ROOT/corba" 26150 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26151 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26152 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26153 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26154 JDK_TOPDIR="$SRC_ROOT/jdk" 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 ############################################################################### 26166 # 26167 # Pickup additional source for a component from outside of the source root 26168 # or override source for a component. 26169 # 26170 26171 # Check whether --with-add-source-root was given. 26172 if test "${with_add_source_root+set}" = set; then : 26173 withval=$with_add_source_root; 26174 fi 26175 26176 26177 26178 # Check whether --with-override-source-root was given. 26179 if test "${with_override_source_root+set}" = set; then : 26180 withval=$with_override_source_root; 26181 fi 26182 26183 26184 26185 # Check whether --with-adds-and-overrides was given. 26186 if test "${with_adds_and_overrides+set}" = set; then : 26187 withval=$with_adds_and_overrides; 26188 fi 26189 26190 26191 if test "x$with_adds_and_overrides" != x; then 26192 with_add_source_root="$with_adds_and_overrides/adds" 26193 with_override_source_root="$with_adds_and_overrides/overrides" 26194 fi 26195 26196 if test "x$with_add_source_root" != x; then 26197 if ! test -d $with_add_source_root; then 26198 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26199 fi 26200 CURDIR="$PWD" 26201 cd "$with_add_source_root" 26202 ADD_SRC_ROOT="`pwd`" 26203 cd "$CURDIR" 26204 # Verify that the addon source root does not have any root makefiles. 26205 # If it does, then it is usually an error, prevent this. 26206 if test -f $with_add_source_root/langtools/make/Makefile; then 26207 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 26208 fi 26209 if test -f $with_add_source_root/corba/make/Makefile; then 26210 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 26211 fi 26212 if test -f $with_add_source_root/jaxp/make/Makefile; then 26213 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 26214 fi 26215 if test -f $with_add_source_root/jaxws/make/Makefile; then 26216 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 26217 fi 26218 if test -f $with_add_source_root/hotspot/make/Makefile; then 26219 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 26220 fi 26221 if test -f $with_add_source_root/nashorn/make/Makefile; then 26222 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 26223 fi 26224 if test -f $with_add_source_root/jdk/make/Makefile; then 26225 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 26226 fi 26227 fi 26228 26229 26230 if test "x$with_override_source_root" != x; then 26231 if ! test -d $with_override_source_root; then 26232 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26233 fi 26234 CURDIR="$PWD" 26235 cd "$with_override_source_root" 26236 OVERRIDE_SRC_ROOT="`pwd`" 26237 cd "$CURDIR" 26238 if test -f $with_override_source_root/langtools/make/Makefile; then 26239 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 26240 fi 26241 if test -f $with_override_source_root/corba/make/Makefile; then 26242 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 26243 fi 26244 if test -f $with_override_source_root/jaxp/make/Makefile; then 26245 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 26246 fi 26247 if test -f $with_override_source_root/jaxws/make/Makefile; then 26248 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 26249 fi 26250 if test -f $with_override_source_root/hotspot/make/Makefile; then 26251 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 26252 fi 26253 if test -f $with_override_source_root/nashorn/make/Makefile; then 26254 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 26255 fi 26256 if test -f $with_override_source_root/jdk/make/Makefile; then 26257 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 26258 fi 26259 fi 26260 26261 26262 ############################################################################### 26263 # 26264 # Override a repo completely, this is used for example when you have 3 small 26265 # development sandboxes of the langtools sources and want to avoid having 3 full 26266 # OpenJDK sources checked out on disk. 26267 # 26268 # Assuming that the 3 langtools sandboxes are located here: 26269 # /home/fredrik/sandbox1/langtools 26270 # /home/fredrik/sandbox2/langtools 26271 # /home/fredrik/sandbox3/langtools 26272 # 26273 # From the source root you create build subdirs manually: 26274 # mkdir -p build1 build2 build3 26275 # in each build directory run: 26276 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26277 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26278 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26279 # 26280 26281 26282 # Check whether --with-override-langtools was given. 26283 if test "${with_override_langtools+set}" = set; then : 26284 withval=$with_override_langtools; 26285 fi 26286 26287 26288 26289 # Check whether --with-override-corba was given. 26290 if test "${with_override_corba+set}" = set; then : 26291 withval=$with_override_corba; 26292 fi 26293 26294 26295 26296 # Check whether --with-override-jaxp was given. 26297 if test "${with_override_jaxp+set}" = set; then : 26298 withval=$with_override_jaxp; 26299 fi 26300 26301 26302 26303 # Check whether --with-override-jaxws was given. 26304 if test "${with_override_jaxws+set}" = set; then : 26305 withval=$with_override_jaxws; 26306 fi 26307 26308 26309 26310 # Check whether --with-override-hotspot was given. 26311 if test "${with_override_hotspot+set}" = set; then : 26312 withval=$with_override_hotspot; 26313 fi 26314 26315 26316 26317 # Check whether --with-override-nashorn was given. 26318 if test "${with_override_nashorn+set}" = set; then : 26319 withval=$with_override_nashorn; 26320 fi 26321 26322 26323 26324 # Check whether --with-override-jdk was given. 26325 if test "${with_override_jdk+set}" = set; then : 26326 withval=$with_override_jdk; 26327 fi 26328 26329 26330 if test "x$with_override_langtools" != x; then 26331 CURDIR="$PWD" 26332 cd "$with_override_langtools" 26333 LANGTOOLS_TOPDIR="`pwd`" 26334 cd "$CURDIR" 26335 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26336 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26337 fi 26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26339 $as_echo_n "checking if langtools should be overridden... " >&6; } 26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26341 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26342 fi 26343 if test "x$with_override_corba" != x; then 26344 CURDIR="$PWD" 26345 cd "$with_override_corba" 26346 CORBA_TOPDIR="`pwd`" 26347 cd "$CURDIR" 26348 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26349 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26350 fi 26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26352 $as_echo_n "checking if corba should be overridden... " >&6; } 26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26354 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26355 fi 26356 if test "x$with_override_jaxp" != x; then 26357 CURDIR="$PWD" 26358 cd "$with_override_jaxp" 26359 JAXP_TOPDIR="`pwd`" 26360 cd "$CURDIR" 26361 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26362 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26363 fi 26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26365 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26367 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26368 fi 26369 if test "x$with_override_jaxws" != x; then 26370 CURDIR="$PWD" 26371 cd "$with_override_jaxws" 26372 JAXWS_TOPDIR="`pwd`" 26373 cd "$CURDIR" 26374 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26375 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26376 fi 26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26378 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26380 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26381 fi 26382 if test "x$with_override_hotspot" != x; then 26383 CURDIR="$PWD" 26384 cd "$with_override_hotspot" 26385 HOTSPOT_TOPDIR="`pwd`" 26386 cd "$CURDIR" 26387 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26388 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26389 fi 26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26391 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26393 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26394 fi 26395 if test "x$with_override_nashorn" != x; then 26396 CURDIR="$PWD" 26397 cd "$with_override_nashorn" 26398 NASHORN_TOPDIR="`pwd`" 26399 cd "$CURDIR" 26400 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26401 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26402 fi 26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26404 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26406 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26407 fi 26408 if test "x$with_override_jdk" != x; then 26409 CURDIR="$PWD" 26410 cd "$with_override_jdk" 26411 JDK_TOPDIR="`pwd`" 26412 cd "$CURDIR" 26413 if ! test -f $JDK_TOPDIR/make/Makefile; then 26414 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26415 fi 26416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26417 $as_echo_n "checking if JDK should be overridden... " >&6; } 26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26419 $as_echo "yes with $JDK_TOPDIR" >&6; } 26420 fi 26421 26422 26423 BUILD_OUTPUT="$OUTPUT_ROOT" 26424 26425 26426 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26427 BUILD_HOTSPOT=true 26428 26429 26430 26431 # Check whether --with-import-hotspot was given. 26432 if test "${with_import_hotspot+set}" = set; then : 26433 withval=$with_import_hotspot; 26434 fi 26435 26436 if test "x$with_import_hotspot" != x; then 26437 CURDIR="$PWD" 26438 cd "$with_import_hotspot" 26439 HOTSPOT_DIST="`pwd`" 26440 cd "$CURDIR" 26441 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26442 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26443 fi 26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26445 $as_echo_n "checking if hotspot should be imported... " >&6; } 26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26447 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26448 BUILD_HOTSPOT=false 26449 fi 26450 26451 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26452 26453 26454 ############################################################################### 26455 # 26456 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26457 # native code. 26458 # 26459 ############################################################################### 26460 26461 # First determine the toolchain type (compiler family) 26462 26463 26464 # Check whether --with-toolchain-type was given. 26465 if test "${with_toolchain_type+set}" = set; then : 26466 withval=$with_toolchain_type; 26467 fi 26468 26469 26470 # Use indirect variable referencing 26471 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26472 VALID_TOOLCHAINS=${!toolchain_var_name} 26473 26474 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26475 if test -n "$XCODEBUILD"; then 26476 # On Mac OS X, default toolchain to clang after Xcode 5 26477 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26478 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26479 if test $? -ne 0; then 26480 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26481 fi 26482 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26483 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26484 $CUT -f 1 -d .` 26485 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26486 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26487 if test $XCODE_MAJOR_VERSION -ge 5; then 26488 DEFAULT_TOOLCHAIN="clang" 26489 else 26490 DEFAULT_TOOLCHAIN="gcc" 26491 fi 26492 else 26493 # If Xcode is not installed, but the command line tools are 26494 # then we can't run xcodebuild. On these systems we should 26495 # default to clang 26496 DEFAULT_TOOLCHAIN="clang" 26497 fi 26498 else 26499 # First toolchain type in the list is the default 26500 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26501 fi 26502 26503 if test "x$with_toolchain_type" = xlist; then 26504 # List all toolchains 26505 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26506 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26507 for toolchain in $VALID_TOOLCHAINS; do 26508 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26509 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26510 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26511 done 26512 26513 exit 0 26514 elif test "x$with_toolchain_type" != x; then 26515 # User override; check that it is valid 26516 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26517 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26518 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26519 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26520 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26521 as_fn_error $? "Cannot continue." "$LINENO" 5 26522 fi 26523 TOOLCHAIN_TYPE=$with_toolchain_type 26524 else 26525 # No flag given, use default 26526 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26527 fi 26528 26529 26530 TOOLCHAIN_CC_BINARY_clang="clang" 26531 TOOLCHAIN_CC_BINARY_gcc="gcc" 26532 TOOLCHAIN_CC_BINARY_microsoft="cl" 26533 TOOLCHAIN_CC_BINARY_solstudio="cc" 26534 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26535 26536 TOOLCHAIN_CXX_BINARY_clang="clang++" 26537 TOOLCHAIN_CXX_BINARY_gcc="g++" 26538 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26539 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26540 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26541 26542 # Use indirect variable referencing 26543 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26544 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26545 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26546 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26547 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26548 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26549 26550 26551 # Define filename patterns 26552 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26553 LIBRARY_PREFIX= 26554 SHARED_LIBRARY_SUFFIX='.dll' 26555 STATIC_LIBRARY_SUFFIX='.lib' 26556 SHARED_LIBRARY='$1.dll' 26557 STATIC_LIBRARY='$1.lib' 26558 OBJ_SUFFIX='.obj' 26559 EXE_SUFFIX='.exe' 26560 else 26561 LIBRARY_PREFIX=lib 26562 SHARED_LIBRARY_SUFFIX='.so' 26563 STATIC_LIBRARY_SUFFIX='.a' 26564 SHARED_LIBRARY='lib$1.so' 26565 STATIC_LIBRARY='lib$1.a' 26566 OBJ_SUFFIX='.o' 26567 EXE_SUFFIX='' 26568 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26569 SHARED_LIBRARY='lib$1.dylib' 26570 SHARED_LIBRARY_SUFFIX='.dylib' 26571 fi 26572 fi 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26584 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26585 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26586 else 26587 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26588 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26589 fi 26590 26591 26592 # Then detect the actual binaries needed 26593 26594 # FIXME: Is this needed? 26595 ac_ext=cpp 26596 ac_cpp='$CXXCPP $CPPFLAGS' 26597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26600 26601 26602 # Store the CFLAGS etc passed to the configure script. 26603 ORG_CFLAGS="$CFLAGS" 26604 ORG_CXXFLAGS="$CXXFLAGS" 26605 ORG_OBJCFLAGS="$OBJCFLAGS" 26606 26607 # On Windows, we need to detect the visual studio installation first. 26608 # This will change the PATH, but we need to keep that new PATH even 26609 # after toolchain detection is done, since the compiler (on x86) uses 26610 # it for DLL resolution in runtime. 26611 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26612 26613 # Store path to cygwin link.exe to help excluding it when searching for 26614 # VS linker. This must be done before changing the PATH when looking for VS. 26615 # Extract the first word of "link", so it can be a program name with args. 26616 set dummy link; ac_word=$2 26617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26618 $as_echo_n "checking for $ac_word... " >&6; } 26619 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26620 $as_echo_n "(cached) " >&6 26621 else 26622 case $CYGWIN_LINK in 26623 [\\/]* | ?:[\\/]*) 26624 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26625 ;; 26626 *) 26627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26628 for as_dir in $PATH 26629 do 26630 IFS=$as_save_IFS 26631 test -z "$as_dir" && as_dir=. 26632 for ac_exec_ext in '' $ac_executable_extensions; do 26633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26634 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26636 break 2 26637 fi 26638 done 26639 done 26640 IFS=$as_save_IFS 26641 26642 ;; 26643 esac 26644 fi 26645 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26646 if test -n "$CYGWIN_LINK"; then 26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26648 $as_echo "$CYGWIN_LINK" >&6; } 26649 else 26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26651 $as_echo "no" >&6; } 26652 fi 26653 26654 26655 if test "x$CYGWIN_LINK" != x; then 26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26657 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26658 "$CYGWIN_LINK" --version > /dev/null 26659 if test $? -eq 0 ; then 26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26661 $as_echo "yes" >&6; } 26662 else 26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26664 $as_echo "no" >&6; } 26665 # This might be the VS linker. Don't exclude it later on. 26666 CYGWIN_LINK="" 26667 fi 26668 fi 26669 26670 # First-hand choice is to locate and run the vsvars bat file. 26671 26672 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26673 VCVARSFILE="vc/bin/vcvars32.bat" 26674 else 26675 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26676 fi 26677 26678 VS_ENV_CMD="" 26679 VS_ENV_ARGS="" 26680 if test "x$with_toolsdir" != x; then 26681 26682 if test "x$VS_ENV_CMD" = x; then 26683 VS100BASE="$with_toolsdir/../.." 26684 METHOD="--with-tools-dir" 26685 26686 windows_path="$VS100BASE" 26687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26688 unix_path=`$CYGPATH -u "$windows_path"` 26689 VS100BASE="$unix_path" 26690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26692 VS100BASE="$unix_path" 26693 fi 26694 26695 if test -d "$VS100BASE"; then 26696 if test -f "$VS100BASE/$VCVARSFILE"; then 26697 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26698 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26699 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26700 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26701 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26702 # TODO: improve detection for other versions of VS 26703 PLATFORM_TOOLSET="v100" 26704 else 26705 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26706 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26707 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26708 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26709 fi 26710 fi 26711 fi 26712 26713 fi 26714 26715 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26716 # Having specified an argument which is incorrect will produce an instant failure; 26717 # we should not go on looking 26718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26719 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26720 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26721 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26722 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26723 fi 26724 26725 if test "x$VS100COMNTOOLS" != x; then 26726 26727 if test "x$VS_ENV_CMD" = x; then 26728 VS100BASE="$VS100COMNTOOLS/../.." 26729 METHOD="VS100COMNTOOLS variable" 26730 26731 windows_path="$VS100BASE" 26732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26733 unix_path=`$CYGPATH -u "$windows_path"` 26734 VS100BASE="$unix_path" 26735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26737 VS100BASE="$unix_path" 26738 fi 26739 26740 if test -d "$VS100BASE"; then 26741 if test -f "$VS100BASE/$VCVARSFILE"; then 26742 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26743 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26744 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26745 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26746 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26747 # TODO: improve detection for other versions of VS 26748 PLATFORM_TOOLSET="v100" 26749 else 26750 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26751 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26752 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26753 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26754 fi 26755 fi 26756 fi 26757 26758 fi 26759 if test "x$PROGRAMFILES" != x; then 26760 26761 if test "x$VS_ENV_CMD" = x; then 26762 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26763 METHOD="well-known name" 26764 26765 windows_path="$VS100BASE" 26766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26767 unix_path=`$CYGPATH -u "$windows_path"` 26768 VS100BASE="$unix_path" 26769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26770 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26771 VS100BASE="$unix_path" 26772 fi 26773 26774 if test -d "$VS100BASE"; then 26775 if test -f "$VS100BASE/$VCVARSFILE"; then 26776 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26777 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26778 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26779 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26780 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26781 # TODO: improve detection for other versions of VS 26782 PLATFORM_TOOLSET="v100" 26783 else 26784 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26785 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26786 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26787 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26788 fi 26789 fi 26790 fi 26791 26792 fi 26793 26794 if test "x$VS_ENV_CMD" = x; then 26795 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26796 METHOD="well-known name" 26797 26798 windows_path="$VS100BASE" 26799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26800 unix_path=`$CYGPATH -u "$windows_path"` 26801 VS100BASE="$unix_path" 26802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26804 VS100BASE="$unix_path" 26805 fi 26806 26807 if test -d "$VS100BASE"; then 26808 if test -f "$VS100BASE/$VCVARSFILE"; then 26809 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26810 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26811 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26812 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26813 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26814 # TODO: improve detection for other versions of VS 26815 PLATFORM_TOOLSET="v100" 26816 else 26817 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26818 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26820 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26821 fi 26822 fi 26823 fi 26824 26825 26826 if test "x$VS_ENV_CMD" = x; then 26827 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 26828 METHOD="well-known name" 26829 26830 windows_path="$VS100BASE" 26831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26832 unix_path=`$CYGPATH -u "$windows_path"` 26833 VS100BASE="$unix_path" 26834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26836 VS100BASE="$unix_path" 26837 fi 26838 26839 if test -d "$VS100BASE"; then 26840 if test -f "$VS100BASE/$VCVARSFILE"; then 26841 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26842 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26843 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26844 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26845 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26846 # TODO: improve detection for other versions of VS 26847 PLATFORM_TOOLSET="v100" 26848 else 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26850 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26851 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26852 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26853 fi 26854 fi 26855 fi 26856 26857 26858 if test "x$ProgramW6432" != x; then 26859 26860 if test "x$VS_ENV_CMD" = x; then 26861 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 26862 METHOD="well-known name" 26863 26864 windows_path="$WIN_SDK_BASE" 26865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26866 unix_path=`$CYGPATH -u "$windows_path"` 26867 WIN_SDK_BASE="$unix_path" 26868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26870 WIN_SDK_BASE="$unix_path" 26871 fi 26872 26873 if test -d "$WIN_SDK_BASE"; then 26874 # There have been cases of partial or broken SDK installations. A missing 26875 # lib dir is not going to work. 26876 if test ! -d "$WIN_SDK_BASE/../lib"; then 26877 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26878 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26879 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26880 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26881 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26883 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26884 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26885 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26886 VS_ENV_ARGS="/x86" 26887 else 26888 VS_ENV_ARGS="/x64" 26889 fi 26890 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26891 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26892 # TODO: improve detection for other versions of SDK 26893 PLATFORM_TOOLSET="Windows7.1SDK" 26894 else 26895 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26896 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26897 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26898 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26899 fi 26900 fi 26901 fi 26902 26903 fi 26904 if test "x$PROGRAMW6432" != x; then 26905 26906 if test "x$VS_ENV_CMD" = x; then 26907 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 26908 METHOD="well-known name" 26909 26910 windows_path="$WIN_SDK_BASE" 26911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26912 unix_path=`$CYGPATH -u "$windows_path"` 26913 WIN_SDK_BASE="$unix_path" 26914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26916 WIN_SDK_BASE="$unix_path" 26917 fi 26918 26919 if test -d "$WIN_SDK_BASE"; then 26920 # There have been cases of partial or broken SDK installations. A missing 26921 # lib dir is not going to work. 26922 if test ! -d "$WIN_SDK_BASE/../lib"; then 26923 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26924 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26925 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26926 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26927 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26929 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26930 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26931 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26932 VS_ENV_ARGS="/x86" 26933 else 26934 VS_ENV_ARGS="/x64" 26935 fi 26936 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26937 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26938 # TODO: improve detection for other versions of SDK 26939 PLATFORM_TOOLSET="Windows7.1SDK" 26940 else 26941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26942 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26943 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26944 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26945 fi 26946 fi 26947 fi 26948 26949 fi 26950 if test "x$PROGRAMFILES" != x; then 26951 26952 if test "x$VS_ENV_CMD" = x; then 26953 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 26954 METHOD="well-known name" 26955 26956 windows_path="$WIN_SDK_BASE" 26957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26958 unix_path=`$CYGPATH -u "$windows_path"` 26959 WIN_SDK_BASE="$unix_path" 26960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26962 WIN_SDK_BASE="$unix_path" 26963 fi 26964 26965 if test -d "$WIN_SDK_BASE"; then 26966 # There have been cases of partial or broken SDK installations. A missing 26967 # lib dir is not going to work. 26968 if test ! -d "$WIN_SDK_BASE/../lib"; then 26969 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26970 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26971 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26972 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26973 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26974 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26975 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26976 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26977 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26978 VS_ENV_ARGS="/x86" 26979 else 26980 VS_ENV_ARGS="/x64" 26981 fi 26982 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26983 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26984 # TODO: improve detection for other versions of SDK 26985 PLATFORM_TOOLSET="Windows7.1SDK" 26986 else 26987 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26988 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26989 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26990 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26991 fi 26992 fi 26993 fi 26994 26995 fi 26996 26997 if test "x$VS_ENV_CMD" = x; then 26998 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 26999 METHOD="well-known name" 27000 27001 windows_path="$WIN_SDK_BASE" 27002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27003 unix_path=`$CYGPATH -u "$windows_path"` 27004 WIN_SDK_BASE="$unix_path" 27005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27007 WIN_SDK_BASE="$unix_path" 27008 fi 27009 27010 if test -d "$WIN_SDK_BASE"; then 27011 # There have been cases of partial or broken SDK installations. A missing 27012 # lib dir is not going to work. 27013 if test ! -d "$WIN_SDK_BASE/../lib"; then 27014 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27015 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27016 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27017 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27018 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27019 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27020 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27021 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27022 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27023 VS_ENV_ARGS="/x86" 27024 else 27025 VS_ENV_ARGS="/x64" 27026 fi 27027 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27028 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27029 # TODO: improve detection for other versions of SDK 27030 PLATFORM_TOOLSET="Windows7.1SDK" 27031 else 27032 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27033 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27034 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27035 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27036 fi 27037 fi 27038 fi 27039 27040 27041 if test "x$VS_ENV_CMD" = x; then 27042 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 27043 METHOD="well-known name" 27044 27045 windows_path="$WIN_SDK_BASE" 27046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27047 unix_path=`$CYGPATH -u "$windows_path"` 27048 WIN_SDK_BASE="$unix_path" 27049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27051 WIN_SDK_BASE="$unix_path" 27052 fi 27053 27054 if test -d "$WIN_SDK_BASE"; then 27055 # There have been cases of partial or broken SDK installations. A missing 27056 # lib dir is not going to work. 27057 if test ! -d "$WIN_SDK_BASE/../lib"; then 27058 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27059 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27060 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27061 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27062 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27063 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27064 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27065 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27066 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27067 VS_ENV_ARGS="/x86" 27068 else 27069 VS_ENV_ARGS="/x64" 27070 fi 27071 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27072 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27073 # TODO: improve detection for other versions of SDK 27074 PLATFORM_TOOLSET="Windows7.1SDK" 27075 else 27076 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27077 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27079 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27080 fi 27081 fi 27082 fi 27083 27084 27085 if test "x$VS_ENV_CMD" != x; then 27086 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27087 27088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27089 27090 # First separate the path from the arguments. This will split at the first 27091 # space. 27092 complete="$VS_ENV_CMD" 27093 path="${complete%% *}" 27094 tmp="$complete EOL" 27095 arguments="${tmp#* }" 27096 27097 # Input might be given as Windows format, start by converting to 27098 # unix format. 27099 new_path=`$CYGPATH -u "$path"` 27100 27101 # Now try to locate executable using which 27102 new_path=`$WHICH "$new_path" 2> /dev/null` 27103 # bat and cmd files are not always considered executable in cygwin causing which 27104 # to not find them 27105 if test "x$new_path" = x \ 27106 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27107 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27108 new_path=`$CYGPATH -u "$path"` 27109 fi 27110 if test "x$new_path" = x; then 27111 # Oops. Which didn't find the executable. 27112 # The splitting of arguments from the executable at a space might have been incorrect, 27113 # since paths with space are more likely in Windows. Give it another try with the whole 27114 # argument. 27115 path="$complete" 27116 arguments="EOL" 27117 new_path=`$CYGPATH -u "$path"` 27118 new_path=`$WHICH "$new_path" 2> /dev/null` 27119 # bat and cmd files are not always considered executable in cygwin causing which 27120 # to not find them 27121 if test "x$new_path" = x \ 27122 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27123 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27124 new_path=`$CYGPATH -u "$path"` 27125 fi 27126 if test "x$new_path" = x; then 27127 # It's still not found. Now this is an unrecoverable error. 27128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27129 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27130 has_space=`$ECHO "$complete" | $GREP " "` 27131 if test "x$has_space" != x; then 27132 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27133 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27134 fi 27135 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27136 fi 27137 fi 27138 27139 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27140 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27141 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27142 # "foo.exe" is OK but "foo" is an error. 27143 # 27144 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27145 # It is also a way to make sure we got the proper file name for the real test later on. 27146 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27147 if test "x$test_shortpath" = x; then 27148 # Short path failed, file does not exist as specified. 27149 # Try adding .exe or .cmd 27150 if test -f "${new_path}.exe"; then 27151 input_to_shortpath="${new_path}.exe" 27152 elif test -f "${new_path}.cmd"; then 27153 input_to_shortpath="${new_path}.cmd" 27154 else 27155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27156 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27157 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27158 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27159 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27160 fi 27161 else 27162 input_to_shortpath="$new_path" 27163 fi 27164 27165 # Call helper function which possibly converts this using DOS-style short mode. 27166 # If so, the updated path is stored in $new_path. 27167 new_path="$input_to_shortpath" 27168 27169 input_path="$input_to_shortpath" 27170 # Check if we need to convert this using DOS-style short mode. If the path 27171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27172 # take no chances and rewrite it. 27173 # Note: m4 eats our [], so we need to use [ and ] instead. 27174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27175 if test "x$has_forbidden_chars" != x; then 27176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27177 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27178 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27179 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27180 # Going to short mode and back again did indeed matter. Since short mode is 27181 # case insensitive, let's make it lowercase to improve readability. 27182 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27183 # Now convert it back to Unix-stile (cygpath) 27184 input_path=`$CYGPATH -u "$shortmode_path"` 27185 new_path="$input_path" 27186 fi 27187 fi 27188 27189 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27190 if test "x$test_cygdrive_prefix" = x; then 27191 # As a simple fix, exclude /usr/bin since it's not a real path. 27192 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27193 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27194 # a path prefixed by /cygdrive for fixpath to work. 27195 new_path="$CYGWIN_ROOT_PATH$input_path" 27196 fi 27197 fi 27198 27199 # remove trailing .exe if any 27200 new_path="${new_path/%.exe/}" 27201 27202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27203 27204 # First separate the path from the arguments. This will split at the first 27205 # space. 27206 complete="$VS_ENV_CMD" 27207 path="${complete%% *}" 27208 tmp="$complete EOL" 27209 arguments="${tmp#* }" 27210 27211 # Input might be given as Windows format, start by converting to 27212 # unix format. 27213 new_path="$path" 27214 27215 windows_path="$new_path" 27216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27217 unix_path=`$CYGPATH -u "$windows_path"` 27218 new_path="$unix_path" 27219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27220 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27221 new_path="$unix_path" 27222 fi 27223 27224 27225 # Now try to locate executable using which 27226 new_path=`$WHICH "$new_path" 2> /dev/null` 27227 27228 if test "x$new_path" = x; then 27229 # Oops. Which didn't find the executable. 27230 # The splitting of arguments from the executable at a space might have been incorrect, 27231 # since paths with space are more likely in Windows. Give it another try with the whole 27232 # argument. 27233 path="$complete" 27234 arguments="EOL" 27235 new_path="$path" 27236 27237 windows_path="$new_path" 27238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27239 unix_path=`$CYGPATH -u "$windows_path"` 27240 new_path="$unix_path" 27241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27243 new_path="$unix_path" 27244 fi 27245 27246 27247 new_path=`$WHICH "$new_path" 2> /dev/null` 27248 # bat and cmd files are not always considered executable in MSYS causing which 27249 # to not find them 27250 if test "x$new_path" = x \ 27251 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27252 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27253 new_path="$path" 27254 27255 windows_path="$new_path" 27256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27257 unix_path=`$CYGPATH -u "$windows_path"` 27258 new_path="$unix_path" 27259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27261 new_path="$unix_path" 27262 fi 27263 27264 fi 27265 27266 if test "x$new_path" = x; then 27267 # It's still not found. Now this is an unrecoverable error. 27268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27269 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27270 has_space=`$ECHO "$complete" | $GREP " "` 27271 if test "x$has_space" != x; then 27272 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27274 fi 27275 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27276 fi 27277 fi 27278 27279 # Now new_path has a complete unix path to the binary 27280 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27281 # Keep paths in /bin as-is, but remove trailing .exe if any 27282 new_path="${new_path/%.exe/}" 27283 # Do not save /bin paths to all_fixpath_prefixes! 27284 else 27285 # Not in mixed or Windows style, start by that. 27286 new_path=`cmd //c echo $new_path` 27287 27288 input_path="$new_path" 27289 # Check if we need to convert this using DOS-style short mode. If the path 27290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27291 # take no chances and rewrite it. 27292 # Note: m4 eats our [], so we need to use [ and ] instead. 27293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27294 if test "x$has_forbidden_chars" != x; then 27295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27297 fi 27298 27299 # Output is in $new_path 27300 27301 windows_path="$new_path" 27302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27303 unix_path=`$CYGPATH -u "$windows_path"` 27304 new_path="$unix_path" 27305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27307 new_path="$unix_path" 27308 fi 27309 27310 # remove trailing .exe if any 27311 new_path="${new_path/%.exe/}" 27312 27313 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27314 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27315 fi 27316 27317 else 27318 # We're on a unix platform. Hooray! :) 27319 # First separate the path from the arguments. This will split at the first 27320 # space. 27321 complete="$VS_ENV_CMD" 27322 path="${complete%% *}" 27323 tmp="$complete EOL" 27324 arguments="${tmp#* }" 27325 27326 # Cannot rely on the command "which" here since it doesn't always work. 27327 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27328 if test -z "$is_absolute_path"; then 27329 # Path to executable is not absolute. Find it. 27330 IFS_save="$IFS" 27331 IFS=: 27332 for p in $PATH; do 27333 if test -f "$p/$path" && test -x "$p/$path"; then 27334 new_path="$p/$path" 27335 break 27336 fi 27337 done 27338 IFS="$IFS_save" 27339 else 27340 # This is an absolute path, we can use it without further modifications. 27341 new_path="$path" 27342 fi 27343 27344 if test "x$new_path" = x; then 27345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27346 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27347 has_space=`$ECHO "$complete" | $GREP " "` 27348 if test "x$has_space" != x; then 27349 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27350 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27351 fi 27352 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27353 fi 27354 fi 27355 27356 # Now join together the path and the arguments once again 27357 if test "x$arguments" != xEOL; then 27358 new_complete="$new_path ${arguments% *}" 27359 else 27360 new_complete="$new_path" 27361 fi 27362 27363 if test "x$complete" != "x$new_complete"; then 27364 VS_ENV_CMD="$new_complete" 27365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27366 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27367 fi 27368 27369 27370 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27371 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27372 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27373 27374 # We need to create a couple of temporary files. 27375 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 27376 $MKDIR -p $VS_ENV_TMP_DIR 27377 27378 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27379 # Instead create a shell script which will set the relevant variables when run. 27380 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27381 27382 unix_path="$WINPATH_VS_ENV_CMD" 27383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27384 windows_path=`$CYGPATH -m "$unix_path"` 27385 WINPATH_VS_ENV_CMD="$windows_path" 27386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27387 windows_path=`cmd //c echo $unix_path` 27388 WINPATH_VS_ENV_CMD="$windows_path" 27389 fi 27390 27391 WINPATH_BASH="$BASH" 27392 27393 unix_path="$WINPATH_BASH" 27394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27395 windows_path=`$CYGPATH -m "$unix_path"` 27396 WINPATH_BASH="$windows_path" 27397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27398 windows_path=`cmd //c echo $unix_path` 27399 WINPATH_BASH="$windows_path" 27400 fi 27401 27402 27403 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27404 # script (executable by bash) that will setup the important variables. 27405 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27406 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27407 # This will end up something like: 27408 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27409 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27410 # These will end up something like: 27411 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27412 # The trailing space for everyone except PATH is no typo, but is needed due 27413 # to trailing \ in the Windows paths. These will be stripped later. 27414 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27415 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27416 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27417 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27418 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27419 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27420 27421 # Now execute the newly created bat file. 27422 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27423 # Change directory so we don't need to mess with Windows paths in redirects. 27424 cd $VS_ENV_TMP_DIR 27425 cmd /c extract-vs-env.bat | $CAT 27426 cd $CURDIR 27427 27428 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27429 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27430 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27431 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27432 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27433 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27434 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27435 as_fn_error $? "Cannot continue" "$LINENO" 5 27436 fi 27437 27438 # Now set all paths and other env variables. This will allow the rest of 27439 # the configure script to find and run the compiler in the proper way. 27440 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27441 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27442 . $VS_ENV_TMP_DIR/set-vs-env.sh 27443 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27444 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27445 else 27446 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27447 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27448 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27449 fi 27450 27451 # At this point, we should have correct variables in the environment, or we can't continue. 27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27453 $as_echo_n "checking for Visual Studio variables... " >&6; } 27454 27455 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27456 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27458 $as_echo "present but broken" >&6; } 27459 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27460 else 27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27462 $as_echo "ok" >&6; } 27463 # Remove any trailing "\" ";" and " " from the variables. 27464 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 27465 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 27466 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27467 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27468 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27469 # Remove any paths containing # (typically F#) as that messes up make. This 27470 # is needed if visual studio was installed with F# support. 27471 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27472 27473 27474 27475 27476 27477 # Convert VS_INCLUDE into SYSROOT_CFLAGS 27478 OLDIFS="$IFS" 27479 IFS=";" 27480 for i in $VS_INCLUDE; do 27481 ipath=$i 27482 IFS="$OLDIFS" 27483 27484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27485 27486 # Input might be given as Windows format, start by converting to 27487 # unix format. 27488 path="$ipath" 27489 new_path=`$CYGPATH -u "$path"` 27490 27491 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27492 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27493 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27494 # "foo.exe" is OK but "foo" is an error. 27495 # 27496 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27497 # It is also a way to make sure we got the proper file name for the real test later on. 27498 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27499 if test "x$test_shortpath" = x; then 27500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27501 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27502 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 27503 fi 27504 27505 # Call helper function which possibly converts this using DOS-style short mode. 27506 # If so, the updated path is stored in $new_path. 27507 27508 input_path="$new_path" 27509 # Check if we need to convert this using DOS-style short mode. If the path 27510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27511 # take no chances and rewrite it. 27512 # Note: m4 eats our [], so we need to use [ and ] instead. 27513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27514 if test "x$has_forbidden_chars" != x; then 27515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27516 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27517 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27518 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27519 # Going to short mode and back again did indeed matter. Since short mode is 27520 # case insensitive, let's make it lowercase to improve readability. 27521 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27522 # Now convert it back to Unix-stile (cygpath) 27523 input_path=`$CYGPATH -u "$shortmode_path"` 27524 new_path="$input_path" 27525 fi 27526 fi 27527 27528 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27529 if test "x$test_cygdrive_prefix" = x; then 27530 # As a simple fix, exclude /usr/bin since it's not a real path. 27531 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27532 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27533 # a path prefixed by /cygdrive for fixpath to work. 27534 new_path="$CYGWIN_ROOT_PATH$input_path" 27535 fi 27536 fi 27537 27538 27539 if test "x$path" != "x$new_path"; then 27540 ipath="$new_path" 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27542 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27543 fi 27544 27545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27546 27547 path="$ipath" 27548 has_colon=`$ECHO $path | $GREP ^.:` 27549 new_path="$path" 27550 if test "x$has_colon" = x; then 27551 # Not in mixed or Windows style, start by that. 27552 new_path=`cmd //c echo $path` 27553 fi 27554 27555 27556 input_path="$new_path" 27557 # Check if we need to convert this using DOS-style short mode. If the path 27558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27559 # take no chances and rewrite it. 27560 # Note: m4 eats our [], so we need to use [ and ] instead. 27561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27562 if test "x$has_forbidden_chars" != x; then 27563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27564 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27565 fi 27566 27567 27568 windows_path="$new_path" 27569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27570 unix_path=`$CYGPATH -u "$windows_path"` 27571 new_path="$unix_path" 27572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27573 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27574 new_path="$unix_path" 27575 fi 27576 27577 if test "x$path" != "x$new_path"; then 27578 ipath="$new_path" 27579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27580 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27581 fi 27582 27583 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27584 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27585 27586 else 27587 # We're on a unix platform. Hooray! :) 27588 path="$ipath" 27589 has_space=`$ECHO "$path" | $GREP " "` 27590 if test "x$has_space" != x; then 27591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27592 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27593 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27594 fi 27595 27596 # Use eval to expand a potential ~ 27597 eval path="$path" 27598 if test ! -f "$path" && test ! -d "$path"; then 27599 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 27600 fi 27601 27602 ipath="`cd "$path"; $THEPWDCMD -L`" 27603 fi 27604 27605 IFS=";" 27606 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 27607 done 27608 # Convert VS_LIB into SYSROOT_LDFLAGS 27609 for i in $VS_LIB; do 27610 libpath=$i 27611 IFS="$OLDIFS" 27612 27613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27614 27615 # Input might be given as Windows format, start by converting to 27616 # unix format. 27617 path="$libpath" 27618 new_path=`$CYGPATH -u "$path"` 27619 27620 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27621 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27622 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27623 # "foo.exe" is OK but "foo" is an error. 27624 # 27625 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27626 # It is also a way to make sure we got the proper file name for the real test later on. 27627 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27628 if test "x$test_shortpath" = x; then 27629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 27630 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 27631 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 27632 fi 27633 27634 # Call helper function which possibly converts this using DOS-style short mode. 27635 # If so, the updated path is stored in $new_path. 27636 27637 input_path="$new_path" 27638 # Check if we need to convert this using DOS-style short mode. If the path 27639 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27640 # take no chances and rewrite it. 27641 # Note: m4 eats our [], so we need to use [ and ] instead. 27642 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27643 if test "x$has_forbidden_chars" != x; then 27644 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27645 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27646 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27647 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27648 # Going to short mode and back again did indeed matter. Since short mode is 27649 # case insensitive, let's make it lowercase to improve readability. 27650 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27651 # Now convert it back to Unix-stile (cygpath) 27652 input_path=`$CYGPATH -u "$shortmode_path"` 27653 new_path="$input_path" 27654 fi 27655 fi 27656 27657 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27658 if test "x$test_cygdrive_prefix" = x; then 27659 # As a simple fix, exclude /usr/bin since it's not a real path. 27660 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27661 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27662 # a path prefixed by /cygdrive for fixpath to work. 27663 new_path="$CYGWIN_ROOT_PATH$input_path" 27664 fi 27665 fi 27666 27667 27668 if test "x$path" != "x$new_path"; then 27669 libpath="$new_path" 27670 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 27671 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 27672 fi 27673 27674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27675 27676 path="$libpath" 27677 has_colon=`$ECHO $path | $GREP ^.:` 27678 new_path="$path" 27679 if test "x$has_colon" = x; then 27680 # Not in mixed or Windows style, start by that. 27681 new_path=`cmd //c echo $path` 27682 fi 27683 27684 27685 input_path="$new_path" 27686 # Check if we need to convert this using DOS-style short mode. If the path 27687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27688 # take no chances and rewrite it. 27689 # Note: m4 eats our [], so we need to use [ and ] instead. 27690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27691 if test "x$has_forbidden_chars" != x; then 27692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27693 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27694 fi 27695 27696 27697 windows_path="$new_path" 27698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27699 unix_path=`$CYGPATH -u "$windows_path"` 27700 new_path="$unix_path" 27701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27703 new_path="$unix_path" 27704 fi 27705 27706 if test "x$path" != "x$new_path"; then 27707 libpath="$new_path" 27708 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 27709 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 27710 fi 27711 27712 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27713 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27714 27715 else 27716 # We're on a unix platform. Hooray! :) 27717 path="$libpath" 27718 has_space=`$ECHO "$path" | $GREP " "` 27719 if test "x$has_space" != x; then 27720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 27721 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 27722 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27723 fi 27724 27725 # Use eval to expand a potential ~ 27726 eval path="$path" 27727 if test ! -f "$path" && test ! -d "$path"; then 27728 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 27729 fi 27730 27731 libpath="`cd "$path"; $THEPWDCMD -L`" 27732 fi 27733 27734 IFS=";" 27735 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 27736 done 27737 IFS="$OLDIFS" 27738 fi 27739 else 27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27741 $as_echo "not found" >&6; } 27742 27743 if test "x$VS_ENV_CMD" = x; then 27744 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27745 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27746 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27747 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27748 else 27749 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27750 $as_echo "$as_me: Running the extraction script failed." >&6;} 27751 fi 27752 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27753 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27754 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27755 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27756 as_fn_error $? "Cannot continue" "$LINENO" 5 27757 fi 27758 27759 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 27760 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 27761 PATH="$VS_PATH" 27762 # The microsoft toolchain also requires INCLUDE and LIB to be set. 27763 export INCLUDE="$VS_INCLUDE" 27764 export LIB="$VS_LIB" 27765 fi 27766 27767 # autoconf magic only relies on PATH, so update it if tools dir is specified 27768 OLD_PATH="$PATH" 27769 27770 # For solaris we really need solaris tools, and not the GNU equivalent. 27771 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27772 # so add that to path before starting to probe. 27773 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27774 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27775 PATH="/usr/ccs/bin:$PATH" 27776 fi 27777 27778 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 27779 # override all other locations. 27780 if test "x$TOOLCHAIN_PATH" != x; then 27781 PATH=$TOOLCHAIN_PATH:$PATH 27782 fi 27783 27784 27785 # 27786 # Setup the compilers (CC and CXX) 27787 # 27788 27789 COMPILER_NAME=C 27790 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27791 27792 if test "x$CC" != x; then 27793 # User has supplied compiler name already, always let that override. 27794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27795 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27796 if test "x`basename $CC`" = "x$CC"; then 27797 # A command without a complete path is provided, search $PATH. 27798 27799 for ac_prog in $CC 27800 do 27801 # Extract the first word of "$ac_prog", so it can be a program name with args. 27802 set dummy $ac_prog; ac_word=$2 27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27804 $as_echo_n "checking for $ac_word... " >&6; } 27805 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27806 $as_echo_n "(cached) " >&6 27807 else 27808 case $POTENTIAL_CC in 27809 [\\/]* | ?:[\\/]*) 27810 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27811 ;; 27812 *) 27813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27814 for as_dir in $PATH 27815 do 27816 IFS=$as_save_IFS 27817 test -z "$as_dir" && as_dir=. 27818 for ac_exec_ext in '' $ac_executable_extensions; do 27819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27820 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27822 break 2 27823 fi 27824 done 27825 done 27826 IFS=$as_save_IFS 27827 27828 ;; 27829 esac 27830 fi 27831 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27832 if test -n "$POTENTIAL_CC"; then 27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27834 $as_echo "$POTENTIAL_CC" >&6; } 27835 else 27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27837 $as_echo "no" >&6; } 27838 fi 27839 27840 27841 test -n "$POTENTIAL_CC" && break 27842 done 27843 27844 if test "x$POTENTIAL_CC" != x; then 27845 CC=$POTENTIAL_CC 27846 else 27847 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27848 fi 27849 else 27850 # Otherwise it might already be a complete path 27851 if test ! -x "$CC"; then 27852 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27853 fi 27854 fi 27855 else 27856 # No user supplied value. Locate compiler ourselves. 27857 27858 # If we are cross compiling, assume cross compilation tools follows the 27859 # cross compilation standard where they are prefixed with the autoconf 27860 # standard name for the target. For example the binary 27861 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27862 # If we are not cross compiling, then the default compiler name will be 27863 # used. 27864 27865 CC= 27866 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27867 # before checking the rest of the PATH. 27868 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27869 # step, this should not be necessary. 27870 if test -n "$TOOLCHAIN_PATH"; then 27871 PATH_save="$PATH" 27872 PATH="$TOOLCHAIN_PATH" 27873 for ac_prog in $SEARCH_LIST 27874 do 27875 # Extract the first word of "$ac_prog", so it can be a program name with args. 27876 set dummy $ac_prog; ac_word=$2 27877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27878 $as_echo_n "checking for $ac_word... " >&6; } 27879 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27880 $as_echo_n "(cached) " >&6 27881 else 27882 case $TOOLCHAIN_PATH_CC in 27883 [\\/]* | ?:[\\/]*) 27884 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27885 ;; 27886 *) 27887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27888 for as_dir in $PATH 27889 do 27890 IFS=$as_save_IFS 27891 test -z "$as_dir" && as_dir=. 27892 for ac_exec_ext in '' $ac_executable_extensions; do 27893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27894 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27896 break 2 27897 fi 27898 done 27899 done 27900 IFS=$as_save_IFS 27901 27902 ;; 27903 esac 27904 fi 27905 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27906 if test -n "$TOOLCHAIN_PATH_CC"; then 27907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27908 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27909 else 27910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27911 $as_echo "no" >&6; } 27912 fi 27913 27914 27915 test -n "$TOOLCHAIN_PATH_CC" && break 27916 done 27917 27918 CC=$TOOLCHAIN_PATH_CC 27919 PATH="$PATH_save" 27920 fi 27921 27922 # AC_PATH_PROGS can't be run multiple times with the same variable, 27923 # so create a new name for this run. 27924 if test "x$CC" = x; then 27925 for ac_prog in $SEARCH_LIST 27926 do 27927 # Extract the first word of "$ac_prog", so it can be a program name with args. 27928 set dummy $ac_prog; ac_word=$2 27929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27930 $as_echo_n "checking for $ac_word... " >&6; } 27931 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27932 $as_echo_n "(cached) " >&6 27933 else 27934 case $POTENTIAL_CC in 27935 [\\/]* | ?:[\\/]*) 27936 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27937 ;; 27938 *) 27939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27940 for as_dir in $PATH 27941 do 27942 IFS=$as_save_IFS 27943 test -z "$as_dir" && as_dir=. 27944 for ac_exec_ext in '' $ac_executable_extensions; do 27945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27946 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27948 break 2 27949 fi 27950 done 27951 done 27952 IFS=$as_save_IFS 27953 27954 ;; 27955 esac 27956 fi 27957 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27958 if test -n "$POTENTIAL_CC"; then 27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27960 $as_echo "$POTENTIAL_CC" >&6; } 27961 else 27962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27963 $as_echo "no" >&6; } 27964 fi 27965 27966 27967 test -n "$POTENTIAL_CC" && break 27968 done 27969 27970 CC=$POTENTIAL_CC 27971 fi 27972 27973 if test "x$CC" = x; then 27974 27975 # Print a helpful message on how to acquire the necessary build dependency. 27976 # devkit is the help tag: freetype, cups, pulse, alsa etc 27977 MISSING_DEPENDENCY=devkit 27978 27979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27980 cygwin_help $MISSING_DEPENDENCY 27981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27982 msys_help $MISSING_DEPENDENCY 27983 else 27984 PKGHANDLER_COMMAND= 27985 27986 case $PKGHANDLER in 27987 apt-get) 27988 apt_help $MISSING_DEPENDENCY ;; 27989 yum) 27990 yum_help $MISSING_DEPENDENCY ;; 27991 port) 27992 port_help $MISSING_DEPENDENCY ;; 27993 pkgutil) 27994 pkgutil_help $MISSING_DEPENDENCY ;; 27995 pkgadd) 27996 pkgadd_help $MISSING_DEPENDENCY ;; 27997 esac 27998 27999 if test "x$PKGHANDLER_COMMAND" != x; then 28000 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28001 fi 28002 fi 28003 28004 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28005 fi 28006 fi 28007 28008 # Now we have a compiler binary in CC. Make sure it's okay. 28009 28010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28011 28012 # First separate the path from the arguments. This will split at the first 28013 # space. 28014 complete="$CC" 28015 path="${complete%% *}" 28016 tmp="$complete EOL" 28017 arguments="${tmp#* }" 28018 28019 # Input might be given as Windows format, start by converting to 28020 # unix format. 28021 new_path=`$CYGPATH -u "$path"` 28022 28023 # Now try to locate executable using which 28024 new_path=`$WHICH "$new_path" 2> /dev/null` 28025 # bat and cmd files are not always considered executable in cygwin causing which 28026 # to not find them 28027 if test "x$new_path" = x \ 28028 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28029 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28030 new_path=`$CYGPATH -u "$path"` 28031 fi 28032 if test "x$new_path" = x; then 28033 # Oops. Which didn't find the executable. 28034 # The splitting of arguments from the executable at a space might have been incorrect, 28035 # since paths with space are more likely in Windows. Give it another try with the whole 28036 # argument. 28037 path="$complete" 28038 arguments="EOL" 28039 new_path=`$CYGPATH -u "$path"` 28040 new_path=`$WHICH "$new_path" 2> /dev/null` 28041 # bat and cmd files are not always considered executable in cygwin causing which 28042 # to not find them 28043 if test "x$new_path" = x \ 28044 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28045 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28046 new_path=`$CYGPATH -u "$path"` 28047 fi 28048 if test "x$new_path" = x; then 28049 # It's still not found. Now this is an unrecoverable error. 28050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28051 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28052 has_space=`$ECHO "$complete" | $GREP " "` 28053 if test "x$has_space" != x; then 28054 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28055 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28056 fi 28057 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28058 fi 28059 fi 28060 28061 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28062 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28063 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28064 # "foo.exe" is OK but "foo" is an error. 28065 # 28066 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28067 # It is also a way to make sure we got the proper file name for the real test later on. 28068 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28069 if test "x$test_shortpath" = x; then 28070 # Short path failed, file does not exist as specified. 28071 # Try adding .exe or .cmd 28072 if test -f "${new_path}.exe"; then 28073 input_to_shortpath="${new_path}.exe" 28074 elif test -f "${new_path}.cmd"; then 28075 input_to_shortpath="${new_path}.cmd" 28076 else 28077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28078 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28079 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28080 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28081 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28082 fi 28083 else 28084 input_to_shortpath="$new_path" 28085 fi 28086 28087 # Call helper function which possibly converts this using DOS-style short mode. 28088 # If so, the updated path is stored in $new_path. 28089 new_path="$input_to_shortpath" 28090 28091 input_path="$input_to_shortpath" 28092 # Check if we need to convert this using DOS-style short mode. If the path 28093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28094 # take no chances and rewrite it. 28095 # Note: m4 eats our [], so we need to use [ and ] instead. 28096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28097 if test "x$has_forbidden_chars" != x; then 28098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28099 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28100 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28101 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28102 # Going to short mode and back again did indeed matter. Since short mode is 28103 # case insensitive, let's make it lowercase to improve readability. 28104 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28105 # Now convert it back to Unix-stile (cygpath) 28106 input_path=`$CYGPATH -u "$shortmode_path"` 28107 new_path="$input_path" 28108 fi 28109 fi 28110 28111 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28112 if test "x$test_cygdrive_prefix" = x; then 28113 # As a simple fix, exclude /usr/bin since it's not a real path. 28114 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28115 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28116 # a path prefixed by /cygdrive for fixpath to work. 28117 new_path="$CYGWIN_ROOT_PATH$input_path" 28118 fi 28119 fi 28120 28121 # remove trailing .exe if any 28122 new_path="${new_path/%.exe/}" 28123 28124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28125 28126 # First separate the path from the arguments. This will split at the first 28127 # space. 28128 complete="$CC" 28129 path="${complete%% *}" 28130 tmp="$complete EOL" 28131 arguments="${tmp#* }" 28132 28133 # Input might be given as Windows format, start by converting to 28134 # unix format. 28135 new_path="$path" 28136 28137 windows_path="$new_path" 28138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28139 unix_path=`$CYGPATH -u "$windows_path"` 28140 new_path="$unix_path" 28141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28143 new_path="$unix_path" 28144 fi 28145 28146 28147 # Now try to locate executable using which 28148 new_path=`$WHICH "$new_path" 2> /dev/null` 28149 28150 if test "x$new_path" = x; then 28151 # Oops. Which didn't find the executable. 28152 # The splitting of arguments from the executable at a space might have been incorrect, 28153 # since paths with space are more likely in Windows. Give it another try with the whole 28154 # argument. 28155 path="$complete" 28156 arguments="EOL" 28157 new_path="$path" 28158 28159 windows_path="$new_path" 28160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28161 unix_path=`$CYGPATH -u "$windows_path"` 28162 new_path="$unix_path" 28163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28165 new_path="$unix_path" 28166 fi 28167 28168 28169 new_path=`$WHICH "$new_path" 2> /dev/null` 28170 # bat and cmd files are not always considered executable in MSYS causing which 28171 # to not find them 28172 if test "x$new_path" = x \ 28173 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28174 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28175 new_path="$path" 28176 28177 windows_path="$new_path" 28178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28179 unix_path=`$CYGPATH -u "$windows_path"` 28180 new_path="$unix_path" 28181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28183 new_path="$unix_path" 28184 fi 28185 28186 fi 28187 28188 if test "x$new_path" = x; then 28189 # It's still not found. Now this is an unrecoverable error. 28190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28191 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28192 has_space=`$ECHO "$complete" | $GREP " "` 28193 if test "x$has_space" != x; then 28194 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28195 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28196 fi 28197 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28198 fi 28199 fi 28200 28201 # Now new_path has a complete unix path to the binary 28202 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28203 # Keep paths in /bin as-is, but remove trailing .exe if any 28204 new_path="${new_path/%.exe/}" 28205 # Do not save /bin paths to all_fixpath_prefixes! 28206 else 28207 # Not in mixed or Windows style, start by that. 28208 new_path=`cmd //c echo $new_path` 28209 28210 input_path="$new_path" 28211 # Check if we need to convert this using DOS-style short mode. If the path 28212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28213 # take no chances and rewrite it. 28214 # Note: m4 eats our [], so we need to use [ and ] instead. 28215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28216 if test "x$has_forbidden_chars" != x; then 28217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28219 fi 28220 28221 # Output is in $new_path 28222 28223 windows_path="$new_path" 28224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28225 unix_path=`$CYGPATH -u "$windows_path"` 28226 new_path="$unix_path" 28227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28229 new_path="$unix_path" 28230 fi 28231 28232 # remove trailing .exe if any 28233 new_path="${new_path/%.exe/}" 28234 28235 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28236 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28237 fi 28238 28239 else 28240 # We're on a unix platform. Hooray! :) 28241 # First separate the path from the arguments. This will split at the first 28242 # space. 28243 complete="$CC" 28244 path="${complete%% *}" 28245 tmp="$complete EOL" 28246 arguments="${tmp#* }" 28247 28248 # Cannot rely on the command "which" here since it doesn't always work. 28249 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28250 if test -z "$is_absolute_path"; then 28251 # Path to executable is not absolute. Find it. 28252 IFS_save="$IFS" 28253 IFS=: 28254 for p in $PATH; do 28255 if test -f "$p/$path" && test -x "$p/$path"; then 28256 new_path="$p/$path" 28257 break 28258 fi 28259 done 28260 IFS="$IFS_save" 28261 else 28262 # This is an absolute path, we can use it without further modifications. 28263 new_path="$path" 28264 fi 28265 28266 if test "x$new_path" = x; then 28267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28268 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28269 has_space=`$ECHO "$complete" | $GREP " "` 28270 if test "x$has_space" != x; then 28271 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28272 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28273 fi 28274 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28275 fi 28276 fi 28277 28278 # Now join together the path and the arguments once again 28279 if test "x$arguments" != xEOL; then 28280 new_complete="$new_path ${arguments% *}" 28281 else 28282 new_complete="$new_path" 28283 fi 28284 28285 if test "x$complete" != "x$new_complete"; then 28286 CC="$new_complete" 28287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28288 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28289 fi 28290 28291 TEST_COMPILER="$CC" 28292 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28293 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28294 if test "x$OPENJDK_BUILD_OS" != xaix; then 28295 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28297 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28298 28299 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28300 # Follow a chain of symbolic links. Use readlink 28301 # where it exists, else fall back to horribly 28302 # complicated shell code. 28303 if test "x$READLINK_TESTED" != yes; then 28304 # On MacOSX there is a readlink tool with a different 28305 # purpose than the GNU readlink tool. Check the found readlink. 28306 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28307 if test "x$ISGNU" = x; then 28308 # A readlink that we do not know how to use. 28309 # Are there other non-GNU readlinks out there? 28310 READLINK_TESTED=yes 28311 READLINK= 28312 fi 28313 fi 28314 28315 if test "x$READLINK" != x; then 28316 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28317 else 28318 # Save the current directory for restoring afterwards 28319 STARTDIR=$PWD 28320 COUNTER=0 28321 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28322 sym_link_file=`$BASENAME $TEST_COMPILER` 28323 cd $sym_link_dir 28324 # Use -P flag to resolve symlinks in directories. 28325 cd `$THEPWDCMD -P` 28326 sym_link_dir=`$THEPWDCMD -P` 28327 # Resolve file symlinks 28328 while test $COUNTER -lt 20; do 28329 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28330 if test "x$ISLINK" == x; then 28331 # This is not a symbolic link! We are done! 28332 break 28333 fi 28334 # Again resolve directory symlinks since the target of the just found 28335 # link could be in a different directory 28336 cd `$DIRNAME $ISLINK` 28337 sym_link_dir=`$THEPWDCMD -P` 28338 sym_link_file=`$BASENAME $ISLINK` 28339 let COUNTER=COUNTER+1 28340 done 28341 cd $STARTDIR 28342 TEST_COMPILER=$sym_link_dir/$sym_link_file 28343 fi 28344 fi 28345 28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28347 $as_echo "$TEST_COMPILER" >&6; } 28348 fi 28349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28350 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28351 28352 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28353 if test "x$COMPILER_BASENAME" = "xccache"; then 28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28355 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28356 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28357 # We want to control ccache invocation ourselves, so ignore this cc and try 28358 # searching again. 28359 28360 # Remove the path to the fake ccache cc from the PATH 28361 RETRY_COMPILER_SAVED_PATH="$PATH" 28362 COMPILER_DIRNAME=`$DIRNAME $CC` 28363 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28364 28365 # Try again looking for our compiler 28366 if test -n "$ac_tool_prefix"; then 28367 for ac_prog in $TOOLCHAIN_CC_BINARY 28368 do 28369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28372 $as_echo_n "checking for $ac_word... " >&6; } 28373 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28374 $as_echo_n "(cached) " >&6 28375 else 28376 if test -n "$PROPER_COMPILER_CC"; then 28377 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28378 else 28379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28380 for as_dir in $PATH 28381 do 28382 IFS=$as_save_IFS 28383 test -z "$as_dir" && as_dir=. 28384 for ac_exec_ext in '' $ac_executable_extensions; do 28385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28386 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28388 break 2 28389 fi 28390 done 28391 done 28392 IFS=$as_save_IFS 28393 28394 fi 28395 fi 28396 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28397 if test -n "$PROPER_COMPILER_CC"; then 28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28399 $as_echo "$PROPER_COMPILER_CC" >&6; } 28400 else 28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28402 $as_echo "no" >&6; } 28403 fi 28404 28405 28406 test -n "$PROPER_COMPILER_CC" && break 28407 done 28408 fi 28409 if test -z "$PROPER_COMPILER_CC"; then 28410 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28411 for ac_prog in $TOOLCHAIN_CC_BINARY 28412 do 28413 # Extract the first word of "$ac_prog", so it can be a program name with args. 28414 set dummy $ac_prog; ac_word=$2 28415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28416 $as_echo_n "checking for $ac_word... " >&6; } 28417 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28418 $as_echo_n "(cached) " >&6 28419 else 28420 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28421 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28422 else 28423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28424 for as_dir in $PATH 28425 do 28426 IFS=$as_save_IFS 28427 test -z "$as_dir" && as_dir=. 28428 for ac_exec_ext in '' $ac_executable_extensions; do 28429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28430 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28432 break 2 28433 fi 28434 done 28435 done 28436 IFS=$as_save_IFS 28437 28438 fi 28439 fi 28440 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28441 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28443 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28444 else 28445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28446 $as_echo "no" >&6; } 28447 fi 28448 28449 28450 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28451 done 28452 28453 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28454 PROPER_COMPILER_CC="" 28455 else 28456 case $cross_compiling:$ac_tool_warned in 28457 yes:) 28458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28460 ac_tool_warned=yes ;; 28461 esac 28462 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28463 fi 28464 fi 28465 28466 28467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28468 28469 # First separate the path from the arguments. This will split at the first 28470 # space. 28471 complete="$PROPER_COMPILER_CC" 28472 path="${complete%% *}" 28473 tmp="$complete EOL" 28474 arguments="${tmp#* }" 28475 28476 # Input might be given as Windows format, start by converting to 28477 # unix format. 28478 new_path=`$CYGPATH -u "$path"` 28479 28480 # Now try to locate executable using which 28481 new_path=`$WHICH "$new_path" 2> /dev/null` 28482 # bat and cmd files are not always considered executable in cygwin causing which 28483 # to not find them 28484 if test "x$new_path" = x \ 28485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28487 new_path=`$CYGPATH -u "$path"` 28488 fi 28489 if test "x$new_path" = x; then 28490 # Oops. Which didn't find the executable. 28491 # The splitting of arguments from the executable at a space might have been incorrect, 28492 # since paths with space are more likely in Windows. Give it another try with the whole 28493 # argument. 28494 path="$complete" 28495 arguments="EOL" 28496 new_path=`$CYGPATH -u "$path"` 28497 new_path=`$WHICH "$new_path" 2> /dev/null` 28498 # bat and cmd files are not always considered executable in cygwin causing which 28499 # to not find them 28500 if test "x$new_path" = x \ 28501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28503 new_path=`$CYGPATH -u "$path"` 28504 fi 28505 if test "x$new_path" = x; then 28506 # It's still not found. Now this is an unrecoverable error. 28507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28508 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28509 has_space=`$ECHO "$complete" | $GREP " "` 28510 if test "x$has_space" != x; then 28511 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28512 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28513 fi 28514 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28515 fi 28516 fi 28517 28518 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28519 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28520 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28521 # "foo.exe" is OK but "foo" is an error. 28522 # 28523 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28524 # It is also a way to make sure we got the proper file name for the real test later on. 28525 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28526 if test "x$test_shortpath" = x; then 28527 # Short path failed, file does not exist as specified. 28528 # Try adding .exe or .cmd 28529 if test -f "${new_path}.exe"; then 28530 input_to_shortpath="${new_path}.exe" 28531 elif test -f "${new_path}.cmd"; then 28532 input_to_shortpath="${new_path}.cmd" 28533 else 28534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28535 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28536 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28537 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28538 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28539 fi 28540 else 28541 input_to_shortpath="$new_path" 28542 fi 28543 28544 # Call helper function which possibly converts this using DOS-style short mode. 28545 # If so, the updated path is stored in $new_path. 28546 new_path="$input_to_shortpath" 28547 28548 input_path="$input_to_shortpath" 28549 # Check if we need to convert this using DOS-style short mode. If the path 28550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28551 # take no chances and rewrite it. 28552 # Note: m4 eats our [], so we need to use [ and ] instead. 28553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28554 if test "x$has_forbidden_chars" != x; then 28555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28559 # Going to short mode and back again did indeed matter. Since short mode is 28560 # case insensitive, let's make it lowercase to improve readability. 28561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28562 # Now convert it back to Unix-stile (cygpath) 28563 input_path=`$CYGPATH -u "$shortmode_path"` 28564 new_path="$input_path" 28565 fi 28566 fi 28567 28568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28569 if test "x$test_cygdrive_prefix" = x; then 28570 # As a simple fix, exclude /usr/bin since it's not a real path. 28571 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28573 # a path prefixed by /cygdrive for fixpath to work. 28574 new_path="$CYGWIN_ROOT_PATH$input_path" 28575 fi 28576 fi 28577 28578 # remove trailing .exe if any 28579 new_path="${new_path/%.exe/}" 28580 28581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28582 28583 # First separate the path from the arguments. This will split at the first 28584 # space. 28585 complete="$PROPER_COMPILER_CC" 28586 path="${complete%% *}" 28587 tmp="$complete EOL" 28588 arguments="${tmp#* }" 28589 28590 # Input might be given as Windows format, start by converting to 28591 # unix format. 28592 new_path="$path" 28593 28594 windows_path="$new_path" 28595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28596 unix_path=`$CYGPATH -u "$windows_path"` 28597 new_path="$unix_path" 28598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28600 new_path="$unix_path" 28601 fi 28602 28603 28604 # Now try to locate executable using which 28605 new_path=`$WHICH "$new_path" 2> /dev/null` 28606 28607 if test "x$new_path" = x; then 28608 # Oops. Which didn't find the executable. 28609 # The splitting of arguments from the executable at a space might have been incorrect, 28610 # since paths with space are more likely in Windows. Give it another try with the whole 28611 # argument. 28612 path="$complete" 28613 arguments="EOL" 28614 new_path="$path" 28615 28616 windows_path="$new_path" 28617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28618 unix_path=`$CYGPATH -u "$windows_path"` 28619 new_path="$unix_path" 28620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28622 new_path="$unix_path" 28623 fi 28624 28625 28626 new_path=`$WHICH "$new_path" 2> /dev/null` 28627 # bat and cmd files are not always considered executable in MSYS causing which 28628 # to not find them 28629 if test "x$new_path" = x \ 28630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28632 new_path="$path" 28633 28634 windows_path="$new_path" 28635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28636 unix_path=`$CYGPATH -u "$windows_path"` 28637 new_path="$unix_path" 28638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28640 new_path="$unix_path" 28641 fi 28642 28643 fi 28644 28645 if test "x$new_path" = x; then 28646 # It's still not found. Now this is an unrecoverable error. 28647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28648 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28649 has_space=`$ECHO "$complete" | $GREP " "` 28650 if test "x$has_space" != x; then 28651 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28653 fi 28654 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28655 fi 28656 fi 28657 28658 # Now new_path has a complete unix path to the binary 28659 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28660 # Keep paths in /bin as-is, but remove trailing .exe if any 28661 new_path="${new_path/%.exe/}" 28662 # Do not save /bin paths to all_fixpath_prefixes! 28663 else 28664 # Not in mixed or Windows style, start by that. 28665 new_path=`cmd //c echo $new_path` 28666 28667 input_path="$new_path" 28668 # Check if we need to convert this using DOS-style short mode. If the path 28669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28670 # take no chances and rewrite it. 28671 # Note: m4 eats our [], so we need to use [ and ] instead. 28672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28673 if test "x$has_forbidden_chars" != x; then 28674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28675 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28676 fi 28677 28678 # Output is in $new_path 28679 28680 windows_path="$new_path" 28681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28682 unix_path=`$CYGPATH -u "$windows_path"` 28683 new_path="$unix_path" 28684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28686 new_path="$unix_path" 28687 fi 28688 28689 # remove trailing .exe if any 28690 new_path="${new_path/%.exe/}" 28691 28692 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28693 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28694 fi 28695 28696 else 28697 # We're on a unix platform. Hooray! :) 28698 # First separate the path from the arguments. This will split at the first 28699 # space. 28700 complete="$PROPER_COMPILER_CC" 28701 path="${complete%% *}" 28702 tmp="$complete EOL" 28703 arguments="${tmp#* }" 28704 28705 # Cannot rely on the command "which" here since it doesn't always work. 28706 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28707 if test -z "$is_absolute_path"; then 28708 # Path to executable is not absolute. Find it. 28709 IFS_save="$IFS" 28710 IFS=: 28711 for p in $PATH; do 28712 if test -f "$p/$path" && test -x "$p/$path"; then 28713 new_path="$p/$path" 28714 break 28715 fi 28716 done 28717 IFS="$IFS_save" 28718 else 28719 # This is an absolute path, we can use it without further modifications. 28720 new_path="$path" 28721 fi 28722 28723 if test "x$new_path" = x; then 28724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28725 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28726 has_space=`$ECHO "$complete" | $GREP " "` 28727 if test "x$has_space" != x; then 28728 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28729 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28730 fi 28731 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28732 fi 28733 fi 28734 28735 # Now join together the path and the arguments once again 28736 if test "x$arguments" != xEOL; then 28737 new_complete="$new_path ${arguments% *}" 28738 else 28739 new_complete="$new_path" 28740 fi 28741 28742 if test "x$complete" != "x$new_complete"; then 28743 PROPER_COMPILER_CC="$new_complete" 28744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28745 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28746 fi 28747 28748 PATH="$RETRY_COMPILER_SAVED_PATH" 28749 28750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28751 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28752 28753 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28754 # Follow a chain of symbolic links. Use readlink 28755 # where it exists, else fall back to horribly 28756 # complicated shell code. 28757 if test "x$READLINK_TESTED" != yes; then 28758 # On MacOSX there is a readlink tool with a different 28759 # purpose than the GNU readlink tool. Check the found readlink. 28760 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28761 if test "x$ISGNU" = x; then 28762 # A readlink that we do not know how to use. 28763 # Are there other non-GNU readlinks out there? 28764 READLINK_TESTED=yes 28765 READLINK= 28766 fi 28767 fi 28768 28769 if test "x$READLINK" != x; then 28770 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28771 else 28772 # Save the current directory for restoring afterwards 28773 STARTDIR=$PWD 28774 COUNTER=0 28775 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28776 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28777 cd $sym_link_dir 28778 # Use -P flag to resolve symlinks in directories. 28779 cd `$THEPWDCMD -P` 28780 sym_link_dir=`$THEPWDCMD -P` 28781 # Resolve file symlinks 28782 while test $COUNTER -lt 20; do 28783 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28784 if test "x$ISLINK" == x; then 28785 # This is not a symbolic link! We are done! 28786 break 28787 fi 28788 # Again resolve directory symlinks since the target of the just found 28789 # link could be in a different directory 28790 cd `$DIRNAME $ISLINK` 28791 sym_link_dir=`$THEPWDCMD -P` 28792 sym_link_file=`$BASENAME $ISLINK` 28793 let COUNTER=COUNTER+1 28794 done 28795 cd $STARTDIR 28796 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28797 fi 28798 fi 28799 28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28801 $as_echo "$PROPER_COMPILER_CC" >&6; } 28802 CC="$PROPER_COMPILER_CC" 28803 else 28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28805 $as_echo "no, keeping CC" >&6; } 28806 fi 28807 28808 28809 COMPILER=$CC 28810 COMPILER_NAME=$COMPILER_NAME 28811 28812 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28813 # cc -V output typically looks like 28814 # cc: Sun C 5.12 Linux_i386 2011/11/16 28815 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28816 # Check that this is likely to be the Solaris Studio cc. 28817 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28818 if test $? -ne 0; then 28819 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28820 { $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 28821 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28822 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28823 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28824 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28825 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28826 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28827 fi 28828 # Remove usage instructions (if present), and 28829 # collapse compiler output into a single line 28830 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28831 $SED -e 's/ *[Uu]sage:.*//'` 28832 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28833 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28834 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28835 # xlc -qversion output typically looks like 28836 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28837 # Version: 11.01.0000.0015 28838 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28839 # Check that this is likely to be the IBM XL C compiler. 28840 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28841 if test $? -ne 0; then 28842 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28843 { $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 28844 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28845 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28846 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28847 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28848 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28849 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28850 fi 28851 # Collapse compiler output into a single line 28852 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28853 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28854 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28855 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28856 # There is no specific version flag, but all output starts with a version string. 28857 # First line typically looks something like: 28858 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28859 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28860 # Check that this is likely to be Microsoft CL.EXE. 28861 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28862 if test $? -ne 0; then 28863 { $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 28864 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28865 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28866 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28867 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28868 fi 28869 # Collapse compiler output into a single line 28870 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28871 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28872 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28873 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28874 # gcc --version output typically looks like 28875 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28876 # Copyright (C) 2013 Free Software Foundation, Inc. 28877 # This is free software; see the source for copying conditions. There is NO 28878 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28879 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28880 # Check that this is likely to be GCC. 28881 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28882 if test $? -ne 0; then 28883 { $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 28884 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28885 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28886 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28887 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28888 fi 28889 # Remove Copyright and legalese from version string, and 28890 # collapse into a single line 28891 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28892 $SED -e 's/ *Copyright .*//'` 28893 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28894 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28895 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28896 # clang --version output typically looks like 28897 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28898 # clang version 3.3 (tags/RELEASE_33/final) 28899 # or 28900 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28901 # Target: x86_64-pc-linux-gnu 28902 # Thread model: posix 28903 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28904 # Check that this is likely to be clang 28905 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28906 if test $? -ne 0; then 28907 { $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 28908 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28909 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28910 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28911 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28912 fi 28913 # Collapse compiler output into a single line 28914 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28915 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28916 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28917 else 28918 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28919 fi 28920 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28921 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28922 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28923 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28924 28925 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28926 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28927 28928 28929 # Now that we have resolved CC ourself, let autoconf have its go at it 28930 ac_ext=c 28931 ac_cpp='$CPP $CPPFLAGS' 28932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28934 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28935 if test -n "$ac_tool_prefix"; then 28936 for ac_prog in $CC 28937 do 28938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28941 $as_echo_n "checking for $ac_word... " >&6; } 28942 if ${ac_cv_prog_CC+:} false; then : 28943 $as_echo_n "(cached) " >&6 28944 else 28945 if test -n "$CC"; then 28946 ac_cv_prog_CC="$CC" # Let the user override the test. 28947 else 28948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28949 for as_dir in $PATH 28950 do 28951 IFS=$as_save_IFS 28952 test -z "$as_dir" && as_dir=. 28953 for ac_exec_ext in '' $ac_executable_extensions; do 28954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28957 break 2 28958 fi 28959 done 28960 done 28961 IFS=$as_save_IFS 28962 28963 fi 28964 fi 28965 CC=$ac_cv_prog_CC 28966 if test -n "$CC"; then 28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28968 $as_echo "$CC" >&6; } 28969 else 28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28971 $as_echo "no" >&6; } 28972 fi 28973 28974 28975 test -n "$CC" && break 28976 done 28977 fi 28978 if test -z "$CC"; then 28979 ac_ct_CC=$CC 28980 for ac_prog in $CC 28981 do 28982 # Extract the first word of "$ac_prog", so it can be a program name with args. 28983 set dummy $ac_prog; ac_word=$2 28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28985 $as_echo_n "checking for $ac_word... " >&6; } 28986 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28987 $as_echo_n "(cached) " >&6 28988 else 28989 if test -n "$ac_ct_CC"; then 28990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28991 else 28992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28993 for as_dir in $PATH 28994 do 28995 IFS=$as_save_IFS 28996 test -z "$as_dir" && as_dir=. 28997 for ac_exec_ext in '' $ac_executable_extensions; do 28998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28999 ac_cv_prog_ac_ct_CC="$ac_prog" 29000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29001 break 2 29002 fi 29003 done 29004 done 29005 IFS=$as_save_IFS 29006 29007 fi 29008 fi 29009 ac_ct_CC=$ac_cv_prog_ac_ct_CC 29010 if test -n "$ac_ct_CC"; then 29011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29012 $as_echo "$ac_ct_CC" >&6; } 29013 else 29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29015 $as_echo "no" >&6; } 29016 fi 29017 29018 29019 test -n "$ac_ct_CC" && break 29020 done 29021 29022 if test "x$ac_ct_CC" = x; then 29023 CC="" 29024 else 29025 case $cross_compiling:$ac_tool_warned in 29026 yes:) 29027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29029 ac_tool_warned=yes ;; 29030 esac 29031 CC=$ac_ct_CC 29032 fi 29033 fi 29034 29035 29036 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29038 as_fn_error $? "no acceptable C compiler found in \$PATH 29039 See \`config.log' for more details" "$LINENO" 5; } 29040 29041 # Provide some information about the compiler. 29042 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29043 set X $ac_compile 29044 ac_compiler=$2 29045 for ac_option in --version -v -V -qversion; do 29046 { { ac_try="$ac_compiler $ac_option >&5" 29047 case "(($ac_try" in 29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29049 *) ac_try_echo=$ac_try;; 29050 esac 29051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29052 $as_echo "$ac_try_echo"; } >&5 29053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29054 ac_status=$? 29055 if test -s conftest.err; then 29056 sed '10a\ 29057 ... rest of stderr output deleted ... 29058 10q' conftest.err >conftest.er1 29059 cat conftest.er1 >&5 29060 fi 29061 rm -f conftest.er1 conftest.err 29062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29063 test $ac_status = 0; } 29064 done 29065 29066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29067 /* end confdefs.h. */ 29068 29069 int 29070 main () 29071 { 29072 29073 ; 29074 return 0; 29075 } 29076 _ACEOF 29077 ac_clean_files_save=$ac_clean_files 29078 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29079 # Try to create an executable without -o first, disregard a.out. 29080 # It will help us diagnose broken compilers, and finding out an intuition 29081 # of exeext. 29082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29083 $as_echo_n "checking whether the C compiler works... " >&6; } 29084 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29085 29086 # The possible output files: 29087 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29088 29089 ac_rmfiles= 29090 for ac_file in $ac_files 29091 do 29092 case $ac_file in 29093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29094 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29095 esac 29096 done 29097 rm -f $ac_rmfiles 29098 29099 if { { ac_try="$ac_link_default" 29100 case "(($ac_try" in 29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29102 *) ac_try_echo=$ac_try;; 29103 esac 29104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29105 $as_echo "$ac_try_echo"; } >&5 29106 (eval "$ac_link_default") 2>&5 29107 ac_status=$? 29108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29109 test $ac_status = 0; }; then : 29110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29111 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29112 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29113 # so that the user can short-circuit this test for compilers unknown to 29114 # Autoconf. 29115 for ac_file in $ac_files '' 29116 do 29117 test -f "$ac_file" || continue 29118 case $ac_file in 29119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29120 ;; 29121 [ab].out ) 29122 # We found the default executable, but exeext='' is most 29123 # certainly right. 29124 break;; 29125 *.* ) 29126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29127 then :; else 29128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29129 fi 29130 # We set ac_cv_exeext here because the later test for it is not 29131 # safe: cross compilers may not add the suffix if given an `-o' 29132 # argument, so we may need to know it at that point already. 29133 # Even if this section looks crufty: it has the advantage of 29134 # actually working. 29135 break;; 29136 * ) 29137 break;; 29138 esac 29139 done 29140 test "$ac_cv_exeext" = no && ac_cv_exeext= 29141 29142 else 29143 ac_file='' 29144 fi 29145 if test -z "$ac_file"; then : 29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29147 $as_echo "no" >&6; } 29148 $as_echo "$as_me: failed program was:" >&5 29149 sed 's/^/| /' conftest.$ac_ext >&5 29150 29151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29153 as_fn_error 77 "C compiler cannot create executables 29154 See \`config.log' for more details" "$LINENO" 5; } 29155 else 29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29157 $as_echo "yes" >&6; } 29158 fi 29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29160 $as_echo_n "checking for C compiler default output file name... " >&6; } 29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29162 $as_echo "$ac_file" >&6; } 29163 ac_exeext=$ac_cv_exeext 29164 29165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29166 ac_clean_files=$ac_clean_files_save 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29168 $as_echo_n "checking for suffix of executables... " >&6; } 29169 if { { ac_try="$ac_link" 29170 case "(($ac_try" in 29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29172 *) ac_try_echo=$ac_try;; 29173 esac 29174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29175 $as_echo "$ac_try_echo"; } >&5 29176 (eval "$ac_link") 2>&5 29177 ac_status=$? 29178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29179 test $ac_status = 0; }; then : 29180 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29182 # work properly (i.e., refer to `conftest.exe'), while it won't with 29183 # `rm'. 29184 for ac_file in conftest.exe conftest conftest.*; do 29185 test -f "$ac_file" || continue 29186 case $ac_file in 29187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29189 break;; 29190 * ) break;; 29191 esac 29192 done 29193 else 29194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29196 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29197 See \`config.log' for more details" "$LINENO" 5; } 29198 fi 29199 rm -f conftest conftest$ac_cv_exeext 29200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29201 $as_echo "$ac_cv_exeext" >&6; } 29202 29203 rm -f conftest.$ac_ext 29204 EXEEXT=$ac_cv_exeext 29205 ac_exeext=$EXEEXT 29206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29207 /* end confdefs.h. */ 29208 #include <stdio.h> 29209 int 29210 main () 29211 { 29212 FILE *f = fopen ("conftest.out", "w"); 29213 return ferror (f) || fclose (f) != 0; 29214 29215 ; 29216 return 0; 29217 } 29218 _ACEOF 29219 ac_clean_files="$ac_clean_files conftest.out" 29220 # Check that the compiler produces executables we can run. If not, either 29221 # the compiler is broken, or we cross compile. 29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29223 $as_echo_n "checking whether we are cross compiling... " >&6; } 29224 if test "$cross_compiling" != yes; then 29225 { { ac_try="$ac_link" 29226 case "(($ac_try" in 29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29228 *) ac_try_echo=$ac_try;; 29229 esac 29230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29231 $as_echo "$ac_try_echo"; } >&5 29232 (eval "$ac_link") 2>&5 29233 ac_status=$? 29234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29235 test $ac_status = 0; } 29236 if { ac_try='./conftest$ac_cv_exeext' 29237 { { case "(($ac_try" in 29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29239 *) ac_try_echo=$ac_try;; 29240 esac 29241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29242 $as_echo "$ac_try_echo"; } >&5 29243 (eval "$ac_try") 2>&5 29244 ac_status=$? 29245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29246 test $ac_status = 0; }; }; then 29247 cross_compiling=no 29248 else 29249 if test "$cross_compiling" = maybe; then 29250 cross_compiling=yes 29251 else 29252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29254 as_fn_error $? "cannot run C compiled programs. 29255 If you meant to cross compile, use \`--host'. 29256 See \`config.log' for more details" "$LINENO" 5; } 29257 fi 29258 fi 29259 fi 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29261 $as_echo "$cross_compiling" >&6; } 29262 29263 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29264 ac_clean_files=$ac_clean_files_save 29265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29266 $as_echo_n "checking for suffix of object files... " >&6; } 29267 if ${ac_cv_objext+:} false; then : 29268 $as_echo_n "(cached) " >&6 29269 else 29270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29271 /* end confdefs.h. */ 29272 29273 int 29274 main () 29275 { 29276 29277 ; 29278 return 0; 29279 } 29280 _ACEOF 29281 rm -f conftest.o conftest.obj 29282 if { { ac_try="$ac_compile" 29283 case "(($ac_try" in 29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29285 *) ac_try_echo=$ac_try;; 29286 esac 29287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29288 $as_echo "$ac_try_echo"; } >&5 29289 (eval "$ac_compile") 2>&5 29290 ac_status=$? 29291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29292 test $ac_status = 0; }; then : 29293 for ac_file in conftest.o conftest.obj conftest.*; do 29294 test -f "$ac_file" || continue; 29295 case $ac_file in 29296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29298 break;; 29299 esac 29300 done 29301 else 29302 $as_echo "$as_me: failed program was:" >&5 29303 sed 's/^/| /' conftest.$ac_ext >&5 29304 29305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29307 as_fn_error $? "cannot compute suffix of object files: cannot compile 29308 See \`config.log' for more details" "$LINENO" 5; } 29309 fi 29310 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29311 fi 29312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29313 $as_echo "$ac_cv_objext" >&6; } 29314 OBJEXT=$ac_cv_objext 29315 ac_objext=$OBJEXT 29316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29317 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29318 if ${ac_cv_c_compiler_gnu+:} false; then : 29319 $as_echo_n "(cached) " >&6 29320 else 29321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29322 /* end confdefs.h. */ 29323 29324 int 29325 main () 29326 { 29327 #ifndef __GNUC__ 29328 choke me 29329 #endif 29330 29331 ; 29332 return 0; 29333 } 29334 _ACEOF 29335 if ac_fn_c_try_compile "$LINENO"; then : 29336 ac_compiler_gnu=yes 29337 else 29338 ac_compiler_gnu=no 29339 fi 29340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29341 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29342 29343 fi 29344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29345 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29346 if test $ac_compiler_gnu = yes; then 29347 GCC=yes 29348 else 29349 GCC= 29350 fi 29351 ac_test_CFLAGS=${CFLAGS+set} 29352 ac_save_CFLAGS=$CFLAGS 29353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29354 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29355 if ${ac_cv_prog_cc_g+:} false; then : 29356 $as_echo_n "(cached) " >&6 29357 else 29358 ac_save_c_werror_flag=$ac_c_werror_flag 29359 ac_c_werror_flag=yes 29360 ac_cv_prog_cc_g=no 29361 CFLAGS="-g" 29362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29363 /* end confdefs.h. */ 29364 29365 int 29366 main () 29367 { 29368 29369 ; 29370 return 0; 29371 } 29372 _ACEOF 29373 if ac_fn_c_try_compile "$LINENO"; then : 29374 ac_cv_prog_cc_g=yes 29375 else 29376 CFLAGS="" 29377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29378 /* end confdefs.h. */ 29379 29380 int 29381 main () 29382 { 29383 29384 ; 29385 return 0; 29386 } 29387 _ACEOF 29388 if ac_fn_c_try_compile "$LINENO"; then : 29389 29390 else 29391 ac_c_werror_flag=$ac_save_c_werror_flag 29392 CFLAGS="-g" 29393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29394 /* end confdefs.h. */ 29395 29396 int 29397 main () 29398 { 29399 29400 ; 29401 return 0; 29402 } 29403 _ACEOF 29404 if ac_fn_c_try_compile "$LINENO"; then : 29405 ac_cv_prog_cc_g=yes 29406 fi 29407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29408 fi 29409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29410 fi 29411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29412 ac_c_werror_flag=$ac_save_c_werror_flag 29413 fi 29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29415 $as_echo "$ac_cv_prog_cc_g" >&6; } 29416 if test "$ac_test_CFLAGS" = set; then 29417 CFLAGS=$ac_save_CFLAGS 29418 elif test $ac_cv_prog_cc_g = yes; then 29419 if test "$GCC" = yes; then 29420 CFLAGS="-g -O2" 29421 else 29422 CFLAGS="-g" 29423 fi 29424 else 29425 if test "$GCC" = yes; then 29426 CFLAGS="-O2" 29427 else 29428 CFLAGS= 29429 fi 29430 fi 29431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29432 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29433 if ${ac_cv_prog_cc_c89+:} false; then : 29434 $as_echo_n "(cached) " >&6 29435 else 29436 ac_cv_prog_cc_c89=no 29437 ac_save_CC=$CC 29438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29439 /* end confdefs.h. */ 29440 #include <stdarg.h> 29441 #include <stdio.h> 29442 struct stat; 29443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29444 struct buf { int x; }; 29445 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29446 static char *e (p, i) 29447 char **p; 29448 int i; 29449 { 29450 return p[i]; 29451 } 29452 static char *f (char * (*g) (char **, int), char **p, ...) 29453 { 29454 char *s; 29455 va_list v; 29456 va_start (v,p); 29457 s = g (p, va_arg (v,int)); 29458 va_end (v); 29459 return s; 29460 } 29461 29462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29463 function prototypes and stuff, but not '\xHH' hex character constants. 29464 These don't provoke an error unfortunately, instead are silently treated 29465 as 'x'. The following induces an error, until -std is added to get 29466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29467 array size at least. It's necessary to write '\x00'==0 to get something 29468 that's true only with -std. */ 29469 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29470 29471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29472 inside strings and character constants. */ 29473 #define FOO(x) 'x' 29474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29475 29476 int test (int i, double x); 29477 struct s1 {int (*f) (int a);}; 29478 struct s2 {int (*f) (double a);}; 29479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29480 int argc; 29481 char **argv; 29482 int 29483 main () 29484 { 29485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29486 ; 29487 return 0; 29488 } 29489 _ACEOF 29490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29492 do 29493 CC="$ac_save_CC $ac_arg" 29494 if ac_fn_c_try_compile "$LINENO"; then : 29495 ac_cv_prog_cc_c89=$ac_arg 29496 fi 29497 rm -f core conftest.err conftest.$ac_objext 29498 test "x$ac_cv_prog_cc_c89" != "xno" && break 29499 done 29500 rm -f conftest.$ac_ext 29501 CC=$ac_save_CC 29502 29503 fi 29504 # AC_CACHE_VAL 29505 case "x$ac_cv_prog_cc_c89" in 29506 x) 29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29508 $as_echo "none needed" >&6; } ;; 29509 xno) 29510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29511 $as_echo "unsupported" >&6; } ;; 29512 *) 29513 CC="$CC $ac_cv_prog_cc_c89" 29514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29516 esac 29517 if test "x$ac_cv_prog_cc_c89" != xno; then : 29518 29519 fi 29520 29521 ac_ext=cpp 29522 ac_cpp='$CXXCPP $CPPFLAGS' 29523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29526 29527 29528 29529 COMPILER_NAME=C++ 29530 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29531 29532 if test "x$CXX" != x; then 29533 # User has supplied compiler name already, always let that override. 29534 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29535 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29536 if test "x`basename $CXX`" = "x$CXX"; then 29537 # A command without a complete path is provided, search $PATH. 29538 29539 for ac_prog in $CXX 29540 do 29541 # Extract the first word of "$ac_prog", so it can be a program name with args. 29542 set dummy $ac_prog; ac_word=$2 29543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29544 $as_echo_n "checking for $ac_word... " >&6; } 29545 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29546 $as_echo_n "(cached) " >&6 29547 else 29548 case $POTENTIAL_CXX in 29549 [\\/]* | ?:[\\/]*) 29550 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29551 ;; 29552 *) 29553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29554 for as_dir in $PATH 29555 do 29556 IFS=$as_save_IFS 29557 test -z "$as_dir" && as_dir=. 29558 for ac_exec_ext in '' $ac_executable_extensions; do 29559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29560 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29562 break 2 29563 fi 29564 done 29565 done 29566 IFS=$as_save_IFS 29567 29568 ;; 29569 esac 29570 fi 29571 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29572 if test -n "$POTENTIAL_CXX"; then 29573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29574 $as_echo "$POTENTIAL_CXX" >&6; } 29575 else 29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29577 $as_echo "no" >&6; } 29578 fi 29579 29580 29581 test -n "$POTENTIAL_CXX" && break 29582 done 29583 29584 if test "x$POTENTIAL_CXX" != x; then 29585 CXX=$POTENTIAL_CXX 29586 else 29587 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29588 fi 29589 else 29590 # Otherwise it might already be a complete path 29591 if test ! -x "$CXX"; then 29592 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29593 fi 29594 fi 29595 else 29596 # No user supplied value. Locate compiler ourselves. 29597 29598 # If we are cross compiling, assume cross compilation tools follows the 29599 # cross compilation standard where they are prefixed with the autoconf 29600 # standard name for the target. For example the binary 29601 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29602 # If we are not cross compiling, then the default compiler name will be 29603 # used. 29604 29605 CXX= 29606 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29607 # before checking the rest of the PATH. 29608 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29609 # step, this should not be necessary. 29610 if test -n "$TOOLCHAIN_PATH"; then 29611 PATH_save="$PATH" 29612 PATH="$TOOLCHAIN_PATH" 29613 for ac_prog in $SEARCH_LIST 29614 do 29615 # Extract the first word of "$ac_prog", so it can be a program name with args. 29616 set dummy $ac_prog; ac_word=$2 29617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29618 $as_echo_n "checking for $ac_word... " >&6; } 29619 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29620 $as_echo_n "(cached) " >&6 29621 else 29622 case $TOOLCHAIN_PATH_CXX in 29623 [\\/]* | ?:[\\/]*) 29624 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29625 ;; 29626 *) 29627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29628 for as_dir in $PATH 29629 do 29630 IFS=$as_save_IFS 29631 test -z "$as_dir" && as_dir=. 29632 for ac_exec_ext in '' $ac_executable_extensions; do 29633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29634 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29636 break 2 29637 fi 29638 done 29639 done 29640 IFS=$as_save_IFS 29641 29642 ;; 29643 esac 29644 fi 29645 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29646 if test -n "$TOOLCHAIN_PATH_CXX"; then 29647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29648 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29649 else 29650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29651 $as_echo "no" >&6; } 29652 fi 29653 29654 29655 test -n "$TOOLCHAIN_PATH_CXX" && break 29656 done 29657 29658 CXX=$TOOLCHAIN_PATH_CXX 29659 PATH="$PATH_save" 29660 fi 29661 29662 # AC_PATH_PROGS can't be run multiple times with the same variable, 29663 # so create a new name for this run. 29664 if test "x$CXX" = x; then 29665 for ac_prog in $SEARCH_LIST 29666 do 29667 # Extract the first word of "$ac_prog", so it can be a program name with args. 29668 set dummy $ac_prog; ac_word=$2 29669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29670 $as_echo_n "checking for $ac_word... " >&6; } 29671 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29672 $as_echo_n "(cached) " >&6 29673 else 29674 case $POTENTIAL_CXX in 29675 [\\/]* | ?:[\\/]*) 29676 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29677 ;; 29678 *) 29679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29680 for as_dir in $PATH 29681 do 29682 IFS=$as_save_IFS 29683 test -z "$as_dir" && as_dir=. 29684 for ac_exec_ext in '' $ac_executable_extensions; do 29685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29686 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29688 break 2 29689 fi 29690 done 29691 done 29692 IFS=$as_save_IFS 29693 29694 ;; 29695 esac 29696 fi 29697 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29698 if test -n "$POTENTIAL_CXX"; then 29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29700 $as_echo "$POTENTIAL_CXX" >&6; } 29701 else 29702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29703 $as_echo "no" >&6; } 29704 fi 29705 29706 29707 test -n "$POTENTIAL_CXX" && break 29708 done 29709 29710 CXX=$POTENTIAL_CXX 29711 fi 29712 29713 if test "x$CXX" = x; then 29714 29715 # Print a helpful message on how to acquire the necessary build dependency. 29716 # devkit is the help tag: freetype, cups, pulse, alsa etc 29717 MISSING_DEPENDENCY=devkit 29718 29719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29720 cygwin_help $MISSING_DEPENDENCY 29721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29722 msys_help $MISSING_DEPENDENCY 29723 else 29724 PKGHANDLER_COMMAND= 29725 29726 case $PKGHANDLER in 29727 apt-get) 29728 apt_help $MISSING_DEPENDENCY ;; 29729 yum) 29730 yum_help $MISSING_DEPENDENCY ;; 29731 port) 29732 port_help $MISSING_DEPENDENCY ;; 29733 pkgutil) 29734 pkgutil_help $MISSING_DEPENDENCY ;; 29735 pkgadd) 29736 pkgadd_help $MISSING_DEPENDENCY ;; 29737 esac 29738 29739 if test "x$PKGHANDLER_COMMAND" != x; then 29740 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29741 fi 29742 fi 29743 29744 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29745 fi 29746 fi 29747 29748 # Now we have a compiler binary in CXX. Make sure it's okay. 29749 29750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29751 29752 # First separate the path from the arguments. This will split at the first 29753 # space. 29754 complete="$CXX" 29755 path="${complete%% *}" 29756 tmp="$complete EOL" 29757 arguments="${tmp#* }" 29758 29759 # Input might be given as Windows format, start by converting to 29760 # unix format. 29761 new_path=`$CYGPATH -u "$path"` 29762 29763 # Now try to locate executable using which 29764 new_path=`$WHICH "$new_path" 2> /dev/null` 29765 # bat and cmd files are not always considered executable in cygwin causing which 29766 # to not find them 29767 if test "x$new_path" = x \ 29768 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29769 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29770 new_path=`$CYGPATH -u "$path"` 29771 fi 29772 if test "x$new_path" = x; then 29773 # Oops. Which didn't find the executable. 29774 # The splitting of arguments from the executable at a space might have been incorrect, 29775 # since paths with space are more likely in Windows. Give it another try with the whole 29776 # argument. 29777 path="$complete" 29778 arguments="EOL" 29779 new_path=`$CYGPATH -u "$path"` 29780 new_path=`$WHICH "$new_path" 2> /dev/null` 29781 # bat and cmd files are not always considered executable in cygwin causing which 29782 # to not find them 29783 if test "x$new_path" = x \ 29784 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29785 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29786 new_path=`$CYGPATH -u "$path"` 29787 fi 29788 if test "x$new_path" = x; then 29789 # It's still not found. Now this is an unrecoverable error. 29790 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29791 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29792 has_space=`$ECHO "$complete" | $GREP " "` 29793 if test "x$has_space" != x; then 29794 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29795 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29796 fi 29797 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29798 fi 29799 fi 29800 29801 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29802 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29803 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29804 # "foo.exe" is OK but "foo" is an error. 29805 # 29806 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29807 # It is also a way to make sure we got the proper file name for the real test later on. 29808 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29809 if test "x$test_shortpath" = x; then 29810 # Short path failed, file does not exist as specified. 29811 # Try adding .exe or .cmd 29812 if test -f "${new_path}.exe"; then 29813 input_to_shortpath="${new_path}.exe" 29814 elif test -f "${new_path}.cmd"; then 29815 input_to_shortpath="${new_path}.cmd" 29816 else 29817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29818 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29819 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29820 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29821 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29822 fi 29823 else 29824 input_to_shortpath="$new_path" 29825 fi 29826 29827 # Call helper function which possibly converts this using DOS-style short mode. 29828 # If so, the updated path is stored in $new_path. 29829 new_path="$input_to_shortpath" 29830 29831 input_path="$input_to_shortpath" 29832 # Check if we need to convert this using DOS-style short mode. If the path 29833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29834 # take no chances and rewrite it. 29835 # Note: m4 eats our [], so we need to use [ and ] instead. 29836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29837 if test "x$has_forbidden_chars" != x; then 29838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29839 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29840 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29841 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29842 # Going to short mode and back again did indeed matter. Since short mode is 29843 # case insensitive, let's make it lowercase to improve readability. 29844 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29845 # Now convert it back to Unix-stile (cygpath) 29846 input_path=`$CYGPATH -u "$shortmode_path"` 29847 new_path="$input_path" 29848 fi 29849 fi 29850 29851 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29852 if test "x$test_cygdrive_prefix" = x; then 29853 # As a simple fix, exclude /usr/bin since it's not a real path. 29854 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29855 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29856 # a path prefixed by /cygdrive for fixpath to work. 29857 new_path="$CYGWIN_ROOT_PATH$input_path" 29858 fi 29859 fi 29860 29861 # remove trailing .exe if any 29862 new_path="${new_path/%.exe/}" 29863 29864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29865 29866 # First separate the path from the arguments. This will split at the first 29867 # space. 29868 complete="$CXX" 29869 path="${complete%% *}" 29870 tmp="$complete EOL" 29871 arguments="${tmp#* }" 29872 29873 # Input might be given as Windows format, start by converting to 29874 # unix format. 29875 new_path="$path" 29876 29877 windows_path="$new_path" 29878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29879 unix_path=`$CYGPATH -u "$windows_path"` 29880 new_path="$unix_path" 29881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29882 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29883 new_path="$unix_path" 29884 fi 29885 29886 29887 # Now try to locate executable using which 29888 new_path=`$WHICH "$new_path" 2> /dev/null` 29889 29890 if test "x$new_path" = x; then 29891 # Oops. Which didn't find the executable. 29892 # The splitting of arguments from the executable at a space might have been incorrect, 29893 # since paths with space are more likely in Windows. Give it another try with the whole 29894 # argument. 29895 path="$complete" 29896 arguments="EOL" 29897 new_path="$path" 29898 29899 windows_path="$new_path" 29900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29901 unix_path=`$CYGPATH -u "$windows_path"` 29902 new_path="$unix_path" 29903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29904 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29905 new_path="$unix_path" 29906 fi 29907 29908 29909 new_path=`$WHICH "$new_path" 2> /dev/null` 29910 # bat and cmd files are not always considered executable in MSYS causing which 29911 # to not find them 29912 if test "x$new_path" = x \ 29913 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29914 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29915 new_path="$path" 29916 29917 windows_path="$new_path" 29918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29919 unix_path=`$CYGPATH -u "$windows_path"` 29920 new_path="$unix_path" 29921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29923 new_path="$unix_path" 29924 fi 29925 29926 fi 29927 29928 if test "x$new_path" = x; then 29929 # It's still not found. Now this is an unrecoverable error. 29930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29931 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29932 has_space=`$ECHO "$complete" | $GREP " "` 29933 if test "x$has_space" != x; then 29934 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29935 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29936 fi 29937 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29938 fi 29939 fi 29940 29941 # Now new_path has a complete unix path to the binary 29942 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29943 # Keep paths in /bin as-is, but remove trailing .exe if any 29944 new_path="${new_path/%.exe/}" 29945 # Do not save /bin paths to all_fixpath_prefixes! 29946 else 29947 # Not in mixed or Windows style, start by that. 29948 new_path=`cmd //c echo $new_path` 29949 29950 input_path="$new_path" 29951 # Check if we need to convert this using DOS-style short mode. If the path 29952 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29953 # take no chances and rewrite it. 29954 # Note: m4 eats our [], so we need to use [ and ] instead. 29955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29956 if test "x$has_forbidden_chars" != x; then 29957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29958 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29959 fi 29960 29961 # Output is in $new_path 29962 29963 windows_path="$new_path" 29964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29965 unix_path=`$CYGPATH -u "$windows_path"` 29966 new_path="$unix_path" 29967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29968 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29969 new_path="$unix_path" 29970 fi 29971 29972 # remove trailing .exe if any 29973 new_path="${new_path/%.exe/}" 29974 29975 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29976 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29977 fi 29978 29979 else 29980 # We're on a unix platform. Hooray! :) 29981 # First separate the path from the arguments. This will split at the first 29982 # space. 29983 complete="$CXX" 29984 path="${complete%% *}" 29985 tmp="$complete EOL" 29986 arguments="${tmp#* }" 29987 29988 # Cannot rely on the command "which" here since it doesn't always work. 29989 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29990 if test -z "$is_absolute_path"; then 29991 # Path to executable is not absolute. Find it. 29992 IFS_save="$IFS" 29993 IFS=: 29994 for p in $PATH; do 29995 if test -f "$p/$path" && test -x "$p/$path"; then 29996 new_path="$p/$path" 29997 break 29998 fi 29999 done 30000 IFS="$IFS_save" 30001 else 30002 # This is an absolute path, we can use it without further modifications. 30003 new_path="$path" 30004 fi 30005 30006 if test "x$new_path" = x; then 30007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30008 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30009 has_space=`$ECHO "$complete" | $GREP " "` 30010 if test "x$has_space" != x; then 30011 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30012 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30013 fi 30014 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30015 fi 30016 fi 30017 30018 # Now join together the path and the arguments once again 30019 if test "x$arguments" != xEOL; then 30020 new_complete="$new_path ${arguments% *}" 30021 else 30022 new_complete="$new_path" 30023 fi 30024 30025 if test "x$complete" != "x$new_complete"; then 30026 CXX="$new_complete" 30027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 30028 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 30029 fi 30030 30031 TEST_COMPILER="$CXX" 30032 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 30033 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 30034 if test "x$OPENJDK_BUILD_OS" != xaix; then 30035 # FIXME: This test should not be needed anymore; we don't do that for any platform. 30036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 30037 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 30038 30039 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30040 # Follow a chain of symbolic links. Use readlink 30041 # where it exists, else fall back to horribly 30042 # complicated shell code. 30043 if test "x$READLINK_TESTED" != yes; then 30044 # On MacOSX there is a readlink tool with a different 30045 # purpose than the GNU readlink tool. Check the found readlink. 30046 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30047 if test "x$ISGNU" = x; then 30048 # A readlink that we do not know how to use. 30049 # Are there other non-GNU readlinks out there? 30050 READLINK_TESTED=yes 30051 READLINK= 30052 fi 30053 fi 30054 30055 if test "x$READLINK" != x; then 30056 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30057 else 30058 # Save the current directory for restoring afterwards 30059 STARTDIR=$PWD 30060 COUNTER=0 30061 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30062 sym_link_file=`$BASENAME $TEST_COMPILER` 30063 cd $sym_link_dir 30064 # Use -P flag to resolve symlinks in directories. 30065 cd `$THEPWDCMD -P` 30066 sym_link_dir=`$THEPWDCMD -P` 30067 # Resolve file symlinks 30068 while test $COUNTER -lt 20; do 30069 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30070 if test "x$ISLINK" == x; then 30071 # This is not a symbolic link! We are done! 30072 break 30073 fi 30074 # Again resolve directory symlinks since the target of the just found 30075 # link could be in a different directory 30076 cd `$DIRNAME $ISLINK` 30077 sym_link_dir=`$THEPWDCMD -P` 30078 sym_link_file=`$BASENAME $ISLINK` 30079 let COUNTER=COUNTER+1 30080 done 30081 cd $STARTDIR 30082 TEST_COMPILER=$sym_link_dir/$sym_link_file 30083 fi 30084 fi 30085 30086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30087 $as_echo "$TEST_COMPILER" >&6; } 30088 fi 30089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30090 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30091 30092 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30093 if test "x$COMPILER_BASENAME" = "xccache"; then 30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30095 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30096 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30097 # We want to control ccache invocation ourselves, so ignore this cc and try 30098 # searching again. 30099 30100 # Remove the path to the fake ccache cc from the PATH 30101 RETRY_COMPILER_SAVED_PATH="$PATH" 30102 COMPILER_DIRNAME=`$DIRNAME $CXX` 30103 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30104 30105 # Try again looking for our compiler 30106 if test -n "$ac_tool_prefix"; then 30107 for ac_prog in $TOOLCHAIN_CXX_BINARY 30108 do 30109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30112 $as_echo_n "checking for $ac_word... " >&6; } 30113 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30114 $as_echo_n "(cached) " >&6 30115 else 30116 if test -n "$PROPER_COMPILER_CXX"; then 30117 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30118 else 30119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30120 for as_dir in $PATH 30121 do 30122 IFS=$as_save_IFS 30123 test -z "$as_dir" && as_dir=. 30124 for ac_exec_ext in '' $ac_executable_extensions; do 30125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30126 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30128 break 2 30129 fi 30130 done 30131 done 30132 IFS=$as_save_IFS 30133 30134 fi 30135 fi 30136 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30137 if test -n "$PROPER_COMPILER_CXX"; then 30138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30139 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30140 else 30141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30142 $as_echo "no" >&6; } 30143 fi 30144 30145 30146 test -n "$PROPER_COMPILER_CXX" && break 30147 done 30148 fi 30149 if test -z "$PROPER_COMPILER_CXX"; then 30150 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30151 for ac_prog in $TOOLCHAIN_CXX_BINARY 30152 do 30153 # Extract the first word of "$ac_prog", so it can be a program name with args. 30154 set dummy $ac_prog; ac_word=$2 30155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30156 $as_echo_n "checking for $ac_word... " >&6; } 30157 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30158 $as_echo_n "(cached) " >&6 30159 else 30160 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30161 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30162 else 30163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30164 for as_dir in $PATH 30165 do 30166 IFS=$as_save_IFS 30167 test -z "$as_dir" && as_dir=. 30168 for ac_exec_ext in '' $ac_executable_extensions; do 30169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30170 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30172 break 2 30173 fi 30174 done 30175 done 30176 IFS=$as_save_IFS 30177 30178 fi 30179 fi 30180 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30181 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30183 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30184 else 30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30186 $as_echo "no" >&6; } 30187 fi 30188 30189 30190 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30191 done 30192 30193 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30194 PROPER_COMPILER_CXX="" 30195 else 30196 case $cross_compiling:$ac_tool_warned in 30197 yes:) 30198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30200 ac_tool_warned=yes ;; 30201 esac 30202 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30203 fi 30204 fi 30205 30206 30207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30208 30209 # First separate the path from the arguments. This will split at the first 30210 # space. 30211 complete="$PROPER_COMPILER_CXX" 30212 path="${complete%% *}" 30213 tmp="$complete EOL" 30214 arguments="${tmp#* }" 30215 30216 # Input might be given as Windows format, start by converting to 30217 # unix format. 30218 new_path=`$CYGPATH -u "$path"` 30219 30220 # Now try to locate executable using which 30221 new_path=`$WHICH "$new_path" 2> /dev/null` 30222 # bat and cmd files are not always considered executable in cygwin causing which 30223 # to not find them 30224 if test "x$new_path" = x \ 30225 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30226 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30227 new_path=`$CYGPATH -u "$path"` 30228 fi 30229 if test "x$new_path" = x; then 30230 # Oops. Which didn't find the executable. 30231 # The splitting of arguments from the executable at a space might have been incorrect, 30232 # since paths with space are more likely in Windows. Give it another try with the whole 30233 # argument. 30234 path="$complete" 30235 arguments="EOL" 30236 new_path=`$CYGPATH -u "$path"` 30237 new_path=`$WHICH "$new_path" 2> /dev/null` 30238 # bat and cmd files are not always considered executable in cygwin causing which 30239 # to not find them 30240 if test "x$new_path" = x \ 30241 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30242 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30243 new_path=`$CYGPATH -u "$path"` 30244 fi 30245 if test "x$new_path" = x; then 30246 # It's still not found. Now this is an unrecoverable error. 30247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30248 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30249 has_space=`$ECHO "$complete" | $GREP " "` 30250 if test "x$has_space" != x; then 30251 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30252 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30253 fi 30254 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30255 fi 30256 fi 30257 30258 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30259 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30260 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30261 # "foo.exe" is OK but "foo" is an error. 30262 # 30263 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30264 # It is also a way to make sure we got the proper file name for the real test later on. 30265 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30266 if test "x$test_shortpath" = x; then 30267 # Short path failed, file does not exist as specified. 30268 # Try adding .exe or .cmd 30269 if test -f "${new_path}.exe"; then 30270 input_to_shortpath="${new_path}.exe" 30271 elif test -f "${new_path}.cmd"; then 30272 input_to_shortpath="${new_path}.cmd" 30273 else 30274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30275 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30276 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30277 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30278 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30279 fi 30280 else 30281 input_to_shortpath="$new_path" 30282 fi 30283 30284 # Call helper function which possibly converts this using DOS-style short mode. 30285 # If so, the updated path is stored in $new_path. 30286 new_path="$input_to_shortpath" 30287 30288 input_path="$input_to_shortpath" 30289 # Check if we need to convert this using DOS-style short mode. If the path 30290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30291 # take no chances and rewrite it. 30292 # Note: m4 eats our [], so we need to use [ and ] instead. 30293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30294 if test "x$has_forbidden_chars" != x; then 30295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30296 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30297 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30298 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30299 # Going to short mode and back again did indeed matter. Since short mode is 30300 # case insensitive, let's make it lowercase to improve readability. 30301 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30302 # Now convert it back to Unix-stile (cygpath) 30303 input_path=`$CYGPATH -u "$shortmode_path"` 30304 new_path="$input_path" 30305 fi 30306 fi 30307 30308 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30309 if test "x$test_cygdrive_prefix" = x; then 30310 # As a simple fix, exclude /usr/bin since it's not a real path. 30311 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30312 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30313 # a path prefixed by /cygdrive for fixpath to work. 30314 new_path="$CYGWIN_ROOT_PATH$input_path" 30315 fi 30316 fi 30317 30318 # remove trailing .exe if any 30319 new_path="${new_path/%.exe/}" 30320 30321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30322 30323 # First separate the path from the arguments. This will split at the first 30324 # space. 30325 complete="$PROPER_COMPILER_CXX" 30326 path="${complete%% *}" 30327 tmp="$complete EOL" 30328 arguments="${tmp#* }" 30329 30330 # Input might be given as Windows format, start by converting to 30331 # unix format. 30332 new_path="$path" 30333 30334 windows_path="$new_path" 30335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30336 unix_path=`$CYGPATH -u "$windows_path"` 30337 new_path="$unix_path" 30338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30340 new_path="$unix_path" 30341 fi 30342 30343 30344 # Now try to locate executable using which 30345 new_path=`$WHICH "$new_path" 2> /dev/null` 30346 30347 if test "x$new_path" = x; then 30348 # Oops. Which didn't find the executable. 30349 # The splitting of arguments from the executable at a space might have been incorrect, 30350 # since paths with space are more likely in Windows. Give it another try with the whole 30351 # argument. 30352 path="$complete" 30353 arguments="EOL" 30354 new_path="$path" 30355 30356 windows_path="$new_path" 30357 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30358 unix_path=`$CYGPATH -u "$windows_path"` 30359 new_path="$unix_path" 30360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30361 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30362 new_path="$unix_path" 30363 fi 30364 30365 30366 new_path=`$WHICH "$new_path" 2> /dev/null` 30367 # bat and cmd files are not always considered executable in MSYS causing which 30368 # to not find them 30369 if test "x$new_path" = x \ 30370 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30371 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30372 new_path="$path" 30373 30374 windows_path="$new_path" 30375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30376 unix_path=`$CYGPATH -u "$windows_path"` 30377 new_path="$unix_path" 30378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30380 new_path="$unix_path" 30381 fi 30382 30383 fi 30384 30385 if test "x$new_path" = x; then 30386 # It's still not found. Now this is an unrecoverable error. 30387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30388 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30389 has_space=`$ECHO "$complete" | $GREP " "` 30390 if test "x$has_space" != x; then 30391 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30392 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30393 fi 30394 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30395 fi 30396 fi 30397 30398 # Now new_path has a complete unix path to the binary 30399 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30400 # Keep paths in /bin as-is, but remove trailing .exe if any 30401 new_path="${new_path/%.exe/}" 30402 # Do not save /bin paths to all_fixpath_prefixes! 30403 else 30404 # Not in mixed or Windows style, start by that. 30405 new_path=`cmd //c echo $new_path` 30406 30407 input_path="$new_path" 30408 # Check if we need to convert this using DOS-style short mode. If the path 30409 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30410 # take no chances and rewrite it. 30411 # Note: m4 eats our [], so we need to use [ and ] instead. 30412 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30413 if test "x$has_forbidden_chars" != x; then 30414 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30415 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30416 fi 30417 30418 # Output is in $new_path 30419 30420 windows_path="$new_path" 30421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30422 unix_path=`$CYGPATH -u "$windows_path"` 30423 new_path="$unix_path" 30424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30426 new_path="$unix_path" 30427 fi 30428 30429 # remove trailing .exe if any 30430 new_path="${new_path/%.exe/}" 30431 30432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30434 fi 30435 30436 else 30437 # We're on a unix platform. Hooray! :) 30438 # First separate the path from the arguments. This will split at the first 30439 # space. 30440 complete="$PROPER_COMPILER_CXX" 30441 path="${complete%% *}" 30442 tmp="$complete EOL" 30443 arguments="${tmp#* }" 30444 30445 # Cannot rely on the command "which" here since it doesn't always work. 30446 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30447 if test -z "$is_absolute_path"; then 30448 # Path to executable is not absolute. Find it. 30449 IFS_save="$IFS" 30450 IFS=: 30451 for p in $PATH; do 30452 if test -f "$p/$path" && test -x "$p/$path"; then 30453 new_path="$p/$path" 30454 break 30455 fi 30456 done 30457 IFS="$IFS_save" 30458 else 30459 # This is an absolute path, we can use it without further modifications. 30460 new_path="$path" 30461 fi 30462 30463 if test "x$new_path" = x; then 30464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30465 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30466 has_space=`$ECHO "$complete" | $GREP " "` 30467 if test "x$has_space" != x; then 30468 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30469 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30470 fi 30471 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30472 fi 30473 fi 30474 30475 # Now join together the path and the arguments once again 30476 if test "x$arguments" != xEOL; then 30477 new_complete="$new_path ${arguments% *}" 30478 else 30479 new_complete="$new_path" 30480 fi 30481 30482 if test "x$complete" != "x$new_complete"; then 30483 PROPER_COMPILER_CXX="$new_complete" 30484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30485 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30486 fi 30487 30488 PATH="$RETRY_COMPILER_SAVED_PATH" 30489 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30491 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30492 30493 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30494 # Follow a chain of symbolic links. Use readlink 30495 # where it exists, else fall back to horribly 30496 # complicated shell code. 30497 if test "x$READLINK_TESTED" != yes; then 30498 # On MacOSX there is a readlink tool with a different 30499 # purpose than the GNU readlink tool. Check the found readlink. 30500 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30501 if test "x$ISGNU" = x; then 30502 # A readlink that we do not know how to use. 30503 # Are there other non-GNU readlinks out there? 30504 READLINK_TESTED=yes 30505 READLINK= 30506 fi 30507 fi 30508 30509 if test "x$READLINK" != x; then 30510 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30511 else 30512 # Save the current directory for restoring afterwards 30513 STARTDIR=$PWD 30514 COUNTER=0 30515 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30516 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30517 cd $sym_link_dir 30518 # Use -P flag to resolve symlinks in directories. 30519 cd `$THEPWDCMD -P` 30520 sym_link_dir=`$THEPWDCMD -P` 30521 # Resolve file symlinks 30522 while test $COUNTER -lt 20; do 30523 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30524 if test "x$ISLINK" == x; then 30525 # This is not a symbolic link! We are done! 30526 break 30527 fi 30528 # Again resolve directory symlinks since the target of the just found 30529 # link could be in a different directory 30530 cd `$DIRNAME $ISLINK` 30531 sym_link_dir=`$THEPWDCMD -P` 30532 sym_link_file=`$BASENAME $ISLINK` 30533 let COUNTER=COUNTER+1 30534 done 30535 cd $STARTDIR 30536 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30537 fi 30538 fi 30539 30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30541 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30542 CXX="$PROPER_COMPILER_CXX" 30543 else 30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30545 $as_echo "no, keeping CXX" >&6; } 30546 fi 30547 30548 30549 COMPILER=$CXX 30550 COMPILER_NAME=$COMPILER_NAME 30551 30552 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30553 # cc -V output typically looks like 30554 # cc: Sun C 5.12 Linux_i386 2011/11/16 30555 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30556 # Check that this is likely to be the Solaris Studio cc. 30557 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30558 if test $? -ne 0; then 30559 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30560 { $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 30561 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30562 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30563 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30564 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30565 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30566 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30567 fi 30568 # Remove usage instructions (if present), and 30569 # collapse compiler output into a single line 30570 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30571 $SED -e 's/ *[Uu]sage:.*//'` 30572 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30573 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30574 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30575 # xlc -qversion output typically looks like 30576 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30577 # Version: 11.01.0000.0015 30578 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30579 # Check that this is likely to be the IBM XL C compiler. 30580 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30581 if test $? -ne 0; then 30582 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30583 { $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 30584 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30585 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30586 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30587 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30588 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30589 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30590 fi 30591 # Collapse compiler output into a single line 30592 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30593 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30594 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30595 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30596 # There is no specific version flag, but all output starts with a version string. 30597 # First line typically looks something like: 30598 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30599 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30600 # Check that this is likely to be Microsoft CL.EXE. 30601 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30602 if test $? -ne 0; then 30603 { $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 30604 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30605 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30606 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30607 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30608 fi 30609 # Collapse compiler output into a single line 30610 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30611 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30612 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30613 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30614 # gcc --version output typically looks like 30615 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30616 # Copyright (C) 2013 Free Software Foundation, Inc. 30617 # This is free software; see the source for copying conditions. There is NO 30618 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30619 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30620 # Check that this is likely to be GCC. 30621 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30622 if test $? -ne 0; then 30623 { $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 30624 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30625 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30626 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30627 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30628 fi 30629 # Remove Copyright and legalese from version string, and 30630 # collapse into a single line 30631 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30632 $SED -e 's/ *Copyright .*//'` 30633 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30634 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30635 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30636 # clang --version output typically looks like 30637 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30638 # clang version 3.3 (tags/RELEASE_33/final) 30639 # or 30640 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30641 # Target: x86_64-pc-linux-gnu 30642 # Thread model: posix 30643 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30644 # Check that this is likely to be clang 30645 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30646 if test $? -ne 0; then 30647 { $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 30648 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30649 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30650 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30651 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30652 fi 30653 # Collapse compiler output into a single line 30654 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30655 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30656 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30657 else 30658 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30659 fi 30660 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30661 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30662 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30663 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30664 30665 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30666 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30667 30668 30669 # Now that we have resolved CXX ourself, let autoconf have its go at it 30670 ac_ext=cpp 30671 ac_cpp='$CXXCPP $CPPFLAGS' 30672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30675 if test -z "$CXX"; then 30676 if test -n "$CCC"; then 30677 CXX=$CCC 30678 else 30679 if test -n "$ac_tool_prefix"; then 30680 for ac_prog in $CXX 30681 do 30682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30685 $as_echo_n "checking for $ac_word... " >&6; } 30686 if ${ac_cv_prog_CXX+:} false; then : 30687 $as_echo_n "(cached) " >&6 30688 else 30689 if test -n "$CXX"; then 30690 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30691 else 30692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30693 for as_dir in $PATH 30694 do 30695 IFS=$as_save_IFS 30696 test -z "$as_dir" && as_dir=. 30697 for ac_exec_ext in '' $ac_executable_extensions; do 30698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30699 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30701 break 2 30702 fi 30703 done 30704 done 30705 IFS=$as_save_IFS 30706 30707 fi 30708 fi 30709 CXX=$ac_cv_prog_CXX 30710 if test -n "$CXX"; then 30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30712 $as_echo "$CXX" >&6; } 30713 else 30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30715 $as_echo "no" >&6; } 30716 fi 30717 30718 30719 test -n "$CXX" && break 30720 done 30721 fi 30722 if test -z "$CXX"; then 30723 ac_ct_CXX=$CXX 30724 for ac_prog in $CXX 30725 do 30726 # Extract the first word of "$ac_prog", so it can be a program name with args. 30727 set dummy $ac_prog; ac_word=$2 30728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30729 $as_echo_n "checking for $ac_word... " >&6; } 30730 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30731 $as_echo_n "(cached) " >&6 30732 else 30733 if test -n "$ac_ct_CXX"; then 30734 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30735 else 30736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30737 for as_dir in $PATH 30738 do 30739 IFS=$as_save_IFS 30740 test -z "$as_dir" && as_dir=. 30741 for ac_exec_ext in '' $ac_executable_extensions; do 30742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30743 ac_cv_prog_ac_ct_CXX="$ac_prog" 30744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30745 break 2 30746 fi 30747 done 30748 done 30749 IFS=$as_save_IFS 30750 30751 fi 30752 fi 30753 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30754 if test -n "$ac_ct_CXX"; then 30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30756 $as_echo "$ac_ct_CXX" >&6; } 30757 else 30758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30759 $as_echo "no" >&6; } 30760 fi 30761 30762 30763 test -n "$ac_ct_CXX" && break 30764 done 30765 30766 if test "x$ac_ct_CXX" = x; then 30767 CXX="g++" 30768 else 30769 case $cross_compiling:$ac_tool_warned in 30770 yes:) 30771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30773 ac_tool_warned=yes ;; 30774 esac 30775 CXX=$ac_ct_CXX 30776 fi 30777 fi 30778 30779 fi 30780 fi 30781 # Provide some information about the compiler. 30782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30783 set X $ac_compile 30784 ac_compiler=$2 30785 for ac_option in --version -v -V -qversion; do 30786 { { ac_try="$ac_compiler $ac_option >&5" 30787 case "(($ac_try" in 30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30789 *) ac_try_echo=$ac_try;; 30790 esac 30791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30792 $as_echo "$ac_try_echo"; } >&5 30793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30794 ac_status=$? 30795 if test -s conftest.err; then 30796 sed '10a\ 30797 ... rest of stderr output deleted ... 30798 10q' conftest.err >conftest.er1 30799 cat conftest.er1 >&5 30800 fi 30801 rm -f conftest.er1 conftest.err 30802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30803 test $ac_status = 0; } 30804 done 30805 30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30807 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30808 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30809 $as_echo_n "(cached) " >&6 30810 else 30811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30812 /* end confdefs.h. */ 30813 30814 int 30815 main () 30816 { 30817 #ifndef __GNUC__ 30818 choke me 30819 #endif 30820 30821 ; 30822 return 0; 30823 } 30824 _ACEOF 30825 if ac_fn_cxx_try_compile "$LINENO"; then : 30826 ac_compiler_gnu=yes 30827 else 30828 ac_compiler_gnu=no 30829 fi 30830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30831 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30832 30833 fi 30834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30835 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30836 if test $ac_compiler_gnu = yes; then 30837 GXX=yes 30838 else 30839 GXX= 30840 fi 30841 ac_test_CXXFLAGS=${CXXFLAGS+set} 30842 ac_save_CXXFLAGS=$CXXFLAGS 30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30844 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30845 if ${ac_cv_prog_cxx_g+:} false; then : 30846 $as_echo_n "(cached) " >&6 30847 else 30848 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30849 ac_cxx_werror_flag=yes 30850 ac_cv_prog_cxx_g=no 30851 CXXFLAGS="-g" 30852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30853 /* end confdefs.h. */ 30854 30855 int 30856 main () 30857 { 30858 30859 ; 30860 return 0; 30861 } 30862 _ACEOF 30863 if ac_fn_cxx_try_compile "$LINENO"; then : 30864 ac_cv_prog_cxx_g=yes 30865 else 30866 CXXFLAGS="" 30867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30868 /* end confdefs.h. */ 30869 30870 int 30871 main () 30872 { 30873 30874 ; 30875 return 0; 30876 } 30877 _ACEOF 30878 if ac_fn_cxx_try_compile "$LINENO"; then : 30879 30880 else 30881 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30882 CXXFLAGS="-g" 30883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30884 /* end confdefs.h. */ 30885 30886 int 30887 main () 30888 { 30889 30890 ; 30891 return 0; 30892 } 30893 _ACEOF 30894 if ac_fn_cxx_try_compile "$LINENO"; then : 30895 ac_cv_prog_cxx_g=yes 30896 fi 30897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30898 fi 30899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30900 fi 30901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30902 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30903 fi 30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30905 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30906 if test "$ac_test_CXXFLAGS" = set; then 30907 CXXFLAGS=$ac_save_CXXFLAGS 30908 elif test $ac_cv_prog_cxx_g = yes; then 30909 if test "$GXX" = yes; then 30910 CXXFLAGS="-g -O2" 30911 else 30912 CXXFLAGS="-g" 30913 fi 30914 else 30915 if test "$GXX" = yes; then 30916 CXXFLAGS="-O2" 30917 else 30918 CXXFLAGS= 30919 fi 30920 fi 30921 ac_ext=cpp 30922 ac_cpp='$CXXCPP $CPPFLAGS' 30923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30926 30927 30928 # 30929 # Setup the preprocessor (CPP and CXXCPP) 30930 # 30931 ac_ext=c 30932 ac_cpp='$CPP $CPPFLAGS' 30933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30935 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30937 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30938 # On Suns, sometimes $CPP names a directory. 30939 if test -n "$CPP" && test -d "$CPP"; then 30940 CPP= 30941 fi 30942 if test -z "$CPP"; then 30943 if ${ac_cv_prog_CPP+:} false; then : 30944 $as_echo_n "(cached) " >&6 30945 else 30946 # Double quotes because CPP needs to be expanded 30947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30948 do 30949 ac_preproc_ok=false 30950 for ac_c_preproc_warn_flag in '' yes 30951 do 30952 # Use a header file that comes with gcc, so configuring glibc 30953 # with a fresh cross-compiler works. 30954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30955 # <limits.h> exists even on freestanding compilers. 30956 # On the NeXT, cc -E runs the code through the compiler's parser, 30957 # not just through cpp. "Syntax error" is here to catch this case. 30958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30959 /* end confdefs.h. */ 30960 #ifdef __STDC__ 30961 # include <limits.h> 30962 #else 30963 # include <assert.h> 30964 #endif 30965 Syntax error 30966 _ACEOF 30967 if ac_fn_c_try_cpp "$LINENO"; then : 30968 30969 else 30970 # Broken: fails on valid input. 30971 continue 30972 fi 30973 rm -f conftest.err conftest.i conftest.$ac_ext 30974 30975 # OK, works on sane cases. Now check whether nonexistent headers 30976 # can be detected and how. 30977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30978 /* end confdefs.h. */ 30979 #include <ac_nonexistent.h> 30980 _ACEOF 30981 if ac_fn_c_try_cpp "$LINENO"; then : 30982 # Broken: success on invalid input. 30983 continue 30984 else 30985 # Passes both tests. 30986 ac_preproc_ok=: 30987 break 30988 fi 30989 rm -f conftest.err conftest.i conftest.$ac_ext 30990 30991 done 30992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30993 rm -f conftest.i conftest.err conftest.$ac_ext 30994 if $ac_preproc_ok; then : 30995 break 30996 fi 30997 30998 done 30999 ac_cv_prog_CPP=$CPP 31000 31001 fi 31002 CPP=$ac_cv_prog_CPP 31003 else 31004 ac_cv_prog_CPP=$CPP 31005 fi 31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31007 $as_echo "$CPP" >&6; } 31008 ac_preproc_ok=false 31009 for ac_c_preproc_warn_flag in '' yes 31010 do 31011 # Use a header file that comes with gcc, so configuring glibc 31012 # with a fresh cross-compiler works. 31013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31014 # <limits.h> exists even on freestanding compilers. 31015 # On the NeXT, cc -E runs the code through the compiler's parser, 31016 # not just through cpp. "Syntax error" is here to catch this case. 31017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31018 /* end confdefs.h. */ 31019 #ifdef __STDC__ 31020 # include <limits.h> 31021 #else 31022 # include <assert.h> 31023 #endif 31024 Syntax error 31025 _ACEOF 31026 if ac_fn_c_try_cpp "$LINENO"; then : 31027 31028 else 31029 # Broken: fails on valid input. 31030 continue 31031 fi 31032 rm -f conftest.err conftest.i conftest.$ac_ext 31033 31034 # OK, works on sane cases. Now check whether nonexistent headers 31035 # can be detected and how. 31036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31037 /* end confdefs.h. */ 31038 #include <ac_nonexistent.h> 31039 _ACEOF 31040 if ac_fn_c_try_cpp "$LINENO"; then : 31041 # Broken: success on invalid input. 31042 continue 31043 else 31044 # Passes both tests. 31045 ac_preproc_ok=: 31046 break 31047 fi 31048 rm -f conftest.err conftest.i conftest.$ac_ext 31049 31050 done 31051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31052 rm -f conftest.i conftest.err conftest.$ac_ext 31053 if $ac_preproc_ok; then : 31054 31055 else 31056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31058 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31059 See \`config.log' for more details" "$LINENO" 5; } 31060 fi 31061 31062 ac_ext=cpp 31063 ac_cpp='$CXXCPP $CPPFLAGS' 31064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31067 31068 31069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31070 31071 # First separate the path from the arguments. This will split at the first 31072 # space. 31073 complete="$CPP" 31074 path="${complete%% *}" 31075 tmp="$complete EOL" 31076 arguments="${tmp#* }" 31077 31078 # Input might be given as Windows format, start by converting to 31079 # unix format. 31080 new_path=`$CYGPATH -u "$path"` 31081 31082 # Now try to locate executable using which 31083 new_path=`$WHICH "$new_path" 2> /dev/null` 31084 # bat and cmd files are not always considered executable in cygwin causing which 31085 # to not find them 31086 if test "x$new_path" = x \ 31087 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31088 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31089 new_path=`$CYGPATH -u "$path"` 31090 fi 31091 if test "x$new_path" = x; then 31092 # Oops. Which didn't find the executable. 31093 # The splitting of arguments from the executable at a space might have been incorrect, 31094 # since paths with space are more likely in Windows. Give it another try with the whole 31095 # argument. 31096 path="$complete" 31097 arguments="EOL" 31098 new_path=`$CYGPATH -u "$path"` 31099 new_path=`$WHICH "$new_path" 2> /dev/null` 31100 # bat and cmd files are not always considered executable in cygwin causing which 31101 # to not find them 31102 if test "x$new_path" = x \ 31103 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31104 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31105 new_path=`$CYGPATH -u "$path"` 31106 fi 31107 if test "x$new_path" = x; then 31108 # It's still not found. Now this is an unrecoverable error. 31109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31110 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31111 has_space=`$ECHO "$complete" | $GREP " "` 31112 if test "x$has_space" != x; then 31113 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31114 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31115 fi 31116 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31117 fi 31118 fi 31119 31120 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31121 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31122 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31123 # "foo.exe" is OK but "foo" is an error. 31124 # 31125 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31126 # It is also a way to make sure we got the proper file name for the real test later on. 31127 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31128 if test "x$test_shortpath" = x; then 31129 # Short path failed, file does not exist as specified. 31130 # Try adding .exe or .cmd 31131 if test -f "${new_path}.exe"; then 31132 input_to_shortpath="${new_path}.exe" 31133 elif test -f "${new_path}.cmd"; then 31134 input_to_shortpath="${new_path}.cmd" 31135 else 31136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31137 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31138 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31139 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31140 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31141 fi 31142 else 31143 input_to_shortpath="$new_path" 31144 fi 31145 31146 # Call helper function which possibly converts this using DOS-style short mode. 31147 # If so, the updated path is stored in $new_path. 31148 new_path="$input_to_shortpath" 31149 31150 input_path="$input_to_shortpath" 31151 # Check if we need to convert this using DOS-style short mode. If the path 31152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31153 # take no chances and rewrite it. 31154 # Note: m4 eats our [], so we need to use [ and ] instead. 31155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31156 if test "x$has_forbidden_chars" != x; then 31157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31161 # Going to short mode and back again did indeed matter. Since short mode is 31162 # case insensitive, let's make it lowercase to improve readability. 31163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31164 # Now convert it back to Unix-stile (cygpath) 31165 input_path=`$CYGPATH -u "$shortmode_path"` 31166 new_path="$input_path" 31167 fi 31168 fi 31169 31170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31171 if test "x$test_cygdrive_prefix" = x; then 31172 # As a simple fix, exclude /usr/bin since it's not a real path. 31173 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31175 # a path prefixed by /cygdrive for fixpath to work. 31176 new_path="$CYGWIN_ROOT_PATH$input_path" 31177 fi 31178 fi 31179 31180 # remove trailing .exe if any 31181 new_path="${new_path/%.exe/}" 31182 31183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31184 31185 # First separate the path from the arguments. This will split at the first 31186 # space. 31187 complete="$CPP" 31188 path="${complete%% *}" 31189 tmp="$complete EOL" 31190 arguments="${tmp#* }" 31191 31192 # Input might be given as Windows format, start by converting to 31193 # unix format. 31194 new_path="$path" 31195 31196 windows_path="$new_path" 31197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31198 unix_path=`$CYGPATH -u "$windows_path"` 31199 new_path="$unix_path" 31200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31202 new_path="$unix_path" 31203 fi 31204 31205 31206 # Now try to locate executable using which 31207 new_path=`$WHICH "$new_path" 2> /dev/null` 31208 31209 if test "x$new_path" = x; then 31210 # Oops. Which didn't find the executable. 31211 # The splitting of arguments from the executable at a space might have been incorrect, 31212 # since paths with space are more likely in Windows. Give it another try with the whole 31213 # argument. 31214 path="$complete" 31215 arguments="EOL" 31216 new_path="$path" 31217 31218 windows_path="$new_path" 31219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31220 unix_path=`$CYGPATH -u "$windows_path"` 31221 new_path="$unix_path" 31222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31224 new_path="$unix_path" 31225 fi 31226 31227 31228 new_path=`$WHICH "$new_path" 2> /dev/null` 31229 # bat and cmd files are not always considered executable in MSYS causing which 31230 # to not find them 31231 if test "x$new_path" = x \ 31232 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31233 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31234 new_path="$path" 31235 31236 windows_path="$new_path" 31237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31238 unix_path=`$CYGPATH -u "$windows_path"` 31239 new_path="$unix_path" 31240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31242 new_path="$unix_path" 31243 fi 31244 31245 fi 31246 31247 if test "x$new_path" = x; then 31248 # It's still not found. Now this is an unrecoverable error. 31249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31250 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31251 has_space=`$ECHO "$complete" | $GREP " "` 31252 if test "x$has_space" != x; then 31253 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31254 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31255 fi 31256 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31257 fi 31258 fi 31259 31260 # Now new_path has a complete unix path to the binary 31261 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31262 # Keep paths in /bin as-is, but remove trailing .exe if any 31263 new_path="${new_path/%.exe/}" 31264 # Do not save /bin paths to all_fixpath_prefixes! 31265 else 31266 # Not in mixed or Windows style, start by that. 31267 new_path=`cmd //c echo $new_path` 31268 31269 input_path="$new_path" 31270 # Check if we need to convert this using DOS-style short mode. If the path 31271 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31272 # take no chances and rewrite it. 31273 # Note: m4 eats our [], so we need to use [ and ] instead. 31274 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31275 if test "x$has_forbidden_chars" != x; then 31276 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31277 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31278 fi 31279 31280 # Output is in $new_path 31281 31282 windows_path="$new_path" 31283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31284 unix_path=`$CYGPATH -u "$windows_path"` 31285 new_path="$unix_path" 31286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31287 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31288 new_path="$unix_path" 31289 fi 31290 31291 # remove trailing .exe if any 31292 new_path="${new_path/%.exe/}" 31293 31294 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31295 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31296 fi 31297 31298 else 31299 # We're on a unix platform. Hooray! :) 31300 # First separate the path from the arguments. This will split at the first 31301 # space. 31302 complete="$CPP" 31303 path="${complete%% *}" 31304 tmp="$complete EOL" 31305 arguments="${tmp#* }" 31306 31307 # Cannot rely on the command "which" here since it doesn't always work. 31308 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31309 if test -z "$is_absolute_path"; then 31310 # Path to executable is not absolute. Find it. 31311 IFS_save="$IFS" 31312 IFS=: 31313 for p in $PATH; do 31314 if test -f "$p/$path" && test -x "$p/$path"; then 31315 new_path="$p/$path" 31316 break 31317 fi 31318 done 31319 IFS="$IFS_save" 31320 else 31321 # This is an absolute path, we can use it without further modifications. 31322 new_path="$path" 31323 fi 31324 31325 if test "x$new_path" = x; then 31326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31327 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31328 has_space=`$ECHO "$complete" | $GREP " "` 31329 if test "x$has_space" != x; then 31330 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31331 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31332 fi 31333 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31334 fi 31335 fi 31336 31337 # Now join together the path and the arguments once again 31338 if test "x$arguments" != xEOL; then 31339 new_complete="$new_path ${arguments% *}" 31340 else 31341 new_complete="$new_path" 31342 fi 31343 31344 if test "x$complete" != "x$new_complete"; then 31345 CPP="$new_complete" 31346 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31347 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31348 fi 31349 31350 ac_ext=cpp 31351 ac_cpp='$CXXCPP $CPPFLAGS' 31352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31356 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31357 if test -z "$CXXCPP"; then 31358 if ${ac_cv_prog_CXXCPP+:} false; then : 31359 $as_echo_n "(cached) " >&6 31360 else 31361 # Double quotes because CXXCPP needs to be expanded 31362 for CXXCPP in "$CXX -E" "/lib/cpp" 31363 do 31364 ac_preproc_ok=false 31365 for ac_cxx_preproc_warn_flag in '' yes 31366 do 31367 # Use a header file that comes with gcc, so configuring glibc 31368 # with a fresh cross-compiler works. 31369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31370 # <limits.h> exists even on freestanding compilers. 31371 # On the NeXT, cc -E runs the code through the compiler's parser, 31372 # not just through cpp. "Syntax error" is here to catch this case. 31373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31374 /* end confdefs.h. */ 31375 #ifdef __STDC__ 31376 # include <limits.h> 31377 #else 31378 # include <assert.h> 31379 #endif 31380 Syntax error 31381 _ACEOF 31382 if ac_fn_cxx_try_cpp "$LINENO"; then : 31383 31384 else 31385 # Broken: fails on valid input. 31386 continue 31387 fi 31388 rm -f conftest.err conftest.i conftest.$ac_ext 31389 31390 # OK, works on sane cases. Now check whether nonexistent headers 31391 # can be detected and how. 31392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31393 /* end confdefs.h. */ 31394 #include <ac_nonexistent.h> 31395 _ACEOF 31396 if ac_fn_cxx_try_cpp "$LINENO"; then : 31397 # Broken: success on invalid input. 31398 continue 31399 else 31400 # Passes both tests. 31401 ac_preproc_ok=: 31402 break 31403 fi 31404 rm -f conftest.err conftest.i conftest.$ac_ext 31405 31406 done 31407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31408 rm -f conftest.i conftest.err conftest.$ac_ext 31409 if $ac_preproc_ok; then : 31410 break 31411 fi 31412 31413 done 31414 ac_cv_prog_CXXCPP=$CXXCPP 31415 31416 fi 31417 CXXCPP=$ac_cv_prog_CXXCPP 31418 else 31419 ac_cv_prog_CXXCPP=$CXXCPP 31420 fi 31421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31422 $as_echo "$CXXCPP" >&6; } 31423 ac_preproc_ok=false 31424 for ac_cxx_preproc_warn_flag in '' yes 31425 do 31426 # Use a header file that comes with gcc, so configuring glibc 31427 # with a fresh cross-compiler works. 31428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31429 # <limits.h> exists even on freestanding compilers. 31430 # On the NeXT, cc -E runs the code through the compiler's parser, 31431 # not just through cpp. "Syntax error" is here to catch this case. 31432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31433 /* end confdefs.h. */ 31434 #ifdef __STDC__ 31435 # include <limits.h> 31436 #else 31437 # include <assert.h> 31438 #endif 31439 Syntax error 31440 _ACEOF 31441 if ac_fn_cxx_try_cpp "$LINENO"; then : 31442 31443 else 31444 # Broken: fails on valid input. 31445 continue 31446 fi 31447 rm -f conftest.err conftest.i conftest.$ac_ext 31448 31449 # OK, works on sane cases. Now check whether nonexistent headers 31450 # can be detected and how. 31451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31452 /* end confdefs.h. */ 31453 #include <ac_nonexistent.h> 31454 _ACEOF 31455 if ac_fn_cxx_try_cpp "$LINENO"; then : 31456 # Broken: success on invalid input. 31457 continue 31458 else 31459 # Passes both tests. 31460 ac_preproc_ok=: 31461 break 31462 fi 31463 rm -f conftest.err conftest.i conftest.$ac_ext 31464 31465 done 31466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31467 rm -f conftest.i conftest.err conftest.$ac_ext 31468 if $ac_preproc_ok; then : 31469 31470 else 31471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31473 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31474 See \`config.log' for more details" "$LINENO" 5; } 31475 fi 31476 31477 ac_ext=cpp 31478 ac_cpp='$CXXCPP $CPPFLAGS' 31479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31482 31483 31484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31485 31486 # First separate the path from the arguments. This will split at the first 31487 # space. 31488 complete="$CXXCPP" 31489 path="${complete%% *}" 31490 tmp="$complete EOL" 31491 arguments="${tmp#* }" 31492 31493 # Input might be given as Windows format, start by converting to 31494 # unix format. 31495 new_path=`$CYGPATH -u "$path"` 31496 31497 # Now try to locate executable using which 31498 new_path=`$WHICH "$new_path" 2> /dev/null` 31499 # bat and cmd files are not always considered executable in cygwin causing which 31500 # to not find them 31501 if test "x$new_path" = x \ 31502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31504 new_path=`$CYGPATH -u "$path"` 31505 fi 31506 if test "x$new_path" = x; then 31507 # Oops. Which didn't find the executable. 31508 # The splitting of arguments from the executable at a space might have been incorrect, 31509 # since paths with space are more likely in Windows. Give it another try with the whole 31510 # argument. 31511 path="$complete" 31512 arguments="EOL" 31513 new_path=`$CYGPATH -u "$path"` 31514 new_path=`$WHICH "$new_path" 2> /dev/null` 31515 # bat and cmd files are not always considered executable in cygwin causing which 31516 # to not find them 31517 if test "x$new_path" = x \ 31518 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31519 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31520 new_path=`$CYGPATH -u "$path"` 31521 fi 31522 if test "x$new_path" = x; then 31523 # It's still not found. Now this is an unrecoverable error. 31524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31525 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31526 has_space=`$ECHO "$complete" | $GREP " "` 31527 if test "x$has_space" != x; then 31528 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31529 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31530 fi 31531 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31532 fi 31533 fi 31534 31535 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31536 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31537 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31538 # "foo.exe" is OK but "foo" is an error. 31539 # 31540 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31541 # It is also a way to make sure we got the proper file name for the real test later on. 31542 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31543 if test "x$test_shortpath" = x; then 31544 # Short path failed, file does not exist as specified. 31545 # Try adding .exe or .cmd 31546 if test -f "${new_path}.exe"; then 31547 input_to_shortpath="${new_path}.exe" 31548 elif test -f "${new_path}.cmd"; then 31549 input_to_shortpath="${new_path}.cmd" 31550 else 31551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31552 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31553 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31554 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31555 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31556 fi 31557 else 31558 input_to_shortpath="$new_path" 31559 fi 31560 31561 # Call helper function which possibly converts this using DOS-style short mode. 31562 # If so, the updated path is stored in $new_path. 31563 new_path="$input_to_shortpath" 31564 31565 input_path="$input_to_shortpath" 31566 # Check if we need to convert this using DOS-style short mode. If the path 31567 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31568 # take no chances and rewrite it. 31569 # Note: m4 eats our [], so we need to use [ and ] instead. 31570 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31571 if test "x$has_forbidden_chars" != x; then 31572 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31573 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31574 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31575 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31576 # Going to short mode and back again did indeed matter. Since short mode is 31577 # case insensitive, let's make it lowercase to improve readability. 31578 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31579 # Now convert it back to Unix-stile (cygpath) 31580 input_path=`$CYGPATH -u "$shortmode_path"` 31581 new_path="$input_path" 31582 fi 31583 fi 31584 31585 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31586 if test "x$test_cygdrive_prefix" = x; then 31587 # As a simple fix, exclude /usr/bin since it's not a real path. 31588 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31589 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31590 # a path prefixed by /cygdrive for fixpath to work. 31591 new_path="$CYGWIN_ROOT_PATH$input_path" 31592 fi 31593 fi 31594 31595 # remove trailing .exe if any 31596 new_path="${new_path/%.exe/}" 31597 31598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31599 31600 # First separate the path from the arguments. This will split at the first 31601 # space. 31602 complete="$CXXCPP" 31603 path="${complete%% *}" 31604 tmp="$complete EOL" 31605 arguments="${tmp#* }" 31606 31607 # Input might be given as Windows format, start by converting to 31608 # unix format. 31609 new_path="$path" 31610 31611 windows_path="$new_path" 31612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31613 unix_path=`$CYGPATH -u "$windows_path"` 31614 new_path="$unix_path" 31615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31616 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31617 new_path="$unix_path" 31618 fi 31619 31620 31621 # Now try to locate executable using which 31622 new_path=`$WHICH "$new_path" 2> /dev/null` 31623 31624 if test "x$new_path" = x; then 31625 # Oops. Which didn't find the executable. 31626 # The splitting of arguments from the executable at a space might have been incorrect, 31627 # since paths with space are more likely in Windows. Give it another try with the whole 31628 # argument. 31629 path="$complete" 31630 arguments="EOL" 31631 new_path="$path" 31632 31633 windows_path="$new_path" 31634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31635 unix_path=`$CYGPATH -u "$windows_path"` 31636 new_path="$unix_path" 31637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31639 new_path="$unix_path" 31640 fi 31641 31642 31643 new_path=`$WHICH "$new_path" 2> /dev/null` 31644 # bat and cmd files are not always considered executable in MSYS causing which 31645 # to not find them 31646 if test "x$new_path" = x \ 31647 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31648 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31649 new_path="$path" 31650 31651 windows_path="$new_path" 31652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31653 unix_path=`$CYGPATH -u "$windows_path"` 31654 new_path="$unix_path" 31655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31657 new_path="$unix_path" 31658 fi 31659 31660 fi 31661 31662 if test "x$new_path" = x; then 31663 # It's still not found. Now this is an unrecoverable error. 31664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31665 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31666 has_space=`$ECHO "$complete" | $GREP " "` 31667 if test "x$has_space" != x; then 31668 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31669 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31670 fi 31671 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31672 fi 31673 fi 31674 31675 # Now new_path has a complete unix path to the binary 31676 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31677 # Keep paths in /bin as-is, but remove trailing .exe if any 31678 new_path="${new_path/%.exe/}" 31679 # Do not save /bin paths to all_fixpath_prefixes! 31680 else 31681 # Not in mixed or Windows style, start by that. 31682 new_path=`cmd //c echo $new_path` 31683 31684 input_path="$new_path" 31685 # Check if we need to convert this using DOS-style short mode. If the path 31686 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31687 # take no chances and rewrite it. 31688 # Note: m4 eats our [], so we need to use [ and ] instead. 31689 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31690 if test "x$has_forbidden_chars" != x; then 31691 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31692 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31693 fi 31694 31695 # Output is in $new_path 31696 31697 windows_path="$new_path" 31698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31699 unix_path=`$CYGPATH -u "$windows_path"` 31700 new_path="$unix_path" 31701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31703 new_path="$unix_path" 31704 fi 31705 31706 # remove trailing .exe if any 31707 new_path="${new_path/%.exe/}" 31708 31709 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31710 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31711 fi 31712 31713 else 31714 # We're on a unix platform. Hooray! :) 31715 # First separate the path from the arguments. This will split at the first 31716 # space. 31717 complete="$CXXCPP" 31718 path="${complete%% *}" 31719 tmp="$complete EOL" 31720 arguments="${tmp#* }" 31721 31722 # Cannot rely on the command "which" here since it doesn't always work. 31723 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31724 if test -z "$is_absolute_path"; then 31725 # Path to executable is not absolute. Find it. 31726 IFS_save="$IFS" 31727 IFS=: 31728 for p in $PATH; do 31729 if test -f "$p/$path" && test -x "$p/$path"; then 31730 new_path="$p/$path" 31731 break 31732 fi 31733 done 31734 IFS="$IFS_save" 31735 else 31736 # This is an absolute path, we can use it without further modifications. 31737 new_path="$path" 31738 fi 31739 31740 if test "x$new_path" = x; then 31741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31742 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31743 has_space=`$ECHO "$complete" | $GREP " "` 31744 if test "x$has_space" != x; then 31745 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31746 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31747 fi 31748 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31749 fi 31750 fi 31751 31752 # Now join together the path and the arguments once again 31753 if test "x$arguments" != xEOL; then 31754 new_complete="$new_path ${arguments% *}" 31755 else 31756 new_complete="$new_path" 31757 fi 31758 31759 if test "x$complete" != "x$new_complete"; then 31760 CXXCPP="$new_complete" 31761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31762 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31763 fi 31764 31765 31766 # 31767 # Setup the linker (LD) 31768 # 31769 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31770 # In the Microsoft toolchain we have a separate LD command "link". 31771 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31772 # a cygwin program for something completely different. 31773 # Extract the first word of "link", so it can be a program name with args. 31774 set dummy link; ac_word=$2 31775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31776 $as_echo_n "checking for $ac_word... " >&6; } 31777 if ${ac_cv_prog_LD+:} false; then : 31778 $as_echo_n "(cached) " >&6 31779 else 31780 if test -n "$LD"; then 31781 ac_cv_prog_LD="$LD" # Let the user override the test. 31782 else 31783 ac_prog_rejected=no 31784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31785 for as_dir in $PATH 31786 do 31787 IFS=$as_save_IFS 31788 test -z "$as_dir" && as_dir=. 31789 for ac_exec_ext in '' $ac_executable_extensions; do 31790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31791 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31792 ac_prog_rejected=yes 31793 continue 31794 fi 31795 ac_cv_prog_LD="link" 31796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31797 break 2 31798 fi 31799 done 31800 done 31801 IFS=$as_save_IFS 31802 31803 if test $ac_prog_rejected = yes; then 31804 # We found a bogon in the path, so make sure we never use it. 31805 set dummy $ac_cv_prog_LD 31806 shift 31807 if test $# != 0; then 31808 # We chose a different compiler from the bogus one. 31809 # However, it has the same basename, so the bogon will be chosen 31810 # first if we set LD to just the basename; use the full file name. 31811 shift 31812 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31813 fi 31814 fi 31815 fi 31816 fi 31817 LD=$ac_cv_prog_LD 31818 if test -n "$LD"; then 31819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31820 $as_echo "$LD" >&6; } 31821 else 31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31823 $as_echo "no" >&6; } 31824 fi 31825 31826 31827 31828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31829 31830 # First separate the path from the arguments. This will split at the first 31831 # space. 31832 complete="$LD" 31833 path="${complete%% *}" 31834 tmp="$complete EOL" 31835 arguments="${tmp#* }" 31836 31837 # Input might be given as Windows format, start by converting to 31838 # unix format. 31839 new_path=`$CYGPATH -u "$path"` 31840 31841 # Now try to locate executable using which 31842 new_path=`$WHICH "$new_path" 2> /dev/null` 31843 # bat and cmd files are not always considered executable in cygwin causing which 31844 # to not find them 31845 if test "x$new_path" = x \ 31846 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31847 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31848 new_path=`$CYGPATH -u "$path"` 31849 fi 31850 if test "x$new_path" = x; then 31851 # Oops. Which didn't find the executable. 31852 # The splitting of arguments from the executable at a space might have been incorrect, 31853 # since paths with space are more likely in Windows. Give it another try with the whole 31854 # argument. 31855 path="$complete" 31856 arguments="EOL" 31857 new_path=`$CYGPATH -u "$path"` 31858 new_path=`$WHICH "$new_path" 2> /dev/null` 31859 # bat and cmd files are not always considered executable in cygwin causing which 31860 # to not find them 31861 if test "x$new_path" = x \ 31862 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31863 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31864 new_path=`$CYGPATH -u "$path"` 31865 fi 31866 if test "x$new_path" = x; then 31867 # It's still not found. Now this is an unrecoverable error. 31868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31869 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31870 has_space=`$ECHO "$complete" | $GREP " "` 31871 if test "x$has_space" != x; then 31872 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31873 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31874 fi 31875 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31876 fi 31877 fi 31878 31879 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31880 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31881 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31882 # "foo.exe" is OK but "foo" is an error. 31883 # 31884 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31885 # It is also a way to make sure we got the proper file name for the real test later on. 31886 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31887 if test "x$test_shortpath" = x; then 31888 # Short path failed, file does not exist as specified. 31889 # Try adding .exe or .cmd 31890 if test -f "${new_path}.exe"; then 31891 input_to_shortpath="${new_path}.exe" 31892 elif test -f "${new_path}.cmd"; then 31893 input_to_shortpath="${new_path}.cmd" 31894 else 31895 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31896 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31897 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31898 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31899 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31900 fi 31901 else 31902 input_to_shortpath="$new_path" 31903 fi 31904 31905 # Call helper function which possibly converts this using DOS-style short mode. 31906 # If so, the updated path is stored in $new_path. 31907 new_path="$input_to_shortpath" 31908 31909 input_path="$input_to_shortpath" 31910 # Check if we need to convert this using DOS-style short mode. If the path 31911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31912 # take no chances and rewrite it. 31913 # Note: m4 eats our [], so we need to use [ and ] instead. 31914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31915 if test "x$has_forbidden_chars" != x; then 31916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31917 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31918 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31919 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31920 # Going to short mode and back again did indeed matter. Since short mode is 31921 # case insensitive, let's make it lowercase to improve readability. 31922 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31923 # Now convert it back to Unix-stile (cygpath) 31924 input_path=`$CYGPATH -u "$shortmode_path"` 31925 new_path="$input_path" 31926 fi 31927 fi 31928 31929 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31930 if test "x$test_cygdrive_prefix" = x; then 31931 # As a simple fix, exclude /usr/bin since it's not a real path. 31932 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31933 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31934 # a path prefixed by /cygdrive for fixpath to work. 31935 new_path="$CYGWIN_ROOT_PATH$input_path" 31936 fi 31937 fi 31938 31939 # remove trailing .exe if any 31940 new_path="${new_path/%.exe/}" 31941 31942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31943 31944 # First separate the path from the arguments. This will split at the first 31945 # space. 31946 complete="$LD" 31947 path="${complete%% *}" 31948 tmp="$complete EOL" 31949 arguments="${tmp#* }" 31950 31951 # Input might be given as Windows format, start by converting to 31952 # unix format. 31953 new_path="$path" 31954 31955 windows_path="$new_path" 31956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31957 unix_path=`$CYGPATH -u "$windows_path"` 31958 new_path="$unix_path" 31959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31961 new_path="$unix_path" 31962 fi 31963 31964 31965 # Now try to locate executable using which 31966 new_path=`$WHICH "$new_path" 2> /dev/null` 31967 31968 if test "x$new_path" = x; then 31969 # Oops. Which didn't find the executable. 31970 # The splitting of arguments from the executable at a space might have been incorrect, 31971 # since paths with space are more likely in Windows. Give it another try with the whole 31972 # argument. 31973 path="$complete" 31974 arguments="EOL" 31975 new_path="$path" 31976 31977 windows_path="$new_path" 31978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31979 unix_path=`$CYGPATH -u "$windows_path"` 31980 new_path="$unix_path" 31981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31982 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31983 new_path="$unix_path" 31984 fi 31985 31986 31987 new_path=`$WHICH "$new_path" 2> /dev/null` 31988 # bat and cmd files are not always considered executable in MSYS causing which 31989 # to not find them 31990 if test "x$new_path" = x \ 31991 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31992 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31993 new_path="$path" 31994 31995 windows_path="$new_path" 31996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31997 unix_path=`$CYGPATH -u "$windows_path"` 31998 new_path="$unix_path" 31999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32001 new_path="$unix_path" 32002 fi 32003 32004 fi 32005 32006 if test "x$new_path" = x; then 32007 # It's still not found. Now this is an unrecoverable error. 32008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32009 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32010 has_space=`$ECHO "$complete" | $GREP " "` 32011 if test "x$has_space" != x; then 32012 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32013 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32014 fi 32015 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32016 fi 32017 fi 32018 32019 # Now new_path has a complete unix path to the binary 32020 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32021 # Keep paths in /bin as-is, but remove trailing .exe if any 32022 new_path="${new_path/%.exe/}" 32023 # Do not save /bin paths to all_fixpath_prefixes! 32024 else 32025 # Not in mixed or Windows style, start by that. 32026 new_path=`cmd //c echo $new_path` 32027 32028 input_path="$new_path" 32029 # Check if we need to convert this using DOS-style short mode. If the path 32030 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32031 # take no chances and rewrite it. 32032 # Note: m4 eats our [], so we need to use [ and ] instead. 32033 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32034 if test "x$has_forbidden_chars" != x; then 32035 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32036 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32037 fi 32038 32039 # Output is in $new_path 32040 32041 windows_path="$new_path" 32042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32043 unix_path=`$CYGPATH -u "$windows_path"` 32044 new_path="$unix_path" 32045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32047 new_path="$unix_path" 32048 fi 32049 32050 # remove trailing .exe if any 32051 new_path="${new_path/%.exe/}" 32052 32053 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32054 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32055 fi 32056 32057 else 32058 # We're on a unix platform. Hooray! :) 32059 # First separate the path from the arguments. This will split at the first 32060 # space. 32061 complete="$LD" 32062 path="${complete%% *}" 32063 tmp="$complete EOL" 32064 arguments="${tmp#* }" 32065 32066 # Cannot rely on the command "which" here since it doesn't always work. 32067 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32068 if test -z "$is_absolute_path"; then 32069 # Path to executable is not absolute. Find it. 32070 IFS_save="$IFS" 32071 IFS=: 32072 for p in $PATH; do 32073 if test -f "$p/$path" && test -x "$p/$path"; then 32074 new_path="$p/$path" 32075 break 32076 fi 32077 done 32078 IFS="$IFS_save" 32079 else 32080 # This is an absolute path, we can use it without further modifications. 32081 new_path="$path" 32082 fi 32083 32084 if test "x$new_path" = x; then 32085 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32086 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32087 has_space=`$ECHO "$complete" | $GREP " "` 32088 if test "x$has_space" != x; then 32089 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32090 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32091 fi 32092 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32093 fi 32094 fi 32095 32096 # Now join together the path and the arguments once again 32097 if test "x$arguments" != xEOL; then 32098 new_complete="$new_path ${arguments% *}" 32099 else 32100 new_complete="$new_path" 32101 fi 32102 32103 if test "x$complete" != "x$new_complete"; then 32104 LD="$new_complete" 32105 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32106 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32107 fi 32108 32109 # Verify that we indeed succeeded with this trick. 32110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32111 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32112 "$LD" --version > /dev/null 32113 if test $? -eq 0 ; then 32114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32115 $as_echo "no" >&6; } 32116 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32117 else 32118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32119 $as_echo "yes" >&6; } 32120 fi 32121 LDCXX="$LD" 32122 else 32123 # All other toolchains use the compiler to link. 32124 LD="$CC" 32125 LDCXX="$CXX" 32126 fi 32127 32128 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32129 32130 32131 # 32132 # Setup the assembler (AS) 32133 # 32134 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32135 # FIXME: should this really be solaris, or solstudio? 32136 32137 32138 # Publish this variable in the help. 32139 32140 32141 if test "x$AS" = x; then 32142 # The variable is not set by user, try to locate tool using the code snippet 32143 for ac_prog in as 32144 do 32145 # Extract the first word of "$ac_prog", so it can be a program name with args. 32146 set dummy $ac_prog; ac_word=$2 32147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32148 $as_echo_n "checking for $ac_word... " >&6; } 32149 if ${ac_cv_path_AS+:} false; then : 32150 $as_echo_n "(cached) " >&6 32151 else 32152 case $AS in 32153 [\\/]* | ?:[\\/]*) 32154 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32155 ;; 32156 *) 32157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32158 for as_dir in $PATH 32159 do 32160 IFS=$as_save_IFS 32161 test -z "$as_dir" && as_dir=. 32162 for ac_exec_ext in '' $ac_executable_extensions; do 32163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32164 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32166 break 2 32167 fi 32168 done 32169 done 32170 IFS=$as_save_IFS 32171 32172 ;; 32173 esac 32174 fi 32175 AS=$ac_cv_path_AS 32176 if test -n "$AS"; then 32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32178 $as_echo "$AS" >&6; } 32179 else 32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32181 $as_echo "no" >&6; } 32182 fi 32183 32184 32185 test -n "$AS" && break 32186 done 32187 32188 else 32189 # The variable is set, but is it from the command line or the environment? 32190 32191 # Try to remove the string !AS! from our list. 32192 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32193 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32194 # If it failed, the variable was not from the command line. Ignore it, 32195 # but warn the user (except for BASH, which is always set by the calling BASH). 32196 if test "xAS" != xBASH; then 32197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32198 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32199 fi 32200 # Try to locate tool using the code snippet 32201 for ac_prog in as 32202 do 32203 # Extract the first word of "$ac_prog", so it can be a program name with args. 32204 set dummy $ac_prog; ac_word=$2 32205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32206 $as_echo_n "checking for $ac_word... " >&6; } 32207 if ${ac_cv_path_AS+:} false; then : 32208 $as_echo_n "(cached) " >&6 32209 else 32210 case $AS in 32211 [\\/]* | ?:[\\/]*) 32212 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32213 ;; 32214 *) 32215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32216 for as_dir in $PATH 32217 do 32218 IFS=$as_save_IFS 32219 test -z "$as_dir" && as_dir=. 32220 for ac_exec_ext in '' $ac_executable_extensions; do 32221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32222 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32224 break 2 32225 fi 32226 done 32227 done 32228 IFS=$as_save_IFS 32229 32230 ;; 32231 esac 32232 fi 32233 AS=$ac_cv_path_AS 32234 if test -n "$AS"; then 32235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32236 $as_echo "$AS" >&6; } 32237 else 32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32239 $as_echo "no" >&6; } 32240 fi 32241 32242 32243 test -n "$AS" && break 32244 done 32245 32246 else 32247 # If it succeeded, then it was overridden by the user. We will use it 32248 # for the tool. 32249 32250 # First remove it from the list of overridden variables, so we can test 32251 # for unknown variables in the end. 32252 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32253 32254 # Check if the provided tool contains a complete path. 32255 tool_specified="$AS" 32256 tool_basename="${tool_specified##*/}" 32257 if test "x$tool_basename" = "x$tool_specified"; then 32258 # A command without a complete path is provided, search $PATH. 32259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32260 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32261 # Extract the first word of "$tool_basename", so it can be a program name with args. 32262 set dummy $tool_basename; ac_word=$2 32263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32264 $as_echo_n "checking for $ac_word... " >&6; } 32265 if ${ac_cv_path_AS+:} false; then : 32266 $as_echo_n "(cached) " >&6 32267 else 32268 case $AS in 32269 [\\/]* | ?:[\\/]*) 32270 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32271 ;; 32272 *) 32273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32274 for as_dir in $PATH 32275 do 32276 IFS=$as_save_IFS 32277 test -z "$as_dir" && as_dir=. 32278 for ac_exec_ext in '' $ac_executable_extensions; do 32279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32280 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32282 break 2 32283 fi 32284 done 32285 done 32286 IFS=$as_save_IFS 32287 32288 ;; 32289 esac 32290 fi 32291 AS=$ac_cv_path_AS 32292 if test -n "$AS"; then 32293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32294 $as_echo "$AS" >&6; } 32295 else 32296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32297 $as_echo "no" >&6; } 32298 fi 32299 32300 32301 if test "x$AS" = x; then 32302 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32303 fi 32304 else 32305 # Otherwise we believe it is a complete path. Use it as it is. 32306 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32307 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32309 $as_echo_n "checking for AS... " >&6; } 32310 if test ! -x "$tool_specified"; then 32311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32312 $as_echo "not found" >&6; } 32313 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32314 fi 32315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32316 $as_echo "$tool_specified" >&6; } 32317 fi 32318 fi 32319 fi 32320 32321 32322 32323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32324 32325 # First separate the path from the arguments. This will split at the first 32326 # space. 32327 complete="$AS" 32328 path="${complete%% *}" 32329 tmp="$complete EOL" 32330 arguments="${tmp#* }" 32331 32332 # Input might be given as Windows format, start by converting to 32333 # unix format. 32334 new_path=`$CYGPATH -u "$path"` 32335 32336 # Now try to locate executable using which 32337 new_path=`$WHICH "$new_path" 2> /dev/null` 32338 # bat and cmd files are not always considered executable in cygwin causing which 32339 # to not find them 32340 if test "x$new_path" = x \ 32341 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32342 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32343 new_path=`$CYGPATH -u "$path"` 32344 fi 32345 if test "x$new_path" = x; then 32346 # Oops. Which didn't find the executable. 32347 # The splitting of arguments from the executable at a space might have been incorrect, 32348 # since paths with space are more likely in Windows. Give it another try with the whole 32349 # argument. 32350 path="$complete" 32351 arguments="EOL" 32352 new_path=`$CYGPATH -u "$path"` 32353 new_path=`$WHICH "$new_path" 2> /dev/null` 32354 # bat and cmd files are not always considered executable in cygwin causing which 32355 # to not find them 32356 if test "x$new_path" = x \ 32357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32359 new_path=`$CYGPATH -u "$path"` 32360 fi 32361 if test "x$new_path" = x; then 32362 # It's still not found. Now this is an unrecoverable error. 32363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32364 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32365 has_space=`$ECHO "$complete" | $GREP " "` 32366 if test "x$has_space" != x; then 32367 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32368 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32369 fi 32370 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32371 fi 32372 fi 32373 32374 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32375 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32376 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32377 # "foo.exe" is OK but "foo" is an error. 32378 # 32379 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32380 # It is also a way to make sure we got the proper file name for the real test later on. 32381 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32382 if test "x$test_shortpath" = x; then 32383 # Short path failed, file does not exist as specified. 32384 # Try adding .exe or .cmd 32385 if test -f "${new_path}.exe"; then 32386 input_to_shortpath="${new_path}.exe" 32387 elif test -f "${new_path}.cmd"; then 32388 input_to_shortpath="${new_path}.cmd" 32389 else 32390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32391 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32392 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32393 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32394 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32395 fi 32396 else 32397 input_to_shortpath="$new_path" 32398 fi 32399 32400 # Call helper function which possibly converts this using DOS-style short mode. 32401 # If so, the updated path is stored in $new_path. 32402 new_path="$input_to_shortpath" 32403 32404 input_path="$input_to_shortpath" 32405 # Check if we need to convert this using DOS-style short mode. If the path 32406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32407 # take no chances and rewrite it. 32408 # Note: m4 eats our [], so we need to use [ and ] instead. 32409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32410 if test "x$has_forbidden_chars" != x; then 32411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32412 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32413 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32414 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32415 # Going to short mode and back again did indeed matter. Since short mode is 32416 # case insensitive, let's make it lowercase to improve readability. 32417 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32418 # Now convert it back to Unix-stile (cygpath) 32419 input_path=`$CYGPATH -u "$shortmode_path"` 32420 new_path="$input_path" 32421 fi 32422 fi 32423 32424 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32425 if test "x$test_cygdrive_prefix" = x; then 32426 # As a simple fix, exclude /usr/bin since it's not a real path. 32427 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32428 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32429 # a path prefixed by /cygdrive for fixpath to work. 32430 new_path="$CYGWIN_ROOT_PATH$input_path" 32431 fi 32432 fi 32433 32434 # remove trailing .exe if any 32435 new_path="${new_path/%.exe/}" 32436 32437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32438 32439 # First separate the path from the arguments. This will split at the first 32440 # space. 32441 complete="$AS" 32442 path="${complete%% *}" 32443 tmp="$complete EOL" 32444 arguments="${tmp#* }" 32445 32446 # Input might be given as Windows format, start by converting to 32447 # unix format. 32448 new_path="$path" 32449 32450 windows_path="$new_path" 32451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32452 unix_path=`$CYGPATH -u "$windows_path"` 32453 new_path="$unix_path" 32454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32456 new_path="$unix_path" 32457 fi 32458 32459 32460 # Now try to locate executable using which 32461 new_path=`$WHICH "$new_path" 2> /dev/null` 32462 32463 if test "x$new_path" = x; then 32464 # Oops. Which didn't find the executable. 32465 # The splitting of arguments from the executable at a space might have been incorrect, 32466 # since paths with space are more likely in Windows. Give it another try with the whole 32467 # argument. 32468 path="$complete" 32469 arguments="EOL" 32470 new_path="$path" 32471 32472 windows_path="$new_path" 32473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32474 unix_path=`$CYGPATH -u "$windows_path"` 32475 new_path="$unix_path" 32476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32478 new_path="$unix_path" 32479 fi 32480 32481 32482 new_path=`$WHICH "$new_path" 2> /dev/null` 32483 # bat and cmd files are not always considered executable in MSYS causing which 32484 # to not find them 32485 if test "x$new_path" = x \ 32486 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32487 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32488 new_path="$path" 32489 32490 windows_path="$new_path" 32491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32492 unix_path=`$CYGPATH -u "$windows_path"` 32493 new_path="$unix_path" 32494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32495 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32496 new_path="$unix_path" 32497 fi 32498 32499 fi 32500 32501 if test "x$new_path" = x; then 32502 # It's still not found. Now this is an unrecoverable error. 32503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32504 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32505 has_space=`$ECHO "$complete" | $GREP " "` 32506 if test "x$has_space" != x; then 32507 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32508 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32509 fi 32510 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32511 fi 32512 fi 32513 32514 # Now new_path has a complete unix path to the binary 32515 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32516 # Keep paths in /bin as-is, but remove trailing .exe if any 32517 new_path="${new_path/%.exe/}" 32518 # Do not save /bin paths to all_fixpath_prefixes! 32519 else 32520 # Not in mixed or Windows style, start by that. 32521 new_path=`cmd //c echo $new_path` 32522 32523 input_path="$new_path" 32524 # Check if we need to convert this using DOS-style short mode. If the path 32525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32526 # take no chances and rewrite it. 32527 # Note: m4 eats our [], so we need to use [ and ] instead. 32528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32529 if test "x$has_forbidden_chars" != x; then 32530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32531 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32532 fi 32533 32534 # Output is in $new_path 32535 32536 windows_path="$new_path" 32537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32538 unix_path=`$CYGPATH -u "$windows_path"` 32539 new_path="$unix_path" 32540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32542 new_path="$unix_path" 32543 fi 32544 32545 # remove trailing .exe if any 32546 new_path="${new_path/%.exe/}" 32547 32548 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32549 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32550 fi 32551 32552 else 32553 # We're on a unix platform. Hooray! :) 32554 # First separate the path from the arguments. This will split at the first 32555 # space. 32556 complete="$AS" 32557 path="${complete%% *}" 32558 tmp="$complete EOL" 32559 arguments="${tmp#* }" 32560 32561 # Cannot rely on the command "which" here since it doesn't always work. 32562 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32563 if test -z "$is_absolute_path"; then 32564 # Path to executable is not absolute. Find it. 32565 IFS_save="$IFS" 32566 IFS=: 32567 for p in $PATH; do 32568 if test -f "$p/$path" && test -x "$p/$path"; then 32569 new_path="$p/$path" 32570 break 32571 fi 32572 done 32573 IFS="$IFS_save" 32574 else 32575 # This is an absolute path, we can use it without further modifications. 32576 new_path="$path" 32577 fi 32578 32579 if test "x$new_path" = x; then 32580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32581 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32582 has_space=`$ECHO "$complete" | $GREP " "` 32583 if test "x$has_space" != x; then 32584 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32585 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32586 fi 32587 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32588 fi 32589 fi 32590 32591 # Now join together the path and the arguments once again 32592 if test "x$arguments" != xEOL; then 32593 new_complete="$new_path ${arguments% *}" 32594 else 32595 new_complete="$new_path" 32596 fi 32597 32598 if test "x$complete" != "x$new_complete"; then 32599 AS="$new_complete" 32600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32601 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32602 fi 32603 32604 else 32605 # FIXME: is this correct for microsoft? 32606 AS="$CC -c" 32607 fi 32608 32609 32610 # 32611 # Setup the archiver (AR) 32612 # 32613 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32614 # The corresponding ar tool is lib.exe (used to create static libraries) 32615 # Extract the first word of "lib", so it can be a program name with args. 32616 set dummy lib; ac_word=$2 32617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32618 $as_echo_n "checking for $ac_word... " >&6; } 32619 if ${ac_cv_prog_AR+:} false; then : 32620 $as_echo_n "(cached) " >&6 32621 else 32622 if test -n "$AR"; then 32623 ac_cv_prog_AR="$AR" # Let the user override the test. 32624 else 32625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32626 for as_dir in $PATH 32627 do 32628 IFS=$as_save_IFS 32629 test -z "$as_dir" && as_dir=. 32630 for ac_exec_ext in '' $ac_executable_extensions; do 32631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32632 ac_cv_prog_AR="lib" 32633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32634 break 2 32635 fi 32636 done 32637 done 32638 IFS=$as_save_IFS 32639 32640 fi 32641 fi 32642 AR=$ac_cv_prog_AR 32643 if test -n "$AR"; then 32644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32645 $as_echo "$AR" >&6; } 32646 else 32647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32648 $as_echo "no" >&6; } 32649 fi 32650 32651 32652 else 32653 32654 32655 # Publish this variable in the help. 32656 32657 32658 if test "x$AR" = x; then 32659 # The variable is not set by user, try to locate tool using the code snippet 32660 if test -n "$ac_tool_prefix"; then 32661 for ac_prog in ar 32662 do 32663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32666 $as_echo_n "checking for $ac_word... " >&6; } 32667 if ${ac_cv_prog_AR+:} false; then : 32668 $as_echo_n "(cached) " >&6 32669 else 32670 if test -n "$AR"; then 32671 ac_cv_prog_AR="$AR" # Let the user override the test. 32672 else 32673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32674 for as_dir in $PATH 32675 do 32676 IFS=$as_save_IFS 32677 test -z "$as_dir" && as_dir=. 32678 for ac_exec_ext in '' $ac_executable_extensions; do 32679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32680 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32682 break 2 32683 fi 32684 done 32685 done 32686 IFS=$as_save_IFS 32687 32688 fi 32689 fi 32690 AR=$ac_cv_prog_AR 32691 if test -n "$AR"; then 32692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32693 $as_echo "$AR" >&6; } 32694 else 32695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32696 $as_echo "no" >&6; } 32697 fi 32698 32699 32700 test -n "$AR" && break 32701 done 32702 fi 32703 if test -z "$AR"; then 32704 ac_ct_AR=$AR 32705 for ac_prog in ar 32706 do 32707 # Extract the first word of "$ac_prog", so it can be a program name with args. 32708 set dummy $ac_prog; ac_word=$2 32709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32710 $as_echo_n "checking for $ac_word... " >&6; } 32711 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32712 $as_echo_n "(cached) " >&6 32713 else 32714 if test -n "$ac_ct_AR"; then 32715 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32716 else 32717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32718 for as_dir in $PATH 32719 do 32720 IFS=$as_save_IFS 32721 test -z "$as_dir" && as_dir=. 32722 for ac_exec_ext in '' $ac_executable_extensions; do 32723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32724 ac_cv_prog_ac_ct_AR="$ac_prog" 32725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32726 break 2 32727 fi 32728 done 32729 done 32730 IFS=$as_save_IFS 32731 32732 fi 32733 fi 32734 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32735 if test -n "$ac_ct_AR"; then 32736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32737 $as_echo "$ac_ct_AR" >&6; } 32738 else 32739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32740 $as_echo "no" >&6; } 32741 fi 32742 32743 32744 test -n "$ac_ct_AR" && break 32745 done 32746 32747 if test "x$ac_ct_AR" = x; then 32748 AR="" 32749 else 32750 case $cross_compiling:$ac_tool_warned in 32751 yes:) 32752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32754 ac_tool_warned=yes ;; 32755 esac 32756 AR=$ac_ct_AR 32757 fi 32758 fi 32759 32760 else 32761 # The variable is set, but is it from the command line or the environment? 32762 32763 # Try to remove the string !AR! from our list. 32764 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32765 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32766 # If it failed, the variable was not from the command line. Ignore it, 32767 # but warn the user (except for BASH, which is always set by the calling BASH). 32768 if test "xAR" != xBASH; then 32769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32770 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32771 fi 32772 # Try to locate tool using the code snippet 32773 if test -n "$ac_tool_prefix"; then 32774 for ac_prog in ar 32775 do 32776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32779 $as_echo_n "checking for $ac_word... " >&6; } 32780 if ${ac_cv_prog_AR+:} false; then : 32781 $as_echo_n "(cached) " >&6 32782 else 32783 if test -n "$AR"; then 32784 ac_cv_prog_AR="$AR" # Let the user override the test. 32785 else 32786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32787 for as_dir in $PATH 32788 do 32789 IFS=$as_save_IFS 32790 test -z "$as_dir" && as_dir=. 32791 for ac_exec_ext in '' $ac_executable_extensions; do 32792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32793 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32795 break 2 32796 fi 32797 done 32798 done 32799 IFS=$as_save_IFS 32800 32801 fi 32802 fi 32803 AR=$ac_cv_prog_AR 32804 if test -n "$AR"; then 32805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32806 $as_echo "$AR" >&6; } 32807 else 32808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32809 $as_echo "no" >&6; } 32810 fi 32811 32812 32813 test -n "$AR" && break 32814 done 32815 fi 32816 if test -z "$AR"; then 32817 ac_ct_AR=$AR 32818 for ac_prog in ar 32819 do 32820 # Extract the first word of "$ac_prog", so it can be a program name with args. 32821 set dummy $ac_prog; ac_word=$2 32822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32823 $as_echo_n "checking for $ac_word... " >&6; } 32824 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32825 $as_echo_n "(cached) " >&6 32826 else 32827 if test -n "$ac_ct_AR"; then 32828 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32829 else 32830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32831 for as_dir in $PATH 32832 do 32833 IFS=$as_save_IFS 32834 test -z "$as_dir" && as_dir=. 32835 for ac_exec_ext in '' $ac_executable_extensions; do 32836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32837 ac_cv_prog_ac_ct_AR="$ac_prog" 32838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32839 break 2 32840 fi 32841 done 32842 done 32843 IFS=$as_save_IFS 32844 32845 fi 32846 fi 32847 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32848 if test -n "$ac_ct_AR"; then 32849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32850 $as_echo "$ac_ct_AR" >&6; } 32851 else 32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32853 $as_echo "no" >&6; } 32854 fi 32855 32856 32857 test -n "$ac_ct_AR" && break 32858 done 32859 32860 if test "x$ac_ct_AR" = x; then 32861 AR="" 32862 else 32863 case $cross_compiling:$ac_tool_warned in 32864 yes:) 32865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32867 ac_tool_warned=yes ;; 32868 esac 32869 AR=$ac_ct_AR 32870 fi 32871 fi 32872 32873 else 32874 # If it succeeded, then it was overridden by the user. We will use it 32875 # for the tool. 32876 32877 # First remove it from the list of overridden variables, so we can test 32878 # for unknown variables in the end. 32879 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32880 32881 # Check if the provided tool contains a complete path. 32882 tool_specified="$AR" 32883 tool_basename="${tool_specified##*/}" 32884 if test "x$tool_basename" = "x$tool_specified"; then 32885 # A command without a complete path is provided, search $PATH. 32886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32887 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32888 # Extract the first word of "$tool_basename", so it can be a program name with args. 32889 set dummy $tool_basename; ac_word=$2 32890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32891 $as_echo_n "checking for $ac_word... " >&6; } 32892 if ${ac_cv_path_AR+:} false; then : 32893 $as_echo_n "(cached) " >&6 32894 else 32895 case $AR in 32896 [\\/]* | ?:[\\/]*) 32897 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32898 ;; 32899 *) 32900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32901 for as_dir in $PATH 32902 do 32903 IFS=$as_save_IFS 32904 test -z "$as_dir" && as_dir=. 32905 for ac_exec_ext in '' $ac_executable_extensions; do 32906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32907 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32909 break 2 32910 fi 32911 done 32912 done 32913 IFS=$as_save_IFS 32914 32915 ;; 32916 esac 32917 fi 32918 AR=$ac_cv_path_AR 32919 if test -n "$AR"; then 32920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32921 $as_echo "$AR" >&6; } 32922 else 32923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32924 $as_echo "no" >&6; } 32925 fi 32926 32927 32928 if test "x$AR" = x; then 32929 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32930 fi 32931 else 32932 # Otherwise we believe it is a complete path. Use it as it is. 32933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32934 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32936 $as_echo_n "checking for AR... " >&6; } 32937 if test ! -x "$tool_specified"; then 32938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32939 $as_echo "not found" >&6; } 32940 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32941 fi 32942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32943 $as_echo "$tool_specified" >&6; } 32944 fi 32945 fi 32946 fi 32947 32948 32949 fi 32950 32951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32952 32953 # First separate the path from the arguments. This will split at the first 32954 # space. 32955 complete="$AR" 32956 path="${complete%% *}" 32957 tmp="$complete EOL" 32958 arguments="${tmp#* }" 32959 32960 # Input might be given as Windows format, start by converting to 32961 # unix format. 32962 new_path=`$CYGPATH -u "$path"` 32963 32964 # Now try to locate executable using which 32965 new_path=`$WHICH "$new_path" 2> /dev/null` 32966 # bat and cmd files are not always considered executable in cygwin causing which 32967 # to not find them 32968 if test "x$new_path" = x \ 32969 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32970 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32971 new_path=`$CYGPATH -u "$path"` 32972 fi 32973 if test "x$new_path" = x; then 32974 # Oops. Which didn't find the executable. 32975 # The splitting of arguments from the executable at a space might have been incorrect, 32976 # since paths with space are more likely in Windows. Give it another try with the whole 32977 # argument. 32978 path="$complete" 32979 arguments="EOL" 32980 new_path=`$CYGPATH -u "$path"` 32981 new_path=`$WHICH "$new_path" 2> /dev/null` 32982 # bat and cmd files are not always considered executable in cygwin causing which 32983 # to not find them 32984 if test "x$new_path" = x \ 32985 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32986 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32987 new_path=`$CYGPATH -u "$path"` 32988 fi 32989 if test "x$new_path" = x; then 32990 # It's still not found. Now this is an unrecoverable error. 32991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32992 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32993 has_space=`$ECHO "$complete" | $GREP " "` 32994 if test "x$has_space" != x; then 32995 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32996 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32997 fi 32998 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32999 fi 33000 fi 33001 33002 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33003 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33004 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33005 # "foo.exe" is OK but "foo" is an error. 33006 # 33007 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33008 # It is also a way to make sure we got the proper file name for the real test later on. 33009 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33010 if test "x$test_shortpath" = x; then 33011 # Short path failed, file does not exist as specified. 33012 # Try adding .exe or .cmd 33013 if test -f "${new_path}.exe"; then 33014 input_to_shortpath="${new_path}.exe" 33015 elif test -f "${new_path}.cmd"; then 33016 input_to_shortpath="${new_path}.cmd" 33017 else 33018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33019 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33020 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33021 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33022 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33023 fi 33024 else 33025 input_to_shortpath="$new_path" 33026 fi 33027 33028 # Call helper function which possibly converts this using DOS-style short mode. 33029 # If so, the updated path is stored in $new_path. 33030 new_path="$input_to_shortpath" 33031 33032 input_path="$input_to_shortpath" 33033 # Check if we need to convert this using DOS-style short mode. If the path 33034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33035 # take no chances and rewrite it. 33036 # Note: m4 eats our [], so we need to use [ and ] instead. 33037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33038 if test "x$has_forbidden_chars" != x; then 33039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33040 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33041 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33042 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33043 # Going to short mode and back again did indeed matter. Since short mode is 33044 # case insensitive, let's make it lowercase to improve readability. 33045 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33046 # Now convert it back to Unix-stile (cygpath) 33047 input_path=`$CYGPATH -u "$shortmode_path"` 33048 new_path="$input_path" 33049 fi 33050 fi 33051 33052 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33053 if test "x$test_cygdrive_prefix" = x; then 33054 # As a simple fix, exclude /usr/bin since it's not a real path. 33055 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33056 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33057 # a path prefixed by /cygdrive for fixpath to work. 33058 new_path="$CYGWIN_ROOT_PATH$input_path" 33059 fi 33060 fi 33061 33062 # remove trailing .exe if any 33063 new_path="${new_path/%.exe/}" 33064 33065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33066 33067 # First separate the path from the arguments. This will split at the first 33068 # space. 33069 complete="$AR" 33070 path="${complete%% *}" 33071 tmp="$complete EOL" 33072 arguments="${tmp#* }" 33073 33074 # Input might be given as Windows format, start by converting to 33075 # unix format. 33076 new_path="$path" 33077 33078 windows_path="$new_path" 33079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33080 unix_path=`$CYGPATH -u "$windows_path"` 33081 new_path="$unix_path" 33082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33083 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33084 new_path="$unix_path" 33085 fi 33086 33087 33088 # Now try to locate executable using which 33089 new_path=`$WHICH "$new_path" 2> /dev/null` 33090 33091 if test "x$new_path" = x; then 33092 # Oops. Which didn't find the executable. 33093 # The splitting of arguments from the executable at a space might have been incorrect, 33094 # since paths with space are more likely in Windows. Give it another try with the whole 33095 # argument. 33096 path="$complete" 33097 arguments="EOL" 33098 new_path="$path" 33099 33100 windows_path="$new_path" 33101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33102 unix_path=`$CYGPATH -u "$windows_path"` 33103 new_path="$unix_path" 33104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33106 new_path="$unix_path" 33107 fi 33108 33109 33110 new_path=`$WHICH "$new_path" 2> /dev/null` 33111 # bat and cmd files are not always considered executable in MSYS causing which 33112 # to not find them 33113 if test "x$new_path" = x \ 33114 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33115 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33116 new_path="$path" 33117 33118 windows_path="$new_path" 33119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33120 unix_path=`$CYGPATH -u "$windows_path"` 33121 new_path="$unix_path" 33122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33124 new_path="$unix_path" 33125 fi 33126 33127 fi 33128 33129 if test "x$new_path" = x; then 33130 # It's still not found. Now this is an unrecoverable error. 33131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33132 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33133 has_space=`$ECHO "$complete" | $GREP " "` 33134 if test "x$has_space" != x; then 33135 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33136 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33137 fi 33138 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33139 fi 33140 fi 33141 33142 # Now new_path has a complete unix path to the binary 33143 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33144 # Keep paths in /bin as-is, but remove trailing .exe if any 33145 new_path="${new_path/%.exe/}" 33146 # Do not save /bin paths to all_fixpath_prefixes! 33147 else 33148 # Not in mixed or Windows style, start by that. 33149 new_path=`cmd //c echo $new_path` 33150 33151 input_path="$new_path" 33152 # Check if we need to convert this using DOS-style short mode. If the path 33153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33154 # take no chances and rewrite it. 33155 # Note: m4 eats our [], so we need to use [ and ] instead. 33156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33157 if test "x$has_forbidden_chars" != x; then 33158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33159 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33160 fi 33161 33162 # Output is in $new_path 33163 33164 windows_path="$new_path" 33165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33166 unix_path=`$CYGPATH -u "$windows_path"` 33167 new_path="$unix_path" 33168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33169 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33170 new_path="$unix_path" 33171 fi 33172 33173 # remove trailing .exe if any 33174 new_path="${new_path/%.exe/}" 33175 33176 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33177 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33178 fi 33179 33180 else 33181 # We're on a unix platform. Hooray! :) 33182 # First separate the path from the arguments. This will split at the first 33183 # space. 33184 complete="$AR" 33185 path="${complete%% *}" 33186 tmp="$complete EOL" 33187 arguments="${tmp#* }" 33188 33189 # Cannot rely on the command "which" here since it doesn't always work. 33190 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33191 if test -z "$is_absolute_path"; then 33192 # Path to executable is not absolute. Find it. 33193 IFS_save="$IFS" 33194 IFS=: 33195 for p in $PATH; do 33196 if test -f "$p/$path" && test -x "$p/$path"; then 33197 new_path="$p/$path" 33198 break 33199 fi 33200 done 33201 IFS="$IFS_save" 33202 else 33203 # This is an absolute path, we can use it without further modifications. 33204 new_path="$path" 33205 fi 33206 33207 if test "x$new_path" = x; then 33208 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33209 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33210 has_space=`$ECHO "$complete" | $GREP " "` 33211 if test "x$has_space" != x; then 33212 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33213 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33214 fi 33215 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33216 fi 33217 fi 33218 33219 # Now join together the path and the arguments once again 33220 if test "x$arguments" != xEOL; then 33221 new_complete="$new_path ${arguments% *}" 33222 else 33223 new_complete="$new_path" 33224 fi 33225 33226 if test "x$complete" != "x$new_complete"; then 33227 AR="$new_complete" 33228 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33229 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33230 fi 33231 33232 33233 33234 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33235 ac_ext=m 33236 ac_cpp='$OBJCPP $CPPFLAGS' 33237 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33238 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33239 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 33240 if test -n "$ac_tool_prefix"; then 33241 for ac_prog in gcc objcc objc cc CC 33242 do 33243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33246 $as_echo_n "checking for $ac_word... " >&6; } 33247 if ${ac_cv_prog_OBJC+:} false; then : 33248 $as_echo_n "(cached) " >&6 33249 else 33250 if test -n "$OBJC"; then 33251 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 33252 else 33253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33254 for as_dir in $PATH 33255 do 33256 IFS=$as_save_IFS 33257 test -z "$as_dir" && as_dir=. 33258 for ac_exec_ext in '' $ac_executable_extensions; do 33259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33260 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 33261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33262 break 2 33263 fi 33264 done 33265 done 33266 IFS=$as_save_IFS 33267 33268 fi 33269 fi 33270 OBJC=$ac_cv_prog_OBJC 33271 if test -n "$OBJC"; then 33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 33273 $as_echo "$OBJC" >&6; } 33274 else 33275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33276 $as_echo "no" >&6; } 33277 fi 33278 33279 33280 test -n "$OBJC" && break 33281 done 33282 fi 33283 if test -z "$OBJC"; then 33284 ac_ct_OBJC=$OBJC 33285 for ac_prog in gcc objcc objc cc CC 33286 do 33287 # Extract the first word of "$ac_prog", so it can be a program name with args. 33288 set dummy $ac_prog; ac_word=$2 33289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33290 $as_echo_n "checking for $ac_word... " >&6; } 33291 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 33292 $as_echo_n "(cached) " >&6 33293 else 33294 if test -n "$ac_ct_OBJC"; then 33295 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 33296 else 33297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33298 for as_dir in $PATH 33299 do 33300 IFS=$as_save_IFS 33301 test -z "$as_dir" && as_dir=. 33302 for ac_exec_ext in '' $ac_executable_extensions; do 33303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33304 ac_cv_prog_ac_ct_OBJC="$ac_prog" 33305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33306 break 2 33307 fi 33308 done 33309 done 33310 IFS=$as_save_IFS 33311 33312 fi 33313 fi 33314 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 33315 if test -n "$ac_ct_OBJC"; then 33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 33317 $as_echo "$ac_ct_OBJC" >&6; } 33318 else 33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33320 $as_echo "no" >&6; } 33321 fi 33322 33323 33324 test -n "$ac_ct_OBJC" && break 33325 done 33326 33327 if test "x$ac_ct_OBJC" = x; then 33328 OBJC="gcc" 33329 else 33330 case $cross_compiling:$ac_tool_warned in 33331 yes:) 33332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33334 ac_tool_warned=yes ;; 33335 esac 33336 OBJC=$ac_ct_OBJC 33337 fi 33338 fi 33339 33340 # Provide some information about the compiler. 33341 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 33342 set X $ac_compile 33343 ac_compiler=$2 33344 for ac_option in --version -v -V -qversion; do 33345 { { ac_try="$ac_compiler $ac_option >&5" 33346 case "(($ac_try" in 33347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33348 *) ac_try_echo=$ac_try;; 33349 esac 33350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33351 $as_echo "$ac_try_echo"; } >&5 33352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33353 ac_status=$? 33354 if test -s conftest.err; then 33355 sed '10a\ 33356 ... rest of stderr output deleted ... 33357 10q' conftest.err >conftest.er1 33358 cat conftest.er1 >&5 33359 fi 33360 rm -f conftest.er1 conftest.err 33361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33362 test $ac_status = 0; } 33363 done 33364 33365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 33366 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 33367 if ${ac_cv_objc_compiler_gnu+:} false; then : 33368 $as_echo_n "(cached) " >&6 33369 else 33370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33371 /* end confdefs.h. */ 33372 33373 int 33374 main () 33375 { 33376 #ifndef __GNUC__ 33377 choke me 33378 #endif 33379 33380 ; 33381 return 0; 33382 } 33383 _ACEOF 33384 if ac_fn_objc_try_compile "$LINENO"; then : 33385 ac_compiler_gnu=yes 33386 else 33387 ac_compiler_gnu=no 33388 fi 33389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33390 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 33391 33392 fi 33393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 33394 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 33395 if test $ac_compiler_gnu = yes; then 33396 GOBJC=yes 33397 else 33398 GOBJC= 33399 fi 33400 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 33401 ac_save_OBJCFLAGS=$OBJCFLAGS 33402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 33403 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 33404 if ${ac_cv_prog_objc_g+:} false; then : 33405 $as_echo_n "(cached) " >&6 33406 else 33407 ac_save_objc_werror_flag=$ac_objc_werror_flag 33408 ac_objc_werror_flag=yes 33409 ac_cv_prog_objc_g=no 33410 OBJCFLAGS="-g" 33411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33412 /* end confdefs.h. */ 33413 33414 int 33415 main () 33416 { 33417 33418 ; 33419 return 0; 33420 } 33421 _ACEOF 33422 if ac_fn_objc_try_compile "$LINENO"; then : 33423 ac_cv_prog_objc_g=yes 33424 else 33425 OBJCFLAGS="" 33426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33427 /* end confdefs.h. */ 33428 33429 int 33430 main () 33431 { 33432 33433 ; 33434 return 0; 33435 } 33436 _ACEOF 33437 if ac_fn_objc_try_compile "$LINENO"; then : 33438 33439 else 33440 ac_objc_werror_flag=$ac_save_objc_werror_flag 33441 OBJCFLAGS="-g" 33442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33443 /* end confdefs.h. */ 33444 33445 int 33446 main () 33447 { 33448 33449 ; 33450 return 0; 33451 } 33452 _ACEOF 33453 if ac_fn_objc_try_compile "$LINENO"; then : 33454 ac_cv_prog_objc_g=yes 33455 fi 33456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33457 fi 33458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33459 fi 33460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33461 ac_objc_werror_flag=$ac_save_objc_werror_flag 33462 fi 33463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33464 $as_echo "$ac_cv_prog_objc_g" >&6; } 33465 if test "$ac_test_OBJCFLAGS" = set; then 33466 OBJCFLAGS=$ac_save_OBJCFLAGS 33467 elif test $ac_cv_prog_objc_g = yes; then 33468 if test "$GOBJC" = yes; then 33469 OBJCFLAGS="-g -O2" 33470 else 33471 OBJCFLAGS="-g" 33472 fi 33473 else 33474 if test "$GOBJC" = yes; then 33475 OBJCFLAGS="-O2" 33476 else 33477 OBJCFLAGS= 33478 fi 33479 fi 33480 ac_ext=cpp 33481 ac_cpp='$CXXCPP $CPPFLAGS' 33482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33485 33486 33487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33488 33489 # First separate the path from the arguments. This will split at the first 33490 # space. 33491 complete="$OBJC" 33492 path="${complete%% *}" 33493 tmp="$complete EOL" 33494 arguments="${tmp#* }" 33495 33496 # Input might be given as Windows format, start by converting to 33497 # unix format. 33498 new_path=`$CYGPATH -u "$path"` 33499 33500 # Now try to locate executable using which 33501 new_path=`$WHICH "$new_path" 2> /dev/null` 33502 # bat and cmd files are not always considered executable in cygwin causing which 33503 # to not find them 33504 if test "x$new_path" = x \ 33505 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33506 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33507 new_path=`$CYGPATH -u "$path"` 33508 fi 33509 if test "x$new_path" = x; then 33510 # Oops. Which didn't find the executable. 33511 # The splitting of arguments from the executable at a space might have been incorrect, 33512 # since paths with space are more likely in Windows. Give it another try with the whole 33513 # argument. 33514 path="$complete" 33515 arguments="EOL" 33516 new_path=`$CYGPATH -u "$path"` 33517 new_path=`$WHICH "$new_path" 2> /dev/null` 33518 # bat and cmd files are not always considered executable in cygwin causing which 33519 # to not find them 33520 if test "x$new_path" = x \ 33521 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33522 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33523 new_path=`$CYGPATH -u "$path"` 33524 fi 33525 if test "x$new_path" = x; then 33526 # It's still not found. Now this is an unrecoverable error. 33527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33528 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33529 has_space=`$ECHO "$complete" | $GREP " "` 33530 if test "x$has_space" != x; then 33531 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33532 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33533 fi 33534 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33535 fi 33536 fi 33537 33538 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33539 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33540 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33541 # "foo.exe" is OK but "foo" is an error. 33542 # 33543 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33544 # It is also a way to make sure we got the proper file name for the real test later on. 33545 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33546 if test "x$test_shortpath" = x; then 33547 # Short path failed, file does not exist as specified. 33548 # Try adding .exe or .cmd 33549 if test -f "${new_path}.exe"; then 33550 input_to_shortpath="${new_path}.exe" 33551 elif test -f "${new_path}.cmd"; then 33552 input_to_shortpath="${new_path}.cmd" 33553 else 33554 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33555 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33556 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33557 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33558 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33559 fi 33560 else 33561 input_to_shortpath="$new_path" 33562 fi 33563 33564 # Call helper function which possibly converts this using DOS-style short mode. 33565 # If so, the updated path is stored in $new_path. 33566 new_path="$input_to_shortpath" 33567 33568 input_path="$input_to_shortpath" 33569 # Check if we need to convert this using DOS-style short mode. If the path 33570 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33571 # take no chances and rewrite it. 33572 # Note: m4 eats our [], so we need to use [ and ] instead. 33573 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33574 if test "x$has_forbidden_chars" != x; then 33575 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33576 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33577 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33578 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33579 # Going to short mode and back again did indeed matter. Since short mode is 33580 # case insensitive, let's make it lowercase to improve readability. 33581 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33582 # Now convert it back to Unix-stile (cygpath) 33583 input_path=`$CYGPATH -u "$shortmode_path"` 33584 new_path="$input_path" 33585 fi 33586 fi 33587 33588 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33589 if test "x$test_cygdrive_prefix" = x; then 33590 # As a simple fix, exclude /usr/bin since it's not a real path. 33591 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33592 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33593 # a path prefixed by /cygdrive for fixpath to work. 33594 new_path="$CYGWIN_ROOT_PATH$input_path" 33595 fi 33596 fi 33597 33598 # remove trailing .exe if any 33599 new_path="${new_path/%.exe/}" 33600 33601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33602 33603 # First separate the path from the arguments. This will split at the first 33604 # space. 33605 complete="$OBJC" 33606 path="${complete%% *}" 33607 tmp="$complete EOL" 33608 arguments="${tmp#* }" 33609 33610 # Input might be given as Windows format, start by converting to 33611 # unix format. 33612 new_path="$path" 33613 33614 windows_path="$new_path" 33615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33616 unix_path=`$CYGPATH -u "$windows_path"` 33617 new_path="$unix_path" 33618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33619 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33620 new_path="$unix_path" 33621 fi 33622 33623 33624 # Now try to locate executable using which 33625 new_path=`$WHICH "$new_path" 2> /dev/null` 33626 33627 if test "x$new_path" = x; then 33628 # Oops. Which didn't find the executable. 33629 # The splitting of arguments from the executable at a space might have been incorrect, 33630 # since paths with space are more likely in Windows. Give it another try with the whole 33631 # argument. 33632 path="$complete" 33633 arguments="EOL" 33634 new_path="$path" 33635 33636 windows_path="$new_path" 33637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33638 unix_path=`$CYGPATH -u "$windows_path"` 33639 new_path="$unix_path" 33640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33642 new_path="$unix_path" 33643 fi 33644 33645 33646 new_path=`$WHICH "$new_path" 2> /dev/null` 33647 # bat and cmd files are not always considered executable in MSYS causing which 33648 # to not find them 33649 if test "x$new_path" = x \ 33650 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33651 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33652 new_path="$path" 33653 33654 windows_path="$new_path" 33655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33656 unix_path=`$CYGPATH -u "$windows_path"` 33657 new_path="$unix_path" 33658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33659 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33660 new_path="$unix_path" 33661 fi 33662 33663 fi 33664 33665 if test "x$new_path" = x; then 33666 # It's still not found. Now this is an unrecoverable error. 33667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33668 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33669 has_space=`$ECHO "$complete" | $GREP " "` 33670 if test "x$has_space" != x; then 33671 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33672 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33673 fi 33674 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33675 fi 33676 fi 33677 33678 # Now new_path has a complete unix path to the binary 33679 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33680 # Keep paths in /bin as-is, but remove trailing .exe if any 33681 new_path="${new_path/%.exe/}" 33682 # Do not save /bin paths to all_fixpath_prefixes! 33683 else 33684 # Not in mixed or Windows style, start by that. 33685 new_path=`cmd //c echo $new_path` 33686 33687 input_path="$new_path" 33688 # Check if we need to convert this using DOS-style short mode. If the path 33689 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33690 # take no chances and rewrite it. 33691 # Note: m4 eats our [], so we need to use [ and ] instead. 33692 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33693 if test "x$has_forbidden_chars" != x; then 33694 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33695 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33696 fi 33697 33698 # Output is in $new_path 33699 33700 windows_path="$new_path" 33701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33702 unix_path=`$CYGPATH -u "$windows_path"` 33703 new_path="$unix_path" 33704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33705 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33706 new_path="$unix_path" 33707 fi 33708 33709 # remove trailing .exe if any 33710 new_path="${new_path/%.exe/}" 33711 33712 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33713 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33714 fi 33715 33716 else 33717 # We're on a unix platform. Hooray! :) 33718 # First separate the path from the arguments. This will split at the first 33719 # space. 33720 complete="$OBJC" 33721 path="${complete%% *}" 33722 tmp="$complete EOL" 33723 arguments="${tmp#* }" 33724 33725 # Cannot rely on the command "which" here since it doesn't always work. 33726 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33727 if test -z "$is_absolute_path"; then 33728 # Path to executable is not absolute. Find it. 33729 IFS_save="$IFS" 33730 IFS=: 33731 for p in $PATH; do 33732 if test -f "$p/$path" && test -x "$p/$path"; then 33733 new_path="$p/$path" 33734 break 33735 fi 33736 done 33737 IFS="$IFS_save" 33738 else 33739 # This is an absolute path, we can use it without further modifications. 33740 new_path="$path" 33741 fi 33742 33743 if test "x$new_path" = x; then 33744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33745 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33746 has_space=`$ECHO "$complete" | $GREP " "` 33747 if test "x$has_space" != x; then 33748 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33749 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33750 fi 33751 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33752 fi 33753 fi 33754 33755 # Now join together the path and the arguments once again 33756 if test "x$arguments" != xEOL; then 33757 new_complete="$new_path ${arguments% *}" 33758 else 33759 new_complete="$new_path" 33760 fi 33761 33762 if test "x$complete" != "x$new_complete"; then 33763 OBJC="$new_complete" 33764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33765 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33766 fi 33767 33768 33769 33770 # Publish this variable in the help. 33771 33772 33773 if test "x$LIPO" = x; then 33774 # The variable is not set by user, try to locate tool using the code snippet 33775 for ac_prog in lipo 33776 do 33777 # Extract the first word of "$ac_prog", so it can be a program name with args. 33778 set dummy $ac_prog; ac_word=$2 33779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33780 $as_echo_n "checking for $ac_word... " >&6; } 33781 if ${ac_cv_path_LIPO+:} false; then : 33782 $as_echo_n "(cached) " >&6 33783 else 33784 case $LIPO in 33785 [\\/]* | ?:[\\/]*) 33786 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33787 ;; 33788 *) 33789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33790 for as_dir in $PATH 33791 do 33792 IFS=$as_save_IFS 33793 test -z "$as_dir" && as_dir=. 33794 for ac_exec_ext in '' $ac_executable_extensions; do 33795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33796 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33798 break 2 33799 fi 33800 done 33801 done 33802 IFS=$as_save_IFS 33803 33804 ;; 33805 esac 33806 fi 33807 LIPO=$ac_cv_path_LIPO 33808 if test -n "$LIPO"; then 33809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33810 $as_echo "$LIPO" >&6; } 33811 else 33812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33813 $as_echo "no" >&6; } 33814 fi 33815 33816 33817 test -n "$LIPO" && break 33818 done 33819 33820 else 33821 # The variable is set, but is it from the command line or the environment? 33822 33823 # Try to remove the string !LIPO! from our list. 33824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33826 # If it failed, the variable was not from the command line. Ignore it, 33827 # but warn the user (except for BASH, which is always set by the calling BASH). 33828 if test "xLIPO" != xBASH; then 33829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33830 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33831 fi 33832 # Try to locate tool using the code snippet 33833 for ac_prog in lipo 33834 do 33835 # Extract the first word of "$ac_prog", so it can be a program name with args. 33836 set dummy $ac_prog; ac_word=$2 33837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33838 $as_echo_n "checking for $ac_word... " >&6; } 33839 if ${ac_cv_path_LIPO+:} false; then : 33840 $as_echo_n "(cached) " >&6 33841 else 33842 case $LIPO in 33843 [\\/]* | ?:[\\/]*) 33844 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33845 ;; 33846 *) 33847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33848 for as_dir in $PATH 33849 do 33850 IFS=$as_save_IFS 33851 test -z "$as_dir" && as_dir=. 33852 for ac_exec_ext in '' $ac_executable_extensions; do 33853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33854 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33856 break 2 33857 fi 33858 done 33859 done 33860 IFS=$as_save_IFS 33861 33862 ;; 33863 esac 33864 fi 33865 LIPO=$ac_cv_path_LIPO 33866 if test -n "$LIPO"; then 33867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33868 $as_echo "$LIPO" >&6; } 33869 else 33870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33871 $as_echo "no" >&6; } 33872 fi 33873 33874 33875 test -n "$LIPO" && break 33876 done 33877 33878 else 33879 # If it succeeded, then it was overridden by the user. We will use it 33880 # for the tool. 33881 33882 # First remove it from the list of overridden variables, so we can test 33883 # for unknown variables in the end. 33884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33885 33886 # Check if the provided tool contains a complete path. 33887 tool_specified="$LIPO" 33888 tool_basename="${tool_specified##*/}" 33889 if test "x$tool_basename" = "x$tool_specified"; then 33890 # A command without a complete path is provided, search $PATH. 33891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33892 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33893 # Extract the first word of "$tool_basename", so it can be a program name with args. 33894 set dummy $tool_basename; ac_word=$2 33895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33896 $as_echo_n "checking for $ac_word... " >&6; } 33897 if ${ac_cv_path_LIPO+:} false; then : 33898 $as_echo_n "(cached) " >&6 33899 else 33900 case $LIPO in 33901 [\\/]* | ?:[\\/]*) 33902 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33903 ;; 33904 *) 33905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33906 for as_dir in $PATH 33907 do 33908 IFS=$as_save_IFS 33909 test -z "$as_dir" && as_dir=. 33910 for ac_exec_ext in '' $ac_executable_extensions; do 33911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33912 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33914 break 2 33915 fi 33916 done 33917 done 33918 IFS=$as_save_IFS 33919 33920 ;; 33921 esac 33922 fi 33923 LIPO=$ac_cv_path_LIPO 33924 if test -n "$LIPO"; then 33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33926 $as_echo "$LIPO" >&6; } 33927 else 33928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33929 $as_echo "no" >&6; } 33930 fi 33931 33932 33933 if test "x$LIPO" = x; then 33934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33935 fi 33936 else 33937 # Otherwise we believe it is a complete path. Use it as it is. 33938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33939 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33941 $as_echo_n "checking for LIPO... " >&6; } 33942 if test ! -x "$tool_specified"; then 33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33944 $as_echo "not found" >&6; } 33945 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33946 fi 33947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33948 $as_echo "$tool_specified" >&6; } 33949 fi 33950 fi 33951 fi 33952 33953 33954 33955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33956 33957 # First separate the path from the arguments. This will split at the first 33958 # space. 33959 complete="$LIPO" 33960 path="${complete%% *}" 33961 tmp="$complete EOL" 33962 arguments="${tmp#* }" 33963 33964 # Input might be given as Windows format, start by converting to 33965 # unix format. 33966 new_path=`$CYGPATH -u "$path"` 33967 33968 # Now try to locate executable using which 33969 new_path=`$WHICH "$new_path" 2> /dev/null` 33970 # bat and cmd files are not always considered executable in cygwin causing which 33971 # to not find them 33972 if test "x$new_path" = x \ 33973 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33974 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33975 new_path=`$CYGPATH -u "$path"` 33976 fi 33977 if test "x$new_path" = x; then 33978 # Oops. Which didn't find the executable. 33979 # The splitting of arguments from the executable at a space might have been incorrect, 33980 # since paths with space are more likely in Windows. Give it another try with the whole 33981 # argument. 33982 path="$complete" 33983 arguments="EOL" 33984 new_path=`$CYGPATH -u "$path"` 33985 new_path=`$WHICH "$new_path" 2> /dev/null` 33986 # bat and cmd files are not always considered executable in cygwin causing which 33987 # to not find them 33988 if test "x$new_path" = x \ 33989 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33990 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33991 new_path=`$CYGPATH -u "$path"` 33992 fi 33993 if test "x$new_path" = x; then 33994 # It's still not found. Now this is an unrecoverable error. 33995 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33996 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33997 has_space=`$ECHO "$complete" | $GREP " "` 33998 if test "x$has_space" != x; then 33999 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34000 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34001 fi 34002 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34003 fi 34004 fi 34005 34006 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34007 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34008 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34009 # "foo.exe" is OK but "foo" is an error. 34010 # 34011 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34012 # It is also a way to make sure we got the proper file name for the real test later on. 34013 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34014 if test "x$test_shortpath" = x; then 34015 # Short path failed, file does not exist as specified. 34016 # Try adding .exe or .cmd 34017 if test -f "${new_path}.exe"; then 34018 input_to_shortpath="${new_path}.exe" 34019 elif test -f "${new_path}.cmd"; then 34020 input_to_shortpath="${new_path}.cmd" 34021 else 34022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 34023 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 34024 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34025 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34026 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34027 fi 34028 else 34029 input_to_shortpath="$new_path" 34030 fi 34031 34032 # Call helper function which possibly converts this using DOS-style short mode. 34033 # If so, the updated path is stored in $new_path. 34034 new_path="$input_to_shortpath" 34035 34036 input_path="$input_to_shortpath" 34037 # Check if we need to convert this using DOS-style short mode. If the path 34038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34039 # take no chances and rewrite it. 34040 # Note: m4 eats our [], so we need to use [ and ] instead. 34041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34042 if test "x$has_forbidden_chars" != x; then 34043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34044 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34045 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34046 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34047 # Going to short mode and back again did indeed matter. Since short mode is 34048 # case insensitive, let's make it lowercase to improve readability. 34049 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34050 # Now convert it back to Unix-stile (cygpath) 34051 input_path=`$CYGPATH -u "$shortmode_path"` 34052 new_path="$input_path" 34053 fi 34054 fi 34055 34056 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34057 if test "x$test_cygdrive_prefix" = x; then 34058 # As a simple fix, exclude /usr/bin since it's not a real path. 34059 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34060 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34061 # a path prefixed by /cygdrive for fixpath to work. 34062 new_path="$CYGWIN_ROOT_PATH$input_path" 34063 fi 34064 fi 34065 34066 # remove trailing .exe if any 34067 new_path="${new_path/%.exe/}" 34068 34069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34070 34071 # First separate the path from the arguments. This will split at the first 34072 # space. 34073 complete="$LIPO" 34074 path="${complete%% *}" 34075 tmp="$complete EOL" 34076 arguments="${tmp#* }" 34077 34078 # Input might be given as Windows format, start by converting to 34079 # unix format. 34080 new_path="$path" 34081 34082 windows_path="$new_path" 34083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34084 unix_path=`$CYGPATH -u "$windows_path"` 34085 new_path="$unix_path" 34086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34087 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34088 new_path="$unix_path" 34089 fi 34090 34091 34092 # Now try to locate executable using which 34093 new_path=`$WHICH "$new_path" 2> /dev/null` 34094 34095 if test "x$new_path" = x; then 34096 # Oops. Which didn't find the executable. 34097 # The splitting of arguments from the executable at a space might have been incorrect, 34098 # since paths with space are more likely in Windows. Give it another try with the whole 34099 # argument. 34100 path="$complete" 34101 arguments="EOL" 34102 new_path="$path" 34103 34104 windows_path="$new_path" 34105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34106 unix_path=`$CYGPATH -u "$windows_path"` 34107 new_path="$unix_path" 34108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34109 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34110 new_path="$unix_path" 34111 fi 34112 34113 34114 new_path=`$WHICH "$new_path" 2> /dev/null` 34115 # bat and cmd files are not always considered executable in MSYS causing which 34116 # to not find them 34117 if test "x$new_path" = x \ 34118 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34119 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34120 new_path="$path" 34121 34122 windows_path="$new_path" 34123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34124 unix_path=`$CYGPATH -u "$windows_path"` 34125 new_path="$unix_path" 34126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34127 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34128 new_path="$unix_path" 34129 fi 34130 34131 fi 34132 34133 if test "x$new_path" = x; then 34134 # It's still not found. Now this is an unrecoverable error. 34135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34136 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34137 has_space=`$ECHO "$complete" | $GREP " "` 34138 if test "x$has_space" != x; then 34139 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34140 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34141 fi 34142 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34143 fi 34144 fi 34145 34146 # Now new_path has a complete unix path to the binary 34147 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34148 # Keep paths in /bin as-is, but remove trailing .exe if any 34149 new_path="${new_path/%.exe/}" 34150 # Do not save /bin paths to all_fixpath_prefixes! 34151 else 34152 # Not in mixed or Windows style, start by that. 34153 new_path=`cmd //c echo $new_path` 34154 34155 input_path="$new_path" 34156 # Check if we need to convert this using DOS-style short mode. If the path 34157 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34158 # take no chances and rewrite it. 34159 # Note: m4 eats our [], so we need to use [ and ] instead. 34160 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34161 if test "x$has_forbidden_chars" != x; then 34162 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34163 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34164 fi 34165 34166 # Output is in $new_path 34167 34168 windows_path="$new_path" 34169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34170 unix_path=`$CYGPATH -u "$windows_path"` 34171 new_path="$unix_path" 34172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34174 new_path="$unix_path" 34175 fi 34176 34177 # remove trailing .exe if any 34178 new_path="${new_path/%.exe/}" 34179 34180 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34181 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34182 fi 34183 34184 else 34185 # We're on a unix platform. Hooray! :) 34186 # First separate the path from the arguments. This will split at the first 34187 # space. 34188 complete="$LIPO" 34189 path="${complete%% *}" 34190 tmp="$complete EOL" 34191 arguments="${tmp#* }" 34192 34193 # Cannot rely on the command "which" here since it doesn't always work. 34194 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34195 if test -z "$is_absolute_path"; then 34196 # Path to executable is not absolute. Find it. 34197 IFS_save="$IFS" 34198 IFS=: 34199 for p in $PATH; do 34200 if test -f "$p/$path" && test -x "$p/$path"; then 34201 new_path="$p/$path" 34202 break 34203 fi 34204 done 34205 IFS="$IFS_save" 34206 else 34207 # This is an absolute path, we can use it without further modifications. 34208 new_path="$path" 34209 fi 34210 34211 if test "x$new_path" = x; then 34212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34213 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34214 has_space=`$ECHO "$complete" | $GREP " "` 34215 if test "x$has_space" != x; then 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34217 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34218 fi 34219 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34220 fi 34221 fi 34222 34223 # Now join together the path and the arguments once again 34224 if test "x$arguments" != xEOL; then 34225 new_complete="$new_path ${arguments% *}" 34226 else 34227 new_complete="$new_path" 34228 fi 34229 34230 if test "x$complete" != "x$new_complete"; then 34231 LIPO="$new_complete" 34232 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34233 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34234 fi 34235 34236 else 34237 OBJC= 34238 fi 34239 34240 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34241 # Extract the first word of "mt", so it can be a program name with args. 34242 set dummy mt; ac_word=$2 34243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34244 $as_echo_n "checking for $ac_word... " >&6; } 34245 if ${ac_cv_prog_MT+:} false; then : 34246 $as_echo_n "(cached) " >&6 34247 else 34248 if test -n "$MT"; then 34249 ac_cv_prog_MT="$MT" # Let the user override the test. 34250 else 34251 ac_prog_rejected=no 34252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34253 for as_dir in $PATH 34254 do 34255 IFS=$as_save_IFS 34256 test -z "$as_dir" && as_dir=. 34257 for ac_exec_ext in '' $ac_executable_extensions; do 34258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34260 ac_prog_rejected=yes 34261 continue 34262 fi 34263 ac_cv_prog_MT="mt" 34264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34265 break 2 34266 fi 34267 done 34268 done 34269 IFS=$as_save_IFS 34270 34271 if test $ac_prog_rejected = yes; then 34272 # We found a bogon in the path, so make sure we never use it. 34273 set dummy $ac_cv_prog_MT 34274 shift 34275 if test $# != 0; then 34276 # We chose a different compiler from the bogus one. 34277 # However, it has the same basename, so the bogon will be chosen 34278 # first if we set MT to just the basename; use the full file name. 34279 shift 34280 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34281 fi 34282 fi 34283 fi 34284 fi 34285 MT=$ac_cv_prog_MT 34286 if test -n "$MT"; then 34287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34288 $as_echo "$MT" >&6; } 34289 else 34290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34291 $as_echo "no" >&6; } 34292 fi 34293 34294 34295 34296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34297 34298 # First separate the path from the arguments. This will split at the first 34299 # space. 34300 complete="$MT" 34301 path="${complete%% *}" 34302 tmp="$complete EOL" 34303 arguments="${tmp#* }" 34304 34305 # Input might be given as Windows format, start by converting to 34306 # unix format. 34307 new_path=`$CYGPATH -u "$path"` 34308 34309 # Now try to locate executable using which 34310 new_path=`$WHICH "$new_path" 2> /dev/null` 34311 # bat and cmd files are not always considered executable in cygwin causing which 34312 # to not find them 34313 if test "x$new_path" = x \ 34314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34316 new_path=`$CYGPATH -u "$path"` 34317 fi 34318 if test "x$new_path" = x; then 34319 # Oops. Which didn't find the executable. 34320 # The splitting of arguments from the executable at a space might have been incorrect, 34321 # since paths with space are more likely in Windows. Give it another try with the whole 34322 # argument. 34323 path="$complete" 34324 arguments="EOL" 34325 new_path=`$CYGPATH -u "$path"` 34326 new_path=`$WHICH "$new_path" 2> /dev/null` 34327 # bat and cmd files are not always considered executable in cygwin causing which 34328 # to not find them 34329 if test "x$new_path" = x \ 34330 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34331 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34332 new_path=`$CYGPATH -u "$path"` 34333 fi 34334 if test "x$new_path" = x; then 34335 # It's still not found. Now this is an unrecoverable error. 34336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34337 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34338 has_space=`$ECHO "$complete" | $GREP " "` 34339 if test "x$has_space" != x; then 34340 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34341 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34342 fi 34343 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34344 fi 34345 fi 34346 34347 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34348 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34349 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34350 # "foo.exe" is OK but "foo" is an error. 34351 # 34352 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34353 # It is also a way to make sure we got the proper file name for the real test later on. 34354 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34355 if test "x$test_shortpath" = x; then 34356 # Short path failed, file does not exist as specified. 34357 # Try adding .exe or .cmd 34358 if test -f "${new_path}.exe"; then 34359 input_to_shortpath="${new_path}.exe" 34360 elif test -f "${new_path}.cmd"; then 34361 input_to_shortpath="${new_path}.cmd" 34362 else 34363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34364 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34365 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34366 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34367 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34368 fi 34369 else 34370 input_to_shortpath="$new_path" 34371 fi 34372 34373 # Call helper function which possibly converts this using DOS-style short mode. 34374 # If so, the updated path is stored in $new_path. 34375 new_path="$input_to_shortpath" 34376 34377 input_path="$input_to_shortpath" 34378 # Check if we need to convert this using DOS-style short mode. If the path 34379 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34380 # take no chances and rewrite it. 34381 # Note: m4 eats our [], so we need to use [ and ] instead. 34382 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34383 if test "x$has_forbidden_chars" != x; then 34384 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34385 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34386 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34387 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34388 # Going to short mode and back again did indeed matter. Since short mode is 34389 # case insensitive, let's make it lowercase to improve readability. 34390 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34391 # Now convert it back to Unix-stile (cygpath) 34392 input_path=`$CYGPATH -u "$shortmode_path"` 34393 new_path="$input_path" 34394 fi 34395 fi 34396 34397 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34398 if test "x$test_cygdrive_prefix" = x; then 34399 # As a simple fix, exclude /usr/bin since it's not a real path. 34400 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34401 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34402 # a path prefixed by /cygdrive for fixpath to work. 34403 new_path="$CYGWIN_ROOT_PATH$input_path" 34404 fi 34405 fi 34406 34407 # remove trailing .exe if any 34408 new_path="${new_path/%.exe/}" 34409 34410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34411 34412 # First separate the path from the arguments. This will split at the first 34413 # space. 34414 complete="$MT" 34415 path="${complete%% *}" 34416 tmp="$complete EOL" 34417 arguments="${tmp#* }" 34418 34419 # Input might be given as Windows format, start by converting to 34420 # unix format. 34421 new_path="$path" 34422 34423 windows_path="$new_path" 34424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34425 unix_path=`$CYGPATH -u "$windows_path"` 34426 new_path="$unix_path" 34427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34428 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34429 new_path="$unix_path" 34430 fi 34431 34432 34433 # Now try to locate executable using which 34434 new_path=`$WHICH "$new_path" 2> /dev/null` 34435 34436 if test "x$new_path" = x; then 34437 # Oops. Which didn't find the executable. 34438 # The splitting of arguments from the executable at a space might have been incorrect, 34439 # since paths with space are more likely in Windows. Give it another try with the whole 34440 # argument. 34441 path="$complete" 34442 arguments="EOL" 34443 new_path="$path" 34444 34445 windows_path="$new_path" 34446 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34447 unix_path=`$CYGPATH -u "$windows_path"` 34448 new_path="$unix_path" 34449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34450 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34451 new_path="$unix_path" 34452 fi 34453 34454 34455 new_path=`$WHICH "$new_path" 2> /dev/null` 34456 # bat and cmd files are not always considered executable in MSYS causing which 34457 # to not find them 34458 if test "x$new_path" = x \ 34459 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34460 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34461 new_path="$path" 34462 34463 windows_path="$new_path" 34464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34465 unix_path=`$CYGPATH -u "$windows_path"` 34466 new_path="$unix_path" 34467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34469 new_path="$unix_path" 34470 fi 34471 34472 fi 34473 34474 if test "x$new_path" = x; then 34475 # It's still not found. Now this is an unrecoverable error. 34476 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34477 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34478 has_space=`$ECHO "$complete" | $GREP " "` 34479 if test "x$has_space" != x; then 34480 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34481 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34482 fi 34483 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34484 fi 34485 fi 34486 34487 # Now new_path has a complete unix path to the binary 34488 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34489 # Keep paths in /bin as-is, but remove trailing .exe if any 34490 new_path="${new_path/%.exe/}" 34491 # Do not save /bin paths to all_fixpath_prefixes! 34492 else 34493 # Not in mixed or Windows style, start by that. 34494 new_path=`cmd //c echo $new_path` 34495 34496 input_path="$new_path" 34497 # Check if we need to convert this using DOS-style short mode. If the path 34498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34499 # take no chances and rewrite it. 34500 # Note: m4 eats our [], so we need to use [ and ] instead. 34501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34502 if test "x$has_forbidden_chars" != x; then 34503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34504 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34505 fi 34506 34507 # Output is in $new_path 34508 34509 windows_path="$new_path" 34510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34511 unix_path=`$CYGPATH -u "$windows_path"` 34512 new_path="$unix_path" 34513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34514 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34515 new_path="$unix_path" 34516 fi 34517 34518 # remove trailing .exe if any 34519 new_path="${new_path/%.exe/}" 34520 34521 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34522 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34523 fi 34524 34525 else 34526 # We're on a unix platform. Hooray! :) 34527 # First separate the path from the arguments. This will split at the first 34528 # space. 34529 complete="$MT" 34530 path="${complete%% *}" 34531 tmp="$complete EOL" 34532 arguments="${tmp#* }" 34533 34534 # Cannot rely on the command "which" here since it doesn't always work. 34535 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34536 if test -z "$is_absolute_path"; then 34537 # Path to executable is not absolute. Find it. 34538 IFS_save="$IFS" 34539 IFS=: 34540 for p in $PATH; do 34541 if test -f "$p/$path" && test -x "$p/$path"; then 34542 new_path="$p/$path" 34543 break 34544 fi 34545 done 34546 IFS="$IFS_save" 34547 else 34548 # This is an absolute path, we can use it without further modifications. 34549 new_path="$path" 34550 fi 34551 34552 if test "x$new_path" = x; then 34553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34554 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34555 has_space=`$ECHO "$complete" | $GREP " "` 34556 if test "x$has_space" != x; then 34557 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34558 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34559 fi 34560 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34561 fi 34562 fi 34563 34564 # Now join together the path and the arguments once again 34565 if test "x$arguments" != xEOL; then 34566 new_complete="$new_path ${arguments% *}" 34567 else 34568 new_complete="$new_path" 34569 fi 34570 34571 if test "x$complete" != "x$new_complete"; then 34572 MT="$new_complete" 34573 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34574 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34575 fi 34576 34577 # Setup the resource compiler (RC) 34578 # Extract the first word of "rc", so it can be a program name with args. 34579 set dummy rc; ac_word=$2 34580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34581 $as_echo_n "checking for $ac_word... " >&6; } 34582 if ${ac_cv_prog_RC+:} false; then : 34583 $as_echo_n "(cached) " >&6 34584 else 34585 if test -n "$RC"; then 34586 ac_cv_prog_RC="$RC" # Let the user override the test. 34587 else 34588 ac_prog_rejected=no 34589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34590 for as_dir in $PATH 34591 do 34592 IFS=$as_save_IFS 34593 test -z "$as_dir" && as_dir=. 34594 for ac_exec_ext in '' $ac_executable_extensions; do 34595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34597 ac_prog_rejected=yes 34598 continue 34599 fi 34600 ac_cv_prog_RC="rc" 34601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34602 break 2 34603 fi 34604 done 34605 done 34606 IFS=$as_save_IFS 34607 34608 if test $ac_prog_rejected = yes; then 34609 # We found a bogon in the path, so make sure we never use it. 34610 set dummy $ac_cv_prog_RC 34611 shift 34612 if test $# != 0; then 34613 # We chose a different compiler from the bogus one. 34614 # However, it has the same basename, so the bogon will be chosen 34615 # first if we set RC to just the basename; use the full file name. 34616 shift 34617 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34618 fi 34619 fi 34620 fi 34621 fi 34622 RC=$ac_cv_prog_RC 34623 if test -n "$RC"; then 34624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34625 $as_echo "$RC" >&6; } 34626 else 34627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34628 $as_echo "no" >&6; } 34629 fi 34630 34631 34632 34633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34634 34635 # First separate the path from the arguments. This will split at the first 34636 # space. 34637 complete="$RC" 34638 path="${complete%% *}" 34639 tmp="$complete EOL" 34640 arguments="${tmp#* }" 34641 34642 # Input might be given as Windows format, start by converting to 34643 # unix format. 34644 new_path=`$CYGPATH -u "$path"` 34645 34646 # Now try to locate executable using which 34647 new_path=`$WHICH "$new_path" 2> /dev/null` 34648 # bat and cmd files are not always considered executable in cygwin causing which 34649 # to not find them 34650 if test "x$new_path" = x \ 34651 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34652 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34653 new_path=`$CYGPATH -u "$path"` 34654 fi 34655 if test "x$new_path" = x; then 34656 # Oops. Which didn't find the executable. 34657 # The splitting of arguments from the executable at a space might have been incorrect, 34658 # since paths with space are more likely in Windows. Give it another try with the whole 34659 # argument. 34660 path="$complete" 34661 arguments="EOL" 34662 new_path=`$CYGPATH -u "$path"` 34663 new_path=`$WHICH "$new_path" 2> /dev/null` 34664 # bat and cmd files are not always considered executable in cygwin causing which 34665 # to not find them 34666 if test "x$new_path" = x \ 34667 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34668 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34669 new_path=`$CYGPATH -u "$path"` 34670 fi 34671 if test "x$new_path" = x; then 34672 # It's still not found. Now this is an unrecoverable error. 34673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34674 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34675 has_space=`$ECHO "$complete" | $GREP " "` 34676 if test "x$has_space" != x; then 34677 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34678 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34679 fi 34680 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34681 fi 34682 fi 34683 34684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34687 # "foo.exe" is OK but "foo" is an error. 34688 # 34689 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34690 # It is also a way to make sure we got the proper file name for the real test later on. 34691 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34692 if test "x$test_shortpath" = x; then 34693 # Short path failed, file does not exist as specified. 34694 # Try adding .exe or .cmd 34695 if test -f "${new_path}.exe"; then 34696 input_to_shortpath="${new_path}.exe" 34697 elif test -f "${new_path}.cmd"; then 34698 input_to_shortpath="${new_path}.cmd" 34699 else 34700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34701 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34702 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34703 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34704 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34705 fi 34706 else 34707 input_to_shortpath="$new_path" 34708 fi 34709 34710 # Call helper function which possibly converts this using DOS-style short mode. 34711 # If so, the updated path is stored in $new_path. 34712 new_path="$input_to_shortpath" 34713 34714 input_path="$input_to_shortpath" 34715 # Check if we need to convert this using DOS-style short mode. If the path 34716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34717 # take no chances and rewrite it. 34718 # Note: m4 eats our [], so we need to use [ and ] instead. 34719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34720 if test "x$has_forbidden_chars" != x; then 34721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34722 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34723 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34724 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34725 # Going to short mode and back again did indeed matter. Since short mode is 34726 # case insensitive, let's make it lowercase to improve readability. 34727 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34728 # Now convert it back to Unix-stile (cygpath) 34729 input_path=`$CYGPATH -u "$shortmode_path"` 34730 new_path="$input_path" 34731 fi 34732 fi 34733 34734 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34735 if test "x$test_cygdrive_prefix" = x; then 34736 # As a simple fix, exclude /usr/bin since it's not a real path. 34737 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34738 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34739 # a path prefixed by /cygdrive for fixpath to work. 34740 new_path="$CYGWIN_ROOT_PATH$input_path" 34741 fi 34742 fi 34743 34744 # remove trailing .exe if any 34745 new_path="${new_path/%.exe/}" 34746 34747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34748 34749 # First separate the path from the arguments. This will split at the first 34750 # space. 34751 complete="$RC" 34752 path="${complete%% *}" 34753 tmp="$complete EOL" 34754 arguments="${tmp#* }" 34755 34756 # Input might be given as Windows format, start by converting to 34757 # unix format. 34758 new_path="$path" 34759 34760 windows_path="$new_path" 34761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34762 unix_path=`$CYGPATH -u "$windows_path"` 34763 new_path="$unix_path" 34764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34766 new_path="$unix_path" 34767 fi 34768 34769 34770 # Now try to locate executable using which 34771 new_path=`$WHICH "$new_path" 2> /dev/null` 34772 34773 if test "x$new_path" = x; then 34774 # Oops. Which didn't find the executable. 34775 # The splitting of arguments from the executable at a space might have been incorrect, 34776 # since paths with space are more likely in Windows. Give it another try with the whole 34777 # argument. 34778 path="$complete" 34779 arguments="EOL" 34780 new_path="$path" 34781 34782 windows_path="$new_path" 34783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34784 unix_path=`$CYGPATH -u "$windows_path"` 34785 new_path="$unix_path" 34786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34788 new_path="$unix_path" 34789 fi 34790 34791 34792 new_path=`$WHICH "$new_path" 2> /dev/null` 34793 # bat and cmd files are not always considered executable in MSYS 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="$path" 34799 34800 windows_path="$new_path" 34801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34802 unix_path=`$CYGPATH -u "$windows_path"` 34803 new_path="$unix_path" 34804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34806 new_path="$unix_path" 34807 fi 34808 34809 fi 34810 34811 if test "x$new_path" = x; then 34812 # It's still not found. Now this is an unrecoverable error. 34813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34814 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34815 has_space=`$ECHO "$complete" | $GREP " "` 34816 if test "x$has_space" != x; then 34817 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34818 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34819 fi 34820 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34821 fi 34822 fi 34823 34824 # Now new_path has a complete unix path to the binary 34825 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34826 # Keep paths in /bin as-is, but remove trailing .exe if any 34827 new_path="${new_path/%.exe/}" 34828 # Do not save /bin paths to all_fixpath_prefixes! 34829 else 34830 # Not in mixed or Windows style, start by that. 34831 new_path=`cmd //c echo $new_path` 34832 34833 input_path="$new_path" 34834 # Check if we need to convert this using DOS-style short mode. If the path 34835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34836 # take no chances and rewrite it. 34837 # Note: m4 eats our [], so we need to use [ and ] instead. 34838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34839 if test "x$has_forbidden_chars" != x; then 34840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34841 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34842 fi 34843 34844 # Output is in $new_path 34845 34846 windows_path="$new_path" 34847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34848 unix_path=`$CYGPATH -u "$windows_path"` 34849 new_path="$unix_path" 34850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34852 new_path="$unix_path" 34853 fi 34854 34855 # remove trailing .exe if any 34856 new_path="${new_path/%.exe/}" 34857 34858 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34859 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34860 fi 34861 34862 else 34863 # We're on a unix platform. Hooray! :) 34864 # First separate the path from the arguments. This will split at the first 34865 # space. 34866 complete="$RC" 34867 path="${complete%% *}" 34868 tmp="$complete EOL" 34869 arguments="${tmp#* }" 34870 34871 # Cannot rely on the command "which" here since it doesn't always work. 34872 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34873 if test -z "$is_absolute_path"; then 34874 # Path to executable is not absolute. Find it. 34875 IFS_save="$IFS" 34876 IFS=: 34877 for p in $PATH; do 34878 if test -f "$p/$path" && test -x "$p/$path"; then 34879 new_path="$p/$path" 34880 break 34881 fi 34882 done 34883 IFS="$IFS_save" 34884 else 34885 # This is an absolute path, we can use it without further modifications. 34886 new_path="$path" 34887 fi 34888 34889 if test "x$new_path" = x; then 34890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34891 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34892 has_space=`$ECHO "$complete" | $GREP " "` 34893 if test "x$has_space" != x; then 34894 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34895 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34896 fi 34897 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34898 fi 34899 fi 34900 34901 # Now join together the path and the arguments once again 34902 if test "x$arguments" != xEOL; then 34903 new_complete="$new_path ${arguments% *}" 34904 else 34905 new_complete="$new_path" 34906 fi 34907 34908 if test "x$complete" != "x$new_complete"; then 34909 RC="$new_complete" 34910 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34911 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34912 fi 34913 34914 # Extract the first word of "dumpbin", so it can be a program name with args. 34915 set dummy dumpbin; ac_word=$2 34916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34917 $as_echo_n "checking for $ac_word... " >&6; } 34918 if ${ac_cv_prog_DUMPBIN+:} false; then : 34919 $as_echo_n "(cached) " >&6 34920 else 34921 if test -n "$DUMPBIN"; then 34922 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34923 else 34924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34925 for as_dir in $PATH 34926 do 34927 IFS=$as_save_IFS 34928 test -z "$as_dir" && as_dir=. 34929 for ac_exec_ext in '' $ac_executable_extensions; do 34930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34931 ac_cv_prog_DUMPBIN="dumpbin" 34932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34933 break 2 34934 fi 34935 done 34936 done 34937 IFS=$as_save_IFS 34938 34939 fi 34940 fi 34941 DUMPBIN=$ac_cv_prog_DUMPBIN 34942 if test -n "$DUMPBIN"; then 34943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34944 $as_echo "$DUMPBIN" >&6; } 34945 else 34946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34947 $as_echo "no" >&6; } 34948 fi 34949 34950 34951 34952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34953 34954 # First separate the path from the arguments. This will split at the first 34955 # space. 34956 complete="$DUMPBIN" 34957 path="${complete%% *}" 34958 tmp="$complete EOL" 34959 arguments="${tmp#* }" 34960 34961 # Input might be given as Windows format, start by converting to 34962 # unix format. 34963 new_path=`$CYGPATH -u "$path"` 34964 34965 # Now try to locate executable using which 34966 new_path=`$WHICH "$new_path" 2> /dev/null` 34967 # bat and cmd files are not always considered executable in cygwin causing which 34968 # to not find them 34969 if test "x$new_path" = x \ 34970 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34971 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34972 new_path=`$CYGPATH -u "$path"` 34973 fi 34974 if test "x$new_path" = x; then 34975 # Oops. Which didn't find the executable. 34976 # The splitting of arguments from the executable at a space might have been incorrect, 34977 # since paths with space are more likely in Windows. Give it another try with the whole 34978 # argument. 34979 path="$complete" 34980 arguments="EOL" 34981 new_path=`$CYGPATH -u "$path"` 34982 new_path=`$WHICH "$new_path" 2> /dev/null` 34983 # bat and cmd files are not always considered executable in cygwin causing which 34984 # to not find them 34985 if test "x$new_path" = x \ 34986 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34987 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34988 new_path=`$CYGPATH -u "$path"` 34989 fi 34990 if test "x$new_path" = x; then 34991 # It's still not found. Now this is an unrecoverable error. 34992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34993 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34994 has_space=`$ECHO "$complete" | $GREP " "` 34995 if test "x$has_space" != x; then 34996 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34997 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34998 fi 34999 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35000 fi 35001 fi 35002 35003 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35004 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35005 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35006 # "foo.exe" is OK but "foo" is an error. 35007 # 35008 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35009 # It is also a way to make sure we got the proper file name for the real test later on. 35010 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35011 if test "x$test_shortpath" = x; then 35012 # Short path failed, file does not exist as specified. 35013 # Try adding .exe or .cmd 35014 if test -f "${new_path}.exe"; then 35015 input_to_shortpath="${new_path}.exe" 35016 elif test -f "${new_path}.cmd"; then 35017 input_to_shortpath="${new_path}.cmd" 35018 else 35019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 35020 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 35021 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35022 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35023 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35024 fi 35025 else 35026 input_to_shortpath="$new_path" 35027 fi 35028 35029 # Call helper function which possibly converts this using DOS-style short mode. 35030 # If so, the updated path is stored in $new_path. 35031 new_path="$input_to_shortpath" 35032 35033 input_path="$input_to_shortpath" 35034 # Check if we need to convert this using DOS-style short mode. If the path 35035 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35036 # take no chances and rewrite it. 35037 # Note: m4 eats our [], so we need to use [ and ] instead. 35038 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35039 if test "x$has_forbidden_chars" != x; then 35040 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35041 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35042 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35043 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35044 # Going to short mode and back again did indeed matter. Since short mode is 35045 # case insensitive, let's make it lowercase to improve readability. 35046 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35047 # Now convert it back to Unix-stile (cygpath) 35048 input_path=`$CYGPATH -u "$shortmode_path"` 35049 new_path="$input_path" 35050 fi 35051 fi 35052 35053 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35054 if test "x$test_cygdrive_prefix" = x; then 35055 # As a simple fix, exclude /usr/bin since it's not a real path. 35056 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35057 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35058 # a path prefixed by /cygdrive for fixpath to work. 35059 new_path="$CYGWIN_ROOT_PATH$input_path" 35060 fi 35061 fi 35062 35063 # remove trailing .exe if any 35064 new_path="${new_path/%.exe/}" 35065 35066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35067 35068 # First separate the path from the arguments. This will split at the first 35069 # space. 35070 complete="$DUMPBIN" 35071 path="${complete%% *}" 35072 tmp="$complete EOL" 35073 arguments="${tmp#* }" 35074 35075 # Input might be given as Windows format, start by converting to 35076 # unix format. 35077 new_path="$path" 35078 35079 windows_path="$new_path" 35080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35081 unix_path=`$CYGPATH -u "$windows_path"` 35082 new_path="$unix_path" 35083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35084 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35085 new_path="$unix_path" 35086 fi 35087 35088 35089 # Now try to locate executable using which 35090 new_path=`$WHICH "$new_path" 2> /dev/null` 35091 35092 if test "x$new_path" = x; then 35093 # Oops. Which didn't find the executable. 35094 # The splitting of arguments from the executable at a space might have been incorrect, 35095 # since paths with space are more likely in Windows. Give it another try with the whole 35096 # argument. 35097 path="$complete" 35098 arguments="EOL" 35099 new_path="$path" 35100 35101 windows_path="$new_path" 35102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35103 unix_path=`$CYGPATH -u "$windows_path"` 35104 new_path="$unix_path" 35105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35106 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35107 new_path="$unix_path" 35108 fi 35109 35110 35111 new_path=`$WHICH "$new_path" 2> /dev/null` 35112 # bat and cmd files are not always considered executable in MSYS causing which 35113 # to not find them 35114 if test "x$new_path" = x \ 35115 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35116 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35117 new_path="$path" 35118 35119 windows_path="$new_path" 35120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35121 unix_path=`$CYGPATH -u "$windows_path"` 35122 new_path="$unix_path" 35123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35124 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35125 new_path="$unix_path" 35126 fi 35127 35128 fi 35129 35130 if test "x$new_path" = x; then 35131 # It's still not found. Now this is an unrecoverable error. 35132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35133 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35134 has_space=`$ECHO "$complete" | $GREP " "` 35135 if test "x$has_space" != x; then 35136 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35137 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35138 fi 35139 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35140 fi 35141 fi 35142 35143 # Now new_path has a complete unix path to the binary 35144 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35145 # Keep paths in /bin as-is, but remove trailing .exe if any 35146 new_path="${new_path/%.exe/}" 35147 # Do not save /bin paths to all_fixpath_prefixes! 35148 else 35149 # Not in mixed or Windows style, start by that. 35150 new_path=`cmd //c echo $new_path` 35151 35152 input_path="$new_path" 35153 # Check if we need to convert this using DOS-style short mode. If the path 35154 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35155 # take no chances and rewrite it. 35156 # Note: m4 eats our [], so we need to use [ and ] instead. 35157 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35158 if test "x$has_forbidden_chars" != x; then 35159 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35160 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35161 fi 35162 35163 # Output is in $new_path 35164 35165 windows_path="$new_path" 35166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35167 unix_path=`$CYGPATH -u "$windows_path"` 35168 new_path="$unix_path" 35169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35171 new_path="$unix_path" 35172 fi 35173 35174 # remove trailing .exe if any 35175 new_path="${new_path/%.exe/}" 35176 35177 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35178 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35179 fi 35180 35181 else 35182 # We're on a unix platform. Hooray! :) 35183 # First separate the path from the arguments. This will split at the first 35184 # space. 35185 complete="$DUMPBIN" 35186 path="${complete%% *}" 35187 tmp="$complete EOL" 35188 arguments="${tmp#* }" 35189 35190 # Cannot rely on the command "which" here since it doesn't always work. 35191 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35192 if test -z "$is_absolute_path"; then 35193 # Path to executable is not absolute. Find it. 35194 IFS_save="$IFS" 35195 IFS=: 35196 for p in $PATH; do 35197 if test -f "$p/$path" && test -x "$p/$path"; then 35198 new_path="$p/$path" 35199 break 35200 fi 35201 done 35202 IFS="$IFS_save" 35203 else 35204 # This is an absolute path, we can use it without further modifications. 35205 new_path="$path" 35206 fi 35207 35208 if test "x$new_path" = x; then 35209 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35210 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35211 has_space=`$ECHO "$complete" | $GREP " "` 35212 if test "x$has_space" != x; then 35213 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35214 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35215 fi 35216 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35217 fi 35218 fi 35219 35220 # Now join together the path and the arguments once again 35221 if test "x$arguments" != xEOL; then 35222 new_complete="$new_path ${arguments% *}" 35223 else 35224 new_complete="$new_path" 35225 fi 35226 35227 if test "x$complete" != "x$new_complete"; then 35228 DUMPBIN="$new_complete" 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35230 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35231 fi 35232 35233 # We need to check for 'msbuild.exe' because at the place where we expect to 35234 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35235 # won't find the 'msbuild.exe' executable in that case (and the 35236 # 'ac_executable_extensions' is unusable due to performance reasons). 35237 # Notice that we intentionally don't fix up the path to MSBUILD because we 35238 # will call it in a DOS shell during freetype detection on Windows (see 35239 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35240 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35241 set dummy msbuild.exe; ac_word=$2 35242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35243 $as_echo_n "checking for $ac_word... " >&6; } 35244 if ${ac_cv_prog_MSBUILD+:} false; then : 35245 $as_echo_n "(cached) " >&6 35246 else 35247 if test -n "$MSBUILD"; then 35248 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35249 else 35250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35251 for as_dir in $PATH 35252 do 35253 IFS=$as_save_IFS 35254 test -z "$as_dir" && as_dir=. 35255 for ac_exec_ext in '' $ac_executable_extensions; do 35256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35257 ac_cv_prog_MSBUILD="msbuild.exe" 35258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35259 break 2 35260 fi 35261 done 35262 done 35263 IFS=$as_save_IFS 35264 35265 fi 35266 fi 35267 MSBUILD=$ac_cv_prog_MSBUILD 35268 if test -n "$MSBUILD"; then 35269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35270 $as_echo "$MSBUILD" >&6; } 35271 else 35272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35273 $as_echo "no" >&6; } 35274 fi 35275 35276 35277 fi 35278 35279 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35280 35281 35282 # Publish this variable in the help. 35283 35284 35285 if test "x$STRIP" = x; then 35286 # The variable is not set by user, try to locate tool using the code snippet 35287 for ac_prog in strip 35288 do 35289 # Extract the first word of "$ac_prog", so it can be a program name with args. 35290 set dummy $ac_prog; ac_word=$2 35291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35292 $as_echo_n "checking for $ac_word... " >&6; } 35293 if ${ac_cv_path_STRIP+:} false; then : 35294 $as_echo_n "(cached) " >&6 35295 else 35296 case $STRIP in 35297 [\\/]* | ?:[\\/]*) 35298 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35299 ;; 35300 *) 35301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35302 for as_dir in $PATH 35303 do 35304 IFS=$as_save_IFS 35305 test -z "$as_dir" && as_dir=. 35306 for ac_exec_ext in '' $ac_executable_extensions; do 35307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35308 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35310 break 2 35311 fi 35312 done 35313 done 35314 IFS=$as_save_IFS 35315 35316 ;; 35317 esac 35318 fi 35319 STRIP=$ac_cv_path_STRIP 35320 if test -n "$STRIP"; then 35321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35322 $as_echo "$STRIP" >&6; } 35323 else 35324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35325 $as_echo "no" >&6; } 35326 fi 35327 35328 35329 test -n "$STRIP" && break 35330 done 35331 35332 else 35333 # The variable is set, but is it from the command line or the environment? 35334 35335 # Try to remove the string !STRIP! from our list. 35336 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35337 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35338 # If it failed, the variable was not from the command line. Ignore it, 35339 # but warn the user (except for BASH, which is always set by the calling BASH). 35340 if test "xSTRIP" != xBASH; then 35341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35342 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35343 fi 35344 # Try to locate tool using the code snippet 35345 for ac_prog in strip 35346 do 35347 # Extract the first word of "$ac_prog", so it can be a program name with args. 35348 set dummy $ac_prog; ac_word=$2 35349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35350 $as_echo_n "checking for $ac_word... " >&6; } 35351 if ${ac_cv_path_STRIP+:} false; then : 35352 $as_echo_n "(cached) " >&6 35353 else 35354 case $STRIP in 35355 [\\/]* | ?:[\\/]*) 35356 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35357 ;; 35358 *) 35359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35360 for as_dir in $PATH 35361 do 35362 IFS=$as_save_IFS 35363 test -z "$as_dir" && as_dir=. 35364 for ac_exec_ext in '' $ac_executable_extensions; do 35365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35366 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35368 break 2 35369 fi 35370 done 35371 done 35372 IFS=$as_save_IFS 35373 35374 ;; 35375 esac 35376 fi 35377 STRIP=$ac_cv_path_STRIP 35378 if test -n "$STRIP"; then 35379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35380 $as_echo "$STRIP" >&6; } 35381 else 35382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35383 $as_echo "no" >&6; } 35384 fi 35385 35386 35387 test -n "$STRIP" && break 35388 done 35389 35390 else 35391 # If it succeeded, then it was overridden by the user. We will use it 35392 # for the tool. 35393 35394 # First remove it from the list of overridden variables, so we can test 35395 # for unknown variables in the end. 35396 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35397 35398 # Check if the provided tool contains a complete path. 35399 tool_specified="$STRIP" 35400 tool_basename="${tool_specified##*/}" 35401 if test "x$tool_basename" = "x$tool_specified"; then 35402 # A command without a complete path is provided, search $PATH. 35403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35404 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35405 # Extract the first word of "$tool_basename", so it can be a program name with args. 35406 set dummy $tool_basename; ac_word=$2 35407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35408 $as_echo_n "checking for $ac_word... " >&6; } 35409 if ${ac_cv_path_STRIP+:} false; then : 35410 $as_echo_n "(cached) " >&6 35411 else 35412 case $STRIP in 35413 [\\/]* | ?:[\\/]*) 35414 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35415 ;; 35416 *) 35417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35418 for as_dir in $PATH 35419 do 35420 IFS=$as_save_IFS 35421 test -z "$as_dir" && as_dir=. 35422 for ac_exec_ext in '' $ac_executable_extensions; do 35423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35424 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35426 break 2 35427 fi 35428 done 35429 done 35430 IFS=$as_save_IFS 35431 35432 ;; 35433 esac 35434 fi 35435 STRIP=$ac_cv_path_STRIP 35436 if test -n "$STRIP"; then 35437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35438 $as_echo "$STRIP" >&6; } 35439 else 35440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35441 $as_echo "no" >&6; } 35442 fi 35443 35444 35445 if test "x$STRIP" = x; then 35446 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35447 fi 35448 else 35449 # Otherwise we believe it is a complete path. Use it as it is. 35450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35451 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35453 $as_echo_n "checking for STRIP... " >&6; } 35454 if test ! -x "$tool_specified"; then 35455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35456 $as_echo "not found" >&6; } 35457 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35458 fi 35459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35460 $as_echo "$tool_specified" >&6; } 35461 fi 35462 fi 35463 fi 35464 35465 35466 35467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35468 35469 # First separate the path from the arguments. This will split at the first 35470 # space. 35471 complete="$STRIP" 35472 path="${complete%% *}" 35473 tmp="$complete EOL" 35474 arguments="${tmp#* }" 35475 35476 # Input might be given as Windows format, start by converting to 35477 # unix format. 35478 new_path=`$CYGPATH -u "$path"` 35479 35480 # Now try to locate executable using which 35481 new_path=`$WHICH "$new_path" 2> /dev/null` 35482 # bat and cmd files are not always considered executable in cygwin causing which 35483 # to not find them 35484 if test "x$new_path" = x \ 35485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35487 new_path=`$CYGPATH -u "$path"` 35488 fi 35489 if test "x$new_path" = x; then 35490 # Oops. Which didn't find the executable. 35491 # The splitting of arguments from the executable at a space might have been incorrect, 35492 # since paths with space are more likely in Windows. Give it another try with the whole 35493 # argument. 35494 path="$complete" 35495 arguments="EOL" 35496 new_path=`$CYGPATH -u "$path"` 35497 new_path=`$WHICH "$new_path" 2> /dev/null` 35498 # bat and cmd files are not always considered executable in cygwin causing which 35499 # to not find them 35500 if test "x$new_path" = x \ 35501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35503 new_path=`$CYGPATH -u "$path"` 35504 fi 35505 if test "x$new_path" = x; then 35506 # It's still not found. Now this is an unrecoverable error. 35507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35508 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35509 has_space=`$ECHO "$complete" | $GREP " "` 35510 if test "x$has_space" != x; then 35511 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35512 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35513 fi 35514 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35515 fi 35516 fi 35517 35518 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35519 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35520 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35521 # "foo.exe" is OK but "foo" is an error. 35522 # 35523 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35524 # It is also a way to make sure we got the proper file name for the real test later on. 35525 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35526 if test "x$test_shortpath" = x; then 35527 # Short path failed, file does not exist as specified. 35528 # Try adding .exe or .cmd 35529 if test -f "${new_path}.exe"; then 35530 input_to_shortpath="${new_path}.exe" 35531 elif test -f "${new_path}.cmd"; then 35532 input_to_shortpath="${new_path}.cmd" 35533 else 35534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35535 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35536 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35537 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35538 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35539 fi 35540 else 35541 input_to_shortpath="$new_path" 35542 fi 35543 35544 # Call helper function which possibly converts this using DOS-style short mode. 35545 # If so, the updated path is stored in $new_path. 35546 new_path="$input_to_shortpath" 35547 35548 input_path="$input_to_shortpath" 35549 # Check if we need to convert this using DOS-style short mode. If the path 35550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35551 # take no chances and rewrite it. 35552 # Note: m4 eats our [], so we need to use [ and ] instead. 35553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35554 if test "x$has_forbidden_chars" != x; then 35555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35559 # Going to short mode and back again did indeed matter. Since short mode is 35560 # case insensitive, let's make it lowercase to improve readability. 35561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35562 # Now convert it back to Unix-stile (cygpath) 35563 input_path=`$CYGPATH -u "$shortmode_path"` 35564 new_path="$input_path" 35565 fi 35566 fi 35567 35568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35569 if test "x$test_cygdrive_prefix" = x; then 35570 # As a simple fix, exclude /usr/bin since it's not a real path. 35571 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35573 # a path prefixed by /cygdrive for fixpath to work. 35574 new_path="$CYGWIN_ROOT_PATH$input_path" 35575 fi 35576 fi 35577 35578 # remove trailing .exe if any 35579 new_path="${new_path/%.exe/}" 35580 35581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35582 35583 # First separate the path from the arguments. This will split at the first 35584 # space. 35585 complete="$STRIP" 35586 path="${complete%% *}" 35587 tmp="$complete EOL" 35588 arguments="${tmp#* }" 35589 35590 # Input might be given as Windows format, start by converting to 35591 # unix format. 35592 new_path="$path" 35593 35594 windows_path="$new_path" 35595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35596 unix_path=`$CYGPATH -u "$windows_path"` 35597 new_path="$unix_path" 35598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35600 new_path="$unix_path" 35601 fi 35602 35603 35604 # Now try to locate executable using which 35605 new_path=`$WHICH "$new_path" 2> /dev/null` 35606 35607 if test "x$new_path" = x; then 35608 # Oops. Which didn't find the executable. 35609 # The splitting of arguments from the executable at a space might have been incorrect, 35610 # since paths with space are more likely in Windows. Give it another try with the whole 35611 # argument. 35612 path="$complete" 35613 arguments="EOL" 35614 new_path="$path" 35615 35616 windows_path="$new_path" 35617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35618 unix_path=`$CYGPATH -u "$windows_path"` 35619 new_path="$unix_path" 35620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35622 new_path="$unix_path" 35623 fi 35624 35625 35626 new_path=`$WHICH "$new_path" 2> /dev/null` 35627 # bat and cmd files are not always considered executable in MSYS causing which 35628 # to not find them 35629 if test "x$new_path" = x \ 35630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35632 new_path="$path" 35633 35634 windows_path="$new_path" 35635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35636 unix_path=`$CYGPATH -u "$windows_path"` 35637 new_path="$unix_path" 35638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35640 new_path="$unix_path" 35641 fi 35642 35643 fi 35644 35645 if test "x$new_path" = x; then 35646 # It's still not found. Now this is an unrecoverable error. 35647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35648 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35649 has_space=`$ECHO "$complete" | $GREP " "` 35650 if test "x$has_space" != x; then 35651 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35653 fi 35654 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35655 fi 35656 fi 35657 35658 # Now new_path has a complete unix path to the binary 35659 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35660 # Keep paths in /bin as-is, but remove trailing .exe if any 35661 new_path="${new_path/%.exe/}" 35662 # Do not save /bin paths to all_fixpath_prefixes! 35663 else 35664 # Not in mixed or Windows style, start by that. 35665 new_path=`cmd //c echo $new_path` 35666 35667 input_path="$new_path" 35668 # Check if we need to convert this using DOS-style short mode. If the path 35669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35670 # take no chances and rewrite it. 35671 # Note: m4 eats our [], so we need to use [ and ] instead. 35672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35673 if test "x$has_forbidden_chars" != x; then 35674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35675 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35676 fi 35677 35678 # Output is in $new_path 35679 35680 windows_path="$new_path" 35681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35682 unix_path=`$CYGPATH -u "$windows_path"` 35683 new_path="$unix_path" 35684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35686 new_path="$unix_path" 35687 fi 35688 35689 # remove trailing .exe if any 35690 new_path="${new_path/%.exe/}" 35691 35692 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35693 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35694 fi 35695 35696 else 35697 # We're on a unix platform. Hooray! :) 35698 # First separate the path from the arguments. This will split at the first 35699 # space. 35700 complete="$STRIP" 35701 path="${complete%% *}" 35702 tmp="$complete EOL" 35703 arguments="${tmp#* }" 35704 35705 # Cannot rely on the command "which" here since it doesn't always work. 35706 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35707 if test -z "$is_absolute_path"; then 35708 # Path to executable is not absolute. Find it. 35709 IFS_save="$IFS" 35710 IFS=: 35711 for p in $PATH; do 35712 if test -f "$p/$path" && test -x "$p/$path"; then 35713 new_path="$p/$path" 35714 break 35715 fi 35716 done 35717 IFS="$IFS_save" 35718 else 35719 # This is an absolute path, we can use it without further modifications. 35720 new_path="$path" 35721 fi 35722 35723 if test "x$new_path" = x; then 35724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35725 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35726 has_space=`$ECHO "$complete" | $GREP " "` 35727 if test "x$has_space" != x; then 35728 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35729 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35730 fi 35731 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35732 fi 35733 fi 35734 35735 # Now join together the path and the arguments once again 35736 if test "x$arguments" != xEOL; then 35737 new_complete="$new_path ${arguments% *}" 35738 else 35739 new_complete="$new_path" 35740 fi 35741 35742 if test "x$complete" != "x$new_complete"; then 35743 STRIP="$new_complete" 35744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35745 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35746 fi 35747 35748 35749 35750 # Publish this variable in the help. 35751 35752 35753 if test "x$NM" = x; then 35754 # The variable is not set by user, try to locate tool using the code snippet 35755 for ac_prog in nm 35756 do 35757 # Extract the first word of "$ac_prog", so it can be a program name with args. 35758 set dummy $ac_prog; ac_word=$2 35759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35760 $as_echo_n "checking for $ac_word... " >&6; } 35761 if ${ac_cv_path_NM+:} false; then : 35762 $as_echo_n "(cached) " >&6 35763 else 35764 case $NM in 35765 [\\/]* | ?:[\\/]*) 35766 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35767 ;; 35768 *) 35769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35770 for as_dir in $PATH 35771 do 35772 IFS=$as_save_IFS 35773 test -z "$as_dir" && as_dir=. 35774 for ac_exec_ext in '' $ac_executable_extensions; do 35775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35776 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35778 break 2 35779 fi 35780 done 35781 done 35782 IFS=$as_save_IFS 35783 35784 ;; 35785 esac 35786 fi 35787 NM=$ac_cv_path_NM 35788 if test -n "$NM"; then 35789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35790 $as_echo "$NM" >&6; } 35791 else 35792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35793 $as_echo "no" >&6; } 35794 fi 35795 35796 35797 test -n "$NM" && break 35798 done 35799 35800 else 35801 # The variable is set, but is it from the command line or the environment? 35802 35803 # Try to remove the string !NM! from our list. 35804 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35805 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35806 # If it failed, the variable was not from the command line. Ignore it, 35807 # but warn the user (except for BASH, which is always set by the calling BASH). 35808 if test "xNM" != xBASH; then 35809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35810 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35811 fi 35812 # Try to locate tool using the code snippet 35813 for ac_prog in nm 35814 do 35815 # Extract the first word of "$ac_prog", so it can be a program name with args. 35816 set dummy $ac_prog; ac_word=$2 35817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35818 $as_echo_n "checking for $ac_word... " >&6; } 35819 if ${ac_cv_path_NM+:} false; then : 35820 $as_echo_n "(cached) " >&6 35821 else 35822 case $NM in 35823 [\\/]* | ?:[\\/]*) 35824 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35825 ;; 35826 *) 35827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35828 for as_dir in $PATH 35829 do 35830 IFS=$as_save_IFS 35831 test -z "$as_dir" && as_dir=. 35832 for ac_exec_ext in '' $ac_executable_extensions; do 35833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35834 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35836 break 2 35837 fi 35838 done 35839 done 35840 IFS=$as_save_IFS 35841 35842 ;; 35843 esac 35844 fi 35845 NM=$ac_cv_path_NM 35846 if test -n "$NM"; then 35847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35848 $as_echo "$NM" >&6; } 35849 else 35850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35851 $as_echo "no" >&6; } 35852 fi 35853 35854 35855 test -n "$NM" && break 35856 done 35857 35858 else 35859 # If it succeeded, then it was overridden by the user. We will use it 35860 # for the tool. 35861 35862 # First remove it from the list of overridden variables, so we can test 35863 # for unknown variables in the end. 35864 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35865 35866 # Check if the provided tool contains a complete path. 35867 tool_specified="$NM" 35868 tool_basename="${tool_specified##*/}" 35869 if test "x$tool_basename" = "x$tool_specified"; then 35870 # A command without a complete path is provided, search $PATH. 35871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35872 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35873 # Extract the first word of "$tool_basename", so it can be a program name with args. 35874 set dummy $tool_basename; ac_word=$2 35875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35876 $as_echo_n "checking for $ac_word... " >&6; } 35877 if ${ac_cv_path_NM+:} false; then : 35878 $as_echo_n "(cached) " >&6 35879 else 35880 case $NM in 35881 [\\/]* | ?:[\\/]*) 35882 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35883 ;; 35884 *) 35885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35886 for as_dir in $PATH 35887 do 35888 IFS=$as_save_IFS 35889 test -z "$as_dir" && as_dir=. 35890 for ac_exec_ext in '' $ac_executable_extensions; do 35891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35892 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35894 break 2 35895 fi 35896 done 35897 done 35898 IFS=$as_save_IFS 35899 35900 ;; 35901 esac 35902 fi 35903 NM=$ac_cv_path_NM 35904 if test -n "$NM"; then 35905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35906 $as_echo "$NM" >&6; } 35907 else 35908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35909 $as_echo "no" >&6; } 35910 fi 35911 35912 35913 if test "x$NM" = x; then 35914 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35915 fi 35916 else 35917 # Otherwise we believe it is a complete path. Use it as it is. 35918 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35919 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35921 $as_echo_n "checking for NM... " >&6; } 35922 if test ! -x "$tool_specified"; then 35923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35924 $as_echo "not found" >&6; } 35925 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35926 fi 35927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35928 $as_echo "$tool_specified" >&6; } 35929 fi 35930 fi 35931 fi 35932 35933 35934 35935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35936 35937 # First separate the path from the arguments. This will split at the first 35938 # space. 35939 complete="$NM" 35940 path="${complete%% *}" 35941 tmp="$complete EOL" 35942 arguments="${tmp#* }" 35943 35944 # Input might be given as Windows format, start by converting to 35945 # unix format. 35946 new_path=`$CYGPATH -u "$path"` 35947 35948 # Now try to locate executable using which 35949 new_path=`$WHICH "$new_path" 2> /dev/null` 35950 # bat and cmd files are not always considered executable in cygwin causing which 35951 # to not find them 35952 if test "x$new_path" = x \ 35953 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35954 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35955 new_path=`$CYGPATH -u "$path"` 35956 fi 35957 if test "x$new_path" = x; then 35958 # Oops. Which didn't find the executable. 35959 # The splitting of arguments from the executable at a space might have been incorrect, 35960 # since paths with space are more likely in Windows. Give it another try with the whole 35961 # argument. 35962 path="$complete" 35963 arguments="EOL" 35964 new_path=`$CYGPATH -u "$path"` 35965 new_path=`$WHICH "$new_path" 2> /dev/null` 35966 # bat and cmd files are not always considered executable in cygwin causing which 35967 # to not find them 35968 if test "x$new_path" = x \ 35969 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35970 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35971 new_path=`$CYGPATH -u "$path"` 35972 fi 35973 if test "x$new_path" = x; then 35974 # It's still not found. Now this is an unrecoverable error. 35975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35976 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35977 has_space=`$ECHO "$complete" | $GREP " "` 35978 if test "x$has_space" != x; then 35979 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35980 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35981 fi 35982 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35983 fi 35984 fi 35985 35986 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35987 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35988 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35989 # "foo.exe" is OK but "foo" is an error. 35990 # 35991 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35992 # It is also a way to make sure we got the proper file name for the real test later on. 35993 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35994 if test "x$test_shortpath" = x; then 35995 # Short path failed, file does not exist as specified. 35996 # Try adding .exe or .cmd 35997 if test -f "${new_path}.exe"; then 35998 input_to_shortpath="${new_path}.exe" 35999 elif test -f "${new_path}.cmd"; then 36000 input_to_shortpath="${new_path}.cmd" 36001 else 36002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 36003 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 36004 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36005 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36006 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36007 fi 36008 else 36009 input_to_shortpath="$new_path" 36010 fi 36011 36012 # Call helper function which possibly converts this using DOS-style short mode. 36013 # If so, the updated path is stored in $new_path. 36014 new_path="$input_to_shortpath" 36015 36016 input_path="$input_to_shortpath" 36017 # Check if we need to convert this using DOS-style short mode. If the path 36018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36019 # take no chances and rewrite it. 36020 # Note: m4 eats our [], so we need to use [ and ] instead. 36021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36022 if test "x$has_forbidden_chars" != x; then 36023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36024 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36025 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36026 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36027 # Going to short mode and back again did indeed matter. Since short mode is 36028 # case insensitive, let's make it lowercase to improve readability. 36029 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36030 # Now convert it back to Unix-stile (cygpath) 36031 input_path=`$CYGPATH -u "$shortmode_path"` 36032 new_path="$input_path" 36033 fi 36034 fi 36035 36036 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36037 if test "x$test_cygdrive_prefix" = x; then 36038 # As a simple fix, exclude /usr/bin since it's not a real path. 36039 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36040 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36041 # a path prefixed by /cygdrive for fixpath to work. 36042 new_path="$CYGWIN_ROOT_PATH$input_path" 36043 fi 36044 fi 36045 36046 # remove trailing .exe if any 36047 new_path="${new_path/%.exe/}" 36048 36049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36050 36051 # First separate the path from the arguments. This will split at the first 36052 # space. 36053 complete="$NM" 36054 path="${complete%% *}" 36055 tmp="$complete EOL" 36056 arguments="${tmp#* }" 36057 36058 # Input might be given as Windows format, start by converting to 36059 # unix format. 36060 new_path="$path" 36061 36062 windows_path="$new_path" 36063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36064 unix_path=`$CYGPATH -u "$windows_path"` 36065 new_path="$unix_path" 36066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36068 new_path="$unix_path" 36069 fi 36070 36071 36072 # Now try to locate executable using which 36073 new_path=`$WHICH "$new_path" 2> /dev/null` 36074 36075 if test "x$new_path" = x; then 36076 # Oops. Which didn't find the executable. 36077 # The splitting of arguments from the executable at a space might have been incorrect, 36078 # since paths with space are more likely in Windows. Give it another try with the whole 36079 # argument. 36080 path="$complete" 36081 arguments="EOL" 36082 new_path="$path" 36083 36084 windows_path="$new_path" 36085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36086 unix_path=`$CYGPATH -u "$windows_path"` 36087 new_path="$unix_path" 36088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36089 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36090 new_path="$unix_path" 36091 fi 36092 36093 36094 new_path=`$WHICH "$new_path" 2> /dev/null` 36095 # bat and cmd files are not always considered executable in MSYS causing which 36096 # to not find them 36097 if test "x$new_path" = x \ 36098 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36099 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36100 new_path="$path" 36101 36102 windows_path="$new_path" 36103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36104 unix_path=`$CYGPATH -u "$windows_path"` 36105 new_path="$unix_path" 36106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36108 new_path="$unix_path" 36109 fi 36110 36111 fi 36112 36113 if test "x$new_path" = x; then 36114 # It's still not found. Now this is an unrecoverable error. 36115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36116 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36117 has_space=`$ECHO "$complete" | $GREP " "` 36118 if test "x$has_space" != x; then 36119 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36120 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36121 fi 36122 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36123 fi 36124 fi 36125 36126 # Now new_path has a complete unix path to the binary 36127 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36128 # Keep paths in /bin as-is, but remove trailing .exe if any 36129 new_path="${new_path/%.exe/}" 36130 # Do not save /bin paths to all_fixpath_prefixes! 36131 else 36132 # Not in mixed or Windows style, start by that. 36133 new_path=`cmd //c echo $new_path` 36134 36135 input_path="$new_path" 36136 # Check if we need to convert this using DOS-style short mode. If the path 36137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36138 # take no chances and rewrite it. 36139 # Note: m4 eats our [], so we need to use [ and ] instead. 36140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36141 if test "x$has_forbidden_chars" != x; then 36142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36143 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36144 fi 36145 36146 # Output is in $new_path 36147 36148 windows_path="$new_path" 36149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36150 unix_path=`$CYGPATH -u "$windows_path"` 36151 new_path="$unix_path" 36152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36153 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36154 new_path="$unix_path" 36155 fi 36156 36157 # remove trailing .exe if any 36158 new_path="${new_path/%.exe/}" 36159 36160 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36161 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36162 fi 36163 36164 else 36165 # We're on a unix platform. Hooray! :) 36166 # First separate the path from the arguments. This will split at the first 36167 # space. 36168 complete="$NM" 36169 path="${complete%% *}" 36170 tmp="$complete EOL" 36171 arguments="${tmp#* }" 36172 36173 # Cannot rely on the command "which" here since it doesn't always work. 36174 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36175 if test -z "$is_absolute_path"; then 36176 # Path to executable is not absolute. Find it. 36177 IFS_save="$IFS" 36178 IFS=: 36179 for p in $PATH; do 36180 if test -f "$p/$path" && test -x "$p/$path"; then 36181 new_path="$p/$path" 36182 break 36183 fi 36184 done 36185 IFS="$IFS_save" 36186 else 36187 # This is an absolute path, we can use it without further modifications. 36188 new_path="$path" 36189 fi 36190 36191 if test "x$new_path" = x; then 36192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36193 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36194 has_space=`$ECHO "$complete" | $GREP " "` 36195 if test "x$has_space" != x; then 36196 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36197 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36198 fi 36199 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36200 fi 36201 fi 36202 36203 # Now join together the path and the arguments once again 36204 if test "x$arguments" != xEOL; then 36205 new_complete="$new_path ${arguments% *}" 36206 else 36207 new_complete="$new_path" 36208 fi 36209 36210 if test "x$complete" != "x$new_complete"; then 36211 NM="$new_complete" 36212 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36213 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36214 fi 36215 36216 36217 36218 # Publish this variable in the help. 36219 36220 36221 if test "x$GNM" = x; then 36222 # The variable is not set by user, try to locate tool using the code snippet 36223 for ac_prog in gnm 36224 do 36225 # Extract the first word of "$ac_prog", so it can be a program name with args. 36226 set dummy $ac_prog; ac_word=$2 36227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36228 $as_echo_n "checking for $ac_word... " >&6; } 36229 if ${ac_cv_path_GNM+:} false; then : 36230 $as_echo_n "(cached) " >&6 36231 else 36232 case $GNM in 36233 [\\/]* | ?:[\\/]*) 36234 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36235 ;; 36236 *) 36237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36238 for as_dir in $PATH 36239 do 36240 IFS=$as_save_IFS 36241 test -z "$as_dir" && as_dir=. 36242 for ac_exec_ext in '' $ac_executable_extensions; do 36243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36244 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36246 break 2 36247 fi 36248 done 36249 done 36250 IFS=$as_save_IFS 36251 36252 ;; 36253 esac 36254 fi 36255 GNM=$ac_cv_path_GNM 36256 if test -n "$GNM"; then 36257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36258 $as_echo "$GNM" >&6; } 36259 else 36260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36261 $as_echo "no" >&6; } 36262 fi 36263 36264 36265 test -n "$GNM" && break 36266 done 36267 36268 else 36269 # The variable is set, but is it from the command line or the environment? 36270 36271 # Try to remove the string !GNM! from our list. 36272 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36273 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36274 # If it failed, the variable was not from the command line. Ignore it, 36275 # but warn the user (except for BASH, which is always set by the calling BASH). 36276 if test "xGNM" != xBASH; then 36277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36278 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36279 fi 36280 # Try to locate tool using the code snippet 36281 for ac_prog in gnm 36282 do 36283 # Extract the first word of "$ac_prog", so it can be a program name with args. 36284 set dummy $ac_prog; ac_word=$2 36285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36286 $as_echo_n "checking for $ac_word... " >&6; } 36287 if ${ac_cv_path_GNM+:} false; then : 36288 $as_echo_n "(cached) " >&6 36289 else 36290 case $GNM in 36291 [\\/]* | ?:[\\/]*) 36292 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36293 ;; 36294 *) 36295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36296 for as_dir in $PATH 36297 do 36298 IFS=$as_save_IFS 36299 test -z "$as_dir" && as_dir=. 36300 for ac_exec_ext in '' $ac_executable_extensions; do 36301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36302 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36304 break 2 36305 fi 36306 done 36307 done 36308 IFS=$as_save_IFS 36309 36310 ;; 36311 esac 36312 fi 36313 GNM=$ac_cv_path_GNM 36314 if test -n "$GNM"; then 36315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36316 $as_echo "$GNM" >&6; } 36317 else 36318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36319 $as_echo "no" >&6; } 36320 fi 36321 36322 36323 test -n "$GNM" && break 36324 done 36325 36326 else 36327 # If it succeeded, then it was overridden by the user. We will use it 36328 # for the tool. 36329 36330 # First remove it from the list of overridden variables, so we can test 36331 # for unknown variables in the end. 36332 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36333 36334 # Check if the provided tool contains a complete path. 36335 tool_specified="$GNM" 36336 tool_basename="${tool_specified##*/}" 36337 if test "x$tool_basename" = "x$tool_specified"; then 36338 # A command without a complete path is provided, search $PATH. 36339 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36340 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36341 # Extract the first word of "$tool_basename", so it can be a program name with args. 36342 set dummy $tool_basename; ac_word=$2 36343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36344 $as_echo_n "checking for $ac_word... " >&6; } 36345 if ${ac_cv_path_GNM+:} false; then : 36346 $as_echo_n "(cached) " >&6 36347 else 36348 case $GNM in 36349 [\\/]* | ?:[\\/]*) 36350 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36351 ;; 36352 *) 36353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36354 for as_dir in $PATH 36355 do 36356 IFS=$as_save_IFS 36357 test -z "$as_dir" && as_dir=. 36358 for ac_exec_ext in '' $ac_executable_extensions; do 36359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36360 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36362 break 2 36363 fi 36364 done 36365 done 36366 IFS=$as_save_IFS 36367 36368 ;; 36369 esac 36370 fi 36371 GNM=$ac_cv_path_GNM 36372 if test -n "$GNM"; then 36373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36374 $as_echo "$GNM" >&6; } 36375 else 36376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36377 $as_echo "no" >&6; } 36378 fi 36379 36380 36381 if test "x$GNM" = x; then 36382 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36383 fi 36384 else 36385 # Otherwise we believe it is a complete path. Use it as it is. 36386 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36387 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36389 $as_echo_n "checking for GNM... " >&6; } 36390 if test ! -x "$tool_specified"; then 36391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36392 $as_echo "not found" >&6; } 36393 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36394 fi 36395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36396 $as_echo "$tool_specified" >&6; } 36397 fi 36398 fi 36399 fi 36400 36401 36402 36403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36404 36405 # First separate the path from the arguments. This will split at the first 36406 # space. 36407 complete="$GNM" 36408 path="${complete%% *}" 36409 tmp="$complete EOL" 36410 arguments="${tmp#* }" 36411 36412 # Input might be given as Windows format, start by converting to 36413 # unix format. 36414 new_path=`$CYGPATH -u "$path"` 36415 36416 # Now try to locate executable using which 36417 new_path=`$WHICH "$new_path" 2> /dev/null` 36418 # bat and cmd files are not always considered executable in cygwin causing which 36419 # to not find them 36420 if test "x$new_path" = x \ 36421 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36422 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36423 new_path=`$CYGPATH -u "$path"` 36424 fi 36425 if test "x$new_path" = x; then 36426 # Oops. Which didn't find the executable. 36427 # The splitting of arguments from the executable at a space might have been incorrect, 36428 # since paths with space are more likely in Windows. Give it another try with the whole 36429 # argument. 36430 path="$complete" 36431 arguments="EOL" 36432 new_path=`$CYGPATH -u "$path"` 36433 new_path=`$WHICH "$new_path" 2> /dev/null` 36434 # bat and cmd files are not always considered executable in cygwin causing which 36435 # to not find them 36436 if test "x$new_path" = x \ 36437 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36438 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36439 new_path=`$CYGPATH -u "$path"` 36440 fi 36441 if test "x$new_path" = x; then 36442 # It's still not found. Now this is an unrecoverable error. 36443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36444 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36445 has_space=`$ECHO "$complete" | $GREP " "` 36446 if test "x$has_space" != x; then 36447 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36448 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36449 fi 36450 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36451 fi 36452 fi 36453 36454 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36455 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36456 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36457 # "foo.exe" is OK but "foo" is an error. 36458 # 36459 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36460 # It is also a way to make sure we got the proper file name for the real test later on. 36461 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36462 if test "x$test_shortpath" = x; then 36463 # Short path failed, file does not exist as specified. 36464 # Try adding .exe or .cmd 36465 if test -f "${new_path}.exe"; then 36466 input_to_shortpath="${new_path}.exe" 36467 elif test -f "${new_path}.cmd"; then 36468 input_to_shortpath="${new_path}.cmd" 36469 else 36470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36471 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36472 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36473 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36474 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36475 fi 36476 else 36477 input_to_shortpath="$new_path" 36478 fi 36479 36480 # Call helper function which possibly converts this using DOS-style short mode. 36481 # If so, the updated path is stored in $new_path. 36482 new_path="$input_to_shortpath" 36483 36484 input_path="$input_to_shortpath" 36485 # Check if we need to convert this using DOS-style short mode. If the path 36486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36487 # take no chances and rewrite it. 36488 # Note: m4 eats our [], so we need to use [ and ] instead. 36489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36490 if test "x$has_forbidden_chars" != x; then 36491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36492 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36493 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36494 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36495 # Going to short mode and back again did indeed matter. Since short mode is 36496 # case insensitive, let's make it lowercase to improve readability. 36497 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36498 # Now convert it back to Unix-stile (cygpath) 36499 input_path=`$CYGPATH -u "$shortmode_path"` 36500 new_path="$input_path" 36501 fi 36502 fi 36503 36504 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36505 if test "x$test_cygdrive_prefix" = x; then 36506 # As a simple fix, exclude /usr/bin since it's not a real path. 36507 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36508 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36509 # a path prefixed by /cygdrive for fixpath to work. 36510 new_path="$CYGWIN_ROOT_PATH$input_path" 36511 fi 36512 fi 36513 36514 # remove trailing .exe if any 36515 new_path="${new_path/%.exe/}" 36516 36517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36518 36519 # First separate the path from the arguments. This will split at the first 36520 # space. 36521 complete="$GNM" 36522 path="${complete%% *}" 36523 tmp="$complete EOL" 36524 arguments="${tmp#* }" 36525 36526 # Input might be given as Windows format, start by converting to 36527 # unix format. 36528 new_path="$path" 36529 36530 windows_path="$new_path" 36531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36532 unix_path=`$CYGPATH -u "$windows_path"` 36533 new_path="$unix_path" 36534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36536 new_path="$unix_path" 36537 fi 36538 36539 36540 # Now try to locate executable using which 36541 new_path=`$WHICH "$new_path" 2> /dev/null` 36542 36543 if test "x$new_path" = x; then 36544 # Oops. Which didn't find the executable. 36545 # The splitting of arguments from the executable at a space might have been incorrect, 36546 # since paths with space are more likely in Windows. Give it another try with the whole 36547 # argument. 36548 path="$complete" 36549 arguments="EOL" 36550 new_path="$path" 36551 36552 windows_path="$new_path" 36553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36554 unix_path=`$CYGPATH -u "$windows_path"` 36555 new_path="$unix_path" 36556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36558 new_path="$unix_path" 36559 fi 36560 36561 36562 new_path=`$WHICH "$new_path" 2> /dev/null` 36563 # bat and cmd files are not always considered executable in MSYS causing which 36564 # to not find them 36565 if test "x$new_path" = x \ 36566 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36567 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36568 new_path="$path" 36569 36570 windows_path="$new_path" 36571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36572 unix_path=`$CYGPATH -u "$windows_path"` 36573 new_path="$unix_path" 36574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36575 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36576 new_path="$unix_path" 36577 fi 36578 36579 fi 36580 36581 if test "x$new_path" = x; then 36582 # It's still not found. Now this is an unrecoverable error. 36583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36584 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36585 has_space=`$ECHO "$complete" | $GREP " "` 36586 if test "x$has_space" != x; then 36587 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36588 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36589 fi 36590 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36591 fi 36592 fi 36593 36594 # Now new_path has a complete unix path to the binary 36595 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36596 # Keep paths in /bin as-is, but remove trailing .exe if any 36597 new_path="${new_path/%.exe/}" 36598 # Do not save /bin paths to all_fixpath_prefixes! 36599 else 36600 # Not in mixed or Windows style, start by that. 36601 new_path=`cmd //c echo $new_path` 36602 36603 input_path="$new_path" 36604 # Check if we need to convert this using DOS-style short mode. If the path 36605 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36606 # take no chances and rewrite it. 36607 # Note: m4 eats our [], so we need to use [ and ] instead. 36608 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36609 if test "x$has_forbidden_chars" != x; then 36610 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36611 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36612 fi 36613 36614 # Output is in $new_path 36615 36616 windows_path="$new_path" 36617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36618 unix_path=`$CYGPATH -u "$windows_path"` 36619 new_path="$unix_path" 36620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36622 new_path="$unix_path" 36623 fi 36624 36625 # remove trailing .exe if any 36626 new_path="${new_path/%.exe/}" 36627 36628 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36629 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36630 fi 36631 36632 else 36633 # We're on a unix platform. Hooray! :) 36634 # First separate the path from the arguments. This will split at the first 36635 # space. 36636 complete="$GNM" 36637 path="${complete%% *}" 36638 tmp="$complete EOL" 36639 arguments="${tmp#* }" 36640 36641 # Cannot rely on the command "which" here since it doesn't always work. 36642 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36643 if test -z "$is_absolute_path"; then 36644 # Path to executable is not absolute. Find it. 36645 IFS_save="$IFS" 36646 IFS=: 36647 for p in $PATH; do 36648 if test -f "$p/$path" && test -x "$p/$path"; then 36649 new_path="$p/$path" 36650 break 36651 fi 36652 done 36653 IFS="$IFS_save" 36654 else 36655 # This is an absolute path, we can use it without further modifications. 36656 new_path="$path" 36657 fi 36658 36659 if test "x$new_path" = x; then 36660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36661 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36662 has_space=`$ECHO "$complete" | $GREP " "` 36663 if test "x$has_space" != x; then 36664 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36665 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36666 fi 36667 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36668 fi 36669 fi 36670 36671 # Now join together the path and the arguments once again 36672 if test "x$arguments" != xEOL; then 36673 new_complete="$new_path ${arguments% *}" 36674 else 36675 new_complete="$new_path" 36676 fi 36677 36678 if test "x$complete" != "x$new_complete"; then 36679 GNM="$new_complete" 36680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36681 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36682 fi 36683 36684 36685 36686 36687 # Publish this variable in the help. 36688 36689 36690 if test "x$MCS" = x; then 36691 # The variable is not set by user, try to locate tool using the code snippet 36692 for ac_prog in mcs 36693 do 36694 # Extract the first word of "$ac_prog", so it can be a program name with args. 36695 set dummy $ac_prog; ac_word=$2 36696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36697 $as_echo_n "checking for $ac_word... " >&6; } 36698 if ${ac_cv_path_MCS+:} false; then : 36699 $as_echo_n "(cached) " >&6 36700 else 36701 case $MCS in 36702 [\\/]* | ?:[\\/]*) 36703 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36704 ;; 36705 *) 36706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36707 for as_dir in $PATH 36708 do 36709 IFS=$as_save_IFS 36710 test -z "$as_dir" && as_dir=. 36711 for ac_exec_ext in '' $ac_executable_extensions; do 36712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36713 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36715 break 2 36716 fi 36717 done 36718 done 36719 IFS=$as_save_IFS 36720 36721 ;; 36722 esac 36723 fi 36724 MCS=$ac_cv_path_MCS 36725 if test -n "$MCS"; then 36726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36727 $as_echo "$MCS" >&6; } 36728 else 36729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36730 $as_echo "no" >&6; } 36731 fi 36732 36733 36734 test -n "$MCS" && break 36735 done 36736 36737 else 36738 # The variable is set, but is it from the command line or the environment? 36739 36740 # Try to remove the string !MCS! from our list. 36741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36743 # If it failed, the variable was not from the command line. Ignore it, 36744 # but warn the user (except for BASH, which is always set by the calling BASH). 36745 if test "xMCS" != xBASH; then 36746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36747 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36748 fi 36749 # Try to locate tool using the code snippet 36750 for ac_prog in mcs 36751 do 36752 # Extract the first word of "$ac_prog", so it can be a program name with args. 36753 set dummy $ac_prog; ac_word=$2 36754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36755 $as_echo_n "checking for $ac_word... " >&6; } 36756 if ${ac_cv_path_MCS+:} false; then : 36757 $as_echo_n "(cached) " >&6 36758 else 36759 case $MCS in 36760 [\\/]* | ?:[\\/]*) 36761 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36762 ;; 36763 *) 36764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36765 for as_dir in $PATH 36766 do 36767 IFS=$as_save_IFS 36768 test -z "$as_dir" && as_dir=. 36769 for ac_exec_ext in '' $ac_executable_extensions; do 36770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36771 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36773 break 2 36774 fi 36775 done 36776 done 36777 IFS=$as_save_IFS 36778 36779 ;; 36780 esac 36781 fi 36782 MCS=$ac_cv_path_MCS 36783 if test -n "$MCS"; then 36784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36785 $as_echo "$MCS" >&6; } 36786 else 36787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36788 $as_echo "no" >&6; } 36789 fi 36790 36791 36792 test -n "$MCS" && break 36793 done 36794 36795 else 36796 # If it succeeded, then it was overridden by the user. We will use it 36797 # for the tool. 36798 36799 # First remove it from the list of overridden variables, so we can test 36800 # for unknown variables in the end. 36801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36802 36803 # Check if the provided tool contains a complete path. 36804 tool_specified="$MCS" 36805 tool_basename="${tool_specified##*/}" 36806 if test "x$tool_basename" = "x$tool_specified"; then 36807 # A command without a complete path is provided, search $PATH. 36808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36809 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36810 # Extract the first word of "$tool_basename", so it can be a program name with args. 36811 set dummy $tool_basename; ac_word=$2 36812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36813 $as_echo_n "checking for $ac_word... " >&6; } 36814 if ${ac_cv_path_MCS+:} false; then : 36815 $as_echo_n "(cached) " >&6 36816 else 36817 case $MCS in 36818 [\\/]* | ?:[\\/]*) 36819 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36820 ;; 36821 *) 36822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36823 for as_dir in $PATH 36824 do 36825 IFS=$as_save_IFS 36826 test -z "$as_dir" && as_dir=. 36827 for ac_exec_ext in '' $ac_executable_extensions; do 36828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36829 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36831 break 2 36832 fi 36833 done 36834 done 36835 IFS=$as_save_IFS 36836 36837 ;; 36838 esac 36839 fi 36840 MCS=$ac_cv_path_MCS 36841 if test -n "$MCS"; then 36842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36843 $as_echo "$MCS" >&6; } 36844 else 36845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36846 $as_echo "no" >&6; } 36847 fi 36848 36849 36850 if test "x$MCS" = x; then 36851 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36852 fi 36853 else 36854 # Otherwise we believe it is a complete path. Use it as it is. 36855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36856 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36858 $as_echo_n "checking for MCS... " >&6; } 36859 if test ! -x "$tool_specified"; then 36860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36861 $as_echo "not found" >&6; } 36862 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36863 fi 36864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36865 $as_echo "$tool_specified" >&6; } 36866 fi 36867 fi 36868 fi 36869 36870 36871 36872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36873 36874 # First separate the path from the arguments. This will split at the first 36875 # space. 36876 complete="$MCS" 36877 path="${complete%% *}" 36878 tmp="$complete EOL" 36879 arguments="${tmp#* }" 36880 36881 # Input might be given as Windows format, start by converting to 36882 # unix format. 36883 new_path=`$CYGPATH -u "$path"` 36884 36885 # Now try to locate executable using which 36886 new_path=`$WHICH "$new_path" 2> /dev/null` 36887 # bat and cmd files are not always considered executable in cygwin causing which 36888 # to not find them 36889 if test "x$new_path" = x \ 36890 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36891 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36892 new_path=`$CYGPATH -u "$path"` 36893 fi 36894 if test "x$new_path" = x; then 36895 # Oops. Which didn't find the executable. 36896 # The splitting of arguments from the executable at a space might have been incorrect, 36897 # since paths with space are more likely in Windows. Give it another try with the whole 36898 # argument. 36899 path="$complete" 36900 arguments="EOL" 36901 new_path=`$CYGPATH -u "$path"` 36902 new_path=`$WHICH "$new_path" 2> /dev/null` 36903 # bat and cmd files are not always considered executable in cygwin causing which 36904 # to not find them 36905 if test "x$new_path" = x \ 36906 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36907 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36908 new_path=`$CYGPATH -u "$path"` 36909 fi 36910 if test "x$new_path" = x; then 36911 # It's still not found. Now this is an unrecoverable error. 36912 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36913 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36914 has_space=`$ECHO "$complete" | $GREP " "` 36915 if test "x$has_space" != x; then 36916 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36917 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36918 fi 36919 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36920 fi 36921 fi 36922 36923 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36924 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36925 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36926 # "foo.exe" is OK but "foo" is an error. 36927 # 36928 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36929 # It is also a way to make sure we got the proper file name for the real test later on. 36930 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36931 if test "x$test_shortpath" = x; then 36932 # Short path failed, file does not exist as specified. 36933 # Try adding .exe or .cmd 36934 if test -f "${new_path}.exe"; then 36935 input_to_shortpath="${new_path}.exe" 36936 elif test -f "${new_path}.cmd"; then 36937 input_to_shortpath="${new_path}.cmd" 36938 else 36939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36940 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36941 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36942 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36943 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36944 fi 36945 else 36946 input_to_shortpath="$new_path" 36947 fi 36948 36949 # Call helper function which possibly converts this using DOS-style short mode. 36950 # If so, the updated path is stored in $new_path. 36951 new_path="$input_to_shortpath" 36952 36953 input_path="$input_to_shortpath" 36954 # Check if we need to convert this using DOS-style short mode. If the path 36955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36956 # take no chances and rewrite it. 36957 # Note: m4 eats our [], so we need to use [ and ] instead. 36958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36959 if test "x$has_forbidden_chars" != x; then 36960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36961 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36962 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36963 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36964 # Going to short mode and back again did indeed matter. Since short mode is 36965 # case insensitive, let's make it lowercase to improve readability. 36966 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36967 # Now convert it back to Unix-stile (cygpath) 36968 input_path=`$CYGPATH -u "$shortmode_path"` 36969 new_path="$input_path" 36970 fi 36971 fi 36972 36973 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36974 if test "x$test_cygdrive_prefix" = x; then 36975 # As a simple fix, exclude /usr/bin since it's not a real path. 36976 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36977 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36978 # a path prefixed by /cygdrive for fixpath to work. 36979 new_path="$CYGWIN_ROOT_PATH$input_path" 36980 fi 36981 fi 36982 36983 # remove trailing .exe if any 36984 new_path="${new_path/%.exe/}" 36985 36986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36987 36988 # First separate the path from the arguments. This will split at the first 36989 # space. 36990 complete="$MCS" 36991 path="${complete%% *}" 36992 tmp="$complete EOL" 36993 arguments="${tmp#* }" 36994 36995 # Input might be given as Windows format, start by converting to 36996 # unix format. 36997 new_path="$path" 36998 36999 windows_path="$new_path" 37000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37001 unix_path=`$CYGPATH -u "$windows_path"` 37002 new_path="$unix_path" 37003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37004 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37005 new_path="$unix_path" 37006 fi 37007 37008 37009 # Now try to locate executable using which 37010 new_path=`$WHICH "$new_path" 2> /dev/null` 37011 37012 if test "x$new_path" = x; then 37013 # Oops. Which didn't find the executable. 37014 # The splitting of arguments from the executable at a space might have been incorrect, 37015 # since paths with space are more likely in Windows. Give it another try with the whole 37016 # argument. 37017 path="$complete" 37018 arguments="EOL" 37019 new_path="$path" 37020 37021 windows_path="$new_path" 37022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37023 unix_path=`$CYGPATH -u "$windows_path"` 37024 new_path="$unix_path" 37025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37027 new_path="$unix_path" 37028 fi 37029 37030 37031 new_path=`$WHICH "$new_path" 2> /dev/null` 37032 # bat and cmd files are not always considered executable in MSYS causing which 37033 # to not find them 37034 if test "x$new_path" = x \ 37035 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37036 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37037 new_path="$path" 37038 37039 windows_path="$new_path" 37040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37041 unix_path=`$CYGPATH -u "$windows_path"` 37042 new_path="$unix_path" 37043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37044 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37045 new_path="$unix_path" 37046 fi 37047 37048 fi 37049 37050 if test "x$new_path" = x; then 37051 # It's still not found. Now this is an unrecoverable error. 37052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37053 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37054 has_space=`$ECHO "$complete" | $GREP " "` 37055 if test "x$has_space" != x; then 37056 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37057 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37058 fi 37059 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37060 fi 37061 fi 37062 37063 # Now new_path has a complete unix path to the binary 37064 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37065 # Keep paths in /bin as-is, but remove trailing .exe if any 37066 new_path="${new_path/%.exe/}" 37067 # Do not save /bin paths to all_fixpath_prefixes! 37068 else 37069 # Not in mixed or Windows style, start by that. 37070 new_path=`cmd //c echo $new_path` 37071 37072 input_path="$new_path" 37073 # Check if we need to convert this using DOS-style short mode. If the path 37074 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37075 # take no chances and rewrite it. 37076 # Note: m4 eats our [], so we need to use [ and ] instead. 37077 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37078 if test "x$has_forbidden_chars" != x; then 37079 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37080 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37081 fi 37082 37083 # Output is in $new_path 37084 37085 windows_path="$new_path" 37086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37087 unix_path=`$CYGPATH -u "$windows_path"` 37088 new_path="$unix_path" 37089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37090 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37091 new_path="$unix_path" 37092 fi 37093 37094 # remove trailing .exe if any 37095 new_path="${new_path/%.exe/}" 37096 37097 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37098 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37099 fi 37100 37101 else 37102 # We're on a unix platform. Hooray! :) 37103 # First separate the path from the arguments. This will split at the first 37104 # space. 37105 complete="$MCS" 37106 path="${complete%% *}" 37107 tmp="$complete EOL" 37108 arguments="${tmp#* }" 37109 37110 # Cannot rely on the command "which" here since it doesn't always work. 37111 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37112 if test -z "$is_absolute_path"; then 37113 # Path to executable is not absolute. Find it. 37114 IFS_save="$IFS" 37115 IFS=: 37116 for p in $PATH; do 37117 if test -f "$p/$path" && test -x "$p/$path"; then 37118 new_path="$p/$path" 37119 break 37120 fi 37121 done 37122 IFS="$IFS_save" 37123 else 37124 # This is an absolute path, we can use it without further modifications. 37125 new_path="$path" 37126 fi 37127 37128 if test "x$new_path" = x; then 37129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37130 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37131 has_space=`$ECHO "$complete" | $GREP " "` 37132 if test "x$has_space" != x; then 37133 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37134 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37135 fi 37136 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37137 fi 37138 fi 37139 37140 # Now join together the path and the arguments once again 37141 if test "x$arguments" != xEOL; then 37142 new_complete="$new_path ${arguments% *}" 37143 else 37144 new_complete="$new_path" 37145 fi 37146 37147 if test "x$complete" != "x$new_complete"; then 37148 MCS="$new_complete" 37149 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 37150 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 37151 fi 37152 37153 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 37154 # FIXME: we should unify this with the solaris case above. 37155 37156 37157 # Publish this variable in the help. 37158 37159 37160 if test "x$STRIP" = x; then 37161 # The variable is not set by user, try to locate tool using the code snippet 37162 if test -n "$ac_tool_prefix"; then 37163 for ac_prog in strip 37164 do 37165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37168 $as_echo_n "checking for $ac_word... " >&6; } 37169 if ${ac_cv_prog_STRIP+:} false; then : 37170 $as_echo_n "(cached) " >&6 37171 else 37172 if test -n "$STRIP"; then 37173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37174 else 37175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37176 for as_dir in $PATH 37177 do 37178 IFS=$as_save_IFS 37179 test -z "$as_dir" && as_dir=. 37180 for ac_exec_ext in '' $ac_executable_extensions; do 37181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37182 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37184 break 2 37185 fi 37186 done 37187 done 37188 IFS=$as_save_IFS 37189 37190 fi 37191 fi 37192 STRIP=$ac_cv_prog_STRIP 37193 if test -n "$STRIP"; then 37194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37195 $as_echo "$STRIP" >&6; } 37196 else 37197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37198 $as_echo "no" >&6; } 37199 fi 37200 37201 37202 test -n "$STRIP" && break 37203 done 37204 fi 37205 if test -z "$STRIP"; then 37206 ac_ct_STRIP=$STRIP 37207 for ac_prog in strip 37208 do 37209 # Extract the first word of "$ac_prog", so it can be a program name with args. 37210 set dummy $ac_prog; ac_word=$2 37211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37212 $as_echo_n "checking for $ac_word... " >&6; } 37213 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37214 $as_echo_n "(cached) " >&6 37215 else 37216 if test -n "$ac_ct_STRIP"; then 37217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37218 else 37219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37220 for as_dir in $PATH 37221 do 37222 IFS=$as_save_IFS 37223 test -z "$as_dir" && as_dir=. 37224 for ac_exec_ext in '' $ac_executable_extensions; do 37225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37226 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37228 break 2 37229 fi 37230 done 37231 done 37232 IFS=$as_save_IFS 37233 37234 fi 37235 fi 37236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37237 if test -n "$ac_ct_STRIP"; then 37238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37239 $as_echo "$ac_ct_STRIP" >&6; } 37240 else 37241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37242 $as_echo "no" >&6; } 37243 fi 37244 37245 37246 test -n "$ac_ct_STRIP" && break 37247 done 37248 37249 if test "x$ac_ct_STRIP" = x; then 37250 STRIP="" 37251 else 37252 case $cross_compiling:$ac_tool_warned in 37253 yes:) 37254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37256 ac_tool_warned=yes ;; 37257 esac 37258 STRIP=$ac_ct_STRIP 37259 fi 37260 fi 37261 37262 else 37263 # The variable is set, but is it from the command line or the environment? 37264 37265 # Try to remove the string !STRIP! from our list. 37266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37268 # If it failed, the variable was not from the command line. Ignore it, 37269 # but warn the user (except for BASH, which is always set by the calling BASH). 37270 if test "xSTRIP" != xBASH; then 37271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37272 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37273 fi 37274 # Try to locate tool using the code snippet 37275 if test -n "$ac_tool_prefix"; then 37276 for ac_prog in strip 37277 do 37278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37281 $as_echo_n "checking for $ac_word... " >&6; } 37282 if ${ac_cv_prog_STRIP+:} false; then : 37283 $as_echo_n "(cached) " >&6 37284 else 37285 if test -n "$STRIP"; then 37286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37287 else 37288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37289 for as_dir in $PATH 37290 do 37291 IFS=$as_save_IFS 37292 test -z "$as_dir" && as_dir=. 37293 for ac_exec_ext in '' $ac_executable_extensions; do 37294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37295 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37297 break 2 37298 fi 37299 done 37300 done 37301 IFS=$as_save_IFS 37302 37303 fi 37304 fi 37305 STRIP=$ac_cv_prog_STRIP 37306 if test -n "$STRIP"; then 37307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37308 $as_echo "$STRIP" >&6; } 37309 else 37310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37311 $as_echo "no" >&6; } 37312 fi 37313 37314 37315 test -n "$STRIP" && break 37316 done 37317 fi 37318 if test -z "$STRIP"; then 37319 ac_ct_STRIP=$STRIP 37320 for ac_prog in strip 37321 do 37322 # Extract the first word of "$ac_prog", so it can be a program name with args. 37323 set dummy $ac_prog; ac_word=$2 37324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37325 $as_echo_n "checking for $ac_word... " >&6; } 37326 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37327 $as_echo_n "(cached) " >&6 37328 else 37329 if test -n "$ac_ct_STRIP"; then 37330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37331 else 37332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37333 for as_dir in $PATH 37334 do 37335 IFS=$as_save_IFS 37336 test -z "$as_dir" && as_dir=. 37337 for ac_exec_ext in '' $ac_executable_extensions; do 37338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37339 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37341 break 2 37342 fi 37343 done 37344 done 37345 IFS=$as_save_IFS 37346 37347 fi 37348 fi 37349 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37350 if test -n "$ac_ct_STRIP"; then 37351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37352 $as_echo "$ac_ct_STRIP" >&6; } 37353 else 37354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37355 $as_echo "no" >&6; } 37356 fi 37357 37358 37359 test -n "$ac_ct_STRIP" && break 37360 done 37361 37362 if test "x$ac_ct_STRIP" = x; then 37363 STRIP="" 37364 else 37365 case $cross_compiling:$ac_tool_warned in 37366 yes:) 37367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37369 ac_tool_warned=yes ;; 37370 esac 37371 STRIP=$ac_ct_STRIP 37372 fi 37373 fi 37374 37375 else 37376 # If it succeeded, then it was overridden by the user. We will use it 37377 # for the tool. 37378 37379 # First remove it from the list of overridden variables, so we can test 37380 # for unknown variables in the end. 37381 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37382 37383 # Check if the provided tool contains a complete path. 37384 tool_specified="$STRIP" 37385 tool_basename="${tool_specified##*/}" 37386 if test "x$tool_basename" = "x$tool_specified"; then 37387 # A command without a complete path is provided, search $PATH. 37388 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37389 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37390 # Extract the first word of "$tool_basename", so it can be a program name with args. 37391 set dummy $tool_basename; ac_word=$2 37392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37393 $as_echo_n "checking for $ac_word... " >&6; } 37394 if ${ac_cv_path_STRIP+:} false; then : 37395 $as_echo_n "(cached) " >&6 37396 else 37397 case $STRIP in 37398 [\\/]* | ?:[\\/]*) 37399 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37400 ;; 37401 *) 37402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37403 for as_dir in $PATH 37404 do 37405 IFS=$as_save_IFS 37406 test -z "$as_dir" && as_dir=. 37407 for ac_exec_ext in '' $ac_executable_extensions; do 37408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37409 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37411 break 2 37412 fi 37413 done 37414 done 37415 IFS=$as_save_IFS 37416 37417 ;; 37418 esac 37419 fi 37420 STRIP=$ac_cv_path_STRIP 37421 if test -n "$STRIP"; then 37422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37423 $as_echo "$STRIP" >&6; } 37424 else 37425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37426 $as_echo "no" >&6; } 37427 fi 37428 37429 37430 if test "x$STRIP" = x; then 37431 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37432 fi 37433 else 37434 # Otherwise we believe it is a complete path. Use it as it is. 37435 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37436 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37438 $as_echo_n "checking for STRIP... " >&6; } 37439 if test ! -x "$tool_specified"; then 37440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37441 $as_echo "not found" >&6; } 37442 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37443 fi 37444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37445 $as_echo "$tool_specified" >&6; } 37446 fi 37447 fi 37448 fi 37449 37450 37451 37452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37453 37454 # First separate the path from the arguments. This will split at the first 37455 # space. 37456 complete="$STRIP" 37457 path="${complete%% *}" 37458 tmp="$complete EOL" 37459 arguments="${tmp#* }" 37460 37461 # Input might be given as Windows format, start by converting to 37462 # unix format. 37463 new_path=`$CYGPATH -u "$path"` 37464 37465 # Now try to locate executable using which 37466 new_path=`$WHICH "$new_path" 2> /dev/null` 37467 # bat and cmd files are not always considered executable in cygwin causing which 37468 # to not find them 37469 if test "x$new_path" = x \ 37470 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37471 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37472 new_path=`$CYGPATH -u "$path"` 37473 fi 37474 if test "x$new_path" = x; then 37475 # Oops. Which didn't find the executable. 37476 # The splitting of arguments from the executable at a space might have been incorrect, 37477 # since paths with space are more likely in Windows. Give it another try with the whole 37478 # argument. 37479 path="$complete" 37480 arguments="EOL" 37481 new_path=`$CYGPATH -u "$path"` 37482 new_path=`$WHICH "$new_path" 2> /dev/null` 37483 # bat and cmd files are not always considered executable in cygwin causing which 37484 # to not find them 37485 if test "x$new_path" = x \ 37486 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37487 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37488 new_path=`$CYGPATH -u "$path"` 37489 fi 37490 if test "x$new_path" = x; then 37491 # It's still not found. Now this is an unrecoverable error. 37492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37493 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37494 has_space=`$ECHO "$complete" | $GREP " "` 37495 if test "x$has_space" != x; then 37496 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37497 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37498 fi 37499 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37500 fi 37501 fi 37502 37503 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37504 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37505 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37506 # "foo.exe" is OK but "foo" is an error. 37507 # 37508 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37509 # It is also a way to make sure we got the proper file name for the real test later on. 37510 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37511 if test "x$test_shortpath" = x; then 37512 # Short path failed, file does not exist as specified. 37513 # Try adding .exe or .cmd 37514 if test -f "${new_path}.exe"; then 37515 input_to_shortpath="${new_path}.exe" 37516 elif test -f "${new_path}.cmd"; then 37517 input_to_shortpath="${new_path}.cmd" 37518 else 37519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37520 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37521 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37522 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37523 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37524 fi 37525 else 37526 input_to_shortpath="$new_path" 37527 fi 37528 37529 # Call helper function which possibly converts this using DOS-style short mode. 37530 # If so, the updated path is stored in $new_path. 37531 new_path="$input_to_shortpath" 37532 37533 input_path="$input_to_shortpath" 37534 # Check if we need to convert this using DOS-style short mode. If the path 37535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37536 # take no chances and rewrite it. 37537 # Note: m4 eats our [], so we need to use [ and ] instead. 37538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37539 if test "x$has_forbidden_chars" != x; then 37540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37541 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37542 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37543 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37544 # Going to short mode and back again did indeed matter. Since short mode is 37545 # case insensitive, let's make it lowercase to improve readability. 37546 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37547 # Now convert it back to Unix-stile (cygpath) 37548 input_path=`$CYGPATH -u "$shortmode_path"` 37549 new_path="$input_path" 37550 fi 37551 fi 37552 37553 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37554 if test "x$test_cygdrive_prefix" = x; then 37555 # As a simple fix, exclude /usr/bin since it's not a real path. 37556 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37557 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37558 # a path prefixed by /cygdrive for fixpath to work. 37559 new_path="$CYGWIN_ROOT_PATH$input_path" 37560 fi 37561 fi 37562 37563 # remove trailing .exe if any 37564 new_path="${new_path/%.exe/}" 37565 37566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37567 37568 # First separate the path from the arguments. This will split at the first 37569 # space. 37570 complete="$STRIP" 37571 path="${complete%% *}" 37572 tmp="$complete EOL" 37573 arguments="${tmp#* }" 37574 37575 # Input might be given as Windows format, start by converting to 37576 # unix format. 37577 new_path="$path" 37578 37579 windows_path="$new_path" 37580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37581 unix_path=`$CYGPATH -u "$windows_path"` 37582 new_path="$unix_path" 37583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37585 new_path="$unix_path" 37586 fi 37587 37588 37589 # Now try to locate executable using which 37590 new_path=`$WHICH "$new_path" 2> /dev/null` 37591 37592 if test "x$new_path" = x; then 37593 # Oops. Which didn't find the executable. 37594 # The splitting of arguments from the executable at a space might have been incorrect, 37595 # since paths with space are more likely in Windows. Give it another try with the whole 37596 # argument. 37597 path="$complete" 37598 arguments="EOL" 37599 new_path="$path" 37600 37601 windows_path="$new_path" 37602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37603 unix_path=`$CYGPATH -u "$windows_path"` 37604 new_path="$unix_path" 37605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37606 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37607 new_path="$unix_path" 37608 fi 37609 37610 37611 new_path=`$WHICH "$new_path" 2> /dev/null` 37612 # bat and cmd files are not always considered executable in MSYS causing which 37613 # to not find them 37614 if test "x$new_path" = x \ 37615 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37616 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37617 new_path="$path" 37618 37619 windows_path="$new_path" 37620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37621 unix_path=`$CYGPATH -u "$windows_path"` 37622 new_path="$unix_path" 37623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37625 new_path="$unix_path" 37626 fi 37627 37628 fi 37629 37630 if test "x$new_path" = x; then 37631 # It's still not found. Now this is an unrecoverable error. 37632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37633 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37634 has_space=`$ECHO "$complete" | $GREP " "` 37635 if test "x$has_space" != x; then 37636 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37637 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37638 fi 37639 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37640 fi 37641 fi 37642 37643 # Now new_path has a complete unix path to the binary 37644 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37645 # Keep paths in /bin as-is, but remove trailing .exe if any 37646 new_path="${new_path/%.exe/}" 37647 # Do not save /bin paths to all_fixpath_prefixes! 37648 else 37649 # Not in mixed or Windows style, start by that. 37650 new_path=`cmd //c echo $new_path` 37651 37652 input_path="$new_path" 37653 # Check if we need to convert this using DOS-style short mode. If the path 37654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37655 # take no chances and rewrite it. 37656 # Note: m4 eats our [], so we need to use [ and ] instead. 37657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37658 if test "x$has_forbidden_chars" != x; then 37659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37660 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37661 fi 37662 37663 # Output is in $new_path 37664 37665 windows_path="$new_path" 37666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37667 unix_path=`$CYGPATH -u "$windows_path"` 37668 new_path="$unix_path" 37669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37671 new_path="$unix_path" 37672 fi 37673 37674 # remove trailing .exe if any 37675 new_path="${new_path/%.exe/}" 37676 37677 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37678 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37679 fi 37680 37681 else 37682 # We're on a unix platform. Hooray! :) 37683 # First separate the path from the arguments. This will split at the first 37684 # space. 37685 complete="$STRIP" 37686 path="${complete%% *}" 37687 tmp="$complete EOL" 37688 arguments="${tmp#* }" 37689 37690 # Cannot rely on the command "which" here since it doesn't always work. 37691 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37692 if test -z "$is_absolute_path"; then 37693 # Path to executable is not absolute. Find it. 37694 IFS_save="$IFS" 37695 IFS=: 37696 for p in $PATH; do 37697 if test -f "$p/$path" && test -x "$p/$path"; then 37698 new_path="$p/$path" 37699 break 37700 fi 37701 done 37702 IFS="$IFS_save" 37703 else 37704 # This is an absolute path, we can use it without further modifications. 37705 new_path="$path" 37706 fi 37707 37708 if test "x$new_path" = x; then 37709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37710 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37711 has_space=`$ECHO "$complete" | $GREP " "` 37712 if test "x$has_space" != x; then 37713 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37714 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37715 fi 37716 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37717 fi 37718 fi 37719 37720 # Now join together the path and the arguments once again 37721 if test "x$arguments" != xEOL; then 37722 new_complete="$new_path ${arguments% *}" 37723 else 37724 new_complete="$new_path" 37725 fi 37726 37727 if test "x$complete" != "x$new_complete"; then 37728 STRIP="$new_complete" 37729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37730 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37731 fi 37732 37733 37734 37735 # Publish this variable in the help. 37736 37737 37738 if test "x$NM" = x; then 37739 # The variable is not set by user, try to locate tool using the code snippet 37740 if test -n "$ac_tool_prefix"; then 37741 for ac_prog in nm 37742 do 37743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37746 $as_echo_n "checking for $ac_word... " >&6; } 37747 if ${ac_cv_prog_NM+:} false; then : 37748 $as_echo_n "(cached) " >&6 37749 else 37750 if test -n "$NM"; then 37751 ac_cv_prog_NM="$NM" # Let the user override the test. 37752 else 37753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37754 for as_dir in $PATH 37755 do 37756 IFS=$as_save_IFS 37757 test -z "$as_dir" && as_dir=. 37758 for ac_exec_ext in '' $ac_executable_extensions; do 37759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37760 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37762 break 2 37763 fi 37764 done 37765 done 37766 IFS=$as_save_IFS 37767 37768 fi 37769 fi 37770 NM=$ac_cv_prog_NM 37771 if test -n "$NM"; then 37772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37773 $as_echo "$NM" >&6; } 37774 else 37775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37776 $as_echo "no" >&6; } 37777 fi 37778 37779 37780 test -n "$NM" && break 37781 done 37782 fi 37783 if test -z "$NM"; then 37784 ac_ct_NM=$NM 37785 for ac_prog in nm 37786 do 37787 # Extract the first word of "$ac_prog", so it can be a program name with args. 37788 set dummy $ac_prog; ac_word=$2 37789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37790 $as_echo_n "checking for $ac_word... " >&6; } 37791 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37792 $as_echo_n "(cached) " >&6 37793 else 37794 if test -n "$ac_ct_NM"; then 37795 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37796 else 37797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37798 for as_dir in $PATH 37799 do 37800 IFS=$as_save_IFS 37801 test -z "$as_dir" && as_dir=. 37802 for ac_exec_ext in '' $ac_executable_extensions; do 37803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37804 ac_cv_prog_ac_ct_NM="$ac_prog" 37805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37806 break 2 37807 fi 37808 done 37809 done 37810 IFS=$as_save_IFS 37811 37812 fi 37813 fi 37814 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37815 if test -n "$ac_ct_NM"; then 37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37817 $as_echo "$ac_ct_NM" >&6; } 37818 else 37819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37820 $as_echo "no" >&6; } 37821 fi 37822 37823 37824 test -n "$ac_ct_NM" && break 37825 done 37826 37827 if test "x$ac_ct_NM" = x; then 37828 NM="" 37829 else 37830 case $cross_compiling:$ac_tool_warned in 37831 yes:) 37832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37834 ac_tool_warned=yes ;; 37835 esac 37836 NM=$ac_ct_NM 37837 fi 37838 fi 37839 37840 else 37841 # The variable is set, but is it from the command line or the environment? 37842 37843 # Try to remove the string !NM! from our list. 37844 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37845 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37846 # If it failed, the variable was not from the command line. Ignore it, 37847 # but warn the user (except for BASH, which is always set by the calling BASH). 37848 if test "xNM" != xBASH; then 37849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37850 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37851 fi 37852 # Try to locate tool using the code snippet 37853 if test -n "$ac_tool_prefix"; then 37854 for ac_prog in nm 37855 do 37856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37859 $as_echo_n "checking for $ac_word... " >&6; } 37860 if ${ac_cv_prog_NM+:} false; then : 37861 $as_echo_n "(cached) " >&6 37862 else 37863 if test -n "$NM"; then 37864 ac_cv_prog_NM="$NM" # Let the user override the test. 37865 else 37866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37867 for as_dir in $PATH 37868 do 37869 IFS=$as_save_IFS 37870 test -z "$as_dir" && as_dir=. 37871 for ac_exec_ext in '' $ac_executable_extensions; do 37872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37873 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37875 break 2 37876 fi 37877 done 37878 done 37879 IFS=$as_save_IFS 37880 37881 fi 37882 fi 37883 NM=$ac_cv_prog_NM 37884 if test -n "$NM"; then 37885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37886 $as_echo "$NM" >&6; } 37887 else 37888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37889 $as_echo "no" >&6; } 37890 fi 37891 37892 37893 test -n "$NM" && break 37894 done 37895 fi 37896 if test -z "$NM"; then 37897 ac_ct_NM=$NM 37898 for ac_prog in nm 37899 do 37900 # Extract the first word of "$ac_prog", so it can be a program name with args. 37901 set dummy $ac_prog; ac_word=$2 37902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37903 $as_echo_n "checking for $ac_word... " >&6; } 37904 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37905 $as_echo_n "(cached) " >&6 37906 else 37907 if test -n "$ac_ct_NM"; then 37908 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37909 else 37910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37911 for as_dir in $PATH 37912 do 37913 IFS=$as_save_IFS 37914 test -z "$as_dir" && as_dir=. 37915 for ac_exec_ext in '' $ac_executable_extensions; do 37916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37917 ac_cv_prog_ac_ct_NM="$ac_prog" 37918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37919 break 2 37920 fi 37921 done 37922 done 37923 IFS=$as_save_IFS 37924 37925 fi 37926 fi 37927 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37928 if test -n "$ac_ct_NM"; then 37929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37930 $as_echo "$ac_ct_NM" >&6; } 37931 else 37932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37933 $as_echo "no" >&6; } 37934 fi 37935 37936 37937 test -n "$ac_ct_NM" && break 37938 done 37939 37940 if test "x$ac_ct_NM" = x; then 37941 NM="" 37942 else 37943 case $cross_compiling:$ac_tool_warned in 37944 yes:) 37945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37947 ac_tool_warned=yes ;; 37948 esac 37949 NM=$ac_ct_NM 37950 fi 37951 fi 37952 37953 else 37954 # If it succeeded, then it was overridden by the user. We will use it 37955 # for the tool. 37956 37957 # First remove it from the list of overridden variables, so we can test 37958 # for unknown variables in the end. 37959 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37960 37961 # Check if the provided tool contains a complete path. 37962 tool_specified="$NM" 37963 tool_basename="${tool_specified##*/}" 37964 if test "x$tool_basename" = "x$tool_specified"; then 37965 # A command without a complete path is provided, search $PATH. 37966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37967 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37968 # Extract the first word of "$tool_basename", so it can be a program name with args. 37969 set dummy $tool_basename; ac_word=$2 37970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37971 $as_echo_n "checking for $ac_word... " >&6; } 37972 if ${ac_cv_path_NM+:} false; then : 37973 $as_echo_n "(cached) " >&6 37974 else 37975 case $NM in 37976 [\\/]* | ?:[\\/]*) 37977 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37978 ;; 37979 *) 37980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37981 for as_dir in $PATH 37982 do 37983 IFS=$as_save_IFS 37984 test -z "$as_dir" && as_dir=. 37985 for ac_exec_ext in '' $ac_executable_extensions; do 37986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37987 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37989 break 2 37990 fi 37991 done 37992 done 37993 IFS=$as_save_IFS 37994 37995 ;; 37996 esac 37997 fi 37998 NM=$ac_cv_path_NM 37999 if test -n "$NM"; then 38000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38001 $as_echo "$NM" >&6; } 38002 else 38003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38004 $as_echo "no" >&6; } 38005 fi 38006 38007 38008 if test "x$NM" = x; then 38009 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38010 fi 38011 else 38012 # Otherwise we believe it is a complete path. Use it as it is. 38013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 38014 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 38015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 38016 $as_echo_n "checking for NM... " >&6; } 38017 if test ! -x "$tool_specified"; then 38018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38019 $as_echo "not found" >&6; } 38020 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 38021 fi 38022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38023 $as_echo "$tool_specified" >&6; } 38024 fi 38025 fi 38026 fi 38027 38028 38029 38030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38031 38032 # First separate the path from the arguments. This will split at the first 38033 # space. 38034 complete="$NM" 38035 path="${complete%% *}" 38036 tmp="$complete EOL" 38037 arguments="${tmp#* }" 38038 38039 # Input might be given as Windows format, start by converting to 38040 # unix format. 38041 new_path=`$CYGPATH -u "$path"` 38042 38043 # Now try to locate executable using which 38044 new_path=`$WHICH "$new_path" 2> /dev/null` 38045 # bat and cmd files are not always considered executable in cygwin causing which 38046 # to not find them 38047 if test "x$new_path" = x \ 38048 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38049 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38050 new_path=`$CYGPATH -u "$path"` 38051 fi 38052 if test "x$new_path" = x; then 38053 # Oops. Which didn't find the executable. 38054 # The splitting of arguments from the executable at a space might have been incorrect, 38055 # since paths with space are more likely in Windows. Give it another try with the whole 38056 # argument. 38057 path="$complete" 38058 arguments="EOL" 38059 new_path=`$CYGPATH -u "$path"` 38060 new_path=`$WHICH "$new_path" 2> /dev/null` 38061 # bat and cmd files are not always considered executable in cygwin causing which 38062 # to not find them 38063 if test "x$new_path" = x \ 38064 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38065 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38066 new_path=`$CYGPATH -u "$path"` 38067 fi 38068 if test "x$new_path" = x; then 38069 # It's still not found. Now this is an unrecoverable error. 38070 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38071 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38072 has_space=`$ECHO "$complete" | $GREP " "` 38073 if test "x$has_space" != x; then 38074 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38075 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38076 fi 38077 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38078 fi 38079 fi 38080 38081 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38082 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38083 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38084 # "foo.exe" is OK but "foo" is an error. 38085 # 38086 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38087 # It is also a way to make sure we got the proper file name for the real test later on. 38088 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38089 if test "x$test_shortpath" = x; then 38090 # Short path failed, file does not exist as specified. 38091 # Try adding .exe or .cmd 38092 if test -f "${new_path}.exe"; then 38093 input_to_shortpath="${new_path}.exe" 38094 elif test -f "${new_path}.cmd"; then 38095 input_to_shortpath="${new_path}.cmd" 38096 else 38097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38098 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38099 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38100 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38101 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38102 fi 38103 else 38104 input_to_shortpath="$new_path" 38105 fi 38106 38107 # Call helper function which possibly converts this using DOS-style short mode. 38108 # If so, the updated path is stored in $new_path. 38109 new_path="$input_to_shortpath" 38110 38111 input_path="$input_to_shortpath" 38112 # Check if we need to convert this using DOS-style short mode. If the path 38113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38114 # take no chances and rewrite it. 38115 # Note: m4 eats our [], so we need to use [ and ] instead. 38116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38117 if test "x$has_forbidden_chars" != x; then 38118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38119 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38120 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38121 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38122 # Going to short mode and back again did indeed matter. Since short mode is 38123 # case insensitive, let's make it lowercase to improve readability. 38124 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38125 # Now convert it back to Unix-stile (cygpath) 38126 input_path=`$CYGPATH -u "$shortmode_path"` 38127 new_path="$input_path" 38128 fi 38129 fi 38130 38131 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38132 if test "x$test_cygdrive_prefix" = x; then 38133 # As a simple fix, exclude /usr/bin since it's not a real path. 38134 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38135 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38136 # a path prefixed by /cygdrive for fixpath to work. 38137 new_path="$CYGWIN_ROOT_PATH$input_path" 38138 fi 38139 fi 38140 38141 # remove trailing .exe if any 38142 new_path="${new_path/%.exe/}" 38143 38144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38145 38146 # First separate the path from the arguments. This will split at the first 38147 # space. 38148 complete="$NM" 38149 path="${complete%% *}" 38150 tmp="$complete EOL" 38151 arguments="${tmp#* }" 38152 38153 # Input might be given as Windows format, start by converting to 38154 # unix format. 38155 new_path="$path" 38156 38157 windows_path="$new_path" 38158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38159 unix_path=`$CYGPATH -u "$windows_path"` 38160 new_path="$unix_path" 38161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38163 new_path="$unix_path" 38164 fi 38165 38166 38167 # Now try to locate executable using which 38168 new_path=`$WHICH "$new_path" 2> /dev/null` 38169 38170 if test "x$new_path" = x; then 38171 # Oops. Which didn't find the executable. 38172 # The splitting of arguments from the executable at a space might have been incorrect, 38173 # since paths with space are more likely in Windows. Give it another try with the whole 38174 # argument. 38175 path="$complete" 38176 arguments="EOL" 38177 new_path="$path" 38178 38179 windows_path="$new_path" 38180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38181 unix_path=`$CYGPATH -u "$windows_path"` 38182 new_path="$unix_path" 38183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38185 new_path="$unix_path" 38186 fi 38187 38188 38189 new_path=`$WHICH "$new_path" 2> /dev/null` 38190 # bat and cmd files are not always considered executable in MSYS causing which 38191 # to not find them 38192 if test "x$new_path" = x \ 38193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38195 new_path="$path" 38196 38197 windows_path="$new_path" 38198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38199 unix_path=`$CYGPATH -u "$windows_path"` 38200 new_path="$unix_path" 38201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38202 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38203 new_path="$unix_path" 38204 fi 38205 38206 fi 38207 38208 if test "x$new_path" = x; then 38209 # It's still not found. Now this is an unrecoverable error. 38210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38211 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38212 has_space=`$ECHO "$complete" | $GREP " "` 38213 if test "x$has_space" != x; then 38214 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38215 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38216 fi 38217 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38218 fi 38219 fi 38220 38221 # Now new_path has a complete unix path to the binary 38222 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38223 # Keep paths in /bin as-is, but remove trailing .exe if any 38224 new_path="${new_path/%.exe/}" 38225 # Do not save /bin paths to all_fixpath_prefixes! 38226 else 38227 # Not in mixed or Windows style, start by that. 38228 new_path=`cmd //c echo $new_path` 38229 38230 input_path="$new_path" 38231 # Check if we need to convert this using DOS-style short mode. If the path 38232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38233 # take no chances and rewrite it. 38234 # Note: m4 eats our [], so we need to use [ and ] instead. 38235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38236 if test "x$has_forbidden_chars" != x; then 38237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38238 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38239 fi 38240 38241 # Output is in $new_path 38242 38243 windows_path="$new_path" 38244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38245 unix_path=`$CYGPATH -u "$windows_path"` 38246 new_path="$unix_path" 38247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38248 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38249 new_path="$unix_path" 38250 fi 38251 38252 # remove trailing .exe if any 38253 new_path="${new_path/%.exe/}" 38254 38255 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38256 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38257 fi 38258 38259 else 38260 # We're on a unix platform. Hooray! :) 38261 # First separate the path from the arguments. This will split at the first 38262 # space. 38263 complete="$NM" 38264 path="${complete%% *}" 38265 tmp="$complete EOL" 38266 arguments="${tmp#* }" 38267 38268 # Cannot rely on the command "which" here since it doesn't always work. 38269 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38270 if test -z "$is_absolute_path"; then 38271 # Path to executable is not absolute. Find it. 38272 IFS_save="$IFS" 38273 IFS=: 38274 for p in $PATH; do 38275 if test -f "$p/$path" && test -x "$p/$path"; then 38276 new_path="$p/$path" 38277 break 38278 fi 38279 done 38280 IFS="$IFS_save" 38281 else 38282 # This is an absolute path, we can use it without further modifications. 38283 new_path="$path" 38284 fi 38285 38286 if test "x$new_path" = x; then 38287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38288 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38289 has_space=`$ECHO "$complete" | $GREP " "` 38290 if test "x$has_space" != x; then 38291 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38292 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38293 fi 38294 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38295 fi 38296 fi 38297 38298 # Now join together the path and the arguments once again 38299 if test "x$arguments" != xEOL; then 38300 new_complete="$new_path ${arguments% *}" 38301 else 38302 new_complete="$new_path" 38303 fi 38304 38305 if test "x$complete" != "x$new_complete"; then 38306 NM="$new_complete" 38307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38308 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38309 fi 38310 38311 GNM="$NM" 38312 38313 fi 38314 38315 # objcopy is used for moving debug symbols to separate files when 38316 # full debug symbols are enabled. 38317 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38318 38319 38320 # Publish this variable in the help. 38321 38322 38323 if test "x$OBJCOPY" = x; then 38324 # The variable is not set by user, try to locate tool using the code snippet 38325 if test -n "$ac_tool_prefix"; then 38326 for ac_prog in gobjcopy objcopy 38327 do 38328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38331 $as_echo_n "checking for $ac_word... " >&6; } 38332 if ${ac_cv_prog_OBJCOPY+:} false; then : 38333 $as_echo_n "(cached) " >&6 38334 else 38335 if test -n "$OBJCOPY"; then 38336 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38337 else 38338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38339 for as_dir in $PATH 38340 do 38341 IFS=$as_save_IFS 38342 test -z "$as_dir" && as_dir=. 38343 for ac_exec_ext in '' $ac_executable_extensions; do 38344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38345 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38347 break 2 38348 fi 38349 done 38350 done 38351 IFS=$as_save_IFS 38352 38353 fi 38354 fi 38355 OBJCOPY=$ac_cv_prog_OBJCOPY 38356 if test -n "$OBJCOPY"; then 38357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38358 $as_echo "$OBJCOPY" >&6; } 38359 else 38360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38361 $as_echo "no" >&6; } 38362 fi 38363 38364 38365 test -n "$OBJCOPY" && break 38366 done 38367 fi 38368 if test -z "$OBJCOPY"; then 38369 ac_ct_OBJCOPY=$OBJCOPY 38370 for ac_prog in gobjcopy objcopy 38371 do 38372 # Extract the first word of "$ac_prog", so it can be a program name with args. 38373 set dummy $ac_prog; ac_word=$2 38374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38375 $as_echo_n "checking for $ac_word... " >&6; } 38376 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38377 $as_echo_n "(cached) " >&6 38378 else 38379 if test -n "$ac_ct_OBJCOPY"; then 38380 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38381 else 38382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38383 for as_dir in $PATH 38384 do 38385 IFS=$as_save_IFS 38386 test -z "$as_dir" && as_dir=. 38387 for ac_exec_ext in '' $ac_executable_extensions; do 38388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38389 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38391 break 2 38392 fi 38393 done 38394 done 38395 IFS=$as_save_IFS 38396 38397 fi 38398 fi 38399 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38400 if test -n "$ac_ct_OBJCOPY"; then 38401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38402 $as_echo "$ac_ct_OBJCOPY" >&6; } 38403 else 38404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38405 $as_echo "no" >&6; } 38406 fi 38407 38408 38409 test -n "$ac_ct_OBJCOPY" && break 38410 done 38411 38412 if test "x$ac_ct_OBJCOPY" = x; then 38413 OBJCOPY="" 38414 else 38415 case $cross_compiling:$ac_tool_warned in 38416 yes:) 38417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38419 ac_tool_warned=yes ;; 38420 esac 38421 OBJCOPY=$ac_ct_OBJCOPY 38422 fi 38423 fi 38424 38425 else 38426 # The variable is set, but is it from the command line or the environment? 38427 38428 # Try to remove the string !OBJCOPY! from our list. 38429 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38430 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38431 # If it failed, the variable was not from the command line. Ignore it, 38432 # but warn the user (except for BASH, which is always set by the calling BASH). 38433 if test "xOBJCOPY" != xBASH; then 38434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38435 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38436 fi 38437 # Try to locate tool using the code snippet 38438 if test -n "$ac_tool_prefix"; then 38439 for ac_prog in gobjcopy objcopy 38440 do 38441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38444 $as_echo_n "checking for $ac_word... " >&6; } 38445 if ${ac_cv_prog_OBJCOPY+:} false; then : 38446 $as_echo_n "(cached) " >&6 38447 else 38448 if test -n "$OBJCOPY"; then 38449 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38450 else 38451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38452 for as_dir in $PATH 38453 do 38454 IFS=$as_save_IFS 38455 test -z "$as_dir" && as_dir=. 38456 for ac_exec_ext in '' $ac_executable_extensions; do 38457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38458 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38460 break 2 38461 fi 38462 done 38463 done 38464 IFS=$as_save_IFS 38465 38466 fi 38467 fi 38468 OBJCOPY=$ac_cv_prog_OBJCOPY 38469 if test -n "$OBJCOPY"; then 38470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38471 $as_echo "$OBJCOPY" >&6; } 38472 else 38473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38474 $as_echo "no" >&6; } 38475 fi 38476 38477 38478 test -n "$OBJCOPY" && break 38479 done 38480 fi 38481 if test -z "$OBJCOPY"; then 38482 ac_ct_OBJCOPY=$OBJCOPY 38483 for ac_prog in gobjcopy objcopy 38484 do 38485 # Extract the first word of "$ac_prog", so it can be a program name with args. 38486 set dummy $ac_prog; ac_word=$2 38487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38488 $as_echo_n "checking for $ac_word... " >&6; } 38489 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38490 $as_echo_n "(cached) " >&6 38491 else 38492 if test -n "$ac_ct_OBJCOPY"; then 38493 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38494 else 38495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38496 for as_dir in $PATH 38497 do 38498 IFS=$as_save_IFS 38499 test -z "$as_dir" && as_dir=. 38500 for ac_exec_ext in '' $ac_executable_extensions; do 38501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38502 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38504 break 2 38505 fi 38506 done 38507 done 38508 IFS=$as_save_IFS 38509 38510 fi 38511 fi 38512 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38513 if test -n "$ac_ct_OBJCOPY"; then 38514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38515 $as_echo "$ac_ct_OBJCOPY" >&6; } 38516 else 38517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38518 $as_echo "no" >&6; } 38519 fi 38520 38521 38522 test -n "$ac_ct_OBJCOPY" && break 38523 done 38524 38525 if test "x$ac_ct_OBJCOPY" = x; then 38526 OBJCOPY="" 38527 else 38528 case $cross_compiling:$ac_tool_warned in 38529 yes:) 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38532 ac_tool_warned=yes ;; 38533 esac 38534 OBJCOPY=$ac_ct_OBJCOPY 38535 fi 38536 fi 38537 38538 else 38539 # If it succeeded, then it was overridden by the user. We will use it 38540 # for the tool. 38541 38542 # First remove it from the list of overridden variables, so we can test 38543 # for unknown variables in the end. 38544 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38545 38546 # Check if the provided tool contains a complete path. 38547 tool_specified="$OBJCOPY" 38548 tool_basename="${tool_specified##*/}" 38549 if test "x$tool_basename" = "x$tool_specified"; then 38550 # A command without a complete path is provided, search $PATH. 38551 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38552 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38553 # Extract the first word of "$tool_basename", so it can be a program name with args. 38554 set dummy $tool_basename; ac_word=$2 38555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38556 $as_echo_n "checking for $ac_word... " >&6; } 38557 if ${ac_cv_path_OBJCOPY+:} false; then : 38558 $as_echo_n "(cached) " >&6 38559 else 38560 case $OBJCOPY in 38561 [\\/]* | ?:[\\/]*) 38562 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38563 ;; 38564 *) 38565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38566 for as_dir in $PATH 38567 do 38568 IFS=$as_save_IFS 38569 test -z "$as_dir" && as_dir=. 38570 for ac_exec_ext in '' $ac_executable_extensions; do 38571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38572 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38574 break 2 38575 fi 38576 done 38577 done 38578 IFS=$as_save_IFS 38579 38580 ;; 38581 esac 38582 fi 38583 OBJCOPY=$ac_cv_path_OBJCOPY 38584 if test -n "$OBJCOPY"; then 38585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38586 $as_echo "$OBJCOPY" >&6; } 38587 else 38588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38589 $as_echo "no" >&6; } 38590 fi 38591 38592 38593 if test "x$OBJCOPY" = x; then 38594 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38595 fi 38596 else 38597 # Otherwise we believe it is a complete path. Use it as it is. 38598 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38599 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38601 $as_echo_n "checking for OBJCOPY... " >&6; } 38602 if test ! -x "$tool_specified"; then 38603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38604 $as_echo "not found" >&6; } 38605 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38606 fi 38607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38608 $as_echo "$tool_specified" >&6; } 38609 fi 38610 fi 38611 fi 38612 38613 38614 # Only call fixup if objcopy was found. 38615 if test -n "$OBJCOPY"; then 38616 38617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38618 38619 # First separate the path from the arguments. This will split at the first 38620 # space. 38621 complete="$OBJCOPY" 38622 path="${complete%% *}" 38623 tmp="$complete EOL" 38624 arguments="${tmp#* }" 38625 38626 # Input might be given as Windows format, start by converting to 38627 # unix format. 38628 new_path=`$CYGPATH -u "$path"` 38629 38630 # Now try to locate executable using which 38631 new_path=`$WHICH "$new_path" 2> /dev/null` 38632 # bat and cmd files are not always considered executable in cygwin causing which 38633 # to not find them 38634 if test "x$new_path" = x \ 38635 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38636 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38637 new_path=`$CYGPATH -u "$path"` 38638 fi 38639 if test "x$new_path" = x; then 38640 # Oops. Which didn't find the executable. 38641 # The splitting of arguments from the executable at a space might have been incorrect, 38642 # since paths with space are more likely in Windows. Give it another try with the whole 38643 # argument. 38644 path="$complete" 38645 arguments="EOL" 38646 new_path=`$CYGPATH -u "$path"` 38647 new_path=`$WHICH "$new_path" 2> /dev/null` 38648 # bat and cmd files are not always considered executable in cygwin causing which 38649 # to not find them 38650 if test "x$new_path" = x \ 38651 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38652 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38653 new_path=`$CYGPATH -u "$path"` 38654 fi 38655 if test "x$new_path" = x; then 38656 # It's still not found. Now this is an unrecoverable error. 38657 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38658 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38659 has_space=`$ECHO "$complete" | $GREP " "` 38660 if test "x$has_space" != x; then 38661 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38662 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38663 fi 38664 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38665 fi 38666 fi 38667 38668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38671 # "foo.exe" is OK but "foo" is an error. 38672 # 38673 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38674 # It is also a way to make sure we got the proper file name for the real test later on. 38675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38676 if test "x$test_shortpath" = x; then 38677 # Short path failed, file does not exist as specified. 38678 # Try adding .exe or .cmd 38679 if test -f "${new_path}.exe"; then 38680 input_to_shortpath="${new_path}.exe" 38681 elif test -f "${new_path}.cmd"; then 38682 input_to_shortpath="${new_path}.cmd" 38683 else 38684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38685 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38686 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38687 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38688 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38689 fi 38690 else 38691 input_to_shortpath="$new_path" 38692 fi 38693 38694 # Call helper function which possibly converts this using DOS-style short mode. 38695 # If so, the updated path is stored in $new_path. 38696 new_path="$input_to_shortpath" 38697 38698 input_path="$input_to_shortpath" 38699 # Check if we need to convert this using DOS-style short mode. If the path 38700 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38701 # take no chances and rewrite it. 38702 # Note: m4 eats our [], so we need to use [ and ] instead. 38703 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38704 if test "x$has_forbidden_chars" != x; then 38705 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38706 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38707 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38708 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38709 # Going to short mode and back again did indeed matter. Since short mode is 38710 # case insensitive, let's make it lowercase to improve readability. 38711 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38712 # Now convert it back to Unix-stile (cygpath) 38713 input_path=`$CYGPATH -u "$shortmode_path"` 38714 new_path="$input_path" 38715 fi 38716 fi 38717 38718 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38719 if test "x$test_cygdrive_prefix" = x; then 38720 # As a simple fix, exclude /usr/bin since it's not a real path. 38721 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38722 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38723 # a path prefixed by /cygdrive for fixpath to work. 38724 new_path="$CYGWIN_ROOT_PATH$input_path" 38725 fi 38726 fi 38727 38728 # remove trailing .exe if any 38729 new_path="${new_path/%.exe/}" 38730 38731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38732 38733 # First separate the path from the arguments. This will split at the first 38734 # space. 38735 complete="$OBJCOPY" 38736 path="${complete%% *}" 38737 tmp="$complete EOL" 38738 arguments="${tmp#* }" 38739 38740 # Input might be given as Windows format, start by converting to 38741 # unix format. 38742 new_path="$path" 38743 38744 windows_path="$new_path" 38745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38746 unix_path=`$CYGPATH -u "$windows_path"` 38747 new_path="$unix_path" 38748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38750 new_path="$unix_path" 38751 fi 38752 38753 38754 # Now try to locate executable using which 38755 new_path=`$WHICH "$new_path" 2> /dev/null` 38756 38757 if test "x$new_path" = x; then 38758 # Oops. Which didn't find the executable. 38759 # The splitting of arguments from the executable at a space might have been incorrect, 38760 # since paths with space are more likely in Windows. Give it another try with the whole 38761 # argument. 38762 path="$complete" 38763 arguments="EOL" 38764 new_path="$path" 38765 38766 windows_path="$new_path" 38767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38768 unix_path=`$CYGPATH -u "$windows_path"` 38769 new_path="$unix_path" 38770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38771 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38772 new_path="$unix_path" 38773 fi 38774 38775 38776 new_path=`$WHICH "$new_path" 2> /dev/null` 38777 # bat and cmd files are not always considered executable in MSYS causing which 38778 # to not find them 38779 if test "x$new_path" = x \ 38780 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38781 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38782 new_path="$path" 38783 38784 windows_path="$new_path" 38785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38786 unix_path=`$CYGPATH -u "$windows_path"` 38787 new_path="$unix_path" 38788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38790 new_path="$unix_path" 38791 fi 38792 38793 fi 38794 38795 if test "x$new_path" = x; then 38796 # It's still not found. Now this is an unrecoverable error. 38797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38798 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38799 has_space=`$ECHO "$complete" | $GREP " "` 38800 if test "x$has_space" != x; then 38801 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38802 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38803 fi 38804 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38805 fi 38806 fi 38807 38808 # Now new_path has a complete unix path to the binary 38809 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38810 # Keep paths in /bin as-is, but remove trailing .exe if any 38811 new_path="${new_path/%.exe/}" 38812 # Do not save /bin paths to all_fixpath_prefixes! 38813 else 38814 # Not in mixed or Windows style, start by that. 38815 new_path=`cmd //c echo $new_path` 38816 38817 input_path="$new_path" 38818 # Check if we need to convert this using DOS-style short mode. If the path 38819 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38820 # take no chances and rewrite it. 38821 # Note: m4 eats our [], so we need to use [ and ] instead. 38822 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38823 if test "x$has_forbidden_chars" != x; then 38824 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38825 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38826 fi 38827 38828 # Output is in $new_path 38829 38830 windows_path="$new_path" 38831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38832 unix_path=`$CYGPATH -u "$windows_path"` 38833 new_path="$unix_path" 38834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38836 new_path="$unix_path" 38837 fi 38838 38839 # remove trailing .exe if any 38840 new_path="${new_path/%.exe/}" 38841 38842 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38843 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38844 fi 38845 38846 else 38847 # We're on a unix platform. Hooray! :) 38848 # First separate the path from the arguments. This will split at the first 38849 # space. 38850 complete="$OBJCOPY" 38851 path="${complete%% *}" 38852 tmp="$complete EOL" 38853 arguments="${tmp#* }" 38854 38855 # Cannot rely on the command "which" here since it doesn't always work. 38856 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38857 if test -z "$is_absolute_path"; then 38858 # Path to executable is not absolute. Find it. 38859 IFS_save="$IFS" 38860 IFS=: 38861 for p in $PATH; do 38862 if test -f "$p/$path" && test -x "$p/$path"; then 38863 new_path="$p/$path" 38864 break 38865 fi 38866 done 38867 IFS="$IFS_save" 38868 else 38869 # This is an absolute path, we can use it without further modifications. 38870 new_path="$path" 38871 fi 38872 38873 if test "x$new_path" = x; then 38874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38875 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38876 has_space=`$ECHO "$complete" | $GREP " "` 38877 if test "x$has_space" != x; then 38878 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38879 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38880 fi 38881 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38882 fi 38883 fi 38884 38885 # Now join together the path and the arguments once again 38886 if test "x$arguments" != xEOL; then 38887 new_complete="$new_path ${arguments% *}" 38888 else 38889 new_complete="$new_path" 38890 fi 38891 38892 if test "x$complete" != "x$new_complete"; then 38893 OBJCOPY="$new_complete" 38894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38895 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38896 fi 38897 38898 fi 38899 fi 38900 38901 38902 38903 # Publish this variable in the help. 38904 38905 38906 if test "x$OBJDUMP" = x; then 38907 # The variable is not set by user, try to locate tool using the code snippet 38908 if test -n "$ac_tool_prefix"; then 38909 for ac_prog in gobjdump objdump 38910 do 38911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38914 $as_echo_n "checking for $ac_word... " >&6; } 38915 if ${ac_cv_prog_OBJDUMP+:} false; then : 38916 $as_echo_n "(cached) " >&6 38917 else 38918 if test -n "$OBJDUMP"; then 38919 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38920 else 38921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38922 for as_dir in $PATH 38923 do 38924 IFS=$as_save_IFS 38925 test -z "$as_dir" && as_dir=. 38926 for ac_exec_ext in '' $ac_executable_extensions; do 38927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38928 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38930 break 2 38931 fi 38932 done 38933 done 38934 IFS=$as_save_IFS 38935 38936 fi 38937 fi 38938 OBJDUMP=$ac_cv_prog_OBJDUMP 38939 if test -n "$OBJDUMP"; then 38940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38941 $as_echo "$OBJDUMP" >&6; } 38942 else 38943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38944 $as_echo "no" >&6; } 38945 fi 38946 38947 38948 test -n "$OBJDUMP" && break 38949 done 38950 fi 38951 if test -z "$OBJDUMP"; then 38952 ac_ct_OBJDUMP=$OBJDUMP 38953 for ac_prog in gobjdump objdump 38954 do 38955 # Extract the first word of "$ac_prog", so it can be a program name with args. 38956 set dummy $ac_prog; ac_word=$2 38957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38958 $as_echo_n "checking for $ac_word... " >&6; } 38959 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38960 $as_echo_n "(cached) " >&6 38961 else 38962 if test -n "$ac_ct_OBJDUMP"; then 38963 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38964 else 38965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38966 for as_dir in $PATH 38967 do 38968 IFS=$as_save_IFS 38969 test -z "$as_dir" && as_dir=. 38970 for ac_exec_ext in '' $ac_executable_extensions; do 38971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38972 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38974 break 2 38975 fi 38976 done 38977 done 38978 IFS=$as_save_IFS 38979 38980 fi 38981 fi 38982 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38983 if test -n "$ac_ct_OBJDUMP"; then 38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38985 $as_echo "$ac_ct_OBJDUMP" >&6; } 38986 else 38987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38988 $as_echo "no" >&6; } 38989 fi 38990 38991 38992 test -n "$ac_ct_OBJDUMP" && break 38993 done 38994 38995 if test "x$ac_ct_OBJDUMP" = x; then 38996 OBJDUMP="" 38997 else 38998 case $cross_compiling:$ac_tool_warned in 38999 yes:) 39000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39002 ac_tool_warned=yes ;; 39003 esac 39004 OBJDUMP=$ac_ct_OBJDUMP 39005 fi 39006 fi 39007 39008 else 39009 # The variable is set, but is it from the command line or the environment? 39010 39011 # Try to remove the string !OBJDUMP! from our list. 39012 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 39013 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39014 # If it failed, the variable was not from the command line. Ignore it, 39015 # but warn the user (except for BASH, which is always set by the calling BASH). 39016 if test "xOBJDUMP" != xBASH; then 39017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 39018 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 39019 fi 39020 # Try to locate tool using the code snippet 39021 if test -n "$ac_tool_prefix"; then 39022 for ac_prog in gobjdump objdump 39023 do 39024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39027 $as_echo_n "checking for $ac_word... " >&6; } 39028 if ${ac_cv_prog_OBJDUMP+:} false; then : 39029 $as_echo_n "(cached) " >&6 39030 else 39031 if test -n "$OBJDUMP"; then 39032 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 39033 else 39034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39035 for as_dir in $PATH 39036 do 39037 IFS=$as_save_IFS 39038 test -z "$as_dir" && as_dir=. 39039 for ac_exec_ext in '' $ac_executable_extensions; do 39040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39041 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 39042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39043 break 2 39044 fi 39045 done 39046 done 39047 IFS=$as_save_IFS 39048 39049 fi 39050 fi 39051 OBJDUMP=$ac_cv_prog_OBJDUMP 39052 if test -n "$OBJDUMP"; then 39053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39054 $as_echo "$OBJDUMP" >&6; } 39055 else 39056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39057 $as_echo "no" >&6; } 39058 fi 39059 39060 39061 test -n "$OBJDUMP" && break 39062 done 39063 fi 39064 if test -z "$OBJDUMP"; then 39065 ac_ct_OBJDUMP=$OBJDUMP 39066 for ac_prog in gobjdump objdump 39067 do 39068 # Extract the first word of "$ac_prog", so it can be a program name with args. 39069 set dummy $ac_prog; ac_word=$2 39070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39071 $as_echo_n "checking for $ac_word... " >&6; } 39072 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 39073 $as_echo_n "(cached) " >&6 39074 else 39075 if test -n "$ac_ct_OBJDUMP"; then 39076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39077 else 39078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39079 for as_dir in $PATH 39080 do 39081 IFS=$as_save_IFS 39082 test -z "$as_dir" && as_dir=. 39083 for ac_exec_ext in '' $ac_executable_extensions; do 39084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39085 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39087 break 2 39088 fi 39089 done 39090 done 39091 IFS=$as_save_IFS 39092 39093 fi 39094 fi 39095 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39096 if test -n "$ac_ct_OBJDUMP"; then 39097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39098 $as_echo "$ac_ct_OBJDUMP" >&6; } 39099 else 39100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39101 $as_echo "no" >&6; } 39102 fi 39103 39104 39105 test -n "$ac_ct_OBJDUMP" && break 39106 done 39107 39108 if test "x$ac_ct_OBJDUMP" = x; then 39109 OBJDUMP="" 39110 else 39111 case $cross_compiling:$ac_tool_warned in 39112 yes:) 39113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39115 ac_tool_warned=yes ;; 39116 esac 39117 OBJDUMP=$ac_ct_OBJDUMP 39118 fi 39119 fi 39120 39121 else 39122 # If it succeeded, then it was overridden by the user. We will use it 39123 # for the tool. 39124 39125 # First remove it from the list of overridden variables, so we can test 39126 # for unknown variables in the end. 39127 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39128 39129 # Check if the provided tool contains a complete path. 39130 tool_specified="$OBJDUMP" 39131 tool_basename="${tool_specified##*/}" 39132 if test "x$tool_basename" = "x$tool_specified"; then 39133 # A command without a complete path is provided, search $PATH. 39134 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 39135 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 39136 # Extract the first word of "$tool_basename", so it can be a program name with args. 39137 set dummy $tool_basename; ac_word=$2 39138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39139 $as_echo_n "checking for $ac_word... " >&6; } 39140 if ${ac_cv_path_OBJDUMP+:} false; then : 39141 $as_echo_n "(cached) " >&6 39142 else 39143 case $OBJDUMP in 39144 [\\/]* | ?:[\\/]*) 39145 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 39146 ;; 39147 *) 39148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39149 for as_dir in $PATH 39150 do 39151 IFS=$as_save_IFS 39152 test -z "$as_dir" && as_dir=. 39153 for ac_exec_ext in '' $ac_executable_extensions; do 39154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39155 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39157 break 2 39158 fi 39159 done 39160 done 39161 IFS=$as_save_IFS 39162 39163 ;; 39164 esac 39165 fi 39166 OBJDUMP=$ac_cv_path_OBJDUMP 39167 if test -n "$OBJDUMP"; then 39168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39169 $as_echo "$OBJDUMP" >&6; } 39170 else 39171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39172 $as_echo "no" >&6; } 39173 fi 39174 39175 39176 if test "x$OBJDUMP" = x; then 39177 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39178 fi 39179 else 39180 # Otherwise we believe it is a complete path. Use it as it is. 39181 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39182 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39184 $as_echo_n "checking for OBJDUMP... " >&6; } 39185 if test ! -x "$tool_specified"; then 39186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39187 $as_echo "not found" >&6; } 39188 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39189 fi 39190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39191 $as_echo "$tool_specified" >&6; } 39192 fi 39193 fi 39194 fi 39195 39196 39197 if test "x$OBJDUMP" != x; then 39198 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39199 # bails if argument is missing. 39200 39201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39202 39203 # First separate the path from the arguments. This will split at the first 39204 # space. 39205 complete="$OBJDUMP" 39206 path="${complete%% *}" 39207 tmp="$complete EOL" 39208 arguments="${tmp#* }" 39209 39210 # Input might be given as Windows format, start by converting to 39211 # unix format. 39212 new_path=`$CYGPATH -u "$path"` 39213 39214 # Now try to locate executable using which 39215 new_path=`$WHICH "$new_path" 2> /dev/null` 39216 # bat and cmd files are not always considered executable in cygwin causing which 39217 # to not find them 39218 if test "x$new_path" = x \ 39219 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39220 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39221 new_path=`$CYGPATH -u "$path"` 39222 fi 39223 if test "x$new_path" = x; then 39224 # Oops. Which didn't find the executable. 39225 # The splitting of arguments from the executable at a space might have been incorrect, 39226 # since paths with space are more likely in Windows. Give it another try with the whole 39227 # argument. 39228 path="$complete" 39229 arguments="EOL" 39230 new_path=`$CYGPATH -u "$path"` 39231 new_path=`$WHICH "$new_path" 2> /dev/null` 39232 # bat and cmd files are not always considered executable in cygwin causing which 39233 # to not find them 39234 if test "x$new_path" = x \ 39235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39237 new_path=`$CYGPATH -u "$path"` 39238 fi 39239 if test "x$new_path" = x; then 39240 # It's still not found. Now this is an unrecoverable error. 39241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39242 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39243 has_space=`$ECHO "$complete" | $GREP " "` 39244 if test "x$has_space" != x; then 39245 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39246 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39247 fi 39248 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39249 fi 39250 fi 39251 39252 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39253 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39254 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39255 # "foo.exe" is OK but "foo" is an error. 39256 # 39257 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39258 # It is also a way to make sure we got the proper file name for the real test later on. 39259 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39260 if test "x$test_shortpath" = x; then 39261 # Short path failed, file does not exist as specified. 39262 # Try adding .exe or .cmd 39263 if test -f "${new_path}.exe"; then 39264 input_to_shortpath="${new_path}.exe" 39265 elif test -f "${new_path}.cmd"; then 39266 input_to_shortpath="${new_path}.cmd" 39267 else 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39269 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39270 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39271 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39272 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39273 fi 39274 else 39275 input_to_shortpath="$new_path" 39276 fi 39277 39278 # Call helper function which possibly converts this using DOS-style short mode. 39279 # If so, the updated path is stored in $new_path. 39280 new_path="$input_to_shortpath" 39281 39282 input_path="$input_to_shortpath" 39283 # Check if we need to convert this using DOS-style short mode. If the path 39284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39285 # take no chances and rewrite it. 39286 # Note: m4 eats our [], so we need to use [ and ] instead. 39287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39288 if test "x$has_forbidden_chars" != x; then 39289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39290 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39291 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39292 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39293 # Going to short mode and back again did indeed matter. Since short mode is 39294 # case insensitive, let's make it lowercase to improve readability. 39295 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39296 # Now convert it back to Unix-stile (cygpath) 39297 input_path=`$CYGPATH -u "$shortmode_path"` 39298 new_path="$input_path" 39299 fi 39300 fi 39301 39302 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39303 if test "x$test_cygdrive_prefix" = x; then 39304 # As a simple fix, exclude /usr/bin since it's not a real path. 39305 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39306 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39307 # a path prefixed by /cygdrive for fixpath to work. 39308 new_path="$CYGWIN_ROOT_PATH$input_path" 39309 fi 39310 fi 39311 39312 # remove trailing .exe if any 39313 new_path="${new_path/%.exe/}" 39314 39315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39316 39317 # First separate the path from the arguments. This will split at the first 39318 # space. 39319 complete="$OBJDUMP" 39320 path="${complete%% *}" 39321 tmp="$complete EOL" 39322 arguments="${tmp#* }" 39323 39324 # Input might be given as Windows format, start by converting to 39325 # unix format. 39326 new_path="$path" 39327 39328 windows_path="$new_path" 39329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39330 unix_path=`$CYGPATH -u "$windows_path"` 39331 new_path="$unix_path" 39332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39334 new_path="$unix_path" 39335 fi 39336 39337 39338 # Now try to locate executable using which 39339 new_path=`$WHICH "$new_path" 2> /dev/null` 39340 39341 if test "x$new_path" = x; then 39342 # Oops. Which didn't find the executable. 39343 # The splitting of arguments from the executable at a space might have been incorrect, 39344 # since paths with space are more likely in Windows. Give it another try with the whole 39345 # argument. 39346 path="$complete" 39347 arguments="EOL" 39348 new_path="$path" 39349 39350 windows_path="$new_path" 39351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39352 unix_path=`$CYGPATH -u "$windows_path"` 39353 new_path="$unix_path" 39354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39356 new_path="$unix_path" 39357 fi 39358 39359 39360 new_path=`$WHICH "$new_path" 2> /dev/null` 39361 # bat and cmd files are not always considered executable in MSYS causing which 39362 # to not find them 39363 if test "x$new_path" = x \ 39364 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39365 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39366 new_path="$path" 39367 39368 windows_path="$new_path" 39369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39370 unix_path=`$CYGPATH -u "$windows_path"` 39371 new_path="$unix_path" 39372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39374 new_path="$unix_path" 39375 fi 39376 39377 fi 39378 39379 if test "x$new_path" = x; then 39380 # It's still not found. Now this is an unrecoverable error. 39381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39382 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39383 has_space=`$ECHO "$complete" | $GREP " "` 39384 if test "x$has_space" != x; then 39385 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39386 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39387 fi 39388 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39389 fi 39390 fi 39391 39392 # Now new_path has a complete unix path to the binary 39393 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39394 # Keep paths in /bin as-is, but remove trailing .exe if any 39395 new_path="${new_path/%.exe/}" 39396 # Do not save /bin paths to all_fixpath_prefixes! 39397 else 39398 # Not in mixed or Windows style, start by that. 39399 new_path=`cmd //c echo $new_path` 39400 39401 input_path="$new_path" 39402 # Check if we need to convert this using DOS-style short mode. If the path 39403 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39404 # take no chances and rewrite it. 39405 # Note: m4 eats our [], so we need to use [ and ] instead. 39406 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39407 if test "x$has_forbidden_chars" != x; then 39408 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39409 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39410 fi 39411 39412 # Output is in $new_path 39413 39414 windows_path="$new_path" 39415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39416 unix_path=`$CYGPATH -u "$windows_path"` 39417 new_path="$unix_path" 39418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39419 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39420 new_path="$unix_path" 39421 fi 39422 39423 # remove trailing .exe if any 39424 new_path="${new_path/%.exe/}" 39425 39426 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39427 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39428 fi 39429 39430 else 39431 # We're on a unix platform. Hooray! :) 39432 # First separate the path from the arguments. This will split at the first 39433 # space. 39434 complete="$OBJDUMP" 39435 path="${complete%% *}" 39436 tmp="$complete EOL" 39437 arguments="${tmp#* }" 39438 39439 # Cannot rely on the command "which" here since it doesn't always work. 39440 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39441 if test -z "$is_absolute_path"; then 39442 # Path to executable is not absolute. Find it. 39443 IFS_save="$IFS" 39444 IFS=: 39445 for p in $PATH; do 39446 if test -f "$p/$path" && test -x "$p/$path"; then 39447 new_path="$p/$path" 39448 break 39449 fi 39450 done 39451 IFS="$IFS_save" 39452 else 39453 # This is an absolute path, we can use it without further modifications. 39454 new_path="$path" 39455 fi 39456 39457 if test "x$new_path" = x; then 39458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39459 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39460 has_space=`$ECHO "$complete" | $GREP " "` 39461 if test "x$has_space" != x; then 39462 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39463 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39464 fi 39465 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39466 fi 39467 fi 39468 39469 # Now join together the path and the arguments once again 39470 if test "x$arguments" != xEOL; then 39471 new_complete="$new_path ${arguments% *}" 39472 else 39473 new_complete="$new_path" 39474 fi 39475 39476 if test "x$complete" != "x$new_complete"; then 39477 OBJDUMP="$new_complete" 39478 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39479 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39480 fi 39481 39482 fi 39483 39484 39485 # Restore old path. 39486 PATH="$OLD_PATH" 39487 39488 # Restore the flags to the user specified values. 39489 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39490 CFLAGS="$ORG_CFLAGS" 39491 CXXFLAGS="$ORG_CXXFLAGS" 39492 OBJCFLAGS="$ORG_OBJCFLAGS" 39493 39494 39495 # Finally do some processing after the detection phase 39496 39497 if test "x$COMPILE_TYPE" = "xcross"; then 39498 # Now we need to find a C/C++ compiler that can build executables for the 39499 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39500 # used once. Also, we need to do this without adding a tools dir to the 39501 # path, otherwise we might pick up cross-compilers which don't use standard 39502 # naming. 39503 39504 # FIXME: we should list the discovered compilers as an exclude pattern! 39505 # If we do that, we can do this detection before POST_DETECTION, and still 39506 # find the build compilers in the tools dir, if needed. 39507 39508 39509 # Publish this variable in the help. 39510 39511 39512 if test "x$BUILD_CC" = x; then 39513 # The variable is not set by user, try to locate tool using the code snippet 39514 for ac_prog in cl cc gcc 39515 do 39516 # Extract the first word of "$ac_prog", so it can be a program name with args. 39517 set dummy $ac_prog; ac_word=$2 39518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39519 $as_echo_n "checking for $ac_word... " >&6; } 39520 if ${ac_cv_path_BUILD_CC+:} false; then : 39521 $as_echo_n "(cached) " >&6 39522 else 39523 case $BUILD_CC in 39524 [\\/]* | ?:[\\/]*) 39525 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39526 ;; 39527 *) 39528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39529 for as_dir in $PATH 39530 do 39531 IFS=$as_save_IFS 39532 test -z "$as_dir" && as_dir=. 39533 for ac_exec_ext in '' $ac_executable_extensions; do 39534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39535 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39537 break 2 39538 fi 39539 done 39540 done 39541 IFS=$as_save_IFS 39542 39543 ;; 39544 esac 39545 fi 39546 BUILD_CC=$ac_cv_path_BUILD_CC 39547 if test -n "$BUILD_CC"; then 39548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39549 $as_echo "$BUILD_CC" >&6; } 39550 else 39551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39552 $as_echo "no" >&6; } 39553 fi 39554 39555 39556 test -n "$BUILD_CC" && break 39557 done 39558 39559 else 39560 # The variable is set, but is it from the command line or the environment? 39561 39562 # Try to remove the string !BUILD_CC! from our list. 39563 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39564 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39565 # If it failed, the variable was not from the command line. Ignore it, 39566 # but warn the user (except for BASH, which is always set by the calling BASH). 39567 if test "xBUILD_CC" != xBASH; then 39568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39569 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39570 fi 39571 # Try to locate tool using the code snippet 39572 for ac_prog in cl cc gcc 39573 do 39574 # Extract the first word of "$ac_prog", so it can be a program name with args. 39575 set dummy $ac_prog; ac_word=$2 39576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39577 $as_echo_n "checking for $ac_word... " >&6; } 39578 if ${ac_cv_path_BUILD_CC+:} false; then : 39579 $as_echo_n "(cached) " >&6 39580 else 39581 case $BUILD_CC in 39582 [\\/]* | ?:[\\/]*) 39583 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39584 ;; 39585 *) 39586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39587 for as_dir in $PATH 39588 do 39589 IFS=$as_save_IFS 39590 test -z "$as_dir" && as_dir=. 39591 for ac_exec_ext in '' $ac_executable_extensions; do 39592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39593 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39595 break 2 39596 fi 39597 done 39598 done 39599 IFS=$as_save_IFS 39600 39601 ;; 39602 esac 39603 fi 39604 BUILD_CC=$ac_cv_path_BUILD_CC 39605 if test -n "$BUILD_CC"; then 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39607 $as_echo "$BUILD_CC" >&6; } 39608 else 39609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39610 $as_echo "no" >&6; } 39611 fi 39612 39613 39614 test -n "$BUILD_CC" && break 39615 done 39616 39617 else 39618 # If it succeeded, then it was overridden by the user. We will use it 39619 # for the tool. 39620 39621 # First remove it from the list of overridden variables, so we can test 39622 # for unknown variables in the end. 39623 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39624 39625 # Check if the provided tool contains a complete path. 39626 tool_specified="$BUILD_CC" 39627 tool_basename="${tool_specified##*/}" 39628 if test "x$tool_basename" = "x$tool_specified"; then 39629 # A command without a complete path is provided, search $PATH. 39630 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39631 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39632 # Extract the first word of "$tool_basename", so it can be a program name with args. 39633 set dummy $tool_basename; ac_word=$2 39634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39635 $as_echo_n "checking for $ac_word... " >&6; } 39636 if ${ac_cv_path_BUILD_CC+:} false; then : 39637 $as_echo_n "(cached) " >&6 39638 else 39639 case $BUILD_CC in 39640 [\\/]* | ?:[\\/]*) 39641 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39642 ;; 39643 *) 39644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39645 for as_dir in $PATH 39646 do 39647 IFS=$as_save_IFS 39648 test -z "$as_dir" && as_dir=. 39649 for ac_exec_ext in '' $ac_executable_extensions; do 39650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39651 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39653 break 2 39654 fi 39655 done 39656 done 39657 IFS=$as_save_IFS 39658 39659 ;; 39660 esac 39661 fi 39662 BUILD_CC=$ac_cv_path_BUILD_CC 39663 if test -n "$BUILD_CC"; then 39664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39665 $as_echo "$BUILD_CC" >&6; } 39666 else 39667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39668 $as_echo "no" >&6; } 39669 fi 39670 39671 39672 if test "x$BUILD_CC" = x; then 39673 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39674 fi 39675 else 39676 # Otherwise we believe it is a complete path. Use it as it is. 39677 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39678 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39680 $as_echo_n "checking for BUILD_CC... " >&6; } 39681 if test ! -x "$tool_specified"; then 39682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39683 $as_echo "not found" >&6; } 39684 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39685 fi 39686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39687 $as_echo "$tool_specified" >&6; } 39688 fi 39689 fi 39690 fi 39691 39692 39693 39694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39695 39696 # First separate the path from the arguments. This will split at the first 39697 # space. 39698 complete="$BUILD_CC" 39699 path="${complete%% *}" 39700 tmp="$complete EOL" 39701 arguments="${tmp#* }" 39702 39703 # Input might be given as Windows format, start by converting to 39704 # unix format. 39705 new_path=`$CYGPATH -u "$path"` 39706 39707 # Now try to locate executable using which 39708 new_path=`$WHICH "$new_path" 2> /dev/null` 39709 # bat and cmd files are not always considered executable in cygwin causing which 39710 # to not find them 39711 if test "x$new_path" = x \ 39712 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39713 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39714 new_path=`$CYGPATH -u "$path"` 39715 fi 39716 if test "x$new_path" = x; then 39717 # Oops. Which didn't find the executable. 39718 # The splitting of arguments from the executable at a space might have been incorrect, 39719 # since paths with space are more likely in Windows. Give it another try with the whole 39720 # argument. 39721 path="$complete" 39722 arguments="EOL" 39723 new_path=`$CYGPATH -u "$path"` 39724 new_path=`$WHICH "$new_path" 2> /dev/null` 39725 # bat and cmd files are not always considered executable in cygwin causing which 39726 # to not find them 39727 if test "x$new_path" = x \ 39728 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39729 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39730 new_path=`$CYGPATH -u "$path"` 39731 fi 39732 if test "x$new_path" = x; then 39733 # It's still not found. Now this is an unrecoverable error. 39734 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39735 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39736 has_space=`$ECHO "$complete" | $GREP " "` 39737 if test "x$has_space" != x; then 39738 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39739 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39740 fi 39741 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39742 fi 39743 fi 39744 39745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39748 # "foo.exe" is OK but "foo" is an error. 39749 # 39750 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39751 # It is also a way to make sure we got the proper file name for the real test later on. 39752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39753 if test "x$test_shortpath" = x; then 39754 # Short path failed, file does not exist as specified. 39755 # Try adding .exe or .cmd 39756 if test -f "${new_path}.exe"; then 39757 input_to_shortpath="${new_path}.exe" 39758 elif test -f "${new_path}.cmd"; then 39759 input_to_shortpath="${new_path}.cmd" 39760 else 39761 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39762 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39763 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39764 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39765 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39766 fi 39767 else 39768 input_to_shortpath="$new_path" 39769 fi 39770 39771 # Call helper function which possibly converts this using DOS-style short mode. 39772 # If so, the updated path is stored in $new_path. 39773 new_path="$input_to_shortpath" 39774 39775 input_path="$input_to_shortpath" 39776 # Check if we need to convert this using DOS-style short mode. If the path 39777 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39778 # take no chances and rewrite it. 39779 # Note: m4 eats our [], so we need to use [ and ] instead. 39780 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39781 if test "x$has_forbidden_chars" != x; then 39782 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39783 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39784 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39785 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39786 # Going to short mode and back again did indeed matter. Since short mode is 39787 # case insensitive, let's make it lowercase to improve readability. 39788 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39789 # Now convert it back to Unix-stile (cygpath) 39790 input_path=`$CYGPATH -u "$shortmode_path"` 39791 new_path="$input_path" 39792 fi 39793 fi 39794 39795 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39796 if test "x$test_cygdrive_prefix" = x; then 39797 # As a simple fix, exclude /usr/bin since it's not a real path. 39798 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39799 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39800 # a path prefixed by /cygdrive for fixpath to work. 39801 new_path="$CYGWIN_ROOT_PATH$input_path" 39802 fi 39803 fi 39804 39805 # remove trailing .exe if any 39806 new_path="${new_path/%.exe/}" 39807 39808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39809 39810 # First separate the path from the arguments. This will split at the first 39811 # space. 39812 complete="$BUILD_CC" 39813 path="${complete%% *}" 39814 tmp="$complete EOL" 39815 arguments="${tmp#* }" 39816 39817 # Input might be given as Windows format, start by converting to 39818 # unix format. 39819 new_path="$path" 39820 39821 windows_path="$new_path" 39822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39823 unix_path=`$CYGPATH -u "$windows_path"` 39824 new_path="$unix_path" 39825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39827 new_path="$unix_path" 39828 fi 39829 39830 39831 # Now try to locate executable using which 39832 new_path=`$WHICH "$new_path" 2> /dev/null` 39833 39834 if test "x$new_path" = x; then 39835 # Oops. Which didn't find the executable. 39836 # The splitting of arguments from the executable at a space might have been incorrect, 39837 # since paths with space are more likely in Windows. Give it another try with the whole 39838 # argument. 39839 path="$complete" 39840 arguments="EOL" 39841 new_path="$path" 39842 39843 windows_path="$new_path" 39844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39845 unix_path=`$CYGPATH -u "$windows_path"` 39846 new_path="$unix_path" 39847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39849 new_path="$unix_path" 39850 fi 39851 39852 39853 new_path=`$WHICH "$new_path" 2> /dev/null` 39854 # bat and cmd files are not always considered executable in MSYS causing which 39855 # to not find them 39856 if test "x$new_path" = x \ 39857 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39858 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39859 new_path="$path" 39860 39861 windows_path="$new_path" 39862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39863 unix_path=`$CYGPATH -u "$windows_path"` 39864 new_path="$unix_path" 39865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39867 new_path="$unix_path" 39868 fi 39869 39870 fi 39871 39872 if test "x$new_path" = x; then 39873 # It's still not found. Now this is an unrecoverable error. 39874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39875 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39876 has_space=`$ECHO "$complete" | $GREP " "` 39877 if test "x$has_space" != x; then 39878 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39879 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39880 fi 39881 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39882 fi 39883 fi 39884 39885 # Now new_path has a complete unix path to the binary 39886 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39887 # Keep paths in /bin as-is, but remove trailing .exe if any 39888 new_path="${new_path/%.exe/}" 39889 # Do not save /bin paths to all_fixpath_prefixes! 39890 else 39891 # Not in mixed or Windows style, start by that. 39892 new_path=`cmd //c echo $new_path` 39893 39894 input_path="$new_path" 39895 # Check if we need to convert this using DOS-style short mode. If the path 39896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39897 # take no chances and rewrite it. 39898 # Note: m4 eats our [], so we need to use [ and ] instead. 39899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39900 if test "x$has_forbidden_chars" != x; then 39901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39902 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39903 fi 39904 39905 # Output is in $new_path 39906 39907 windows_path="$new_path" 39908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39909 unix_path=`$CYGPATH -u "$windows_path"` 39910 new_path="$unix_path" 39911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39912 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39913 new_path="$unix_path" 39914 fi 39915 39916 # remove trailing .exe if any 39917 new_path="${new_path/%.exe/}" 39918 39919 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39920 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39921 fi 39922 39923 else 39924 # We're on a unix platform. Hooray! :) 39925 # First separate the path from the arguments. This will split at the first 39926 # space. 39927 complete="$BUILD_CC" 39928 path="${complete%% *}" 39929 tmp="$complete EOL" 39930 arguments="${tmp#* }" 39931 39932 # Cannot rely on the command "which" here since it doesn't always work. 39933 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39934 if test -z "$is_absolute_path"; then 39935 # Path to executable is not absolute. Find it. 39936 IFS_save="$IFS" 39937 IFS=: 39938 for p in $PATH; do 39939 if test -f "$p/$path" && test -x "$p/$path"; then 39940 new_path="$p/$path" 39941 break 39942 fi 39943 done 39944 IFS="$IFS_save" 39945 else 39946 # This is an absolute path, we can use it without further modifications. 39947 new_path="$path" 39948 fi 39949 39950 if test "x$new_path" = x; then 39951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39952 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39953 has_space=`$ECHO "$complete" | $GREP " "` 39954 if test "x$has_space" != x; then 39955 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39956 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39957 fi 39958 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39959 fi 39960 fi 39961 39962 # Now join together the path and the arguments once again 39963 if test "x$arguments" != xEOL; then 39964 new_complete="$new_path ${arguments% *}" 39965 else 39966 new_complete="$new_path" 39967 fi 39968 39969 if test "x$complete" != "x$new_complete"; then 39970 BUILD_CC="$new_complete" 39971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39972 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39973 fi 39974 39975 39976 39977 # Publish this variable in the help. 39978 39979 39980 if test "x$BUILD_CXX" = x; then 39981 # The variable is not set by user, try to locate tool using the code snippet 39982 for ac_prog in cl CC g++ 39983 do 39984 # Extract the first word of "$ac_prog", so it can be a program name with args. 39985 set dummy $ac_prog; ac_word=$2 39986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39987 $as_echo_n "checking for $ac_word... " >&6; } 39988 if ${ac_cv_path_BUILD_CXX+:} false; then : 39989 $as_echo_n "(cached) " >&6 39990 else 39991 case $BUILD_CXX in 39992 [\\/]* | ?:[\\/]*) 39993 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39994 ;; 39995 *) 39996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39997 for as_dir in $PATH 39998 do 39999 IFS=$as_save_IFS 40000 test -z "$as_dir" && as_dir=. 40001 for ac_exec_ext in '' $ac_executable_extensions; do 40002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40003 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40005 break 2 40006 fi 40007 done 40008 done 40009 IFS=$as_save_IFS 40010 40011 ;; 40012 esac 40013 fi 40014 BUILD_CXX=$ac_cv_path_BUILD_CXX 40015 if test -n "$BUILD_CXX"; then 40016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40017 $as_echo "$BUILD_CXX" >&6; } 40018 else 40019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40020 $as_echo "no" >&6; } 40021 fi 40022 40023 40024 test -n "$BUILD_CXX" && break 40025 done 40026 40027 else 40028 # The variable is set, but is it from the command line or the environment? 40029 40030 # Try to remove the string !BUILD_CXX! from our list. 40031 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 40032 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40033 # If it failed, the variable was not from the command line. Ignore it, 40034 # but warn the user (except for BASH, which is always set by the calling BASH). 40035 if test "xBUILD_CXX" != xBASH; then 40036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 40037 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 40038 fi 40039 # Try to locate tool using the code snippet 40040 for ac_prog in cl CC g++ 40041 do 40042 # Extract the first word of "$ac_prog", so it can be a program name with args. 40043 set dummy $ac_prog; ac_word=$2 40044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40045 $as_echo_n "checking for $ac_word... " >&6; } 40046 if ${ac_cv_path_BUILD_CXX+:} false; then : 40047 $as_echo_n "(cached) " >&6 40048 else 40049 case $BUILD_CXX in 40050 [\\/]* | ?:[\\/]*) 40051 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40052 ;; 40053 *) 40054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40055 for as_dir in $PATH 40056 do 40057 IFS=$as_save_IFS 40058 test -z "$as_dir" && as_dir=. 40059 for ac_exec_ext in '' $ac_executable_extensions; do 40060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40061 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40063 break 2 40064 fi 40065 done 40066 done 40067 IFS=$as_save_IFS 40068 40069 ;; 40070 esac 40071 fi 40072 BUILD_CXX=$ac_cv_path_BUILD_CXX 40073 if test -n "$BUILD_CXX"; then 40074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40075 $as_echo "$BUILD_CXX" >&6; } 40076 else 40077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40078 $as_echo "no" >&6; } 40079 fi 40080 40081 40082 test -n "$BUILD_CXX" && break 40083 done 40084 40085 else 40086 # If it succeeded, then it was overridden by the user. We will use it 40087 # for the tool. 40088 40089 # First remove it from the list of overridden variables, so we can test 40090 # for unknown variables in the end. 40091 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40092 40093 # Check if the provided tool contains a complete path. 40094 tool_specified="$BUILD_CXX" 40095 tool_basename="${tool_specified##*/}" 40096 if test "x$tool_basename" = "x$tool_specified"; then 40097 # A command without a complete path is provided, search $PATH. 40098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 40099 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 40100 # Extract the first word of "$tool_basename", so it can be a program name with args. 40101 set dummy $tool_basename; ac_word=$2 40102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40103 $as_echo_n "checking for $ac_word... " >&6; } 40104 if ${ac_cv_path_BUILD_CXX+:} false; then : 40105 $as_echo_n "(cached) " >&6 40106 else 40107 case $BUILD_CXX in 40108 [\\/]* | ?:[\\/]*) 40109 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40110 ;; 40111 *) 40112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40113 for as_dir in $PATH 40114 do 40115 IFS=$as_save_IFS 40116 test -z "$as_dir" && as_dir=. 40117 for ac_exec_ext in '' $ac_executable_extensions; do 40118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40119 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40121 break 2 40122 fi 40123 done 40124 done 40125 IFS=$as_save_IFS 40126 40127 ;; 40128 esac 40129 fi 40130 BUILD_CXX=$ac_cv_path_BUILD_CXX 40131 if test -n "$BUILD_CXX"; then 40132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40133 $as_echo "$BUILD_CXX" >&6; } 40134 else 40135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40136 $as_echo "no" >&6; } 40137 fi 40138 40139 40140 if test "x$BUILD_CXX" = x; then 40141 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40142 fi 40143 else 40144 # Otherwise we believe it is a complete path. Use it as it is. 40145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 40146 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 40147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40148 $as_echo_n "checking for BUILD_CXX... " >&6; } 40149 if test ! -x "$tool_specified"; then 40150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40151 $as_echo "not found" >&6; } 40152 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40153 fi 40154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40155 $as_echo "$tool_specified" >&6; } 40156 fi 40157 fi 40158 fi 40159 40160 40161 40162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40163 40164 # First separate the path from the arguments. This will split at the first 40165 # space. 40166 complete="$BUILD_CXX" 40167 path="${complete%% *}" 40168 tmp="$complete EOL" 40169 arguments="${tmp#* }" 40170 40171 # Input might be given as Windows format, start by converting to 40172 # unix format. 40173 new_path=`$CYGPATH -u "$path"` 40174 40175 # Now try to locate executable using which 40176 new_path=`$WHICH "$new_path" 2> /dev/null` 40177 # bat and cmd files are not always considered executable in cygwin causing which 40178 # to not find them 40179 if test "x$new_path" = x \ 40180 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40181 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40182 new_path=`$CYGPATH -u "$path"` 40183 fi 40184 if test "x$new_path" = x; then 40185 # Oops. Which didn't find the executable. 40186 # The splitting of arguments from the executable at a space might have been incorrect, 40187 # since paths with space are more likely in Windows. Give it another try with the whole 40188 # argument. 40189 path="$complete" 40190 arguments="EOL" 40191 new_path=`$CYGPATH -u "$path"` 40192 new_path=`$WHICH "$new_path" 2> /dev/null` 40193 # bat and cmd files are not always considered executable in cygwin causing which 40194 # to not find them 40195 if test "x$new_path" = x \ 40196 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40197 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40198 new_path=`$CYGPATH -u "$path"` 40199 fi 40200 if test "x$new_path" = x; then 40201 # It's still not found. Now this is an unrecoverable error. 40202 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40203 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40204 has_space=`$ECHO "$complete" | $GREP " "` 40205 if test "x$has_space" != x; then 40206 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40207 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40208 fi 40209 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40210 fi 40211 fi 40212 40213 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40214 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40215 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40216 # "foo.exe" is OK but "foo" is an error. 40217 # 40218 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40219 # It is also a way to make sure we got the proper file name for the real test later on. 40220 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40221 if test "x$test_shortpath" = x; then 40222 # Short path failed, file does not exist as specified. 40223 # Try adding .exe or .cmd 40224 if test -f "${new_path}.exe"; then 40225 input_to_shortpath="${new_path}.exe" 40226 elif test -f "${new_path}.cmd"; then 40227 input_to_shortpath="${new_path}.cmd" 40228 else 40229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40230 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40231 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40232 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40233 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40234 fi 40235 else 40236 input_to_shortpath="$new_path" 40237 fi 40238 40239 # Call helper function which possibly converts this using DOS-style short mode. 40240 # If so, the updated path is stored in $new_path. 40241 new_path="$input_to_shortpath" 40242 40243 input_path="$input_to_shortpath" 40244 # Check if we need to convert this using DOS-style short mode. If the path 40245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40246 # take no chances and rewrite it. 40247 # Note: m4 eats our [], so we need to use [ and ] instead. 40248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40249 if test "x$has_forbidden_chars" != x; then 40250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40251 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40252 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40253 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40254 # Going to short mode and back again did indeed matter. Since short mode is 40255 # case insensitive, let's make it lowercase to improve readability. 40256 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40257 # Now convert it back to Unix-stile (cygpath) 40258 input_path=`$CYGPATH -u "$shortmode_path"` 40259 new_path="$input_path" 40260 fi 40261 fi 40262 40263 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40264 if test "x$test_cygdrive_prefix" = x; then 40265 # As a simple fix, exclude /usr/bin since it's not a real path. 40266 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40267 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40268 # a path prefixed by /cygdrive for fixpath to work. 40269 new_path="$CYGWIN_ROOT_PATH$input_path" 40270 fi 40271 fi 40272 40273 # remove trailing .exe if any 40274 new_path="${new_path/%.exe/}" 40275 40276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40277 40278 # First separate the path from the arguments. This will split at the first 40279 # space. 40280 complete="$BUILD_CXX" 40281 path="${complete%% *}" 40282 tmp="$complete EOL" 40283 arguments="${tmp#* }" 40284 40285 # Input might be given as Windows format, start by converting to 40286 # unix format. 40287 new_path="$path" 40288 40289 windows_path="$new_path" 40290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40291 unix_path=`$CYGPATH -u "$windows_path"` 40292 new_path="$unix_path" 40293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40295 new_path="$unix_path" 40296 fi 40297 40298 40299 # Now try to locate executable using which 40300 new_path=`$WHICH "$new_path" 2> /dev/null` 40301 40302 if test "x$new_path" = x; then 40303 # Oops. Which didn't find the executable. 40304 # The splitting of arguments from the executable at a space might have been incorrect, 40305 # since paths with space are more likely in Windows. Give it another try with the whole 40306 # argument. 40307 path="$complete" 40308 arguments="EOL" 40309 new_path="$path" 40310 40311 windows_path="$new_path" 40312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40313 unix_path=`$CYGPATH -u "$windows_path"` 40314 new_path="$unix_path" 40315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40317 new_path="$unix_path" 40318 fi 40319 40320 40321 new_path=`$WHICH "$new_path" 2> /dev/null` 40322 # bat and cmd files are not always considered executable in MSYS causing which 40323 # to not find them 40324 if test "x$new_path" = x \ 40325 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40326 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40327 new_path="$path" 40328 40329 windows_path="$new_path" 40330 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40331 unix_path=`$CYGPATH -u "$windows_path"` 40332 new_path="$unix_path" 40333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40334 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40335 new_path="$unix_path" 40336 fi 40337 40338 fi 40339 40340 if test "x$new_path" = x; then 40341 # It's still not found. Now this is an unrecoverable error. 40342 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40343 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40344 has_space=`$ECHO "$complete" | $GREP " "` 40345 if test "x$has_space" != x; then 40346 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40347 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40348 fi 40349 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40350 fi 40351 fi 40352 40353 # Now new_path has a complete unix path to the binary 40354 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40355 # Keep paths in /bin as-is, but remove trailing .exe if any 40356 new_path="${new_path/%.exe/}" 40357 # Do not save /bin paths to all_fixpath_prefixes! 40358 else 40359 # Not in mixed or Windows style, start by that. 40360 new_path=`cmd //c echo $new_path` 40361 40362 input_path="$new_path" 40363 # Check if we need to convert this using DOS-style short mode. If the path 40364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40365 # take no chances and rewrite it. 40366 # Note: m4 eats our [], so we need to use [ and ] instead. 40367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40368 if test "x$has_forbidden_chars" != x; then 40369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40370 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40371 fi 40372 40373 # Output is in $new_path 40374 40375 windows_path="$new_path" 40376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40377 unix_path=`$CYGPATH -u "$windows_path"` 40378 new_path="$unix_path" 40379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40381 new_path="$unix_path" 40382 fi 40383 40384 # remove trailing .exe if any 40385 new_path="${new_path/%.exe/}" 40386 40387 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40388 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40389 fi 40390 40391 else 40392 # We're on a unix platform. Hooray! :) 40393 # First separate the path from the arguments. This will split at the first 40394 # space. 40395 complete="$BUILD_CXX" 40396 path="${complete%% *}" 40397 tmp="$complete EOL" 40398 arguments="${tmp#* }" 40399 40400 # Cannot rely on the command "which" here since it doesn't always work. 40401 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40402 if test -z "$is_absolute_path"; then 40403 # Path to executable is not absolute. Find it. 40404 IFS_save="$IFS" 40405 IFS=: 40406 for p in $PATH; do 40407 if test -f "$p/$path" && test -x "$p/$path"; then 40408 new_path="$p/$path" 40409 break 40410 fi 40411 done 40412 IFS="$IFS_save" 40413 else 40414 # This is an absolute path, we can use it without further modifications. 40415 new_path="$path" 40416 fi 40417 40418 if test "x$new_path" = x; then 40419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40420 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40421 has_space=`$ECHO "$complete" | $GREP " "` 40422 if test "x$has_space" != x; then 40423 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40424 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40425 fi 40426 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40427 fi 40428 fi 40429 40430 # Now join together the path and the arguments once again 40431 if test "x$arguments" != xEOL; then 40432 new_complete="$new_path ${arguments% *}" 40433 else 40434 new_complete="$new_path" 40435 fi 40436 40437 if test "x$complete" != "x$new_complete"; then 40438 BUILD_CXX="$new_complete" 40439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40440 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40441 fi 40442 40443 40444 40445 # Publish this variable in the help. 40446 40447 40448 if test "x$BUILD_LD" = x; then 40449 # The variable is not set by user, try to locate tool using the code snippet 40450 for ac_prog in ld 40451 do 40452 # Extract the first word of "$ac_prog", so it can be a program name with args. 40453 set dummy $ac_prog; ac_word=$2 40454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40455 $as_echo_n "checking for $ac_word... " >&6; } 40456 if ${ac_cv_path_BUILD_LD+:} false; then : 40457 $as_echo_n "(cached) " >&6 40458 else 40459 case $BUILD_LD in 40460 [\\/]* | ?:[\\/]*) 40461 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40462 ;; 40463 *) 40464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40465 for as_dir in $PATH 40466 do 40467 IFS=$as_save_IFS 40468 test -z "$as_dir" && as_dir=. 40469 for ac_exec_ext in '' $ac_executable_extensions; do 40470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40471 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40473 break 2 40474 fi 40475 done 40476 done 40477 IFS=$as_save_IFS 40478 40479 ;; 40480 esac 40481 fi 40482 BUILD_LD=$ac_cv_path_BUILD_LD 40483 if test -n "$BUILD_LD"; then 40484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40485 $as_echo "$BUILD_LD" >&6; } 40486 else 40487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40488 $as_echo "no" >&6; } 40489 fi 40490 40491 40492 test -n "$BUILD_LD" && break 40493 done 40494 40495 else 40496 # The variable is set, but is it from the command line or the environment? 40497 40498 # Try to remove the string !BUILD_LD! from our list. 40499 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40500 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40501 # If it failed, the variable was not from the command line. Ignore it, 40502 # but warn the user (except for BASH, which is always set by the calling BASH). 40503 if test "xBUILD_LD" != xBASH; then 40504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40505 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40506 fi 40507 # Try to locate tool using the code snippet 40508 for ac_prog in ld 40509 do 40510 # Extract the first word of "$ac_prog", so it can be a program name with args. 40511 set dummy $ac_prog; ac_word=$2 40512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40513 $as_echo_n "checking for $ac_word... " >&6; } 40514 if ${ac_cv_path_BUILD_LD+:} false; then : 40515 $as_echo_n "(cached) " >&6 40516 else 40517 case $BUILD_LD in 40518 [\\/]* | ?:[\\/]*) 40519 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40520 ;; 40521 *) 40522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40523 for as_dir in $PATH 40524 do 40525 IFS=$as_save_IFS 40526 test -z "$as_dir" && as_dir=. 40527 for ac_exec_ext in '' $ac_executable_extensions; do 40528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40529 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40531 break 2 40532 fi 40533 done 40534 done 40535 IFS=$as_save_IFS 40536 40537 ;; 40538 esac 40539 fi 40540 BUILD_LD=$ac_cv_path_BUILD_LD 40541 if test -n "$BUILD_LD"; then 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40543 $as_echo "$BUILD_LD" >&6; } 40544 else 40545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40546 $as_echo "no" >&6; } 40547 fi 40548 40549 40550 test -n "$BUILD_LD" && break 40551 done 40552 40553 else 40554 # If it succeeded, then it was overridden by the user. We will use it 40555 # for the tool. 40556 40557 # First remove it from the list of overridden variables, so we can test 40558 # for unknown variables in the end. 40559 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40560 40561 # Check if the provided tool contains a complete path. 40562 tool_specified="$BUILD_LD" 40563 tool_basename="${tool_specified##*/}" 40564 if test "x$tool_basename" = "x$tool_specified"; then 40565 # A command without a complete path is provided, search $PATH. 40566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40567 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40568 # Extract the first word of "$tool_basename", so it can be a program name with args. 40569 set dummy $tool_basename; ac_word=$2 40570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40571 $as_echo_n "checking for $ac_word... " >&6; } 40572 if ${ac_cv_path_BUILD_LD+:} false; then : 40573 $as_echo_n "(cached) " >&6 40574 else 40575 case $BUILD_LD in 40576 [\\/]* | ?:[\\/]*) 40577 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40578 ;; 40579 *) 40580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40581 for as_dir in $PATH 40582 do 40583 IFS=$as_save_IFS 40584 test -z "$as_dir" && as_dir=. 40585 for ac_exec_ext in '' $ac_executable_extensions; do 40586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40587 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40589 break 2 40590 fi 40591 done 40592 done 40593 IFS=$as_save_IFS 40594 40595 ;; 40596 esac 40597 fi 40598 BUILD_LD=$ac_cv_path_BUILD_LD 40599 if test -n "$BUILD_LD"; then 40600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40601 $as_echo "$BUILD_LD" >&6; } 40602 else 40603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40604 $as_echo "no" >&6; } 40605 fi 40606 40607 40608 if test "x$BUILD_LD" = x; then 40609 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40610 fi 40611 else 40612 # Otherwise we believe it is a complete path. Use it as it is. 40613 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40614 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40616 $as_echo_n "checking for BUILD_LD... " >&6; } 40617 if test ! -x "$tool_specified"; then 40618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40619 $as_echo "not found" >&6; } 40620 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40621 fi 40622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40623 $as_echo "$tool_specified" >&6; } 40624 fi 40625 fi 40626 fi 40627 40628 40629 40630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40631 40632 # First separate the path from the arguments. This will split at the first 40633 # space. 40634 complete="$BUILD_LD" 40635 path="${complete%% *}" 40636 tmp="$complete EOL" 40637 arguments="${tmp#* }" 40638 40639 # Input might be given as Windows format, start by converting to 40640 # unix format. 40641 new_path=`$CYGPATH -u "$path"` 40642 40643 # Now try to locate executable using which 40644 new_path=`$WHICH "$new_path" 2> /dev/null` 40645 # bat and cmd files are not always considered executable in cygwin causing which 40646 # to not find them 40647 if test "x$new_path" = x \ 40648 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40649 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40650 new_path=`$CYGPATH -u "$path"` 40651 fi 40652 if test "x$new_path" = x; then 40653 # Oops. Which didn't find the executable. 40654 # The splitting of arguments from the executable at a space might have been incorrect, 40655 # since paths with space are more likely in Windows. Give it another try with the whole 40656 # argument. 40657 path="$complete" 40658 arguments="EOL" 40659 new_path=`$CYGPATH -u "$path"` 40660 new_path=`$WHICH "$new_path" 2> /dev/null` 40661 # bat and cmd files are not always considered executable in cygwin causing which 40662 # to not find them 40663 if test "x$new_path" = x \ 40664 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40665 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40666 new_path=`$CYGPATH -u "$path"` 40667 fi 40668 if test "x$new_path" = x; then 40669 # It's still not found. Now this is an unrecoverable error. 40670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40671 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40672 has_space=`$ECHO "$complete" | $GREP " "` 40673 if test "x$has_space" != x; then 40674 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40675 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40676 fi 40677 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40678 fi 40679 fi 40680 40681 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40682 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40683 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40684 # "foo.exe" is OK but "foo" is an error. 40685 # 40686 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40687 # It is also a way to make sure we got the proper file name for the real test later on. 40688 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40689 if test "x$test_shortpath" = x; then 40690 # Short path failed, file does not exist as specified. 40691 # Try adding .exe or .cmd 40692 if test -f "${new_path}.exe"; then 40693 input_to_shortpath="${new_path}.exe" 40694 elif test -f "${new_path}.cmd"; then 40695 input_to_shortpath="${new_path}.cmd" 40696 else 40697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40698 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40699 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40700 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40701 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40702 fi 40703 else 40704 input_to_shortpath="$new_path" 40705 fi 40706 40707 # Call helper function which possibly converts this using DOS-style short mode. 40708 # If so, the updated path is stored in $new_path. 40709 new_path="$input_to_shortpath" 40710 40711 input_path="$input_to_shortpath" 40712 # Check if we need to convert this using DOS-style short mode. If the path 40713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40714 # take no chances and rewrite it. 40715 # Note: m4 eats our [], so we need to use [ and ] instead. 40716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40717 if test "x$has_forbidden_chars" != x; then 40718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40719 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40720 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40721 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40722 # Going to short mode and back again did indeed matter. Since short mode is 40723 # case insensitive, let's make it lowercase to improve readability. 40724 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40725 # Now convert it back to Unix-stile (cygpath) 40726 input_path=`$CYGPATH -u "$shortmode_path"` 40727 new_path="$input_path" 40728 fi 40729 fi 40730 40731 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40732 if test "x$test_cygdrive_prefix" = x; then 40733 # As a simple fix, exclude /usr/bin since it's not a real path. 40734 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40735 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40736 # a path prefixed by /cygdrive for fixpath to work. 40737 new_path="$CYGWIN_ROOT_PATH$input_path" 40738 fi 40739 fi 40740 40741 # remove trailing .exe if any 40742 new_path="${new_path/%.exe/}" 40743 40744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40745 40746 # First separate the path from the arguments. This will split at the first 40747 # space. 40748 complete="$BUILD_LD" 40749 path="${complete%% *}" 40750 tmp="$complete EOL" 40751 arguments="${tmp#* }" 40752 40753 # Input might be given as Windows format, start by converting to 40754 # unix format. 40755 new_path="$path" 40756 40757 windows_path="$new_path" 40758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40759 unix_path=`$CYGPATH -u "$windows_path"` 40760 new_path="$unix_path" 40761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40762 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40763 new_path="$unix_path" 40764 fi 40765 40766 40767 # Now try to locate executable using which 40768 new_path=`$WHICH "$new_path" 2> /dev/null` 40769 40770 if test "x$new_path" = x; then 40771 # Oops. Which didn't find the executable. 40772 # The splitting of arguments from the executable at a space might have been incorrect, 40773 # since paths with space are more likely in Windows. Give it another try with the whole 40774 # argument. 40775 path="$complete" 40776 arguments="EOL" 40777 new_path="$path" 40778 40779 windows_path="$new_path" 40780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40781 unix_path=`$CYGPATH -u "$windows_path"` 40782 new_path="$unix_path" 40783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40785 new_path="$unix_path" 40786 fi 40787 40788 40789 new_path=`$WHICH "$new_path" 2> /dev/null` 40790 # bat and cmd files are not always considered executable in MSYS causing which 40791 # to not find them 40792 if test "x$new_path" = x \ 40793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40795 new_path="$path" 40796 40797 windows_path="$new_path" 40798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40799 unix_path=`$CYGPATH -u "$windows_path"` 40800 new_path="$unix_path" 40801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40803 new_path="$unix_path" 40804 fi 40805 40806 fi 40807 40808 if test "x$new_path" = x; then 40809 # It's still not found. Now this is an unrecoverable error. 40810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40811 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40812 has_space=`$ECHO "$complete" | $GREP " "` 40813 if test "x$has_space" != x; then 40814 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40815 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40816 fi 40817 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40818 fi 40819 fi 40820 40821 # Now new_path has a complete unix path to the binary 40822 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40823 # Keep paths in /bin as-is, but remove trailing .exe if any 40824 new_path="${new_path/%.exe/}" 40825 # Do not save /bin paths to all_fixpath_prefixes! 40826 else 40827 # Not in mixed or Windows style, start by that. 40828 new_path=`cmd //c echo $new_path` 40829 40830 input_path="$new_path" 40831 # Check if we need to convert this using DOS-style short mode. If the path 40832 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40833 # take no chances and rewrite it. 40834 # Note: m4 eats our [], so we need to use [ and ] instead. 40835 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40836 if test "x$has_forbidden_chars" != x; then 40837 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40838 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40839 fi 40840 40841 # Output is in $new_path 40842 40843 windows_path="$new_path" 40844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40845 unix_path=`$CYGPATH -u "$windows_path"` 40846 new_path="$unix_path" 40847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40849 new_path="$unix_path" 40850 fi 40851 40852 # remove trailing .exe if any 40853 new_path="${new_path/%.exe/}" 40854 40855 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40856 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40857 fi 40858 40859 else 40860 # We're on a unix platform. Hooray! :) 40861 # First separate the path from the arguments. This will split at the first 40862 # space. 40863 complete="$BUILD_LD" 40864 path="${complete%% *}" 40865 tmp="$complete EOL" 40866 arguments="${tmp#* }" 40867 40868 # Cannot rely on the command "which" here since it doesn't always work. 40869 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40870 if test -z "$is_absolute_path"; then 40871 # Path to executable is not absolute. Find it. 40872 IFS_save="$IFS" 40873 IFS=: 40874 for p in $PATH; do 40875 if test -f "$p/$path" && test -x "$p/$path"; then 40876 new_path="$p/$path" 40877 break 40878 fi 40879 done 40880 IFS="$IFS_save" 40881 else 40882 # This is an absolute path, we can use it without further modifications. 40883 new_path="$path" 40884 fi 40885 40886 if test "x$new_path" = x; then 40887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40888 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40889 has_space=`$ECHO "$complete" | $GREP " "` 40890 if test "x$has_space" != x; then 40891 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40892 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40893 fi 40894 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40895 fi 40896 fi 40897 40898 # Now join together the path and the arguments once again 40899 if test "x$arguments" != xEOL; then 40900 new_complete="$new_path ${arguments% *}" 40901 else 40902 new_complete="$new_path" 40903 fi 40904 40905 if test "x$complete" != "x$new_complete"; then 40906 BUILD_LD="$new_complete" 40907 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40908 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40909 fi 40910 40911 else 40912 # If we are not cross compiling, use the normal target compilers for 40913 # building the build platform executables. 40914 BUILD_CC="$CC" 40915 BUILD_CXX="$CXX" 40916 BUILD_LD="$LD" 40917 fi 40918 40919 40920 40921 40922 40923 40924 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40925 # For hotspot, we need these in Windows mixed path, 40926 # so rewrite them all. Need added .exe suffix. 40927 HOTSPOT_CXX="$CXX.exe" 40928 HOTSPOT_LD="$LD.exe" 40929 HOTSPOT_MT="$MT.exe" 40930 HOTSPOT_RC="$RC.exe" 40931 40932 unix_path="$HOTSPOT_CXX" 40933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40934 windows_path=`$CYGPATH -m "$unix_path"` 40935 HOTSPOT_CXX="$windows_path" 40936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40937 windows_path=`cmd //c echo $unix_path` 40938 HOTSPOT_CXX="$windows_path" 40939 fi 40940 40941 40942 unix_path="$HOTSPOT_LD" 40943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40944 windows_path=`$CYGPATH -m "$unix_path"` 40945 HOTSPOT_LD="$windows_path" 40946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40947 windows_path=`cmd //c echo $unix_path` 40948 HOTSPOT_LD="$windows_path" 40949 fi 40950 40951 40952 unix_path="$HOTSPOT_MT" 40953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40954 windows_path=`$CYGPATH -m "$unix_path"` 40955 HOTSPOT_MT="$windows_path" 40956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40957 windows_path=`cmd //c echo $unix_path` 40958 HOTSPOT_MT="$windows_path" 40959 fi 40960 40961 40962 unix_path="$HOTSPOT_RC" 40963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40964 windows_path=`$CYGPATH -m "$unix_path"` 40965 HOTSPOT_RC="$windows_path" 40966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40967 windows_path=`cmd //c echo $unix_path` 40968 HOTSPOT_RC="$windows_path" 40969 fi 40970 40971 40972 40973 else 40974 HOTSPOT_CXX="$CXX" 40975 HOTSPOT_LD="$LD" 40976 fi 40977 40978 40979 40980 if test "x$TOOLCHAIN_TYPE" = xclang; then 40981 USE_CLANG=true 40982 fi 40983 40984 40985 # LDEXE is the linker to use, when creating executables. Not really used. 40986 # FIXME: These should just be removed! 40987 LDEXE="$LD" 40988 LDEXECXX="$LDCXX" 40989 40990 40991 40992 40993 40994 40995 # The package path is used only on macosx? 40996 # FIXME: clean this up, and/or move it elsewhere. 40997 PACKAGE_PATH=/opt/local 40998 40999 41000 # Check for extra potential brokenness. 41001 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41002 # On Windows, double-check that we got the right compiler. 41003 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 41004 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 41005 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 41006 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 41007 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 41008 fi 41009 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 41010 if test "x$COMPILER_CPU_TEST" != "xx64"; then 41011 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 41012 fi 41013 fi 41014 fi 41015 41016 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41017 # If this is a --hash-style=gnu system, use --hash-style=both, why? 41018 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 41019 # This is later checked when setting flags. 41020 41021 # "-Og" suppported for GCC 4.8 and later 41022 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 41023 41024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 41025 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 41026 supports=yes 41027 41028 saved_cflags="$CFLAGS" 41029 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 41030 ac_ext=c 41031 ac_cpp='$CPP $CPPFLAGS' 41032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41034 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41035 41036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41037 /* end confdefs.h. */ 41038 int i; 41039 _ACEOF 41040 if ac_fn_c_try_compile "$LINENO"; then : 41041 41042 else 41043 supports=no 41044 fi 41045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41046 ac_ext=cpp 41047 ac_cpp='$CXXCPP $CPPFLAGS' 41048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41051 41052 CFLAGS="$saved_cflags" 41053 41054 saved_cxxflags="$CXXFLAGS" 41055 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 41056 ac_ext=cpp 41057 ac_cpp='$CXXCPP $CPPFLAGS' 41058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41061 41062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41063 /* end confdefs.h. */ 41064 int i; 41065 _ACEOF 41066 if ac_fn_cxx_try_compile "$LINENO"; then : 41067 41068 else 41069 supports=no 41070 fi 41071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41072 ac_ext=cpp 41073 ac_cpp='$CXXCPP $CPPFLAGS' 41074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41077 41078 CXXFLAGS="$saved_cxxflags" 41079 41080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41081 $as_echo "$supports" >&6; } 41082 if test "x$supports" = "xyes" ; then 41083 HAS_CFLAG_OPTIMIZE_DEBUG=true 41084 else 41085 HAS_CFLAG_OPTIMIZE_DEBUG=false 41086 fi 41087 41088 41089 # "-z relro" supported in GNU binutils 2.17 and later 41090 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 41091 41092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 41093 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 41094 supports=yes 41095 41096 saved_ldflags="$LDFLAGS" 41097 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 41098 ac_ext=c 41099 ac_cpp='$CPP $CPPFLAGS' 41100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41102 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41103 41104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41105 /* end confdefs.h. */ 41106 41107 int 41108 main () 41109 { 41110 41111 ; 41112 return 0; 41113 } 41114 _ACEOF 41115 if ac_fn_c_try_link "$LINENO"; then : 41116 41117 else 41118 supports=no 41119 fi 41120 rm -f core conftest.err conftest.$ac_objext \ 41121 conftest$ac_exeext conftest.$ac_ext 41122 ac_ext=cpp 41123 ac_cpp='$CXXCPP $CPPFLAGS' 41124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41127 41128 LDFLAGS="$saved_ldflags" 41129 41130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41131 $as_echo "$supports" >&6; } 41132 if test "x$supports" = "xyes" ; then 41133 HAS_LINKER_RELRO=true 41134 else 41135 HAS_LINKER_RELRO=false 41136 fi 41137 41138 41139 # "-z now" supported in GNU binutils 2.11 and later 41140 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 41141 41142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 41143 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 41144 supports=yes 41145 41146 saved_ldflags="$LDFLAGS" 41147 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41148 ac_ext=c 41149 ac_cpp='$CPP $CPPFLAGS' 41150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41152 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41153 41154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41155 /* end confdefs.h. */ 41156 41157 int 41158 main () 41159 { 41160 41161 ; 41162 return 0; 41163 } 41164 _ACEOF 41165 if ac_fn_c_try_link "$LINENO"; then : 41166 41167 else 41168 supports=no 41169 fi 41170 rm -f core conftest.err conftest.$ac_objext \ 41171 conftest$ac_exeext conftest.$ac_ext 41172 ac_ext=cpp 41173 ac_cpp='$CXXCPP $CPPFLAGS' 41174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41177 41178 LDFLAGS="$saved_ldflags" 41179 41180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41181 $as_echo "$supports" >&6; } 41182 if test "x$supports" = "xyes" ; then 41183 HAS_LINKER_NOW=true 41184 else 41185 HAS_LINKER_NOW=false 41186 fi 41187 41188 fi 41189 41190 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41191 # in executable.' 41192 USING_BROKEN_SUSE_LD=no 41193 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41195 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41196 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41197 $ECHO "int main() { }" > main.c 41198 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41200 $as_echo "no" >&6; } 41201 USING_BROKEN_SUSE_LD=no 41202 else 41203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41204 $as_echo "yes" >&6; } 41205 USING_BROKEN_SUSE_LD=yes 41206 fi 41207 rm -rf version-script.map main.c a.out 41208 fi 41209 41210 41211 41212 # Setup the JTReg Regression Test Harness. 41213 41214 41215 # Check whether --with-jtreg was given. 41216 if test "${with_jtreg+set}" = set; then : 41217 withval=$with_jtreg; 41218 else 41219 with_jtreg=no 41220 fi 41221 41222 41223 if test "x$with_jtreg" = xno; then 41224 # jtreg disabled 41225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41226 $as_echo_n "checking for jtreg... " >&6; } 41227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41228 $as_echo "no" >&6; } 41229 else 41230 if test "x$with_jtreg" != xyes; then 41231 # with path specified. 41232 JT_HOME="$with_jtreg" 41233 fi 41234 41235 if test "x$JT_HOME" != x; then 41236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41237 $as_echo_n "checking for jtreg... " >&6; } 41238 41239 # use JT_HOME enviroment var. 41240 41241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41242 41243 # Input might be given as Windows format, start by converting to 41244 # unix format. 41245 path="$JT_HOME" 41246 new_path=`$CYGPATH -u "$path"` 41247 41248 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41249 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41250 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41251 # "foo.exe" is OK but "foo" is an error. 41252 # 41253 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41254 # It is also a way to make sure we got the proper file name for the real test later on. 41255 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41256 if test "x$test_shortpath" = x; then 41257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41258 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41259 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41260 fi 41261 41262 # Call helper function which possibly converts this using DOS-style short mode. 41263 # If so, the updated path is stored in $new_path. 41264 41265 input_path="$new_path" 41266 # Check if we need to convert this using DOS-style short mode. If the path 41267 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41268 # take no chances and rewrite it. 41269 # Note: m4 eats our [], so we need to use [ and ] instead. 41270 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41271 if test "x$has_forbidden_chars" != x; then 41272 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41273 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41274 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41275 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41276 # Going to short mode and back again did indeed matter. Since short mode is 41277 # case insensitive, let's make it lowercase to improve readability. 41278 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41279 # Now convert it back to Unix-stile (cygpath) 41280 input_path=`$CYGPATH -u "$shortmode_path"` 41281 new_path="$input_path" 41282 fi 41283 fi 41284 41285 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41286 if test "x$test_cygdrive_prefix" = x; then 41287 # As a simple fix, exclude /usr/bin since it's not a real path. 41288 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41289 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41290 # a path prefixed by /cygdrive for fixpath to work. 41291 new_path="$CYGWIN_ROOT_PATH$input_path" 41292 fi 41293 fi 41294 41295 41296 if test "x$path" != "x$new_path"; then 41297 JT_HOME="$new_path" 41298 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41299 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41300 fi 41301 41302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41303 41304 path="$JT_HOME" 41305 has_colon=`$ECHO $path | $GREP ^.:` 41306 new_path="$path" 41307 if test "x$has_colon" = x; then 41308 # Not in mixed or Windows style, start by that. 41309 new_path=`cmd //c echo $path` 41310 fi 41311 41312 41313 input_path="$new_path" 41314 # Check if we need to convert this using DOS-style short mode. If the path 41315 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41316 # take no chances and rewrite it. 41317 # Note: m4 eats our [], so we need to use [ and ] instead. 41318 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41319 if test "x$has_forbidden_chars" != x; then 41320 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41321 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41322 fi 41323 41324 41325 windows_path="$new_path" 41326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41327 unix_path=`$CYGPATH -u "$windows_path"` 41328 new_path="$unix_path" 41329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41330 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41331 new_path="$unix_path" 41332 fi 41333 41334 if test "x$path" != "x$new_path"; then 41335 JT_HOME="$new_path" 41336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41337 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41338 fi 41339 41340 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41341 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41342 41343 else 41344 # We're on a unix platform. Hooray! :) 41345 path="$JT_HOME" 41346 has_space=`$ECHO "$path" | $GREP " "` 41347 if test "x$has_space" != x; then 41348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41349 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41350 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41351 fi 41352 41353 # Use eval to expand a potential ~ 41354 eval path="$path" 41355 if test ! -f "$path" && test ! -d "$path"; then 41356 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41357 fi 41358 41359 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41360 fi 41361 41362 41363 # jtreg win32 script works for everybody 41364 JTREGEXE="$JT_HOME/win32/bin/jtreg" 41365 41366 if test ! -f "$JTREGEXE"; then 41367 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41368 fi 41369 41370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41371 $as_echo "$JTREGEXE" >&6; } 41372 else 41373 # try to find jtreg on path 41374 41375 41376 41377 # Publish this variable in the help. 41378 41379 41380 if test "x$JTREGEXE" = x; then 41381 # The variable is not set by user, try to locate tool using the code snippet 41382 for ac_prog in jtreg 41383 do 41384 # Extract the first word of "$ac_prog", so it can be a program name with args. 41385 set dummy $ac_prog; ac_word=$2 41386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41387 $as_echo_n "checking for $ac_word... " >&6; } 41388 if ${ac_cv_path_JTREGEXE+:} false; then : 41389 $as_echo_n "(cached) " >&6 41390 else 41391 case $JTREGEXE in 41392 [\\/]* | ?:[\\/]*) 41393 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41394 ;; 41395 *) 41396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41397 for as_dir in $PATH 41398 do 41399 IFS=$as_save_IFS 41400 test -z "$as_dir" && as_dir=. 41401 for ac_exec_ext in '' $ac_executable_extensions; do 41402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41403 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41405 break 2 41406 fi 41407 done 41408 done 41409 IFS=$as_save_IFS 41410 41411 ;; 41412 esac 41413 fi 41414 JTREGEXE=$ac_cv_path_JTREGEXE 41415 if test -n "$JTREGEXE"; then 41416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41417 $as_echo "$JTREGEXE" >&6; } 41418 else 41419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41420 $as_echo "no" >&6; } 41421 fi 41422 41423 41424 test -n "$JTREGEXE" && break 41425 done 41426 41427 else 41428 # The variable is set, but is it from the command line or the environment? 41429 41430 # Try to remove the string !JTREGEXE! from our list. 41431 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41432 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41433 # If it failed, the variable was not from the command line. Ignore it, 41434 # but warn the user (except for BASH, which is always set by the calling BASH). 41435 if test "xJTREGEXE" != xBASH; then 41436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41437 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41438 fi 41439 # Try to locate tool using the code snippet 41440 for ac_prog in jtreg 41441 do 41442 # Extract the first word of "$ac_prog", so it can be a program name with args. 41443 set dummy $ac_prog; ac_word=$2 41444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41445 $as_echo_n "checking for $ac_word... " >&6; } 41446 if ${ac_cv_path_JTREGEXE+:} false; then : 41447 $as_echo_n "(cached) " >&6 41448 else 41449 case $JTREGEXE in 41450 [\\/]* | ?:[\\/]*) 41451 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41452 ;; 41453 *) 41454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41455 for as_dir in $PATH 41456 do 41457 IFS=$as_save_IFS 41458 test -z "$as_dir" && as_dir=. 41459 for ac_exec_ext in '' $ac_executable_extensions; do 41460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41461 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41463 break 2 41464 fi 41465 done 41466 done 41467 IFS=$as_save_IFS 41468 41469 ;; 41470 esac 41471 fi 41472 JTREGEXE=$ac_cv_path_JTREGEXE 41473 if test -n "$JTREGEXE"; then 41474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41475 $as_echo "$JTREGEXE" >&6; } 41476 else 41477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41478 $as_echo "no" >&6; } 41479 fi 41480 41481 41482 test -n "$JTREGEXE" && break 41483 done 41484 41485 else 41486 # If it succeeded, then it was overridden by the user. We will use it 41487 # for the tool. 41488 41489 # First remove it from the list of overridden variables, so we can test 41490 # for unknown variables in the end. 41491 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41492 41493 # Check if the provided tool contains a complete path. 41494 tool_specified="$JTREGEXE" 41495 tool_basename="${tool_specified##*/}" 41496 if test "x$tool_basename" = "x$tool_specified"; then 41497 # A command without a complete path is provided, search $PATH. 41498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41499 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41500 # Extract the first word of "$tool_basename", so it can be a program name with args. 41501 set dummy $tool_basename; ac_word=$2 41502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41503 $as_echo_n "checking for $ac_word... " >&6; } 41504 if ${ac_cv_path_JTREGEXE+:} false; then : 41505 $as_echo_n "(cached) " >&6 41506 else 41507 case $JTREGEXE in 41508 [\\/]* | ?:[\\/]*) 41509 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41510 ;; 41511 *) 41512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41513 for as_dir in $PATH 41514 do 41515 IFS=$as_save_IFS 41516 test -z "$as_dir" && as_dir=. 41517 for ac_exec_ext in '' $ac_executable_extensions; do 41518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41519 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41521 break 2 41522 fi 41523 done 41524 done 41525 IFS=$as_save_IFS 41526 41527 ;; 41528 esac 41529 fi 41530 JTREGEXE=$ac_cv_path_JTREGEXE 41531 if test -n "$JTREGEXE"; then 41532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41533 $as_echo "$JTREGEXE" >&6; } 41534 else 41535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41536 $as_echo "no" >&6; } 41537 fi 41538 41539 41540 if test "x$JTREGEXE" = x; then 41541 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41542 fi 41543 else 41544 # Otherwise we believe it is a complete path. Use it as it is. 41545 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41546 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41548 $as_echo_n "checking for JTREGEXE... " >&6; } 41549 if test ! -x "$tool_specified"; then 41550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41551 $as_echo "not found" >&6; } 41552 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41553 fi 41554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41555 $as_echo "$tool_specified" >&6; } 41556 fi 41557 fi 41558 fi 41559 41560 41561 41562 if test "x$JTREGEXE" = x; then 41563 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41564 fi 41565 41566 41567 JT_HOME="`$DIRNAME $JTREGEXE`" 41568 fi 41569 fi 41570 41571 41572 41573 41574 41575 41576 # Option used to tell the compiler whether to create 32- or 64-bit executables 41577 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41578 COMPILER_TARGET_BITS_FLAG="-q" 41579 else 41580 COMPILER_TARGET_BITS_FLAG="-m" 41581 fi 41582 41583 41584 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41585 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41586 ARFLAGS="-r" 41587 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41588 ARFLAGS="-X64" 41589 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41590 # lib.exe is used as AR to create static libraries. 41591 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41592 else 41593 ARFLAGS="" 41594 fi 41595 41596 41597 ## Setup strip. 41598 # FIXME: should this really be per platform, or should it be per toolchain type? 41599 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41600 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41601 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41602 STRIPFLAGS="-g" 41603 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41604 STRIPFLAGS="-x" 41605 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41606 STRIPFLAGS="-S" 41607 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41608 STRIPFLAGS="-X32_64" 41609 fi 41610 41611 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41612 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41613 fi 41614 41615 41616 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41617 # FIXME: break out into MCSFLAGS 41618 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41619 fi 41620 41621 41622 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41623 CC_OUT_OPTION=-Fo 41624 EXE_OUT_OPTION=-out: 41625 LD_OUT_OPTION=-out: 41626 AR_OUT_OPTION=-out: 41627 else 41628 # The option used to specify the target .o,.a or .so file. 41629 # When compiling, how to specify the to be created object file. 41630 CC_OUT_OPTION='-o$(SPACE)' 41631 # When linking, how to specify the to be created executable. 41632 EXE_OUT_OPTION='-o$(SPACE)' 41633 # When linking, how to specify the to be created dynamically linkable library. 41634 LD_OUT_OPTION='-o$(SPACE)' 41635 # When archiving, how to specify the to be create static archive for object files. 41636 AR_OUT_OPTION='rcs$(SPACE)' 41637 fi 41638 41639 41640 41641 41642 41643 # On Windows, we need to set RC flags. 41644 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41645 RC_FLAGS="-nologo -l0x409" 41646 if test "x$VARIANT" = xOPT; then 41647 RC_FLAGS="$RC_FLAGS -DNDEBUG" 41648 fi 41649 41650 # The version variables used to create RC_FLAGS may be overridden 41651 # in a custom configure script, or possibly the command line. 41652 # Let those variables be expanded at make time in spec.gmk. 41653 # The \$ are escaped to the shell, and the $(...) variables 41654 # are evaluated by make. 41655 RC_FLAGS="$RC_FLAGS \ 41656 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41657 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41658 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41659 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41660 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41661 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41662 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41663 fi 41664 41665 41666 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41667 # silence copyright notice and other headers. 41668 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41669 fi 41670 41671 if test "x$SYSROOT" != "x"; then 41672 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41673 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41674 # Solaris Studio does not have a concept of sysroot. Instead we must 41675 # make sure the default include and lib dirs are appended to each 41676 # compile and link command line. 41677 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41678 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41679 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41680 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41681 fi 41682 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41683 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41684 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41685 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41686 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41687 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41688 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41689 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41690 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41691 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41692 fi 41693 # Propagate the sysroot args to hotspot 41694 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41695 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41696 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41697 fi 41698 41699 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41700 # set this here so it doesn't have to be peppered throughout the forest 41701 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41702 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41703 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41704 fi 41705 41706 41707 41708 41709 41710 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41711 41712 # Now we can test some aspects on the target using configure macros. 41713 41714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41715 $as_echo_n "checking for ANSI C header files... " >&6; } 41716 if ${ac_cv_header_stdc+:} false; then : 41717 $as_echo_n "(cached) " >&6 41718 else 41719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41720 /* end confdefs.h. */ 41721 #include <stdlib.h> 41722 #include <stdarg.h> 41723 #include <string.h> 41724 #include <float.h> 41725 41726 int 41727 main () 41728 { 41729 41730 ; 41731 return 0; 41732 } 41733 _ACEOF 41734 if ac_fn_cxx_try_compile "$LINENO"; then : 41735 ac_cv_header_stdc=yes 41736 else 41737 ac_cv_header_stdc=no 41738 fi 41739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41740 41741 if test $ac_cv_header_stdc = yes; then 41742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41744 /* end confdefs.h. */ 41745 #include <string.h> 41746 41747 _ACEOF 41748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41749 $EGREP "memchr" >/dev/null 2>&1; then : 41750 41751 else 41752 ac_cv_header_stdc=no 41753 fi 41754 rm -f conftest* 41755 41756 fi 41757 41758 if test $ac_cv_header_stdc = yes; then 41759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41761 /* end confdefs.h. */ 41762 #include <stdlib.h> 41763 41764 _ACEOF 41765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41766 $EGREP "free" >/dev/null 2>&1; then : 41767 41768 else 41769 ac_cv_header_stdc=no 41770 fi 41771 rm -f conftest* 41772 41773 fi 41774 41775 if test $ac_cv_header_stdc = yes; then 41776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41777 if test "$cross_compiling" = yes; then : 41778 : 41779 else 41780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41781 /* end confdefs.h. */ 41782 #include <ctype.h> 41783 #include <stdlib.h> 41784 #if ((' ' & 0x0FF) == 0x020) 41785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41787 #else 41788 # define ISLOWER(c) \ 41789 (('a' <= (c) && (c) <= 'i') \ 41790 || ('j' <= (c) && (c) <= 'r') \ 41791 || ('s' <= (c) && (c) <= 'z')) 41792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41793 #endif 41794 41795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41796 int 41797 main () 41798 { 41799 int i; 41800 for (i = 0; i < 256; i++) 41801 if (XOR (islower (i), ISLOWER (i)) 41802 || toupper (i) != TOUPPER (i)) 41803 return 2; 41804 return 0; 41805 } 41806 _ACEOF 41807 if ac_fn_cxx_try_run "$LINENO"; then : 41808 41809 else 41810 ac_cv_header_stdc=no 41811 fi 41812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41813 conftest.$ac_objext conftest.beam conftest.$ac_ext 41814 fi 41815 41816 fi 41817 fi 41818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41819 $as_echo "$ac_cv_header_stdc" >&6; } 41820 if test $ac_cv_header_stdc = yes; then 41821 41822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41823 41824 fi 41825 41826 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41827 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41828 inttypes.h stdint.h unistd.h 41829 do : 41830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41831 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41832 " 41833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41834 cat >>confdefs.h <<_ACEOF 41835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41836 _ACEOF 41837 41838 fi 41839 41840 done 41841 41842 41843 41844 ############################################################################### 41845 # 41846 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41847 # (The JVM can use 32 or 64 bit Java pointers but that decision 41848 # is made at runtime.) 41849 # 41850 41851 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41852 # Always specify -m flag on Solaris 41853 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41854 41855 # When we add flags to the "official" CFLAGS etc, we need to 41856 # keep track of these additions in ADDED_CFLAGS etc. These 41857 # will later be checked to make sure only controlled additions 41858 # have been made to CFLAGS etc. 41859 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41860 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41861 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41862 41863 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41864 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41865 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41866 41867 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41868 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41869 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41870 41871 elif test "x$COMPILE_TYPE" = xreduced; then 41872 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 41873 # Specify -m if running reduced on unix platforms 41874 41875 # When we add flags to the "official" CFLAGS etc, we need to 41876 # keep track of these additions in ADDED_CFLAGS etc. These 41877 # will later be checked to make sure only controlled additions 41878 # have been made to CFLAGS etc. 41879 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41880 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41881 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41882 41883 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41884 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41885 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41886 41887 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41888 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41889 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41890 41891 fi 41892 fi 41893 41894 # Make compilation sanity check 41895 for ac_header in stdio.h 41896 do : 41897 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41898 if test "x$ac_cv_header_stdio_h" = xyes; then : 41899 cat >>confdefs.h <<_ACEOF 41900 #define HAVE_STDIO_H 1 41901 _ACEOF 41902 41903 else 41904 41905 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41906 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41907 if test "x$COMPILE_TYPE" = xreduced; then 41908 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41909 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41910 elif test "x$COMPILE_TYPE" = xcross; then 41911 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41912 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41913 fi 41914 as_fn_error $? "Cannot continue." "$LINENO" 5 41915 41916 fi 41917 41918 done 41919 41920 41921 # The cast to long int works around a bug in the HP C Compiler 41922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41924 # This bug is HP SR number 8606223364. 41925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41926 $as_echo_n "checking size of int *... " >&6; } 41927 if ${ac_cv_sizeof_int_p+:} false; then : 41928 $as_echo_n "(cached) " >&6 41929 else 41930 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41931 41932 else 41933 if test "$ac_cv_type_int_p" = yes; then 41934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41936 as_fn_error 77 "cannot compute sizeof (int *) 41937 See \`config.log' for more details" "$LINENO" 5; } 41938 else 41939 ac_cv_sizeof_int_p=0 41940 fi 41941 fi 41942 41943 fi 41944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41945 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41946 41947 41948 41949 cat >>confdefs.h <<_ACEOF 41950 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41951 _ACEOF 41952 41953 41954 41955 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41956 if test "x$ac_cv_sizeof_int_p" = x; then 41957 # The test failed, lets stick to the assumed value. 41958 { $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 41959 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41960 else 41961 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41962 41963 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41964 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41965 # Let's try to implicitely set the compilers target architecture and retry the test 41966 { $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 41967 $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;} 41968 { $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 41969 $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;} 41970 41971 # When we add flags to the "official" CFLAGS etc, we need to 41972 # keep track of these additions in ADDED_CFLAGS etc. These 41973 # will later be checked to make sure only controlled additions 41974 # have been made to CFLAGS etc. 41975 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41976 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41977 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41978 41979 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41980 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41981 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41982 41983 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41984 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41985 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41986 41987 41988 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41989 unset ac_cv_sizeof_int_p 41990 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41991 cat >>confdefs.h <<_ACEOF 41992 #undef SIZEOF_INT_P 41993 _ACEOF 41994 41995 # The cast to long int works around a bug in the HP C Compiler 41996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41998 # This bug is HP SR number 8606223364. 41999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 42000 $as_echo_n "checking size of int *... " >&6; } 42001 if ${ac_cv_sizeof_int_p+:} false; then : 42002 $as_echo_n "(cached) " >&6 42003 else 42004 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 42005 42006 else 42007 if test "$ac_cv_type_int_p" = yes; then 42008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42010 as_fn_error 77 "cannot compute sizeof (int *) 42011 See \`config.log' for more details" "$LINENO" 5; } 42012 else 42013 ac_cv_sizeof_int_p=0 42014 fi 42015 fi 42016 42017 fi 42018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 42019 $as_echo "$ac_cv_sizeof_int_p" >&6; } 42020 42021 42022 42023 cat >>confdefs.h <<_ACEOF 42024 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 42025 _ACEOF 42026 42027 42028 42029 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42030 42031 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42032 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 42033 fi 42034 fi 42035 fi 42036 42037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 42038 $as_echo_n "checking for target address size... " >&6; } 42039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 42040 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 42041 42042 42043 ############################################################################### 42044 # 42045 # Is the target little of big endian? 42046 # 42047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 42048 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 42049 if ${ac_cv_c_bigendian+:} false; then : 42050 $as_echo_n "(cached) " >&6 42051 else 42052 ac_cv_c_bigendian=unknown 42053 # See if we're dealing with a universal compiler. 42054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42055 /* end confdefs.h. */ 42056 #ifndef __APPLE_CC__ 42057 not a universal capable compiler 42058 #endif 42059 typedef int dummy; 42060 42061 _ACEOF 42062 if ac_fn_cxx_try_compile "$LINENO"; then : 42063 42064 # Check for potential -arch flags. It is not universal unless 42065 # there are at least two -arch flags with different values. 42066 ac_arch= 42067 ac_prev= 42068 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 42069 if test -n "$ac_prev"; then 42070 case $ac_word in 42071 i?86 | x86_64 | ppc | ppc64) 42072 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 42073 ac_arch=$ac_word 42074 else 42075 ac_cv_c_bigendian=universal 42076 break 42077 fi 42078 ;; 42079 esac 42080 ac_prev= 42081 elif test "x$ac_word" = "x-arch"; then 42082 ac_prev=arch 42083 fi 42084 done 42085 fi 42086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42087 if test $ac_cv_c_bigendian = unknown; then 42088 # See if sys/param.h defines the BYTE_ORDER macro. 42089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42090 /* end confdefs.h. */ 42091 #include <sys/types.h> 42092 #include <sys/param.h> 42093 42094 int 42095 main () 42096 { 42097 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 42098 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 42099 && LITTLE_ENDIAN) 42100 bogus endian macros 42101 #endif 42102 42103 ; 42104 return 0; 42105 } 42106 _ACEOF 42107 if ac_fn_cxx_try_compile "$LINENO"; then : 42108 # It does; now see whether it defined to BIG_ENDIAN or not. 42109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42110 /* end confdefs.h. */ 42111 #include <sys/types.h> 42112 #include <sys/param.h> 42113 42114 int 42115 main () 42116 { 42117 #if BYTE_ORDER != BIG_ENDIAN 42118 not big endian 42119 #endif 42120 42121 ; 42122 return 0; 42123 } 42124 _ACEOF 42125 if ac_fn_cxx_try_compile "$LINENO"; then : 42126 ac_cv_c_bigendian=yes 42127 else 42128 ac_cv_c_bigendian=no 42129 fi 42130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42131 fi 42132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42133 fi 42134 if test $ac_cv_c_bigendian = unknown; then 42135 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 42136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42137 /* end confdefs.h. */ 42138 #include <limits.h> 42139 42140 int 42141 main () 42142 { 42143 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42144 bogus endian macros 42145 #endif 42146 42147 ; 42148 return 0; 42149 } 42150 _ACEOF 42151 if ac_fn_cxx_try_compile "$LINENO"; then : 42152 # It does; now see whether it defined to _BIG_ENDIAN or not. 42153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42154 /* end confdefs.h. */ 42155 #include <limits.h> 42156 42157 int 42158 main () 42159 { 42160 #ifndef _BIG_ENDIAN 42161 not big endian 42162 #endif 42163 42164 ; 42165 return 0; 42166 } 42167 _ACEOF 42168 if ac_fn_cxx_try_compile "$LINENO"; then : 42169 ac_cv_c_bigendian=yes 42170 else 42171 ac_cv_c_bigendian=no 42172 fi 42173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42174 fi 42175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42176 fi 42177 if test $ac_cv_c_bigendian = unknown; then 42178 # Compile a test program. 42179 if test "$cross_compiling" = yes; then : 42180 # Try to guess by grepping values from an object file. 42181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42182 /* end confdefs.h. */ 42183 short int ascii_mm[] = 42184 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42185 short int ascii_ii[] = 42186 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42187 int use_ascii (int i) { 42188 return ascii_mm[i] + ascii_ii[i]; 42189 } 42190 short int ebcdic_ii[] = 42191 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42192 short int ebcdic_mm[] = 42193 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42194 int use_ebcdic (int i) { 42195 return ebcdic_mm[i] + ebcdic_ii[i]; 42196 } 42197 extern int foo; 42198 42199 int 42200 main () 42201 { 42202 return use_ascii (foo) == use_ebcdic (foo); 42203 ; 42204 return 0; 42205 } 42206 _ACEOF 42207 if ac_fn_cxx_try_compile "$LINENO"; then : 42208 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42209 ac_cv_c_bigendian=yes 42210 fi 42211 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42212 if test "$ac_cv_c_bigendian" = unknown; then 42213 ac_cv_c_bigendian=no 42214 else 42215 # finding both strings is unlikely to happen, but who knows? 42216 ac_cv_c_bigendian=unknown 42217 fi 42218 fi 42219 fi 42220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42221 else 42222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42223 /* end confdefs.h. */ 42224 $ac_includes_default 42225 int 42226 main () 42227 { 42228 42229 /* Are we little or big endian? From Harbison&Steele. */ 42230 union 42231 { 42232 long int l; 42233 char c[sizeof (long int)]; 42234 } u; 42235 u.l = 1; 42236 return u.c[sizeof (long int) - 1] == 1; 42237 42238 ; 42239 return 0; 42240 } 42241 _ACEOF 42242 if ac_fn_cxx_try_run "$LINENO"; then : 42243 ac_cv_c_bigendian=no 42244 else 42245 ac_cv_c_bigendian=yes 42246 fi 42247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42248 conftest.$ac_objext conftest.beam conftest.$ac_ext 42249 fi 42250 42251 fi 42252 fi 42253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42254 $as_echo "$ac_cv_c_bigendian" >&6; } 42255 case $ac_cv_c_bigendian in #( 42256 yes) 42257 ENDIAN="big";; #( 42258 no) 42259 ENDIAN="little" ;; #( 42260 universal) 42261 ENDIAN="universal_endianness" 42262 ;; #( 42263 *) 42264 ENDIAN="unknown" ;; 42265 esac 42266 42267 42268 if test "x$ENDIAN" = xuniversal_endianness; then 42269 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42270 fi 42271 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42272 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 42273 fi 42274 42275 42276 # Configure flags for the tools 42277 42278 ############################################################################### 42279 # 42280 # How to compile shared libraries. 42281 # 42282 42283 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42284 PICFLAG="-fPIC" 42285 C_FLAG_REORDER='' 42286 CXX_FLAG_REORDER='' 42287 42288 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42289 # Linking is different on MacOSX 42290 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42291 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42292 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42293 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42294 SET_SHARED_LIBRARY_MAPFILE='' 42295 else 42296 # Default works for linux, might work on other platforms as well. 42297 SHARED_LIBRARY_FLAGS='-shared' 42298 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42299 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42300 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42301 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42302 fi 42303 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42304 PICFLAG='' 42305 C_FLAG_REORDER='' 42306 CXX_FLAG_REORDER='' 42307 42308 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42309 # Linking is different on MacOSX 42310 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42311 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42312 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42313 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42314 SET_SHARED_LIBRARY_MAPFILE='' 42315 else 42316 # Default works for linux, might work on other platforms as well. 42317 SHARED_LIBRARY_FLAGS='-shared' 42318 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42319 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42320 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42321 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42322 fi 42323 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42324 PICFLAG="-KPIC" 42325 C_FLAG_REORDER='-xF' 42326 CXX_FLAG_REORDER='-xF' 42327 SHARED_LIBRARY_FLAGS="-G" 42328 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42329 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42330 SET_SHARED_LIBRARY_NAME='' 42331 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42332 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42333 PICFLAG="-qpic=large" 42334 C_FLAG_REORDER='' 42335 CXX_FLAG_REORDER='' 42336 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42337 SET_EXECUTABLE_ORIGIN="" 42338 SET_SHARED_LIBRARY_ORIGIN='' 42339 SET_SHARED_LIBRARY_NAME='' 42340 SET_SHARED_LIBRARY_MAPFILE='' 42341 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42342 PICFLAG="" 42343 C_FLAG_REORDER='' 42344 CXX_FLAG_REORDER='' 42345 SHARED_LIBRARY_FLAGS="-LD" 42346 SET_EXECUTABLE_ORIGIN='' 42347 SET_SHARED_LIBRARY_ORIGIN='' 42348 SET_SHARED_LIBRARY_NAME='' 42349 SET_SHARED_LIBRARY_MAPFILE='' 42350 fi 42351 42352 42353 42354 42355 42356 42357 42358 42359 42360 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42361 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42362 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42363 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42364 fi 42365 # The (cross) compiler is now configured, we can now test capabilities 42366 # of the target platform. 42367 42368 42369 42370 ############################################################################### 42371 # 42372 # Setup the opt flags for different compilers 42373 # and different operating systems. 42374 # 42375 42376 # FIXME: this was indirectly the old default, but just inherited. 42377 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42378 # C_FLAG_DEPS="-MMD -MF" 42379 # fi 42380 42381 # Generate make dependency files 42382 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42383 C_FLAG_DEPS="-MMD -MF" 42384 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42385 C_FLAG_DEPS="-MMD -MF" 42386 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42387 C_FLAG_DEPS="-xMMD -xMF" 42388 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42389 C_FLAG_DEPS="-qmakedep=gcc -MF" 42390 fi 42391 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42392 42393 42394 42395 # Debug symbols 42396 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42397 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42398 # reduce from default "-g2" option to save space 42399 CFLAGS_DEBUG_SYMBOLS="-g1" 42400 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42401 else 42402 CFLAGS_DEBUG_SYMBOLS="-g" 42403 CXXFLAGS_DEBUG_SYMBOLS="-g" 42404 fi 42405 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42406 CFLAGS_DEBUG_SYMBOLS="-g" 42407 CXXFLAGS_DEBUG_SYMBOLS="-g" 42408 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42409 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42410 # FIXME: likely a bug, this disables debug symbols rather than enables them 42411 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42412 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42413 CFLAGS_DEBUG_SYMBOLS="-g" 42414 CXXFLAGS_DEBUG_SYMBOLS="-g" 42415 fi 42416 42417 42418 42419 # bounds, memory and behavior checking options 42420 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42421 case $DEBUG_LEVEL in 42422 release ) 42423 # no adjustment 42424 ;; 42425 fastdebug ) 42426 # no adjustment 42427 ;; 42428 slowdebug ) 42429 # Add runtime stack smashing and undefined behavior checks 42430 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42431 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42432 ;; 42433 esac 42434 fi 42435 42436 42437 42438 # Optimization levels 42439 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42440 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42441 42442 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42443 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42444 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42445 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42446 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42447 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42448 C_O_FLAG_NONE="-xregs=no%frameptr" 42449 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42450 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42451 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42452 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42453 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42454 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42455 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42456 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42457 fi 42458 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42459 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42460 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42461 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42462 C_O_FLAG_DEBUG="" 42463 C_O_FLAG_NONE="" 42464 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42465 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42466 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42467 C_O_FLAG_DEBUG="" 42468 CXX_O_FLAG_NONE="" 42469 fi 42470 else 42471 # The remaining toolchains share opt flags between CC and CXX; 42472 # setup for C and duplicate afterwards. 42473 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42474 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42475 # On MacOSX we optimize for size, something 42476 # we should do for all platforms? 42477 C_O_FLAG_HIGHEST="-Os" 42478 C_O_FLAG_HI="-Os" 42479 C_O_FLAG_NORM="-Os" 42480 else 42481 C_O_FLAG_HIGHEST="-O3" 42482 C_O_FLAG_HI="-O3" 42483 C_O_FLAG_NORM="-O2" 42484 fi 42485 C_O_FLAG_DEBUG="-O0" 42486 C_O_FLAG_NONE="-O0" 42487 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42488 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42489 # On MacOSX we optimize for size, something 42490 # we should do for all platforms? 42491 C_O_FLAG_HIGHEST="-Os" 42492 C_O_FLAG_HI="-Os" 42493 C_O_FLAG_NORM="-Os" 42494 else 42495 C_O_FLAG_HIGHEST="-O3" 42496 C_O_FLAG_HI="-O3" 42497 C_O_FLAG_NORM="-O2" 42498 fi 42499 C_O_FLAG_DEBUG="-O0" 42500 C_O_FLAG_NONE="-O0" 42501 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42502 C_O_FLAG_HIGHEST="-O3" 42503 C_O_FLAG_HI="-O3 -qstrict" 42504 C_O_FLAG_NORM="-O2" 42505 C_O_FLAG_DEBUG="-qnoopt" 42506 C_O_FLAG_NONE="-qnoop" 42507 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42508 C_O_FLAG_HIGHEST="-O2" 42509 C_O_FLAG_HI="-O1" 42510 C_O_FLAG_NORM="-O1" 42511 C_O_FLAG_DEBUG="-Od" 42512 C_O_FLAG_NONE="-Od" 42513 fi 42514 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42515 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42516 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42517 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42518 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42519 fi 42520 42521 # Adjust optimization flags according to debug level. 42522 case $DEBUG_LEVEL in 42523 release ) 42524 # no adjustment 42525 ;; 42526 fastdebug ) 42527 # Not quite so much optimization 42528 C_O_FLAG_HI="$C_O_FLAG_NORM" 42529 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42530 ;; 42531 slowdebug ) 42532 # Disable optimization 42533 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42534 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42535 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42536 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42537 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42538 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42539 ;; 42540 esac 42541 42542 42543 42544 42545 42546 42547 42548 42549 42550 42551 42552 42553 42554 # Special extras... 42555 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42556 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42557 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42558 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42559 fi 42560 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42561 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 42562 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42563 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42564 fi 42565 42566 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42568 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42569 fi 42570 42571 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42573 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42574 fi 42575 42576 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42578 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42579 fi 42580 42581 42582 # Check whether --with-extra-cflags was given. 42583 if test "${with_extra_cflags+set}" = set; then : 42584 withval=$with_extra_cflags; 42585 fi 42586 42587 42588 42589 # Check whether --with-extra-cxxflags was given. 42590 if test "${with_extra_cxxflags+set}" = set; then : 42591 withval=$with_extra_cxxflags; 42592 fi 42593 42594 42595 42596 # Check whether --with-extra-ldflags was given. 42597 if test "${with_extra_ldflags+set}" = set; then : 42598 withval=$with_extra_ldflags; 42599 fi 42600 42601 42602 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42603 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42604 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42605 42606 # Hotspot needs these set in their legacy form 42607 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42608 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42609 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42610 42611 42612 42613 42614 42615 ############################################################################### 42616 # 42617 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42618 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42619 # 42620 42621 # Setup compiler/platform specific flags into 42622 # CFLAGS_JDK - C Compiler flags 42623 # CXXFLAGS_JDK - C++ Compiler flags 42624 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42625 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42626 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42627 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42628 case $OPENJDK_TARGET_CPU_ARCH in 42629 arm ) 42630 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42631 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42632 ;; 42633 ppc ) 42634 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42635 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42636 ;; 42637 * ) 42638 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42639 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42640 ;; 42641 esac 42642 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42643 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42644 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42645 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42646 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42647 fi 42648 42649 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42650 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42651 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42652 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42653 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42654 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42655 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42656 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 42657 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42658 -DWIN32 -DIAL" 42659 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42660 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42661 else 42662 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42663 fi 42664 fi 42665 42666 ############################################################################### 42667 42668 # Adjust flags according to debug level. 42669 case $DEBUG_LEVEL in 42670 fastdebug | slowdebug ) 42671 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42672 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42673 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42674 ;; 42675 release ) 42676 ;; 42677 * ) 42678 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42679 ;; 42680 esac 42681 42682 # Setup LP64 42683 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42684 42685 # Set some common defines. These works for all compilers, but assume 42686 # -D is universally accepted. 42687 42688 # Setup endianness 42689 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42690 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42691 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42692 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42693 # Note: -Dmacro is the same as #define macro 1 42694 # -Dmacro= is the same as #define macro 42695 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42696 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42697 else 42698 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42699 fi 42700 else 42701 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42702 # are defined in the system? 42703 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42704 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42705 else 42706 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42707 fi 42708 fi 42709 42710 # Setup target OS define. Use OS target name but in upper case. 42711 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42712 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42713 42714 # Setup target CPU 42715 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42716 42717 # Setup debug/release defines 42718 if test "x$DEBUG_LEVEL" = xrelease; then 42719 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42720 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42721 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42722 fi 42723 else 42724 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42725 fi 42726 42727 # Setup release name 42728 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42729 42730 42731 # Set some additional per-OS defines. 42732 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42733 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42734 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42735 # FIXME: PPC64 should not be here. 42736 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42737 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42738 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42739 fi 42740 42741 # Additional macosx handling 42742 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42743 # Setting these parameters makes it an error to link to macosx APIs that are 42744 # newer than the given OS version and makes the linked binaries compatible 42745 # even if built on a newer version of the OS. 42746 # The expected format is X.Y.Z 42747 MACOSX_VERSION_MIN=10.7.0 42748 42749 42750 # The macro takes the version with no dots, ex: 1070 42751 # Let the flags variables get resolved in make for easier override on make 42752 # command line. 42753 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42754 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42755 fi 42756 42757 # Setup some hard coded includes 42758 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42759 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42760 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42761 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 42762 42763 # The shared libraries are compiled using the picflag. 42764 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42765 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42766 42767 # Executable flags 42768 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42769 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42770 42771 42772 42773 42774 42775 42776 # Setup LDFLAGS et al. 42777 # 42778 42779 # Now this is odd. The JDK native libraries have to link against libjvm.so 42780 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42781 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42782 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42783 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42784 # libraries will link to whatever is in memory. Yuck. 42785 # 42786 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42787 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42788 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42789 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42790 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42791 fi 42792 # TODO: make -debug optional "--disable-full-debug-symbols" 42793 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42794 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42795 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42796 # We have previously set HAS_GNU_HASH if this is the case 42797 if test -n "$HAS_GNU_HASH"; then 42798 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42799 fi 42800 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42801 # And since we now know that the linker is gnu, then add -z defs, to forbid 42802 # undefined symbols in object files. 42803 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42804 case $DEBUG_LEVEL in 42805 release ) 42806 # tell linker to optimize libraries. 42807 # Should this be supplied to the OSS linker as well? 42808 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42809 ;; 42810 slowdebug ) 42811 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42812 # do relocations at load 42813 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42814 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42815 fi 42816 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42817 # mark relocations read only 42818 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42819 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42820 fi 42821 ;; 42822 fastdebug ) 42823 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42824 # mark relocations read only 42825 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42826 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42827 fi 42828 ;; 42829 * ) 42830 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42831 ;; 42832 esac 42833 fi 42834 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42835 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42836 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42837 fi 42838 42839 # Customize LDFLAGS for executables 42840 42841 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42842 42843 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42844 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42845 LDFLAGS_STACK_SIZE=1048576 42846 else 42847 LDFLAGS_STACK_SIZE=327680 42848 fi 42849 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42850 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42851 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42852 fi 42853 42854 # Customize LDFLAGS for libs 42855 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42856 42857 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42858 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42859 LDFLAGS_JDKLIB_SUFFIX="" 42860 else 42861 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42862 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42863 42864 # On some platforms (mac) the linker warns about non existing -L dirs. 42865 # Add server first if available. Linking aginst client does not always produce the same results. 42866 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42867 # Default to server for other variants. 42868 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42869 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42870 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42871 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42872 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42873 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42874 else 42875 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42876 fi 42877 42878 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42879 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42880 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42881 fi 42882 fi 42883 42884 42885 42886 42887 42888 42889 42890 42891 # Some Zero and Shark settings. 42892 # ZERO_ARCHFLAG tells the compiler which mode to build for 42893 case "${OPENJDK_TARGET_CPU}" in 42894 s390) 42895 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42896 ;; 42897 *) 42898 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42899 esac 42900 42901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42902 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42903 supports=yes 42904 42905 saved_cflags="$CFLAGS" 42906 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42907 ac_ext=c 42908 ac_cpp='$CPP $CPPFLAGS' 42909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42911 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42912 42913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42914 /* end confdefs.h. */ 42915 int i; 42916 _ACEOF 42917 if ac_fn_c_try_compile "$LINENO"; then : 42918 42919 else 42920 supports=no 42921 fi 42922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42923 ac_ext=cpp 42924 ac_cpp='$CXXCPP $CPPFLAGS' 42925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42928 42929 CFLAGS="$saved_cflags" 42930 42931 saved_cxxflags="$CXXFLAGS" 42932 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42933 ac_ext=cpp 42934 ac_cpp='$CXXCPP $CPPFLAGS' 42935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42938 42939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42940 /* end confdefs.h. */ 42941 int i; 42942 _ACEOF 42943 if ac_fn_cxx_try_compile "$LINENO"; then : 42944 42945 else 42946 supports=no 42947 fi 42948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42949 ac_ext=cpp 42950 ac_cpp='$CXXCPP $CPPFLAGS' 42951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42954 42955 CXXFLAGS="$saved_cxxflags" 42956 42957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42958 $as_echo "$supports" >&6; } 42959 if test "x$supports" = "xyes" ; then 42960 : 42961 else 42962 ZERO_ARCHFLAG="" 42963 fi 42964 42965 42966 42967 # Check that the compiler supports -mX (or -qX on AIX) flags 42968 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42969 42970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42971 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42972 supports=yes 42973 42974 saved_cflags="$CFLAGS" 42975 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42976 ac_ext=c 42977 ac_cpp='$CPP $CPPFLAGS' 42978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42980 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42981 42982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42983 /* end confdefs.h. */ 42984 int i; 42985 _ACEOF 42986 if ac_fn_c_try_compile "$LINENO"; then : 42987 42988 else 42989 supports=no 42990 fi 42991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42992 ac_ext=cpp 42993 ac_cpp='$CXXCPP $CPPFLAGS' 42994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42997 42998 CFLAGS="$saved_cflags" 42999 43000 saved_cxxflags="$CXXFLAGS" 43001 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43002 ac_ext=cpp 43003 ac_cpp='$CXXCPP $CPPFLAGS' 43004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43007 43008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43009 /* end confdefs.h. */ 43010 int i; 43011 _ACEOF 43012 if ac_fn_cxx_try_compile "$LINENO"; then : 43013 43014 else 43015 supports=no 43016 fi 43017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43018 ac_ext=cpp 43019 ac_cpp='$CXXCPP $CPPFLAGS' 43020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43023 43024 CXXFLAGS="$saved_cxxflags" 43025 43026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43027 $as_echo "$supports" >&6; } 43028 if test "x$supports" = "xyes" ; then 43029 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 43030 else 43031 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 43032 fi 43033 43034 43035 43036 case "${TOOLCHAIN_TYPE}" in 43037 microsoft) 43038 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 43039 ;; 43040 solstudio) 43041 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 43042 ;; 43043 gcc) 43044 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43045 ;; 43046 clang) 43047 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43048 ;; 43049 esac 43050 43051 43052 43053 # Setup debug symbols (need objcopy from the toolchain for that) 43054 43055 # 43056 # ENABLE_DEBUG_SYMBOLS 43057 # This must be done after the toolchain is setup, since we're looking at objcopy. 43058 # 43059 # Check whether --enable-debug-symbols was given. 43060 if test "${enable_debug_symbols+set}" = set; then : 43061 enableval=$enable_debug_symbols; 43062 fi 43063 43064 43065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43066 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43067 43068 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43069 # explicit enabling of enable-debug-symbols and can't find objcopy 43070 # this is an error 43071 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43072 fi 43073 43074 if test "x$enable_debug_symbols" = "xyes"; then 43075 ENABLE_DEBUG_SYMBOLS=true 43076 elif test "x$enable_debug_symbols" = "xno"; then 43077 ENABLE_DEBUG_SYMBOLS=false 43078 else 43079 # Default is on if objcopy is found 43080 if test "x$OBJCOPY" != x; then 43081 ENABLE_DEBUG_SYMBOLS=true 43082 # MacOS X and Windows don't use objcopy but default is on for those OSes 43083 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43084 ENABLE_DEBUG_SYMBOLS=true 43085 else 43086 ENABLE_DEBUG_SYMBOLS=false 43087 fi 43088 fi 43089 43090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43091 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43092 43093 # 43094 # ZIP_DEBUGINFO_FILES 43095 # 43096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43097 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43098 # Check whether --enable-zip-debug-info was given. 43099 if test "${enable_zip_debug_info+set}" = set; then : 43100 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43101 else 43102 enable_zip_debug_info="yes" 43103 fi 43104 43105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43106 $as_echo "${enable_zip_debug_info}" >&6; } 43107 43108 if test "x${enable_zip_debug_info}" = "xno"; then 43109 ZIP_DEBUGINFO_FILES=false 43110 else 43111 ZIP_DEBUGINFO_FILES=true 43112 fi 43113 43114 43115 43116 43117 43118 ############################################################################### 43119 # 43120 # Check dependencies for external and internal libraries. 43121 # 43122 ############################################################################### 43123 43124 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43125 43126 # When using cygwin or msys, we need a wrapper binary that renames 43127 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43128 # @files and rewrites these too! This wrapper binary is 43129 # called fixpath. 43130 FIXPATH= 43131 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43133 $as_echo_n "checking if fixpath can be created... " >&6; } 43134 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43135 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 43136 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43137 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 43138 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 43139 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43140 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 43141 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43142 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 43143 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 43144 43145 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43146 # @ was chosen as separator to minimize risk of other tools messing around with it 43147 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 43148 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43149 43150 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 43151 fi 43152 rm -f $OUTPUT_ROOT/fixpath* 43153 cd $OUTPUT_ROOT 43154 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 43155 cd $CURDIR 43156 43157 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 43158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43159 $as_echo "no" >&6; } 43160 cat $OUTPUT_ROOT/fixpath1.log 43161 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 43162 fi 43163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43164 $as_echo "yes" >&6; } 43165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43166 $as_echo_n "checking if fixpath.exe works... " >&6; } 43167 cd $OUTPUT_ROOT 43168 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 43169 cd $CURDIR 43170 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 43171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43172 $as_echo "no" >&6; } 43173 cat $OUTPUT_ROOT/fixpath2.log 43174 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43175 fi 43176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43177 $as_echo "yes" >&6; } 43178 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 43179 fi 43180 43181 43182 43183 43184 43185 43186 ############################################################################### 43187 # 43188 # OS specific settings that we never will need to probe. 43189 # 43190 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43192 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43193 PULSE_NOT_NEEDED=yes 43194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43195 $as_echo "pulse" >&6; } 43196 fi 43197 43198 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43200 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43201 ALSA_NOT_NEEDED=yes 43202 PULSE_NOT_NEEDED=yes 43203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43204 $as_echo "alsa pulse" >&6; } 43205 fi 43206 43207 if test "x$OPENJDK_TARGET_OS" = xaix; then 43208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43209 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43210 ALSA_NOT_NEEDED=yes 43211 PULSE_NOT_NEEDED=yes 43212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43213 $as_echo "alsa pulse" >&6; } 43214 fi 43215 43216 43217 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43219 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43220 CUPS_NOT_NEEDED=yes 43221 ALSA_NOT_NEEDED=yes 43222 PULSE_NOT_NEEDED=yes 43223 X11_NOT_NEEDED=yes 43224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43225 $as_echo "alsa cups pulse x11" >&6; } 43226 fi 43227 43228 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43230 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43231 ALSA_NOT_NEEDED=yes 43232 PULSE_NOT_NEEDED=yes 43233 X11_NOT_NEEDED=yes 43234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43235 $as_echo "alsa pulse x11" >&6; } 43236 fi 43237 43238 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43240 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43241 ALSA_NOT_NEEDED=yes 43242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43243 $as_echo "alsa" >&6; } 43244 fi 43245 43246 if test "x$OPENJDK" = "xfalse"; then 43247 FREETYPE_NOT_NEEDED=yes 43248 fi 43249 43250 if test "x$SUPPORT_HEADFUL" = xno; then 43251 X11_NOT_NEEDED=yes 43252 fi 43253 43254 43255 43256 ############################################################################### 43257 # 43258 # Check for X Windows 43259 # 43260 43261 if test "x$X11_NOT_NEEDED" = xyes; then 43262 if test "x${with_x}" != x; then 43263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 43264 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 43265 fi 43266 X_CFLAGS= 43267 X_LIBS= 43268 else 43269 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43270 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43271 # --x-libraries for the sysroot, if that seems to be correct. 43272 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43273 if test "x$SYSROOT" != "x"; then 43274 if test "x$x_includes" = xNONE; then 43275 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43276 x_includes="$SYSROOT/usr/X11R6/include" 43277 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43278 x_includes="$SYSROOT/usr/include" 43279 fi 43280 fi 43281 if test "x$x_libraries" = xNONE; then 43282 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43283 x_libraries="$SYSROOT/usr/X11R6/lib" 43284 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43285 x_libraries="$SYSROOT/usr/lib64" 43286 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43287 x_libraries="$SYSROOT/usr/lib" 43288 fi 43289 fi 43290 fi 43291 fi 43292 43293 # Now let autoconf do it's magic 43294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43295 $as_echo_n "checking for X... " >&6; } 43296 43297 43298 # Check whether --with-x was given. 43299 if test "${with_x+set}" = set; then : 43300 withval=$with_x; 43301 fi 43302 43303 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43304 if test "x$with_x" = xno; then 43305 # The user explicitly disabled X. 43306 have_x=disabled 43307 else 43308 case $x_includes,$x_libraries in #( 43309 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43310 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43311 $as_echo_n "(cached) " >&6 43312 else 43313 # One or both of the vars are not set, and there is no cached value. 43314 ac_x_includes=no ac_x_libraries=no 43315 rm -f -r conftest.dir 43316 if mkdir conftest.dir; then 43317 cd conftest.dir 43318 cat >Imakefile <<'_ACEOF' 43319 incroot: 43320 @echo incroot='${INCROOT}' 43321 usrlibdir: 43322 @echo usrlibdir='${USRLIBDIR}' 43323 libdir: 43324 @echo libdir='${LIBDIR}' 43325 _ACEOF 43326 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43327 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43328 for ac_var in incroot usrlibdir libdir; do 43329 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43330 done 43331 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43332 for ac_extension in a so sl dylib la dll; do 43333 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43334 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43335 ac_im_usrlibdir=$ac_im_libdir; break 43336 fi 43337 done 43338 # Screen out bogus values from the imake configuration. They are 43339 # bogus both because they are the default anyway, and because 43340 # using them would break gcc on systems where it needs fixed includes. 43341 case $ac_im_incroot in 43342 /usr/include) ac_x_includes= ;; 43343 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43344 esac 43345 case $ac_im_usrlibdir in 43346 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43347 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43348 esac 43349 fi 43350 cd .. 43351 rm -f -r conftest.dir 43352 fi 43353 43354 # Standard set of common directories for X headers. 43355 # Check X11 before X11Rn because it is often a symlink to the current release. 43356 ac_x_header_dirs=' 43357 /usr/X11/include 43358 /usr/X11R7/include 43359 /usr/X11R6/include 43360 /usr/X11R5/include 43361 /usr/X11R4/include 43362 43363 /usr/include/X11 43364 /usr/include/X11R7 43365 /usr/include/X11R6 43366 /usr/include/X11R5 43367 /usr/include/X11R4 43368 43369 /usr/local/X11/include 43370 /usr/local/X11R7/include 43371 /usr/local/X11R6/include 43372 /usr/local/X11R5/include 43373 /usr/local/X11R4/include 43374 43375 /usr/local/include/X11 43376 /usr/local/include/X11R7 43377 /usr/local/include/X11R6 43378 /usr/local/include/X11R5 43379 /usr/local/include/X11R4 43380 43381 /usr/X386/include 43382 /usr/x386/include 43383 /usr/XFree86/include/X11 43384 43385 /usr/include 43386 /usr/local/include 43387 /usr/unsupported/include 43388 /usr/athena/include 43389 /usr/local/x11r5/include 43390 /usr/lpp/Xamples/include 43391 43392 /usr/openwin/include 43393 /usr/openwin/share/include' 43394 43395 if test "$ac_x_includes" = no; then 43396 # Guess where to find include files, by looking for Xlib.h. 43397 # First, try using that file with no special directory specified. 43398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43399 /* end confdefs.h. */ 43400 #include <X11/Xlib.h> 43401 _ACEOF 43402 if ac_fn_cxx_try_cpp "$LINENO"; then : 43403 # We can compile using X headers with no special include directory. 43404 ac_x_includes= 43405 else 43406 for ac_dir in $ac_x_header_dirs; do 43407 if test -r "$ac_dir/X11/Xlib.h"; then 43408 ac_x_includes=$ac_dir 43409 break 43410 fi 43411 done 43412 fi 43413 rm -f conftest.err conftest.i conftest.$ac_ext 43414 fi # $ac_x_includes = no 43415 43416 if test "$ac_x_libraries" = no; then 43417 # Check for the libraries. 43418 # See if we find them without any special options. 43419 # Don't add to $LIBS permanently. 43420 ac_save_LIBS=$LIBS 43421 LIBS="-lX11 $LIBS" 43422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43423 /* end confdefs.h. */ 43424 #include <X11/Xlib.h> 43425 int 43426 main () 43427 { 43428 XrmInitialize () 43429 ; 43430 return 0; 43431 } 43432 _ACEOF 43433 if ac_fn_cxx_try_link "$LINENO"; then : 43434 LIBS=$ac_save_LIBS 43435 # We can link X programs with no special library path. 43436 ac_x_libraries= 43437 else 43438 LIBS=$ac_save_LIBS 43439 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43440 do 43441 # Don't even attempt the hair of trying to link an X program! 43442 for ac_extension in a so sl dylib la dll; do 43443 if test -r "$ac_dir/libX11.$ac_extension"; then 43444 ac_x_libraries=$ac_dir 43445 break 2 43446 fi 43447 done 43448 done 43449 fi 43450 rm -f core conftest.err conftest.$ac_objext \ 43451 conftest$ac_exeext conftest.$ac_ext 43452 fi # $ac_x_libraries = no 43453 43454 case $ac_x_includes,$ac_x_libraries in #( 43455 no,* | *,no | *\'*) 43456 # Didn't find X, or a directory has "'" in its name. 43457 ac_cv_have_x="have_x=no";; #( 43458 *) 43459 # Record where we found X for the cache. 43460 ac_cv_have_x="have_x=yes\ 43461 ac_x_includes='$ac_x_includes'\ 43462 ac_x_libraries='$ac_x_libraries'" 43463 esac 43464 fi 43465 ;; #( 43466 *) have_x=yes;; 43467 esac 43468 eval "$ac_cv_have_x" 43469 fi # $with_x != no 43470 43471 if test "$have_x" != yes; then 43472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43473 $as_echo "$have_x" >&6; } 43474 no_x=yes 43475 else 43476 # If each of the values was on the command line, it overrides each guess. 43477 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43478 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43479 # Update the cache value to reflect the command line values. 43480 ac_cv_have_x="have_x=yes\ 43481 ac_x_includes='$x_includes'\ 43482 ac_x_libraries='$x_libraries'" 43483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43484 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43485 fi 43486 43487 if test "$no_x" = yes; then 43488 # Not all programs may use this symbol, but it does not hurt to define it. 43489 43490 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43491 43492 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43493 else 43494 if test -n "$x_includes"; then 43495 X_CFLAGS="$X_CFLAGS -I$x_includes" 43496 fi 43497 43498 # It would also be nice to do this for all -L options, not just this one. 43499 if test -n "$x_libraries"; then 43500 X_LIBS="$X_LIBS -L$x_libraries" 43501 # For Solaris; some versions of Sun CC require a space after -R and 43502 # others require no space. Words are not sufficient . . . . 43503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43504 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43505 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43506 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43507 ac_cxx_werror_flag=yes 43508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43509 /* end confdefs.h. */ 43510 43511 int 43512 main () 43513 { 43514 43515 ; 43516 return 0; 43517 } 43518 _ACEOF 43519 if ac_fn_cxx_try_link "$LINENO"; then : 43520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43521 $as_echo "no" >&6; } 43522 X_LIBS="$X_LIBS -R$x_libraries" 43523 else 43524 LIBS="$ac_xsave_LIBS -R $x_libraries" 43525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43526 /* end confdefs.h. */ 43527 43528 int 43529 main () 43530 { 43531 43532 ; 43533 return 0; 43534 } 43535 _ACEOF 43536 if ac_fn_cxx_try_link "$LINENO"; then : 43537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43538 $as_echo "yes" >&6; } 43539 X_LIBS="$X_LIBS -R $x_libraries" 43540 else 43541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43542 $as_echo "neither works" >&6; } 43543 fi 43544 rm -f core conftest.err conftest.$ac_objext \ 43545 conftest$ac_exeext conftest.$ac_ext 43546 fi 43547 rm -f core conftest.err conftest.$ac_objext \ 43548 conftest$ac_exeext conftest.$ac_ext 43549 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43550 LIBS=$ac_xsave_LIBS 43551 fi 43552 43553 # Check for system-dependent libraries X programs must link with. 43554 # Do this before checking for the system-independent R6 libraries 43555 # (-lICE), since we may need -lsocket or whatever for X linking. 43556 43557 if test "$ISC" = yes; then 43558 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43559 else 43560 # Martyn Johnson says this is needed for Ultrix, if the X 43561 # libraries were built with DECnet support. And Karl Berry says 43562 # the Alpha needs dnet_stub (dnet does not exist). 43563 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43565 /* end confdefs.h. */ 43566 43567 /* Override any GCC internal prototype to avoid an error. 43568 Use char because int might match the return type of a GCC 43569 builtin and then its argument prototype would still apply. */ 43570 #ifdef __cplusplus 43571 extern "C" 43572 #endif 43573 char XOpenDisplay (); 43574 int 43575 main () 43576 { 43577 return XOpenDisplay (); 43578 ; 43579 return 0; 43580 } 43581 _ACEOF 43582 if ac_fn_cxx_try_link "$LINENO"; then : 43583 43584 else 43585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43586 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43587 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43588 $as_echo_n "(cached) " >&6 43589 else 43590 ac_check_lib_save_LIBS=$LIBS 43591 LIBS="-ldnet $LIBS" 43592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43593 /* end confdefs.h. */ 43594 43595 /* Override any GCC internal prototype to avoid an error. 43596 Use char because int might match the return type of a GCC 43597 builtin and then its argument prototype would still apply. */ 43598 #ifdef __cplusplus 43599 extern "C" 43600 #endif 43601 char dnet_ntoa (); 43602 int 43603 main () 43604 { 43605 return dnet_ntoa (); 43606 ; 43607 return 0; 43608 } 43609 _ACEOF 43610 if ac_fn_cxx_try_link "$LINENO"; then : 43611 ac_cv_lib_dnet_dnet_ntoa=yes 43612 else 43613 ac_cv_lib_dnet_dnet_ntoa=no 43614 fi 43615 rm -f core conftest.err conftest.$ac_objext \ 43616 conftest$ac_exeext conftest.$ac_ext 43617 LIBS=$ac_check_lib_save_LIBS 43618 fi 43619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43620 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43621 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43622 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43623 fi 43624 43625 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43627 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43628 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43629 $as_echo_n "(cached) " >&6 43630 else 43631 ac_check_lib_save_LIBS=$LIBS 43632 LIBS="-ldnet_stub $LIBS" 43633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43634 /* end confdefs.h. */ 43635 43636 /* Override any GCC internal prototype to avoid an error. 43637 Use char because int might match the return type of a GCC 43638 builtin and then its argument prototype would still apply. */ 43639 #ifdef __cplusplus 43640 extern "C" 43641 #endif 43642 char dnet_ntoa (); 43643 int 43644 main () 43645 { 43646 return dnet_ntoa (); 43647 ; 43648 return 0; 43649 } 43650 _ACEOF 43651 if ac_fn_cxx_try_link "$LINENO"; then : 43652 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43653 else 43654 ac_cv_lib_dnet_stub_dnet_ntoa=no 43655 fi 43656 rm -f core conftest.err conftest.$ac_objext \ 43657 conftest$ac_exeext conftest.$ac_ext 43658 LIBS=$ac_check_lib_save_LIBS 43659 fi 43660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43661 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43662 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43663 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43664 fi 43665 43666 fi 43667 fi 43668 rm -f core conftest.err conftest.$ac_objext \ 43669 conftest$ac_exeext conftest.$ac_ext 43670 LIBS="$ac_xsave_LIBS" 43671 43672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43673 # to get the SysV transport functions. 43674 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43675 # needs -lnsl. 43676 # The nsl library prevents programs from opening the X display 43677 # on Irix 5.2, according to T.E. Dickey. 43678 # The functions gethostbyname, getservbyname, and inet_addr are 43679 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43680 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43681 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43682 43683 fi 43684 43685 if test $ac_cv_func_gethostbyname = no; then 43686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43687 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43688 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43689 $as_echo_n "(cached) " >&6 43690 else 43691 ac_check_lib_save_LIBS=$LIBS 43692 LIBS="-lnsl $LIBS" 43693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43694 /* end confdefs.h. */ 43695 43696 /* Override any GCC internal prototype to avoid an error. 43697 Use char because int might match the return type of a GCC 43698 builtin and then its argument prototype would still apply. */ 43699 #ifdef __cplusplus 43700 extern "C" 43701 #endif 43702 char gethostbyname (); 43703 int 43704 main () 43705 { 43706 return gethostbyname (); 43707 ; 43708 return 0; 43709 } 43710 _ACEOF 43711 if ac_fn_cxx_try_link "$LINENO"; then : 43712 ac_cv_lib_nsl_gethostbyname=yes 43713 else 43714 ac_cv_lib_nsl_gethostbyname=no 43715 fi 43716 rm -f core conftest.err conftest.$ac_objext \ 43717 conftest$ac_exeext conftest.$ac_ext 43718 LIBS=$ac_check_lib_save_LIBS 43719 fi 43720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43721 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43722 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43724 fi 43725 43726 if test $ac_cv_lib_nsl_gethostbyname = no; then 43727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43728 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43729 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43730 $as_echo_n "(cached) " >&6 43731 else 43732 ac_check_lib_save_LIBS=$LIBS 43733 LIBS="-lbsd $LIBS" 43734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43735 /* end confdefs.h. */ 43736 43737 /* Override any GCC internal prototype to avoid an error. 43738 Use char because int might match the return type of a GCC 43739 builtin and then its argument prototype would still apply. */ 43740 #ifdef __cplusplus 43741 extern "C" 43742 #endif 43743 char gethostbyname (); 43744 int 43745 main () 43746 { 43747 return gethostbyname (); 43748 ; 43749 return 0; 43750 } 43751 _ACEOF 43752 if ac_fn_cxx_try_link "$LINENO"; then : 43753 ac_cv_lib_bsd_gethostbyname=yes 43754 else 43755 ac_cv_lib_bsd_gethostbyname=no 43756 fi 43757 rm -f core conftest.err conftest.$ac_objext \ 43758 conftest$ac_exeext conftest.$ac_ext 43759 LIBS=$ac_check_lib_save_LIBS 43760 fi 43761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43762 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43763 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43765 fi 43766 43767 fi 43768 fi 43769 43770 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43771 # socket/setsockopt and other routines are undefined under SCO ODT 43772 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43773 # on later versions), says Simon Leinen: it contains gethostby* 43774 # variants that don't use the name server (or something). -lsocket 43775 # must be given before -lnsl if both are needed. We assume that 43776 # if connect needs -lnsl, so does gethostbyname. 43777 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43778 if test "x$ac_cv_func_connect" = xyes; then : 43779 43780 fi 43781 43782 if test $ac_cv_func_connect = no; then 43783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43784 $as_echo_n "checking for connect in -lsocket... " >&6; } 43785 if ${ac_cv_lib_socket_connect+:} false; then : 43786 $as_echo_n "(cached) " >&6 43787 else 43788 ac_check_lib_save_LIBS=$LIBS 43789 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43791 /* end confdefs.h. */ 43792 43793 /* Override any GCC internal prototype to avoid an error. 43794 Use char because int might match the return type of a GCC 43795 builtin and then its argument prototype would still apply. */ 43796 #ifdef __cplusplus 43797 extern "C" 43798 #endif 43799 char connect (); 43800 int 43801 main () 43802 { 43803 return connect (); 43804 ; 43805 return 0; 43806 } 43807 _ACEOF 43808 if ac_fn_cxx_try_link "$LINENO"; then : 43809 ac_cv_lib_socket_connect=yes 43810 else 43811 ac_cv_lib_socket_connect=no 43812 fi 43813 rm -f core conftest.err conftest.$ac_objext \ 43814 conftest$ac_exeext conftest.$ac_ext 43815 LIBS=$ac_check_lib_save_LIBS 43816 fi 43817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43818 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43819 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43820 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43821 fi 43822 43823 fi 43824 43825 # Guillermo Gomez says -lposix is necessary on A/UX. 43826 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43827 if test "x$ac_cv_func_remove" = xyes; then : 43828 43829 fi 43830 43831 if test $ac_cv_func_remove = no; then 43832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43833 $as_echo_n "checking for remove in -lposix... " >&6; } 43834 if ${ac_cv_lib_posix_remove+:} false; then : 43835 $as_echo_n "(cached) " >&6 43836 else 43837 ac_check_lib_save_LIBS=$LIBS 43838 LIBS="-lposix $LIBS" 43839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43840 /* end confdefs.h. */ 43841 43842 /* Override any GCC internal prototype to avoid an error. 43843 Use char because int might match the return type of a GCC 43844 builtin and then its argument prototype would still apply. */ 43845 #ifdef __cplusplus 43846 extern "C" 43847 #endif 43848 char remove (); 43849 int 43850 main () 43851 { 43852 return remove (); 43853 ; 43854 return 0; 43855 } 43856 _ACEOF 43857 if ac_fn_cxx_try_link "$LINENO"; then : 43858 ac_cv_lib_posix_remove=yes 43859 else 43860 ac_cv_lib_posix_remove=no 43861 fi 43862 rm -f core conftest.err conftest.$ac_objext \ 43863 conftest$ac_exeext conftest.$ac_ext 43864 LIBS=$ac_check_lib_save_LIBS 43865 fi 43866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43867 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43868 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43870 fi 43871 43872 fi 43873 43874 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43875 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43876 if test "x$ac_cv_func_shmat" = xyes; then : 43877 43878 fi 43879 43880 if test $ac_cv_func_shmat = no; then 43881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43882 $as_echo_n "checking for shmat in -lipc... " >&6; } 43883 if ${ac_cv_lib_ipc_shmat+:} false; then : 43884 $as_echo_n "(cached) " >&6 43885 else 43886 ac_check_lib_save_LIBS=$LIBS 43887 LIBS="-lipc $LIBS" 43888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43889 /* end confdefs.h. */ 43890 43891 /* Override any GCC internal prototype to avoid an error. 43892 Use char because int might match the return type of a GCC 43893 builtin and then its argument prototype would still apply. */ 43894 #ifdef __cplusplus 43895 extern "C" 43896 #endif 43897 char shmat (); 43898 int 43899 main () 43900 { 43901 return shmat (); 43902 ; 43903 return 0; 43904 } 43905 _ACEOF 43906 if ac_fn_cxx_try_link "$LINENO"; then : 43907 ac_cv_lib_ipc_shmat=yes 43908 else 43909 ac_cv_lib_ipc_shmat=no 43910 fi 43911 rm -f core conftest.err conftest.$ac_objext \ 43912 conftest$ac_exeext conftest.$ac_ext 43913 LIBS=$ac_check_lib_save_LIBS 43914 fi 43915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43916 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43917 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43919 fi 43920 43921 fi 43922 fi 43923 43924 # Check for libraries that X11R6 Xt/Xaw programs need. 43925 ac_save_LDFLAGS=$LDFLAGS 43926 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43927 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43928 # check for ICE first), but we must link in the order -lSM -lICE or 43929 # we get undefined symbols. So assume we have SM if we have ICE. 43930 # These have to be linked with before -lX11, unlike the other 43931 # libraries we check for below, so use a different variable. 43932 # John Interrante, Karl Berry 43933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43934 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43935 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43936 $as_echo_n "(cached) " >&6 43937 else 43938 ac_check_lib_save_LIBS=$LIBS 43939 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43941 /* end confdefs.h. */ 43942 43943 /* Override any GCC internal prototype to avoid an error. 43944 Use char because int might match the return type of a GCC 43945 builtin and then its argument prototype would still apply. */ 43946 #ifdef __cplusplus 43947 extern "C" 43948 #endif 43949 char IceConnectionNumber (); 43950 int 43951 main () 43952 { 43953 return IceConnectionNumber (); 43954 ; 43955 return 0; 43956 } 43957 _ACEOF 43958 if ac_fn_cxx_try_link "$LINENO"; then : 43959 ac_cv_lib_ICE_IceConnectionNumber=yes 43960 else 43961 ac_cv_lib_ICE_IceConnectionNumber=no 43962 fi 43963 rm -f core conftest.err conftest.$ac_objext \ 43964 conftest$ac_exeext conftest.$ac_ext 43965 LIBS=$ac_check_lib_save_LIBS 43966 fi 43967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43968 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43969 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43970 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43971 fi 43972 43973 LDFLAGS=$ac_save_LDFLAGS 43974 43975 fi 43976 43977 43978 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43979 # this doesn't make sense so we remove it. 43980 if test "x$COMPILE_TYPE" = xcross; then 43981 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43982 fi 43983 43984 if test "x$no_x" = xyes; then 43985 43986 # Print a helpful message on how to acquire the necessary build dependency. 43987 # x11 is the help tag: freetype, cups, pulse, alsa etc 43988 MISSING_DEPENDENCY=x11 43989 43990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43991 cygwin_help $MISSING_DEPENDENCY 43992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43993 msys_help $MISSING_DEPENDENCY 43994 else 43995 PKGHANDLER_COMMAND= 43996 43997 case $PKGHANDLER in 43998 apt-get) 43999 apt_help $MISSING_DEPENDENCY ;; 44000 yum) 44001 yum_help $MISSING_DEPENDENCY ;; 44002 port) 44003 port_help $MISSING_DEPENDENCY ;; 44004 pkgutil) 44005 pkgutil_help $MISSING_DEPENDENCY ;; 44006 pkgadd) 44007 pkgadd_help $MISSING_DEPENDENCY ;; 44008 esac 44009 44010 if test "x$PKGHANDLER_COMMAND" != x; then 44011 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44012 fi 44013 fi 44014 44015 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44016 fi 44017 44018 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44019 OPENWIN_HOME="/usr/openwin" 44020 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44021 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44022 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44023 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44024 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44025 fi 44026 44027 ac_ext=c 44028 ac_cpp='$CPP $CPPFLAGS' 44029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44031 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44032 44033 OLD_CFLAGS="$CFLAGS" 44034 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44035 44036 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44037 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44038 do : 44039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44041 # include <X11/Xlib.h> 44042 # include <X11/Xutil.h> 44043 44044 44045 " 44046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44047 cat >>confdefs.h <<_ACEOF 44048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44049 _ACEOF 44050 X11_HEADERS_OK=yes 44051 else 44052 X11_HEADERS_OK=no; break 44053 fi 44054 44055 done 44056 44057 44058 if test "x$X11_HEADERS_OK" = xno; then 44059 44060 # Print a helpful message on how to acquire the necessary build dependency. 44061 # x11 is the help tag: freetype, cups, pulse, alsa etc 44062 MISSING_DEPENDENCY=x11 44063 44064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44065 cygwin_help $MISSING_DEPENDENCY 44066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44067 msys_help $MISSING_DEPENDENCY 44068 else 44069 PKGHANDLER_COMMAND= 44070 44071 case $PKGHANDLER in 44072 apt-get) 44073 apt_help $MISSING_DEPENDENCY ;; 44074 yum) 44075 yum_help $MISSING_DEPENDENCY ;; 44076 port) 44077 port_help $MISSING_DEPENDENCY ;; 44078 pkgutil) 44079 pkgutil_help $MISSING_DEPENDENCY ;; 44080 pkgadd) 44081 pkgadd_help $MISSING_DEPENDENCY ;; 44082 esac 44083 44084 if test "x$PKGHANDLER_COMMAND" != x; then 44085 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44086 fi 44087 fi 44088 44089 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44090 fi 44091 44092 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44093 # defined in libawt_xawt. 44094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44095 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44097 /* end confdefs.h. */ 44098 #include <X11/extensions/Xrender.h> 44099 int 44100 main () 44101 { 44102 XLinearGradient x; 44103 ; 44104 return 0; 44105 } 44106 _ACEOF 44107 if ac_fn_c_try_compile "$LINENO"; then : 44108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44109 $as_echo "yes" >&6; } 44110 else 44111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44112 $as_echo "no" >&6; } 44113 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44114 fi 44115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44116 44117 CFLAGS="$OLD_CFLAGS" 44118 ac_ext=cpp 44119 ac_cpp='$CXXCPP $CPPFLAGS' 44120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44123 44124 fi # X11_NOT_NEEDED 44125 44126 44127 44128 44129 44130 44131 ############################################################################### 44132 # 44133 # The common unix printing system cups is used to print from java. 44134 # 44135 44136 # Check whether --with-cups was given. 44137 if test "${with_cups+set}" = set; then : 44138 withval=$with_cups; 44139 fi 44140 44141 44142 # Check whether --with-cups-include was given. 44143 if test "${with_cups_include+set}" = set; then : 44144 withval=$with_cups_include; 44145 fi 44146 44147 44148 if test "x$CUPS_NOT_NEEDED" = xyes; then 44149 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44151 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44152 fi 44153 CUPS_CFLAGS= 44154 else 44155 CUPS_FOUND=no 44156 44157 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44158 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44159 fi 44160 44161 if test "x${with_cups}" != x; then 44162 CUPS_CFLAGS="-I${with_cups}/include" 44163 CUPS_FOUND=yes 44164 fi 44165 if test "x${with_cups_include}" != x; then 44166 CUPS_CFLAGS="-I${with_cups_include}" 44167 CUPS_FOUND=yes 44168 fi 44169 if test "x$CUPS_FOUND" = xno; then 44170 44171 44172 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44173 # Source the builddeps file again, to make sure it uses the latest variables! 44174 . $builddepsfile 44175 # Look for a target and build machine specific resource! 44176 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44177 if test "x$resource" = x; then 44178 # Ok, lets instead look for a target specific resource 44179 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44180 fi 44181 if test "x$resource" = x; then 44182 # Ok, lets instead look for a build specific resource 44183 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44184 fi 44185 if test "x$resource" = x; then 44186 # Ok, lets instead look for a generic resource 44187 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44188 resource=${builddep_cups} 44189 fi 44190 if test "x$resource" != x; then 44191 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44192 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44193 # If the resource in the builddeps.conf file is an existing directory, 44194 # for example /java/linux/cups 44195 if test -d ${resource}; then 44196 depdir=${resource} 44197 else 44198 44199 # cups is for example mymodule 44200 # $resource is for example libs/general/libmymod_1_2_3.zip 44201 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44202 # $with_builddeps_dir is for example /localhome/builddeps 44203 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44204 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44205 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44206 filename=`basename $resource` 44207 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44208 filebase=${filename%%.*} 44209 extension=${filename#*.} 44210 installdir=$with_builddeps_dir/$filebase 44211 if test ! -f $installdir/$filename.unpacked; then 44212 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44213 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44214 if test ! -d $installdir; then 44215 mkdir -p $installdir 44216 fi 44217 if test ! -d $installdir; then 44218 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44219 fi 44220 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44221 touch $tmpfile 44222 if test ! -f $tmpfile; then 44223 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44224 fi 44225 44226 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44227 # $tmpfile is the local file name for the downloaded file. 44228 VALID_TOOL=no 44229 if test "x$BDEPS_FTP" = xwget; then 44230 VALID_TOOL=yes 44231 wget -O $tmpfile $with_builddeps_server/$resource 44232 fi 44233 if test "x$BDEPS_FTP" = xlftp; then 44234 VALID_TOOL=yes 44235 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44236 fi 44237 if test "x$BDEPS_FTP" = xftp; then 44238 VALID_TOOL=yes 44239 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44240 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44241 FTPUSERPWD=${FTPSERVER%%@*} 44242 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44243 FTPUSER=${userpwd%%:*} 44244 FTPPWD=${userpwd#*@} 44245 FTPSERVER=${FTPSERVER#*@} 44246 else 44247 FTPUSER=ftp 44248 FTPPWD=ftp 44249 fi 44250 # the "pass" command does not work on some 44251 # ftp clients (read ftp.exe) but if it works, 44252 # passive mode is better! 44253 ( \ 44254 echo "user $FTPUSER $FTPPWD" ; \ 44255 echo "pass" ; \ 44256 echo "bin" ; \ 44257 echo "get $FTPPATH $tmpfile" ; \ 44258 ) | ftp -in $FTPSERVER 44259 fi 44260 if test "x$VALID_TOOL" != xyes; then 44261 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44262 fi 44263 44264 mv $tmpfile $installdir/$filename 44265 if test ! -s $installdir/$filename; then 44266 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44267 fi 44268 case "$extension" in 44269 zip) echo "Unzipping $installdir/$filename..." 44270 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44271 ;; 44272 tar.gz) echo "Untaring $installdir/$filename..." 44273 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44274 ;; 44275 tgz) echo "Untaring $installdir/$filename..." 44276 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44277 ;; 44278 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44279 ;; 44280 esac 44281 fi 44282 if test -f $installdir/$filename.unpacked; then 44283 depdir=$installdir 44284 fi 44285 44286 fi 44287 # Source the builddeps file again, because in the previous command, the depdir 44288 # was updated to point at the current build dependency install directory. 44289 . $builddepsfile 44290 # Now extract variables from the builddeps.conf files. 44291 theroot=${builddep_cups_ROOT} 44292 thecflags=${builddep_cups_CFLAGS} 44293 thelibs=${builddep_cups_LIBS} 44294 if test "x$depdir" = x; then 44295 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44296 fi 44297 CUPS=$depdir 44298 if test "x$theroot" != x; then 44299 CUPS="$theroot" 44300 fi 44301 if test "x$thecflags" != x; then 44302 CUPS_CFLAGS="$thecflags" 44303 fi 44304 if test "x$thelibs" != x; then 44305 CUPS_LIBS="$thelibs" 44306 fi 44307 CUPS_FOUND=yes 44308 44309 fi 44310 44311 fi 44312 44313 fi 44314 if test "x$CUPS_FOUND" = xno; then 44315 # Are the cups headers installed in the default /usr/include location? 44316 for ac_header in cups/cups.h cups/ppd.h 44317 do : 44318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44319 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44321 cat >>confdefs.h <<_ACEOF 44322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44323 _ACEOF 44324 44325 CUPS_FOUND=yes 44326 CUPS_CFLAGS= 44327 DEFAULT_CUPS=yes 44328 44329 44330 fi 44331 44332 done 44333 44334 fi 44335 if test "x$CUPS_FOUND" = xno; then 44336 # Getting nervous now? Lets poke around for standard Solaris third-party 44337 # package installation locations. 44338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44339 $as_echo_n "checking for cups headers... " >&6; } 44340 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44341 # An SFW package seems to be installed! 44342 CUPS_FOUND=yes 44343 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44344 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44345 # A CSW package seems to be installed! 44346 CUPS_FOUND=yes 44347 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44348 fi 44349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44350 $as_echo "$CUPS_FOUND" >&6; } 44351 fi 44352 if test "x$CUPS_FOUND" = xno; then 44353 44354 # Print a helpful message on how to acquire the necessary build dependency. 44355 # cups is the help tag: freetype, cups, pulse, alsa etc 44356 MISSING_DEPENDENCY=cups 44357 44358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44359 cygwin_help $MISSING_DEPENDENCY 44360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44361 msys_help $MISSING_DEPENDENCY 44362 else 44363 PKGHANDLER_COMMAND= 44364 44365 case $PKGHANDLER in 44366 apt-get) 44367 apt_help $MISSING_DEPENDENCY ;; 44368 yum) 44369 yum_help $MISSING_DEPENDENCY ;; 44370 port) 44371 port_help $MISSING_DEPENDENCY ;; 44372 pkgutil) 44373 pkgutil_help $MISSING_DEPENDENCY ;; 44374 pkgadd) 44375 pkgadd_help $MISSING_DEPENDENCY ;; 44376 esac 44377 44378 if test "x$PKGHANDLER_COMMAND" != x; then 44379 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44380 fi 44381 fi 44382 44383 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44384 fi 44385 fi 44386 44387 44388 44389 44390 44391 44392 ############################################################################### 44393 # 44394 # The ubiquitous freetype library is used to render fonts. 44395 # 44396 44397 # Check whether --with-freetype was given. 44398 if test "${with_freetype+set}" = set; then : 44399 withval=$with_freetype; 44400 fi 44401 44402 44403 # Check whether --with-freetype-include was given. 44404 if test "${with_freetype_include+set}" = set; then : 44405 withval=$with_freetype_include; 44406 fi 44407 44408 44409 # Check whether --with-freetype-lib was given. 44410 if test "${with_freetype_lib+set}" = set; then : 44411 withval=$with_freetype_lib; 44412 fi 44413 44414 44415 # Check whether --with-freetype-src was given. 44416 if test "${with_freetype_src+set}" = set; then : 44417 withval=$with_freetype_src; 44418 fi 44419 44420 # Check whether --enable-freetype-bundling was given. 44421 if test "${enable_freetype_bundling+set}" = set; then : 44422 enableval=$enable_freetype_bundling; 44423 fi 44424 44425 44426 # Need to specify explicitly since it needs to be overridden on some versions of macosx 44427 FREETYPE_BASE_NAME=freetype 44428 FREETYPE_CFLAGS= 44429 FREETYPE_LIBS= 44430 FREETYPE_BUNDLE_LIB_PATH= 44431 44432 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44433 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 44434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44435 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44436 fi 44437 if test "x$enable_freetype_bundling" != x; then 44438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44439 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44440 fi 44441 else 44442 # freetype is needed to build; go get it! 44443 44444 BUNDLE_FREETYPE="$enable_freetype_bundling" 44445 44446 if test "x$with_freetype_src" != x; then 44447 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44448 # Try to build freetype if --with-freetype-src was given on Windows 44449 44450 FREETYPE_SRC_PATH="$with_freetype_src" 44451 BUILD_FREETYPE=yes 44452 44453 # Check if the freetype sources are acessible.. 44454 if ! test -d $FREETYPE_SRC_PATH; then 44455 { $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 44456 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44457 BUILD_FREETYPE=no 44458 fi 44459 # ..and contain a vc2010 project file 44460 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44461 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44462 { $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 44463 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44464 BUILD_FREETYPE=no 44465 fi 44466 # Now check if configure found a version of 'msbuild.exe' 44467 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44468 { $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 44469 $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;} 44470 BUILD_FREETYPE=no 44471 fi 44472 44473 # Ready to go.. 44474 if test "x$BUILD_FREETYPE" = xyes; then 44475 44476 # msbuild requires trailing slashes for output directories 44477 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44478 freetype_lib_path_unix="$freetype_lib_path" 44479 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44480 44481 unix_path="$vcxproj_path" 44482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44483 windows_path=`$CYGPATH -m "$unix_path"` 44484 vcxproj_path="$windows_path" 44485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44486 windows_path=`cmd //c echo $unix_path` 44487 vcxproj_path="$windows_path" 44488 fi 44489 44490 44491 unix_path="$freetype_lib_path" 44492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44493 windows_path=`$CYGPATH -m "$unix_path"` 44494 freetype_lib_path="$windows_path" 44495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44496 windows_path=`cmd //c echo $unix_path` 44497 freetype_lib_path="$windows_path" 44498 fi 44499 44500 44501 unix_path="$freetype_obj_path" 44502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44503 windows_path=`$CYGPATH -m "$unix_path"` 44504 freetype_obj_path="$windows_path" 44505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44506 windows_path=`cmd //c echo $unix_path` 44507 freetype_obj_path="$windows_path" 44508 fi 44509 44510 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44511 freetype_platform=x64 44512 else 44513 freetype_platform=win32 44514 fi 44515 44516 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44517 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44518 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44519 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44520 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44521 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44522 44523 # First we try to build the freetype.dll 44524 $ECHO -e "@echo off\n"\ 44525 "$MSBUILD $vcxproj_path "\ 44526 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44527 "/p:Configuration=\"Release Multithreaded\" "\ 44528 "/p:Platform=$freetype_platform "\ 44529 "/p:ConfigurationType=DynamicLibrary "\ 44530 "/p:TargetName=freetype "\ 44531 "/p:OutDir=\"$freetype_lib_path\" "\ 44532 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44533 cmd /c freetype.bat 44534 44535 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44536 # If that succeeds we also build freetype.lib 44537 $ECHO -e "@echo off\n"\ 44538 "$MSBUILD $vcxproj_path "\ 44539 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44540 "/p:Configuration=\"Release Multithreaded\" "\ 44541 "/p:Platform=$freetype_platform "\ 44542 "/p:ConfigurationType=StaticLibrary "\ 44543 "/p:TargetName=freetype "\ 44544 "/p:OutDir=\"$freetype_lib_path\" "\ 44545 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44546 cmd /c freetype.bat 44547 44548 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44549 # Once we build both, lib and dll, set freetype lib and include path appropriately 44550 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44551 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44552 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44553 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44554 else 44555 BUILD_FREETYPE=no 44556 fi 44557 else 44558 BUILD_FREETYPE=no 44559 fi 44560 fi 44561 44562 if test "x$BUILD_FREETYPE" = xyes; then 44563 # Okay, we built it. Check that it works. 44564 44565 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44566 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44567 METHOD="--with-freetype-src" 44568 44569 # Let's start with an optimistic view of the world :-) 44570 FOUND_FREETYPE=yes 44571 44572 # First look for the canonical freetype main include file ft2build.h. 44573 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44574 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44575 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44576 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44577 # Fail. 44578 FOUND_FREETYPE=no 44579 fi 44580 fi 44581 44582 if test "x$FOUND_FREETYPE" = xyes; then 44583 # Include file found, let's continue the sanity check. 44584 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44585 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44586 44587 # Reset to default value 44588 FREETYPE_BASE_NAME=freetype 44589 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44590 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44591 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44592 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44593 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44594 # for the .6 version explicitly. 44595 FREETYPE_BASE_NAME=freetype.6 44596 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44597 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44598 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44599 else 44600 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44601 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44602 FOUND_FREETYPE=no 44603 fi 44604 else 44605 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44606 # On Windows, we will need both .lib and .dll file. 44607 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44608 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44609 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44610 FOUND_FREETYPE=no 44611 fi 44612 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44613 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44614 # Found lib in isa dir, use that instead. 44615 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44617 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44618 fi 44619 fi 44620 fi 44621 44622 if test "x$FOUND_FREETYPE" = xyes; then 44623 44624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44625 44626 # Input might be given as Windows format, start by converting to 44627 # unix format. 44628 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44629 new_path=`$CYGPATH -u "$path"` 44630 44631 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44632 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44633 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44634 # "foo.exe" is OK but "foo" is an error. 44635 # 44636 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44637 # It is also a way to make sure we got the proper file name for the real test later on. 44638 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44639 if test "x$test_shortpath" = x; then 44640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44641 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44642 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44643 fi 44644 44645 # Call helper function which possibly converts this using DOS-style short mode. 44646 # If so, the updated path is stored in $new_path. 44647 44648 input_path="$new_path" 44649 # Check if we need to convert this using DOS-style short mode. If the path 44650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44651 # take no chances and rewrite it. 44652 # Note: m4 eats our [], so we need to use [ and ] instead. 44653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44654 if test "x$has_forbidden_chars" != x; then 44655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44656 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44657 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44658 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44659 # Going to short mode and back again did indeed matter. Since short mode is 44660 # case insensitive, let's make it lowercase to improve readability. 44661 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44662 # Now convert it back to Unix-stile (cygpath) 44663 input_path=`$CYGPATH -u "$shortmode_path"` 44664 new_path="$input_path" 44665 fi 44666 fi 44667 44668 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44669 if test "x$test_cygdrive_prefix" = x; then 44670 # As a simple fix, exclude /usr/bin since it's not a real path. 44671 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44672 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44673 # a path prefixed by /cygdrive for fixpath to work. 44674 new_path="$CYGWIN_ROOT_PATH$input_path" 44675 fi 44676 fi 44677 44678 44679 if test "x$path" != "x$new_path"; then 44680 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44681 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44682 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44683 fi 44684 44685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44686 44687 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44688 has_colon=`$ECHO $path | $GREP ^.:` 44689 new_path="$path" 44690 if test "x$has_colon" = x; then 44691 # Not in mixed or Windows style, start by that. 44692 new_path=`cmd //c echo $path` 44693 fi 44694 44695 44696 input_path="$new_path" 44697 # Check if we need to convert this using DOS-style short mode. If the path 44698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44699 # take no chances and rewrite it. 44700 # Note: m4 eats our [], so we need to use [ and ] instead. 44701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44702 if test "x$has_forbidden_chars" != x; then 44703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44704 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44705 fi 44706 44707 44708 windows_path="$new_path" 44709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44710 unix_path=`$CYGPATH -u "$windows_path"` 44711 new_path="$unix_path" 44712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44714 new_path="$unix_path" 44715 fi 44716 44717 if test "x$path" != "x$new_path"; then 44718 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44720 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44721 fi 44722 44723 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44724 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44725 44726 else 44727 # We're on a unix platform. Hooray! :) 44728 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44729 has_space=`$ECHO "$path" | $GREP " "` 44730 if test "x$has_space" != x; then 44731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44732 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44733 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44734 fi 44735 44736 # Use eval to expand a potential ~ 44737 eval path="$path" 44738 if test ! -f "$path" && test ! -d "$path"; then 44739 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44740 fi 44741 44742 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44743 fi 44744 44745 44746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44747 44748 # Input might be given as Windows format, start by converting to 44749 # unix format. 44750 path="$POTENTIAL_FREETYPE_LIB_PATH" 44751 new_path=`$CYGPATH -u "$path"` 44752 44753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44756 # "foo.exe" is OK but "foo" is an error. 44757 # 44758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44759 # It is also a way to make sure we got the proper file name for the real test later on. 44760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44761 if test "x$test_shortpath" = x; then 44762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44763 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44764 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44765 fi 44766 44767 # Call helper function which possibly converts this using DOS-style short mode. 44768 # If so, the updated path is stored in $new_path. 44769 44770 input_path="$new_path" 44771 # Check if we need to convert this using DOS-style short mode. If the path 44772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44773 # take no chances and rewrite it. 44774 # Note: m4 eats our [], so we need to use [ and ] instead. 44775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44776 if test "x$has_forbidden_chars" != x; then 44777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44781 # Going to short mode and back again did indeed matter. Since short mode is 44782 # case insensitive, let's make it lowercase to improve readability. 44783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44784 # Now convert it back to Unix-stile (cygpath) 44785 input_path=`$CYGPATH -u "$shortmode_path"` 44786 new_path="$input_path" 44787 fi 44788 fi 44789 44790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44791 if test "x$test_cygdrive_prefix" = x; then 44792 # As a simple fix, exclude /usr/bin since it's not a real path. 44793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44795 # a path prefixed by /cygdrive for fixpath to work. 44796 new_path="$CYGWIN_ROOT_PATH$input_path" 44797 fi 44798 fi 44799 44800 44801 if test "x$path" != "x$new_path"; then 44802 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44804 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44805 fi 44806 44807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44808 44809 path="$POTENTIAL_FREETYPE_LIB_PATH" 44810 has_colon=`$ECHO $path | $GREP ^.:` 44811 new_path="$path" 44812 if test "x$has_colon" = x; then 44813 # Not in mixed or Windows style, start by that. 44814 new_path=`cmd //c echo $path` 44815 fi 44816 44817 44818 input_path="$new_path" 44819 # Check if we need to convert this using DOS-style short mode. If the path 44820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44821 # take no chances and rewrite it. 44822 # Note: m4 eats our [], so we need to use [ and ] instead. 44823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44824 if test "x$has_forbidden_chars" != x; then 44825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44827 fi 44828 44829 44830 windows_path="$new_path" 44831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44832 unix_path=`$CYGPATH -u "$windows_path"` 44833 new_path="$unix_path" 44834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44836 new_path="$unix_path" 44837 fi 44838 44839 if test "x$path" != "x$new_path"; then 44840 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44842 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44843 fi 44844 44845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44847 44848 else 44849 # We're on a unix platform. Hooray! :) 44850 path="$POTENTIAL_FREETYPE_LIB_PATH" 44851 has_space=`$ECHO "$path" | $GREP " "` 44852 if test "x$has_space" != x; then 44853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44854 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44856 fi 44857 44858 # Use eval to expand a potential ~ 44859 eval path="$path" 44860 if test ! -f "$path" && test ! -d "$path"; then 44861 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44862 fi 44863 44864 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44865 fi 44866 44867 44868 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44870 $as_echo_n "checking for freetype includes... " >&6; } 44871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44872 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44873 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44875 $as_echo_n "checking for freetype libraries... " >&6; } 44876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44877 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44878 fi 44879 44880 if test "x$FOUND_FREETYPE" != xyes; then 44881 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44882 fi 44883 else 44884 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44885 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44886 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44887 fi 44888 else 44889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44890 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44891 fi 44892 fi 44893 44894 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44895 # User has specified settings 44896 44897 if test "x$BUNDLE_FREETYPE" = x; then 44898 # If not specified, default is to bundle freetype 44899 BUNDLE_FREETYPE=yes 44900 fi 44901 44902 if test "x$with_freetype" != x; then 44903 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44904 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44905 fi 44906 44907 # Allow --with-freetype-lib and --with-freetype-include to override 44908 if test "x$with_freetype_include" != x; then 44909 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44910 fi 44911 if test "x$with_freetype_lib" != x; then 44912 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44913 fi 44914 44915 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44916 # Okay, we got it. Check that it works. 44917 44918 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44919 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44920 METHOD="--with-freetype" 44921 44922 # Let's start with an optimistic view of the world :-) 44923 FOUND_FREETYPE=yes 44924 44925 # First look for the canonical freetype main include file ft2build.h. 44926 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44927 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44928 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44929 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44930 # Fail. 44931 FOUND_FREETYPE=no 44932 fi 44933 fi 44934 44935 if test "x$FOUND_FREETYPE" = xyes; then 44936 # Include file found, let's continue the sanity check. 44937 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44938 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44939 44940 # Reset to default value 44941 FREETYPE_BASE_NAME=freetype 44942 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44943 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44944 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44945 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44946 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44947 # for the .6 version explicitly. 44948 FREETYPE_BASE_NAME=freetype.6 44949 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44950 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44951 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44952 else 44953 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44954 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44955 FOUND_FREETYPE=no 44956 fi 44957 else 44958 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44959 # On Windows, we will need both .lib and .dll file. 44960 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44961 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44962 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44963 FOUND_FREETYPE=no 44964 fi 44965 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44966 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44967 # Found lib in isa dir, use that instead. 44968 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44970 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44971 fi 44972 fi 44973 fi 44974 44975 if test "x$FOUND_FREETYPE" = xyes; then 44976 44977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44978 44979 # Input might be given as Windows format, start by converting to 44980 # unix format. 44981 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44982 new_path=`$CYGPATH -u "$path"` 44983 44984 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44985 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44986 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44987 # "foo.exe" is OK but "foo" is an error. 44988 # 44989 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44990 # It is also a way to make sure we got the proper file name for the real test later on. 44991 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44992 if test "x$test_shortpath" = x; then 44993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44994 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44995 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44996 fi 44997 44998 # Call helper function which possibly converts this using DOS-style short mode. 44999 # If so, the updated path is stored in $new_path. 45000 45001 input_path="$new_path" 45002 # Check if we need to convert this using DOS-style short mode. If the path 45003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45004 # take no chances and rewrite it. 45005 # Note: m4 eats our [], so we need to use [ and ] instead. 45006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45007 if test "x$has_forbidden_chars" != x; then 45008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45009 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45010 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45011 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45012 # Going to short mode and back again did indeed matter. Since short mode is 45013 # case insensitive, let's make it lowercase to improve readability. 45014 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45015 # Now convert it back to Unix-stile (cygpath) 45016 input_path=`$CYGPATH -u "$shortmode_path"` 45017 new_path="$input_path" 45018 fi 45019 fi 45020 45021 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45022 if test "x$test_cygdrive_prefix" = x; then 45023 # As a simple fix, exclude /usr/bin since it's not a real path. 45024 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45025 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45026 # a path prefixed by /cygdrive for fixpath to work. 45027 new_path="$CYGWIN_ROOT_PATH$input_path" 45028 fi 45029 fi 45030 45031 45032 if test "x$path" != "x$new_path"; then 45033 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45035 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45036 fi 45037 45038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45039 45040 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45041 has_colon=`$ECHO $path | $GREP ^.:` 45042 new_path="$path" 45043 if test "x$has_colon" = x; then 45044 # Not in mixed or Windows style, start by that. 45045 new_path=`cmd //c echo $path` 45046 fi 45047 45048 45049 input_path="$new_path" 45050 # Check if we need to convert this using DOS-style short mode. If the path 45051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45052 # take no chances and rewrite it. 45053 # Note: m4 eats our [], so we need to use [ and ] instead. 45054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45055 if test "x$has_forbidden_chars" != x; then 45056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45057 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45058 fi 45059 45060 45061 windows_path="$new_path" 45062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45063 unix_path=`$CYGPATH -u "$windows_path"` 45064 new_path="$unix_path" 45065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45067 new_path="$unix_path" 45068 fi 45069 45070 if test "x$path" != "x$new_path"; then 45071 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45073 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45074 fi 45075 45076 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45077 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45078 45079 else 45080 # We're on a unix platform. Hooray! :) 45081 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45082 has_space=`$ECHO "$path" | $GREP " "` 45083 if test "x$has_space" != x; then 45084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45085 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45086 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45087 fi 45088 45089 # Use eval to expand a potential ~ 45090 eval path="$path" 45091 if test ! -f "$path" && test ! -d "$path"; then 45092 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45093 fi 45094 45095 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45096 fi 45097 45098 45099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45100 45101 # Input might be given as Windows format, start by converting to 45102 # unix format. 45103 path="$POTENTIAL_FREETYPE_LIB_PATH" 45104 new_path=`$CYGPATH -u "$path"` 45105 45106 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45107 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45108 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45109 # "foo.exe" is OK but "foo" is an error. 45110 # 45111 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45112 # It is also a way to make sure we got the proper file name for the real test later on. 45113 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45114 if test "x$test_shortpath" = x; then 45115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45116 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45117 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45118 fi 45119 45120 # Call helper function which possibly converts this using DOS-style short mode. 45121 # If so, the updated path is stored in $new_path. 45122 45123 input_path="$new_path" 45124 # Check if we need to convert this using DOS-style short mode. If the path 45125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45126 # take no chances and rewrite it. 45127 # Note: m4 eats our [], so we need to use [ and ] instead. 45128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45129 if test "x$has_forbidden_chars" != x; then 45130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45131 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45132 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45133 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45134 # Going to short mode and back again did indeed matter. Since short mode is 45135 # case insensitive, let's make it lowercase to improve readability. 45136 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45137 # Now convert it back to Unix-stile (cygpath) 45138 input_path=`$CYGPATH -u "$shortmode_path"` 45139 new_path="$input_path" 45140 fi 45141 fi 45142 45143 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45144 if test "x$test_cygdrive_prefix" = x; then 45145 # As a simple fix, exclude /usr/bin since it's not a real path. 45146 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45147 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45148 # a path prefixed by /cygdrive for fixpath to work. 45149 new_path="$CYGWIN_ROOT_PATH$input_path" 45150 fi 45151 fi 45152 45153 45154 if test "x$path" != "x$new_path"; then 45155 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45156 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45157 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45158 fi 45159 45160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45161 45162 path="$POTENTIAL_FREETYPE_LIB_PATH" 45163 has_colon=`$ECHO $path | $GREP ^.:` 45164 new_path="$path" 45165 if test "x$has_colon" = x; then 45166 # Not in mixed or Windows style, start by that. 45167 new_path=`cmd //c echo $path` 45168 fi 45169 45170 45171 input_path="$new_path" 45172 # Check if we need to convert this using DOS-style short mode. If the path 45173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45174 # take no chances and rewrite it. 45175 # Note: m4 eats our [], so we need to use [ and ] instead. 45176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45177 if test "x$has_forbidden_chars" != x; then 45178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45179 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45180 fi 45181 45182 45183 windows_path="$new_path" 45184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45185 unix_path=`$CYGPATH -u "$windows_path"` 45186 new_path="$unix_path" 45187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45189 new_path="$unix_path" 45190 fi 45191 45192 if test "x$path" != "x$new_path"; then 45193 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45194 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45195 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45196 fi 45197 45198 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45199 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45200 45201 else 45202 # We're on a unix platform. Hooray! :) 45203 path="$POTENTIAL_FREETYPE_LIB_PATH" 45204 has_space=`$ECHO "$path" | $GREP " "` 45205 if test "x$has_space" != x; then 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45207 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45208 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45209 fi 45210 45211 # Use eval to expand a potential ~ 45212 eval path="$path" 45213 if test ! -f "$path" && test ! -d "$path"; then 45214 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45215 fi 45216 45217 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45218 fi 45219 45220 45221 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45223 $as_echo_n "checking for freetype includes... " >&6; } 45224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45225 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45226 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45228 $as_echo_n "checking for freetype libraries... " >&6; } 45229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45230 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45231 fi 45232 45233 if test "x$FOUND_FREETYPE" != xyes; then 45234 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45235 fi 45236 else 45237 # User specified only one of lib or include. This is an error. 45238 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45239 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45240 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45241 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45242 else 45243 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45244 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45245 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45246 fi 45247 fi 45248 else 45249 # User did not specify settings, but we need freetype. Try to locate it. 45250 45251 if test "x$BUNDLE_FREETYPE" = x; then 45252 # If not specified, default is to bundle freetype only on windows 45253 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45254 BUNDLE_FREETYPE=yes 45255 else 45256 BUNDLE_FREETYPE=no 45257 fi 45258 fi 45259 45260 if test "x$FOUND_FREETYPE" != xyes; then 45261 # Check builddeps 45262 45263 45264 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45265 # Source the builddeps file again, to make sure it uses the latest variables! 45266 . $builddepsfile 45267 # Look for a target and build machine specific resource! 45268 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45269 if test "x$resource" = x; then 45270 # Ok, lets instead look for a target specific resource 45271 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45272 fi 45273 if test "x$resource" = x; then 45274 # Ok, lets instead look for a build specific resource 45275 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45276 fi 45277 if test "x$resource" = x; then 45278 # Ok, lets instead look for a generic resource 45279 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45280 resource=${builddep_freetype2} 45281 fi 45282 if test "x$resource" != x; then 45283 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45284 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45285 # If the resource in the builddeps.conf file is an existing directory, 45286 # for example /java/linux/cups 45287 if test -d ${resource}; then 45288 depdir=${resource} 45289 else 45290 45291 # freetype2 is for example mymodule 45292 # $resource is for example libs/general/libmymod_1_2_3.zip 45293 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45294 # $with_builddeps_dir is for example /localhome/builddeps 45295 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45296 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45297 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45298 filename=`basename $resource` 45299 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45300 filebase=${filename%%.*} 45301 extension=${filename#*.} 45302 installdir=$with_builddeps_dir/$filebase 45303 if test ! -f $installdir/$filename.unpacked; then 45304 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45305 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45306 if test ! -d $installdir; then 45307 mkdir -p $installdir 45308 fi 45309 if test ! -d $installdir; then 45310 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45311 fi 45312 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45313 touch $tmpfile 45314 if test ! -f $tmpfile; then 45315 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45316 fi 45317 45318 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45319 # $tmpfile is the local file name for the downloaded file. 45320 VALID_TOOL=no 45321 if test "x$BDEPS_FTP" = xwget; then 45322 VALID_TOOL=yes 45323 wget -O $tmpfile $with_builddeps_server/$resource 45324 fi 45325 if test "x$BDEPS_FTP" = xlftp; then 45326 VALID_TOOL=yes 45327 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45328 fi 45329 if test "x$BDEPS_FTP" = xftp; then 45330 VALID_TOOL=yes 45331 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45332 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45333 FTPUSERPWD=${FTPSERVER%%@*} 45334 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45335 FTPUSER=${userpwd%%:*} 45336 FTPPWD=${userpwd#*@} 45337 FTPSERVER=${FTPSERVER#*@} 45338 else 45339 FTPUSER=ftp 45340 FTPPWD=ftp 45341 fi 45342 # the "pass" command does not work on some 45343 # ftp clients (read ftp.exe) but if it works, 45344 # passive mode is better! 45345 ( \ 45346 echo "user $FTPUSER $FTPPWD" ; \ 45347 echo "pass" ; \ 45348 echo "bin" ; \ 45349 echo "get $FTPPATH $tmpfile" ; \ 45350 ) | ftp -in $FTPSERVER 45351 fi 45352 if test "x$VALID_TOOL" != xyes; then 45353 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45354 fi 45355 45356 mv $tmpfile $installdir/$filename 45357 if test ! -s $installdir/$filename; then 45358 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45359 fi 45360 case "$extension" in 45361 zip) echo "Unzipping $installdir/$filename..." 45362 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45363 ;; 45364 tar.gz) echo "Untaring $installdir/$filename..." 45365 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45366 ;; 45367 tgz) echo "Untaring $installdir/$filename..." 45368 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45369 ;; 45370 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45371 ;; 45372 esac 45373 fi 45374 if test -f $installdir/$filename.unpacked; then 45375 depdir=$installdir 45376 fi 45377 45378 fi 45379 # Source the builddeps file again, because in the previous command, the depdir 45380 # was updated to point at the current build dependency install directory. 45381 . $builddepsfile 45382 # Now extract variables from the builddeps.conf files. 45383 theroot=${builddep_freetype2_ROOT} 45384 thecflags=${builddep_freetype2_CFLAGS} 45385 thelibs=${builddep_freetype2_LIBS} 45386 if test "x$depdir" = x; then 45387 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45388 fi 45389 FREETYPE=$depdir 45390 if test "x$theroot" != x; then 45391 FREETYPE="$theroot" 45392 fi 45393 if test "x$thecflags" != x; then 45394 FREETYPE_CFLAGS="$thecflags" 45395 fi 45396 if test "x$thelibs" != x; then 45397 FREETYPE_LIBS="$thelibs" 45398 fi 45399 FOUND_FREETYPE=yes 45400 else FOUND_FREETYPE=no 45401 45402 fi 45403 else FOUND_FREETYPE=no 45404 45405 fi 45406 45407 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45408 if test "x$FOUND_FREETYPE" = xyes; then 45409 if test "x$BUNDLE_FREETYPE" = xyes; then 45410 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45411 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45412 FOUND_FREETYPE=no 45413 else 45414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45415 $as_echo_n "checking for freetype... " >&6; } 45416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45417 $as_echo "yes (using builddeps)" >&6; } 45418 fi 45419 fi 45420 fi 45421 45422 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45423 if test "x$SYSROOT" = x; then 45424 if test "x$FOUND_FREETYPE" != xyes; then 45425 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45426 if test "x$PKG_CONFIG" != x; then 45427 45428 pkg_failed=no 45429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45430 $as_echo_n "checking for FREETYPE... " >&6; } 45431 45432 if test -n "$FREETYPE_CFLAGS"; then 45433 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45434 elif test -n "$PKG_CONFIG"; then 45435 if test -n "$PKG_CONFIG" && \ 45436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45437 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45438 ac_status=$? 45439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45440 test $ac_status = 0; }; then 45441 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45442 else 45443 pkg_failed=yes 45444 fi 45445 else 45446 pkg_failed=untried 45447 fi 45448 if test -n "$FREETYPE_LIBS"; then 45449 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45450 elif test -n "$PKG_CONFIG"; then 45451 if test -n "$PKG_CONFIG" && \ 45452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45453 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45454 ac_status=$? 45455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45456 test $ac_status = 0; }; then 45457 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45458 else 45459 pkg_failed=yes 45460 fi 45461 else 45462 pkg_failed=untried 45463 fi 45464 45465 45466 45467 if test $pkg_failed = yes; then 45468 45469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45470 _pkg_short_errors_supported=yes 45471 else 45472 _pkg_short_errors_supported=no 45473 fi 45474 if test $_pkg_short_errors_supported = yes; then 45475 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45476 else 45477 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45478 fi 45479 # Put the nasty error message in config.log where it belongs 45480 echo "$FREETYPE_PKG_ERRORS" >&5 45481 45482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45483 $as_echo "no" >&6; } 45484 FOUND_FREETYPE=no 45485 elif test $pkg_failed = untried; then 45486 FOUND_FREETYPE=no 45487 else 45488 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45489 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45491 $as_echo "yes" >&6; } 45492 FOUND_FREETYPE=yes 45493 fi 45494 if test "x$FOUND_FREETYPE" = xyes; then 45495 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45496 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45497 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45498 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45499 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45500 fi 45501 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45502 if test "x$BUNDLE_FREETYPE" = xyes; then 45503 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45504 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45505 FOUND_FREETYPE=no 45506 else 45507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45508 $as_echo_n "checking for freetype... " >&6; } 45509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45510 $as_echo "yes (using pkg-config)" >&6; } 45511 fi 45512 fi 45513 fi 45514 fi 45515 fi 45516 45517 if test "x$FOUND_FREETYPE" != xyes; then 45518 # Check in well-known locations 45519 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45520 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45521 45522 windows_path="$FREETYPE_BASE_DIR" 45523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45524 unix_path=`$CYGPATH -u "$windows_path"` 45525 FREETYPE_BASE_DIR="$unix_path" 45526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45527 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45528 FREETYPE_BASE_DIR="$unix_path" 45529 fi 45530 45531 45532 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45533 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45534 METHOD="well-known location" 45535 45536 # Let's start with an optimistic view of the world :-) 45537 FOUND_FREETYPE=yes 45538 45539 # First look for the canonical freetype main include file ft2build.h. 45540 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45541 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45542 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45543 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45544 # Fail. 45545 FOUND_FREETYPE=no 45546 fi 45547 fi 45548 45549 if test "x$FOUND_FREETYPE" = xyes; then 45550 # Include file found, let's continue the sanity check. 45551 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45552 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45553 45554 # Reset to default value 45555 FREETYPE_BASE_NAME=freetype 45556 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45557 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45558 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45559 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45560 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45561 # for the .6 version explicitly. 45562 FREETYPE_BASE_NAME=freetype.6 45563 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45564 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45565 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45566 else 45567 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45568 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45569 FOUND_FREETYPE=no 45570 fi 45571 else 45572 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45573 # On Windows, we will need both .lib and .dll file. 45574 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45575 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45576 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45577 FOUND_FREETYPE=no 45578 fi 45579 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45580 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45581 # Found lib in isa dir, use that instead. 45582 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45584 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45585 fi 45586 fi 45587 fi 45588 45589 if test "x$FOUND_FREETYPE" = xyes; then 45590 45591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45592 45593 # Input might be given as Windows format, start by converting to 45594 # unix format. 45595 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45596 new_path=`$CYGPATH -u "$path"` 45597 45598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45601 # "foo.exe" is OK but "foo" is an error. 45602 # 45603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45604 # It is also a way to make sure we got the proper file name for the real test later on. 45605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45606 if test "x$test_shortpath" = x; then 45607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45608 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45609 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45610 fi 45611 45612 # Call helper function which possibly converts this using DOS-style short mode. 45613 # If so, the updated path is stored in $new_path. 45614 45615 input_path="$new_path" 45616 # Check if we need to convert this using DOS-style short mode. If the path 45617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45618 # take no chances and rewrite it. 45619 # Note: m4 eats our [], so we need to use [ and ] instead. 45620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45621 if test "x$has_forbidden_chars" != x; then 45622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45626 # Going to short mode and back again did indeed matter. Since short mode is 45627 # case insensitive, let's make it lowercase to improve readability. 45628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45629 # Now convert it back to Unix-stile (cygpath) 45630 input_path=`$CYGPATH -u "$shortmode_path"` 45631 new_path="$input_path" 45632 fi 45633 fi 45634 45635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45636 if test "x$test_cygdrive_prefix" = x; then 45637 # As a simple fix, exclude /usr/bin since it's not a real path. 45638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45640 # a path prefixed by /cygdrive for fixpath to work. 45641 new_path="$CYGWIN_ROOT_PATH$input_path" 45642 fi 45643 fi 45644 45645 45646 if test "x$path" != "x$new_path"; then 45647 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45649 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45650 fi 45651 45652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45653 45654 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45655 has_colon=`$ECHO $path | $GREP ^.:` 45656 new_path="$path" 45657 if test "x$has_colon" = x; then 45658 # Not in mixed or Windows style, start by that. 45659 new_path=`cmd //c echo $path` 45660 fi 45661 45662 45663 input_path="$new_path" 45664 # Check if we need to convert this using DOS-style short mode. If the path 45665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45666 # take no chances and rewrite it. 45667 # Note: m4 eats our [], so we need to use [ and ] instead. 45668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45669 if test "x$has_forbidden_chars" != x; then 45670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45672 fi 45673 45674 45675 windows_path="$new_path" 45676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45677 unix_path=`$CYGPATH -u "$windows_path"` 45678 new_path="$unix_path" 45679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45681 new_path="$unix_path" 45682 fi 45683 45684 if test "x$path" != "x$new_path"; then 45685 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45687 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45688 fi 45689 45690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45692 45693 else 45694 # We're on a unix platform. Hooray! :) 45695 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45696 has_space=`$ECHO "$path" | $GREP " "` 45697 if test "x$has_space" != x; then 45698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45699 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45701 fi 45702 45703 # Use eval to expand a potential ~ 45704 eval path="$path" 45705 if test ! -f "$path" && test ! -d "$path"; then 45706 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45707 fi 45708 45709 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45710 fi 45711 45712 45713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45714 45715 # Input might be given as Windows format, start by converting to 45716 # unix format. 45717 path="$POTENTIAL_FREETYPE_LIB_PATH" 45718 new_path=`$CYGPATH -u "$path"` 45719 45720 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45721 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45722 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45723 # "foo.exe" is OK but "foo" is an error. 45724 # 45725 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45726 # It is also a way to make sure we got the proper file name for the real test later on. 45727 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45728 if test "x$test_shortpath" = x; then 45729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45730 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45731 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45732 fi 45733 45734 # Call helper function which possibly converts this using DOS-style short mode. 45735 # If so, the updated path is stored in $new_path. 45736 45737 input_path="$new_path" 45738 # Check if we need to convert this using DOS-style short mode. If the path 45739 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45740 # take no chances and rewrite it. 45741 # Note: m4 eats our [], so we need to use [ and ] instead. 45742 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45743 if test "x$has_forbidden_chars" != x; then 45744 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45745 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45746 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45747 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45748 # Going to short mode and back again did indeed matter. Since short mode is 45749 # case insensitive, let's make it lowercase to improve readability. 45750 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45751 # Now convert it back to Unix-stile (cygpath) 45752 input_path=`$CYGPATH -u "$shortmode_path"` 45753 new_path="$input_path" 45754 fi 45755 fi 45756 45757 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45758 if test "x$test_cygdrive_prefix" = x; then 45759 # As a simple fix, exclude /usr/bin since it's not a real path. 45760 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45761 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45762 # a path prefixed by /cygdrive for fixpath to work. 45763 new_path="$CYGWIN_ROOT_PATH$input_path" 45764 fi 45765 fi 45766 45767 45768 if test "x$path" != "x$new_path"; then 45769 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45770 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45771 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45772 fi 45773 45774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45775 45776 path="$POTENTIAL_FREETYPE_LIB_PATH" 45777 has_colon=`$ECHO $path | $GREP ^.:` 45778 new_path="$path" 45779 if test "x$has_colon" = x; then 45780 # Not in mixed or Windows style, start by that. 45781 new_path=`cmd //c echo $path` 45782 fi 45783 45784 45785 input_path="$new_path" 45786 # Check if we need to convert this using DOS-style short mode. If the path 45787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45788 # take no chances and rewrite it. 45789 # Note: m4 eats our [], so we need to use [ and ] instead. 45790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45791 if test "x$has_forbidden_chars" != x; then 45792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45793 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45794 fi 45795 45796 45797 windows_path="$new_path" 45798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45799 unix_path=`$CYGPATH -u "$windows_path"` 45800 new_path="$unix_path" 45801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45803 new_path="$unix_path" 45804 fi 45805 45806 if test "x$path" != "x$new_path"; then 45807 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45808 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45809 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45810 fi 45811 45812 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45813 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45814 45815 else 45816 # We're on a unix platform. Hooray! :) 45817 path="$POTENTIAL_FREETYPE_LIB_PATH" 45818 has_space=`$ECHO "$path" | $GREP " "` 45819 if test "x$has_space" != x; then 45820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45821 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45822 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45823 fi 45824 45825 # Use eval to expand a potential ~ 45826 eval path="$path" 45827 if test ! -f "$path" && test ! -d "$path"; then 45828 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45829 fi 45830 45831 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45832 fi 45833 45834 45835 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45837 $as_echo_n "checking for freetype includes... " >&6; } 45838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45839 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45840 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45842 $as_echo_n "checking for freetype libraries... " >&6; } 45843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45844 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45845 fi 45846 45847 if test "x$FOUND_FREETYPE" != xyes; then 45848 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45849 45850 windows_path="$FREETYPE_BASE_DIR" 45851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45852 unix_path=`$CYGPATH -u "$windows_path"` 45853 FREETYPE_BASE_DIR="$unix_path" 45854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45856 FREETYPE_BASE_DIR="$unix_path" 45857 fi 45858 45859 45860 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45861 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45862 METHOD="well-known location" 45863 45864 # Let's start with an optimistic view of the world :-) 45865 FOUND_FREETYPE=yes 45866 45867 # First look for the canonical freetype main include file ft2build.h. 45868 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45869 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45870 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45871 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45872 # Fail. 45873 FOUND_FREETYPE=no 45874 fi 45875 fi 45876 45877 if test "x$FOUND_FREETYPE" = xyes; then 45878 # Include file found, let's continue the sanity check. 45879 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45880 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45881 45882 # Reset to default value 45883 FREETYPE_BASE_NAME=freetype 45884 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45885 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45886 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45887 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45888 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45889 # for the .6 version explicitly. 45890 FREETYPE_BASE_NAME=freetype.6 45891 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45892 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45893 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45894 else 45895 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45896 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45897 FOUND_FREETYPE=no 45898 fi 45899 else 45900 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45901 # On Windows, we will need both .lib and .dll file. 45902 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45903 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45904 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45905 FOUND_FREETYPE=no 45906 fi 45907 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45908 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45909 # Found lib in isa dir, use that instead. 45910 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45912 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45913 fi 45914 fi 45915 fi 45916 45917 if test "x$FOUND_FREETYPE" = xyes; then 45918 45919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45920 45921 # Input might be given as Windows format, start by converting to 45922 # unix format. 45923 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45924 new_path=`$CYGPATH -u "$path"` 45925 45926 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45927 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45928 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45929 # "foo.exe" is OK but "foo" is an error. 45930 # 45931 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45932 # It is also a way to make sure we got the proper file name for the real test later on. 45933 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45934 if test "x$test_shortpath" = x; then 45935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45936 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45937 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45938 fi 45939 45940 # Call helper function which possibly converts this using DOS-style short mode. 45941 # If so, the updated path is stored in $new_path. 45942 45943 input_path="$new_path" 45944 # Check if we need to convert this using DOS-style short mode. If the path 45945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45946 # take no chances and rewrite it. 45947 # Note: m4 eats our [], so we need to use [ and ] instead. 45948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45949 if test "x$has_forbidden_chars" != x; then 45950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45951 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45952 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45953 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45954 # Going to short mode and back again did indeed matter. Since short mode is 45955 # case insensitive, let's make it lowercase to improve readability. 45956 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45957 # Now convert it back to Unix-stile (cygpath) 45958 input_path=`$CYGPATH -u "$shortmode_path"` 45959 new_path="$input_path" 45960 fi 45961 fi 45962 45963 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45964 if test "x$test_cygdrive_prefix" = x; then 45965 # As a simple fix, exclude /usr/bin since it's not a real path. 45966 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45967 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45968 # a path prefixed by /cygdrive for fixpath to work. 45969 new_path="$CYGWIN_ROOT_PATH$input_path" 45970 fi 45971 fi 45972 45973 45974 if test "x$path" != "x$new_path"; then 45975 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45977 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45978 fi 45979 45980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45981 45982 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45983 has_colon=`$ECHO $path | $GREP ^.:` 45984 new_path="$path" 45985 if test "x$has_colon" = x; then 45986 # Not in mixed or Windows style, start by that. 45987 new_path=`cmd //c echo $path` 45988 fi 45989 45990 45991 input_path="$new_path" 45992 # Check if we need to convert this using DOS-style short mode. If the path 45993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45994 # take no chances and rewrite it. 45995 # Note: m4 eats our [], so we need to use [ and ] instead. 45996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45997 if test "x$has_forbidden_chars" != x; then 45998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45999 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46000 fi 46001 46002 46003 windows_path="$new_path" 46004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46005 unix_path=`$CYGPATH -u "$windows_path"` 46006 new_path="$unix_path" 46007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46009 new_path="$unix_path" 46010 fi 46011 46012 if test "x$path" != "x$new_path"; then 46013 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46015 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46016 fi 46017 46018 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46019 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46020 46021 else 46022 # We're on a unix platform. Hooray! :) 46023 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46024 has_space=`$ECHO "$path" | $GREP " "` 46025 if test "x$has_space" != x; then 46026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46027 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46028 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46029 fi 46030 46031 # Use eval to expand a potential ~ 46032 eval path="$path" 46033 if test ! -f "$path" && test ! -d "$path"; then 46034 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46035 fi 46036 46037 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46038 fi 46039 46040 46041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46042 46043 # Input might be given as Windows format, start by converting to 46044 # unix format. 46045 path="$POTENTIAL_FREETYPE_LIB_PATH" 46046 new_path=`$CYGPATH -u "$path"` 46047 46048 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46049 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46050 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46051 # "foo.exe" is OK but "foo" is an error. 46052 # 46053 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46054 # It is also a way to make sure we got the proper file name for the real test later on. 46055 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46056 if test "x$test_shortpath" = x; then 46057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46058 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46059 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46060 fi 46061 46062 # Call helper function which possibly converts this using DOS-style short mode. 46063 # If so, the updated path is stored in $new_path. 46064 46065 input_path="$new_path" 46066 # Check if we need to convert this using DOS-style short mode. If the path 46067 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46068 # take no chances and rewrite it. 46069 # Note: m4 eats our [], so we need to use [ and ] instead. 46070 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46071 if test "x$has_forbidden_chars" != x; then 46072 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46073 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46074 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46075 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46076 # Going to short mode and back again did indeed matter. Since short mode is 46077 # case insensitive, let's make it lowercase to improve readability. 46078 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46079 # Now convert it back to Unix-stile (cygpath) 46080 input_path=`$CYGPATH -u "$shortmode_path"` 46081 new_path="$input_path" 46082 fi 46083 fi 46084 46085 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46086 if test "x$test_cygdrive_prefix" = x; then 46087 # As a simple fix, exclude /usr/bin since it's not a real path. 46088 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46089 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46090 # a path prefixed by /cygdrive for fixpath to work. 46091 new_path="$CYGWIN_ROOT_PATH$input_path" 46092 fi 46093 fi 46094 46095 46096 if test "x$path" != "x$new_path"; then 46097 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46099 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46100 fi 46101 46102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46103 46104 path="$POTENTIAL_FREETYPE_LIB_PATH" 46105 has_colon=`$ECHO $path | $GREP ^.:` 46106 new_path="$path" 46107 if test "x$has_colon" = x; then 46108 # Not in mixed or Windows style, start by that. 46109 new_path=`cmd //c echo $path` 46110 fi 46111 46112 46113 input_path="$new_path" 46114 # Check if we need to convert this using DOS-style short mode. If the path 46115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46116 # take no chances and rewrite it. 46117 # Note: m4 eats our [], so we need to use [ and ] instead. 46118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46119 if test "x$has_forbidden_chars" != x; then 46120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46121 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46122 fi 46123 46124 46125 windows_path="$new_path" 46126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46127 unix_path=`$CYGPATH -u "$windows_path"` 46128 new_path="$unix_path" 46129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46130 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46131 new_path="$unix_path" 46132 fi 46133 46134 if test "x$path" != "x$new_path"; then 46135 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46137 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46138 fi 46139 46140 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46141 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46142 46143 else 46144 # We're on a unix platform. Hooray! :) 46145 path="$POTENTIAL_FREETYPE_LIB_PATH" 46146 has_space=`$ECHO "$path" | $GREP " "` 46147 if test "x$has_space" != x; then 46148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46149 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46150 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46151 fi 46152 46153 # Use eval to expand a potential ~ 46154 eval path="$path" 46155 if test ! -f "$path" && test ! -d "$path"; then 46156 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46157 fi 46158 46159 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46160 fi 46161 46162 46163 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46165 $as_echo_n "checking for freetype includes... " >&6; } 46166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46167 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46168 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46170 $as_echo_n "checking for freetype libraries... " >&6; } 46171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46172 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46173 fi 46174 46175 fi 46176 else 46177 FREETYPE_BASE_DIR="$SYSROOT/usr" 46178 46179 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46180 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46181 METHOD="well-known location" 46182 46183 # Let's start with an optimistic view of the world :-) 46184 FOUND_FREETYPE=yes 46185 46186 # First look for the canonical freetype main include file ft2build.h. 46187 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46188 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46189 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46190 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46191 # Fail. 46192 FOUND_FREETYPE=no 46193 fi 46194 fi 46195 46196 if test "x$FOUND_FREETYPE" = xyes; then 46197 # Include file found, let's continue the sanity check. 46198 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46199 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46200 46201 # Reset to default value 46202 FREETYPE_BASE_NAME=freetype 46203 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46204 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46205 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46206 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46207 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46208 # for the .6 version explicitly. 46209 FREETYPE_BASE_NAME=freetype.6 46210 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46211 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46212 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46213 else 46214 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46215 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46216 FOUND_FREETYPE=no 46217 fi 46218 else 46219 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46220 # On Windows, we will need both .lib and .dll file. 46221 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46222 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46223 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46224 FOUND_FREETYPE=no 46225 fi 46226 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46227 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46228 # Found lib in isa dir, use that instead. 46229 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46231 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46232 fi 46233 fi 46234 fi 46235 46236 if test "x$FOUND_FREETYPE" = xyes; then 46237 46238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46239 46240 # Input might be given as Windows format, start by converting to 46241 # unix format. 46242 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46243 new_path=`$CYGPATH -u "$path"` 46244 46245 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46246 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46247 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46248 # "foo.exe" is OK but "foo" is an error. 46249 # 46250 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46251 # It is also a way to make sure we got the proper file name for the real test later on. 46252 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46253 if test "x$test_shortpath" = x; then 46254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46255 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46256 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46257 fi 46258 46259 # Call helper function which possibly converts this using DOS-style short mode. 46260 # If so, the updated path is stored in $new_path. 46261 46262 input_path="$new_path" 46263 # Check if we need to convert this using DOS-style short mode. If the path 46264 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46265 # take no chances and rewrite it. 46266 # Note: m4 eats our [], so we need to use [ and ] instead. 46267 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46268 if test "x$has_forbidden_chars" != x; then 46269 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46270 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46271 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46272 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46273 # Going to short mode and back again did indeed matter. Since short mode is 46274 # case insensitive, let's make it lowercase to improve readability. 46275 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46276 # Now convert it back to Unix-stile (cygpath) 46277 input_path=`$CYGPATH -u "$shortmode_path"` 46278 new_path="$input_path" 46279 fi 46280 fi 46281 46282 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46283 if test "x$test_cygdrive_prefix" = x; then 46284 # As a simple fix, exclude /usr/bin since it's not a real path. 46285 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46286 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46287 # a path prefixed by /cygdrive for fixpath to work. 46288 new_path="$CYGWIN_ROOT_PATH$input_path" 46289 fi 46290 fi 46291 46292 46293 if test "x$path" != "x$new_path"; then 46294 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46296 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46297 fi 46298 46299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46300 46301 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46302 has_colon=`$ECHO $path | $GREP ^.:` 46303 new_path="$path" 46304 if test "x$has_colon" = x; then 46305 # Not in mixed or Windows style, start by that. 46306 new_path=`cmd //c echo $path` 46307 fi 46308 46309 46310 input_path="$new_path" 46311 # Check if we need to convert this using DOS-style short mode. If the path 46312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46313 # take no chances and rewrite it. 46314 # Note: m4 eats our [], so we need to use [ and ] instead. 46315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46316 if test "x$has_forbidden_chars" != x; then 46317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46318 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46319 fi 46320 46321 46322 windows_path="$new_path" 46323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46324 unix_path=`$CYGPATH -u "$windows_path"` 46325 new_path="$unix_path" 46326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46328 new_path="$unix_path" 46329 fi 46330 46331 if test "x$path" != "x$new_path"; then 46332 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46334 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46335 fi 46336 46337 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46338 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46339 46340 else 46341 # We're on a unix platform. Hooray! :) 46342 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46343 has_space=`$ECHO "$path" | $GREP " "` 46344 if test "x$has_space" != x; then 46345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46346 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46347 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46348 fi 46349 46350 # Use eval to expand a potential ~ 46351 eval path="$path" 46352 if test ! -f "$path" && test ! -d "$path"; then 46353 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46354 fi 46355 46356 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46357 fi 46358 46359 46360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46361 46362 # Input might be given as Windows format, start by converting to 46363 # unix format. 46364 path="$POTENTIAL_FREETYPE_LIB_PATH" 46365 new_path=`$CYGPATH -u "$path"` 46366 46367 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46368 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46369 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46370 # "foo.exe" is OK but "foo" is an error. 46371 # 46372 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46373 # It is also a way to make sure we got the proper file name for the real test later on. 46374 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46375 if test "x$test_shortpath" = x; then 46376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46377 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46378 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46379 fi 46380 46381 # Call helper function which possibly converts this using DOS-style short mode. 46382 # If so, the updated path is stored in $new_path. 46383 46384 input_path="$new_path" 46385 # Check if we need to convert this using DOS-style short mode. If the path 46386 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46387 # take no chances and rewrite it. 46388 # Note: m4 eats our [], so we need to use [ and ] instead. 46389 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46390 if test "x$has_forbidden_chars" != x; then 46391 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46392 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46393 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46394 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46395 # Going to short mode and back again did indeed matter. Since short mode is 46396 # case insensitive, let's make it lowercase to improve readability. 46397 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46398 # Now convert it back to Unix-stile (cygpath) 46399 input_path=`$CYGPATH -u "$shortmode_path"` 46400 new_path="$input_path" 46401 fi 46402 fi 46403 46404 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46405 if test "x$test_cygdrive_prefix" = x; then 46406 # As a simple fix, exclude /usr/bin since it's not a real path. 46407 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46408 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46409 # a path prefixed by /cygdrive for fixpath to work. 46410 new_path="$CYGWIN_ROOT_PATH$input_path" 46411 fi 46412 fi 46413 46414 46415 if test "x$path" != "x$new_path"; then 46416 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46417 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46418 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46419 fi 46420 46421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46422 46423 path="$POTENTIAL_FREETYPE_LIB_PATH" 46424 has_colon=`$ECHO $path | $GREP ^.:` 46425 new_path="$path" 46426 if test "x$has_colon" = x; then 46427 # Not in mixed or Windows style, start by that. 46428 new_path=`cmd //c echo $path` 46429 fi 46430 46431 46432 input_path="$new_path" 46433 # Check if we need to convert this using DOS-style short mode. If the path 46434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46435 # take no chances and rewrite it. 46436 # Note: m4 eats our [], so we need to use [ and ] instead. 46437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46438 if test "x$has_forbidden_chars" != x; then 46439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46440 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46441 fi 46442 46443 46444 windows_path="$new_path" 46445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46446 unix_path=`$CYGPATH -u "$windows_path"` 46447 new_path="$unix_path" 46448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46450 new_path="$unix_path" 46451 fi 46452 46453 if test "x$path" != "x$new_path"; then 46454 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46455 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46456 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46457 fi 46458 46459 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46460 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46461 46462 else 46463 # We're on a unix platform. Hooray! :) 46464 path="$POTENTIAL_FREETYPE_LIB_PATH" 46465 has_space=`$ECHO "$path" | $GREP " "` 46466 if test "x$has_space" != x; then 46467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46468 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46469 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46470 fi 46471 46472 # Use eval to expand a potential ~ 46473 eval path="$path" 46474 if test ! -f "$path" && test ! -d "$path"; then 46475 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46476 fi 46477 46478 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46479 fi 46480 46481 46482 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46484 $as_echo_n "checking for freetype includes... " >&6; } 46485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46486 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46487 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46489 $as_echo_n "checking for freetype libraries... " >&6; } 46490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46491 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46492 fi 46493 46494 46495 if test "x$FOUND_FREETYPE" != xyes; then 46496 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46497 46498 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46499 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46500 METHOD="well-known location" 46501 46502 # Let's start with an optimistic view of the world :-) 46503 FOUND_FREETYPE=yes 46504 46505 # First look for the canonical freetype main include file ft2build.h. 46506 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46507 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46508 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46509 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46510 # Fail. 46511 FOUND_FREETYPE=no 46512 fi 46513 fi 46514 46515 if test "x$FOUND_FREETYPE" = xyes; then 46516 # Include file found, let's continue the sanity check. 46517 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46518 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46519 46520 # Reset to default value 46521 FREETYPE_BASE_NAME=freetype 46522 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46523 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46524 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46525 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46526 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46527 # for the .6 version explicitly. 46528 FREETYPE_BASE_NAME=freetype.6 46529 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46530 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46531 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46532 else 46533 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46534 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46535 FOUND_FREETYPE=no 46536 fi 46537 else 46538 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46539 # On Windows, we will need both .lib and .dll file. 46540 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46541 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46542 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46543 FOUND_FREETYPE=no 46544 fi 46545 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46546 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46547 # Found lib in isa dir, use that instead. 46548 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46549 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46550 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46551 fi 46552 fi 46553 fi 46554 46555 if test "x$FOUND_FREETYPE" = xyes; then 46556 46557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46558 46559 # Input might be given as Windows format, start by converting to 46560 # unix format. 46561 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46562 new_path=`$CYGPATH -u "$path"` 46563 46564 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46565 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46566 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46567 # "foo.exe" is OK but "foo" is an error. 46568 # 46569 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46570 # It is also a way to make sure we got the proper file name for the real test later on. 46571 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46572 if test "x$test_shortpath" = x; then 46573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46574 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46575 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46576 fi 46577 46578 # Call helper function which possibly converts this using DOS-style short mode. 46579 # If so, the updated path is stored in $new_path. 46580 46581 input_path="$new_path" 46582 # Check if we need to convert this using DOS-style short mode. If the path 46583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46584 # take no chances and rewrite it. 46585 # Note: m4 eats our [], so we need to use [ and ] instead. 46586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46587 if test "x$has_forbidden_chars" != x; then 46588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46589 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46590 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46591 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46592 # Going to short mode and back again did indeed matter. Since short mode is 46593 # case insensitive, let's make it lowercase to improve readability. 46594 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46595 # Now convert it back to Unix-stile (cygpath) 46596 input_path=`$CYGPATH -u "$shortmode_path"` 46597 new_path="$input_path" 46598 fi 46599 fi 46600 46601 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46602 if test "x$test_cygdrive_prefix" = x; then 46603 # As a simple fix, exclude /usr/bin since it's not a real path. 46604 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46605 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46606 # a path prefixed by /cygdrive for fixpath to work. 46607 new_path="$CYGWIN_ROOT_PATH$input_path" 46608 fi 46609 fi 46610 46611 46612 if test "x$path" != "x$new_path"; then 46613 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46615 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46616 fi 46617 46618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46619 46620 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46621 has_colon=`$ECHO $path | $GREP ^.:` 46622 new_path="$path" 46623 if test "x$has_colon" = x; then 46624 # Not in mixed or Windows style, start by that. 46625 new_path=`cmd //c echo $path` 46626 fi 46627 46628 46629 input_path="$new_path" 46630 # Check if we need to convert this using DOS-style short mode. If the path 46631 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46632 # take no chances and rewrite it. 46633 # Note: m4 eats our [], so we need to use [ and ] instead. 46634 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46635 if test "x$has_forbidden_chars" != x; then 46636 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46637 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46638 fi 46639 46640 46641 windows_path="$new_path" 46642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46643 unix_path=`$CYGPATH -u "$windows_path"` 46644 new_path="$unix_path" 46645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46647 new_path="$unix_path" 46648 fi 46649 46650 if test "x$path" != "x$new_path"; then 46651 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46653 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46654 fi 46655 46656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46658 46659 else 46660 # We're on a unix platform. Hooray! :) 46661 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46662 has_space=`$ECHO "$path" | $GREP " "` 46663 if test "x$has_space" != x; then 46664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46665 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46666 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46667 fi 46668 46669 # Use eval to expand a potential ~ 46670 eval path="$path" 46671 if test ! -f "$path" && test ! -d "$path"; then 46672 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46673 fi 46674 46675 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46676 fi 46677 46678 46679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46680 46681 # Input might be given as Windows format, start by converting to 46682 # unix format. 46683 path="$POTENTIAL_FREETYPE_LIB_PATH" 46684 new_path=`$CYGPATH -u "$path"` 46685 46686 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46687 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46688 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46689 # "foo.exe" is OK but "foo" is an error. 46690 # 46691 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46692 # It is also a way to make sure we got the proper file name for the real test later on. 46693 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46694 if test "x$test_shortpath" = x; then 46695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46696 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46697 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46698 fi 46699 46700 # Call helper function which possibly converts this using DOS-style short mode. 46701 # If so, the updated path is stored in $new_path. 46702 46703 input_path="$new_path" 46704 # Check if we need to convert this using DOS-style short mode. If the path 46705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46706 # take no chances and rewrite it. 46707 # Note: m4 eats our [], so we need to use [ and ] instead. 46708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46709 if test "x$has_forbidden_chars" != x; then 46710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46711 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46712 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46713 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46714 # Going to short mode and back again did indeed matter. Since short mode is 46715 # case insensitive, let's make it lowercase to improve readability. 46716 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46717 # Now convert it back to Unix-stile (cygpath) 46718 input_path=`$CYGPATH -u "$shortmode_path"` 46719 new_path="$input_path" 46720 fi 46721 fi 46722 46723 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46724 if test "x$test_cygdrive_prefix" = x; then 46725 # As a simple fix, exclude /usr/bin since it's not a real path. 46726 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46727 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46728 # a path prefixed by /cygdrive for fixpath to work. 46729 new_path="$CYGWIN_ROOT_PATH$input_path" 46730 fi 46731 fi 46732 46733 46734 if test "x$path" != "x$new_path"; then 46735 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46737 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46738 fi 46739 46740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46741 46742 path="$POTENTIAL_FREETYPE_LIB_PATH" 46743 has_colon=`$ECHO $path | $GREP ^.:` 46744 new_path="$path" 46745 if test "x$has_colon" = x; then 46746 # Not in mixed or Windows style, start by that. 46747 new_path=`cmd //c echo $path` 46748 fi 46749 46750 46751 input_path="$new_path" 46752 # Check if we need to convert this using DOS-style short mode. If the path 46753 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46754 # take no chances and rewrite it. 46755 # Note: m4 eats our [], so we need to use [ and ] instead. 46756 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46757 if test "x$has_forbidden_chars" != x; then 46758 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46759 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46760 fi 46761 46762 46763 windows_path="$new_path" 46764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46765 unix_path=`$CYGPATH -u "$windows_path"` 46766 new_path="$unix_path" 46767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46769 new_path="$unix_path" 46770 fi 46771 46772 if test "x$path" != "x$new_path"; then 46773 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46775 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46776 fi 46777 46778 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46779 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46780 46781 else 46782 # We're on a unix platform. Hooray! :) 46783 path="$POTENTIAL_FREETYPE_LIB_PATH" 46784 has_space=`$ECHO "$path" | $GREP " "` 46785 if test "x$has_space" != x; then 46786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46787 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46788 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46789 fi 46790 46791 # Use eval to expand a potential ~ 46792 eval path="$path" 46793 if test ! -f "$path" && test ! -d "$path"; then 46794 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46795 fi 46796 46797 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46798 fi 46799 46800 46801 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46803 $as_echo_n "checking for freetype includes... " >&6; } 46804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46805 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46806 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46808 $as_echo_n "checking for freetype libraries... " >&6; } 46809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46810 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46811 fi 46812 46813 fi 46814 46815 if test "x$FOUND_FREETYPE" != xyes; then 46816 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46817 46818 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46819 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46820 METHOD="well-known location" 46821 46822 # Let's start with an optimistic view of the world :-) 46823 FOUND_FREETYPE=yes 46824 46825 # First look for the canonical freetype main include file ft2build.h. 46826 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46827 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46828 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46829 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46830 # Fail. 46831 FOUND_FREETYPE=no 46832 fi 46833 fi 46834 46835 if test "x$FOUND_FREETYPE" = xyes; then 46836 # Include file found, let's continue the sanity check. 46837 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46838 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46839 46840 # Reset to default value 46841 FREETYPE_BASE_NAME=freetype 46842 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46843 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46844 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46845 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46846 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46847 # for the .6 version explicitly. 46848 FREETYPE_BASE_NAME=freetype.6 46849 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46850 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46851 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46852 else 46853 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46854 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46855 FOUND_FREETYPE=no 46856 fi 46857 else 46858 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46859 # On Windows, we will need both .lib and .dll file. 46860 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46861 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46862 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46863 FOUND_FREETYPE=no 46864 fi 46865 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46866 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46867 # Found lib in isa dir, use that instead. 46868 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46869 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46870 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46871 fi 46872 fi 46873 fi 46874 46875 if test "x$FOUND_FREETYPE" = xyes; then 46876 46877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46878 46879 # Input might be given as Windows format, start by converting to 46880 # unix format. 46881 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46882 new_path=`$CYGPATH -u "$path"` 46883 46884 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46885 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46886 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46887 # "foo.exe" is OK but "foo" is an error. 46888 # 46889 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46890 # It is also a way to make sure we got the proper file name for the real test later on. 46891 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46892 if test "x$test_shortpath" = x; then 46893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46894 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46895 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46896 fi 46897 46898 # Call helper function which possibly converts this using DOS-style short mode. 46899 # If so, the updated path is stored in $new_path. 46900 46901 input_path="$new_path" 46902 # Check if we need to convert this using DOS-style short mode. If the path 46903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46904 # take no chances and rewrite it. 46905 # Note: m4 eats our [], so we need to use [ and ] instead. 46906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46907 if test "x$has_forbidden_chars" != x; then 46908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46909 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46910 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46911 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46912 # Going to short mode and back again did indeed matter. Since short mode is 46913 # case insensitive, let's make it lowercase to improve readability. 46914 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46915 # Now convert it back to Unix-stile (cygpath) 46916 input_path=`$CYGPATH -u "$shortmode_path"` 46917 new_path="$input_path" 46918 fi 46919 fi 46920 46921 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46922 if test "x$test_cygdrive_prefix" = x; then 46923 # As a simple fix, exclude /usr/bin since it's not a real path. 46924 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46925 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46926 # a path prefixed by /cygdrive for fixpath to work. 46927 new_path="$CYGWIN_ROOT_PATH$input_path" 46928 fi 46929 fi 46930 46931 46932 if test "x$path" != "x$new_path"; then 46933 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46935 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46936 fi 46937 46938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46939 46940 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46941 has_colon=`$ECHO $path | $GREP ^.:` 46942 new_path="$path" 46943 if test "x$has_colon" = x; then 46944 # Not in mixed or Windows style, start by that. 46945 new_path=`cmd //c echo $path` 46946 fi 46947 46948 46949 input_path="$new_path" 46950 # Check if we need to convert this using DOS-style short mode. If the path 46951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46952 # take no chances and rewrite it. 46953 # Note: m4 eats our [], so we need to use [ and ] instead. 46954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46955 if test "x$has_forbidden_chars" != x; then 46956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46957 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46958 fi 46959 46960 46961 windows_path="$new_path" 46962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46963 unix_path=`$CYGPATH -u "$windows_path"` 46964 new_path="$unix_path" 46965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46967 new_path="$unix_path" 46968 fi 46969 46970 if test "x$path" != "x$new_path"; then 46971 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46973 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46974 fi 46975 46976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46978 46979 else 46980 # We're on a unix platform. Hooray! :) 46981 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46982 has_space=`$ECHO "$path" | $GREP " "` 46983 if test "x$has_space" != x; then 46984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46985 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46986 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46987 fi 46988 46989 # Use eval to expand a potential ~ 46990 eval path="$path" 46991 if test ! -f "$path" && test ! -d "$path"; then 46992 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46993 fi 46994 46995 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46996 fi 46997 46998 46999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47000 47001 # Input might be given as Windows format, start by converting to 47002 # unix format. 47003 path="$POTENTIAL_FREETYPE_LIB_PATH" 47004 new_path=`$CYGPATH -u "$path"` 47005 47006 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47007 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47008 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47009 # "foo.exe" is OK but "foo" is an error. 47010 # 47011 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47012 # It is also a way to make sure we got the proper file name for the real test later on. 47013 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47014 if test "x$test_shortpath" = x; then 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47016 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47017 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47018 fi 47019 47020 # Call helper function which possibly converts this using DOS-style short mode. 47021 # If so, the updated path is stored in $new_path. 47022 47023 input_path="$new_path" 47024 # Check if we need to convert this using DOS-style short mode. If the path 47025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47026 # take no chances and rewrite it. 47027 # Note: m4 eats our [], so we need to use [ and ] instead. 47028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47029 if test "x$has_forbidden_chars" != x; then 47030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47031 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47032 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47033 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47034 # Going to short mode and back again did indeed matter. Since short mode is 47035 # case insensitive, let's make it lowercase to improve readability. 47036 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47037 # Now convert it back to Unix-stile (cygpath) 47038 input_path=`$CYGPATH -u "$shortmode_path"` 47039 new_path="$input_path" 47040 fi 47041 fi 47042 47043 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47044 if test "x$test_cygdrive_prefix" = x; then 47045 # As a simple fix, exclude /usr/bin since it's not a real path. 47046 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47047 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47048 # a path prefixed by /cygdrive for fixpath to work. 47049 new_path="$CYGWIN_ROOT_PATH$input_path" 47050 fi 47051 fi 47052 47053 47054 if test "x$path" != "x$new_path"; then 47055 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47057 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47058 fi 47059 47060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47061 47062 path="$POTENTIAL_FREETYPE_LIB_PATH" 47063 has_colon=`$ECHO $path | $GREP ^.:` 47064 new_path="$path" 47065 if test "x$has_colon" = x; then 47066 # Not in mixed or Windows style, start by that. 47067 new_path=`cmd //c echo $path` 47068 fi 47069 47070 47071 input_path="$new_path" 47072 # Check if we need to convert this using DOS-style short mode. If the path 47073 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47074 # take no chances and rewrite it. 47075 # Note: m4 eats our [], so we need to use [ and ] instead. 47076 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47077 if test "x$has_forbidden_chars" != x; then 47078 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47079 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47080 fi 47081 47082 47083 windows_path="$new_path" 47084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47085 unix_path=`$CYGPATH -u "$windows_path"` 47086 new_path="$unix_path" 47087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47089 new_path="$unix_path" 47090 fi 47091 47092 if test "x$path" != "x$new_path"; then 47093 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47095 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47096 fi 47097 47098 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47099 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47100 47101 else 47102 # We're on a unix platform. Hooray! :) 47103 path="$POTENTIAL_FREETYPE_LIB_PATH" 47104 has_space=`$ECHO "$path" | $GREP " "` 47105 if test "x$has_space" != x; then 47106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47107 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47108 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47109 fi 47110 47111 # Use eval to expand a potential ~ 47112 eval path="$path" 47113 if test ! -f "$path" && test ! -d "$path"; then 47114 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47115 fi 47116 47117 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47118 fi 47119 47120 47121 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47123 $as_echo_n "checking for freetype includes... " >&6; } 47124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47125 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47126 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47128 $as_echo_n "checking for freetype libraries... " >&6; } 47129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47130 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47131 fi 47132 47133 fi 47134 47135 if test "x$FOUND_FREETYPE" != xyes; then 47136 FREETYPE_BASE_DIR="$SYSROOT/usr" 47137 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47138 47139 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47140 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 47141 METHOD="well-known location" 47142 47143 # Let's start with an optimistic view of the world :-) 47144 FOUND_FREETYPE=yes 47145 47146 # First look for the canonical freetype main include file ft2build.h. 47147 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47148 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47149 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47150 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47151 # Fail. 47152 FOUND_FREETYPE=no 47153 fi 47154 fi 47155 47156 if test "x$FOUND_FREETYPE" = xyes; then 47157 # Include file found, let's continue the sanity check. 47158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47159 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47160 47161 # Reset to default value 47162 FREETYPE_BASE_NAME=freetype 47163 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47164 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47165 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47166 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47167 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47168 # for the .6 version explicitly. 47169 FREETYPE_BASE_NAME=freetype.6 47170 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47171 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47172 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47173 else 47174 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47175 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47176 FOUND_FREETYPE=no 47177 fi 47178 else 47179 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47180 # On Windows, we will need both .lib and .dll file. 47181 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47182 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47183 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47184 FOUND_FREETYPE=no 47185 fi 47186 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47187 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47188 # Found lib in isa dir, use that instead. 47189 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47191 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47192 fi 47193 fi 47194 fi 47195 47196 if test "x$FOUND_FREETYPE" = xyes; then 47197 47198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47199 47200 # Input might be given as Windows format, start by converting to 47201 # unix format. 47202 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47203 new_path=`$CYGPATH -u "$path"` 47204 47205 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47206 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47207 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47208 # "foo.exe" is OK but "foo" is an error. 47209 # 47210 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47211 # It is also a way to make sure we got the proper file name for the real test later on. 47212 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47213 if test "x$test_shortpath" = x; then 47214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47215 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47216 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47217 fi 47218 47219 # Call helper function which possibly converts this using DOS-style short mode. 47220 # If so, the updated path is stored in $new_path. 47221 47222 input_path="$new_path" 47223 # Check if we need to convert this using DOS-style short mode. If the path 47224 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47225 # take no chances and rewrite it. 47226 # Note: m4 eats our [], so we need to use [ and ] instead. 47227 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47228 if test "x$has_forbidden_chars" != x; then 47229 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47230 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47231 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47232 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47233 # Going to short mode and back again did indeed matter. Since short mode is 47234 # case insensitive, let's make it lowercase to improve readability. 47235 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47236 # Now convert it back to Unix-stile (cygpath) 47237 input_path=`$CYGPATH -u "$shortmode_path"` 47238 new_path="$input_path" 47239 fi 47240 fi 47241 47242 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47243 if test "x$test_cygdrive_prefix" = x; then 47244 # As a simple fix, exclude /usr/bin since it's not a real path. 47245 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47246 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47247 # a path prefixed by /cygdrive for fixpath to work. 47248 new_path="$CYGWIN_ROOT_PATH$input_path" 47249 fi 47250 fi 47251 47252 47253 if test "x$path" != "x$new_path"; then 47254 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47256 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47257 fi 47258 47259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47260 47261 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47262 has_colon=`$ECHO $path | $GREP ^.:` 47263 new_path="$path" 47264 if test "x$has_colon" = x; then 47265 # Not in mixed or Windows style, start by that. 47266 new_path=`cmd //c echo $path` 47267 fi 47268 47269 47270 input_path="$new_path" 47271 # Check if we need to convert this using DOS-style short mode. If the path 47272 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47273 # take no chances and rewrite it. 47274 # Note: m4 eats our [], so we need to use [ and ] instead. 47275 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47276 if test "x$has_forbidden_chars" != x; then 47277 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47278 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47279 fi 47280 47281 47282 windows_path="$new_path" 47283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47284 unix_path=`$CYGPATH -u "$windows_path"` 47285 new_path="$unix_path" 47286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47287 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47288 new_path="$unix_path" 47289 fi 47290 47291 if test "x$path" != "x$new_path"; then 47292 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47294 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47295 fi 47296 47297 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47298 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47299 47300 else 47301 # We're on a unix platform. Hooray! :) 47302 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47303 has_space=`$ECHO "$path" | $GREP " "` 47304 if test "x$has_space" != x; then 47305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47306 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47307 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47308 fi 47309 47310 # Use eval to expand a potential ~ 47311 eval path="$path" 47312 if test ! -f "$path" && test ! -d "$path"; then 47313 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47314 fi 47315 47316 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47317 fi 47318 47319 47320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47321 47322 # Input might be given as Windows format, start by converting to 47323 # unix format. 47324 path="$POTENTIAL_FREETYPE_LIB_PATH" 47325 new_path=`$CYGPATH -u "$path"` 47326 47327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47330 # "foo.exe" is OK but "foo" is an error. 47331 # 47332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47333 # It is also a way to make sure we got the proper file name for the real test later on. 47334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47335 if test "x$test_shortpath" = x; then 47336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47337 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47338 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47339 fi 47340 47341 # Call helper function which possibly converts this using DOS-style short mode. 47342 # If so, the updated path is stored in $new_path. 47343 47344 input_path="$new_path" 47345 # Check if we need to convert this using DOS-style short mode. If the path 47346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47347 # take no chances and rewrite it. 47348 # Note: m4 eats our [], so we need to use [ and ] instead. 47349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47350 if test "x$has_forbidden_chars" != x; then 47351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47355 # Going to short mode and back again did indeed matter. Since short mode is 47356 # case insensitive, let's make it lowercase to improve readability. 47357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47358 # Now convert it back to Unix-stile (cygpath) 47359 input_path=`$CYGPATH -u "$shortmode_path"` 47360 new_path="$input_path" 47361 fi 47362 fi 47363 47364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47365 if test "x$test_cygdrive_prefix" = x; then 47366 # As a simple fix, exclude /usr/bin since it's not a real path. 47367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47369 # a path prefixed by /cygdrive for fixpath to work. 47370 new_path="$CYGWIN_ROOT_PATH$input_path" 47371 fi 47372 fi 47373 47374 47375 if test "x$path" != "x$new_path"; then 47376 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47378 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47379 fi 47380 47381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47382 47383 path="$POTENTIAL_FREETYPE_LIB_PATH" 47384 has_colon=`$ECHO $path | $GREP ^.:` 47385 new_path="$path" 47386 if test "x$has_colon" = x; then 47387 # Not in mixed or Windows style, start by that. 47388 new_path=`cmd //c echo $path` 47389 fi 47390 47391 47392 input_path="$new_path" 47393 # Check if we need to convert this using DOS-style short mode. If the path 47394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47395 # take no chances and rewrite it. 47396 # Note: m4 eats our [], so we need to use [ and ] instead. 47397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47398 if test "x$has_forbidden_chars" != x; then 47399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47401 fi 47402 47403 47404 windows_path="$new_path" 47405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47406 unix_path=`$CYGPATH -u "$windows_path"` 47407 new_path="$unix_path" 47408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47410 new_path="$unix_path" 47411 fi 47412 47413 if test "x$path" != "x$new_path"; then 47414 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47416 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47417 fi 47418 47419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47421 47422 else 47423 # We're on a unix platform. Hooray! :) 47424 path="$POTENTIAL_FREETYPE_LIB_PATH" 47425 has_space=`$ECHO "$path" | $GREP " "` 47426 if test "x$has_space" != x; then 47427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47428 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47430 fi 47431 47432 # Use eval to expand a potential ~ 47433 eval path="$path" 47434 if test ! -f "$path" && test ! -d "$path"; then 47435 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47436 fi 47437 47438 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47439 fi 47440 47441 47442 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47444 $as_echo_n "checking for freetype includes... " >&6; } 47445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47446 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47447 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47449 $as_echo_n "checking for freetype libraries... " >&6; } 47450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47451 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47452 fi 47453 47454 else 47455 47456 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47457 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47458 METHOD="well-known location" 47459 47460 # Let's start with an optimistic view of the world :-) 47461 FOUND_FREETYPE=yes 47462 47463 # First look for the canonical freetype main include file ft2build.h. 47464 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47465 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47466 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47467 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47468 # Fail. 47469 FOUND_FREETYPE=no 47470 fi 47471 fi 47472 47473 if test "x$FOUND_FREETYPE" = xyes; then 47474 # Include file found, let's continue the sanity check. 47475 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47476 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47477 47478 # Reset to default value 47479 FREETYPE_BASE_NAME=freetype 47480 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47481 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47482 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47483 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47484 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47485 # for the .6 version explicitly. 47486 FREETYPE_BASE_NAME=freetype.6 47487 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47488 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47489 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47490 else 47491 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47492 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47493 FOUND_FREETYPE=no 47494 fi 47495 else 47496 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47497 # On Windows, we will need both .lib and .dll file. 47498 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47499 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47500 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47501 FOUND_FREETYPE=no 47502 fi 47503 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47504 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47505 # Found lib in isa dir, use that instead. 47506 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47508 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47509 fi 47510 fi 47511 fi 47512 47513 if test "x$FOUND_FREETYPE" = xyes; then 47514 47515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47516 47517 # Input might be given as Windows format, start by converting to 47518 # unix format. 47519 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47520 new_path=`$CYGPATH -u "$path"` 47521 47522 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47523 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47524 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47525 # "foo.exe" is OK but "foo" is an error. 47526 # 47527 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47528 # It is also a way to make sure we got the proper file name for the real test later on. 47529 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47530 if test "x$test_shortpath" = x; then 47531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47532 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47533 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47534 fi 47535 47536 # Call helper function which possibly converts this using DOS-style short mode. 47537 # If so, the updated path is stored in $new_path. 47538 47539 input_path="$new_path" 47540 # Check if we need to convert this using DOS-style short mode. If the path 47541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47542 # take no chances and rewrite it. 47543 # Note: m4 eats our [], so we need to use [ and ] instead. 47544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47545 if test "x$has_forbidden_chars" != x; then 47546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47547 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47548 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47549 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47550 # Going to short mode and back again did indeed matter. Since short mode is 47551 # case insensitive, let's make it lowercase to improve readability. 47552 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47553 # Now convert it back to Unix-stile (cygpath) 47554 input_path=`$CYGPATH -u "$shortmode_path"` 47555 new_path="$input_path" 47556 fi 47557 fi 47558 47559 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47560 if test "x$test_cygdrive_prefix" = x; then 47561 # As a simple fix, exclude /usr/bin since it's not a real path. 47562 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47563 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47564 # a path prefixed by /cygdrive for fixpath to work. 47565 new_path="$CYGWIN_ROOT_PATH$input_path" 47566 fi 47567 fi 47568 47569 47570 if test "x$path" != "x$new_path"; then 47571 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47572 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47573 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47574 fi 47575 47576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47577 47578 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47579 has_colon=`$ECHO $path | $GREP ^.:` 47580 new_path="$path" 47581 if test "x$has_colon" = x; then 47582 # Not in mixed or Windows style, start by that. 47583 new_path=`cmd //c echo $path` 47584 fi 47585 47586 47587 input_path="$new_path" 47588 # Check if we need to convert this using DOS-style short mode. If the path 47589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47590 # take no chances and rewrite it. 47591 # Note: m4 eats our [], so we need to use [ and ] instead. 47592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47593 if test "x$has_forbidden_chars" != x; then 47594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47595 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47596 fi 47597 47598 47599 windows_path="$new_path" 47600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47601 unix_path=`$CYGPATH -u "$windows_path"` 47602 new_path="$unix_path" 47603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47605 new_path="$unix_path" 47606 fi 47607 47608 if test "x$path" != "x$new_path"; then 47609 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47610 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47611 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47612 fi 47613 47614 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47615 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47616 47617 else 47618 # We're on a unix platform. Hooray! :) 47619 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47620 has_space=`$ECHO "$path" | $GREP " "` 47621 if test "x$has_space" != x; then 47622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47623 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47624 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47625 fi 47626 47627 # Use eval to expand a potential ~ 47628 eval path="$path" 47629 if test ! -f "$path" && test ! -d "$path"; then 47630 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47631 fi 47632 47633 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47634 fi 47635 47636 47637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47638 47639 # Input might be given as Windows format, start by converting to 47640 # unix format. 47641 path="$POTENTIAL_FREETYPE_LIB_PATH" 47642 new_path=`$CYGPATH -u "$path"` 47643 47644 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47645 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47646 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47647 # "foo.exe" is OK but "foo" is an error. 47648 # 47649 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47650 # It is also a way to make sure we got the proper file name for the real test later on. 47651 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47652 if test "x$test_shortpath" = x; then 47653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47654 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47655 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47656 fi 47657 47658 # Call helper function which possibly converts this using DOS-style short mode. 47659 # If so, the updated path is stored in $new_path. 47660 47661 input_path="$new_path" 47662 # Check if we need to convert this using DOS-style short mode. If the path 47663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47664 # take no chances and rewrite it. 47665 # Note: m4 eats our [], so we need to use [ and ] instead. 47666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47667 if test "x$has_forbidden_chars" != x; then 47668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47669 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47670 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47671 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47672 # Going to short mode and back again did indeed matter. Since short mode is 47673 # case insensitive, let's make it lowercase to improve readability. 47674 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47675 # Now convert it back to Unix-stile (cygpath) 47676 input_path=`$CYGPATH -u "$shortmode_path"` 47677 new_path="$input_path" 47678 fi 47679 fi 47680 47681 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47682 if test "x$test_cygdrive_prefix" = x; then 47683 # As a simple fix, exclude /usr/bin since it's not a real path. 47684 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47685 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47686 # a path prefixed by /cygdrive for fixpath to work. 47687 new_path="$CYGWIN_ROOT_PATH$input_path" 47688 fi 47689 fi 47690 47691 47692 if test "x$path" != "x$new_path"; then 47693 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47694 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47695 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47696 fi 47697 47698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47699 47700 path="$POTENTIAL_FREETYPE_LIB_PATH" 47701 has_colon=`$ECHO $path | $GREP ^.:` 47702 new_path="$path" 47703 if test "x$has_colon" = x; then 47704 # Not in mixed or Windows style, start by that. 47705 new_path=`cmd //c echo $path` 47706 fi 47707 47708 47709 input_path="$new_path" 47710 # Check if we need to convert this using DOS-style short mode. If the path 47711 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47712 # take no chances and rewrite it. 47713 # Note: m4 eats our [], so we need to use [ and ] instead. 47714 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47715 if test "x$has_forbidden_chars" != x; then 47716 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47717 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47718 fi 47719 47720 47721 windows_path="$new_path" 47722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47723 unix_path=`$CYGPATH -u "$windows_path"` 47724 new_path="$unix_path" 47725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47727 new_path="$unix_path" 47728 fi 47729 47730 if test "x$path" != "x$new_path"; then 47731 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47732 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47733 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47734 fi 47735 47736 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47737 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47738 47739 else 47740 # We're on a unix platform. Hooray! :) 47741 path="$POTENTIAL_FREETYPE_LIB_PATH" 47742 has_space=`$ECHO "$path" | $GREP " "` 47743 if test "x$has_space" != x; then 47744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47745 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47746 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47747 fi 47748 47749 # Use eval to expand a potential ~ 47750 eval path="$path" 47751 if test ! -f "$path" && test ! -d "$path"; then 47752 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47753 fi 47754 47755 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47756 fi 47757 47758 47759 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47761 $as_echo_n "checking for freetype includes... " >&6; } 47762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47763 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47764 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47766 $as_echo_n "checking for freetype libraries... " >&6; } 47767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47768 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47769 fi 47770 47771 if test "x$FOUND_FREETYPE" != xyes; then 47772 47773 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47774 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47775 METHOD="well-known location" 47776 47777 # Let's start with an optimistic view of the world :-) 47778 FOUND_FREETYPE=yes 47779 47780 # First look for the canonical freetype main include file ft2build.h. 47781 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47782 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47783 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47784 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47785 # Fail. 47786 FOUND_FREETYPE=no 47787 fi 47788 fi 47789 47790 if test "x$FOUND_FREETYPE" = xyes; then 47791 # Include file found, let's continue the sanity check. 47792 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47793 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47794 47795 # Reset to default value 47796 FREETYPE_BASE_NAME=freetype 47797 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47798 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47799 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47800 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47801 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47802 # for the .6 version explicitly. 47803 FREETYPE_BASE_NAME=freetype.6 47804 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47805 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47806 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47807 else 47808 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47809 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47810 FOUND_FREETYPE=no 47811 fi 47812 else 47813 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47814 # On Windows, we will need both .lib and .dll file. 47815 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47816 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47817 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47818 FOUND_FREETYPE=no 47819 fi 47820 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47821 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47822 # Found lib in isa dir, use that instead. 47823 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47824 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47825 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47826 fi 47827 fi 47828 fi 47829 47830 if test "x$FOUND_FREETYPE" = xyes; then 47831 47832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47833 47834 # Input might be given as Windows format, start by converting to 47835 # unix format. 47836 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47837 new_path=`$CYGPATH -u "$path"` 47838 47839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47842 # "foo.exe" is OK but "foo" is an error. 47843 # 47844 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47845 # It is also a way to make sure we got the proper file name for the real test later on. 47846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47847 if test "x$test_shortpath" = x; then 47848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47849 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47850 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47851 fi 47852 47853 # Call helper function which possibly converts this using DOS-style short mode. 47854 # If so, the updated path is stored in $new_path. 47855 47856 input_path="$new_path" 47857 # Check if we need to convert this using DOS-style short mode. If the path 47858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47859 # take no chances and rewrite it. 47860 # Note: m4 eats our [], so we need to use [ and ] instead. 47861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47862 if test "x$has_forbidden_chars" != x; then 47863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47867 # Going to short mode and back again did indeed matter. Since short mode is 47868 # case insensitive, let's make it lowercase to improve readability. 47869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47870 # Now convert it back to Unix-stile (cygpath) 47871 input_path=`$CYGPATH -u "$shortmode_path"` 47872 new_path="$input_path" 47873 fi 47874 fi 47875 47876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47877 if test "x$test_cygdrive_prefix" = x; then 47878 # As a simple fix, exclude /usr/bin since it's not a real path. 47879 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47881 # a path prefixed by /cygdrive for fixpath to work. 47882 new_path="$CYGWIN_ROOT_PATH$input_path" 47883 fi 47884 fi 47885 47886 47887 if test "x$path" != "x$new_path"; then 47888 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47890 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47891 fi 47892 47893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47894 47895 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47896 has_colon=`$ECHO $path | $GREP ^.:` 47897 new_path="$path" 47898 if test "x$has_colon" = x; then 47899 # Not in mixed or Windows style, start by that. 47900 new_path=`cmd //c echo $path` 47901 fi 47902 47903 47904 input_path="$new_path" 47905 # Check if we need to convert this using DOS-style short mode. If the path 47906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47907 # take no chances and rewrite it. 47908 # Note: m4 eats our [], so we need to use [ and ] instead. 47909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47910 if test "x$has_forbidden_chars" != x; then 47911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47913 fi 47914 47915 47916 windows_path="$new_path" 47917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47918 unix_path=`$CYGPATH -u "$windows_path"` 47919 new_path="$unix_path" 47920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47922 new_path="$unix_path" 47923 fi 47924 47925 if test "x$path" != "x$new_path"; then 47926 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47928 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47929 fi 47930 47931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47933 47934 else 47935 # We're on a unix platform. Hooray! :) 47936 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47937 has_space=`$ECHO "$path" | $GREP " "` 47938 if test "x$has_space" != x; then 47939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47940 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47941 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47942 fi 47943 47944 # Use eval to expand a potential ~ 47945 eval path="$path" 47946 if test ! -f "$path" && test ! -d "$path"; then 47947 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47948 fi 47949 47950 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47951 fi 47952 47953 47954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47955 47956 # Input might be given as Windows format, start by converting to 47957 # unix format. 47958 path="$POTENTIAL_FREETYPE_LIB_PATH" 47959 new_path=`$CYGPATH -u "$path"` 47960 47961 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47962 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47963 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47964 # "foo.exe" is OK but "foo" is an error. 47965 # 47966 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47967 # It is also a way to make sure we got the proper file name for the real test later on. 47968 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47969 if test "x$test_shortpath" = x; then 47970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47971 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47972 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47973 fi 47974 47975 # Call helper function which possibly converts this using DOS-style short mode. 47976 # If so, the updated path is stored in $new_path. 47977 47978 input_path="$new_path" 47979 # Check if we need to convert this using DOS-style short mode. If the path 47980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47981 # take no chances and rewrite it. 47982 # Note: m4 eats our [], so we need to use [ and ] instead. 47983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47984 if test "x$has_forbidden_chars" != x; then 47985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47986 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47987 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47988 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47989 # Going to short mode and back again did indeed matter. Since short mode is 47990 # case insensitive, let's make it lowercase to improve readability. 47991 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47992 # Now convert it back to Unix-stile (cygpath) 47993 input_path=`$CYGPATH -u "$shortmode_path"` 47994 new_path="$input_path" 47995 fi 47996 fi 47997 47998 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47999 if test "x$test_cygdrive_prefix" = x; then 48000 # As a simple fix, exclude /usr/bin since it's not a real path. 48001 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48002 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48003 # a path prefixed by /cygdrive for fixpath to work. 48004 new_path="$CYGWIN_ROOT_PATH$input_path" 48005 fi 48006 fi 48007 48008 48009 if test "x$path" != "x$new_path"; then 48010 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48012 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48013 fi 48014 48015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48016 48017 path="$POTENTIAL_FREETYPE_LIB_PATH" 48018 has_colon=`$ECHO $path | $GREP ^.:` 48019 new_path="$path" 48020 if test "x$has_colon" = x; then 48021 # Not in mixed or Windows style, start by that. 48022 new_path=`cmd //c echo $path` 48023 fi 48024 48025 48026 input_path="$new_path" 48027 # Check if we need to convert this using DOS-style short mode. If the path 48028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48029 # take no chances and rewrite it. 48030 # Note: m4 eats our [], so we need to use [ and ] instead. 48031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48032 if test "x$has_forbidden_chars" != x; then 48033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48034 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48035 fi 48036 48037 48038 windows_path="$new_path" 48039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48040 unix_path=`$CYGPATH -u "$windows_path"` 48041 new_path="$unix_path" 48042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48044 new_path="$unix_path" 48045 fi 48046 48047 if test "x$path" != "x$new_path"; then 48048 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48050 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48051 fi 48052 48053 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48054 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48055 48056 else 48057 # We're on a unix platform. Hooray! :) 48058 path="$POTENTIAL_FREETYPE_LIB_PATH" 48059 has_space=`$ECHO "$path" | $GREP " "` 48060 if test "x$has_space" != x; then 48061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48062 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48063 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48064 fi 48065 48066 # Use eval to expand a potential ~ 48067 eval path="$path" 48068 if test ! -f "$path" && test ! -d "$path"; then 48069 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48070 fi 48071 48072 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48073 fi 48074 48075 48076 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48078 $as_echo_n "checking for freetype includes... " >&6; } 48079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48080 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48081 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48083 $as_echo_n "checking for freetype libraries... " >&6; } 48084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48085 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48086 fi 48087 48088 fi 48089 fi 48090 fi 48091 fi 48092 fi # end check in well-known locations 48093 48094 if test "x$FOUND_FREETYPE" != xyes; then 48095 48096 # Print a helpful message on how to acquire the necessary build dependency. 48097 # freetype is the help tag: freetype, cups, pulse, alsa etc 48098 MISSING_DEPENDENCY=freetype 48099 48100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48101 cygwin_help $MISSING_DEPENDENCY 48102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48103 msys_help $MISSING_DEPENDENCY 48104 else 48105 PKGHANDLER_COMMAND= 48106 48107 case $PKGHANDLER in 48108 apt-get) 48109 apt_help $MISSING_DEPENDENCY ;; 48110 yum) 48111 yum_help $MISSING_DEPENDENCY ;; 48112 port) 48113 port_help $MISSING_DEPENDENCY ;; 48114 pkgutil) 48115 pkgutil_help $MISSING_DEPENDENCY ;; 48116 pkgadd) 48117 pkgadd_help $MISSING_DEPENDENCY ;; 48118 esac 48119 48120 if test "x$PKGHANDLER_COMMAND" != x; then 48121 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48122 fi 48123 fi 48124 48125 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 48126 fi 48127 fi # end user specified settings 48128 48129 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 48130 if test "x$FREETYPE_CFLAGS" = x; then 48131 48132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48133 48134 # Input might be given as Windows format, start by converting to 48135 # unix format. 48136 path="$FREETYPE_INCLUDE_PATH" 48137 new_path=`$CYGPATH -u "$path"` 48138 48139 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48140 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48141 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48142 # "foo.exe" is OK but "foo" is an error. 48143 # 48144 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48145 # It is also a way to make sure we got the proper file name for the real test later on. 48146 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48147 if test "x$test_shortpath" = x; then 48148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48149 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48150 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 48151 fi 48152 48153 # Call helper function which possibly converts this using DOS-style short mode. 48154 # If so, the updated path is stored in $new_path. 48155 48156 input_path="$new_path" 48157 # Check if we need to convert this using DOS-style short mode. If the path 48158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48159 # take no chances and rewrite it. 48160 # Note: m4 eats our [], so we need to use [ and ] instead. 48161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48162 if test "x$has_forbidden_chars" != x; then 48163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48164 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48165 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48166 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48167 # Going to short mode and back again did indeed matter. Since short mode is 48168 # case insensitive, let's make it lowercase to improve readability. 48169 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48170 # Now convert it back to Unix-stile (cygpath) 48171 input_path=`$CYGPATH -u "$shortmode_path"` 48172 new_path="$input_path" 48173 fi 48174 fi 48175 48176 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48177 if test "x$test_cygdrive_prefix" = x; then 48178 # As a simple fix, exclude /usr/bin since it's not a real path. 48179 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48180 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48181 # a path prefixed by /cygdrive for fixpath to work. 48182 new_path="$CYGWIN_ROOT_PATH$input_path" 48183 fi 48184 fi 48185 48186 48187 if test "x$path" != "x$new_path"; then 48188 FREETYPE_INCLUDE_PATH="$new_path" 48189 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48190 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48191 fi 48192 48193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48194 48195 path="$FREETYPE_INCLUDE_PATH" 48196 has_colon=`$ECHO $path | $GREP ^.:` 48197 new_path="$path" 48198 if test "x$has_colon" = x; then 48199 # Not in mixed or Windows style, start by that. 48200 new_path=`cmd //c echo $path` 48201 fi 48202 48203 48204 input_path="$new_path" 48205 # Check if we need to convert this using DOS-style short mode. If the path 48206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48207 # take no chances and rewrite it. 48208 # Note: m4 eats our [], so we need to use [ and ] instead. 48209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48210 if test "x$has_forbidden_chars" != x; then 48211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48212 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48213 fi 48214 48215 48216 windows_path="$new_path" 48217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48218 unix_path=`$CYGPATH -u "$windows_path"` 48219 new_path="$unix_path" 48220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48222 new_path="$unix_path" 48223 fi 48224 48225 if test "x$path" != "x$new_path"; then 48226 FREETYPE_INCLUDE_PATH="$new_path" 48227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48228 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48229 fi 48230 48231 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48232 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48233 48234 else 48235 # We're on a unix platform. Hooray! :) 48236 path="$FREETYPE_INCLUDE_PATH" 48237 has_space=`$ECHO "$path" | $GREP " "` 48238 if test "x$has_space" != x; then 48239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48240 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48241 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48242 fi 48243 48244 # Use eval to expand a potential ~ 48245 eval path="$path" 48246 if test ! -f "$path" && test ! -d "$path"; then 48247 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48248 fi 48249 48250 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48251 fi 48252 48253 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48254 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48255 else 48256 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48257 fi 48258 fi 48259 48260 if test "x$FREETYPE_LIBS" = x; then 48261 48262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48263 48264 # Input might be given as Windows format, start by converting to 48265 # unix format. 48266 path="$FREETYPE_LIB_PATH" 48267 new_path=`$CYGPATH -u "$path"` 48268 48269 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48270 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48271 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48272 # "foo.exe" is OK but "foo" is an error. 48273 # 48274 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48275 # It is also a way to make sure we got the proper file name for the real test later on. 48276 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48277 if test "x$test_shortpath" = x; then 48278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48279 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48280 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48281 fi 48282 48283 # Call helper function which possibly converts this using DOS-style short mode. 48284 # If so, the updated path is stored in $new_path. 48285 48286 input_path="$new_path" 48287 # Check if we need to convert this using DOS-style short mode. If the path 48288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48289 # take no chances and rewrite it. 48290 # Note: m4 eats our [], so we need to use [ and ] instead. 48291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48292 if test "x$has_forbidden_chars" != x; then 48293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48294 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48295 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48296 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48297 # Going to short mode and back again did indeed matter. Since short mode is 48298 # case insensitive, let's make it lowercase to improve readability. 48299 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48300 # Now convert it back to Unix-stile (cygpath) 48301 input_path=`$CYGPATH -u "$shortmode_path"` 48302 new_path="$input_path" 48303 fi 48304 fi 48305 48306 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48307 if test "x$test_cygdrive_prefix" = x; then 48308 # As a simple fix, exclude /usr/bin since it's not a real path. 48309 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48310 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48311 # a path prefixed by /cygdrive for fixpath to work. 48312 new_path="$CYGWIN_ROOT_PATH$input_path" 48313 fi 48314 fi 48315 48316 48317 if test "x$path" != "x$new_path"; then 48318 FREETYPE_LIB_PATH="$new_path" 48319 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48320 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48321 fi 48322 48323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48324 48325 path="$FREETYPE_LIB_PATH" 48326 has_colon=`$ECHO $path | $GREP ^.:` 48327 new_path="$path" 48328 if test "x$has_colon" = x; then 48329 # Not in mixed or Windows style, start by that. 48330 new_path=`cmd //c echo $path` 48331 fi 48332 48333 48334 input_path="$new_path" 48335 # Check if we need to convert this using DOS-style short mode. If the path 48336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48337 # take no chances and rewrite it. 48338 # Note: m4 eats our [], so we need to use [ and ] instead. 48339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48340 if test "x$has_forbidden_chars" != x; then 48341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48342 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48343 fi 48344 48345 48346 windows_path="$new_path" 48347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48348 unix_path=`$CYGPATH -u "$windows_path"` 48349 new_path="$unix_path" 48350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48352 new_path="$unix_path" 48353 fi 48354 48355 if test "x$path" != "x$new_path"; then 48356 FREETYPE_LIB_PATH="$new_path" 48357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48358 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48359 fi 48360 48361 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48362 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48363 48364 else 48365 # We're on a unix platform. Hooray! :) 48366 path="$FREETYPE_LIB_PATH" 48367 has_space=`$ECHO "$path" | $GREP " "` 48368 if test "x$has_space" != x; then 48369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48370 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48371 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48372 fi 48373 48374 # Use eval to expand a potential ~ 48375 eval path="$path" 48376 if test ! -f "$path" && test ! -d "$path"; then 48377 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48378 fi 48379 48380 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48381 fi 48382 48383 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48384 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 48385 else 48386 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 48387 fi 48388 fi 48389 48390 # Try to compile it 48391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48392 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48393 ac_ext=cpp 48394 ac_cpp='$CXXCPP $CPPFLAGS' 48395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48398 48399 PREV_CXXCFLAGS="$CXXFLAGS" 48400 PREV_LIBS="$LIBS" 48401 PREV_CXX="$CXX" 48402 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48403 LIBS="$LIBS $FREETYPE_LIBS" 48404 CXX="$FIXPATH $CXX" 48405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48406 /* end confdefs.h. */ 48407 48408 #include<ft2build.h> 48409 #include FT_FREETYPE_H 48410 int main () { 48411 FT_Init_FreeType(NULL); 48412 return 0; 48413 } 48414 48415 _ACEOF 48416 if ac_fn_cxx_try_link "$LINENO"; then : 48417 48418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48419 $as_echo "yes" >&6; } 48420 48421 else 48422 48423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48424 $as_echo "no" >&6; } 48425 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48426 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48427 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48428 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48429 48430 48431 # Print a helpful message on how to acquire the necessary build dependency. 48432 # freetype is the help tag: freetype, cups, pulse, alsa etc 48433 MISSING_DEPENDENCY=freetype 48434 48435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48436 cygwin_help $MISSING_DEPENDENCY 48437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48438 msys_help $MISSING_DEPENDENCY 48439 else 48440 PKGHANDLER_COMMAND= 48441 48442 case $PKGHANDLER in 48443 apt-get) 48444 apt_help $MISSING_DEPENDENCY ;; 48445 yum) 48446 yum_help $MISSING_DEPENDENCY ;; 48447 port) 48448 port_help $MISSING_DEPENDENCY ;; 48449 pkgutil) 48450 pkgutil_help $MISSING_DEPENDENCY ;; 48451 pkgadd) 48452 pkgadd_help $MISSING_DEPENDENCY ;; 48453 esac 48454 48455 if test "x$PKGHANDLER_COMMAND" != x; then 48456 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48457 fi 48458 fi 48459 48460 48461 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48462 48463 48464 fi 48465 rm -f core conftest.err conftest.$ac_objext \ 48466 conftest$ac_exeext conftest.$ac_ext 48467 CXXCFLAGS="$PREV_CXXFLAGS" 48468 LIBS="$PREV_LIBS" 48469 CXX="$PREV_CXX" 48470 ac_ext=cpp 48471 ac_cpp='$CXXCPP $CPPFLAGS' 48472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48475 48476 48477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48478 $as_echo_n "checking if we should bundle freetype... " >&6; } 48479 if test "x$BUNDLE_FREETYPE" = xyes; then 48480 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48481 fi 48482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48483 $as_echo "$BUNDLE_FREETYPE" >&6; } 48484 48485 fi # end freetype needed 48486 48487 48488 48489 48490 48491 48492 48493 ############################################################################### 48494 # 48495 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48496 # 48497 48498 # Check whether --with-alsa was given. 48499 if test "${with_alsa+set}" = set; then : 48500 withval=$with_alsa; 48501 fi 48502 48503 48504 # Check whether --with-alsa-include was given. 48505 if test "${with_alsa_include+set}" = set; then : 48506 withval=$with_alsa_include; 48507 fi 48508 48509 48510 # Check whether --with-alsa-lib was given. 48511 if test "${with_alsa_lib+set}" = set; then : 48512 withval=$with_alsa_lib; 48513 fi 48514 48515 48516 if test "x$ALSA_NOT_NEEDED" = xyes; then 48517 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48519 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48520 fi 48521 ALSA_CFLAGS= 48522 ALSA_LIBS= 48523 else 48524 ALSA_FOUND=no 48525 48526 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48527 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48528 fi 48529 48530 if test "x${with_alsa}" != x; then 48531 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48532 ALSA_CFLAGS="-I${with_alsa}/include" 48533 ALSA_FOUND=yes 48534 fi 48535 if test "x${with_alsa_include}" != x; then 48536 ALSA_CFLAGS="-I${with_alsa_include}" 48537 ALSA_FOUND=yes 48538 fi 48539 if test "x${with_alsa_lib}" != x; then 48540 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48541 ALSA_FOUND=yes 48542 fi 48543 if test "x$ALSA_FOUND" = xno; then 48544 48545 48546 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48547 # Source the builddeps file again, to make sure it uses the latest variables! 48548 . $builddepsfile 48549 # Look for a target and build machine specific resource! 48550 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48551 if test "x$resource" = x; then 48552 # Ok, lets instead look for a target specific resource 48553 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48554 fi 48555 if test "x$resource" = x; then 48556 # Ok, lets instead look for a build specific resource 48557 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48558 fi 48559 if test "x$resource" = x; then 48560 # Ok, lets instead look for a generic resource 48561 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48562 resource=${builddep_alsa} 48563 fi 48564 if test "x$resource" != x; then 48565 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48566 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48567 # If the resource in the builddeps.conf file is an existing directory, 48568 # for example /java/linux/cups 48569 if test -d ${resource}; then 48570 depdir=${resource} 48571 else 48572 48573 # alsa is for example mymodule 48574 # $resource is for example libs/general/libmymod_1_2_3.zip 48575 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48576 # $with_builddeps_dir is for example /localhome/builddeps 48577 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48578 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48579 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48580 filename=`basename $resource` 48581 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48582 filebase=${filename%%.*} 48583 extension=${filename#*.} 48584 installdir=$with_builddeps_dir/$filebase 48585 if test ! -f $installdir/$filename.unpacked; then 48586 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48587 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48588 if test ! -d $installdir; then 48589 mkdir -p $installdir 48590 fi 48591 if test ! -d $installdir; then 48592 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48593 fi 48594 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48595 touch $tmpfile 48596 if test ! -f $tmpfile; then 48597 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48598 fi 48599 48600 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48601 # $tmpfile is the local file name for the downloaded file. 48602 VALID_TOOL=no 48603 if test "x$BDEPS_FTP" = xwget; then 48604 VALID_TOOL=yes 48605 wget -O $tmpfile $with_builddeps_server/$resource 48606 fi 48607 if test "x$BDEPS_FTP" = xlftp; then 48608 VALID_TOOL=yes 48609 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48610 fi 48611 if test "x$BDEPS_FTP" = xftp; then 48612 VALID_TOOL=yes 48613 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48614 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48615 FTPUSERPWD=${FTPSERVER%%@*} 48616 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48617 FTPUSER=${userpwd%%:*} 48618 FTPPWD=${userpwd#*@} 48619 FTPSERVER=${FTPSERVER#*@} 48620 else 48621 FTPUSER=ftp 48622 FTPPWD=ftp 48623 fi 48624 # the "pass" command does not work on some 48625 # ftp clients (read ftp.exe) but if it works, 48626 # passive mode is better! 48627 ( \ 48628 echo "user $FTPUSER $FTPPWD" ; \ 48629 echo "pass" ; \ 48630 echo "bin" ; \ 48631 echo "get $FTPPATH $tmpfile" ; \ 48632 ) | ftp -in $FTPSERVER 48633 fi 48634 if test "x$VALID_TOOL" != xyes; then 48635 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48636 fi 48637 48638 mv $tmpfile $installdir/$filename 48639 if test ! -s $installdir/$filename; then 48640 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48641 fi 48642 case "$extension" in 48643 zip) echo "Unzipping $installdir/$filename..." 48644 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48645 ;; 48646 tar.gz) echo "Untaring $installdir/$filename..." 48647 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48648 ;; 48649 tgz) echo "Untaring $installdir/$filename..." 48650 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48651 ;; 48652 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48653 ;; 48654 esac 48655 fi 48656 if test -f $installdir/$filename.unpacked; then 48657 depdir=$installdir 48658 fi 48659 48660 fi 48661 # Source the builddeps file again, because in the previous command, the depdir 48662 # was updated to point at the current build dependency install directory. 48663 . $builddepsfile 48664 # Now extract variables from the builddeps.conf files. 48665 theroot=${builddep_alsa_ROOT} 48666 thecflags=${builddep_alsa_CFLAGS} 48667 thelibs=${builddep_alsa_LIBS} 48668 if test "x$depdir" = x; then 48669 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48670 fi 48671 ALSA=$depdir 48672 if test "x$theroot" != x; then 48673 ALSA="$theroot" 48674 fi 48675 if test "x$thecflags" != x; then 48676 ALSA_CFLAGS="$thecflags" 48677 fi 48678 if test "x$thelibs" != x; then 48679 ALSA_LIBS="$thelibs" 48680 fi 48681 ALSA_FOUND=yes 48682 else ALSA_FOUND=no 48683 48684 fi 48685 else ALSA_FOUND=no 48686 48687 fi 48688 48689 fi 48690 # Do not try pkg-config if we have a sysroot set. 48691 if test "x$SYSROOT" = x; then 48692 if test "x$ALSA_FOUND" = xno; then 48693 48694 pkg_failed=no 48695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48696 $as_echo_n "checking for ALSA... " >&6; } 48697 48698 if test -n "$ALSA_CFLAGS"; then 48699 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48700 elif test -n "$PKG_CONFIG"; then 48701 if test -n "$PKG_CONFIG" && \ 48702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48703 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48704 ac_status=$? 48705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48706 test $ac_status = 0; }; then 48707 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48708 else 48709 pkg_failed=yes 48710 fi 48711 else 48712 pkg_failed=untried 48713 fi 48714 if test -n "$ALSA_LIBS"; then 48715 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48716 elif test -n "$PKG_CONFIG"; then 48717 if test -n "$PKG_CONFIG" && \ 48718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48719 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48720 ac_status=$? 48721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48722 test $ac_status = 0; }; then 48723 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48724 else 48725 pkg_failed=yes 48726 fi 48727 else 48728 pkg_failed=untried 48729 fi 48730 48731 48732 48733 if test $pkg_failed = yes; then 48734 48735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48736 _pkg_short_errors_supported=yes 48737 else 48738 _pkg_short_errors_supported=no 48739 fi 48740 if test $_pkg_short_errors_supported = yes; then 48741 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48742 else 48743 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48744 fi 48745 # Put the nasty error message in config.log where it belongs 48746 echo "$ALSA_PKG_ERRORS" >&5 48747 48748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48749 $as_echo "no" >&6; } 48750 ALSA_FOUND=no 48751 elif test $pkg_failed = untried; then 48752 ALSA_FOUND=no 48753 else 48754 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48755 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48757 $as_echo "yes" >&6; } 48758 ALSA_FOUND=yes 48759 fi 48760 fi 48761 fi 48762 if test "x$ALSA_FOUND" = xno; then 48763 for ac_header in alsa/asoundlib.h 48764 do : 48765 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48766 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48767 cat >>confdefs.h <<_ACEOF 48768 #define HAVE_ALSA_ASOUNDLIB_H 1 48769 _ACEOF 48770 48771 ALSA_FOUND=yes 48772 ALSA_CFLAGS=-Iignoreme 48773 ALSA_LIBS=-lasound 48774 DEFAULT_ALSA=yes 48775 48776 else 48777 ALSA_FOUND=no 48778 fi 48779 48780 done 48781 48782 fi 48783 if test "x$ALSA_FOUND" = xno; then 48784 48785 # Print a helpful message on how to acquire the necessary build dependency. 48786 # alsa is the help tag: freetype, cups, pulse, alsa etc 48787 MISSING_DEPENDENCY=alsa 48788 48789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48790 cygwin_help $MISSING_DEPENDENCY 48791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48792 msys_help $MISSING_DEPENDENCY 48793 else 48794 PKGHANDLER_COMMAND= 48795 48796 case $PKGHANDLER in 48797 apt-get) 48798 apt_help $MISSING_DEPENDENCY ;; 48799 yum) 48800 yum_help $MISSING_DEPENDENCY ;; 48801 port) 48802 port_help $MISSING_DEPENDENCY ;; 48803 pkgutil) 48804 pkgutil_help $MISSING_DEPENDENCY ;; 48805 pkgadd) 48806 pkgadd_help $MISSING_DEPENDENCY ;; 48807 esac 48808 48809 if test "x$PKGHANDLER_COMMAND" != x; then 48810 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48811 fi 48812 fi 48813 48814 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48815 fi 48816 fi 48817 48818 48819 48820 48821 48822 48823 ############################################################################### 48824 # 48825 # Check for the jpeg library 48826 # 48827 48828 48829 # Check whether --with-libjpeg was given. 48830 if test "${with_libjpeg+set}" = set; then : 48831 withval=$with_libjpeg; 48832 fi 48833 48834 48835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48836 $as_echo_n "checking for which libjpeg to use... " >&6; } 48837 48838 # default is bundled 48839 DEFAULT_LIBJPEG=bundled 48840 48841 # 48842 # if user didn't specify, use DEFAULT_LIBJPEG 48843 # 48844 if test "x${with_libjpeg}" = "x"; then 48845 with_libjpeg=${DEFAULT_LIBJPEG} 48846 fi 48847 48848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48849 $as_echo "${with_libjpeg}" >&6; } 48850 48851 if test "x${with_libjpeg}" = "xbundled"; then 48852 USE_EXTERNAL_LIBJPEG=false 48853 elif test "x${with_libjpeg}" = "xsystem"; then 48854 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48855 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48856 48857 else 48858 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48859 fi 48860 48861 48862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48863 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48864 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48865 $as_echo_n "(cached) " >&6 48866 else 48867 ac_check_lib_save_LIBS=$LIBS 48868 LIBS="-ljpeg $LIBS" 48869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48870 /* end confdefs.h. */ 48871 48872 /* Override any GCC internal prototype to avoid an error. 48873 Use char because int might match the return type of a GCC 48874 builtin and then its argument prototype would still apply. */ 48875 #ifdef __cplusplus 48876 extern "C" 48877 #endif 48878 char jpeg_CreateDecompress (); 48879 int 48880 main () 48881 { 48882 return jpeg_CreateDecompress (); 48883 ; 48884 return 0; 48885 } 48886 _ACEOF 48887 if ac_fn_cxx_try_link "$LINENO"; then : 48888 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48889 else 48890 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48891 fi 48892 rm -f core conftest.err conftest.$ac_objext \ 48893 conftest$ac_exeext conftest.$ac_ext 48894 LIBS=$ac_check_lib_save_LIBS 48895 fi 48896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 48897 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 48898 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 48899 cat >>confdefs.h <<_ACEOF 48900 #define HAVE_LIBJPEG 1 48901 _ACEOF 48902 48903 LIBS="-ljpeg $LIBS" 48904 48905 else 48906 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 48907 fi 48908 48909 48910 USE_EXTERNAL_LIBJPEG=true 48911 else 48912 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 48913 fi 48914 48915 48916 48917 ############################################################################### 48918 # 48919 # Check for the gif library 48920 # 48921 48922 48923 # Check whether --with-giflib was given. 48924 if test "${with_giflib+set}" = set; then : 48925 withval=$with_giflib; 48926 fi 48927 48928 48929 48930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48931 $as_echo_n "checking for which giflib to use... " >&6; } 48932 48933 # default is bundled 48934 DEFAULT_GIFLIB=bundled 48935 48936 # 48937 # if user didn't specify, use DEFAULT_GIFLIB 48938 # 48939 if test "x${with_giflib}" = "x"; then 48940 with_giflib=${DEFAULT_GIFLIB} 48941 fi 48942 48943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48944 $as_echo "${with_giflib}" >&6; } 48945 48946 if test "x${with_giflib}" = "xbundled"; then 48947 USE_EXTERNAL_LIBGIF=false 48948 elif test "x${with_giflib}" = "xsystem"; then 48949 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48950 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48951 48952 else 48953 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48954 fi 48955 48956 48957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48958 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48959 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48960 $as_echo_n "(cached) " >&6 48961 else 48962 ac_check_lib_save_LIBS=$LIBS 48963 LIBS="-lgif $LIBS" 48964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48965 /* end confdefs.h. */ 48966 48967 /* Override any GCC internal prototype to avoid an error. 48968 Use char because int might match the return type of a GCC 48969 builtin and then its argument prototype would still apply. */ 48970 #ifdef __cplusplus 48971 extern "C" 48972 #endif 48973 char DGifGetCode (); 48974 int 48975 main () 48976 { 48977 return DGifGetCode (); 48978 ; 48979 return 0; 48980 } 48981 _ACEOF 48982 if ac_fn_cxx_try_link "$LINENO"; then : 48983 ac_cv_lib_gif_DGifGetCode=yes 48984 else 48985 ac_cv_lib_gif_DGifGetCode=no 48986 fi 48987 rm -f core conftest.err conftest.$ac_objext \ 48988 conftest$ac_exeext conftest.$ac_ext 48989 LIBS=$ac_check_lib_save_LIBS 48990 fi 48991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48992 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48993 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48994 cat >>confdefs.h <<_ACEOF 48995 #define HAVE_LIBGIF 1 48996 _ACEOF 48997 48998 LIBS="-lgif $LIBS" 48999 49000 else 49001 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 49002 fi 49003 49004 49005 USE_EXTERNAL_LIBGIF=true 49006 else 49007 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 49008 fi 49009 49010 49011 ############################################################################### 49012 # 49013 # Check for the lcms2 library 49014 # 49015 49016 49017 # Check whether --with-lcms was given. 49018 if test "${with_lcms+set}" = set; then : 49019 withval=$with_lcms; 49020 fi 49021 49022 49023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 49024 $as_echo_n "checking for which lcms to use... " >&6; } 49025 49026 DEFAULT_LCMS=bundled 49027 49028 # 49029 # If user didn't specify, use DEFAULT_LCMS 49030 # 49031 if test "x${with_lcms}" = "x"; then 49032 with_lcms=${DEFAULT_LCMS} 49033 fi 49034 49035 if test "x${with_lcms}" = "xbundled"; then 49036 USE_EXTERNAL_LCMS=false 49037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49038 $as_echo "bundled" >&6; } 49039 elif test "x${with_lcms}" = "xsystem"; then 49040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49041 $as_echo "system" >&6; } 49042 49043 pkg_failed=no 49044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 49045 $as_echo_n "checking for LCMS... " >&6; } 49046 49047 if test -n "$LCMS_CFLAGS"; then 49048 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 49049 elif test -n "$PKG_CONFIG"; then 49050 if test -n "$PKG_CONFIG" && \ 49051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49052 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49053 ac_status=$? 49054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49055 test $ac_status = 0; }; then 49056 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 49057 else 49058 pkg_failed=yes 49059 fi 49060 else 49061 pkg_failed=untried 49062 fi 49063 if test -n "$LCMS_LIBS"; then 49064 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 49065 elif test -n "$PKG_CONFIG"; then 49066 if test -n "$PKG_CONFIG" && \ 49067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49068 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49069 ac_status=$? 49070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49071 test $ac_status = 0; }; then 49072 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 49073 else 49074 pkg_failed=yes 49075 fi 49076 else 49077 pkg_failed=untried 49078 fi 49079 49080 49081 49082 if test $pkg_failed = yes; then 49083 49084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49085 _pkg_short_errors_supported=yes 49086 else 49087 _pkg_short_errors_supported=no 49088 fi 49089 if test $_pkg_short_errors_supported = yes; then 49090 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 49091 else 49092 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 49093 fi 49094 # Put the nasty error message in config.log where it belongs 49095 echo "$LCMS_PKG_ERRORS" >&5 49096 49097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49098 $as_echo "no" >&6; } 49099 LCMS_FOUND=no 49100 elif test $pkg_failed = untried; then 49101 LCMS_FOUND=no 49102 else 49103 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 49104 LCMS_LIBS=$pkg_cv_LCMS_LIBS 49105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49106 $as_echo "yes" >&6; } 49107 LCMS_FOUND=yes 49108 fi 49109 if test "x${LCMS_FOUND}" = "xyes"; then 49110 USE_EXTERNAL_LCMS=true 49111 else 49112 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 49113 fi 49114 else 49115 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 49116 fi 49117 49118 49119 49120 ############################################################################### 49121 # 49122 # Check for the png library 49123 # 49124 49125 49126 # Check whether --with-libpng was given. 49127 if test "${with_libpng+set}" = set; then : 49128 withval=$with_libpng; 49129 fi 49130 49131 49132 49133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 49134 $as_echo_n "checking for which libpng to use... " >&6; } 49135 49136 # default is bundled 49137 DEFAULT_LIBPNG=bundled 49138 49139 # 49140 # if user didn't specify, use DEFAULT_LIBPNG 49141 # 49142 if test "x${with_libpng}" = "x"; then 49143 with_libpng=${DEFAULT_LIBPNG} 49144 fi 49145 49146 if test "x${with_libpng}" = "xbundled"; then 49147 USE_EXTERNAL_LIBPNG=false 49148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49149 $as_echo "bundled" >&6; } 49150 elif test "x${with_libpng}" = "xsystem"; then 49151 49152 pkg_failed=no 49153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 49154 $as_echo_n "checking for PNG... " >&6; } 49155 49156 if test -n "$PNG_CFLAGS"; then 49157 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 49158 elif test -n "$PKG_CONFIG"; then 49159 if test -n "$PKG_CONFIG" && \ 49160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49161 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49162 ac_status=$? 49163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49164 test $ac_status = 0; }; then 49165 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 49166 else 49167 pkg_failed=yes 49168 fi 49169 else 49170 pkg_failed=untried 49171 fi 49172 if test -n "$PNG_LIBS"; then 49173 pkg_cv_PNG_LIBS="$PNG_LIBS" 49174 elif test -n "$PKG_CONFIG"; then 49175 if test -n "$PKG_CONFIG" && \ 49176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49177 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49178 ac_status=$? 49179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49180 test $ac_status = 0; }; then 49181 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 49182 else 49183 pkg_failed=yes 49184 fi 49185 else 49186 pkg_failed=untried 49187 fi 49188 49189 49190 49191 if test $pkg_failed = yes; then 49192 49193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49194 _pkg_short_errors_supported=yes 49195 else 49196 _pkg_short_errors_supported=no 49197 fi 49198 if test $_pkg_short_errors_supported = yes; then 49199 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 49200 else 49201 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 49202 fi 49203 # Put the nasty error message in config.log where it belongs 49204 echo "$PNG_PKG_ERRORS" >&5 49205 49206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49207 $as_echo "no" >&6; } 49208 LIBPNG_FOUND=no 49209 elif test $pkg_failed = untried; then 49210 LIBPNG_FOUND=no 49211 else 49212 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 49213 PNG_LIBS=$pkg_cv_PNG_LIBS 49214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49215 $as_echo "yes" >&6; } 49216 LIBPNG_FOUND=yes 49217 fi 49218 if test "x${LIBPNG_FOUND}" = "xyes"; then 49219 USE_EXTERNAL_LIBPNG=true 49220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49221 $as_echo "system" >&6; } 49222 else 49223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49224 $as_echo "system not found" >&6; } 49225 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49226 fi 49227 else 49228 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49229 fi 49230 49231 49232 ############################################################################### 49233 # 49234 # Check for the zlib library 49235 # 49236 49237 49238 # Check whether --with-zlib was given. 49239 if test "${with_zlib+set}" = set; then : 49240 withval=$with_zlib; 49241 fi 49242 49243 49244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49245 $as_echo_n "checking for compress in -lz... " >&6; } 49246 if ${ac_cv_lib_z_compress+:} false; then : 49247 $as_echo_n "(cached) " >&6 49248 else 49249 ac_check_lib_save_LIBS=$LIBS 49250 LIBS="-lz $LIBS" 49251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49252 /* end confdefs.h. */ 49253 49254 /* Override any GCC internal prototype to avoid an error. 49255 Use char because int might match the return type of a GCC 49256 builtin and then its argument prototype would still apply. */ 49257 #ifdef __cplusplus 49258 extern "C" 49259 #endif 49260 char compress (); 49261 int 49262 main () 49263 { 49264 return compress (); 49265 ; 49266 return 0; 49267 } 49268 _ACEOF 49269 if ac_fn_cxx_try_link "$LINENO"; then : 49270 ac_cv_lib_z_compress=yes 49271 else 49272 ac_cv_lib_z_compress=no 49273 fi 49274 rm -f core conftest.err conftest.$ac_objext \ 49275 conftest$ac_exeext conftest.$ac_ext 49276 LIBS=$ac_check_lib_save_LIBS 49277 fi 49278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49279 $as_echo "$ac_cv_lib_z_compress" >&6; } 49280 if test "x$ac_cv_lib_z_compress" = xyes; then : 49281 ZLIB_FOUND=yes 49282 else 49283 ZLIB_FOUND=no 49284 fi 49285 49286 49287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49288 $as_echo_n "checking for which zlib to use... " >&6; } 49289 49290 DEFAULT_ZLIB=bundled 49291 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49292 # 49293 # On macosx default is system...on others default is 49294 # 49295 DEFAULT_ZLIB=system 49296 fi 49297 49298 if test "x${ZLIB_FOUND}" != "xyes"; then 49299 # 49300 # If we don't find any system...set default to bundled 49301 # 49302 DEFAULT_ZLIB=bundled 49303 fi 49304 49305 # 49306 # If user didn't specify, use DEFAULT_ZLIB 49307 # 49308 if test "x${with_zlib}" = "x"; then 49309 with_zlib=${DEFAULT_ZLIB} 49310 fi 49311 49312 if test "x${with_zlib}" = "xbundled"; then 49313 USE_EXTERNAL_LIBZ=false 49314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49315 $as_echo "bundled" >&6; } 49316 elif test "x${with_zlib}" = "xsystem"; then 49317 if test "x${ZLIB_FOUND}" = "xyes"; then 49318 USE_EXTERNAL_LIBZ=true 49319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49320 $as_echo "system" >&6; } 49321 else 49322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49323 $as_echo "system not found" >&6; } 49324 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49325 fi 49326 else 49327 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49328 fi 49329 49330 49331 49332 ############################################################################### 49333 LIBZIP_CAN_USE_MMAP=true 49334 49335 49336 49337 ############################################################################### 49338 # 49339 # Check if altzone exists in time.h 49340 # 49341 49342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49343 /* end confdefs.h. */ 49344 #include <time.h> 49345 int 49346 main () 49347 { 49348 return (int)altzone; 49349 ; 49350 return 0; 49351 } 49352 _ACEOF 49353 if ac_fn_cxx_try_link "$LINENO"; then : 49354 has_altzone=yes 49355 else 49356 has_altzone=no 49357 fi 49358 rm -f core conftest.err conftest.$ac_objext \ 49359 conftest$ac_exeext conftest.$ac_ext 49360 if test "x$has_altzone" = xyes; then 49361 49362 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49363 49364 fi 49365 49366 ############################################################################### 49367 # 49368 # Check the maths library 49369 # 49370 49371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49372 $as_echo_n "checking for cos in -lm... " >&6; } 49373 if ${ac_cv_lib_m_cos+:} false; then : 49374 $as_echo_n "(cached) " >&6 49375 else 49376 ac_check_lib_save_LIBS=$LIBS 49377 LIBS="-lm $LIBS" 49378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49379 /* end confdefs.h. */ 49380 49381 /* Override any GCC internal prototype to avoid an error. 49382 Use char because int might match the return type of a GCC 49383 builtin and then its argument prototype would still apply. */ 49384 #ifdef __cplusplus 49385 extern "C" 49386 #endif 49387 char cos (); 49388 int 49389 main () 49390 { 49391 return cos (); 49392 ; 49393 return 0; 49394 } 49395 _ACEOF 49396 if ac_fn_cxx_try_link "$LINENO"; then : 49397 ac_cv_lib_m_cos=yes 49398 else 49399 ac_cv_lib_m_cos=no 49400 fi 49401 rm -f core conftest.err conftest.$ac_objext \ 49402 conftest$ac_exeext conftest.$ac_ext 49403 LIBS=$ac_check_lib_save_LIBS 49404 fi 49405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49406 $as_echo "$ac_cv_lib_m_cos" >&6; } 49407 if test "x$ac_cv_lib_m_cos" = xyes; then : 49408 cat >>confdefs.h <<_ACEOF 49409 #define HAVE_LIBM 1 49410 _ACEOF 49411 49412 LIBS="-lm $LIBS" 49413 49414 else 49415 49416 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49417 $as_echo "$as_me: Maths library was not found" >&6;} 49418 49419 49420 fi 49421 49422 49423 49424 ############################################################################### 49425 # 49426 # Check for libdl.so 49427 49428 save_LIBS="$LIBS" 49429 LIBS="" 49430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49431 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49432 if ${ac_cv_lib_dl_dlopen+:} false; then : 49433 $as_echo_n "(cached) " >&6 49434 else 49435 ac_check_lib_save_LIBS=$LIBS 49436 LIBS="-ldl $LIBS" 49437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49438 /* end confdefs.h. */ 49439 49440 /* Override any GCC internal prototype to avoid an error. 49441 Use char because int might match the return type of a GCC 49442 builtin and then its argument prototype would still apply. */ 49443 #ifdef __cplusplus 49444 extern "C" 49445 #endif 49446 char dlopen (); 49447 int 49448 main () 49449 { 49450 return dlopen (); 49451 ; 49452 return 0; 49453 } 49454 _ACEOF 49455 if ac_fn_cxx_try_link "$LINENO"; then : 49456 ac_cv_lib_dl_dlopen=yes 49457 else 49458 ac_cv_lib_dl_dlopen=no 49459 fi 49460 rm -f core conftest.err conftest.$ac_objext \ 49461 conftest$ac_exeext conftest.$ac_ext 49462 LIBS=$ac_check_lib_save_LIBS 49463 fi 49464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49465 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49466 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49467 cat >>confdefs.h <<_ACEOF 49468 #define HAVE_LIBDL 1 49469 _ACEOF 49470 49471 LIBS="-ldl $LIBS" 49472 49473 fi 49474 49475 LIBDL="$LIBS" 49476 49477 LIBS="$save_LIBS" 49478 49479 49480 ############################################################################### 49481 # 49482 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49483 # dynamic build is configured on command line. 49484 # 49485 49486 # Check whether --with-stdc++lib was given. 49487 if test "${with_stdc__lib+set}" = set; then : 49488 withval=$with_stdc__lib; 49489 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49490 && test "x$with_stdc__lib" != xdefault; then 49491 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49492 fi 49493 49494 else 49495 with_stdc__lib=default 49496 49497 fi 49498 49499 49500 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49501 # Test if -lstdc++ works. 49502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49503 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49504 ac_ext=cpp 49505 ac_cpp='$CXXCPP $CPPFLAGS' 49506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49509 49510 OLD_CXXFLAGS="$CXXFLAGS" 49511 CXXFLAGS="$CXXFLAGS -lstdc++" 49512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49513 /* end confdefs.h. */ 49514 49515 int 49516 main () 49517 { 49518 return 0; 49519 ; 49520 return 0; 49521 } 49522 _ACEOF 49523 if ac_fn_cxx_try_link "$LINENO"; then : 49524 has_dynamic_libstdcxx=yes 49525 else 49526 has_dynamic_libstdcxx=no 49527 fi 49528 rm -f core conftest.err conftest.$ac_objext \ 49529 conftest$ac_exeext conftest.$ac_ext 49530 CXXFLAGS="$OLD_CXXFLAGS" 49531 ac_ext=cpp 49532 ac_cpp='$CXXCPP $CPPFLAGS' 49533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49536 49537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49538 $as_echo "$has_dynamic_libstdcxx" >&6; } 49539 49540 # Test if stdc++ can be linked statically. 49541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49542 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49543 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49544 ac_ext=cpp 49545 ac_cpp='$CXXCPP $CPPFLAGS' 49546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49549 49550 OLD_LIBS="$LIBS" 49551 OLD_CXX="$CXX" 49552 LIBS="$STATIC_STDCXX_FLAGS" 49553 CXX="$CC" 49554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49555 /* end confdefs.h. */ 49556 49557 int 49558 main () 49559 { 49560 return 0; 49561 ; 49562 return 0; 49563 } 49564 _ACEOF 49565 if ac_fn_cxx_try_link "$LINENO"; then : 49566 has_static_libstdcxx=yes 49567 else 49568 has_static_libstdcxx=no 49569 fi 49570 rm -f core conftest.err conftest.$ac_objext \ 49571 conftest$ac_exeext conftest.$ac_ext 49572 LIBS="$OLD_LIBS" 49573 CXX="$OLD_CXX" 49574 ac_ext=cpp 49575 ac_cpp='$CXXCPP $CPPFLAGS' 49576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49579 49580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49581 $as_echo "$has_static_libstdcxx" >&6; } 49582 49583 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49584 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49585 fi 49586 49587 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49588 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49589 fi 49590 49591 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49592 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49593 fi 49594 49595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49596 $as_echo_n "checking how to link with libstdc++... " >&6; } 49597 # If dynamic was requested, it's available since it would fail above otherwise. 49598 # If dynamic wasn't requested, go with static unless it isn't available. 49599 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49600 LIBCXX="$LIBCXX -lstdc++" 49601 LDCXX="$CXX" 49602 STATIC_CXX_SETTING="STATIC_CXX=false" 49603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49604 $as_echo "dynamic" >&6; } 49605 else 49606 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49607 LDCXX="$CC" 49608 STATIC_CXX_SETTING="STATIC_CXX=true" 49609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49610 $as_echo "static" >&6; } 49611 fi 49612 fi 49613 49614 49615 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49616 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49617 49618 pkg_failed=no 49619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49620 $as_echo_n "checking for LIBFFI... " >&6; } 49621 49622 if test -n "$LIBFFI_CFLAGS"; then 49623 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49624 elif test -n "$PKG_CONFIG"; then 49625 if test -n "$PKG_CONFIG" && \ 49626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49627 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49628 ac_status=$? 49629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49630 test $ac_status = 0; }; then 49631 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49632 else 49633 pkg_failed=yes 49634 fi 49635 else 49636 pkg_failed=untried 49637 fi 49638 if test -n "$LIBFFI_LIBS"; then 49639 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49640 elif test -n "$PKG_CONFIG"; then 49641 if test -n "$PKG_CONFIG" && \ 49642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49643 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49644 ac_status=$? 49645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49646 test $ac_status = 0; }; then 49647 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49648 else 49649 pkg_failed=yes 49650 fi 49651 else 49652 pkg_failed=untried 49653 fi 49654 49655 49656 49657 if test $pkg_failed = yes; then 49658 49659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49660 _pkg_short_errors_supported=yes 49661 else 49662 _pkg_short_errors_supported=no 49663 fi 49664 if test $_pkg_short_errors_supported = yes; then 49665 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49666 else 49667 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49668 fi 49669 # Put the nasty error message in config.log where it belongs 49670 echo "$LIBFFI_PKG_ERRORS" >&5 49671 49672 as_fn_error $? "Package requirements (libffi) were not met: 49673 49674 $LIBFFI_PKG_ERRORS 49675 49676 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49677 installed software in a non-standard prefix. 49678 49679 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49680 and LIBFFI_LIBS to avoid the need to call pkg-config. 49681 See the pkg-config man page for more details. 49682 " "$LINENO" 5 49683 elif test $pkg_failed = untried; then 49684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49686 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49687 is in your PATH or set the PKG_CONFIG environment variable to the full 49688 path to pkg-config. 49689 49690 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49691 and LIBFFI_LIBS to avoid the need to call pkg-config. 49692 See the pkg-config man page for more details. 49693 49694 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49695 See \`config.log' for more details" "$LINENO" 5; } 49696 else 49697 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49698 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49700 $as_echo "yes" >&6; } 49701 : 49702 fi 49703 49704 fi 49705 49706 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49707 # Extract the first word of "llvm-config", so it can be a program name with args. 49708 set dummy llvm-config; ac_word=$2 49709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49710 $as_echo_n "checking for $ac_word... " >&6; } 49711 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49712 $as_echo_n "(cached) " >&6 49713 else 49714 if test -n "$LLVM_CONFIG"; then 49715 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49716 else 49717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49718 for as_dir in $PATH 49719 do 49720 IFS=$as_save_IFS 49721 test -z "$as_dir" && as_dir=. 49722 for ac_exec_ext in '' $ac_executable_extensions; do 49723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49724 ac_cv_prog_LLVM_CONFIG="llvm-config" 49725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49726 break 2 49727 fi 49728 done 49729 done 49730 IFS=$as_save_IFS 49731 49732 fi 49733 fi 49734 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49735 if test -n "$LLVM_CONFIG"; then 49736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49737 $as_echo "$LLVM_CONFIG" >&6; } 49738 else 49739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49740 $as_echo "no" >&6; } 49741 fi 49742 49743 49744 49745 if test "x$LLVM_CONFIG" != xllvm-config; then 49746 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49747 fi 49748 49749 llvm_components="jit mcjit engine nativecodegen native" 49750 unset LLVM_CFLAGS 49751 for flag in $("$LLVM_CONFIG" --cxxflags); do 49752 if echo "${flag}" | grep -q '^-[ID]'; then 49753 if test "${flag}" != "-D_DEBUG" ; then 49754 if test "${LLVM_CFLAGS}" != "" ; then 49755 LLVM_CFLAGS="${LLVM_CFLAGS} " 49756 fi 49757 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49758 fi 49759 fi 49760 done 49761 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49762 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49763 49764 unset LLVM_LDFLAGS 49765 for flag in $("${LLVM_CONFIG}" --ldflags); do 49766 if echo "${flag}" | grep -q '^-L'; then 49767 if test "${LLVM_LDFLAGS}" != ""; then 49768 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49769 fi 49770 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49771 fi 49772 done 49773 49774 unset LLVM_LIBS 49775 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49776 if echo "${flag}" | grep -q '^-l'; then 49777 if test "${LLVM_LIBS}" != ""; then 49778 LLVM_LIBS="${LLVM_LIBS} " 49779 fi 49780 LLVM_LIBS="${LLVM_LIBS}${flag}" 49781 fi 49782 done 49783 49784 49785 49786 49787 fi 49788 49789 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49790 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49791 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49792 fi 49793 49794 # TODO better (platform agnostic) test 49795 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49796 LIBCXX="-lstdc++" 49797 fi 49798 49799 49800 49801 49802 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49803 49804 49805 # Check whether --with-msvcr-dll was given. 49806 if test "${with_msvcr_dll+set}" = set; then : 49807 withval=$with_msvcr_dll; 49808 fi 49809 49810 49811 if test "x$with_msvcr_dll" != x; then 49812 # If given explicitely by user, do not probe. If not present, fail directly. 49813 49814 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 49815 METHOD="--with-msvcr-dll" 49816 if test -e "$POSSIBLE_MSVCR_DLL"; then 49817 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49818 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49819 49820 # Need to check if the found msvcr is correct architecture 49821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49822 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49823 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49825 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49826 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49827 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49828 CORRECT_MSVCR_ARCH="PE32 executable" 49829 else 49830 CORRECT_MSVCR_ARCH="PE32+ executable" 49831 fi 49832 else 49833 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49834 CORRECT_MSVCR_ARCH=386 49835 else 49836 CORRECT_MSVCR_ARCH=x86-64 49837 fi 49838 fi 49839 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49841 $as_echo "ok" >&6; } 49842 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49844 $as_echo_n "checking for msvcr100.dll... " >&6; } 49845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49846 $as_echo "$MSVCR_DLL" >&6; } 49847 else 49848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49849 $as_echo "incorrect, ignoring" >&6; } 49850 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49851 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49852 fi 49853 fi 49854 49855 if test "x$MSVCR_DLL" = x; then 49856 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 49857 fi 49858 fi 49859 49860 if test "x$MSVCR_DLL" = x; then 49861 # Probe: Using well-known location from Visual Studio 10.0 49862 if test "x$VCINSTALLDIR" != x; then 49863 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49864 49865 windows_path="$CYGWIN_VC_INSTALL_DIR" 49866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49867 unix_path=`$CYGPATH -u "$windows_path"` 49868 CYGWIN_VC_INSTALL_DIR="$unix_path" 49869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49871 CYGWIN_VC_INSTALL_DIR="$unix_path" 49872 fi 49873 49874 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49875 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 49876 else 49877 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 49878 fi 49879 49880 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49881 METHOD="well-known location in VCINSTALLDIR" 49882 if test -e "$POSSIBLE_MSVCR_DLL"; then 49883 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49884 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49885 49886 # Need to check if the found msvcr is correct architecture 49887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49888 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49889 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49891 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49892 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49893 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49894 CORRECT_MSVCR_ARCH="PE32 executable" 49895 else 49896 CORRECT_MSVCR_ARCH="PE32+ executable" 49897 fi 49898 else 49899 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49900 CORRECT_MSVCR_ARCH=386 49901 else 49902 CORRECT_MSVCR_ARCH=x86-64 49903 fi 49904 fi 49905 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49907 $as_echo "ok" >&6; } 49908 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49910 $as_echo_n "checking for msvcr100.dll... " >&6; } 49911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49912 $as_echo "$MSVCR_DLL" >&6; } 49913 else 49914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49915 $as_echo "incorrect, ignoring" >&6; } 49916 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49917 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49918 fi 49919 fi 49920 49921 fi 49922 fi 49923 49924 if test "x$MSVCR_DLL" = x; then 49925 # Probe: Check in the Boot JDK directory. 49926 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 49927 49928 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49929 METHOD="well-known location in Boot JDK" 49930 if test -e "$POSSIBLE_MSVCR_DLL"; then 49931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49932 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49933 49934 # Need to check if the found msvcr is correct architecture 49935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49936 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49937 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49939 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49940 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49941 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49942 CORRECT_MSVCR_ARCH="PE32 executable" 49943 else 49944 CORRECT_MSVCR_ARCH="PE32+ executable" 49945 fi 49946 else 49947 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49948 CORRECT_MSVCR_ARCH=386 49949 else 49950 CORRECT_MSVCR_ARCH=x86-64 49951 fi 49952 fi 49953 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49955 $as_echo "ok" >&6; } 49956 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49958 $as_echo_n "checking for msvcr100.dll... " >&6; } 49959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49960 $as_echo "$MSVCR_DLL" >&6; } 49961 else 49962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49963 $as_echo "incorrect, ignoring" >&6; } 49964 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49965 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49966 fi 49967 fi 49968 49969 fi 49970 49971 if test "x$MSVCR_DLL" = x; then 49972 # Probe: Look in the Windows system32 directory 49973 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49974 49975 windows_path="$CYGWIN_SYSTEMROOT" 49976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49977 unix_path=`$CYGPATH -u "$windows_path"` 49978 CYGWIN_SYSTEMROOT="$unix_path" 49979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49981 CYGWIN_SYSTEMROOT="$unix_path" 49982 fi 49983 49984 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 49985 49986 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49987 METHOD="well-known location in SYSTEMROOT" 49988 if test -e "$POSSIBLE_MSVCR_DLL"; then 49989 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49990 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49991 49992 # Need to check if the found msvcr is correct architecture 49993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49994 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49995 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49997 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49998 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49999 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50000 CORRECT_MSVCR_ARCH="PE32 executable" 50001 else 50002 CORRECT_MSVCR_ARCH="PE32+ executable" 50003 fi 50004 else 50005 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50006 CORRECT_MSVCR_ARCH=386 50007 else 50008 CORRECT_MSVCR_ARCH=x86-64 50009 fi 50010 fi 50011 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50013 $as_echo "ok" >&6; } 50014 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50016 $as_echo_n "checking for msvcr100.dll... " >&6; } 50017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 50018 $as_echo "$MSVCR_DLL" >&6; } 50019 else 50020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50021 $as_echo "incorrect, ignoring" >&6; } 50022 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 50023 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 50024 fi 50025 fi 50026 50027 fi 50028 50029 if test "x$MSVCR_DLL" = x; then 50030 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50031 if test "x$VS100COMNTOOLS" != x; then 50032 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50033 50034 windows_path="$CYGWIN_VS_TOOLS_DIR" 50035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50036 unix_path=`$CYGPATH -u "$windows_path"` 50037 CYGWIN_VS_TOOLS_DIR="$unix_path" 50038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50040 CYGWIN_VS_TOOLS_DIR="$unix_path" 50041 fi 50042 50043 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50044 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 50045 else 50046 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 50047 fi 50048 50049 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50050 METHOD="search of VS100COMNTOOLS" 50051 if test -e "$POSSIBLE_MSVCR_DLL"; then 50052 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 50053 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 50054 50055 # Need to check if the found msvcr is correct architecture 50056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 50057 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 50058 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 50059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50060 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50061 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50062 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50063 CORRECT_MSVCR_ARCH="PE32 executable" 50064 else 50065 CORRECT_MSVCR_ARCH="PE32+ executable" 50066 fi 50067 else 50068 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50069 CORRECT_MSVCR_ARCH=386 50070 else 50071 CORRECT_MSVCR_ARCH=x86-64 50072 fi 50073 fi 50074 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50076 $as_echo "ok" >&6; } 50077 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50079 $as_echo_n "checking for msvcr100.dll... " >&6; } 50080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 50081 $as_echo "$MSVCR_DLL" >&6; } 50082 else 50083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50084 $as_echo "incorrect, ignoring" >&6; } 50085 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 50086 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 50087 fi 50088 fi 50089 50090 fi 50091 fi 50092 50093 if test "x$MSVCR_DLL" = x; then 50094 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50095 # (This was the original behaviour; kept since it might turn up something) 50096 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50097 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50098 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 50099 else 50100 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50101 if test "x$POSSIBLE_MSVCR_DLL" = x; then 50102 # We're grasping at straws now... 50103 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 50104 fi 50105 fi 50106 50107 50108 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50109 METHOD="search of VCINSTALLDIR" 50110 if test -e "$POSSIBLE_MSVCR_DLL"; then 50111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 50112 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 50113 50114 # Need to check if the found msvcr is correct architecture 50115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 50116 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 50117 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 50118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50119 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50120 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50121 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50122 CORRECT_MSVCR_ARCH="PE32 executable" 50123 else 50124 CORRECT_MSVCR_ARCH="PE32+ executable" 50125 fi 50126 else 50127 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50128 CORRECT_MSVCR_ARCH=386 50129 else 50130 CORRECT_MSVCR_ARCH=x86-64 50131 fi 50132 fi 50133 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50135 $as_echo "ok" >&6; } 50136 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50138 $as_echo_n "checking for msvcr100.dll... " >&6; } 50139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 50140 $as_echo "$MSVCR_DLL" >&6; } 50141 else 50142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50143 $as_echo "incorrect, ignoring" >&6; } 50144 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 50145 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 50146 fi 50147 fi 50148 50149 fi 50150 fi 50151 50152 if test "x$MSVCR_DLL" = x; then 50153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50154 $as_echo_n "checking for msvcr100.dll... " >&6; } 50155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50156 $as_echo "no" >&6; } 50157 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 50158 fi 50159 50160 50161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50162 50163 # Input might be given as Windows format, start by converting to 50164 # unix format. 50165 path="$MSVCR_DLL" 50166 new_path=`$CYGPATH -u "$path"` 50167 50168 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50169 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50170 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50171 # "foo.exe" is OK but "foo" is an error. 50172 # 50173 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50174 # It is also a way to make sure we got the proper file name for the real test later on. 50175 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50176 if test "x$test_shortpath" = x; then 50177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50178 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50179 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 50180 fi 50181 50182 # Call helper function which possibly converts this using DOS-style short mode. 50183 # If so, the updated path is stored in $new_path. 50184 50185 input_path="$new_path" 50186 # Check if we need to convert this using DOS-style short mode. If the path 50187 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50188 # take no chances and rewrite it. 50189 # Note: m4 eats our [], so we need to use [ and ] instead. 50190 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50191 if test "x$has_forbidden_chars" != x; then 50192 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50193 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50194 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50195 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50196 # Going to short mode and back again did indeed matter. Since short mode is 50197 # case insensitive, let's make it lowercase to improve readability. 50198 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50199 # Now convert it back to Unix-stile (cygpath) 50200 input_path=`$CYGPATH -u "$shortmode_path"` 50201 new_path="$input_path" 50202 fi 50203 fi 50204 50205 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50206 if test "x$test_cygdrive_prefix" = x; then 50207 # As a simple fix, exclude /usr/bin since it's not a real path. 50208 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50209 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50210 # a path prefixed by /cygdrive for fixpath to work. 50211 new_path="$CYGWIN_ROOT_PATH$input_path" 50212 fi 50213 fi 50214 50215 50216 if test "x$path" != "x$new_path"; then 50217 MSVCR_DLL="$new_path" 50218 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50219 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50220 fi 50221 50222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50223 50224 path="$MSVCR_DLL" 50225 has_colon=`$ECHO $path | $GREP ^.:` 50226 new_path="$path" 50227 if test "x$has_colon" = x; then 50228 # Not in mixed or Windows style, start by that. 50229 new_path=`cmd //c echo $path` 50230 fi 50231 50232 50233 input_path="$new_path" 50234 # Check if we need to convert this using DOS-style short mode. If the path 50235 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50236 # take no chances and rewrite it. 50237 # Note: m4 eats our [], so we need to use [ and ] instead. 50238 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50239 if test "x$has_forbidden_chars" != x; then 50240 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50241 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50242 fi 50243 50244 50245 windows_path="$new_path" 50246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50247 unix_path=`$CYGPATH -u "$windows_path"` 50248 new_path="$unix_path" 50249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50251 new_path="$unix_path" 50252 fi 50253 50254 if test "x$path" != "x$new_path"; then 50255 MSVCR_DLL="$new_path" 50256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50257 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50258 fi 50259 50260 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50261 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50262 50263 else 50264 # We're on a unix platform. Hooray! :) 50265 path="$MSVCR_DLL" 50266 has_space=`$ECHO "$path" | $GREP " "` 50267 if test "x$has_space" != x; then 50268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50269 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50270 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50271 fi 50272 50273 # Use eval to expand a potential ~ 50274 eval path="$path" 50275 if test ! -f "$path" && test ! -d "$path"; then 50276 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50277 fi 50278 50279 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50280 fi 50281 50282 50283 50284 50285 # Check whether --with-dxsdk was given. 50286 if test "${with_dxsdk+set}" = set; then : 50287 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 50288 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 50289 fi 50290 50291 50292 50293 50294 # Check whether --with-dxsdk-lib was given. 50295 if test "${with_dxsdk_lib+set}" = set; then : 50296 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 50297 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 50298 fi 50299 50300 50301 50302 50303 # Check whether --with-dxsdk-include was given. 50304 if test "${with_dxsdk_include+set}" = set; then : 50305 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 50306 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 50307 fi 50308 50309 50310 fi 50311 50312 50313 50314 ############################################################################### 50315 # 50316 # We need to do some final tweaking, when everything else is done. 50317 # 50318 ############################################################################### 50319 50320 50321 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 50322 50323 50324 # The name of the Service Agent jar. 50325 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 50326 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 50327 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 50328 fi 50329 50330 50331 50332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 50333 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 50334 50335 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 50336 ENABLE_INTREE_EC=yes 50337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50338 $as_echo "yes" >&6; } 50339 else 50340 ENABLE_INTREE_EC=no 50341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50342 $as_echo "no" >&6; } 50343 fi 50344 50345 50346 50347 50348 ############################################################################### 50349 # 50350 # Configure parts of the build that only affect the build performance, 50351 # not the result. 50352 # 50353 ############################################################################### 50354 50355 50356 # How many cores do we have on this build system? 50357 50358 # Check whether --with-num-cores was given. 50359 if test "${with_num_cores+set}" = set; then : 50360 withval=$with_num_cores; 50361 fi 50362 50363 if test "x$with_num_cores" = x; then 50364 # The number of cores were not specified, try to probe them. 50365 50366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 50367 $as_echo_n "checking for number of cores... " >&6; } 50368 NUM_CORES=1 50369 FOUND_CORES=no 50370 50371 if test -f /proc/cpuinfo; then 50372 # Looks like a Linux (or cygwin) system 50373 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 50374 FOUND_CORES=yes 50375 elif test -x /usr/sbin/psrinfo; then 50376 # Looks like a Solaris system 50377 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 50378 FOUND_CORES=yes 50379 elif test -x /usr/sbin/system_profiler; then 50380 # Looks like a MacOSX system 50381 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 50382 FOUND_CORES=yes 50383 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 50384 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 50385 FOUND_CORES=yes 50386 elif test -n "$NUMBER_OF_PROCESSORS"; then 50387 # On windows, look in the env 50388 NUM_CORES=$NUMBER_OF_PROCESSORS 50389 FOUND_CORES=yes 50390 fi 50391 50392 if test "x$FOUND_CORES" = xyes; then 50393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 50394 $as_echo "$NUM_CORES" >&6; } 50395 else 50396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 50397 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 50398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 50399 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 50400 fi 50401 50402 else 50403 NUM_CORES=$with_num_cores 50404 fi 50405 50406 50407 50408 # How much memory do we have on this build system? 50409 50410 # Check whether --with-memory-size was given. 50411 if test "${with_memory_size+set}" = set; then : 50412 withval=$with_memory_size; 50413 fi 50414 50415 if test "x$with_memory_size" = x; then 50416 # The memory size was not specified, try to probe it. 50417 50418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 50419 $as_echo_n "checking for memory size... " >&6; } 50420 # Default to 1024 MB 50421 MEMORY_SIZE=1024 50422 FOUND_MEM=no 50423 50424 if test -f /proc/meminfo; then 50425 # Looks like a Linux (or cygwin) system 50426 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 50427 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 50428 FOUND_MEM=yes 50429 elif test -x /usr/sbin/prtconf; then 50430 # Looks like a Solaris or AIX system 50431 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 50432 FOUND_MEM=yes 50433 elif test -x /usr/sbin/system_profiler; then 50434 # Looks like a MacOSX system 50435 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 50436 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 50437 FOUND_MEM=yes 50438 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50439 # Windows, but without cygwin 50440 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 50441 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 50442 FOUND_MEM=yes 50443 fi 50444 50445 if test "x$FOUND_MEM" = xyes; then 50446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 50447 $as_echo "$MEMORY_SIZE MB" >&6; } 50448 else 50449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 50450 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 50451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 50452 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 50453 fi 50454 50455 else 50456 MEMORY_SIZE=$with_memory_size 50457 fi 50458 50459 50460 50461 # Provide a decent default number of parallel jobs for make depending on 50462 # number of cores, amount of memory and machine architecture. 50463 50464 # Check whether --with-jobs was given. 50465 if test "${with_jobs+set}" = set; then : 50466 withval=$with_jobs; 50467 fi 50468 50469 if test "x$with_jobs" = x; then 50470 # Number of jobs was not specified, calculate. 50471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 50472 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 50473 # Approximate memory in GB. 50474 memory_gb=`expr $MEMORY_SIZE / 1024` 50475 # Pick the lowest of memory in gb and number of cores. 50476 if test "$memory_gb" -lt "$NUM_CORES"; then 50477 JOBS="$memory_gb" 50478 else 50479 JOBS="$NUM_CORES" 50480 # On bigger machines, leave some room for other processes to run 50481 if test "$JOBS" -gt "4"; then 50482 JOBS=`expr $JOBS '*' 90 / 100` 50483 fi 50484 fi 50485 # Cap number of jobs to 16 50486 if test "$JOBS" -gt "16"; then 50487 JOBS=16 50488 fi 50489 if test "$JOBS" -eq "0"; then 50490 JOBS=1 50491 fi 50492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 50493 $as_echo "$JOBS" >&6; } 50494 else 50495 JOBS=$with_jobs 50496 fi 50497 50498 50499 50500 # Setup arguments for the boot jdk (after cores and memory have been setup) 50501 50502 ############################################################################## 50503 # 50504 # Specify jvm options for anything that is run with the Boot JDK. 50505 # Not all JVM:s accept the same arguments on the command line. 50506 # 50507 50508 # Check whether --with-boot-jdk-jvmargs was given. 50509 if test "${with_boot_jdk_jvmargs+set}" = set; then : 50510 withval=$with_boot_jdk_jvmargs; 50511 fi 50512 50513 50514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 50515 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 50516 50517 # Disable special log output when a debug build is used as Boot JDK... 50518 50519 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 50520 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 50521 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 50522 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50523 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50524 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50525 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 50526 JVM_ARG_OK=true 50527 else 50528 $ECHO "Arg failed:" >&5 50529 $ECHO "$OUTPUT" >&5 50530 JVM_ARG_OK=false 50531 fi 50532 50533 50534 # Apply user provided options. 50535 50536 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 50537 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 50538 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 50539 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50540 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50541 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50542 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 50543 JVM_ARG_OK=true 50544 else 50545 $ECHO "Arg failed:" >&5 50546 $ECHO "$OUTPUT" >&5 50547 JVM_ARG_OK=false 50548 fi 50549 50550 50551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 50552 $as_echo "$boot_jdk_jvmargs" >&6; } 50553 50554 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 50555 JAVA_FLAGS=$boot_jdk_jvmargs 50556 50557 50558 50559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 50560 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 50561 50562 # Starting amount of heap memory. 50563 50564 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 50565 $ECHO "Command: $JAVA -Xms64M -version" >&5 50566 OUTPUT=`$JAVA -Xms64M -version 2>&1` 50567 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50568 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50569 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50570 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 50571 JVM_ARG_OK=true 50572 else 50573 $ECHO "Arg failed:" >&5 50574 $ECHO "$OUTPUT" >&5 50575 JVM_ARG_OK=false 50576 fi 50577 50578 50579 # Maximum amount of heap memory. 50580 # Maximum stack size. 50581 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 50582 if test "x$BUILD_NUM_BITS" = x32; then 50583 if test "$JVM_MAX_HEAP" -gt "1100"; then 50584 JVM_MAX_HEAP=1100 50585 elif test "$JVM_MAX_HEAP" -lt "512"; then 50586 JVM_MAX_HEAP=512 50587 fi 50588 STACK_SIZE=768 50589 else 50590 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 50591 # pointers are used. Apparently, we need to increase the heap and stack 50592 # space for the jvm. More specifically, when running javac to build huge 50593 # jdk batch 50594 if test "$JVM_MAX_HEAP" -gt "1600"; then 50595 JVM_MAX_HEAP=1600 50596 elif test "$JVM_MAX_HEAP" -lt "512"; then 50597 JVM_MAX_HEAP=512 50598 fi 50599 STACK_SIZE=1536 50600 fi 50601 50602 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 50603 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 50604 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 50605 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50606 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50607 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50608 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 50609 JVM_ARG_OK=true 50610 else 50611 $ECHO "Arg failed:" >&5 50612 $ECHO "$OUTPUT" >&5 50613 JVM_ARG_OK=false 50614 fi 50615 50616 50617 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 50618 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 50619 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 50620 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50621 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50622 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50623 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 50624 JVM_ARG_OK=true 50625 else 50626 $ECHO "Arg failed:" >&5 50627 $ECHO "$OUTPUT" >&5 50628 JVM_ARG_OK=false 50629 fi 50630 50631 50632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 50633 $as_echo "$boot_jdk_jvmargs_big" >&6; } 50634 50635 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 50636 50637 50638 50639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 50640 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 50641 50642 # Use serial gc for small short lived tools if possible 50643 50644 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 50645 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 50646 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 50647 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50648 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50649 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50650 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 50651 JVM_ARG_OK=true 50652 else 50653 $ECHO "Arg failed:" >&5 50654 $ECHO "$OUTPUT" >&5 50655 JVM_ARG_OK=false 50656 fi 50657 50658 50659 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 50660 $ECHO "Command: $JAVA -Xms32M -version" >&5 50661 OUTPUT=`$JAVA -Xms32M -version 2>&1` 50662 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50663 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50664 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50665 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 50666 JVM_ARG_OK=true 50667 else 50668 $ECHO "Arg failed:" >&5 50669 $ECHO "$OUTPUT" >&5 50670 JVM_ARG_OK=false 50671 fi 50672 50673 50674 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 50675 $ECHO "Command: $JAVA -Xmx512M -version" >&5 50676 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 50677 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50678 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50679 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50680 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 50681 JVM_ARG_OK=true 50682 else 50683 $ECHO "Arg failed:" >&5 50684 $ECHO "$OUTPUT" >&5 50685 JVM_ARG_OK=false 50686 fi 50687 50688 50689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 50690 $as_echo "$boot_jdk_jvmargs_small" >&6; } 50691 50692 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 50693 50694 50695 JAVA_TOOL_FLAGS_SMALL="" 50696 for f in $JAVA_FLAGS_SMALL; do 50697 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 50698 done 50699 50700 50701 50702 # Setup smart javac (after cores and memory have been setup) 50703 50704 50705 # Check whether --with-sjavac-server-java was given. 50706 if test "${with_sjavac_server_java+set}" = set; then : 50707 withval=$with_sjavac_server_java; 50708 fi 50709 50710 50711 if test "x$with_sjavac_server_java" != x; then 50712 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 50713 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 50714 if test "x$FOUND_VERSION" = x; then 50715 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 50716 fi 50717 else 50718 SJAVAC_SERVER_JAVA="$JAVA" 50719 fi 50720 50721 50722 if test "$MEMORY_SIZE" -gt "3000"; then 50723 50724 $ECHO "Check if jvm arg is ok: -d64" >&5 50725 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 50726 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 50727 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50728 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50729 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50730 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 50731 JVM_ARG_OK=true 50732 else 50733 $ECHO "Arg failed:" >&5 50734 $ECHO "$OUTPUT" >&5 50735 JVM_ARG_OK=false 50736 fi 50737 50738 if test "$JVM_ARG_OK" = true; then 50739 JVM_64BIT=true 50740 JVM_ARG_OK=false 50741 fi 50742 fi 50743 50744 MX_VALUE=`expr $MEMORY_SIZE / 2` 50745 if test "$JVM_64BIT" = true; then 50746 # Set ms lower than mx since more than one instance of the server might 50747 # get launched at the same time before they figure out which instance won. 50748 MS_VALUE=512 50749 if test "$MX_VALUE" -gt "2048"; then 50750 MX_VALUE=2048 50751 fi 50752 else 50753 MS_VALUE=256 50754 if test "$MX_VALUE" -gt "1500"; then 50755 MX_VALUE=1500 50756 fi 50757 fi 50758 if test "$MX_VALUE" -lt "512"; then 50759 MX_VALUE=512 50760 fi 50761 50762 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 50763 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 50764 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 50765 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50766 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50767 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50768 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 50769 JVM_ARG_OK=true 50770 else 50771 $ECHO "Arg failed:" >&5 50772 $ECHO "$OUTPUT" >&5 50773 JVM_ARG_OK=false 50774 fi 50775 50776 50777 50778 # Check whether --enable-sjavac was given. 50779 if test "${enable_sjavac+set}" = set; then : 50780 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 50781 else 50782 ENABLE_SJAVAC='no' 50783 fi 50784 50785 if test "x$JVM_ARG_OK" = "xfalse"; then 50786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 50787 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 50788 ENABLE_SJAVAC=no; 50789 fi 50790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 50791 $as_echo_n "checking whether to use sjavac... " >&6; } 50792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 50793 $as_echo "$ENABLE_SJAVAC" >&6; } 50794 50795 50796 if test "x$ENABLE_SJAVAC" = xyes; then 50797 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 50798 else 50799 SJAVAC_SERVER_DIR= 50800 fi 50801 50802 50803 50804 # Can the C/C++ compiler use precompiled headers? 50805 50806 50807 ############################################################################### 50808 # 50809 # Can the C/C++ compiler use precompiled headers? 50810 # 50811 # Check whether --enable-precompiled-headers was given. 50812 if test "${enable_precompiled_headers+set}" = set; then : 50813 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 50814 else 50815 ENABLE_PRECOMPH=yes 50816 fi 50817 50818 50819 USE_PRECOMPILED_HEADER=1 50820 if test "x$ENABLE_PRECOMPH" = xno; then 50821 USE_PRECOMPILED_HEADER=0 50822 fi 50823 50824 if test "x$ENABLE_PRECOMPH" = xyes; then 50825 # Check that the compiler actually supports precomp headers. 50826 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 50828 $as_echo_n "checking that precompiled headers work... " >&6; } 50829 echo "int alfa();" > conftest.h 50830 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 50831 if test ! -f conftest.hpp.gch; then 50832 USE_PRECOMPILED_HEADER=0 50833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50834 $as_echo "no" >&6; } 50835 else 50836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50837 $as_echo "yes" >&6; } 50838 fi 50839 rm -f conftest.h conftest.hpp.gch 50840 fi 50841 fi 50842 50843 50844 50845 50846 # Setup use of ccache, if available 50847 50848 # Check whether --enable-ccache was given. 50849 if test "${enable_ccache+set}" = set; then : 50850 enableval=$enable_ccache; 50851 fi 50852 50853 50854 CCACHE= 50855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 50856 $as_echo_n "checking is ccache enabled... " >&6; } 50857 ENABLE_CCACHE=$enable_ccache 50858 if test "x$enable_ccache" = xyes; then 50859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50860 $as_echo "yes" >&6; } 50861 OLD_PATH="$PATH" 50862 if test "x$TOOLCHAIN_PATH" != x; then 50863 PATH=$TOOLCHAIN_PATH:$PATH 50864 fi 50865 50866 50867 50868 # Publish this variable in the help. 50869 50870 50871 if test "x$CCACHE" = x; then 50872 # The variable is not set by user, try to locate tool using the code snippet 50873 for ac_prog in ccache 50874 do 50875 # Extract the first word of "$ac_prog", so it can be a program name with args. 50876 set dummy $ac_prog; ac_word=$2 50877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50878 $as_echo_n "checking for $ac_word... " >&6; } 50879 if ${ac_cv_path_CCACHE+:} false; then : 50880 $as_echo_n "(cached) " >&6 50881 else 50882 case $CCACHE in 50883 [\\/]* | ?:[\\/]*) 50884 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50885 ;; 50886 *) 50887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50888 for as_dir in $PATH 50889 do 50890 IFS=$as_save_IFS 50891 test -z "$as_dir" && as_dir=. 50892 for ac_exec_ext in '' $ac_executable_extensions; do 50893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50894 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50896 break 2 50897 fi 50898 done 50899 done 50900 IFS=$as_save_IFS 50901 50902 ;; 50903 esac 50904 fi 50905 CCACHE=$ac_cv_path_CCACHE 50906 if test -n "$CCACHE"; then 50907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50908 $as_echo "$CCACHE" >&6; } 50909 else 50910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50911 $as_echo "no" >&6; } 50912 fi 50913 50914 50915 test -n "$CCACHE" && break 50916 done 50917 50918 else 50919 # The variable is set, but is it from the command line or the environment? 50920 50921 # Try to remove the string !CCACHE! from our list. 50922 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 50923 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 50924 # If it failed, the variable was not from the command line. Ignore it, 50925 # but warn the user (except for BASH, which is always set by the calling BASH). 50926 if test "xCCACHE" != xBASH; then 50927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 50928 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 50929 fi 50930 # Try to locate tool using the code snippet 50931 for ac_prog in ccache 50932 do 50933 # Extract the first word of "$ac_prog", so it can be a program name with args. 50934 set dummy $ac_prog; ac_word=$2 50935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50936 $as_echo_n "checking for $ac_word... " >&6; } 50937 if ${ac_cv_path_CCACHE+:} false; then : 50938 $as_echo_n "(cached) " >&6 50939 else 50940 case $CCACHE in 50941 [\\/]* | ?:[\\/]*) 50942 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50943 ;; 50944 *) 50945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50946 for as_dir in $PATH 50947 do 50948 IFS=$as_save_IFS 50949 test -z "$as_dir" && as_dir=. 50950 for ac_exec_ext in '' $ac_executable_extensions; do 50951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50952 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50954 break 2 50955 fi 50956 done 50957 done 50958 IFS=$as_save_IFS 50959 50960 ;; 50961 esac 50962 fi 50963 CCACHE=$ac_cv_path_CCACHE 50964 if test -n "$CCACHE"; then 50965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50966 $as_echo "$CCACHE" >&6; } 50967 else 50968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50969 $as_echo "no" >&6; } 50970 fi 50971 50972 50973 test -n "$CCACHE" && break 50974 done 50975 50976 else 50977 # If it succeeded, then it was overridden by the user. We will use it 50978 # for the tool. 50979 50980 # First remove it from the list of overridden variables, so we can test 50981 # for unknown variables in the end. 50982 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50983 50984 # Check if the provided tool contains a complete path. 50985 tool_specified="$CCACHE" 50986 tool_basename="${tool_specified##*/}" 50987 if test "x$tool_basename" = "x$tool_specified"; then 50988 # A command without a complete path is provided, search $PATH. 50989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 50990 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 50991 # Extract the first word of "$tool_basename", so it can be a program name with args. 50992 set dummy $tool_basename; ac_word=$2 50993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50994 $as_echo_n "checking for $ac_word... " >&6; } 50995 if ${ac_cv_path_CCACHE+:} false; then : 50996 $as_echo_n "(cached) " >&6 50997 else 50998 case $CCACHE in 50999 [\\/]* | ?:[\\/]*) 51000 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51001 ;; 51002 *) 51003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51004 for as_dir in $PATH 51005 do 51006 IFS=$as_save_IFS 51007 test -z "$as_dir" && as_dir=. 51008 for ac_exec_ext in '' $ac_executable_extensions; do 51009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51010 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51012 break 2 51013 fi 51014 done 51015 done 51016 IFS=$as_save_IFS 51017 51018 ;; 51019 esac 51020 fi 51021 CCACHE=$ac_cv_path_CCACHE 51022 if test -n "$CCACHE"; then 51023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51024 $as_echo "$CCACHE" >&6; } 51025 else 51026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51027 $as_echo "no" >&6; } 51028 fi 51029 51030 51031 if test "x$CCACHE" = x; then 51032 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 51033 fi 51034 else 51035 # Otherwise we believe it is a complete path. Use it as it is. 51036 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 51037 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 51038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 51039 $as_echo_n "checking for CCACHE... " >&6; } 51040 if test ! -x "$tool_specified"; then 51041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 51042 $as_echo "not found" >&6; } 51043 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 51044 fi 51045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 51046 $as_echo "$tool_specified" >&6; } 51047 fi 51048 fi 51049 fi 51050 51051 51052 51053 if test "x$CCACHE" = x; then 51054 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 51055 fi 51056 51057 51058 CCACHE_STATUS="enabled" 51059 PATH="$OLD_PATH" 51060 elif test "x$enable_ccache" = xno; then 51061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 51062 $as_echo "no, explicitly disabled" >&6; } 51063 elif test "x$enable_ccache" = x; then 51064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51065 $as_echo "no" >&6; } 51066 else 51067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 51068 $as_echo "unknown" >&6; } 51069 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 51070 fi 51071 51072 51073 51074 # Check whether --with-ccache-dir was given. 51075 if test "${with_ccache_dir+set}" = set; then : 51076 withval=$with_ccache_dir; 51077 fi 51078 51079 51080 if test "x$with_ccache_dir" != x; then 51081 # When using a non home ccache directory, assume the use is to share ccache files 51082 # with other users. Thus change the umask. 51083 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 51084 if test "x$CCACHE" = x; then 51085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 51086 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 51087 fi 51088 fi 51089 51090 if test "x$CCACHE" != x; then 51091 51092 if test "x$CCACHE" != x; then 51093 # Only use ccache if it is 3.1.4 or later, which supports 51094 # precompiled headers. 51095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 51096 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 51097 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 51098 if test "x$HAS_GOOD_CCACHE" = x; then 51099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 51100 $as_echo "no, disabling ccache" >&6; } 51101 CCACHE= 51102 CCACHE_STATUS="disabled" 51103 else 51104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51105 $as_echo "yes" >&6; } 51106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 51107 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 51108 PUSHED_FLAGS="$CXXFLAGS" 51109 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 51110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51111 /* end confdefs.h. */ 51112 51113 int 51114 main () 51115 { 51116 51117 ; 51118 return 0; 51119 } 51120 _ACEOF 51121 if ac_fn_cxx_try_compile "$LINENO"; then : 51122 CC_KNOWS_CCACHE_TRICK=yes 51123 else 51124 CC_KNOWS_CCACHE_TRICK=no 51125 fi 51126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51127 CXXFLAGS="$PUSHED_FLAGS" 51128 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 51129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51130 $as_echo "yes" >&6; } 51131 else 51132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 51133 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 51134 CCACHE= 51135 CCACHE_STATUS="disabled" 51136 fi 51137 fi 51138 fi 51139 51140 if test "x$CCACHE" != x; then 51141 CCACHE_SLOPPINESS=time_macros 51142 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 51143 CCACHE_FLAGS=-fpch-preprocess 51144 51145 if test "x$SET_CCACHE_DIR" != x; then 51146 mkdir -p $CCACHE_DIR > /dev/null 2>&1 51147 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 51148 fi 51149 fi 51150 51151 fi 51152 51153 51154 ############################################################################### 51155 # 51156 # And now the finish... 51157 # 51158 ############################################################################### 51159 51160 # Check for some common pitfalls 51161 51162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51163 file_to_test="$SRC_ROOT/LICENSE" 51164 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 51165 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 51166 fi 51167 fi 51168 51169 51170 # Did user specify any unknown variables? 51171 51172 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 51173 # Replace the separating ! with spaces before presenting for end user. 51174 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 51175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 51176 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 51177 fi 51178 51179 51180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 51181 $as_echo_n "checking if build directory is on local disk... " >&6; } 51182 51183 # df -l lists only local disks; if the given directory is not found then 51184 # a non-zero exit code is given 51185 if test "x$DF" = x; then 51186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51187 # msys does not have df; use Windows "net use" instead. 51188 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 51189 if test "x$IS_NETWORK_DISK" = x; then 51190 OUTPUT_DIR_IS_LOCAL="yes" 51191 else 51192 OUTPUT_DIR_IS_LOCAL="no" 51193 fi 51194 else 51195 # No df here, say it's local 51196 OUTPUT_DIR_IS_LOCAL="yes" 51197 fi 51198 else 51199 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 51200 OUTPUT_DIR_IS_LOCAL="yes" 51201 else 51202 OUTPUT_DIR_IS_LOCAL="no" 51203 fi 51204 fi 51205 51206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 51207 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 51208 51209 51210 51211 # Check if the user has any old-style ALT_ variables set. 51212 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 51213 51214 # Before generating output files, test if they exist. If they do, this is a reconfigure. 51215 # Since we can't properly handle the dependencies for this, warn the user about the situation 51216 if test -e $OUTPUT_ROOT/spec.gmk; then 51217 IS_RECONFIGURE=yes 51218 else 51219 IS_RECONFIGURE=no 51220 fi 51221 51222 51223 # At the end, call the custom hook. (Dummy macro if no custom sources available) 51224 51225 51226 # We're messing a bit with internal autoconf variables to put the config.status 51227 # in the output directory instead of the current directory. 51228 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 51229 51230 # Create the actual output files. Now the main work of configure is done. 51231 cat >confcache <<\_ACEOF 51232 # This file is a shell script that caches the results of configure 51233 # tests run on this system so they can be shared between configure 51234 # scripts and configure runs, see configure's option --config-cache. 51235 # It is not useful on other systems. If it contains results you don't 51236 # want to keep, you may remove or edit it. 51237 # 51238 # config.status only pays attention to the cache file if you give it 51239 # the --recheck option to rerun configure. 51240 # 51241 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51242 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51243 # following values. 51244 51245 _ACEOF 51246 51247 # The following way of writing the cache mishandles newlines in values, 51248 # but we know of no workaround that is simple, portable, and efficient. 51249 # So, we kill variables containing newlines. 51250 # Ultrix sh set writes to stderr and can't be redirected directly, 51251 # and sets the high bit in the cache file unless we assign to the vars. 51252 ( 51253 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51254 eval ac_val=\$$ac_var 51255 case $ac_val in #( 51256 *${as_nl}*) 51257 case $ac_var in #( 51258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51259 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51260 esac 51261 case $ac_var in #( 51262 _ | IFS | as_nl) ;; #( 51263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51264 *) { eval $ac_var=; unset $ac_var;} ;; 51265 esac ;; 51266 esac 51267 done 51268 51269 (set) 2>&1 | 51270 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51271 *${as_nl}ac_space=\ *) 51272 # `set' does not quote correctly, so add quotes: double-quote 51273 # substitution turns \\\\ into \\, and sed turns \\ into \. 51274 sed -n \ 51275 "s/'/'\\\\''/g; 51276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51277 ;; #( 51278 *) 51279 # `set' quotes correctly as required by POSIX, so do not add quotes. 51280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51281 ;; 51282 esac | 51283 sort 51284 ) | 51285 sed ' 51286 /^ac_cv_env_/b end 51287 t clear 51288 :clear 51289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51290 t end 51291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51292 :end' >>confcache 51293 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51294 if test -w "$cache_file"; then 51295 if test "x$cache_file" != "x/dev/null"; then 51296 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51297 $as_echo "$as_me: updating cache $cache_file" >&6;} 51298 if test ! -f "$cache_file" || test -h "$cache_file"; then 51299 cat confcache >"$cache_file" 51300 else 51301 case $cache_file in #( 51302 */* | ?:*) 51303 mv -f confcache "$cache_file"$$ && 51304 mv -f "$cache_file"$$ "$cache_file" ;; #( 51305 *) 51306 mv -f confcache "$cache_file" ;; 51307 esac 51308 fi 51309 fi 51310 else 51311 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51312 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51313 fi 51314 fi 51315 rm -f confcache 51316 51317 test "x$prefix" = xNONE && prefix=$ac_default_prefix 51318 # Let make expand exec_prefix. 51319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51320 51321 # Transform confdefs.h into DEFS. 51322 # Protect against shell expansion while executing Makefile rules. 51323 # Protect against Makefile macro expansion. 51324 # 51325 # If the first sed substitution is executed (which looks for macros that 51326 # take arguments), then branch to the quote section. Otherwise, 51327 # look for a macro that doesn't take arguments. 51328 ac_script=' 51329 :mline 51330 /\\$/{ 51331 N 51332 s,\\\n,, 51333 b mline 51334 } 51335 t clear 51336 :clear 51337 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 51338 t quote 51339 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 51340 t quote 51341 b any 51342 :quote 51343 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 51344 s/\[/\\&/g 51345 s/\]/\\&/g 51346 s/\$/$$/g 51347 H 51348 :any 51349 ${ 51350 g 51351 s/^\n// 51352 s/\n/ /g 51353 p 51354 } 51355 ' 51356 DEFS=`sed -n "$ac_script" confdefs.h` 51357 51358 51359 ac_libobjs= 51360 ac_ltlibobjs= 51361 U= 51362 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51363 # 1. Remove the extension, and $U if already installed. 51364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51367 # will be set to the directory where LIBOBJS objects are built. 51368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51370 done 51371 LIBOBJS=$ac_libobjs 51372 51373 LTLIBOBJS=$ac_ltlibobjs 51374 51375 51376 51377 : "${CONFIG_STATUS=./config.status}" 51378 ac_write_fail=0 51379 ac_clean_files_save=$ac_clean_files 51380 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 51381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 51382 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 51383 as_write_fail=0 51384 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 51385 #! $SHELL 51386 # Generated by $as_me. 51387 # Run this file to recreate the current configuration. 51388 # Compiler output produced by configure, useful for debugging 51389 # configure, is in config.log if it exists. 51390 51391 debug=false 51392 ac_cs_recheck=false 51393 ac_cs_silent=false 51394 51395 SHELL=\${CONFIG_SHELL-$SHELL} 51396 export SHELL 51397 _ASEOF 51398 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 51399 ## -------------------- ## 51400 ## M4sh Initialization. ## 51401 ## -------------------- ## 51402 51403 # Be more Bourne compatible 51404 DUALCASE=1; export DUALCASE # for MKS sh 51405 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 51406 emulate sh 51407 NULLCMD=: 51408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 51409 # is contrary to our usage. Disable this feature. 51410 alias -g '${1+"$@"}'='"$@"' 51411 setopt NO_GLOB_SUBST 51412 else 51413 case `(set -o) 2>/dev/null` in #( 51414 *posix*) : 51415 set -o posix ;; #( 51416 *) : 51417 ;; 51418 esac 51419 fi 51420 51421 51422 as_nl=' 51423 ' 51424 export as_nl 51425 # Printing a long string crashes Solaris 7 /usr/bin/printf. 51426 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 51427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 51428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51429 # Prefer a ksh shell builtin over an external printf program on Solaris, 51430 # but without wasting forks for bash or zsh. 51431 if test -z "$BASH_VERSION$ZSH_VERSION" \ 51432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51433 as_echo='print -r --' 51434 as_echo_n='print -rn --' 51435 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51436 as_echo='printf %s\n' 51437 as_echo_n='printf %s' 51438 else 51439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 51440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 51441 as_echo_n='/usr/ucb/echo -n' 51442 else 51443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51444 as_echo_n_body='eval 51445 arg=$1; 51446 case $arg in #( 51447 *"$as_nl"*) 51448 expr "X$arg" : "X\\(.*\\)$as_nl"; 51449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 51450 esac; 51451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 51452 ' 51453 export as_echo_n_body 51454 as_echo_n='sh -c $as_echo_n_body as_echo' 51455 fi 51456 export as_echo_body 51457 as_echo='sh -c $as_echo_body as_echo' 51458 fi 51459 51460 # The user is always right. 51461 if test "${PATH_SEPARATOR+set}" != set; then 51462 PATH_SEPARATOR=: 51463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 51464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 51465 PATH_SEPARATOR=';' 51466 } 51467 fi 51468 51469 51470 # IFS 51471 # We need space, tab and new line, in precisely that order. Quoting is 51472 # there to prevent editors from complaining about space-tab. 51473 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 51474 # splitting by setting IFS to empty value.) 51475 IFS=" "" $as_nl" 51476 51477 # Find who we are. Look in the path if we contain no directory separator. 51478 as_myself= 51479 case $0 in #(( 51480 *[\\/]* ) as_myself=$0 ;; 51481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51482 for as_dir in $PATH 51483 do 51484 IFS=$as_save_IFS 51485 test -z "$as_dir" && as_dir=. 51486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 51487 done 51488 IFS=$as_save_IFS 51489 51490 ;; 51491 esac 51492 # We did not find ourselves, most probably we were run as `sh COMMAND' 51493 # in which case we are not to be found in the path. 51494 if test "x$as_myself" = x; then 51495 as_myself=$0 51496 fi 51497 if test ! -f "$as_myself"; then 51498 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 51499 exit 1 51500 fi 51501 51502 # Unset variables that we do not need and which cause bugs (e.g. in 51503 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 51504 # suppresses any "Segmentation fault" message there. '((' could 51505 # trigger a bug in pdksh 5.2.14. 51506 for as_var in BASH_ENV ENV MAIL MAILPATH 51507 do eval test x\${$as_var+set} = xset \ 51508 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 51509 done 51510 PS1='$ ' 51511 PS2='> ' 51512 PS4='+ ' 51513 51514 # NLS nuisances. 51515 LC_ALL=C 51516 export LC_ALL 51517 LANGUAGE=C 51518 export LANGUAGE 51519 51520 # CDPATH. 51521 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 51522 51523 51524 # as_fn_error STATUS ERROR [LINENO LOG_FD] 51525 # ---------------------------------------- 51526 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 51527 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 51528 # script with STATUS, using 1 if that was 0. 51529 as_fn_error () 51530 { 51531 as_status=$1; test $as_status -eq 0 && as_status=1 51532 if test "$4"; then 51533 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 51534 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 51535 fi 51536 $as_echo "$as_me: error: $2" >&2 51537 as_fn_exit $as_status 51538 } # as_fn_error 51539 51540 51541 # as_fn_set_status STATUS 51542 # ----------------------- 51543 # Set $? to STATUS, without forking. 51544 as_fn_set_status () 51545 { 51546 return $1 51547 } # as_fn_set_status 51548 51549 # as_fn_exit STATUS 51550 # ----------------- 51551 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 51552 as_fn_exit () 51553 { 51554 set +e 51555 as_fn_set_status $1 51556 exit $1 51557 } # as_fn_exit 51558 51559 # as_fn_unset VAR 51560 # --------------- 51561 # Portably unset VAR. 51562 as_fn_unset () 51563 { 51564 { eval $1=; unset $1;} 51565 } 51566 as_unset=as_fn_unset 51567 # as_fn_append VAR VALUE 51568 # ---------------------- 51569 # Append the text in VALUE to the end of the definition contained in VAR. Take 51570 # advantage of any shell optimizations that allow amortized linear growth over 51571 # repeated appends, instead of the typical quadratic growth present in naive 51572 # implementations. 51573 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 51574 eval 'as_fn_append () 51575 { 51576 eval $1+=\$2 51577 }' 51578 else 51579 as_fn_append () 51580 { 51581 eval $1=\$$1\$2 51582 } 51583 fi # as_fn_append 51584 51585 # as_fn_arith ARG... 51586 # ------------------ 51587 # Perform arithmetic evaluation on the ARGs, and store the result in the 51588 # global $as_val. Take advantage of shells that can avoid forks. The arguments 51589 # must be portable across $(()) and expr. 51590 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 51591 eval 'as_fn_arith () 51592 { 51593 as_val=$(( $* )) 51594 }' 51595 else 51596 as_fn_arith () 51597 { 51598 as_val=`expr "$@" || test $? -eq 1` 51599 } 51600 fi # as_fn_arith 51601 51602 51603 if expr a : '\(a\)' >/dev/null 2>&1 && 51604 test "X`expr 00001 : '.*\(...\)'`" = X001; then 51605 as_expr=expr 51606 else 51607 as_expr=false 51608 fi 51609 51610 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 51611 as_basename=basename 51612 else 51613 as_basename=false 51614 fi 51615 51616 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 51617 as_dirname=dirname 51618 else 51619 as_dirname=false 51620 fi 51621 51622 as_me=`$as_basename -- "$0" || 51623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 51624 X"$0" : 'X\(//\)$' \| \ 51625 X"$0" : 'X\(/\)' \| . 2>/dev/null || 51626 $as_echo X/"$0" | 51627 sed '/^.*\/\([^/][^/]*\)\/*$/{ 51628 s//\1/ 51629 q 51630 } 51631 /^X\/\(\/\/\)$/{ 51632 s//\1/ 51633 q 51634 } 51635 /^X\/\(\/\).*/{ 51636 s//\1/ 51637 q 51638 } 51639 s/.*/./; q'` 51640 51641 # Avoid depending upon Character Ranges. 51642 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 51643 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 51644 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 51645 as_cr_digits='0123456789' 51646 as_cr_alnum=$as_cr_Letters$as_cr_digits 51647 51648 ECHO_C= ECHO_N= ECHO_T= 51649 case `echo -n x` in #((((( 51650 -n*) 51651 case `echo 'xy\c'` in 51652 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 51653 xy) ECHO_C='\c';; 51654 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 51655 ECHO_T=' ';; 51656 esac;; 51657 *) 51658 ECHO_N='-n';; 51659 esac 51660 51661 rm -f conf$$ conf$$.exe conf$$.file 51662 if test -d conf$$.dir; then 51663 rm -f conf$$.dir/conf$$.file 51664 else 51665 rm -f conf$$.dir 51666 mkdir conf$$.dir 2>/dev/null 51667 fi 51668 if (echo >conf$$.file) 2>/dev/null; then 51669 if ln -s conf$$.file conf$$ 2>/dev/null; then 51670 as_ln_s='ln -s' 51671 # ... but there are two gotchas: 51672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 51673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 51674 # In both cases, we have to default to `cp -pR'. 51675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 51676 as_ln_s='cp -pR' 51677 elif ln conf$$.file conf$$ 2>/dev/null; then 51678 as_ln_s=ln 51679 else 51680 as_ln_s='cp -pR' 51681 fi 51682 else 51683 as_ln_s='cp -pR' 51684 fi 51685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 51686 rmdir conf$$.dir 2>/dev/null 51687 51688 51689 # as_fn_mkdir_p 51690 # ------------- 51691 # Create "$as_dir" as a directory, including parents if necessary. 51692 as_fn_mkdir_p () 51693 { 51694 51695 case $as_dir in #( 51696 -*) as_dir=./$as_dir;; 51697 esac 51698 test -d "$as_dir" || eval $as_mkdir_p || { 51699 as_dirs= 51700 while :; do 51701 case $as_dir in #( 51702 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 51703 *) as_qdir=$as_dir;; 51704 esac 51705 as_dirs="'$as_qdir' $as_dirs" 51706 as_dir=`$as_dirname -- "$as_dir" || 51707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51708 X"$as_dir" : 'X\(//\)[^/]' \| \ 51709 X"$as_dir" : 'X\(//\)$' \| \ 51710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 51711 $as_echo X"$as_dir" | 51712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51713 s//\1/ 51714 q 51715 } 51716 /^X\(\/\/\)[^/].*/{ 51717 s//\1/ 51718 q 51719 } 51720 /^X\(\/\/\)$/{ 51721 s//\1/ 51722 q 51723 } 51724 /^X\(\/\).*/{ 51725 s//\1/ 51726 q 51727 } 51728 s/.*/./; q'` 51729 test -d "$as_dir" && break 51730 done 51731 test -z "$as_dirs" || eval "mkdir $as_dirs" 51732 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 51733 51734 51735 } # as_fn_mkdir_p 51736 if mkdir -p . 2>/dev/null; then 51737 as_mkdir_p='mkdir -p "$as_dir"' 51738 else 51739 test -d ./-p && rmdir ./-p 51740 as_mkdir_p=false 51741 fi 51742 51743 51744 # as_fn_executable_p FILE 51745 # ----------------------- 51746 # Test if FILE is an executable regular file. 51747 as_fn_executable_p () 51748 { 51749 test -f "$1" && test -x "$1" 51750 } # as_fn_executable_p 51751 as_test_x='test -x' 51752 as_executable_p=as_fn_executable_p 51753 51754 # Sed expression to map a string onto a valid CPP name. 51755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 51756 51757 # Sed expression to map a string onto a valid variable name. 51758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 51759 51760 51761 exec 6>&1 51762 ## ----------------------------------- ## 51763 ## Main body of $CONFIG_STATUS script. ## 51764 ## ----------------------------------- ## 51765 _ASEOF 51766 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 51767 51768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51769 # Save the log message, to keep $0 and so on meaningful, and to 51770 # report actual input values of CONFIG_FILES etc. instead of their 51771 # values after options handling. 51772 ac_log=" 51773 This file was extended by OpenJDK $as_me jdk9, which was 51774 generated by GNU Autoconf 2.69. Invocation command line was 51775 51776 CONFIG_FILES = $CONFIG_FILES 51777 CONFIG_HEADERS = $CONFIG_HEADERS 51778 CONFIG_LINKS = $CONFIG_LINKS 51779 CONFIG_COMMANDS = $CONFIG_COMMANDS 51780 $ $0 $@ 51781 51782 on `(hostname || uname -n) 2>/dev/null | sed 1q` 51783 " 51784 51785 _ACEOF 51786 51787 case $ac_config_files in *" 51788 "*) set x $ac_config_files; shift; ac_config_files=$*;; 51789 esac 51790 51791 51792 51793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51794 # Files that config.status was made for. 51795 config_files="$ac_config_files" 51796 51797 _ACEOF 51798 51799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51800 ac_cs_usage="\ 51801 \`$as_me' instantiates files and other configuration actions 51802 from templates according to the current configuration. Unless the files 51803 and actions are specified as TAGs, all are instantiated by default. 51804 51805 Usage: $0 [OPTION]... [TAG]... 51806 51807 -h, --help print this help, then exit 51808 -V, --version print version number and configuration settings, then exit 51809 --config print configuration, then exit 51810 -q, --quiet, --silent 51811 do not print progress messages 51812 -d, --debug don't remove temporary files 51813 --recheck update $as_me by reconfiguring in the same conditions 51814 --file=FILE[:TEMPLATE] 51815 instantiate the configuration file FILE 51816 51817 Configuration files: 51818 $config_files 51819 51820 Report bugs to <build-dev@openjdk.java.net>. 51821 OpenJDK home page: <http://openjdk.java.net>." 51822 51823 _ACEOF 51824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51825 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 51826 ac_cs_version="\\ 51827 OpenJDK config.status jdk9 51828 configured by $0, generated by GNU Autoconf 2.69, 51829 with options \\"\$ac_cs_config\\" 51830 51831 Copyright (C) 2012 Free Software Foundation, Inc. 51832 This config.status script is free software; the Free Software Foundation 51833 gives unlimited permission to copy, distribute and modify it." 51834 51835 ac_pwd='$ac_pwd' 51836 srcdir='$srcdir' 51837 AWK='$AWK' 51838 test -n "\$AWK" || AWK=awk 51839 _ACEOF 51840 51841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51842 # The default lists apply if the user does not specify any file. 51843 ac_need_defaults=: 51844 while test $# != 0 51845 do 51846 case $1 in 51847 --*=?*) 51848 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51849 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 51850 ac_shift=: 51851 ;; 51852 --*=) 51853 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51854 ac_optarg= 51855 ac_shift=: 51856 ;; 51857 *) 51858 ac_option=$1 51859 ac_optarg=$2 51860 ac_shift=shift 51861 ;; 51862 esac 51863 51864 case $ac_option in 51865 # Handling of the options. 51866 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 51867 ac_cs_recheck=: ;; 51868 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 51869 $as_echo "$ac_cs_version"; exit ;; 51870 --config | --confi | --conf | --con | --co | --c ) 51871 $as_echo "$ac_cs_config"; exit ;; 51872 --debug | --debu | --deb | --de | --d | -d ) 51873 debug=: ;; 51874 --file | --fil | --fi | --f ) 51875 $ac_shift 51876 case $ac_optarg in 51877 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51878 '') as_fn_error $? "missing file argument" ;; 51879 esac 51880 as_fn_append CONFIG_FILES " '$ac_optarg'" 51881 ac_need_defaults=false;; 51882 --he | --h | --help | --hel | -h ) 51883 $as_echo "$ac_cs_usage"; exit ;; 51884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 51885 | -silent | --silent | --silen | --sile | --sil | --si | --s) 51886 ac_cs_silent=: ;; 51887 51888 # This is an error. 51889 -*) as_fn_error $? "unrecognized option: \`$1' 51890 Try \`$0 --help' for more information." ;; 51891 51892 *) as_fn_append ac_config_targets " $1" 51893 ac_need_defaults=false ;; 51894 51895 esac 51896 shift 51897 done 51898 51899 ac_configure_extra_args= 51900 51901 if $ac_cs_silent; then 51902 exec 6>/dev/null 51903 ac_configure_extra_args="$ac_configure_extra_args --silent" 51904 fi 51905 51906 _ACEOF 51907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51908 if \$ac_cs_recheck; then 51909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 51910 shift 51911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 51912 CONFIG_SHELL='$SHELL' 51913 export CONFIG_SHELL 51914 exec "\$@" 51915 fi 51916 51917 _ACEOF 51918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51919 exec 5>>config.log 51920 { 51921 echo 51922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 51923 ## Running $as_me. ## 51924 _ASBOX 51925 $as_echo "$ac_log" 51926 } >&5 51927 51928 _ACEOF 51929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51930 _ACEOF 51931 51932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51933 51934 # Handling of arguments. 51935 for ac_config_target in $ac_config_targets 51936 do 51937 case $ac_config_target in 51938 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 51939 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 51940 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 51941 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 51942 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 51943 51944 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 51945 esac 51946 done 51947 51948 51949 # If the user did not use the arguments to specify the items to instantiate, 51950 # then the envvar interface is used. Set only those that are not. 51951 # We use the long form for the default assignment because of an extremely 51952 # bizarre bug on SunOS 4.1.3. 51953 if $ac_need_defaults; then 51954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 51955 fi 51956 51957 # Have a temporary directory for convenience. Make it in the build tree 51958 # simply because there is no reason against having it here, and in addition, 51959 # creating and moving files from /tmp can sometimes cause problems. 51960 # Hook for its removal unless debugging. 51961 # Note that there is a small window in which the directory will not be cleaned: 51962 # after its creation but before its name has been assigned to `$tmp'. 51963 $debug || 51964 { 51965 tmp= ac_tmp= 51966 trap 'exit_status=$? 51967 : "${ac_tmp:=$tmp}" 51968 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 51969 ' 0 51970 trap 'as_fn_exit 1' 1 2 13 15 51971 } 51972 # Create a (secure) tmp directory for tmp files. 51973 51974 { 51975 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 51976 test -d "$tmp" 51977 } || 51978 { 51979 tmp=./conf$$-$RANDOM 51980 (umask 077 && mkdir "$tmp") 51981 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 51982 ac_tmp=$tmp 51983 51984 # Set up the scripts for CONFIG_FILES section. 51985 # No need to generate them if there are no CONFIG_FILES. 51986 # This happens for instance with `./config.status config.h'. 51987 if test -n "$CONFIG_FILES"; then 51988 51989 51990 ac_cr=`echo X | tr X '\015'` 51991 # On cygwin, bash can eat \r inside `` if the user requested igncr. 51992 # But we know of no other shell where ac_cr would be empty at this 51993 # point, so we can use a bashism as a fallback. 51994 if test "x$ac_cr" = x; then 51995 eval ac_cr=\$\'\\r\' 51996 fi 51997 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 51998 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 51999 ac_cs_awk_cr='\\r' 52000 else 52001 ac_cs_awk_cr=$ac_cr 52002 fi 52003 52004 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 52005 _ACEOF 52006 52007 52008 { 52009 echo "cat >conf$$subs.awk <<_ACEOF" && 52010 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 52011 echo "_ACEOF" 52012 } >conf$$subs.sh || 52013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52014 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 52015 ac_delim='%!_!# ' 52016 for ac_last_try in false false false false false :; do 52017 . ./conf$$subs.sh || 52018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52019 52020 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 52021 if test $ac_delim_n = $ac_delim_num; then 52022 break 52023 elif $ac_last_try; then 52024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52025 else 52026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 52027 fi 52028 done 52029 rm -f conf$$subs.sh 52030 52031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52032 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 52033 _ACEOF 52034 sed -n ' 52035 h 52036 s/^/S["/; s/!.*/"]=/ 52037 p 52038 g 52039 s/^[^!]*!// 52040 :repl 52041 t repl 52042 s/'"$ac_delim"'$// 52043 t delim 52044 :nl 52045 h 52046 s/\(.\{148\}\)..*/\1/ 52047 t more1 52048 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 52049 p 52050 n 52051 b repl 52052 :more1 52053 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52054 p 52055 g 52056 s/.\{148\}// 52057 t nl 52058 :delim 52059 h 52060 s/\(.\{148\}\)..*/\1/ 52061 t more2 52062 s/["\\]/\\&/g; s/^/"/; s/$/"/ 52063 p 52064 b 52065 :more2 52066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52067 p 52068 g 52069 s/.\{148\}// 52070 t delim 52071 ' <conf$$subs.awk | sed ' 52072 /^[^""]/{ 52073 N 52074 s/\n// 52075 } 52076 ' >>$CONFIG_STATUS || ac_write_fail=1 52077 rm -f conf$$subs.awk 52078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52079 _ACAWK 52080 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 52081 for (key in S) S_is_set[key] = 1 52082 FS = "" 52083 52084 } 52085 { 52086 line = $ 0 52087 nfields = split(line, field, "@") 52088 substed = 0 52089 len = length(field[1]) 52090 for (i = 2; i < nfields; i++) { 52091 key = field[i] 52092 keylen = length(key) 52093 if (S_is_set[key]) { 52094 value = S[key] 52095 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 52096 len += length(value) + length(field[++i]) 52097 substed = 1 52098 } else 52099 len += 1 + keylen 52100 } 52101 52102 print line 52103 } 52104 52105 _ACAWK 52106 _ACEOF 52107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52108 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 52109 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 52110 else 52111 cat 52112 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 52113 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 52114 _ACEOF 52115 52116 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 52117 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 52118 # trailing colons and then remove the whole line if VPATH becomes empty 52119 # (actually we leave an empty line to preserve line numbers). 52120 if test "x$srcdir" = x.; then 52121 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 52122 h 52123 s/// 52124 s/^/:/ 52125 s/[ ]*$/:/ 52126 s/:\$(srcdir):/:/g 52127 s/:\${srcdir}:/:/g 52128 s/:@srcdir@:/:/g 52129 s/^:*// 52130 s/:*$// 52131 x 52132 s/\(=[ ]*\).*/\1/ 52133 G 52134 s/\n// 52135 s/^[^=]*=[ ]*$// 52136 }' 52137 fi 52138 52139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52140 fi # test -n "$CONFIG_FILES" 52141 52142 52143 eval set X " :F $CONFIG_FILES " 52144 shift 52145 for ac_tag 52146 do 52147 case $ac_tag in 52148 :[FHLC]) ac_mode=$ac_tag; continue;; 52149 esac 52150 case $ac_mode$ac_tag in 52151 :[FHL]*:*);; 52152 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52153 :[FH]-) ac_tag=-:-;; 52154 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52155 esac 52156 ac_save_IFS=$IFS 52157 IFS=: 52158 set x $ac_tag 52159 IFS=$ac_save_IFS 52160 shift 52161 ac_file=$1 52162 shift 52163 52164 case $ac_mode in 52165 :L) ac_source=$1;; 52166 :[FH]) 52167 ac_file_inputs= 52168 for ac_f 52169 do 52170 case $ac_f in 52171 -) ac_f="$ac_tmp/stdin";; 52172 *) # Look for the file first in the build tree, then in the source tree 52173 # (if the path is not absolute). The absolute path cannot be DOS-style, 52174 # because $ac_f cannot contain `:'. 52175 test -f "$ac_f" || 52176 case $ac_f in 52177 [\\/$]*) false;; 52178 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52179 esac || 52180 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52181 esac 52182 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52183 as_fn_append ac_file_inputs " '$ac_f'" 52184 done 52185 52186 # Let's still pretend it is `configure' which instantiates (i.e., don't 52187 # use $as_me), people would be surprised to read: 52188 # /* config.h. Generated by config.status. */ 52189 configure_input='Generated from '` 52190 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52191 `' by configure.' 52192 if test x"$ac_file" != x-; then 52193 configure_input="$ac_file. $configure_input" 52194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52195 $as_echo "$as_me: creating $ac_file" >&6;} 52196 fi 52197 # Neutralize special characters interpreted by sed in replacement strings. 52198 case $configure_input in #( 52199 *\&* | *\|* | *\\* ) 52200 ac_sed_conf_input=`$as_echo "$configure_input" | 52201 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52202 *) ac_sed_conf_input=$configure_input;; 52203 esac 52204 52205 case $ac_tag in 52206 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52208 esac 52209 ;; 52210 esac 52211 52212 ac_dir=`$as_dirname -- "$ac_file" || 52213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52214 X"$ac_file" : 'X\(//\)[^/]' \| \ 52215 X"$ac_file" : 'X\(//\)$' \| \ 52216 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52217 $as_echo X"$ac_file" | 52218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52219 s//\1/ 52220 q 52221 } 52222 /^X\(\/\/\)[^/].*/{ 52223 s//\1/ 52224 q 52225 } 52226 /^X\(\/\/\)$/{ 52227 s//\1/ 52228 q 52229 } 52230 /^X\(\/\).*/{ 52231 s//\1/ 52232 q 52233 } 52234 s/.*/./; q'` 52235 as_dir="$ac_dir"; as_fn_mkdir_p 52236 ac_builddir=. 52237 52238 case "$ac_dir" in 52239 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52240 *) 52241 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52242 # A ".." for each directory in $ac_dir_suffix. 52243 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52244 case $ac_top_builddir_sub in 52245 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52246 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52247 esac ;; 52248 esac 52249 ac_abs_top_builddir=$ac_pwd 52250 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52251 # for backward compatibility: 52252 ac_top_builddir=$ac_top_build_prefix 52253 52254 case $srcdir in 52255 .) # We are building in place. 52256 ac_srcdir=. 52257 ac_top_srcdir=$ac_top_builddir_sub 52258 ac_abs_top_srcdir=$ac_pwd ;; 52259 [\\/]* | ?:[\\/]* ) # Absolute name. 52260 ac_srcdir=$srcdir$ac_dir_suffix; 52261 ac_top_srcdir=$srcdir 52262 ac_abs_top_srcdir=$srcdir ;; 52263 *) # Relative name. 52264 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52265 ac_top_srcdir=$ac_top_build_prefix$srcdir 52266 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52267 esac 52268 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52269 52270 52271 case $ac_mode in 52272 :F) 52273 # 52274 # CONFIG_FILE 52275 # 52276 52277 _ACEOF 52278 52279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52280 # If the template does not know about datarootdir, expand it. 52281 # FIXME: This hack should be removed a few years after 2.60. 52282 ac_datarootdir_hack=; ac_datarootdir_seen= 52283 ac_sed_dataroot=' 52284 /datarootdir/ { 52285 p 52286 q 52287 } 52288 /@datadir@/p 52289 /@docdir@/p 52290 /@infodir@/p 52291 /@localedir@/p 52292 /@mandir@/p' 52293 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 52294 *datarootdir*) ac_datarootdir_seen=yes;; 52295 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 52296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 52297 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 52298 _ACEOF 52299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52300 ac_datarootdir_hack=' 52301 s&@datadir@&$datadir&g 52302 s&@docdir@&$docdir&g 52303 s&@infodir@&$infodir&g 52304 s&@localedir@&$localedir&g 52305 s&@mandir@&$mandir&g 52306 s&\\\${datarootdir}&$datarootdir&g' ;; 52307 esac 52308 _ACEOF 52309 52310 # Neutralize VPATH when `$srcdir' = `.'. 52311 # Shell code in configure.ac might set extrasub. 52312 # FIXME: do we really want to maintain this feature? 52313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52314 ac_sed_extra="$ac_vpsub 52315 $extrasub 52316 _ACEOF 52317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52318 :t 52319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 52320 s|@configure_input@|$ac_sed_conf_input|;t t 52321 s&@top_builddir@&$ac_top_builddir_sub&;t t 52322 s&@top_build_prefix@&$ac_top_build_prefix&;t t 52323 s&@srcdir@&$ac_srcdir&;t t 52324 s&@abs_srcdir@&$ac_abs_srcdir&;t t 52325 s&@top_srcdir@&$ac_top_srcdir&;t t 52326 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 52327 s&@builddir@&$ac_builddir&;t t 52328 s&@abs_builddir@&$ac_abs_builddir&;t t 52329 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 52330 $ac_datarootdir_hack 52331 " 52332 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 52333 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52334 52335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 52336 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 52337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 52338 "$ac_tmp/out"`; test -z "$ac_out"; } && 52339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52340 which seems to be undefined. Please make sure it is defined" >&5 52341 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52342 which seems to be undefined. Please make sure it is defined" >&2;} 52343 52344 rm -f "$ac_tmp/stdin" 52345 case $ac_file in 52346 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 52347 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 52348 esac \ 52349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52350 ;; 52351 52352 52353 52354 esac 52355 52356 done # for ac_tag 52357 52358 52359 as_fn_exit 0 52360 _ACEOF 52361 ac_clean_files=$ac_clean_files_save 52362 52363 test $ac_write_fail = 0 || 52364 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 52365 52366 52367 # configure is writing to config.log, and then calls config.status. 52368 # config.status does its own redirection, appending to config.log. 52369 # Unfortunately, on DOS this fails, as config.log is still kept open 52370 # by configure, so config.status won't be able to write to it; its 52371 # output is simply discarded. So we exec the FD to /dev/null, 52372 # effectively closing config.log, so it can be properly (re)opened and 52373 # appended to by config.status. When coming back to configure, we 52374 # need to make the FD available again. 52375 if test "$no_create" != yes; then 52376 ac_cs_success=: 52377 ac_config_status_args= 52378 test "$silent" = yes && 52379 ac_config_status_args="$ac_config_status_args --quiet" 52380 exec 5>/dev/null 52381 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 52382 exec 5>>config.log 52383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 52384 # would make configure fail if this is the last instruction. 52385 $ac_cs_success || as_fn_exit 1 52386 fi 52387 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 52388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 52389 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 52390 fi 52391 52392 52393 # Try to move the config.log file to the output directory. 52394 if test -e ./config.log; then 52395 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 52396 fi 52397 52398 # Make the compare script executable 52399 $CHMOD +x $OUTPUT_ROOT/compare.sh 52400 52401 # Finally output some useful information to the user 52402 52403 # Finally output some useful information to the user 52404 52405 printf "\n" 52406 printf "====================================================\n" 52407 if test "x$no_create" != "xyes"; then 52408 if test "x$IS_RECONFIGURE" != "xyes"; then 52409 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 52410 else 52411 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 52412 fi 52413 else 52414 if test "x$IS_RECONFIGURE" != "xyes"; then 52415 printf "A configuration has been successfully checked but not created\n" 52416 else 52417 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 52418 fi 52419 fi 52420 if test "x$CONFIGURE_COMMAND_LINE" != x; then 52421 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 52422 else 52423 printf "using default settings.\n" 52424 fi 52425 52426 printf "\n" 52427 printf "Configuration summary:\n" 52428 printf "* Debug level: $DEBUG_LEVEL\n" 52429 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 52430 printf "* JDK variant: $JDK_VARIANT\n" 52431 printf "* JVM variants: $with_jvm_variants\n" 52432 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 52433 52434 printf "\n" 52435 printf "Tools summary:\n" 52436 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 52437 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 52438 fi 52439 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 52440 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 52441 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 52442 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 52443 52444 printf "\n" 52445 printf "Build performance summary:\n" 52446 printf "* Cores to use: $JOBS\n" 52447 printf "* Memory limit: $MEMORY_SIZE MB\n" 52448 if test "x$CCACHE_STATUS" != "x"; then 52449 printf "* ccache status: $CCACHE_STATUS\n" 52450 fi 52451 printf "\n" 52452 52453 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 52454 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 52455 printf "will result in longer build times.\n" 52456 printf "\n" 52457 fi 52458 52459 if test "x$FOUND_ALT_VARIABLES" != "x"; then 52460 printf "WARNING: You have old-style ALT_ environment variables set.\n" 52461 printf "These are not respected, and will be ignored. It is recommended\n" 52462 printf "that you clean your environment. The following variables are set:\n" 52463 printf "$FOUND_ALT_VARIABLES\n" 52464 printf "\n" 52465 fi 52466 52467 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 52468 printf "WARNING: Your build output directory is not on a local disk.\n" 52469 printf "This will severely degrade build performance!\n" 52470 printf "It is recommended that you create an output directory on a local disk,\n" 52471 printf "and run the configure script again from that directory.\n" 52472 printf "\n" 52473 fi 52474 52475 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 52476 printf "WARNING: The result of this configuration has overridden an older\n" 52477 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 52478 printf "proper build. Failure to do so might result in strange build problems.\n" 52479 printf "\n" 52480 fi 52481 52482 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 52483 printf "WARNING: The result of this configuration was not saved.\n" 52484 printf "You should run without '--no-create | -n' to create the configuration.\n" 52485 printf "\n" 52486 fi 52487 52488 52489 52490 if test -e "$OUTPUT_ROOT/config.log"; then 52491 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 52492 if test $? -eq 0; then 52493 printf "The following warnings were produced. Repeated here for convenience:\n" 52494 # We must quote sed expression (using []) to stop m4 from eating the []. 52495 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //' 52496 printf "\n" 52497 fi 52498 fi 52499 52500