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 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 MSVCR_DLL 644 LIBCXX 645 LLVM_LIBS 646 LLVM_LDFLAGS 647 LLVM_CFLAGS 648 LLVM_CONFIG 649 LIBFFI_LIBS 650 LIBFFI_CFLAGS 651 STATIC_CXX_SETTING 652 LIBDL 653 LIBM 654 LIBZIP_CAN_USE_MMAP 655 USE_EXTERNAL_LIBZ 656 USE_EXTERNAL_LIBPNG 657 PNG_LIBS 658 PNG_CFLAGS 659 USE_EXTERNAL_LIBGIF 660 USE_EXTERNAL_LIBJPEG 661 ALSA_LIBS 662 ALSA_CFLAGS 663 FREETYPE_BUNDLE_LIB_PATH 664 FREETYPE_LIBS 665 FREETYPE_CFLAGS 666 CUPS_CFLAGS 667 X_EXTRA_LIBS 668 X_LIBS 669 X_PRE_LIBS 670 X_CFLAGS 671 XMKMF 672 FIXPATH 673 ZIP_DEBUGINFO_FILES 674 ENABLE_DEBUG_SYMBOLS 675 CFLAGS_WARNINGS_ARE_ERRORS 676 COMPILER_SUPPORTS_TARGET_BITS_FLAG 677 ZERO_ARCHFLAG 678 LDFLAGS_CXX_JDK 679 LDFLAGS_JDKEXE_SUFFIX 680 LDFLAGS_JDKLIB_SUFFIX 681 LDFLAGS_JDKEXE 682 LDFLAGS_JDKLIB 683 CXXFLAGS_JDKEXE 684 CXXFLAGS_JDKLIB 685 CFLAGS_JDKEXE 686 CFLAGS_JDKLIB 687 MACOSX_VERSION_MIN 688 LEGACY_EXTRA_LDFLAGS 689 LEGACY_EXTRA_CXXFLAGS 690 LEGACY_EXTRA_CFLAGS 691 CXX_O_FLAG_NONE 692 CXX_O_FLAG_NORM 693 CXX_O_FLAG_HI 694 CXX_O_FLAG_HIGHEST 695 C_O_FLAG_NONE 696 C_O_FLAG_NORM 697 C_O_FLAG_HI 698 C_O_FLAG_HIGHEST 699 CXXFLAGS_DEBUG_SYMBOLS 700 CFLAGS_DEBUG_SYMBOLS 701 CXX_FLAG_DEPS 702 C_FLAG_DEPS 703 SET_SHARED_LIBRARY_MAPFILE 704 SET_SHARED_LIBRARY_NAME 705 SET_SHARED_LIBRARY_ORIGIN 706 SET_EXECUTABLE_ORIGIN 707 SHARED_LIBRARY_FLAGS 708 CXX_FLAG_REORDER 709 C_FLAG_REORDER 710 SYSROOT_LDFLAGS 711 SYSROOT_CFLAGS 712 RC_FLAGS 713 AR_OUT_OPTION 714 LD_OUT_OPTION 715 EXE_OUT_OPTION 716 CC_OUT_OPTION 717 POST_MCS_CMD 718 POST_STRIP_CMD 719 ARFLAGS 720 COMPILER_TARGET_BITS_FLAG 721 JT_HOME 722 JTREGEXE 723 USING_BROKEN_SUSE_LD 724 PACKAGE_PATH 725 LDEXECXX 726 LDEXE 727 USE_CLANG 728 HOTSPOT_LD 729 HOTSPOT_CXX 730 HOTSPOT_RC 731 HOTSPOT_MT 732 BUILD_LD 733 BUILD_CXX 734 BUILD_CC 735 ac_ct_OBJDUMP 736 OBJDUMP 737 ac_ct_OBJCOPY 738 OBJCOPY 739 ac_ct_NM 740 ac_ct_STRIP 741 MCS 742 GNM 743 NM 744 STRIP 745 DUMPBIN 746 RC 747 MT 748 LIPO 749 ac_ct_OBJC 750 OBJCFLAGS 751 OBJC 752 ac_ct_AR 753 AR 754 AS 755 LDCXX 756 LD 757 CXXCPP 758 CPP 759 ac_ct_CXX 760 CXXFLAGS 761 CXX 762 ac_ct_PROPER_COMPILER_CXX 763 PROPER_COMPILER_CXX 764 TOOLCHAIN_PATH_CXX 765 POTENTIAL_CXX 766 OBJEXT 767 EXEEXT 768 ac_ct_CC 769 CPPFLAGS 770 LDFLAGS 771 CFLAGS 772 CC 773 ac_ct_PROPER_COMPILER_CC 774 PROPER_COMPILER_CC 775 TOOLCHAIN_PATH_CC 776 POTENTIAL_CC 777 VS_PATH 778 VS_LIB 779 VS_INCLUDE 780 CYGWIN_LINK 781 EXE_SUFFIX 782 OBJ_SUFFIX 783 STATIC_LIBRARY 784 SHARED_LIBRARY 785 STATIC_LIBRARY_SUFFIX 786 SHARED_LIBRARY_SUFFIX 787 LIBRARY_PREFIX 788 TOOLCHAIN_TYPE 789 BUILD_HOTSPOT 790 HOTSPOT_DIST 791 BUILD_OUTPUT 792 OVERRIDE_SRC_ROOT 793 ADD_SRC_ROOT 794 JDK_TOPDIR 795 NASHORN_TOPDIR 796 HOTSPOT_TOPDIR 797 JAXWS_TOPDIR 798 JAXP_TOPDIR 799 CORBA_TOPDIR 800 LANGTOOLS_TOPDIR 801 JAVA_FLAGS_SMALL 802 JAVA_FLAGS_BIG 803 JAVA_FLAGS 804 JAVAC_FLAGS 805 BOOT_JDK_SOURCETARGET 806 JARSIGNER 807 NATIVE2ASCII 808 JAR 809 JAVAH 810 JAVAC 811 JAVA 812 BOOT_JDK 813 BOOT_TOOLSJAR 814 BOOT_RTJAR 815 JAVA_CHECK 816 JAVAC_CHECK 817 COOKED_BUILD_NUMBER 818 JDK_VERSION 819 COPYRIGHT_YEAR 820 MACOSX_BUNDLE_ID_BASE 821 MACOSX_BUNDLE_NAME_BASE 822 COMPANY_NAME 823 JDK_RC_PLATFORM_NAME 824 PRODUCT_SUFFIX 825 PRODUCT_NAME 826 LAUNCHER_NAME 827 MILESTONE 828 JDK_BUILD_NUMBER 829 JDK_UPDATE_VERSION 830 JDK_MICRO_VERSION 831 JDK_MINOR_VERSION 832 JDK_MAJOR_VERSION 833 USER_RELEASE_SUFFIX 834 COMPRESS_JARS 835 RMICONNECTOR_IIOP 836 UNLIMITED_CRYPTO 837 CACERTS_FILE 838 TEST_IN_BUILD 839 BUILD_HEADLESS 840 SUPPORT_HEADFUL 841 SUPPORT_HEADLESS 842 BDEPS_FTP 843 BDEPS_UNZIP 844 OS_VERSION_MICRO 845 OS_VERSION_MINOR 846 OS_VERSION_MAJOR 847 PKG_CONFIG 848 CODESIGN 849 XATTR 850 DSYMUTIL 851 IS_GNU_TIME 852 TIME 853 STAT 854 HG 855 READELF 856 OTOOL 857 LDD 858 ZIP 859 UNZIP 860 FIND_DELETE 861 MAKE 862 CHECK_TOOLSDIR_MAKE 863 CHECK_TOOLSDIR_GMAKE 864 CHECK_MAKE 865 CHECK_GMAKE 866 PKGHANDLER 867 OUTPUT_ROOT 868 CONF_NAME 869 SPEC 870 BUILD_VARIANT_RELEASE 871 DEBUG_CLASSFILES 872 FASTDEBUG 873 VARIANT 874 DEBUG_LEVEL 875 MACOSX_UNIVERSAL 876 INCLUDE_SA 877 JVM_VARIANT_CORE 878 JVM_VARIANT_ZEROSHARK 879 JVM_VARIANT_ZERO 880 JVM_VARIANT_KERNEL 881 JVM_VARIANT_MINIMAL1 882 JVM_VARIANT_CLIENT 883 JVM_VARIANT_SERVER 884 JVM_VARIANTS 885 JVM_INTERPRETER 886 JDK_VARIANT 887 SET_OPENJDK 888 BUILD_LOG_WRAPPER 889 BUILD_LOG_PREVIOUS 890 BUILD_LOG 891 TOPDIR 892 PATH_SEP 893 ZERO_ARCHDEF 894 DEFINE_CROSS_COMPILE_ARCH 895 LP64 896 OPENJDK_TARGET_OS_EXPORT_DIR 897 OPENJDK_TARGET_OS_API_DIR 898 OPENJDK_TARGET_CPU_JLI_CFLAGS 899 OPENJDK_TARGET_CPU_OSARCH 900 OPENJDK_TARGET_CPU_ISADIR 901 OPENJDK_TARGET_CPU_LIBDIR 902 OPENJDK_TARGET_CPU_LEGACY_LIB 903 OPENJDK_TARGET_CPU_LEGACY 904 REQUIRED_OS_VERSION 905 REQUIRED_OS_NAME 906 COMPILE_TYPE 907 OPENJDK_TARGET_CPU_ENDIAN 908 OPENJDK_TARGET_CPU_BITS 909 OPENJDK_TARGET_CPU_ARCH 910 OPENJDK_TARGET_CPU 911 OPENJDK_TARGET_OS_API 912 OPENJDK_TARGET_OS 913 OPENJDK_BUILD_CPU_ENDIAN 914 OPENJDK_BUILD_CPU_BITS 915 OPENJDK_BUILD_CPU_ARCH 916 OPENJDK_BUILD_CPU 917 OPENJDK_BUILD_OS_API 918 OPENJDK_BUILD_OS 919 OPENJDK_BUILD_AUTOCONF_NAME 920 OPENJDK_TARGET_AUTOCONF_NAME 921 target_os 922 target_vendor 923 target_cpu 924 target 925 host_os 926 host_vendor 927 host_cpu 928 host 929 build_os 930 build_vendor 931 build_cpu 932 build 933 SETFILE 934 DF 935 READLINK 936 CYGPATH 937 SED 938 FGREP 939 EGREP 940 GREP 941 AWK 942 XARGS 943 WHICH 944 WC 945 UNIQ 946 UNAME 947 TR 948 TOUCH 949 TEE 950 TAR 951 TAIL 952 SORT 953 SH 954 RM 955 PRINTF 956 NAWK 957 MV 958 MKTEMP 959 MKDIR 960 LS 961 LN 962 HEAD 963 FIND 964 FILE 965 EXPR 966 ECHO 967 DIRNAME 968 DIFF 969 DATE 970 CUT 971 CPIO 972 CP 973 COMM 974 CMP 975 CHMOD 976 CAT 977 BASH 978 BASENAME 979 DATE_WHEN_CONFIGURED 980 CONFIGURE_COMMAND_LINE 981 target_alias 982 host_alias 983 build_alias 984 LIBS 985 ECHO_T 986 ECHO_N 987 ECHO_C 988 DEFS 989 mandir 990 localedir 991 libdir 992 psdir 993 pdfdir 994 dvidir 995 htmldir 996 infodir 997 docdir 998 oldincludedir 999 includedir 1000 localstatedir 1001 sharedstatedir 1002 sysconfdir 1003 datadir 1004 datarootdir 1005 libexecdir 1006 sbindir 1007 bindir 1008 program_transform_name 1009 prefix 1010 exec_prefix 1011 PACKAGE_URL 1012 PACKAGE_BUGREPORT 1013 PACKAGE_STRING 1014 PACKAGE_VERSION 1015 PACKAGE_TARNAME 1016 PACKAGE_NAME 1017 PATH_SEPARATOR 1018 SHELL' 1019 ac_subst_files='' 1020 ac_user_opts=' 1021 enable_option_checking 1022 with_target_bits 1023 with_devkit 1024 with_sys_root 1025 with_sysroot 1026 with_tools_dir 1027 with_toolchain_path 1028 with_extra_path 1029 enable_openjdk_only 1030 with_custom_make_dir 1031 with_jdk_variant 1032 with_jvm_interpreter 1033 with_jvm_variants 1034 enable_debug 1035 with_debug_level 1036 with_conf_name 1037 with_builddeps_conf 1038 with_builddeps_server 1039 with_builddeps_dir 1040 with_builddeps_group 1041 enable_headful 1042 enable_hotspot_test_in_build 1043 with_cacerts_file 1044 enable_unlimited_crypto 1045 enable_rmiconnector_iiop 1046 with_milestone 1047 with_update_version 1048 with_user_release_suffix 1049 with_build_number 1050 with_boot_jdk 1051 with_boot_jdk_jvmargs 1052 with_add_source_root 1053 with_override_source_root 1054 with_adds_and_overrides 1055 with_override_langtools 1056 with_override_corba 1057 with_override_jaxp 1058 with_override_jaxws 1059 with_override_hotspot 1060 with_override_nashorn 1061 with_override_jdk 1062 with_import_hotspot 1063 with_toolchain_type 1064 with_jtreg 1065 with_extra_cflags 1066 with_extra_cxxflags 1067 with_extra_ldflags 1068 enable_debug_symbols 1069 enable_zip_debug_info 1070 enable_macosx_runtime_support 1071 with_x 1072 with_cups 1073 with_cups_include 1074 with_freetype 1075 with_freetype_include 1076 with_freetype_lib 1077 enable_freetype_bundling 1078 with_alsa 1079 with_alsa_include 1080 with_alsa_lib 1081 with_giflib 1082 with_libpng 1083 with_zlib 1084 with_stdc__lib 1085 with_msvcr_dll 1086 with_dxsdk 1087 with_dxsdk_lib 1088 with_dxsdk_include 1089 with_num_cores 1090 with_memory_size 1091 with_jobs 1092 with_sjavac_server_java 1093 enable_sjavac 1094 enable_precompiled_headers 1095 enable_ccache 1096 with_ccache_dir 1097 ' 1098 ac_precious_vars='build_alias 1099 host_alias 1100 target_alias 1101 BASENAME 1102 BASH 1103 CAT 1104 CHMOD 1105 CMP 1106 COMM 1107 CP 1108 CPIO 1109 CUT 1110 DATE 1111 DIFF 1112 DIRNAME 1113 ECHO 1114 EXPR 1115 FILE 1116 FIND 1117 HEAD 1118 LN 1119 LS 1120 MKDIR 1121 MKTEMP 1122 MV 1123 NAWK 1124 PRINTF 1125 RM 1126 SH 1127 SORT 1128 TAIL 1129 TAR 1130 TEE 1131 TOUCH 1132 TR 1133 UNAME 1134 UNIQ 1135 WC 1136 WHICH 1137 XARGS 1138 AWK 1139 GREP 1140 EGREP 1141 FGREP 1142 SED 1143 CYGPATH 1144 READLINK 1145 DF 1146 SETFILE 1147 UNZIP 1148 ZIP 1149 LDD 1150 OTOOL 1151 READELF 1152 HG 1153 STAT 1154 TIME 1155 DSYMUTIL 1156 XATTR 1157 CODESIGN 1158 PKG_CONFIG 1159 JAVA 1160 JAVAC 1161 JAVAH 1162 JAR 1163 NATIVE2ASCII 1164 JARSIGNER 1165 CC 1166 CFLAGS 1167 LDFLAGS 1168 LIBS 1169 CPPFLAGS 1170 CXX 1171 CXXFLAGS 1172 CCC 1173 CPP 1174 CXXCPP 1175 AS 1176 AR 1177 OBJC 1178 OBJCFLAGS 1179 LIPO 1180 STRIP 1181 NM 1182 GNM 1183 MCS 1184 OBJCOPY 1185 OBJDUMP 1186 BUILD_CC 1187 BUILD_CXX 1188 BUILD_LD 1189 JTREGEXE 1190 XMKMF 1191 FREETYPE_CFLAGS 1192 FREETYPE_LIBS 1193 ALSA_CFLAGS 1194 ALSA_LIBS 1195 PNG_CFLAGS 1196 PNG_LIBS 1197 LIBFFI_CFLAGS 1198 LIBFFI_LIBS 1199 CCACHE' 1200 1201 1202 # Initialize some variables set by options. 1203 ac_init_help= 1204 ac_init_version=false 1205 ac_unrecognized_opts= 1206 ac_unrecognized_sep= 1207 # The variables have the same names as the options, with 1208 # dashes changed to underlines. 1209 cache_file=/dev/null 1210 exec_prefix=NONE 1211 no_create= 1212 no_recursion= 1213 prefix=NONE 1214 program_prefix=NONE 1215 program_suffix=NONE 1216 program_transform_name=s,x,x, 1217 silent= 1218 site= 1219 srcdir= 1220 verbose= 1221 x_includes=NONE 1222 x_libraries=NONE 1223 1224 # Installation directory options. 1225 # These are left unexpanded so users can "make install exec_prefix=/foo" 1226 # and all the variables that are supposed to be based on exec_prefix 1227 # by default will actually change. 1228 # Use braces instead of parens because sh, perl, etc. also accept them. 1229 # (The list follows the same order as the GNU Coding Standards.) 1230 bindir='${exec_prefix}/bin' 1231 sbindir='${exec_prefix}/sbin' 1232 libexecdir='${exec_prefix}/libexec' 1233 datarootdir='${prefix}/share' 1234 datadir='${datarootdir}' 1235 sysconfdir='${prefix}/etc' 1236 sharedstatedir='${prefix}/com' 1237 localstatedir='${prefix}/var' 1238 includedir='${prefix}/include' 1239 oldincludedir='/usr/include' 1240 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1241 infodir='${datarootdir}/info' 1242 htmldir='${docdir}' 1243 dvidir='${docdir}' 1244 pdfdir='${docdir}' 1245 psdir='${docdir}' 1246 libdir='${exec_prefix}/lib' 1247 localedir='${datarootdir}/locale' 1248 mandir='${datarootdir}/man' 1249 1250 ac_prev= 1251 ac_dashdash= 1252 for ac_option 1253 do 1254 # If the previous option needs an argument, assign it. 1255 if test -n "$ac_prev"; then 1256 eval $ac_prev=\$ac_option 1257 ac_prev= 1258 continue 1259 fi 1260 1261 case $ac_option in 1262 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1263 *=) ac_optarg= ;; 1264 *) ac_optarg=yes ;; 1265 esac 1266 1267 # Accept the important Cygnus configure options, so we can diagnose typos. 1268 1269 case $ac_dashdash$ac_option in 1270 --) 1271 ac_dashdash=yes ;; 1272 1273 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1274 ac_prev=bindir ;; 1275 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1276 bindir=$ac_optarg ;; 1277 1278 -build | --build | --buil | --bui | --bu) 1279 ac_prev=build_alias ;; 1280 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1281 build_alias=$ac_optarg ;; 1282 1283 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1284 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1285 ac_prev=cache_file ;; 1286 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1287 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1288 cache_file=$ac_optarg ;; 1289 1290 --config-cache | -C) 1291 cache_file=config.cache ;; 1292 1293 -datadir | --datadir | --datadi | --datad) 1294 ac_prev=datadir ;; 1295 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1296 datadir=$ac_optarg ;; 1297 1298 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1299 | --dataroo | --dataro | --datar) 1300 ac_prev=datarootdir ;; 1301 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1302 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1303 datarootdir=$ac_optarg ;; 1304 1305 -disable-* | --disable-*) 1306 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1307 # Reject names that are not valid shell variable names. 1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1309 as_fn_error $? "invalid feature name: $ac_useropt" 1310 ac_useropt_orig=$ac_useropt 1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1312 case $ac_user_opts in 1313 *" 1314 "enable_$ac_useropt" 1315 "*) ;; 1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1317 ac_unrecognized_sep=', ';; 1318 esac 1319 eval enable_$ac_useropt=no ;; 1320 1321 -docdir | --docdir | --docdi | --doc | --do) 1322 ac_prev=docdir ;; 1323 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1324 docdir=$ac_optarg ;; 1325 1326 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1327 ac_prev=dvidir ;; 1328 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1329 dvidir=$ac_optarg ;; 1330 1331 -enable-* | --enable-*) 1332 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1333 # Reject names that are not valid shell variable names. 1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1335 as_fn_error $? "invalid feature name: $ac_useropt" 1336 ac_useropt_orig=$ac_useropt 1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1338 case $ac_user_opts in 1339 *" 1340 "enable_$ac_useropt" 1341 "*) ;; 1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1343 ac_unrecognized_sep=', ';; 1344 esac 1345 eval enable_$ac_useropt=\$ac_optarg ;; 1346 1347 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1348 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1349 | --exec | --exe | --ex) 1350 ac_prev=exec_prefix ;; 1351 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1352 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1353 | --exec=* | --exe=* | --ex=*) 1354 exec_prefix=$ac_optarg ;; 1355 1356 -gas | --gas | --ga | --g) 1357 # Obsolete; use --with-gas. 1358 with_gas=yes ;; 1359 1360 -help | --help | --hel | --he | -h) 1361 ac_init_help=long ;; 1362 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1363 ac_init_help=recursive ;; 1364 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1365 ac_init_help=short ;; 1366 1367 -host | --host | --hos | --ho) 1368 ac_prev=host_alias ;; 1369 -host=* | --host=* | --hos=* | --ho=*) 1370 host_alias=$ac_optarg ;; 1371 1372 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1373 ac_prev=htmldir ;; 1374 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1375 | --ht=*) 1376 htmldir=$ac_optarg ;; 1377 1378 -includedir | --includedir | --includedi | --included | --include \ 1379 | --includ | --inclu | --incl | --inc) 1380 ac_prev=includedir ;; 1381 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1382 | --includ=* | --inclu=* | --incl=* | --inc=*) 1383 includedir=$ac_optarg ;; 1384 1385 -infodir | --infodir | --infodi | --infod | --info | --inf) 1386 ac_prev=infodir ;; 1387 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1388 infodir=$ac_optarg ;; 1389 1390 -libdir | --libdir | --libdi | --libd) 1391 ac_prev=libdir ;; 1392 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1393 libdir=$ac_optarg ;; 1394 1395 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1396 | --libexe | --libex | --libe) 1397 ac_prev=libexecdir ;; 1398 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1399 | --libexe=* | --libex=* | --libe=*) 1400 libexecdir=$ac_optarg ;; 1401 1402 -localedir | --localedir | --localedi | --localed | --locale) 1403 ac_prev=localedir ;; 1404 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1405 localedir=$ac_optarg ;; 1406 1407 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1408 | --localstate | --localstat | --localsta | --localst | --locals) 1409 ac_prev=localstatedir ;; 1410 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1411 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1412 localstatedir=$ac_optarg ;; 1413 1414 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1415 ac_prev=mandir ;; 1416 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1417 mandir=$ac_optarg ;; 1418 1419 -nfp | --nfp | --nf) 1420 # Obsolete; use --without-fp. 1421 with_fp=no ;; 1422 1423 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1424 | --no-cr | --no-c | -n) 1425 no_create=yes ;; 1426 1427 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1428 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1429 no_recursion=yes ;; 1430 1431 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1432 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1433 | --oldin | --oldi | --old | --ol | --o) 1434 ac_prev=oldincludedir ;; 1435 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1436 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1437 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1438 oldincludedir=$ac_optarg ;; 1439 1440 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1441 ac_prev=prefix ;; 1442 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1443 prefix=$ac_optarg ;; 1444 1445 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1446 | --program-pre | --program-pr | --program-p) 1447 ac_prev=program_prefix ;; 1448 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1449 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1450 program_prefix=$ac_optarg ;; 1451 1452 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1453 | --program-suf | --program-su | --program-s) 1454 ac_prev=program_suffix ;; 1455 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1456 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1457 program_suffix=$ac_optarg ;; 1458 1459 -program-transform-name | --program-transform-name \ 1460 | --program-transform-nam | --program-transform-na \ 1461 | --program-transform-n | --program-transform- \ 1462 | --program-transform | --program-transfor \ 1463 | --program-transfo | --program-transf \ 1464 | --program-trans | --program-tran \ 1465 | --progr-tra | --program-tr | --program-t) 1466 ac_prev=program_transform_name ;; 1467 -program-transform-name=* | --program-transform-name=* \ 1468 | --program-transform-nam=* | --program-transform-na=* \ 1469 | --program-transform-n=* | --program-transform-=* \ 1470 | --program-transform=* | --program-transfor=* \ 1471 | --program-transfo=* | --program-transf=* \ 1472 | --program-trans=* | --program-tran=* \ 1473 | --progr-tra=* | --program-tr=* | --program-t=*) 1474 program_transform_name=$ac_optarg ;; 1475 1476 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1477 ac_prev=pdfdir ;; 1478 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1479 pdfdir=$ac_optarg ;; 1480 1481 -psdir | --psdir | --psdi | --psd | --ps) 1482 ac_prev=psdir ;; 1483 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1484 psdir=$ac_optarg ;; 1485 1486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1487 | -silent | --silent | --silen | --sile | --sil) 1488 silent=yes ;; 1489 1490 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1491 ac_prev=sbindir ;; 1492 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1493 | --sbi=* | --sb=*) 1494 sbindir=$ac_optarg ;; 1495 1496 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1497 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1498 | --sharedst | --shareds | --shared | --share | --shar \ 1499 | --sha | --sh) 1500 ac_prev=sharedstatedir ;; 1501 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1502 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1503 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1504 | --sha=* | --sh=*) 1505 sharedstatedir=$ac_optarg ;; 1506 1507 -site | --site | --sit) 1508 ac_prev=site ;; 1509 -site=* | --site=* | --sit=*) 1510 site=$ac_optarg ;; 1511 1512 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1513 ac_prev=srcdir ;; 1514 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1515 srcdir=$ac_optarg ;; 1516 1517 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1518 | --syscon | --sysco | --sysc | --sys | --sy) 1519 ac_prev=sysconfdir ;; 1520 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1521 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1522 sysconfdir=$ac_optarg ;; 1523 1524 -target | --target | --targe | --targ | --tar | --ta | --t) 1525 ac_prev=target_alias ;; 1526 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1527 target_alias=$ac_optarg ;; 1528 1529 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1530 verbose=yes ;; 1531 1532 -version | --version | --versio | --versi | --vers | -V) 1533 ac_init_version=: ;; 1534 1535 -with-* | --with-*) 1536 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1537 # Reject names that are not valid shell variable names. 1538 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1539 as_fn_error $? "invalid package name: $ac_useropt" 1540 ac_useropt_orig=$ac_useropt 1541 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1542 case $ac_user_opts in 1543 *" 1544 "with_$ac_useropt" 1545 "*) ;; 1546 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1547 ac_unrecognized_sep=', ';; 1548 esac 1549 eval with_$ac_useropt=\$ac_optarg ;; 1550 1551 -without-* | --without-*) 1552 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1553 # Reject names that are not valid shell variable names. 1554 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1555 as_fn_error $? "invalid package name: $ac_useropt" 1556 ac_useropt_orig=$ac_useropt 1557 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1558 case $ac_user_opts in 1559 *" 1560 "with_$ac_useropt" 1561 "*) ;; 1562 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1563 ac_unrecognized_sep=', ';; 1564 esac 1565 eval with_$ac_useropt=no ;; 1566 1567 --x) 1568 # Obsolete; use --with-x. 1569 with_x=yes ;; 1570 1571 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1572 | --x-incl | --x-inc | --x-in | --x-i) 1573 ac_prev=x_includes ;; 1574 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1575 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1576 x_includes=$ac_optarg ;; 1577 1578 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1579 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1580 ac_prev=x_libraries ;; 1581 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1582 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1583 x_libraries=$ac_optarg ;; 1584 1585 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1586 Try \`$0 --help' for more information" 1587 ;; 1588 1589 *=*) 1590 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1591 # Reject names that are not valid shell variable names. 1592 case $ac_envvar in #( 1593 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1594 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1595 esac 1596 eval $ac_envvar=\$ac_optarg 1597 export $ac_envvar ;; 1598 1599 *) 1600 # FIXME: should be removed in autoconf 3.0. 1601 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1602 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1603 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1604 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1605 ;; 1606 1607 esac 1608 done 1609 1610 if test -n "$ac_prev"; then 1611 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1612 as_fn_error $? "missing argument to $ac_option" 1613 fi 1614 1615 if test -n "$ac_unrecognized_opts"; then 1616 case $enable_option_checking in 1617 no) ;; 1618 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1619 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1620 esac 1621 fi 1622 1623 # Check all directory arguments for consistency. 1624 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1625 datadir sysconfdir sharedstatedir localstatedir includedir \ 1626 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1627 libdir localedir mandir 1628 do 1629 eval ac_val=\$$ac_var 1630 # Remove trailing slashes. 1631 case $ac_val in 1632 */ ) 1633 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1634 eval $ac_var=\$ac_val;; 1635 esac 1636 # Be sure to have absolute directory names. 1637 case $ac_val in 1638 [\\/$]* | ?:[\\/]* ) continue;; 1639 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1640 esac 1641 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1642 done 1643 1644 # There might be people who depend on the old broken behavior: `$host' 1645 # used to hold the argument of --host etc. 1646 # FIXME: To remove some day. 1647 build=$build_alias 1648 host=$host_alias 1649 target=$target_alias 1650 1651 # FIXME: To remove some day. 1652 if test "x$host_alias" != x; then 1653 if test "x$build_alias" = x; then 1654 cross_compiling=maybe 1655 elif test "x$build_alias" != "x$host_alias"; then 1656 cross_compiling=yes 1657 fi 1658 fi 1659 1660 ac_tool_prefix= 1661 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1662 1663 test "$silent" = yes && exec 6>/dev/null 1664 1665 1666 ac_pwd=`pwd` && test -n "$ac_pwd" && 1667 ac_ls_di=`ls -di .` && 1668 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1669 as_fn_error $? "working directory cannot be determined" 1670 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1671 as_fn_error $? "pwd does not report name of working directory" 1672 1673 1674 # Find the source files, if location was not specified. 1675 if test -z "$srcdir"; then 1676 ac_srcdir_defaulted=yes 1677 # Try the directory containing this script, then the parent directory. 1678 ac_confdir=`$as_dirname -- "$as_myself" || 1679 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1680 X"$as_myself" : 'X\(//\)[^/]' \| \ 1681 X"$as_myself" : 'X\(//\)$' \| \ 1682 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1683 $as_echo X"$as_myself" | 1684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1685 s//\1/ 1686 q 1687 } 1688 /^X\(\/\/\)[^/].*/{ 1689 s//\1/ 1690 q 1691 } 1692 /^X\(\/\/\)$/{ 1693 s//\1/ 1694 q 1695 } 1696 /^X\(\/\).*/{ 1697 s//\1/ 1698 q 1699 } 1700 s/.*/./; q'` 1701 srcdir=$ac_confdir 1702 if test ! -r "$srcdir/$ac_unique_file"; then 1703 srcdir=.. 1704 fi 1705 else 1706 ac_srcdir_defaulted=no 1707 fi 1708 if test ! -r "$srcdir/$ac_unique_file"; then 1709 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1710 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1711 fi 1712 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1713 ac_abs_confdir=`( 1714 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1715 pwd)` 1716 # When building in place, set srcdir=. 1717 if test "$ac_abs_confdir" = "$ac_pwd"; then 1718 srcdir=. 1719 fi 1720 # Remove unnecessary trailing slashes from srcdir. 1721 # Double slashes in file names in object file debugging info 1722 # mess up M-x gdb in Emacs. 1723 case $srcdir in 1724 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1725 esac 1726 for ac_var in $ac_precious_vars; do 1727 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1728 eval ac_env_${ac_var}_value=\$${ac_var} 1729 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1730 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1731 done 1732 1733 # 1734 # Report the --help message. 1735 # 1736 if test "$ac_init_help" = "long"; then 1737 # Omit some internal or obsolete options to make the list less imposing. 1738 # This message is too long to be a string in the A/UX 3.1 sh. 1739 cat <<_ACEOF 1740 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1741 1742 Usage: $0 [OPTION]... [VAR=VALUE]... 1743 1744 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1745 VAR=VALUE. See below for descriptions of some of the useful variables. 1746 1747 Defaults for the options are specified in brackets. 1748 1749 Configuration: 1750 -h, --help display this help and exit 1751 --help=short display options specific to this package 1752 --help=recursive display the short help of all the included packages 1753 -V, --version display version information and exit 1754 -q, --quiet, --silent do not print \`checking ...' messages 1755 --cache-file=FILE cache test results in FILE [disabled] 1756 -C, --config-cache alias for \`--cache-file=config.cache' 1757 -n, --no-create do not create output files 1758 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1759 1760 Installation directories: 1761 --prefix=PREFIX install architecture-independent files in PREFIX 1762 [$ac_default_prefix] 1763 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1764 [PREFIX] 1765 1766 By default, \`make install' will install all the files in 1767 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1768 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1769 for instance \`--prefix=\$HOME'. 1770 1771 For better control, use the options below. 1772 1773 Fine tuning of the installation directories: 1774 --bindir=DIR user executables [EPREFIX/bin] 1775 --sbindir=DIR system admin executables [EPREFIX/sbin] 1776 --libexecdir=DIR program executables [EPREFIX/libexec] 1777 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1778 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1779 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1780 --libdir=DIR object code libraries [EPREFIX/lib] 1781 --includedir=DIR C header files [PREFIX/include] 1782 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1783 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1784 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1785 --infodir=DIR info documentation [DATAROOTDIR/info] 1786 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1787 --mandir=DIR man documentation [DATAROOTDIR/man] 1788 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1789 --htmldir=DIR html documentation [DOCDIR] 1790 --dvidir=DIR dvi documentation [DOCDIR] 1791 --pdfdir=DIR pdf documentation [DOCDIR] 1792 --psdir=DIR ps documentation [DOCDIR] 1793 _ACEOF 1794 1795 cat <<\_ACEOF 1796 1797 X features: 1798 --x-includes=DIR X include files are in DIR 1799 --x-libraries=DIR X library files are in DIR 1800 1801 System types: 1802 --build=BUILD configure for building on BUILD [guessed] 1803 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1804 --target=TARGET configure for building compilers for TARGET [HOST] 1805 _ACEOF 1806 fi 1807 1808 if test -n "$ac_init_help"; then 1809 case $ac_init_help in 1810 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1811 esac 1812 cat <<\_ACEOF 1813 1814 Optional Features: 1815 --disable-option-checking ignore unrecognized --enable/--with options 1816 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1817 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1818 --enable-openjdk-only suppress building custom source even if present 1819 [disabled] 1820 --enable-debug set the debug level to fastdebug (shorthand for 1821 --with-debug-level=fastdebug) [disabled] 1822 --disable-headful disable building headful support (graphical UI 1823 support) [enabled] 1824 --enable-hotspot-test-in-build 1825 run the Queens test after Hotspot build [disabled] 1826 --enable-unlimited-crypto 1827 Enable unlimited crypto policy [disabled] 1828 --enable-rmiconnector-iiop 1829 enable the JMX RMIConnector iiop transport 1830 [disabled] 1831 --disable-debug-symbols disable generation of debug symbols [enabled] 1832 --disable-zip-debug-info 1833 disable zipping of debug-info files [enabled] 1834 --enable-macosx-runtime-support 1835 Deprecated. Option is kept for backwards 1836 compatibility and is ignored 1837 --disable-freetype-bundling 1838 disable bundling of the freetype library with the 1839 build result [enabled on Windows or when using 1840 --with-freetype, disabled otherwise] 1841 --enable-sjavac use sjavac to do fast incremental compiles 1842 [disabled] 1843 --disable-precompiled-headers 1844 disable using precompiled headers when compiling C++ 1845 [enabled] 1846 --enable-ccache enable using ccache to speed up recompilations 1847 [disabled] 1848 1849 Optional Packages: 1850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1852 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1853 support it), e.g. --with-target-bits=32 [guessed] 1854 --with-devkit use this directory as base for tools-dir and 1855 sys-root (for cross-compiling) 1856 --with-sys-root alias for --with-sysroot for backwards compatability 1857 --with-sysroot use this directory as sysroot) 1858 --with-tools-dir alias for --with-toolchain-path for backwards 1859 compatibility 1860 --with-toolchain-path prepend these directories when searching for 1861 toolchain binaries (compilers etc) 1862 --with-extra-path prepend these directories to the default path 1863 --with-custom-make-dir Deprecated. Option is kept for backwards 1864 compatibility and is ignored 1865 --with-jdk-variant JDK variant to build (normal) [normal] 1866 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1867 --with-jvm-variants JVM variants (separated by commas) to build (server, 1868 client, minimal1, kernel, zero, zeroshark, core) 1869 [server] 1870 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1871 optimized (HotSpot build only)) [release] 1872 --with-conf-name use this as the name of the configuration [generated 1873 from important configuration options] 1874 --with-builddeps-conf use this configuration file for the builddeps 1875 --with-builddeps-server download and use build dependencies from this server 1876 url 1877 --with-builddeps-dir store downloaded build dependencies here 1878 [/localhome/builddeps] 1879 --with-builddeps-group chgrp the downloaded build dependencies to this 1880 group 1881 --with-cacerts-file specify alternative cacerts file 1882 --with-milestone Set milestone value for build [internal] 1883 --with-update-version Set update version value for build [b00] 1884 --with-user-release-suffix 1885 Add a custom string to the version string if build 1886 number is not set.[username_builddateb00] 1887 --with-build-number Set build number value for build [b00] 1888 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1889 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1890 invocations of boot JDK, overriding the default 1891 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1892 -enableassertions" 1893 --with-add-source-root for each and every source directory, look in this 1894 additional source root for the same directory; if it 1895 exists and have files in it, include it in the build 1896 --with-override-source-root 1897 for each and every source directory, look in this 1898 override source root for the same directory; if it 1899 exists, use that directory instead and ignore the 1900 directory in the original source root 1901 --with-adds-and-overrides 1902 use the subdirs 'adds' and 'overrides' in the 1903 specified directory as add-source-root and 1904 override-source-root 1905 --with-override-langtools 1906 use this langtools dir for the build 1907 --with-override-corba use this corba dir for the build 1908 --with-override-jaxp use this jaxp dir for the build 1909 --with-override-jaxws use this jaxws dir for the build 1910 --with-override-hotspot use this hotspot dir for the build 1911 --with-override-nashorn use this nashorn dir for the build 1912 --with-override-jdk use this jdk dir for the build 1913 --with-import-hotspot import hotspot binaries from this jdk image or 1914 hotspot build dist dir instead of building from 1915 source 1916 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1917 to show possible values [platform dependent] 1918 --with-jtreg Regression Test Harness [probed] 1919 --with-extra-cflags extra flags to be used when compiling jdk c-files 1920 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1921 --with-extra-ldflags extra flags to be used when linking jdk 1922 --with-x use the X Window System 1923 --with-cups specify prefix directory for the cups package 1924 (expecting the headers under PATH/include) 1925 --with-cups-include specify directory for the cups include files 1926 --with-freetype specify prefix directory for the freetype package 1927 (expecting the libraries under PATH/lib and the 1928 headers under PATH/include) 1929 --with-freetype-include specify directory for the freetype include files 1930 --with-freetype-lib specify directory for the freetype library 1931 --with-alsa specify prefix directory for the alsa package 1932 (expecting the libraries under PATH/lib and the 1933 headers under PATH/include) 1934 --with-alsa-include specify directory for the alsa include files 1935 --with-alsa-lib specify directory for the alsa library 1936 --with-giflib use giflib from build system or OpenJDK source 1937 (system, bundled) [bundled] 1938 --with-libpng use libpng from build system or OpenJDK source 1939 (system, bundled) [bundled] 1940 --with-zlib use zlib from build system or OpenJDK source 1941 (system, bundled) [bundled] 1942 --with-stdc++lib=<static>,<dynamic>,<default> 1943 force linking of the C++ runtime on Linux to either 1944 static or dynamic, default is static with dynamic as 1945 fallback 1946 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1947 only) [probed] 1948 --with-dxsdk Deprecated. Option is kept for backwards 1949 compatibility and is ignored 1950 --with-dxsdk-lib Deprecated. Option is kept for backwards 1951 compatibility and is ignored 1952 --with-dxsdk-include Deprecated. Option is kept for backwards 1953 compatibility and is ignored 1954 --with-num-cores number of cores in the build system, e.g. 1955 --with-num-cores=8 [probed] 1956 --with-memory-size memory (in MB) available in the build system, e.g. 1957 --with-memory-size=1024 [probed] 1958 --with-jobs number of parallel jobs to let make run [calculated 1959 based on cores and memory] 1960 --with-sjavac-server-java 1961 use this java binary for running the sjavac 1962 background server [Boot JDK java] 1963 --with-ccache-dir where to store ccache files [~/.ccache] 1964 1965 Some influential environment variables: 1966 BASENAME Override default value for BASENAME 1967 BASH Override default value for BASH 1968 CAT Override default value for CAT 1969 CHMOD Override default value for CHMOD 1970 CMP Override default value for CMP 1971 COMM Override default value for COMM 1972 CP Override default value for CP 1973 CPIO Override default value for CPIO 1974 CUT Override default value for CUT 1975 DATE Override default value for DATE 1976 DIFF Override default value for DIFF 1977 DIRNAME Override default value for DIRNAME 1978 ECHO Override default value for ECHO 1979 EXPR Override default value for EXPR 1980 FILE Override default value for FILE 1981 FIND Override default value for FIND 1982 HEAD Override default value for HEAD 1983 LN Override default value for LN 1984 LS Override default value for LS 1985 MKDIR Override default value for MKDIR 1986 MKTEMP Override default value for MKTEMP 1987 MV Override default value for MV 1988 NAWK Override default value for NAWK 1989 PRINTF Override default value for PRINTF 1990 RM Override default value for RM 1991 SH Override default value for SH 1992 SORT Override default value for SORT 1993 TAIL Override default value for TAIL 1994 TAR Override default value for TAR 1995 TEE Override default value for TEE 1996 TOUCH Override default value for TOUCH 1997 TR Override default value for TR 1998 UNAME Override default value for UNAME 1999 UNIQ Override default value for UNIQ 2000 WC Override default value for WC 2001 WHICH Override default value for WHICH 2002 XARGS Override default value for XARGS 2003 AWK Override default value for AWK 2004 GREP Override default value for GREP 2005 EGREP Override default value for EGREP 2006 FGREP Override default value for FGREP 2007 SED Override default value for SED 2008 CYGPATH Override default value for CYGPATH 2009 READLINK Override default value for READLINK 2010 DF Override default value for DF 2011 SETFILE Override default value for SETFILE 2012 UNZIP Override default value for UNZIP 2013 ZIP Override default value for ZIP 2014 LDD Override default value for LDD 2015 OTOOL Override default value for OTOOL 2016 READELF Override default value for READELF 2017 HG Override default value for HG 2018 STAT Override default value for STAT 2019 TIME Override default value for TIME 2020 DSYMUTIL Override default value for DSYMUTIL 2021 XATTR Override default value for XATTR 2022 CODESIGN Override default value for CODESIGN 2023 PKG_CONFIG path to pkg-config utility 2024 JAVA Override default value for JAVA 2025 JAVAC Override default value for JAVAC 2026 JAVAH Override default value for JAVAH 2027 JAR Override default value for JAR 2028 NATIVE2ASCII 2029 Override default value for NATIVE2ASCII 2030 JARSIGNER Override default value for JARSIGNER 2031 CC C compiler command 2032 CFLAGS C compiler flags 2033 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2034 nonstandard directory <lib dir> 2035 LIBS libraries to pass to the linker, e.g. -l<library> 2036 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2037 you have headers in a nonstandard directory <include dir> 2038 CXX C++ compiler command 2039 CXXFLAGS C++ compiler flags 2040 CPP C preprocessor 2041 CXXCPP C++ preprocessor 2042 AS Override default value for AS 2043 AR Override default value for AR 2044 OBJC Objective C compiler command 2045 OBJCFLAGS Objective C compiler flags 2046 LIPO Override default value for LIPO 2047 STRIP Override default value for STRIP 2048 NM Override default value for NM 2049 GNM Override default value for GNM 2050 MCS Override default value for MCS 2051 OBJCOPY Override default value for OBJCOPY 2052 OBJDUMP Override default value for OBJDUMP 2053 BUILD_CC Override default value for BUILD_CC 2054 BUILD_CXX Override default value for BUILD_CXX 2055 BUILD_LD Override default value for BUILD_LD 2056 JTREGEXE Override default value for JTREGEXE 2057 XMKMF Path to xmkmf, Makefile generator for X Window System 2058 FREETYPE_CFLAGS 2059 C compiler flags for FREETYPE, overriding pkg-config 2060 FREETYPE_LIBS 2061 linker flags for FREETYPE, overriding pkg-config 2062 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2063 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2064 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2065 PNG_LIBS linker flags for PNG, overriding pkg-config 2066 LIBFFI_CFLAGS 2067 C compiler flags for LIBFFI, overriding pkg-config 2068 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2069 CCACHE Override default value for CCACHE 2070 2071 Use these variables to override the choices made by `configure' or to help 2072 it to find libraries and programs with nonstandard names/locations. 2073 2074 Report bugs to <build-dev@openjdk.java.net>. 2075 OpenJDK home page: <http://openjdk.java.net>. 2076 _ACEOF 2077 ac_status=$? 2078 fi 2079 2080 if test "$ac_init_help" = "recursive"; then 2081 # If there are subdirs, report their specific --help. 2082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2083 test -d "$ac_dir" || 2084 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2085 continue 2086 ac_builddir=. 2087 2088 case "$ac_dir" in 2089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2090 *) 2091 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2092 # A ".." for each directory in $ac_dir_suffix. 2093 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2094 case $ac_top_builddir_sub in 2095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2097 esac ;; 2098 esac 2099 ac_abs_top_builddir=$ac_pwd 2100 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2101 # for backward compatibility: 2102 ac_top_builddir=$ac_top_build_prefix 2103 2104 case $srcdir in 2105 .) # We are building in place. 2106 ac_srcdir=. 2107 ac_top_srcdir=$ac_top_builddir_sub 2108 ac_abs_top_srcdir=$ac_pwd ;; 2109 [\\/]* | ?:[\\/]* ) # Absolute name. 2110 ac_srcdir=$srcdir$ac_dir_suffix; 2111 ac_top_srcdir=$srcdir 2112 ac_abs_top_srcdir=$srcdir ;; 2113 *) # Relative name. 2114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2115 ac_top_srcdir=$ac_top_build_prefix$srcdir 2116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2117 esac 2118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2119 2120 cd "$ac_dir" || { ac_status=$?; continue; } 2121 # Check for guested configure. 2122 if test -f "$ac_srcdir/configure.gnu"; then 2123 echo && 2124 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2125 elif test -f "$ac_srcdir/configure"; then 2126 echo && 2127 $SHELL "$ac_srcdir/configure" --help=recursive 2128 else 2129 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2130 fi || ac_status=$? 2131 cd "$ac_pwd" || { ac_status=$?; break; } 2132 done 2133 fi 2134 2135 test -n "$ac_init_help" && exit $ac_status 2136 if $ac_init_version; then 2137 cat <<\_ACEOF 2138 OpenJDK configure jdk9 2139 generated by GNU Autoconf 2.69 2140 2141 Copyright (C) 2012 Free Software Foundation, Inc. 2142 This configure script is free software; the Free Software Foundation 2143 gives unlimited permission to copy, distribute and modify it. 2144 _ACEOF 2145 exit 2146 fi 2147 2148 ## ------------------------ ## 2149 ## Autoconf initialization. ## 2150 ## ------------------------ ## 2151 2152 # ac_fn_c_try_compile LINENO 2153 # -------------------------- 2154 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2155 ac_fn_c_try_compile () 2156 { 2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2158 rm -f conftest.$ac_objext 2159 if { { ac_try="$ac_compile" 2160 case "(($ac_try" in 2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2162 *) ac_try_echo=$ac_try;; 2163 esac 2164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2165 $as_echo "$ac_try_echo"; } >&5 2166 (eval "$ac_compile") 2>conftest.err 2167 ac_status=$? 2168 if test -s conftest.err; then 2169 grep -v '^ *+' conftest.err >conftest.er1 2170 cat conftest.er1 >&5 2171 mv -f conftest.er1 conftest.err 2172 fi 2173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2174 test $ac_status = 0; } && { 2175 test -z "$ac_c_werror_flag" || 2176 test ! -s conftest.err 2177 } && test -s conftest.$ac_objext; then : 2178 ac_retval=0 2179 else 2180 $as_echo "$as_me: failed program was:" >&5 2181 sed 's/^/| /' conftest.$ac_ext >&5 2182 2183 ac_retval=1 2184 fi 2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2186 as_fn_set_status $ac_retval 2187 2188 } # ac_fn_c_try_compile 2189 2190 # ac_fn_cxx_try_compile LINENO 2191 # ---------------------------- 2192 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2193 ac_fn_cxx_try_compile () 2194 { 2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2196 rm -f conftest.$ac_objext 2197 if { { ac_try="$ac_compile" 2198 case "(($ac_try" in 2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2200 *) ac_try_echo=$ac_try;; 2201 esac 2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2203 $as_echo "$ac_try_echo"; } >&5 2204 (eval "$ac_compile") 2>conftest.err 2205 ac_status=$? 2206 if test -s conftest.err; then 2207 grep -v '^ *+' conftest.err >conftest.er1 2208 cat conftest.er1 >&5 2209 mv -f conftest.er1 conftest.err 2210 fi 2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2212 test $ac_status = 0; } && { 2213 test -z "$ac_cxx_werror_flag" || 2214 test ! -s conftest.err 2215 } && test -s conftest.$ac_objext; then : 2216 ac_retval=0 2217 else 2218 $as_echo "$as_me: failed program was:" >&5 2219 sed 's/^/| /' conftest.$ac_ext >&5 2220 2221 ac_retval=1 2222 fi 2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2224 as_fn_set_status $ac_retval 2225 2226 } # ac_fn_cxx_try_compile 2227 2228 # ac_fn_c_try_cpp LINENO 2229 # ---------------------- 2230 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2231 ac_fn_c_try_cpp () 2232 { 2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2234 if { { ac_try="$ac_cpp conftest.$ac_ext" 2235 case "(($ac_try" in 2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2237 *) ac_try_echo=$ac_try;; 2238 esac 2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2240 $as_echo "$ac_try_echo"; } >&5 2241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2242 ac_status=$? 2243 if test -s conftest.err; then 2244 grep -v '^ *+' conftest.err >conftest.er1 2245 cat conftest.er1 >&5 2246 mv -f conftest.er1 conftest.err 2247 fi 2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2249 test $ac_status = 0; } > conftest.i && { 2250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2251 test ! -s conftest.err 2252 }; then : 2253 ac_retval=0 2254 else 2255 $as_echo "$as_me: failed program was:" >&5 2256 sed 's/^/| /' conftest.$ac_ext >&5 2257 2258 ac_retval=1 2259 fi 2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2261 as_fn_set_status $ac_retval 2262 2263 } # ac_fn_c_try_cpp 2264 2265 # ac_fn_cxx_try_cpp LINENO 2266 # ------------------------ 2267 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2268 ac_fn_cxx_try_cpp () 2269 { 2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2271 if { { ac_try="$ac_cpp conftest.$ac_ext" 2272 case "(($ac_try" in 2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2274 *) ac_try_echo=$ac_try;; 2275 esac 2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2277 $as_echo "$ac_try_echo"; } >&5 2278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2279 ac_status=$? 2280 if test -s conftest.err; then 2281 grep -v '^ *+' conftest.err >conftest.er1 2282 cat conftest.er1 >&5 2283 mv -f conftest.er1 conftest.err 2284 fi 2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2286 test $ac_status = 0; } > conftest.i && { 2287 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2288 test ! -s conftest.err 2289 }; then : 2290 ac_retval=0 2291 else 2292 $as_echo "$as_me: failed program was:" >&5 2293 sed 's/^/| /' conftest.$ac_ext >&5 2294 2295 ac_retval=1 2296 fi 2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2298 as_fn_set_status $ac_retval 2299 2300 } # ac_fn_cxx_try_cpp 2301 2302 # ac_fn_objc_try_compile LINENO 2303 # ----------------------------- 2304 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2305 ac_fn_objc_try_compile () 2306 { 2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2308 rm -f conftest.$ac_objext 2309 if { { ac_try="$ac_compile" 2310 case "(($ac_try" in 2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2312 *) ac_try_echo=$ac_try;; 2313 esac 2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2315 $as_echo "$ac_try_echo"; } >&5 2316 (eval "$ac_compile") 2>conftest.err 2317 ac_status=$? 2318 if test -s conftest.err; then 2319 grep -v '^ *+' conftest.err >conftest.er1 2320 cat conftest.er1 >&5 2321 mv -f conftest.er1 conftest.err 2322 fi 2323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2324 test $ac_status = 0; } && { 2325 test -z "$ac_objc_werror_flag" || 2326 test ! -s conftest.err 2327 } && test -s conftest.$ac_objext; then : 2328 ac_retval=0 2329 else 2330 $as_echo "$as_me: failed program was:" >&5 2331 sed 's/^/| /' conftest.$ac_ext >&5 2332 2333 ac_retval=1 2334 fi 2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2336 as_fn_set_status $ac_retval 2337 2338 } # ac_fn_objc_try_compile 2339 2340 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2341 # --------------------------------------------------------- 2342 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2343 # the include files in INCLUDES and setting the cache variable VAR 2344 # accordingly. 2345 ac_fn_cxx_check_header_mongrel () 2346 { 2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2348 if eval \${$3+:} false; then : 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2350 $as_echo_n "checking for $2... " >&6; } 2351 if eval \${$3+:} false; then : 2352 $as_echo_n "(cached) " >&6 2353 fi 2354 eval ac_res=\$$3 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2356 $as_echo "$ac_res" >&6; } 2357 else 2358 # Is the header compilable? 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2360 $as_echo_n "checking $2 usability... " >&6; } 2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2362 /* end confdefs.h. */ 2363 $4 2364 #include <$2> 2365 _ACEOF 2366 if ac_fn_cxx_try_compile "$LINENO"; then : 2367 ac_header_compiler=yes 2368 else 2369 ac_header_compiler=no 2370 fi 2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2373 $as_echo "$ac_header_compiler" >&6; } 2374 2375 # Is the header present? 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2377 $as_echo_n "checking $2 presence... " >&6; } 2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2379 /* end confdefs.h. */ 2380 #include <$2> 2381 _ACEOF 2382 if ac_fn_cxx_try_cpp "$LINENO"; then : 2383 ac_header_preproc=yes 2384 else 2385 ac_header_preproc=no 2386 fi 2387 rm -f conftest.err conftest.i conftest.$ac_ext 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2389 $as_echo "$ac_header_preproc" >&6; } 2390 2391 # So? What about this header? 2392 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2393 yes:no: ) 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2395 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2397 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2398 ;; 2399 no:yes:* ) 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2401 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2403 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2405 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2407 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2410 ( $as_echo "## ----------------------------------------- ## 2411 ## Report this to build-dev@openjdk.java.net ## 2412 ## ----------------------------------------- ##" 2413 ) | sed "s/^/$as_me: WARNING: /" >&2 2414 ;; 2415 esac 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2417 $as_echo_n "checking for $2... " >&6; } 2418 if eval \${$3+:} false; then : 2419 $as_echo_n "(cached) " >&6 2420 else 2421 eval "$3=\$ac_header_compiler" 2422 fi 2423 eval ac_res=\$$3 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2425 $as_echo "$ac_res" >&6; } 2426 fi 2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2428 2429 } # ac_fn_cxx_check_header_mongrel 2430 2431 # ac_fn_cxx_try_run LINENO 2432 # ------------------------ 2433 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2434 # that executables *can* be run. 2435 ac_fn_cxx_try_run () 2436 { 2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2438 if { { ac_try="$ac_link" 2439 case "(($ac_try" in 2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2441 *) ac_try_echo=$ac_try;; 2442 esac 2443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2444 $as_echo "$ac_try_echo"; } >&5 2445 (eval "$ac_link") 2>&5 2446 ac_status=$? 2447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2448 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2449 { { case "(($ac_try" in 2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2451 *) ac_try_echo=$ac_try;; 2452 esac 2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2454 $as_echo "$ac_try_echo"; } >&5 2455 (eval "$ac_try") 2>&5 2456 ac_status=$? 2457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2458 test $ac_status = 0; }; }; then : 2459 ac_retval=0 2460 else 2461 $as_echo "$as_me: program exited with status $ac_status" >&5 2462 $as_echo "$as_me: failed program was:" >&5 2463 sed 's/^/| /' conftest.$ac_ext >&5 2464 2465 ac_retval=$ac_status 2466 fi 2467 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2468 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2469 as_fn_set_status $ac_retval 2470 2471 } # ac_fn_cxx_try_run 2472 2473 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2474 # --------------------------------------------------------- 2475 # Tests whether HEADER exists and can be compiled using the include files in 2476 # INCLUDES, setting the cache variable VAR accordingly. 2477 ac_fn_cxx_check_header_compile () 2478 { 2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2481 $as_echo_n "checking for $2... " >&6; } 2482 if eval \${$3+:} false; then : 2483 $as_echo_n "(cached) " >&6 2484 else 2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2486 /* end confdefs.h. */ 2487 $4 2488 #include <$2> 2489 _ACEOF 2490 if ac_fn_cxx_try_compile "$LINENO"; then : 2491 eval "$3=yes" 2492 else 2493 eval "$3=no" 2494 fi 2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2496 fi 2497 eval ac_res=\$$3 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2499 $as_echo "$ac_res" >&6; } 2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2501 2502 } # ac_fn_cxx_check_header_compile 2503 2504 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2505 # ---------------------------------------------- 2506 # Tries to find the compile-time value of EXPR in a program that includes 2507 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2508 # computed 2509 ac_fn_cxx_compute_int () 2510 { 2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2512 if test "$cross_compiling" = yes; then 2513 # Depending upon the size, compute the lo and hi bounds. 2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2515 /* end confdefs.h. */ 2516 $4 2517 int 2518 main () 2519 { 2520 static int test_array [1 - 2 * !(($2) >= 0)]; 2521 test_array [0] = 0; 2522 return test_array [0]; 2523 2524 ; 2525 return 0; 2526 } 2527 _ACEOF 2528 if ac_fn_cxx_try_compile "$LINENO"; then : 2529 ac_lo=0 ac_mid=0 2530 while :; do 2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2532 /* end confdefs.h. */ 2533 $4 2534 int 2535 main () 2536 { 2537 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2538 test_array [0] = 0; 2539 return test_array [0]; 2540 2541 ; 2542 return 0; 2543 } 2544 _ACEOF 2545 if ac_fn_cxx_try_compile "$LINENO"; then : 2546 ac_hi=$ac_mid; break 2547 else 2548 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2549 if test $ac_lo -le $ac_mid; then 2550 ac_lo= ac_hi= 2551 break 2552 fi 2553 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2554 fi 2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2556 done 2557 else 2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2559 /* end confdefs.h. */ 2560 $4 2561 int 2562 main () 2563 { 2564 static int test_array [1 - 2 * !(($2) < 0)]; 2565 test_array [0] = 0; 2566 return test_array [0]; 2567 2568 ; 2569 return 0; 2570 } 2571 _ACEOF 2572 if ac_fn_cxx_try_compile "$LINENO"; then : 2573 ac_hi=-1 ac_mid=-1 2574 while :; do 2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2576 /* end confdefs.h. */ 2577 $4 2578 int 2579 main () 2580 { 2581 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2582 test_array [0] = 0; 2583 return test_array [0]; 2584 2585 ; 2586 return 0; 2587 } 2588 _ACEOF 2589 if ac_fn_cxx_try_compile "$LINENO"; then : 2590 ac_lo=$ac_mid; break 2591 else 2592 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2593 if test $ac_mid -le $ac_hi; then 2594 ac_lo= ac_hi= 2595 break 2596 fi 2597 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2598 fi 2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2600 done 2601 else 2602 ac_lo= ac_hi= 2603 fi 2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2605 fi 2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2607 # Binary search between lo and hi bounds. 2608 while test "x$ac_lo" != "x$ac_hi"; do 2609 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2611 /* end confdefs.h. */ 2612 $4 2613 int 2614 main () 2615 { 2616 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2617 test_array [0] = 0; 2618 return test_array [0]; 2619 2620 ; 2621 return 0; 2622 } 2623 _ACEOF 2624 if ac_fn_cxx_try_compile "$LINENO"; then : 2625 ac_hi=$ac_mid 2626 else 2627 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2628 fi 2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2630 done 2631 case $ac_lo in #(( 2632 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2633 '') ac_retval=1 ;; 2634 esac 2635 else 2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2637 /* end confdefs.h. */ 2638 $4 2639 static long int longval () { return $2; } 2640 static unsigned long int ulongval () { return $2; } 2641 #include <stdio.h> 2642 #include <stdlib.h> 2643 int 2644 main () 2645 { 2646 2647 FILE *f = fopen ("conftest.val", "w"); 2648 if (! f) 2649 return 1; 2650 if (($2) < 0) 2651 { 2652 long int i = longval (); 2653 if (i != ($2)) 2654 return 1; 2655 fprintf (f, "%ld", i); 2656 } 2657 else 2658 { 2659 unsigned long int i = ulongval (); 2660 if (i != ($2)) 2661 return 1; 2662 fprintf (f, "%lu", i); 2663 } 2664 /* Do not output a trailing newline, as this causes \r\n confusion 2665 on some platforms. */ 2666 return ferror (f) || fclose (f) != 0; 2667 2668 ; 2669 return 0; 2670 } 2671 _ACEOF 2672 if ac_fn_cxx_try_run "$LINENO"; then : 2673 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2674 else 2675 ac_retval=1 2676 fi 2677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2678 conftest.$ac_objext conftest.beam conftest.$ac_ext 2679 rm -f conftest.val 2680 2681 fi 2682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2683 as_fn_set_status $ac_retval 2684 2685 } # ac_fn_cxx_compute_int 2686 2687 # ac_fn_cxx_try_link LINENO 2688 # ------------------------- 2689 # Try to link conftest.$ac_ext, and return whether this succeeded. 2690 ac_fn_cxx_try_link () 2691 { 2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2693 rm -f conftest.$ac_objext conftest$ac_exeext 2694 if { { ac_try="$ac_link" 2695 case "(($ac_try" in 2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2697 *) ac_try_echo=$ac_try;; 2698 esac 2699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2700 $as_echo "$ac_try_echo"; } >&5 2701 (eval "$ac_link") 2>conftest.err 2702 ac_status=$? 2703 if test -s conftest.err; then 2704 grep -v '^ *+' conftest.err >conftest.er1 2705 cat conftest.er1 >&5 2706 mv -f conftest.er1 conftest.err 2707 fi 2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2709 test $ac_status = 0; } && { 2710 test -z "$ac_cxx_werror_flag" || 2711 test ! -s conftest.err 2712 } && test -s conftest$ac_exeext && { 2713 test "$cross_compiling" = yes || 2714 test -x conftest$ac_exeext 2715 }; then : 2716 ac_retval=0 2717 else 2718 $as_echo "$as_me: failed program was:" >&5 2719 sed 's/^/| /' conftest.$ac_ext >&5 2720 2721 ac_retval=1 2722 fi 2723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2725 # interfere with the next link command; also delete a directory that is 2726 # left behind by Apple's compiler. We do this before executing the actions. 2727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2729 as_fn_set_status $ac_retval 2730 2731 } # ac_fn_cxx_try_link 2732 2733 # ac_fn_cxx_check_func LINENO FUNC VAR 2734 # ------------------------------------ 2735 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2736 ac_fn_cxx_check_func () 2737 { 2738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2740 $as_echo_n "checking for $2... " >&6; } 2741 if eval \${$3+:} false; then : 2742 $as_echo_n "(cached) " >&6 2743 else 2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2745 /* end confdefs.h. */ 2746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2747 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2748 #define $2 innocuous_$2 2749 2750 /* System header to define __stub macros and hopefully few prototypes, 2751 which can conflict with char $2 (); below. 2752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2753 <limits.h> exists even on freestanding compilers. */ 2754 2755 #ifdef __STDC__ 2756 # include <limits.h> 2757 #else 2758 # include <assert.h> 2759 #endif 2760 2761 #undef $2 2762 2763 /* Override any GCC internal prototype to avoid an error. 2764 Use char because int might match the return type of a GCC 2765 builtin and then its argument prototype would still apply. */ 2766 #ifdef __cplusplus 2767 extern "C" 2768 #endif 2769 char $2 (); 2770 /* The GNU C library defines this for functions which it implements 2771 to always fail with ENOSYS. Some functions are actually named 2772 something starting with __ and the normal name is an alias. */ 2773 #if defined __stub_$2 || defined __stub___$2 2774 choke me 2775 #endif 2776 2777 int 2778 main () 2779 { 2780 return $2 (); 2781 ; 2782 return 0; 2783 } 2784 _ACEOF 2785 if ac_fn_cxx_try_link "$LINENO"; then : 2786 eval "$3=yes" 2787 else 2788 eval "$3=no" 2789 fi 2790 rm -f core conftest.err conftest.$ac_objext \ 2791 conftest$ac_exeext conftest.$ac_ext 2792 fi 2793 eval ac_res=\$$3 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2795 $as_echo "$ac_res" >&6; } 2796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2797 2798 } # ac_fn_cxx_check_func 2799 2800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2801 # ------------------------------------------------------- 2802 # Tests whether HEADER exists and can be compiled using the include files in 2803 # INCLUDES, setting the cache variable VAR accordingly. 2804 ac_fn_c_check_header_compile () 2805 { 2806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2808 $as_echo_n "checking for $2... " >&6; } 2809 if eval \${$3+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811 else 2812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2813 /* end confdefs.h. */ 2814 $4 2815 #include <$2> 2816 _ACEOF 2817 if ac_fn_c_try_compile "$LINENO"; then : 2818 eval "$3=yes" 2819 else 2820 eval "$3=no" 2821 fi 2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2823 fi 2824 eval ac_res=\$$3 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2826 $as_echo "$ac_res" >&6; } 2827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2828 2829 } # ac_fn_c_check_header_compile 2830 cat >config.log <<_ACEOF 2831 This file contains any messages produced by compilers while 2832 running configure, to aid debugging if configure makes a mistake. 2833 2834 It was created by OpenJDK $as_me jdk9, which was 2835 generated by GNU Autoconf 2.69. Invocation command line was 2836 2837 $ $0 $@ 2838 2839 _ACEOF 2840 exec 5>>config.log 2841 { 2842 cat <<_ASUNAME 2843 ## --------- ## 2844 ## Platform. ## 2845 ## --------- ## 2846 2847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2848 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2849 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2850 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2851 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2852 2853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2854 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2855 2856 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2857 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2859 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2860 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2861 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2862 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2863 2864 _ASUNAME 2865 2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867 for as_dir in $PATH 2868 do 2869 IFS=$as_save_IFS 2870 test -z "$as_dir" && as_dir=. 2871 $as_echo "PATH: $as_dir" 2872 done 2873 IFS=$as_save_IFS 2874 2875 } >&5 2876 2877 cat >&5 <<_ACEOF 2878 2879 2880 ## ----------- ## 2881 ## Core tests. ## 2882 ## ----------- ## 2883 2884 _ACEOF 2885 2886 2887 # Keep a trace of the command line. 2888 # Strip out --no-create and --no-recursion so they do not pile up. 2889 # Strip out --silent because we don't want to record it for future runs. 2890 # Also quote any args containing shell meta-characters. 2891 # Make two passes to allow for proper duplicate-argument suppression. 2892 ac_configure_args= 2893 ac_configure_args0= 2894 ac_configure_args1= 2895 ac_must_keep_next=false 2896 for ac_pass in 1 2 2897 do 2898 for ac_arg 2899 do 2900 case $ac_arg in 2901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2903 | -silent | --silent | --silen | --sile | --sil) 2904 continue ;; 2905 *\'*) 2906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2907 esac 2908 case $ac_pass in 2909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2910 2) 2911 as_fn_append ac_configure_args1 " '$ac_arg'" 2912 if test $ac_must_keep_next = true; then 2913 ac_must_keep_next=false # Got value, back to normal. 2914 else 2915 case $ac_arg in 2916 *=* | --config-cache | -C | -disable-* | --disable-* \ 2917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2919 | -with-* | --with-* | -without-* | --without-* | --x) 2920 case "$ac_configure_args0 " in 2921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2922 esac 2923 ;; 2924 -* ) ac_must_keep_next=true ;; 2925 esac 2926 fi 2927 as_fn_append ac_configure_args " '$ac_arg'" 2928 ;; 2929 esac 2930 done 2931 done 2932 { ac_configure_args0=; unset ac_configure_args0;} 2933 { ac_configure_args1=; unset ac_configure_args1;} 2934 2935 # When interrupted or exit'd, cleanup temporary files, and complete 2936 # config.log. We remove comments because anyway the quotes in there 2937 # would cause problems or look ugly. 2938 # WARNING: Use '\'' to represent an apostrophe within the trap. 2939 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2940 trap 'exit_status=$? 2941 # Save into config.log some information that might help in debugging. 2942 { 2943 echo 2944 2945 $as_echo "## ---------------- ## 2946 ## Cache variables. ## 2947 ## ---------------- ##" 2948 echo 2949 # The following way of writing the cache mishandles newlines in values, 2950 ( 2951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2952 eval ac_val=\$$ac_var 2953 case $ac_val in #( 2954 *${as_nl}*) 2955 case $ac_var in #( 2956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2958 esac 2959 case $ac_var in #( 2960 _ | IFS | as_nl) ;; #( 2961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2962 *) { eval $ac_var=; unset $ac_var;} ;; 2963 esac ;; 2964 esac 2965 done 2966 (set) 2>&1 | 2967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2968 *${as_nl}ac_space=\ *) 2969 sed -n \ 2970 "s/'\''/'\''\\\\'\'''\''/g; 2971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2972 ;; #( 2973 *) 2974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2975 ;; 2976 esac | 2977 sort 2978 ) 2979 echo 2980 2981 $as_echo "## ----------------- ## 2982 ## Output variables. ## 2983 ## ----------------- ##" 2984 echo 2985 for ac_var in $ac_subst_vars 2986 do 2987 eval ac_val=\$$ac_var 2988 case $ac_val in 2989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2990 esac 2991 $as_echo "$ac_var='\''$ac_val'\''" 2992 done | sort 2993 echo 2994 2995 if test -n "$ac_subst_files"; then 2996 $as_echo "## ------------------- ## 2997 ## File substitutions. ## 2998 ## ------------------- ##" 2999 echo 3000 for ac_var in $ac_subst_files 3001 do 3002 eval ac_val=\$$ac_var 3003 case $ac_val in 3004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3005 esac 3006 $as_echo "$ac_var='\''$ac_val'\''" 3007 done | sort 3008 echo 3009 fi 3010 3011 if test -s confdefs.h; then 3012 $as_echo "## ----------- ## 3013 ## confdefs.h. ## 3014 ## ----------- ##" 3015 echo 3016 cat confdefs.h 3017 echo 3018 fi 3019 test "$ac_signal" != 0 && 3020 $as_echo "$as_me: caught signal $ac_signal" 3021 $as_echo "$as_me: exit $exit_status" 3022 } >&5 3023 rm -f core *.core core.conftest.* && 3024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3025 exit $exit_status 3026 ' 0 3027 for ac_signal in 1 2 13 15; do 3028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3029 done 3030 ac_signal=0 3031 3032 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3033 rm -f -r conftest* confdefs.h 3034 3035 $as_echo "/* confdefs.h */" > confdefs.h 3036 3037 # Predefined preprocessor variables. 3038 3039 cat >>confdefs.h <<_ACEOF 3040 #define PACKAGE_NAME "$PACKAGE_NAME" 3041 _ACEOF 3042 3043 cat >>confdefs.h <<_ACEOF 3044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3045 _ACEOF 3046 3047 cat >>confdefs.h <<_ACEOF 3048 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3049 _ACEOF 3050 3051 cat >>confdefs.h <<_ACEOF 3052 #define PACKAGE_STRING "$PACKAGE_STRING" 3053 _ACEOF 3054 3055 cat >>confdefs.h <<_ACEOF 3056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3057 _ACEOF 3058 3059 cat >>confdefs.h <<_ACEOF 3060 #define PACKAGE_URL "$PACKAGE_URL" 3061 _ACEOF 3062 3063 3064 # Let the site file select an alternate cache file if it wants to. 3065 # Prefer an explicitly selected file to automatically selected ones. 3066 ac_site_file1=NONE 3067 ac_site_file2=NONE 3068 if test -n "$CONFIG_SITE"; then 3069 # We do not want a PATH search for config.site. 3070 case $CONFIG_SITE in #(( 3071 -*) ac_site_file1=./$CONFIG_SITE;; 3072 */*) ac_site_file1=$CONFIG_SITE;; 3073 *) ac_site_file1=./$CONFIG_SITE;; 3074 esac 3075 elif test "x$prefix" != xNONE; then 3076 ac_site_file1=$prefix/share/config.site 3077 ac_site_file2=$prefix/etc/config.site 3078 else 3079 ac_site_file1=$ac_default_prefix/share/config.site 3080 ac_site_file2=$ac_default_prefix/etc/config.site 3081 fi 3082 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3083 do 3084 test "x$ac_site_file" = xNONE && continue 3085 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3087 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3088 sed 's/^/| /' "$ac_site_file" >&5 3089 . "$ac_site_file" \ 3090 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3092 as_fn_error $? "failed to load site script $ac_site_file 3093 See \`config.log' for more details" "$LINENO" 5; } 3094 fi 3095 done 3096 3097 if test -r "$cache_file"; then 3098 # Some versions of bash will fail to source /dev/null (special files 3099 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3100 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3102 $as_echo "$as_me: loading cache $cache_file" >&6;} 3103 case $cache_file in 3104 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3105 *) . "./$cache_file";; 3106 esac 3107 fi 3108 else 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3110 $as_echo "$as_me: creating cache $cache_file" >&6;} 3111 >$cache_file 3112 fi 3113 3114 # Check that the precious variables saved in the cache have kept the same 3115 # value. 3116 ac_cache_corrupted=false 3117 for ac_var in $ac_precious_vars; do 3118 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3119 eval ac_new_set=\$ac_env_${ac_var}_set 3120 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3121 eval ac_new_val=\$ac_env_${ac_var}_value 3122 case $ac_old_set,$ac_new_set in 3123 set,) 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3125 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3126 ac_cache_corrupted=: ;; 3127 ,set) 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3129 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3130 ac_cache_corrupted=: ;; 3131 ,);; 3132 *) 3133 if test "x$ac_old_val" != "x$ac_new_val"; then 3134 # differences in whitespace do not lead to failure. 3135 ac_old_val_w=`echo x $ac_old_val` 3136 ac_new_val_w=`echo x $ac_new_val` 3137 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3139 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3140 ac_cache_corrupted=: 3141 else 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3143 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3144 eval $ac_var=\$ac_old_val 3145 fi 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3147 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3149 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3150 fi;; 3151 esac 3152 # Pass precious variables to config.status. 3153 if test "$ac_new_set" = set; then 3154 case $ac_new_val in 3155 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3156 *) ac_arg=$ac_var=$ac_new_val ;; 3157 esac 3158 case " $ac_configure_args " in 3159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3160 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3161 esac 3162 fi 3163 done 3164 if $ac_cache_corrupted; then 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3168 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3169 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3170 fi 3171 ## -------------------- ## 3172 ## Main body of script. ## 3173 ## -------------------- ## 3174 3175 ac_ext=c 3176 ac_cpp='$CPP $CPPFLAGS' 3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3180 3181 3182 3183 ac_aux_dir= 3184 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3185 if test -f "$ac_dir/install-sh"; then 3186 ac_aux_dir=$ac_dir 3187 ac_install_sh="$ac_aux_dir/install-sh -c" 3188 break 3189 elif test -f "$ac_dir/install.sh"; then 3190 ac_aux_dir=$ac_dir 3191 ac_install_sh="$ac_aux_dir/install.sh -c" 3192 break 3193 elif test -f "$ac_dir/shtool"; then 3194 ac_aux_dir=$ac_dir 3195 ac_install_sh="$ac_aux_dir/shtool install -c" 3196 break 3197 fi 3198 done 3199 if test -z "$ac_aux_dir"; then 3200 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 3201 fi 3202 3203 # These three variables are undocumented and unsupported, 3204 # and are intended to be withdrawn in a future Autoconf release. 3205 # They can cause serious problems if a builder's source tree is in a directory 3206 # whose full name contains unusual characters. 3207 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3208 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3209 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3210 3211 3212 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3213 3214 # 3215 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3216 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3217 # 3218 # This code is free software; you can redistribute it and/or modify it 3219 # under the terms of the GNU General Public License version 2 only, as 3220 # published by the Free Software Foundation. Oracle designates this 3221 # particular file as subject to the "Classpath" exception as provided 3222 # by Oracle in the LICENSE file that accompanied this code. 3223 # 3224 # This code is distributed in the hope that it will be useful, but WITHOUT 3225 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3226 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3227 # version 2 for more details (a copy is included in the LICENSE file that 3228 # accompanied this code). 3229 # 3230 # You should have received a copy of the GNU General Public License version 3231 # 2 along with this work; if not, write to the Free Software Foundation, 3232 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3233 # 3234 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3235 # or visit www.oracle.com if you need additional information or have any 3236 # questions. 3237 # 3238 3239 # 3240 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3241 # 3242 # This program is free software; you can redistribute it and/or modify 3243 # it under the terms of the GNU General Public License as published by 3244 # the Free Software Foundation; either version 2 of the License, or 3245 # (at your option) any later version. 3246 # 3247 # This program is distributed in the hope that it will be useful, but 3248 # WITHOUT ANY WARRANTY; without even the implied warranty of 3249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3250 # General Public License for more details. 3251 # 3252 # You should have received a copy of the GNU General Public License 3253 # along with this program; if not, write to the Free Software 3254 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3255 # 3256 # As a special exception to the GNU General Public License, if you 3257 # distribute this file as part of a program that contains a 3258 # configuration script generated by Autoconf, you may include it under 3259 # the same distribution terms that you use for the rest of that program. 3260 3261 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3262 # ---------------------------------- 3263 # PKG_PROG_PKG_CONFIG 3264 3265 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3266 # 3267 # Check to see whether a particular set of modules exists. Similar 3268 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3269 # 3270 # 3271 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3272 # this or PKG_CHECK_MODULES is called, or make sure to call 3273 # PKG_CHECK_EXISTS manually 3274 # -------------------------------------------------------------- 3275 3276 3277 3278 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3279 # --------------------------------------------- 3280 # _PKG_CONFIG 3281 3282 # _PKG_SHORT_ERRORS_SUPPORTED 3283 # ----------------------------- 3284 # _PKG_SHORT_ERRORS_SUPPORTED 3285 3286 3287 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3288 # [ACTION-IF-NOT-FOUND]) 3289 # 3290 # 3291 # Note that if there is a possibility the first call to 3292 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3293 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3294 # 3295 # 3296 # -------------------------------------------------------------- 3297 # PKG_CHECK_MODULES 3298 3299 3300 # Include these first... 3301 # 3302 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3303 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3304 # 3305 # This code is free software; you can redistribute it and/or modify it 3306 # under the terms of the GNU General Public License version 2 only, as 3307 # published by the Free Software Foundation. Oracle designates this 3308 # particular file as subject to the "Classpath" exception as provided 3309 # by Oracle in the LICENSE file that accompanied this code. 3310 # 3311 # This code is distributed in the hope that it will be useful, but WITHOUT 3312 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3313 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3314 # version 2 for more details (a copy is included in the LICENSE file that 3315 # accompanied this code). 3316 # 3317 # You should have received a copy of the GNU General Public License version 3318 # 2 along with this work; if not, write to the Free Software Foundation, 3319 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3320 # 3321 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3322 # or visit www.oracle.com if you need additional information or have any 3323 # questions. 3324 # 3325 3326 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3327 # If so, then append $1 to $2 \ 3328 # Also set JVM_ARG_OK to true/false depending on outcome. 3329 3330 3331 # Appends a string to a path variable, only adding the : when needed. 3332 3333 3334 # Appends a string to a path variable, only adding the : when needed. 3335 3336 3337 # This will make sure the given variable points to a full and proper 3338 # path. This means: 3339 # 1) There will be no spaces in the path. On posix platforms, 3340 # spaces in the path will result in an error. On Windows, 3341 # the path will be rewritten using short-style to be space-free. 3342 # 2) The path will be absolute, and it will be in unix-style (on 3343 # cygwin). 3344 # $1: The name of the variable to fix 3345 3346 3347 # This will make sure the given variable points to a executable 3348 # with a full and proper path. This means: 3349 # 1) There will be no spaces in the path. On posix platforms, 3350 # spaces in the path will result in an error. On Windows, 3351 # the path will be rewritten using short-style to be space-free. 3352 # 2) The path will be absolute, and it will be in unix-style (on 3353 # cygwin). 3354 # Any arguments given to the executable is preserved. 3355 # If the input variable does not have a directory specification, then 3356 # it need to be in the PATH. 3357 # $1: The name of the variable to fix 3358 3359 3360 3361 3362 # Register a --with argument but mark it as deprecated 3363 # $1: The name of the with argument to deprecate, not including --with- 3364 3365 3366 # Register a --enable argument but mark it as deprecated 3367 # $1: The name of the with argument to deprecate, not including --enable- 3368 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3369 3370 3371 3372 3373 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3374 # $1: variable to check 3375 3376 3377 # Check that there are no unprocessed overridden variables left. 3378 # If so, they are an incorrect argument and we will exit with an error. 3379 3380 3381 # Setup a tool for the given variable. If correctly specified by the user, 3382 # use that value, otherwise search for the tool using the supplied code snippet. 3383 # $1: variable to set 3384 # $2: code snippet to call to look for the tool 3385 3386 3387 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3388 # $1: variable to set 3389 # $2: executable name (or list of names) to look for 3390 3391 3392 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3393 # $1: variable to set 3394 # $2: executable name (or list of names) to look for 3395 3396 3397 # Like BASIC_PATH_PROGS but fails if no tool was found. 3398 # $1: variable to set 3399 # $2: executable name (or list of names) to look for 3400 3401 3402 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3403 # $1: variable to set 3404 # $2: autoconf macro to call to look for the special tool 3405 3406 3407 # Setup the most fundamental tools that relies on not much else to set up, 3408 # but is used by much of the early bootstrap code. 3409 3410 3411 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3412 3413 3414 3415 3416 3417 3418 3419 #%%% Simple tools %%% 3420 3421 # Check if we have found a usable version of make 3422 # $1: the path to a potential make binary (or empty) 3423 # $2: the description on how we found this 3424 3425 3426 # Goes looking for a usable version of GNU make. 3427 3428 3429 3430 3431 3432 3433 # Check if build directory is on local disk. If not possible to determine, 3434 # we prefer to claim it's local. 3435 # Argument 1: directory to test 3436 # Argument 2: what to do if it is on local disk 3437 # Argument 3: what to do otherwise (remote disk or failure) 3438 3439 3440 # Check that source files have basic read permissions set. This might 3441 # not be the case in cygwin in certain conditions. 3442 3443 3444 3445 3446 # 3447 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3448 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3449 # 3450 # This code is free software; you can redistribute it and/or modify it 3451 # under the terms of the GNU General Public License version 2 only, as 3452 # published by the Free Software Foundation. Oracle designates this 3453 # particular file as subject to the "Classpath" exception as provided 3454 # by Oracle in the LICENSE file that accompanied this code. 3455 # 3456 # This code is distributed in the hope that it will be useful, but WITHOUT 3457 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3458 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3459 # version 2 for more details (a copy is included in the LICENSE file that 3460 # accompanied this code). 3461 # 3462 # You should have received a copy of the GNU General Public License version 3463 # 2 along with this work; if not, write to the Free Software Foundation, 3464 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3465 # 3466 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3467 # or visit www.oracle.com if you need additional information or have any 3468 # questions. 3469 # 3470 3471 3472 3473 3474 3475 # Helper function which possibly converts a path using DOS-style short mode. 3476 # If so, the updated path is stored in $new_path. 3477 # $1: The path to check 3478 3479 3480 # Helper function which possibly converts a path using DOS-style short mode. 3481 # If so, the updated path is stored in $new_path. 3482 # $1: The path to check 3483 3484 3485 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3486 # and could probably be heavily simplified. However, all changes in this 3487 # area tend to need lot of testing in different scenarios, and in lack of 3488 # proper unit testing, cleaning this up has not been deemed worth the effort 3489 # at the moment. 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3500 3501 3502 3503 3504 # 3505 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3506 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3507 # 3508 # This code is free software; you can redistribute it and/or modify it 3509 # under the terms of the GNU General Public License version 2 only, as 3510 # published by the Free Software Foundation. Oracle designates this 3511 # particular file as subject to the "Classpath" exception as provided 3512 # by Oracle in the LICENSE file that accompanied this code. 3513 # 3514 # This code is distributed in the hope that it will be useful, but WITHOUT 3515 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3516 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3517 # version 2 for more details (a copy is included in the LICENSE file that 3518 # accompanied this code). 3519 # 3520 # You should have received a copy of the GNU General Public License version 3521 # 2 along with this work; if not, write to the Free Software Foundation, 3522 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3523 # 3524 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3525 # or visit www.oracle.com if you need additional information or have any 3526 # questions. 3527 # 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 # ... then the rest 3540 # 3541 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3542 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3543 # 3544 # This code is free software; you can redistribute it and/or modify it 3545 # under the terms of the GNU General Public License version 2 only, as 3546 # published by the Free Software Foundation. Oracle designates this 3547 # particular file as subject to the "Classpath" exception as provided 3548 # by Oracle in the LICENSE file that accompanied this code. 3549 # 3550 # This code is distributed in the hope that it will be useful, but WITHOUT 3551 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3552 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3553 # version 2 for more details (a copy is included in the LICENSE file that 3554 # accompanied this code). 3555 # 3556 # You should have received a copy of the GNU General Public License version 3557 # 2 along with this work; if not, write to the Free Software Foundation, 3558 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3559 # 3560 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3561 # or visit www.oracle.com if you need additional information or have any 3562 # questions. 3563 # 3564 3565 ######################################################################## 3566 # This file handles detection of the Boot JDK. The Boot JDK detection 3567 # process has been developed as a response to solve a complex real-world 3568 # problem. Initially, it was simple, but it has grown as platform after 3569 # platform, idiosyncracy after idiosyncracy has been supported. 3570 # 3571 # The basic idea is this: 3572 # 1) You need an acceptable *) JDK to use as a Boot JDK 3573 # 2) There are several ways to locate a JDK, that are mostly platform 3574 # dependent **) 3575 # 3) You can have multiple JDKs installed 3576 # 4) If possible, configure should try to dig out an acceptable JDK 3577 # automatically, without having to resort to command-line options 3578 # 3579 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3580 # javac) and not a JRE, etc. 3581 # 3582 # **) On Windows we typically use a well-known path. 3583 # On MacOSX we typically use the tool java_home. 3584 # On Linux we typically find javac in the $PATH, and then follow a 3585 # chain of symlinks that often ends up in a real JDK. 3586 # 3587 # This leads to the code where we check in different ways to locate a 3588 # JDK, and if one is found, check if it is acceptable. If not, we print 3589 # our reasons for rejecting it (useful when debugging non-working 3590 # configure situations) and continue checking the next one. 3591 ######################################################################## 3592 3593 # Execute the check given as argument, and verify the result 3594 # If the Boot JDK was previously found, do nothing 3595 # $1 A command line (typically autoconf macro) to execute 3596 3597 3598 # Test: Is bootjdk explicitely set by command line arguments? 3599 3600 3601 # Test: Is bootjdk available from builddeps? 3602 3603 3604 # Test: Is $JAVA_HOME set? 3605 3606 3607 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3608 3609 3610 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3611 # $1: Argument to the java_home binary (optional) 3612 3613 3614 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3615 3616 3617 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3618 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3619 # $1 = Path to directory containing jdk installations. 3620 # $2 = String to append to the found JDK directory to get the proper JDK home 3621 3622 3623 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3624 # environmental variable as base for where to look. 3625 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3626 3627 3628 # Test: Is there a JDK installed in default, well-known locations? 3629 3630 3631 # Check that a command-line tool in the Boot JDK is correct 3632 # $1 = name of variable to assign 3633 # $2 = name of binary 3634 3635 3636 ############################################################################### 3637 # 3638 # We need a Boot JDK to bootstrap the build. 3639 # 3640 3641 3642 3643 3644 3645 # 3646 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3647 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3648 # 3649 # This code is free software; you can redistribute it and/or modify it 3650 # under the terms of the GNU General Public License version 2 only, as 3651 # published by the Free Software Foundation. Oracle designates this 3652 # particular file as subject to the "Classpath" exception as provided 3653 # by Oracle in the LICENSE file that accompanied this code. 3654 # 3655 # This code is distributed in the hope that it will be useful, but WITHOUT 3656 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3657 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3658 # version 2 for more details (a copy is included in the LICENSE file that 3659 # accompanied this code). 3660 # 3661 # You should have received a copy of the GNU General Public License version 3662 # 2 along with this work; if not, write to the Free Software Foundation, 3663 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3664 # 3665 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3666 # or visit www.oracle.com if you need additional information or have any 3667 # questions. 3668 # 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 # 3690 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3691 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3692 # 3693 # This code is free software; you can redistribute it and/or modify it 3694 # under the terms of the GNU General Public License version 2 only, as 3695 # published by the Free Software Foundation. Oracle designates this 3696 # particular file as subject to the "Classpath" exception as provided 3697 # by Oracle in the LICENSE file that accompanied this code. 3698 # 3699 # This code is distributed in the hope that it will be useful, but WITHOUT 3700 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3701 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3702 # version 2 for more details (a copy is included in the LICENSE file that 3703 # accompanied this code). 3704 # 3705 # You should have received a copy of the GNU General Public License version 3706 # 2 along with this work; if not, write to the Free Software Foundation, 3707 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3708 # 3709 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3710 # or visit www.oracle.com if you need additional information or have any 3711 # questions. 3712 # 3713 3714 3715 3716 3717 3718 # Documentation on common flags used for solstudio in HIGHEST. 3719 # 3720 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3721 # done with care, there are some assumptions below that need to 3722 # be understood about the use of pointers, and IEEE behavior. 3723 # 3724 # -fns: Use non-standard floating point mode (not IEEE 754) 3725 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3726 # -fsingle: Use single precision floating point with 'float' 3727 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3728 # (Source with excessing pointer casting and data access with mixed 3729 # pointer types are not recommended) 3730 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3731 # (If you expect perfect errno behavior, do not use this) 3732 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3733 # -xrestrict: Pointer parameters to functions do not overlap 3734 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3735 # If you pass in multiple pointers to the same data, do not use this) 3736 # -xlibmil: Inline some library routines 3737 # (If you expect perfect errno behavior, do not use this) 3738 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3739 # (If you expect perfect errno behavior, do not use this) 3740 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3741 3742 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3743 # Bug? 3744 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3745 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3746 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3747 #fi 3748 3749 3750 3751 3752 3753 3754 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3755 # [RUN-IF-FALSE]) 3756 # ------------------------------------------------------------ 3757 # Check that the c and c++ compilers support an argument 3758 3759 3760 3761 3762 # 3763 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3764 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3765 # 3766 # This code is free software; you can redistribute it and/or modify it 3767 # under the terms of the GNU General Public License version 2 only, as 3768 # published by the Free Software Foundation. Oracle designates this 3769 # particular file as subject to the "Classpath" exception as provided 3770 # by Oracle in the LICENSE file that accompanied this code. 3771 # 3772 # This code is distributed in the hope that it will be useful, but WITHOUT 3773 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3774 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3775 # version 2 for more details (a copy is included in the LICENSE file that 3776 # accompanied this code). 3777 # 3778 # You should have received a copy of the GNU General Public License version 3779 # 2 along with this work; if not, write to the Free Software Foundation, 3780 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3781 # 3782 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3783 # or visit www.oracle.com if you need additional information or have any 3784 # questions. 3785 # 3786 3787 3788 3789 3790 3791 cygwin_help() { 3792 case $1 in 3793 unzip) 3794 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3795 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3796 ;; 3797 zip) 3798 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3799 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3800 ;; 3801 make) 3802 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3803 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3804 ;; 3805 freetype) 3806 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3807 HELP_MSG="To install freetype, run: 3808 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3809 chmod +x /tmp/freetype-setup.exe 3810 /tmp/freetype-setup.exe 3811 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3812 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3813 else 3814 HELP_MSG="You need to build a 64-bit version of freetype. 3815 This is not readily available. 3816 You can find source code and build instructions on 3817 http://www.freetype.org/ 3818 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3819 fi 3820 ;; 3821 esac 3822 } 3823 3824 msys_help() { 3825 PKGHANDLER_COMMAND="" 3826 } 3827 3828 apt_help() { 3829 case $1 in 3830 devkit) 3831 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3832 openjdk) 3833 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3834 alsa) 3835 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3836 cups) 3837 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3838 freetype) 3839 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3840 pulse) 3841 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3842 x11) 3843 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3844 ccache) 3845 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3846 esac 3847 } 3848 3849 yum_help() { 3850 case $1 in 3851 devkit) 3852 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3853 openjdk) 3854 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3855 alsa) 3856 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3857 cups) 3858 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3859 freetype) 3860 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3861 pulse) 3862 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3863 x11) 3864 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3865 ccache) 3866 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3867 esac 3868 } 3869 3870 port_help() { 3871 PKGHANDLER_COMMAND="" 3872 } 3873 3874 pkgutil_help() { 3875 PKGHANDLER_COMMAND="" 3876 } 3877 3878 pkgadd_help() { 3879 PKGHANDLER_COMMAND="" 3880 } 3881 3882 # This function will check if we're called from the "configure" wrapper while 3883 # printing --help. If so, we will print out additional information that can 3884 # only be extracted within the autoconf script, and then exit. This must be 3885 # called at the very beginning in configure.ac. 3886 3887 3888 3889 3890 # 3891 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3892 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3893 # 3894 # This code is free software; you can redistribute it and/or modify it 3895 # under the terms of the GNU General Public License version 2 only, as 3896 # published by the Free Software Foundation. Oracle designates this 3897 # particular file as subject to the "Classpath" exception as provided 3898 # by Oracle in the LICENSE file that accompanied this code. 3899 # 3900 # This code is distributed in the hope that it will be useful, but WITHOUT 3901 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3902 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3903 # version 2 for more details (a copy is included in the LICENSE file that 3904 # accompanied this code). 3905 # 3906 # You should have received a copy of the GNU General Public License version 3907 # 2 along with this work; if not, write to the Free Software Foundation, 3908 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3909 # 3910 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3911 # or visit www.oracle.com if you need additional information or have any 3912 # questions. 3913 # 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 ############################################################################### 3925 # 3926 # Should we build only OpenJDK even if closed sources are present? 3927 # 3928 3929 3930 3931 3932 ############################################################################### 3933 # 3934 # Setup version numbers 3935 # 3936 3937 3938 3939 3940 3941 3942 # 3943 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3944 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3945 # 3946 # This code is free software; you can redistribute it and/or modify it 3947 # under the terms of the GNU General Public License version 2 only, as 3948 # published by the Free Software Foundation. Oracle designates this 3949 # particular file as subject to the "Classpath" exception as provided 3950 # by Oracle in the LICENSE file that accompanied this code. 3951 # 3952 # This code is distributed in the hope that it will be useful, but WITHOUT 3953 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3954 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3955 # version 2 for more details (a copy is included in the LICENSE file that 3956 # accompanied this code). 3957 # 3958 # You should have received a copy of the GNU General Public License version 3959 # 2 along with this work; if not, write to the Free Software Foundation, 3960 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3961 # 3962 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3963 # or visit www.oracle.com if you need additional information or have any 3964 # questions. 3965 # 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 # 3986 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3987 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3988 # 3989 # This code is free software; you can redistribute it and/or modify it 3990 # under the terms of the GNU General Public License version 2 only, as 3991 # published by the Free Software Foundation. Oracle designates this 3992 # particular file as subject to the "Classpath" exception as provided 3993 # by Oracle in the LICENSE file that accompanied this code. 3994 # 3995 # This code is distributed in the hope that it will be useful, but WITHOUT 3996 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3997 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3998 # version 2 for more details (a copy is included in the LICENSE file that 3999 # accompanied this code). 4000 # 4001 # You should have received a copy of the GNU General Public License version 4002 # 2 along with this work; if not, write to the Free Software Foundation, 4003 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4004 # 4005 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4006 # or visit www.oracle.com if you need additional information or have any 4007 # questions. 4008 # 4009 4010 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4011 # Converts autoconf style CPU name to OpenJDK style, into 4012 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4013 4014 4015 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4016 # Converts autoconf style OS name to OpenJDK style, into 4017 # VAR_OS and VAR_OS_API. 4018 4019 4020 # Expects $host_os $host_cpu $build_os and $build_cpu 4021 # and $with_target_bits to have been setup! 4022 # 4023 # Translate the standard triplet(quadruplet) definition 4024 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4025 # OPENJDK_BUILD_OS, etc. 4026 4027 4028 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4029 # accordingly. Must be done after setting up build and target system, but before 4030 # doing anything else with these values. 4031 4032 4033 # Setup the legacy variables, for controlling the old makefiles. 4034 # 4035 4036 4037 4038 4039 #%%% Build and target systems %%% 4040 4041 4042 4043 4044 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4045 # Add -mX to various FLAGS variables. 4046 4047 4048 4049 4050 4051 4052 # 4053 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4054 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4055 # 4056 # This code is free software; you can redistribute it and/or modify it 4057 # under the terms of the GNU General Public License version 2 only, as 4058 # published by the Free Software Foundation. Oracle designates this 4059 # particular file as subject to the "Classpath" exception as provided 4060 # by Oracle in the LICENSE file that accompanied this code. 4061 # 4062 # This code is distributed in the hope that it will be useful, but WITHOUT 4063 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4064 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4065 # version 2 for more details (a copy is included in the LICENSE file that 4066 # accompanied this code). 4067 # 4068 # You should have received a copy of the GNU General Public License version 4069 # 2 along with this work; if not, write to the Free Software Foundation, 4070 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4071 # 4072 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4073 # or visit www.oracle.com if you need additional information or have any 4074 # questions. 4075 # 4076 4077 4078 4079 4080 4081 4082 4083 4084 # 4085 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4086 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4087 # 4088 # This code is free software; you can redistribute it and/or modify it 4089 # under the terms of the GNU General Public License version 2 only, as 4090 # published by the Free Software Foundation. Oracle designates this 4091 # particular file as subject to the "Classpath" exception as provided 4092 # by Oracle in the LICENSE file that accompanied this code. 4093 # 4094 # This code is distributed in the hope that it will be useful, but WITHOUT 4095 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4096 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4097 # version 2 for more details (a copy is included in the LICENSE file that 4098 # accompanied this code). 4099 # 4100 # You should have received a copy of the GNU General Public License version 4101 # 2 along with this work; if not, write to the Free Software Foundation, 4102 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4103 # 4104 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4105 # or visit www.oracle.com if you need additional information or have any 4106 # questions. 4107 # 4108 4109 ######################################################################## 4110 # This file is responsible for detecting, verifying and setting up the 4111 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4112 # proper paths to the binaries, but it will not setup any flags. 4113 # 4114 # The binaries used is determined by the toolchain type, which is the family of 4115 # compilers and related tools that are used. 4116 ######################################################################## 4117 4118 4119 # All valid toolchains, regardless of platform (used by help.m4) 4120 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4121 4122 # These toolchains are valid on different platforms 4123 VALID_TOOLCHAINS_linux="gcc clang" 4124 VALID_TOOLCHAINS_solaris="solstudio" 4125 VALID_TOOLCHAINS_macosx="gcc clang" 4126 VALID_TOOLCHAINS_aix="xlc" 4127 VALID_TOOLCHAINS_windows="microsoft" 4128 4129 # Toolchain descriptions 4130 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4131 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4132 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4133 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4134 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4135 4136 # Setup a number of variables describing how native output files are 4137 # named on this platform/toolchain. 4138 4139 4140 # Determine which toolchain type to use, and make sure it is valid for this 4141 # platform. Setup various information about the selected toolchain. 4142 4143 4144 # Before we start detecting the toolchain executables, we might need some 4145 # special setup, e.g. additional paths etc. 4146 4147 4148 # Restore path, etc 4149 4150 4151 # Check if a compiler is of the toolchain type we expect, and save the version 4152 # information from it. If the compiler does not match the expected type, 4153 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4154 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4155 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4156 # 4157 # $1 = compiler to test (CC or CXX) 4158 # $2 = human readable name of compiler (C or C++) 4159 4160 4161 # Try to locate the given C or C++ compiler in the path, or otherwise. 4162 # 4163 # $1 = compiler to test (CC or CXX) 4164 # $2 = human readable name of compiler (C or C++) 4165 # $3 = list of compiler names to search for 4166 4167 4168 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4169 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4170 # archiver (AR). Verify that the compilers are correct according to the 4171 # toolchain type. 4172 4173 4174 # Setup additional tools that is considered a part of the toolchain, but not the 4175 # core part. Many of these are highly platform-specific and do not exist, 4176 # and/or are not needed on all platforms. 4177 4178 4179 # Setup the build tools (i.e, the compiler and linker used to build programs 4180 # that should be run on the build platform, not the target platform, as a build 4181 # helper). Since the non-cross-compile case uses the normal, target compilers 4182 # for this, we can only do this after these have been setup. 4183 4184 4185 # Setup legacy variables that are still needed as alternative ways to refer to 4186 # parts of the toolchain. 4187 4188 4189 # Do some additional checks on the detected tools. 4190 4191 4192 # Setup the JTReg Regression Test Harness. 4193 4194 4195 # 4196 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4197 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4198 # 4199 # This code is free software; you can redistribute it and/or modify it 4200 # under the terms of the GNU General Public License version 2 only, as 4201 # published by the Free Software Foundation. Oracle designates this 4202 # particular file as subject to the "Classpath" exception as provided 4203 # by Oracle in the LICENSE file that accompanied this code. 4204 # 4205 # This code is distributed in the hope that it will be useful, but WITHOUT 4206 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4207 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4208 # version 2 for more details (a copy is included in the LICENSE file that 4209 # accompanied this code). 4210 # 4211 # You should have received a copy of the GNU General Public License version 4212 # 2 along with this work; if not, write to the Free Software Foundation, 4213 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4214 # 4215 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4216 # or visit www.oracle.com if you need additional information or have any 4217 # questions. 4218 # 4219 4220 4221 4222 4223 4224 4225 4226 # Check if the VS env variables were setup prior to running configure. 4227 # If not, then find vcvarsall.bat and run it automatically, and integrate 4228 # the set env variables into the spec file. 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 # This line needs to be here, verbatim, after all includes and the dummy hook 4240 # definitions. It is replaced with custom functionality when building 4241 # custom sources. 4242 #CUSTOM_AUTOCONF_INCLUDE 4243 4244 # Do not change or remove the following line, it is needed for consistency checks: 4245 DATE_WHEN_GENERATED=1395753263 4246 4247 ############################################################################### 4248 # 4249 # Initialization / Boot-strapping 4250 # 4251 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4252 # thus it jumps back and forth, each time gaining something needed later on. 4253 # 4254 ############################################################################### 4255 4256 # If we are requested to print additional help, do that and then exit. 4257 # This must be the very first call. 4258 4259 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4260 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4261 $PRINTF "Which are valid to use depends on the build platform.\n" 4262 for toolchain in $VALID_TOOLCHAINS_all; do 4263 # Use indirect variable referencing 4264 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4265 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4266 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4267 done 4268 4269 # And now exit directly 4270 exit 0 4271 fi 4272 4273 4274 # Basic initialization that must happen first of all in the normal process. 4275 4276 # Save the original command line. This is passed to us by the wrapper configure script. 4277 4278 DATE_WHEN_CONFIGURED=`LANG=C date` 4279 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4281 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4283 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4284 4285 4286 # Start with tools that do not need have cross compilation support 4287 # and can be expected to be found in the default PATH. These tools are 4288 # used by configure. Nor are these tools expected to be found in the 4289 # devkit from the builddeps server either, since they are 4290 # needed to download the devkit. 4291 4292 # First are all the simple required tools. 4293 4294 4295 4296 # Publish this variable in the help. 4297 4298 4299 if test "x$BASENAME" = x; then 4300 # The variable is not set by user, try to locate tool using the code snippet 4301 for ac_prog in basename 4302 do 4303 # Extract the first word of "$ac_prog", so it can be a program name with args. 4304 set dummy $ac_prog; ac_word=$2 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4306 $as_echo_n "checking for $ac_word... " >&6; } 4307 if ${ac_cv_path_BASENAME+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309 else 4310 case $BASENAME in 4311 [\\/]* | ?:[\\/]*) 4312 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4313 ;; 4314 *) 4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4316 for as_dir in $PATH 4317 do 4318 IFS=$as_save_IFS 4319 test -z "$as_dir" && as_dir=. 4320 for ac_exec_ext in '' $ac_executable_extensions; do 4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4322 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4324 break 2 4325 fi 4326 done 4327 done 4328 IFS=$as_save_IFS 4329 4330 ;; 4331 esac 4332 fi 4333 BASENAME=$ac_cv_path_BASENAME 4334 if test -n "$BASENAME"; then 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4336 $as_echo "$BASENAME" >&6; } 4337 else 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4339 $as_echo "no" >&6; } 4340 fi 4341 4342 4343 test -n "$BASENAME" && break 4344 done 4345 4346 else 4347 # The variable is set, but is it from the command line or the environment? 4348 4349 # Try to remove the string !BASENAME! from our list. 4350 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4351 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4352 # If it failed, the variable was not from the command line. Ignore it, 4353 # but warn the user (except for BASH, which is always set by the calling BASH). 4354 if test "xBASENAME" != xBASH; then 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4356 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4357 fi 4358 # Try to locate tool using the code snippet 4359 for ac_prog in basename 4360 do 4361 # Extract the first word of "$ac_prog", so it can be a program name with args. 4362 set dummy $ac_prog; ac_word=$2 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4364 $as_echo_n "checking for $ac_word... " >&6; } 4365 if ${ac_cv_path_BASENAME+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367 else 4368 case $BASENAME in 4369 [\\/]* | ?:[\\/]*) 4370 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4371 ;; 4372 *) 4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4374 for as_dir in $PATH 4375 do 4376 IFS=$as_save_IFS 4377 test -z "$as_dir" && as_dir=. 4378 for ac_exec_ext in '' $ac_executable_extensions; do 4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4380 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4382 break 2 4383 fi 4384 done 4385 done 4386 IFS=$as_save_IFS 4387 4388 ;; 4389 esac 4390 fi 4391 BASENAME=$ac_cv_path_BASENAME 4392 if test -n "$BASENAME"; then 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4394 $as_echo "$BASENAME" >&6; } 4395 else 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4397 $as_echo "no" >&6; } 4398 fi 4399 4400 4401 test -n "$BASENAME" && break 4402 done 4403 4404 else 4405 # If it succeeded, then it was overridden by the user. We will use it 4406 # for the tool. 4407 4408 # First remove it from the list of overridden variables, so we can test 4409 # for unknown variables in the end. 4410 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4411 4412 # Check if the provided tool contains a complete path. 4413 tool_specified="$BASENAME" 4414 tool_basename="${tool_specified##*/}" 4415 if test "x$tool_basename" = "x$tool_specified"; then 4416 # A command without a complete path is provided, search $PATH. 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4418 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4419 # Extract the first word of "$tool_basename", so it can be a program name with args. 4420 set dummy $tool_basename; ac_word=$2 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4422 $as_echo_n "checking for $ac_word... " >&6; } 4423 if ${ac_cv_path_BASENAME+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425 else 4426 case $BASENAME in 4427 [\\/]* | ?:[\\/]*) 4428 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4429 ;; 4430 *) 4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432 for as_dir in $PATH 4433 do 4434 IFS=$as_save_IFS 4435 test -z "$as_dir" && as_dir=. 4436 for ac_exec_ext in '' $ac_executable_extensions; do 4437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4438 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4440 break 2 4441 fi 4442 done 4443 done 4444 IFS=$as_save_IFS 4445 4446 ;; 4447 esac 4448 fi 4449 BASENAME=$ac_cv_path_BASENAME 4450 if test -n "$BASENAME"; then 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4452 $as_echo "$BASENAME" >&6; } 4453 else 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4455 $as_echo "no" >&6; } 4456 fi 4457 4458 4459 if test "x$BASENAME" = x; then 4460 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4461 fi 4462 else 4463 # Otherwise we believe it is a complete path. Use it as it is. 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4465 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4467 $as_echo_n "checking for BASENAME... " >&6; } 4468 if test ! -x "$tool_specified"; then 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4470 $as_echo "not found" >&6; } 4471 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4472 fi 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4474 $as_echo "$tool_specified" >&6; } 4475 fi 4476 fi 4477 fi 4478 4479 4480 4481 if test "x$BASENAME" = x; then 4482 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4483 fi 4484 4485 4486 4487 4488 4489 # Publish this variable in the help. 4490 4491 4492 if test "x$BASH" = x; then 4493 # The variable is not set by user, try to locate tool using the code snippet 4494 for ac_prog in bash 4495 do 4496 # Extract the first word of "$ac_prog", so it can be a program name with args. 4497 set dummy $ac_prog; ac_word=$2 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4499 $as_echo_n "checking for $ac_word... " >&6; } 4500 if ${ac_cv_path_BASH+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502 else 4503 case $BASH in 4504 [\\/]* | ?:[\\/]*) 4505 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4506 ;; 4507 *) 4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4509 for as_dir in $PATH 4510 do 4511 IFS=$as_save_IFS 4512 test -z "$as_dir" && as_dir=. 4513 for ac_exec_ext in '' $ac_executable_extensions; do 4514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4515 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4517 break 2 4518 fi 4519 done 4520 done 4521 IFS=$as_save_IFS 4522 4523 ;; 4524 esac 4525 fi 4526 BASH=$ac_cv_path_BASH 4527 if test -n "$BASH"; then 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4529 $as_echo "$BASH" >&6; } 4530 else 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4532 $as_echo "no" >&6; } 4533 fi 4534 4535 4536 test -n "$BASH" && break 4537 done 4538 4539 else 4540 # The variable is set, but is it from the command line or the environment? 4541 4542 # Try to remove the string !BASH! from our list. 4543 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4544 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4545 # If it failed, the variable was not from the command line. Ignore it, 4546 # but warn the user (except for BASH, which is always set by the calling BASH). 4547 if test "xBASH" != xBASH; then 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4549 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4550 fi 4551 # Try to locate tool using the code snippet 4552 for ac_prog in bash 4553 do 4554 # Extract the first word of "$ac_prog", so it can be a program name with args. 4555 set dummy $ac_prog; ac_word=$2 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4557 $as_echo_n "checking for $ac_word... " >&6; } 4558 if ${ac_cv_path_BASH+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560 else 4561 case $BASH in 4562 [\\/]* | ?:[\\/]*) 4563 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4564 ;; 4565 *) 4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4567 for as_dir in $PATH 4568 do 4569 IFS=$as_save_IFS 4570 test -z "$as_dir" && as_dir=. 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4573 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577 done 4578 done 4579 IFS=$as_save_IFS 4580 4581 ;; 4582 esac 4583 fi 4584 BASH=$ac_cv_path_BASH 4585 if test -n "$BASH"; then 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4587 $as_echo "$BASH" >&6; } 4588 else 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4590 $as_echo "no" >&6; } 4591 fi 4592 4593 4594 test -n "$BASH" && break 4595 done 4596 4597 else 4598 # If it succeeded, then it was overridden by the user. We will use it 4599 # for the tool. 4600 4601 # First remove it from the list of overridden variables, so we can test 4602 # for unknown variables in the end. 4603 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4604 4605 # Check if the provided tool contains a complete path. 4606 tool_specified="$BASH" 4607 tool_basename="${tool_specified##*/}" 4608 if test "x$tool_basename" = "x$tool_specified"; then 4609 # A command without a complete path is provided, search $PATH. 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4611 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4612 # Extract the first word of "$tool_basename", so it can be a program name with args. 4613 set dummy $tool_basename; ac_word=$2 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4615 $as_echo_n "checking for $ac_word... " >&6; } 4616 if ${ac_cv_path_BASH+:} false; then : 4617 $as_echo_n "(cached) " >&6 4618 else 4619 case $BASH in 4620 [\\/]* | ?:[\\/]*) 4621 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4622 ;; 4623 *) 4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625 for as_dir in $PATH 4626 do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4631 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4633 break 2 4634 fi 4635 done 4636 done 4637 IFS=$as_save_IFS 4638 4639 ;; 4640 esac 4641 fi 4642 BASH=$ac_cv_path_BASH 4643 if test -n "$BASH"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4645 $as_echo "$BASH" >&6; } 4646 else 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4648 $as_echo "no" >&6; } 4649 fi 4650 4651 4652 if test "x$BASH" = x; then 4653 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4654 fi 4655 else 4656 # Otherwise we believe it is a complete path. Use it as it is. 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4658 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4660 $as_echo_n "checking for BASH... " >&6; } 4661 if test ! -x "$tool_specified"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4663 $as_echo "not found" >&6; } 4664 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4665 fi 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4667 $as_echo "$tool_specified" >&6; } 4668 fi 4669 fi 4670 fi 4671 4672 4673 4674 if test "x$BASH" = x; then 4675 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4676 fi 4677 4678 4679 4680 4681 4682 # Publish this variable in the help. 4683 4684 4685 if test "x$CAT" = x; then 4686 # The variable is not set by user, try to locate tool using the code snippet 4687 for ac_prog in cat 4688 do 4689 # Extract the first word of "$ac_prog", so it can be a program name with args. 4690 set dummy $ac_prog; ac_word=$2 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4692 $as_echo_n "checking for $ac_word... " >&6; } 4693 if ${ac_cv_path_CAT+:} false; then : 4694 $as_echo_n "(cached) " >&6 4695 else 4696 case $CAT in 4697 [\\/]* | ?:[\\/]*) 4698 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4699 ;; 4700 *) 4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4702 for as_dir in $PATH 4703 do 4704 IFS=$as_save_IFS 4705 test -z "$as_dir" && as_dir=. 4706 for ac_exec_ext in '' $ac_executable_extensions; do 4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4708 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4710 break 2 4711 fi 4712 done 4713 done 4714 IFS=$as_save_IFS 4715 4716 ;; 4717 esac 4718 fi 4719 CAT=$ac_cv_path_CAT 4720 if test -n "$CAT"; then 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4722 $as_echo "$CAT" >&6; } 4723 else 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4725 $as_echo "no" >&6; } 4726 fi 4727 4728 4729 test -n "$CAT" && break 4730 done 4731 4732 else 4733 # The variable is set, but is it from the command line or the environment? 4734 4735 # Try to remove the string !CAT! from our list. 4736 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4737 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4738 # If it failed, the variable was not from the command line. Ignore it, 4739 # but warn the user (except for BASH, which is always set by the calling BASH). 4740 if test "xCAT" != xBASH; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4742 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4743 fi 4744 # Try to locate tool using the code snippet 4745 for ac_prog in cat 4746 do 4747 # Extract the first word of "$ac_prog", so it can be a program name with args. 4748 set dummy $ac_prog; ac_word=$2 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4750 $as_echo_n "checking for $ac_word... " >&6; } 4751 if ${ac_cv_path_CAT+:} false; then : 4752 $as_echo_n "(cached) " >&6 4753 else 4754 case $CAT in 4755 [\\/]* | ?:[\\/]*) 4756 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4757 ;; 4758 *) 4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4760 for as_dir in $PATH 4761 do 4762 IFS=$as_save_IFS 4763 test -z "$as_dir" && as_dir=. 4764 for ac_exec_ext in '' $ac_executable_extensions; do 4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4766 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4768 break 2 4769 fi 4770 done 4771 done 4772 IFS=$as_save_IFS 4773 4774 ;; 4775 esac 4776 fi 4777 CAT=$ac_cv_path_CAT 4778 if test -n "$CAT"; then 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4780 $as_echo "$CAT" >&6; } 4781 else 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4783 $as_echo "no" >&6; } 4784 fi 4785 4786 4787 test -n "$CAT" && break 4788 done 4789 4790 else 4791 # If it succeeded, then it was overridden by the user. We will use it 4792 # for the tool. 4793 4794 # First remove it from the list of overridden variables, so we can test 4795 # for unknown variables in the end. 4796 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4797 4798 # Check if the provided tool contains a complete path. 4799 tool_specified="$CAT" 4800 tool_basename="${tool_specified##*/}" 4801 if test "x$tool_basename" = "x$tool_specified"; then 4802 # A command without a complete path is provided, search $PATH. 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4804 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4805 # Extract the first word of "$tool_basename", so it can be a program name with args. 4806 set dummy $tool_basename; ac_word=$2 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808 $as_echo_n "checking for $ac_word... " >&6; } 4809 if ${ac_cv_path_CAT+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811 else 4812 case $CAT in 4813 [\\/]* | ?:[\\/]*) 4814 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4815 ;; 4816 *) 4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818 for as_dir in $PATH 4819 do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4824 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828 done 4829 done 4830 IFS=$as_save_IFS 4831 4832 ;; 4833 esac 4834 fi 4835 CAT=$ac_cv_path_CAT 4836 if test -n "$CAT"; then 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4838 $as_echo "$CAT" >&6; } 4839 else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841 $as_echo "no" >&6; } 4842 fi 4843 4844 4845 if test "x$CAT" = x; then 4846 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4847 fi 4848 else 4849 # Otherwise we believe it is a complete path. Use it as it is. 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4851 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4853 $as_echo_n "checking for CAT... " >&6; } 4854 if test ! -x "$tool_specified"; then 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4856 $as_echo "not found" >&6; } 4857 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4858 fi 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4860 $as_echo "$tool_specified" >&6; } 4861 fi 4862 fi 4863 fi 4864 4865 4866 4867 if test "x$CAT" = x; then 4868 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4869 fi 4870 4871 4872 4873 4874 4875 # Publish this variable in the help. 4876 4877 4878 if test "x$CHMOD" = x; then 4879 # The variable is not set by user, try to locate tool using the code snippet 4880 for ac_prog in chmod 4881 do 4882 # Extract the first word of "$ac_prog", so it can be a program name with args. 4883 set dummy $ac_prog; ac_word=$2 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4885 $as_echo_n "checking for $ac_word... " >&6; } 4886 if ${ac_cv_path_CHMOD+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888 else 4889 case $CHMOD in 4890 [\\/]* | ?:[\\/]*) 4891 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4892 ;; 4893 *) 4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4895 for as_dir in $PATH 4896 do 4897 IFS=$as_save_IFS 4898 test -z "$as_dir" && as_dir=. 4899 for ac_exec_ext in '' $ac_executable_extensions; do 4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4901 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4903 break 2 4904 fi 4905 done 4906 done 4907 IFS=$as_save_IFS 4908 4909 ;; 4910 esac 4911 fi 4912 CHMOD=$ac_cv_path_CHMOD 4913 if test -n "$CHMOD"; then 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4915 $as_echo "$CHMOD" >&6; } 4916 else 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4918 $as_echo "no" >&6; } 4919 fi 4920 4921 4922 test -n "$CHMOD" && break 4923 done 4924 4925 else 4926 # The variable is set, but is it from the command line or the environment? 4927 4928 # Try to remove the string !CHMOD! from our list. 4929 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4930 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4931 # If it failed, the variable was not from the command line. Ignore it, 4932 # but warn the user (except for BASH, which is always set by the calling BASH). 4933 if test "xCHMOD" != xBASH; then 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 4935 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 4936 fi 4937 # Try to locate tool using the code snippet 4938 for ac_prog in chmod 4939 do 4940 # Extract the first word of "$ac_prog", so it can be a program name with args. 4941 set dummy $ac_prog; ac_word=$2 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4943 $as_echo_n "checking for $ac_word... " >&6; } 4944 if ${ac_cv_path_CHMOD+:} false; then : 4945 $as_echo_n "(cached) " >&6 4946 else 4947 case $CHMOD in 4948 [\\/]* | ?:[\\/]*) 4949 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4950 ;; 4951 *) 4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953 for as_dir in $PATH 4954 do 4955 IFS=$as_save_IFS 4956 test -z "$as_dir" && as_dir=. 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4959 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4961 break 2 4962 fi 4963 done 4964 done 4965 IFS=$as_save_IFS 4966 4967 ;; 4968 esac 4969 fi 4970 CHMOD=$ac_cv_path_CHMOD 4971 if test -n "$CHMOD"; then 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4973 $as_echo "$CHMOD" >&6; } 4974 else 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4976 $as_echo "no" >&6; } 4977 fi 4978 4979 4980 test -n "$CHMOD" && break 4981 done 4982 4983 else 4984 # If it succeeded, then it was overridden by the user. We will use it 4985 # for the tool. 4986 4987 # First remove it from the list of overridden variables, so we can test 4988 # for unknown variables in the end. 4989 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4990 4991 # Check if the provided tool contains a complete path. 4992 tool_specified="$CHMOD" 4993 tool_basename="${tool_specified##*/}" 4994 if test "x$tool_basename" = "x$tool_specified"; then 4995 # A command without a complete path is provided, search $PATH. 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 4997 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 4998 # Extract the first word of "$tool_basename", so it can be a program name with args. 4999 set dummy $tool_basename; ac_word=$2 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5001 $as_echo_n "checking for $ac_word... " >&6; } 5002 if ${ac_cv_path_CHMOD+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004 else 5005 case $CHMOD in 5006 [\\/]* | ?:[\\/]*) 5007 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5008 ;; 5009 *) 5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011 for as_dir in $PATH 5012 do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5017 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021 done 5022 done 5023 IFS=$as_save_IFS 5024 5025 ;; 5026 esac 5027 fi 5028 CHMOD=$ac_cv_path_CHMOD 5029 if test -n "$CHMOD"; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5031 $as_echo "$CHMOD" >&6; } 5032 else 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5034 $as_echo "no" >&6; } 5035 fi 5036 5037 5038 if test "x$CHMOD" = x; then 5039 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5040 fi 5041 else 5042 # Otherwise we believe it is a complete path. Use it as it is. 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5044 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5046 $as_echo_n "checking for CHMOD... " >&6; } 5047 if test ! -x "$tool_specified"; then 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5049 $as_echo "not found" >&6; } 5050 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5051 fi 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5053 $as_echo "$tool_specified" >&6; } 5054 fi 5055 fi 5056 fi 5057 5058 5059 5060 if test "x$CHMOD" = x; then 5061 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5062 fi 5063 5064 5065 5066 5067 5068 # Publish this variable in the help. 5069 5070 5071 if test "x$CMP" = x; then 5072 # The variable is not set by user, try to locate tool using the code snippet 5073 for ac_prog in cmp 5074 do 5075 # Extract the first word of "$ac_prog", so it can be a program name with args. 5076 set dummy $ac_prog; ac_word=$2 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5078 $as_echo_n "checking for $ac_word... " >&6; } 5079 if ${ac_cv_path_CMP+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081 else 5082 case $CMP in 5083 [\\/]* | ?:[\\/]*) 5084 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5085 ;; 5086 *) 5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5088 for as_dir in $PATH 5089 do 5090 IFS=$as_save_IFS 5091 test -z "$as_dir" && as_dir=. 5092 for ac_exec_ext in '' $ac_executable_extensions; do 5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5094 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5096 break 2 5097 fi 5098 done 5099 done 5100 IFS=$as_save_IFS 5101 5102 ;; 5103 esac 5104 fi 5105 CMP=$ac_cv_path_CMP 5106 if test -n "$CMP"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5108 $as_echo "$CMP" >&6; } 5109 else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111 $as_echo "no" >&6; } 5112 fi 5113 5114 5115 test -n "$CMP" && break 5116 done 5117 5118 else 5119 # The variable is set, but is it from the command line or the environment? 5120 5121 # Try to remove the string !CMP! from our list. 5122 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5123 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5124 # If it failed, the variable was not from the command line. Ignore it, 5125 # but warn the user (except for BASH, which is always set by the calling BASH). 5126 if test "xCMP" != xBASH; then 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5128 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5129 fi 5130 # Try to locate tool using the code snippet 5131 for ac_prog in cmp 5132 do 5133 # Extract the first word of "$ac_prog", so it can be a program name with args. 5134 set dummy $ac_prog; ac_word=$2 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5136 $as_echo_n "checking for $ac_word... " >&6; } 5137 if ${ac_cv_path_CMP+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139 else 5140 case $CMP in 5141 [\\/]* | ?:[\\/]*) 5142 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5143 ;; 5144 *) 5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5146 for as_dir in $PATH 5147 do 5148 IFS=$as_save_IFS 5149 test -z "$as_dir" && as_dir=. 5150 for ac_exec_ext in '' $ac_executable_extensions; do 5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5152 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5154 break 2 5155 fi 5156 done 5157 done 5158 IFS=$as_save_IFS 5159 5160 ;; 5161 esac 5162 fi 5163 CMP=$ac_cv_path_CMP 5164 if test -n "$CMP"; then 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5166 $as_echo "$CMP" >&6; } 5167 else 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5169 $as_echo "no" >&6; } 5170 fi 5171 5172 5173 test -n "$CMP" && break 5174 done 5175 5176 else 5177 # If it succeeded, then it was overridden by the user. We will use it 5178 # for the tool. 5179 5180 # First remove it from the list of overridden variables, so we can test 5181 # for unknown variables in the end. 5182 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5183 5184 # Check if the provided tool contains a complete path. 5185 tool_specified="$CMP" 5186 tool_basename="${tool_specified##*/}" 5187 if test "x$tool_basename" = "x$tool_specified"; then 5188 # A command without a complete path is provided, search $PATH. 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5190 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5191 # Extract the first word of "$tool_basename", so it can be a program name with args. 5192 set dummy $tool_basename; ac_word=$2 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5194 $as_echo_n "checking for $ac_word... " >&6; } 5195 if ${ac_cv_path_CMP+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197 else 5198 case $CMP in 5199 [\\/]* | ?:[\\/]*) 5200 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5201 ;; 5202 *) 5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5204 for as_dir in $PATH 5205 do 5206 IFS=$as_save_IFS 5207 test -z "$as_dir" && as_dir=. 5208 for ac_exec_ext in '' $ac_executable_extensions; do 5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5210 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5212 break 2 5213 fi 5214 done 5215 done 5216 IFS=$as_save_IFS 5217 5218 ;; 5219 esac 5220 fi 5221 CMP=$ac_cv_path_CMP 5222 if test -n "$CMP"; then 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5224 $as_echo "$CMP" >&6; } 5225 else 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5227 $as_echo "no" >&6; } 5228 fi 5229 5230 5231 if test "x$CMP" = x; then 5232 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5233 fi 5234 else 5235 # Otherwise we believe it is a complete path. Use it as it is. 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5237 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5239 $as_echo_n "checking for CMP... " >&6; } 5240 if test ! -x "$tool_specified"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5242 $as_echo "not found" >&6; } 5243 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5244 fi 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5246 $as_echo "$tool_specified" >&6; } 5247 fi 5248 fi 5249 fi 5250 5251 5252 5253 if test "x$CMP" = x; then 5254 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5255 fi 5256 5257 5258 5259 5260 5261 # Publish this variable in the help. 5262 5263 5264 if test "x$COMM" = x; then 5265 # The variable is not set by user, try to locate tool using the code snippet 5266 for ac_prog in comm 5267 do 5268 # Extract the first word of "$ac_prog", so it can be a program name with args. 5269 set dummy $ac_prog; ac_word=$2 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271 $as_echo_n "checking for $ac_word... " >&6; } 5272 if ${ac_cv_path_COMM+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274 else 5275 case $COMM in 5276 [\\/]* | ?:[\\/]*) 5277 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5278 ;; 5279 *) 5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5281 for as_dir in $PATH 5282 do 5283 IFS=$as_save_IFS 5284 test -z "$as_dir" && as_dir=. 5285 for ac_exec_ext in '' $ac_executable_extensions; do 5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5287 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5289 break 2 5290 fi 5291 done 5292 done 5293 IFS=$as_save_IFS 5294 5295 ;; 5296 esac 5297 fi 5298 COMM=$ac_cv_path_COMM 5299 if test -n "$COMM"; then 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5301 $as_echo "$COMM" >&6; } 5302 else 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5304 $as_echo "no" >&6; } 5305 fi 5306 5307 5308 test -n "$COMM" && break 5309 done 5310 5311 else 5312 # The variable is set, but is it from the command line or the environment? 5313 5314 # Try to remove the string !COMM! from our list. 5315 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5316 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5317 # If it failed, the variable was not from the command line. Ignore it, 5318 # but warn the user (except for BASH, which is always set by the calling BASH). 5319 if test "xCOMM" != xBASH; then 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5321 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5322 fi 5323 # Try to locate tool using the code snippet 5324 for ac_prog in comm 5325 do 5326 # Extract the first word of "$ac_prog", so it can be a program name with args. 5327 set dummy $ac_prog; ac_word=$2 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5329 $as_echo_n "checking for $ac_word... " >&6; } 5330 if ${ac_cv_path_COMM+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332 else 5333 case $COMM in 5334 [\\/]* | ?:[\\/]*) 5335 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5336 ;; 5337 *) 5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5339 for as_dir in $PATH 5340 do 5341 IFS=$as_save_IFS 5342 test -z "$as_dir" && as_dir=. 5343 for ac_exec_ext in '' $ac_executable_extensions; do 5344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5345 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5347 break 2 5348 fi 5349 done 5350 done 5351 IFS=$as_save_IFS 5352 5353 ;; 5354 esac 5355 fi 5356 COMM=$ac_cv_path_COMM 5357 if test -n "$COMM"; then 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5359 $as_echo "$COMM" >&6; } 5360 else 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5362 $as_echo "no" >&6; } 5363 fi 5364 5365 5366 test -n "$COMM" && break 5367 done 5368 5369 else 5370 # If it succeeded, then it was overridden by the user. We will use it 5371 # for the tool. 5372 5373 # First remove it from the list of overridden variables, so we can test 5374 # for unknown variables in the end. 5375 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5376 5377 # Check if the provided tool contains a complete path. 5378 tool_specified="$COMM" 5379 tool_basename="${tool_specified##*/}" 5380 if test "x$tool_basename" = "x$tool_specified"; then 5381 # A command without a complete path is provided, search $PATH. 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5383 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5384 # Extract the first word of "$tool_basename", so it can be a program name with args. 5385 set dummy $tool_basename; ac_word=$2 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5387 $as_echo_n "checking for $ac_word... " >&6; } 5388 if ${ac_cv_path_COMM+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390 else 5391 case $COMM in 5392 [\\/]* | ?:[\\/]*) 5393 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5394 ;; 5395 *) 5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397 for as_dir in $PATH 5398 do 5399 IFS=$as_save_IFS 5400 test -z "$as_dir" && as_dir=. 5401 for ac_exec_ext in '' $ac_executable_extensions; do 5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5403 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5405 break 2 5406 fi 5407 done 5408 done 5409 IFS=$as_save_IFS 5410 5411 ;; 5412 esac 5413 fi 5414 COMM=$ac_cv_path_COMM 5415 if test -n "$COMM"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5417 $as_echo "$COMM" >&6; } 5418 else 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5420 $as_echo "no" >&6; } 5421 fi 5422 5423 5424 if test "x$COMM" = x; then 5425 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5426 fi 5427 else 5428 # Otherwise we believe it is a complete path. Use it as it is. 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5430 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5432 $as_echo_n "checking for COMM... " >&6; } 5433 if test ! -x "$tool_specified"; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5435 $as_echo "not found" >&6; } 5436 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5437 fi 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5439 $as_echo "$tool_specified" >&6; } 5440 fi 5441 fi 5442 fi 5443 5444 5445 5446 if test "x$COMM" = x; then 5447 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5448 fi 5449 5450 5451 5452 5453 5454 # Publish this variable in the help. 5455 5456 5457 if test "x$CP" = x; then 5458 # The variable is not set by user, try to locate tool using the code snippet 5459 for ac_prog in cp 5460 do 5461 # Extract the first word of "$ac_prog", so it can be a program name with args. 5462 set dummy $ac_prog; ac_word=$2 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5464 $as_echo_n "checking for $ac_word... " >&6; } 5465 if ${ac_cv_path_CP+:} false; then : 5466 $as_echo_n "(cached) " >&6 5467 else 5468 case $CP in 5469 [\\/]* | ?:[\\/]*) 5470 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5471 ;; 5472 *) 5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5474 for as_dir in $PATH 5475 do 5476 IFS=$as_save_IFS 5477 test -z "$as_dir" && as_dir=. 5478 for ac_exec_ext in '' $ac_executable_extensions; do 5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5480 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5482 break 2 5483 fi 5484 done 5485 done 5486 IFS=$as_save_IFS 5487 5488 ;; 5489 esac 5490 fi 5491 CP=$ac_cv_path_CP 5492 if test -n "$CP"; then 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5494 $as_echo "$CP" >&6; } 5495 else 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5497 $as_echo "no" >&6; } 5498 fi 5499 5500 5501 test -n "$CP" && break 5502 done 5503 5504 else 5505 # The variable is set, but is it from the command line or the environment? 5506 5507 # Try to remove the string !CP! from our list. 5508 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5509 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5510 # If it failed, the variable was not from the command line. Ignore it, 5511 # but warn the user (except for BASH, which is always set by the calling BASH). 5512 if test "xCP" != xBASH; then 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5514 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5515 fi 5516 # Try to locate tool using the code snippet 5517 for ac_prog in cp 5518 do 5519 # Extract the first word of "$ac_prog", so it can be a program name with args. 5520 set dummy $ac_prog; ac_word=$2 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5522 $as_echo_n "checking for $ac_word... " >&6; } 5523 if ${ac_cv_path_CP+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525 else 5526 case $CP in 5527 [\\/]* | ?:[\\/]*) 5528 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5529 ;; 5530 *) 5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5532 for as_dir in $PATH 5533 do 5534 IFS=$as_save_IFS 5535 test -z "$as_dir" && as_dir=. 5536 for ac_exec_ext in '' $ac_executable_extensions; do 5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5538 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5540 break 2 5541 fi 5542 done 5543 done 5544 IFS=$as_save_IFS 5545 5546 ;; 5547 esac 5548 fi 5549 CP=$ac_cv_path_CP 5550 if test -n "$CP"; then 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5552 $as_echo "$CP" >&6; } 5553 else 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5555 $as_echo "no" >&6; } 5556 fi 5557 5558 5559 test -n "$CP" && break 5560 done 5561 5562 else 5563 # If it succeeded, then it was overridden by the user. We will use it 5564 # for the tool. 5565 5566 # First remove it from the list of overridden variables, so we can test 5567 # for unknown variables in the end. 5568 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5569 5570 # Check if the provided tool contains a complete path. 5571 tool_specified="$CP" 5572 tool_basename="${tool_specified##*/}" 5573 if test "x$tool_basename" = "x$tool_specified"; then 5574 # A command without a complete path is provided, search $PATH. 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5576 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5577 # Extract the first word of "$tool_basename", so it can be a program name with args. 5578 set dummy $tool_basename; ac_word=$2 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5580 $as_echo_n "checking for $ac_word... " >&6; } 5581 if ${ac_cv_path_CP+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583 else 5584 case $CP in 5585 [\\/]* | ?:[\\/]*) 5586 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5587 ;; 5588 *) 5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590 for as_dir in $PATH 5591 do 5592 IFS=$as_save_IFS 5593 test -z "$as_dir" && as_dir=. 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5596 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 break 2 5599 fi 5600 done 5601 done 5602 IFS=$as_save_IFS 5603 5604 ;; 5605 esac 5606 fi 5607 CP=$ac_cv_path_CP 5608 if test -n "$CP"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5610 $as_echo "$CP" >&6; } 5611 else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613 $as_echo "no" >&6; } 5614 fi 5615 5616 5617 if test "x$CP" = x; then 5618 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5619 fi 5620 else 5621 # Otherwise we believe it is a complete path. Use it as it is. 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5623 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5625 $as_echo_n "checking for CP... " >&6; } 5626 if test ! -x "$tool_specified"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5628 $as_echo "not found" >&6; } 5629 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5630 fi 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5632 $as_echo "$tool_specified" >&6; } 5633 fi 5634 fi 5635 fi 5636 5637 5638 5639 if test "x$CP" = x; then 5640 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5641 fi 5642 5643 5644 5645 5646 5647 # Publish this variable in the help. 5648 5649 5650 if test "x$CPIO" = x; then 5651 # The variable is not set by user, try to locate tool using the code snippet 5652 for ac_prog in cpio 5653 do 5654 # Extract the first word of "$ac_prog", so it can be a program name with args. 5655 set dummy $ac_prog; ac_word=$2 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657 $as_echo_n "checking for $ac_word... " >&6; } 5658 if ${ac_cv_path_CPIO+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660 else 5661 case $CPIO in 5662 [\\/]* | ?:[\\/]*) 5663 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5664 ;; 5665 *) 5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5667 for as_dir in $PATH 5668 do 5669 IFS=$as_save_IFS 5670 test -z "$as_dir" && as_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5673 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677 done 5678 done 5679 IFS=$as_save_IFS 5680 5681 ;; 5682 esac 5683 fi 5684 CPIO=$ac_cv_path_CPIO 5685 if test -n "$CPIO"; then 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5687 $as_echo "$CPIO" >&6; } 5688 else 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690 $as_echo "no" >&6; } 5691 fi 5692 5693 5694 test -n "$CPIO" && break 5695 done 5696 5697 else 5698 # The variable is set, but is it from the command line or the environment? 5699 5700 # Try to remove the string !CPIO! from our list. 5701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 5702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5703 # If it failed, the variable was not from the command line. Ignore it, 5704 # but warn the user (except for BASH, which is always set by the calling BASH). 5705 if test "xCPIO" != xBASH; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 5707 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 5708 fi 5709 # Try to locate tool using the code snippet 5710 for ac_prog in cpio 5711 do 5712 # Extract the first word of "$ac_prog", so it can be a program name with args. 5713 set dummy $ac_prog; ac_word=$2 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5715 $as_echo_n "checking for $ac_word... " >&6; } 5716 if ${ac_cv_path_CPIO+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718 else 5719 case $CPIO in 5720 [\\/]* | ?:[\\/]*) 5721 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5722 ;; 5723 *) 5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725 for as_dir in $PATH 5726 do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5731 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735 done 5736 done 5737 IFS=$as_save_IFS 5738 5739 ;; 5740 esac 5741 fi 5742 CPIO=$ac_cv_path_CPIO 5743 if test -n "$CPIO"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5745 $as_echo "$CPIO" >&6; } 5746 else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748 $as_echo "no" >&6; } 5749 fi 5750 5751 5752 test -n "$CPIO" && break 5753 done 5754 5755 else 5756 # If it succeeded, then it was overridden by the user. We will use it 5757 # for the tool. 5758 5759 # First remove it from the list of overridden variables, so we can test 5760 # for unknown variables in the end. 5761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5762 5763 # Check if the provided tool contains a complete path. 5764 tool_specified="$CPIO" 5765 tool_basename="${tool_specified##*/}" 5766 if test "x$tool_basename" = "x$tool_specified"; then 5767 # A command without a complete path is provided, search $PATH. 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 5769 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 5770 # Extract the first word of "$tool_basename", so it can be a program name with args. 5771 set dummy $tool_basename; ac_word=$2 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5773 $as_echo_n "checking for $ac_word... " >&6; } 5774 if ${ac_cv_path_CPIO+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776 else 5777 case $CPIO in 5778 [\\/]* | ?:[\\/]*) 5779 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5780 ;; 5781 *) 5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783 for as_dir in $PATH 5784 do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5789 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793 done 5794 done 5795 IFS=$as_save_IFS 5796 5797 ;; 5798 esac 5799 fi 5800 CPIO=$ac_cv_path_CPIO 5801 if test -n "$CPIO"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5803 $as_echo "$CPIO" >&6; } 5804 else 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5806 $as_echo "no" >&6; } 5807 fi 5808 5809 5810 if test "x$CPIO" = x; then 5811 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5812 fi 5813 else 5814 # Otherwise we believe it is a complete path. Use it as it is. 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 5816 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 5818 $as_echo_n "checking for CPIO... " >&6; } 5819 if test ! -x "$tool_specified"; then 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5821 $as_echo "not found" >&6; } 5822 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 5823 fi 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5825 $as_echo "$tool_specified" >&6; } 5826 fi 5827 fi 5828 fi 5829 5830 5831 5832 if test "x$CPIO" = x; then 5833 as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5 5834 fi 5835 5836 5837 5838 5839 5840 # Publish this variable in the help. 5841 5842 5843 if test "x$CUT" = x; then 5844 # The variable is not set by user, try to locate tool using the code snippet 5845 for ac_prog in cut 5846 do 5847 # Extract the first word of "$ac_prog", so it can be a program name with args. 5848 set dummy $ac_prog; ac_word=$2 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5850 $as_echo_n "checking for $ac_word... " >&6; } 5851 if ${ac_cv_path_CUT+:} false; then : 5852 $as_echo_n "(cached) " >&6 5853 else 5854 case $CUT in 5855 [\\/]* | ?:[\\/]*) 5856 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5857 ;; 5858 *) 5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860 for as_dir in $PATH 5861 do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5866 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870 done 5871 done 5872 IFS=$as_save_IFS 5873 5874 ;; 5875 esac 5876 fi 5877 CUT=$ac_cv_path_CUT 5878 if test -n "$CUT"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5880 $as_echo "$CUT" >&6; } 5881 else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883 $as_echo "no" >&6; } 5884 fi 5885 5886 5887 test -n "$CUT" && break 5888 done 5889 5890 else 5891 # The variable is set, but is it from the command line or the environment? 5892 5893 # Try to remove the string !CUT! from our list. 5894 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5895 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5896 # If it failed, the variable was not from the command line. Ignore it, 5897 # but warn the user (except for BASH, which is always set by the calling BASH). 5898 if test "xCUT" != xBASH; then 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5900 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5901 fi 5902 # Try to locate tool using the code snippet 5903 for ac_prog in cut 5904 do 5905 # Extract the first word of "$ac_prog", so it can be a program name with args. 5906 set dummy $ac_prog; ac_word=$2 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908 $as_echo_n "checking for $ac_word... " >&6; } 5909 if ${ac_cv_path_CUT+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911 else 5912 case $CUT in 5913 [\\/]* | ?:[\\/]*) 5914 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5915 ;; 5916 *) 5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5918 for as_dir in $PATH 5919 do 5920 IFS=$as_save_IFS 5921 test -z "$as_dir" && as_dir=. 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5924 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928 done 5929 done 5930 IFS=$as_save_IFS 5931 5932 ;; 5933 esac 5934 fi 5935 CUT=$ac_cv_path_CUT 5936 if test -n "$CUT"; then 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5938 $as_echo "$CUT" >&6; } 5939 else 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5941 $as_echo "no" >&6; } 5942 fi 5943 5944 5945 test -n "$CUT" && break 5946 done 5947 5948 else 5949 # If it succeeded, then it was overridden by the user. We will use it 5950 # for the tool. 5951 5952 # First remove it from the list of overridden variables, so we can test 5953 # for unknown variables in the end. 5954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5955 5956 # Check if the provided tool contains a complete path. 5957 tool_specified="$CUT" 5958 tool_basename="${tool_specified##*/}" 5959 if test "x$tool_basename" = "x$tool_specified"; then 5960 # A command without a complete path is provided, search $PATH. 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5962 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5963 # Extract the first word of "$tool_basename", so it can be a program name with args. 5964 set dummy $tool_basename; ac_word=$2 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966 $as_echo_n "checking for $ac_word... " >&6; } 5967 if ${ac_cv_path_CUT+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969 else 5970 case $CUT in 5971 [\\/]* | ?:[\\/]*) 5972 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5973 ;; 5974 *) 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976 for as_dir in $PATH 5977 do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5982 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986 done 5987 done 5988 IFS=$as_save_IFS 5989 5990 ;; 5991 esac 5992 fi 5993 CUT=$ac_cv_path_CUT 5994 if test -n "$CUT"; then 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5996 $as_echo "$CUT" >&6; } 5997 else 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5999 $as_echo "no" >&6; } 6000 fi 6001 6002 6003 if test "x$CUT" = x; then 6004 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6005 fi 6006 else 6007 # Otherwise we believe it is a complete path. Use it as it is. 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6009 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6011 $as_echo_n "checking for CUT... " >&6; } 6012 if test ! -x "$tool_specified"; then 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6014 $as_echo "not found" >&6; } 6015 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6016 fi 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6018 $as_echo "$tool_specified" >&6; } 6019 fi 6020 fi 6021 fi 6022 6023 6024 6025 if test "x$CUT" = x; then 6026 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6027 fi 6028 6029 6030 6031 6032 6033 # Publish this variable in the help. 6034 6035 6036 if test "x$DATE" = x; then 6037 # The variable is not set by user, try to locate tool using the code snippet 6038 for ac_prog in date 6039 do 6040 # Extract the first word of "$ac_prog", so it can be a program name with args. 6041 set dummy $ac_prog; ac_word=$2 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6043 $as_echo_n "checking for $ac_word... " >&6; } 6044 if ${ac_cv_path_DATE+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046 else 6047 case $DATE in 6048 [\\/]* | ?:[\\/]*) 6049 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6050 ;; 6051 *) 6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053 for as_dir in $PATH 6054 do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6059 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063 done 6064 done 6065 IFS=$as_save_IFS 6066 6067 ;; 6068 esac 6069 fi 6070 DATE=$ac_cv_path_DATE 6071 if test -n "$DATE"; then 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6073 $as_echo "$DATE" >&6; } 6074 else 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6076 $as_echo "no" >&6; } 6077 fi 6078 6079 6080 test -n "$DATE" && break 6081 done 6082 6083 else 6084 # The variable is set, but is it from the command line or the environment? 6085 6086 # Try to remove the string !DATE! from our list. 6087 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6088 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6089 # If it failed, the variable was not from the command line. Ignore it, 6090 # but warn the user (except for BASH, which is always set by the calling BASH). 6091 if test "xDATE" != xBASH; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6093 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6094 fi 6095 # Try to locate tool using the code snippet 6096 for ac_prog in date 6097 do 6098 # Extract the first word of "$ac_prog", so it can be a program name with args. 6099 set dummy $ac_prog; ac_word=$2 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6101 $as_echo_n "checking for $ac_word... " >&6; } 6102 if ${ac_cv_path_DATE+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104 else 6105 case $DATE in 6106 [\\/]* | ?:[\\/]*) 6107 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6108 ;; 6109 *) 6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111 for as_dir in $PATH 6112 do 6113 IFS=$as_save_IFS 6114 test -z "$as_dir" && as_dir=. 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6117 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121 done 6122 done 6123 IFS=$as_save_IFS 6124 6125 ;; 6126 esac 6127 fi 6128 DATE=$ac_cv_path_DATE 6129 if test -n "$DATE"; then 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6131 $as_echo "$DATE" >&6; } 6132 else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6134 $as_echo "no" >&6; } 6135 fi 6136 6137 6138 test -n "$DATE" && break 6139 done 6140 6141 else 6142 # If it succeeded, then it was overridden by the user. We will use it 6143 # for the tool. 6144 6145 # First remove it from the list of overridden variables, so we can test 6146 # for unknown variables in the end. 6147 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6148 6149 # Check if the provided tool contains a complete path. 6150 tool_specified="$DATE" 6151 tool_basename="${tool_specified##*/}" 6152 if test "x$tool_basename" = "x$tool_specified"; then 6153 # A command without a complete path is provided, search $PATH. 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6155 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6156 # Extract the first word of "$tool_basename", so it can be a program name with args. 6157 set dummy $tool_basename; ac_word=$2 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159 $as_echo_n "checking for $ac_word... " >&6; } 6160 if ${ac_cv_path_DATE+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162 else 6163 case $DATE in 6164 [\\/]* | ?:[\\/]*) 6165 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6166 ;; 6167 *) 6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169 for as_dir in $PATH 6170 do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 for ac_exec_ext in '' $ac_executable_extensions; do 6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6175 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6177 break 2 6178 fi 6179 done 6180 done 6181 IFS=$as_save_IFS 6182 6183 ;; 6184 esac 6185 fi 6186 DATE=$ac_cv_path_DATE 6187 if test -n "$DATE"; then 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6189 $as_echo "$DATE" >&6; } 6190 else 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6192 $as_echo "no" >&6; } 6193 fi 6194 6195 6196 if test "x$DATE" = x; then 6197 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6198 fi 6199 else 6200 # Otherwise we believe it is a complete path. Use it as it is. 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6202 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6204 $as_echo_n "checking for DATE... " >&6; } 6205 if test ! -x "$tool_specified"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6207 $as_echo "not found" >&6; } 6208 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6209 fi 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6211 $as_echo "$tool_specified" >&6; } 6212 fi 6213 fi 6214 fi 6215 6216 6217 6218 if test "x$DATE" = x; then 6219 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6220 fi 6221 6222 6223 6224 6225 6226 # Publish this variable in the help. 6227 6228 6229 if test "x$DIFF" = x; then 6230 # The variable is not set by user, try to locate tool using the code snippet 6231 for ac_prog in gdiff diff 6232 do 6233 # Extract the first word of "$ac_prog", so it can be a program name with args. 6234 set dummy $ac_prog; ac_word=$2 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236 $as_echo_n "checking for $ac_word... " >&6; } 6237 if ${ac_cv_path_DIFF+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239 else 6240 case $DIFF in 6241 [\\/]* | ?:[\\/]*) 6242 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6243 ;; 6244 *) 6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246 for as_dir in $PATH 6247 do 6248 IFS=$as_save_IFS 6249 test -z "$as_dir" && as_dir=. 6250 for ac_exec_ext in '' $ac_executable_extensions; do 6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6252 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6254 break 2 6255 fi 6256 done 6257 done 6258 IFS=$as_save_IFS 6259 6260 ;; 6261 esac 6262 fi 6263 DIFF=$ac_cv_path_DIFF 6264 if test -n "$DIFF"; then 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6266 $as_echo "$DIFF" >&6; } 6267 else 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6269 $as_echo "no" >&6; } 6270 fi 6271 6272 6273 test -n "$DIFF" && break 6274 done 6275 6276 else 6277 # The variable is set, but is it from the command line or the environment? 6278 6279 # Try to remove the string !DIFF! from our list. 6280 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6281 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6282 # If it failed, the variable was not from the command line. Ignore it, 6283 # but warn the user (except for BASH, which is always set by the calling BASH). 6284 if test "xDIFF" != xBASH; then 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6286 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6287 fi 6288 # Try to locate tool using the code snippet 6289 for ac_prog in gdiff diff 6290 do 6291 # Extract the first word of "$ac_prog", so it can be a program name with args. 6292 set dummy $ac_prog; ac_word=$2 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6294 $as_echo_n "checking for $ac_word... " >&6; } 6295 if ${ac_cv_path_DIFF+:} false; then : 6296 $as_echo_n "(cached) " >&6 6297 else 6298 case $DIFF in 6299 [\\/]* | ?:[\\/]*) 6300 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6301 ;; 6302 *) 6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304 for as_dir in $PATH 6305 do 6306 IFS=$as_save_IFS 6307 test -z "$as_dir" && as_dir=. 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6310 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6312 break 2 6313 fi 6314 done 6315 done 6316 IFS=$as_save_IFS 6317 6318 ;; 6319 esac 6320 fi 6321 DIFF=$ac_cv_path_DIFF 6322 if test -n "$DIFF"; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6324 $as_echo "$DIFF" >&6; } 6325 else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6327 $as_echo "no" >&6; } 6328 fi 6329 6330 6331 test -n "$DIFF" && break 6332 done 6333 6334 else 6335 # If it succeeded, then it was overridden by the user. We will use it 6336 # for the tool. 6337 6338 # First remove it from the list of overridden variables, so we can test 6339 # for unknown variables in the end. 6340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6341 6342 # Check if the provided tool contains a complete path. 6343 tool_specified="$DIFF" 6344 tool_basename="${tool_specified##*/}" 6345 if test "x$tool_basename" = "x$tool_specified"; then 6346 # A command without a complete path is provided, search $PATH. 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6348 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6349 # Extract the first word of "$tool_basename", so it can be a program name with args. 6350 set dummy $tool_basename; ac_word=$2 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6352 $as_echo_n "checking for $ac_word... " >&6; } 6353 if ${ac_cv_path_DIFF+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355 else 6356 case $DIFF in 6357 [\\/]* | ?:[\\/]*) 6358 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6359 ;; 6360 *) 6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362 for as_dir in $PATH 6363 do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6368 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372 done 6373 done 6374 IFS=$as_save_IFS 6375 6376 ;; 6377 esac 6378 fi 6379 DIFF=$ac_cv_path_DIFF 6380 if test -n "$DIFF"; then 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6382 $as_echo "$DIFF" >&6; } 6383 else 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6385 $as_echo "no" >&6; } 6386 fi 6387 6388 6389 if test "x$DIFF" = x; then 6390 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6391 fi 6392 else 6393 # Otherwise we believe it is a complete path. Use it as it is. 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6395 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6397 $as_echo_n "checking for DIFF... " >&6; } 6398 if test ! -x "$tool_specified"; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6400 $as_echo "not found" >&6; } 6401 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6402 fi 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6404 $as_echo "$tool_specified" >&6; } 6405 fi 6406 fi 6407 fi 6408 6409 6410 6411 if test "x$DIFF" = x; then 6412 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6413 fi 6414 6415 6416 6417 6418 6419 # Publish this variable in the help. 6420 6421 6422 if test "x$DIRNAME" = x; then 6423 # The variable is not set by user, try to locate tool using the code snippet 6424 for ac_prog in dirname 6425 do 6426 # Extract the first word of "$ac_prog", so it can be a program name with args. 6427 set dummy $ac_prog; ac_word=$2 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6429 $as_echo_n "checking for $ac_word... " >&6; } 6430 if ${ac_cv_path_DIRNAME+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432 else 6433 case $DIRNAME in 6434 [\\/]* | ?:[\\/]*) 6435 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6436 ;; 6437 *) 6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439 for as_dir in $PATH 6440 do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6445 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449 done 6450 done 6451 IFS=$as_save_IFS 6452 6453 ;; 6454 esac 6455 fi 6456 DIRNAME=$ac_cv_path_DIRNAME 6457 if test -n "$DIRNAME"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6459 $as_echo "$DIRNAME" >&6; } 6460 else 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462 $as_echo "no" >&6; } 6463 fi 6464 6465 6466 test -n "$DIRNAME" && break 6467 done 6468 6469 else 6470 # The variable is set, but is it from the command line or the environment? 6471 6472 # Try to remove the string !DIRNAME! from our list. 6473 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6474 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6475 # If it failed, the variable was not from the command line. Ignore it, 6476 # but warn the user (except for BASH, which is always set by the calling BASH). 6477 if test "xDIRNAME" != xBASH; then 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6479 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6480 fi 6481 # Try to locate tool using the code snippet 6482 for ac_prog in dirname 6483 do 6484 # Extract the first word of "$ac_prog", so it can be a program name with args. 6485 set dummy $ac_prog; ac_word=$2 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6487 $as_echo_n "checking for $ac_word... " >&6; } 6488 if ${ac_cv_path_DIRNAME+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490 else 6491 case $DIRNAME in 6492 [\\/]* | ?:[\\/]*) 6493 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6494 ;; 6495 *) 6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6497 for as_dir in $PATH 6498 do 6499 IFS=$as_save_IFS 6500 test -z "$as_dir" && as_dir=. 6501 for ac_exec_ext in '' $ac_executable_extensions; do 6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6503 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6505 break 2 6506 fi 6507 done 6508 done 6509 IFS=$as_save_IFS 6510 6511 ;; 6512 esac 6513 fi 6514 DIRNAME=$ac_cv_path_DIRNAME 6515 if test -n "$DIRNAME"; then 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6517 $as_echo "$DIRNAME" >&6; } 6518 else 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6520 $as_echo "no" >&6; } 6521 fi 6522 6523 6524 test -n "$DIRNAME" && break 6525 done 6526 6527 else 6528 # If it succeeded, then it was overridden by the user. We will use it 6529 # for the tool. 6530 6531 # First remove it from the list of overridden variables, so we can test 6532 # for unknown variables in the end. 6533 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6534 6535 # Check if the provided tool contains a complete path. 6536 tool_specified="$DIRNAME" 6537 tool_basename="${tool_specified##*/}" 6538 if test "x$tool_basename" = "x$tool_specified"; then 6539 # A command without a complete path is provided, search $PATH. 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6541 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6542 # Extract the first word of "$tool_basename", so it can be a program name with args. 6543 set dummy $tool_basename; ac_word=$2 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6545 $as_echo_n "checking for $ac_word... " >&6; } 6546 if ${ac_cv_path_DIRNAME+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548 else 6549 case $DIRNAME in 6550 [\\/]* | ?:[\\/]*) 6551 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6552 ;; 6553 *) 6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555 for as_dir in $PATH 6556 do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565 done 6566 done 6567 IFS=$as_save_IFS 6568 6569 ;; 6570 esac 6571 fi 6572 DIRNAME=$ac_cv_path_DIRNAME 6573 if test -n "$DIRNAME"; then 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6575 $as_echo "$DIRNAME" >&6; } 6576 else 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6578 $as_echo "no" >&6; } 6579 fi 6580 6581 6582 if test "x$DIRNAME" = x; then 6583 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6584 fi 6585 else 6586 # Otherwise we believe it is a complete path. Use it as it is. 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6588 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6590 $as_echo_n "checking for DIRNAME... " >&6; } 6591 if test ! -x "$tool_specified"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6593 $as_echo "not found" >&6; } 6594 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6595 fi 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6597 $as_echo "$tool_specified" >&6; } 6598 fi 6599 fi 6600 fi 6601 6602 6603 6604 if test "x$DIRNAME" = x; then 6605 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6606 fi 6607 6608 6609 6610 6611 6612 # Publish this variable in the help. 6613 6614 6615 if test "x$ECHO" = x; then 6616 # The variable is not set by user, try to locate tool using the code snippet 6617 for ac_prog in echo 6618 do 6619 # Extract the first word of "$ac_prog", so it can be a program name with args. 6620 set dummy $ac_prog; ac_word=$2 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6622 $as_echo_n "checking for $ac_word... " >&6; } 6623 if ${ac_cv_path_ECHO+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625 else 6626 case $ECHO in 6627 [\\/]* | ?:[\\/]*) 6628 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6629 ;; 6630 *) 6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6632 for as_dir in $PATH 6633 do 6634 IFS=$as_save_IFS 6635 test -z "$as_dir" && as_dir=. 6636 for ac_exec_ext in '' $ac_executable_extensions; do 6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6638 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6640 break 2 6641 fi 6642 done 6643 done 6644 IFS=$as_save_IFS 6645 6646 ;; 6647 esac 6648 fi 6649 ECHO=$ac_cv_path_ECHO 6650 if test -n "$ECHO"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6652 $as_echo "$ECHO" >&6; } 6653 else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655 $as_echo "no" >&6; } 6656 fi 6657 6658 6659 test -n "$ECHO" && break 6660 done 6661 6662 else 6663 # The variable is set, but is it from the command line or the environment? 6664 6665 # Try to remove the string !ECHO! from our list. 6666 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6667 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6668 # If it failed, the variable was not from the command line. Ignore it, 6669 # but warn the user (except for BASH, which is always set by the calling BASH). 6670 if test "xECHO" != xBASH; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6672 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6673 fi 6674 # Try to locate tool using the code snippet 6675 for ac_prog in echo 6676 do 6677 # Extract the first word of "$ac_prog", so it can be a program name with args. 6678 set dummy $ac_prog; ac_word=$2 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6680 $as_echo_n "checking for $ac_word... " >&6; } 6681 if ${ac_cv_path_ECHO+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683 else 6684 case $ECHO in 6685 [\\/]* | ?:[\\/]*) 6686 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6687 ;; 6688 *) 6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690 for as_dir in $PATH 6691 do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6696 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700 done 6701 done 6702 IFS=$as_save_IFS 6703 6704 ;; 6705 esac 6706 fi 6707 ECHO=$ac_cv_path_ECHO 6708 if test -n "$ECHO"; then 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6710 $as_echo "$ECHO" >&6; } 6711 else 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6713 $as_echo "no" >&6; } 6714 fi 6715 6716 6717 test -n "$ECHO" && break 6718 done 6719 6720 else 6721 # If it succeeded, then it was overridden by the user. We will use it 6722 # for the tool. 6723 6724 # First remove it from the list of overridden variables, so we can test 6725 # for unknown variables in the end. 6726 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6727 6728 # Check if the provided tool contains a complete path. 6729 tool_specified="$ECHO" 6730 tool_basename="${tool_specified##*/}" 6731 if test "x$tool_basename" = "x$tool_specified"; then 6732 # A command without a complete path is provided, search $PATH. 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6734 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6735 # Extract the first word of "$tool_basename", so it can be a program name with args. 6736 set dummy $tool_basename; ac_word=$2 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738 $as_echo_n "checking for $ac_word... " >&6; } 6739 if ${ac_cv_path_ECHO+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741 else 6742 case $ECHO in 6743 [\\/]* | ?:[\\/]*) 6744 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6745 ;; 6746 *) 6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748 for as_dir in $PATH 6749 do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6754 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758 done 6759 done 6760 IFS=$as_save_IFS 6761 6762 ;; 6763 esac 6764 fi 6765 ECHO=$ac_cv_path_ECHO 6766 if test -n "$ECHO"; then 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6768 $as_echo "$ECHO" >&6; } 6769 else 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771 $as_echo "no" >&6; } 6772 fi 6773 6774 6775 if test "x$ECHO" = x; then 6776 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6777 fi 6778 else 6779 # Otherwise we believe it is a complete path. Use it as it is. 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6781 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6783 $as_echo_n "checking for ECHO... " >&6; } 6784 if test ! -x "$tool_specified"; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6786 $as_echo "not found" >&6; } 6787 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6788 fi 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6790 $as_echo "$tool_specified" >&6; } 6791 fi 6792 fi 6793 fi 6794 6795 6796 6797 if test "x$ECHO" = x; then 6798 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6799 fi 6800 6801 6802 6803 6804 6805 # Publish this variable in the help. 6806 6807 6808 if test "x$EXPR" = x; then 6809 # The variable is not set by user, try to locate tool using the code snippet 6810 for ac_prog in expr 6811 do 6812 # Extract the first word of "$ac_prog", so it can be a program name with args. 6813 set dummy $ac_prog; ac_word=$2 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6815 $as_echo_n "checking for $ac_word... " >&6; } 6816 if ${ac_cv_path_EXPR+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818 else 6819 case $EXPR in 6820 [\\/]* | ?:[\\/]*) 6821 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6822 ;; 6823 *) 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825 for as_dir in $PATH 6826 do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6831 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835 done 6836 done 6837 IFS=$as_save_IFS 6838 6839 ;; 6840 esac 6841 fi 6842 EXPR=$ac_cv_path_EXPR 6843 if test -n "$EXPR"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6845 $as_echo "$EXPR" >&6; } 6846 else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848 $as_echo "no" >&6; } 6849 fi 6850 6851 6852 test -n "$EXPR" && break 6853 done 6854 6855 else 6856 # The variable is set, but is it from the command line or the environment? 6857 6858 # Try to remove the string !EXPR! from our list. 6859 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6860 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6861 # If it failed, the variable was not from the command line. Ignore it, 6862 # but warn the user (except for BASH, which is always set by the calling BASH). 6863 if test "xEXPR" != xBASH; then 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6865 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6866 fi 6867 # Try to locate tool using the code snippet 6868 for ac_prog in expr 6869 do 6870 # Extract the first word of "$ac_prog", so it can be a program name with args. 6871 set dummy $ac_prog; ac_word=$2 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6873 $as_echo_n "checking for $ac_word... " >&6; } 6874 if ${ac_cv_path_EXPR+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876 else 6877 case $EXPR in 6878 [\\/]* | ?:[\\/]*) 6879 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6880 ;; 6881 *) 6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6883 for as_dir in $PATH 6884 do 6885 IFS=$as_save_IFS 6886 test -z "$as_dir" && as_dir=. 6887 for ac_exec_ext in '' $ac_executable_extensions; do 6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6889 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6891 break 2 6892 fi 6893 done 6894 done 6895 IFS=$as_save_IFS 6896 6897 ;; 6898 esac 6899 fi 6900 EXPR=$ac_cv_path_EXPR 6901 if test -n "$EXPR"; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6903 $as_echo "$EXPR" >&6; } 6904 else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6906 $as_echo "no" >&6; } 6907 fi 6908 6909 6910 test -n "$EXPR" && break 6911 done 6912 6913 else 6914 # If it succeeded, then it was overridden by the user. We will use it 6915 # for the tool. 6916 6917 # First remove it from the list of overridden variables, so we can test 6918 # for unknown variables in the end. 6919 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6920 6921 # Check if the provided tool contains a complete path. 6922 tool_specified="$EXPR" 6923 tool_basename="${tool_specified##*/}" 6924 if test "x$tool_basename" = "x$tool_specified"; then 6925 # A command without a complete path is provided, search $PATH. 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6927 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6928 # Extract the first word of "$tool_basename", so it can be a program name with args. 6929 set dummy $tool_basename; ac_word=$2 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6931 $as_echo_n "checking for $ac_word... " >&6; } 6932 if ${ac_cv_path_EXPR+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934 else 6935 case $EXPR in 6936 [\\/]* | ?:[\\/]*) 6937 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6938 ;; 6939 *) 6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941 for as_dir in $PATH 6942 do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6947 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951 done 6952 done 6953 IFS=$as_save_IFS 6954 6955 ;; 6956 esac 6957 fi 6958 EXPR=$ac_cv_path_EXPR 6959 if test -n "$EXPR"; then 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6961 $as_echo "$EXPR" >&6; } 6962 else 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6964 $as_echo "no" >&6; } 6965 fi 6966 6967 6968 if test "x$EXPR" = x; then 6969 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6970 fi 6971 else 6972 # Otherwise we believe it is a complete path. Use it as it is. 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6974 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6976 $as_echo_n "checking for EXPR... " >&6; } 6977 if test ! -x "$tool_specified"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6979 $as_echo "not found" >&6; } 6980 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6981 fi 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6983 $as_echo "$tool_specified" >&6; } 6984 fi 6985 fi 6986 fi 6987 6988 6989 6990 if test "x$EXPR" = x; then 6991 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6992 fi 6993 6994 6995 6996 6997 6998 # Publish this variable in the help. 6999 7000 7001 if test "x$FILE" = x; then 7002 # The variable is not set by user, try to locate tool using the code snippet 7003 for ac_prog in file 7004 do 7005 # Extract the first word of "$ac_prog", so it can be a program name with args. 7006 set dummy $ac_prog; ac_word=$2 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7008 $as_echo_n "checking for $ac_word... " >&6; } 7009 if ${ac_cv_path_FILE+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011 else 7012 case $FILE in 7013 [\\/]* | ?:[\\/]*) 7014 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7015 ;; 7016 *) 7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018 for as_dir in $PATH 7019 do 7020 IFS=$as_save_IFS 7021 test -z "$as_dir" && as_dir=. 7022 for ac_exec_ext in '' $ac_executable_extensions; do 7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7024 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7026 break 2 7027 fi 7028 done 7029 done 7030 IFS=$as_save_IFS 7031 7032 ;; 7033 esac 7034 fi 7035 FILE=$ac_cv_path_FILE 7036 if test -n "$FILE"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7038 $as_echo "$FILE" >&6; } 7039 else 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041 $as_echo "no" >&6; } 7042 fi 7043 7044 7045 test -n "$FILE" && break 7046 done 7047 7048 else 7049 # The variable is set, but is it from the command line or the environment? 7050 7051 # Try to remove the string !FILE! from our list. 7052 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7053 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7054 # If it failed, the variable was not from the command line. Ignore it, 7055 # but warn the user (except for BASH, which is always set by the calling BASH). 7056 if test "xFILE" != xBASH; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7058 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7059 fi 7060 # Try to locate tool using the code snippet 7061 for ac_prog in file 7062 do 7063 # Extract the first word of "$ac_prog", so it can be a program name with args. 7064 set dummy $ac_prog; ac_word=$2 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7066 $as_echo_n "checking for $ac_word... " >&6; } 7067 if ${ac_cv_path_FILE+:} false; then : 7068 $as_echo_n "(cached) " >&6 7069 else 7070 case $FILE in 7071 [\\/]* | ?:[\\/]*) 7072 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7073 ;; 7074 *) 7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7076 for as_dir in $PATH 7077 do 7078 IFS=$as_save_IFS 7079 test -z "$as_dir" && as_dir=. 7080 for ac_exec_ext in '' $ac_executable_extensions; do 7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7082 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7084 break 2 7085 fi 7086 done 7087 done 7088 IFS=$as_save_IFS 7089 7090 ;; 7091 esac 7092 fi 7093 FILE=$ac_cv_path_FILE 7094 if test -n "$FILE"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7096 $as_echo "$FILE" >&6; } 7097 else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7099 $as_echo "no" >&6; } 7100 fi 7101 7102 7103 test -n "$FILE" && break 7104 done 7105 7106 else 7107 # If it succeeded, then it was overridden by the user. We will use it 7108 # for the tool. 7109 7110 # First remove it from the list of overridden variables, so we can test 7111 # for unknown variables in the end. 7112 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7113 7114 # Check if the provided tool contains a complete path. 7115 tool_specified="$FILE" 7116 tool_basename="${tool_specified##*/}" 7117 if test "x$tool_basename" = "x$tool_specified"; then 7118 # A command without a complete path is provided, search $PATH. 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7120 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7121 # Extract the first word of "$tool_basename", so it can be a program name with args. 7122 set dummy $tool_basename; ac_word=$2 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124 $as_echo_n "checking for $ac_word... " >&6; } 7125 if ${ac_cv_path_FILE+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127 else 7128 case $FILE in 7129 [\\/]* | ?:[\\/]*) 7130 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7131 ;; 7132 *) 7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7134 for as_dir in $PATH 7135 do 7136 IFS=$as_save_IFS 7137 test -z "$as_dir" && as_dir=. 7138 for ac_exec_ext in '' $ac_executable_extensions; do 7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7140 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7142 break 2 7143 fi 7144 done 7145 done 7146 IFS=$as_save_IFS 7147 7148 ;; 7149 esac 7150 fi 7151 FILE=$ac_cv_path_FILE 7152 if test -n "$FILE"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7154 $as_echo "$FILE" >&6; } 7155 else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7157 $as_echo "no" >&6; } 7158 fi 7159 7160 7161 if test "x$FILE" = x; then 7162 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7163 fi 7164 else 7165 # Otherwise we believe it is a complete path. Use it as it is. 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7167 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7169 $as_echo_n "checking for FILE... " >&6; } 7170 if test ! -x "$tool_specified"; then 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7172 $as_echo "not found" >&6; } 7173 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7174 fi 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7176 $as_echo "$tool_specified" >&6; } 7177 fi 7178 fi 7179 fi 7180 7181 7182 7183 if test "x$FILE" = x; then 7184 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7185 fi 7186 7187 7188 7189 7190 7191 # Publish this variable in the help. 7192 7193 7194 if test "x$FIND" = x; then 7195 # The variable is not set by user, try to locate tool using the code snippet 7196 for ac_prog in find 7197 do 7198 # Extract the first word of "$ac_prog", so it can be a program name with args. 7199 set dummy $ac_prog; ac_word=$2 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7201 $as_echo_n "checking for $ac_word... " >&6; } 7202 if ${ac_cv_path_FIND+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204 else 7205 case $FIND in 7206 [\\/]* | ?:[\\/]*) 7207 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7208 ;; 7209 *) 7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7211 for as_dir in $PATH 7212 do 7213 IFS=$as_save_IFS 7214 test -z "$as_dir" && as_dir=. 7215 for ac_exec_ext in '' $ac_executable_extensions; do 7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7217 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7219 break 2 7220 fi 7221 done 7222 done 7223 IFS=$as_save_IFS 7224 7225 ;; 7226 esac 7227 fi 7228 FIND=$ac_cv_path_FIND 7229 if test -n "$FIND"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7231 $as_echo "$FIND" >&6; } 7232 else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234 $as_echo "no" >&6; } 7235 fi 7236 7237 7238 test -n "$FIND" && break 7239 done 7240 7241 else 7242 # The variable is set, but is it from the command line or the environment? 7243 7244 # Try to remove the string !FIND! from our list. 7245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7247 # If it failed, the variable was not from the command line. Ignore it, 7248 # but warn the user (except for BASH, which is always set by the calling BASH). 7249 if test "xFIND" != xBASH; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7251 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7252 fi 7253 # Try to locate tool using the code snippet 7254 for ac_prog in find 7255 do 7256 # Extract the first word of "$ac_prog", so it can be a program name with args. 7257 set dummy $ac_prog; ac_word=$2 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7259 $as_echo_n "checking for $ac_word... " >&6; } 7260 if ${ac_cv_path_FIND+:} false; then : 7261 $as_echo_n "(cached) " >&6 7262 else 7263 case $FIND in 7264 [\\/]* | ?:[\\/]*) 7265 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7266 ;; 7267 *) 7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269 for as_dir in $PATH 7270 do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7275 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279 done 7280 done 7281 IFS=$as_save_IFS 7282 7283 ;; 7284 esac 7285 fi 7286 FIND=$ac_cv_path_FIND 7287 if test -n "$FIND"; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7289 $as_echo "$FIND" >&6; } 7290 else 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7292 $as_echo "no" >&6; } 7293 fi 7294 7295 7296 test -n "$FIND" && break 7297 done 7298 7299 else 7300 # If it succeeded, then it was overridden by the user. We will use it 7301 # for the tool. 7302 7303 # First remove it from the list of overridden variables, so we can test 7304 # for unknown variables in the end. 7305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7306 7307 # Check if the provided tool contains a complete path. 7308 tool_specified="$FIND" 7309 tool_basename="${tool_specified##*/}" 7310 if test "x$tool_basename" = "x$tool_specified"; then 7311 # A command without a complete path is provided, search $PATH. 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7313 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7314 # Extract the first word of "$tool_basename", so it can be a program name with args. 7315 set dummy $tool_basename; ac_word=$2 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7317 $as_echo_n "checking for $ac_word... " >&6; } 7318 if ${ac_cv_path_FIND+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320 else 7321 case $FIND in 7322 [\\/]* | ?:[\\/]*) 7323 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7324 ;; 7325 *) 7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327 for as_dir in $PATH 7328 do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_exec_ext in '' $ac_executable_extensions; do 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7333 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7335 break 2 7336 fi 7337 done 7338 done 7339 IFS=$as_save_IFS 7340 7341 ;; 7342 esac 7343 fi 7344 FIND=$ac_cv_path_FIND 7345 if test -n "$FIND"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7347 $as_echo "$FIND" >&6; } 7348 else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7350 $as_echo "no" >&6; } 7351 fi 7352 7353 7354 if test "x$FIND" = x; then 7355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7356 fi 7357 else 7358 # Otherwise we believe it is a complete path. Use it as it is. 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7360 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7362 $as_echo_n "checking for FIND... " >&6; } 7363 if test ! -x "$tool_specified"; then 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7365 $as_echo "not found" >&6; } 7366 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7367 fi 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7369 $as_echo "$tool_specified" >&6; } 7370 fi 7371 fi 7372 fi 7373 7374 7375 7376 if test "x$FIND" = x; then 7377 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7378 fi 7379 7380 7381 7382 7383 7384 # Publish this variable in the help. 7385 7386 7387 if test "x$HEAD" = x; then 7388 # The variable is not set by user, try to locate tool using the code snippet 7389 for ac_prog in head 7390 do 7391 # Extract the first word of "$ac_prog", so it can be a program name with args. 7392 set dummy $ac_prog; ac_word=$2 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7394 $as_echo_n "checking for $ac_word... " >&6; } 7395 if ${ac_cv_path_HEAD+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397 else 7398 case $HEAD in 7399 [\\/]* | ?:[\\/]*) 7400 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7401 ;; 7402 *) 7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404 for as_dir in $PATH 7405 do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414 done 7415 done 7416 IFS=$as_save_IFS 7417 7418 ;; 7419 esac 7420 fi 7421 HEAD=$ac_cv_path_HEAD 7422 if test -n "$HEAD"; then 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7424 $as_echo "$HEAD" >&6; } 7425 else 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7427 $as_echo "no" >&6; } 7428 fi 7429 7430 7431 test -n "$HEAD" && break 7432 done 7433 7434 else 7435 # The variable is set, but is it from the command line or the environment? 7436 7437 # Try to remove the string !HEAD! from our list. 7438 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7439 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7440 # If it failed, the variable was not from the command line. Ignore it, 7441 # but warn the user (except for BASH, which is always set by the calling BASH). 7442 if test "xHEAD" != xBASH; then 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7444 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7445 fi 7446 # Try to locate tool using the code snippet 7447 for ac_prog in head 7448 do 7449 # Extract the first word of "$ac_prog", so it can be a program name with args. 7450 set dummy $ac_prog; ac_word=$2 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7452 $as_echo_n "checking for $ac_word... " >&6; } 7453 if ${ac_cv_path_HEAD+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455 else 7456 case $HEAD in 7457 [\\/]* | ?:[\\/]*) 7458 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7459 ;; 7460 *) 7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7462 for as_dir in $PATH 7463 do 7464 IFS=$as_save_IFS 7465 test -z "$as_dir" && as_dir=. 7466 for ac_exec_ext in '' $ac_executable_extensions; do 7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7468 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7470 break 2 7471 fi 7472 done 7473 done 7474 IFS=$as_save_IFS 7475 7476 ;; 7477 esac 7478 fi 7479 HEAD=$ac_cv_path_HEAD 7480 if test -n "$HEAD"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7482 $as_echo "$HEAD" >&6; } 7483 else 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7485 $as_echo "no" >&6; } 7486 fi 7487 7488 7489 test -n "$HEAD" && break 7490 done 7491 7492 else 7493 # If it succeeded, then it was overridden by the user. We will use it 7494 # for the tool. 7495 7496 # First remove it from the list of overridden variables, so we can test 7497 # for unknown variables in the end. 7498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7499 7500 # Check if the provided tool contains a complete path. 7501 tool_specified="$HEAD" 7502 tool_basename="${tool_specified##*/}" 7503 if test "x$tool_basename" = "x$tool_specified"; then 7504 # A command without a complete path is provided, search $PATH. 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7506 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7507 # Extract the first word of "$tool_basename", so it can be a program name with args. 7508 set dummy $tool_basename; ac_word=$2 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510 $as_echo_n "checking for $ac_word... " >&6; } 7511 if ${ac_cv_path_HEAD+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513 else 7514 case $HEAD in 7515 [\\/]* | ?:[\\/]*) 7516 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7517 ;; 7518 *) 7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7520 for as_dir in $PATH 7521 do 7522 IFS=$as_save_IFS 7523 test -z "$as_dir" && as_dir=. 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7526 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7528 break 2 7529 fi 7530 done 7531 done 7532 IFS=$as_save_IFS 7533 7534 ;; 7535 esac 7536 fi 7537 HEAD=$ac_cv_path_HEAD 7538 if test -n "$HEAD"; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7540 $as_echo "$HEAD" >&6; } 7541 else 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543 $as_echo "no" >&6; } 7544 fi 7545 7546 7547 if test "x$HEAD" = x; then 7548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7549 fi 7550 else 7551 # Otherwise we believe it is a complete path. Use it as it is. 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7553 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7555 $as_echo_n "checking for HEAD... " >&6; } 7556 if test ! -x "$tool_specified"; then 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7558 $as_echo "not found" >&6; } 7559 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7560 fi 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7562 $as_echo "$tool_specified" >&6; } 7563 fi 7564 fi 7565 fi 7566 7567 7568 7569 if test "x$HEAD" = x; then 7570 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7571 fi 7572 7573 7574 7575 7576 7577 # Publish this variable in the help. 7578 7579 7580 if test "x$LN" = x; then 7581 # The variable is not set by user, try to locate tool using the code snippet 7582 for ac_prog in ln 7583 do 7584 # Extract the first word of "$ac_prog", so it can be a program name with args. 7585 set dummy $ac_prog; ac_word=$2 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7587 $as_echo_n "checking for $ac_word... " >&6; } 7588 if ${ac_cv_path_LN+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590 else 7591 case $LN in 7592 [\\/]* | ?:[\\/]*) 7593 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7594 ;; 7595 *) 7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7597 for as_dir in $PATH 7598 do 7599 IFS=$as_save_IFS 7600 test -z "$as_dir" && as_dir=. 7601 for ac_exec_ext in '' $ac_executable_extensions; do 7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7603 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7605 break 2 7606 fi 7607 done 7608 done 7609 IFS=$as_save_IFS 7610 7611 ;; 7612 esac 7613 fi 7614 LN=$ac_cv_path_LN 7615 if test -n "$LN"; then 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7617 $as_echo "$LN" >&6; } 7618 else 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7620 $as_echo "no" >&6; } 7621 fi 7622 7623 7624 test -n "$LN" && break 7625 done 7626 7627 else 7628 # The variable is set, but is it from the command line or the environment? 7629 7630 # Try to remove the string !LN! from our list. 7631 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7632 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7633 # If it failed, the variable was not from the command line. Ignore it, 7634 # but warn the user (except for BASH, which is always set by the calling BASH). 7635 if test "xLN" != xBASH; then 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7637 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7638 fi 7639 # Try to locate tool using the code snippet 7640 for ac_prog in ln 7641 do 7642 # Extract the first word of "$ac_prog", so it can be a program name with args. 7643 set dummy $ac_prog; ac_word=$2 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7645 $as_echo_n "checking for $ac_word... " >&6; } 7646 if ${ac_cv_path_LN+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648 else 7649 case $LN in 7650 [\\/]* | ?:[\\/]*) 7651 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7652 ;; 7653 *) 7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7655 for as_dir in $PATH 7656 do 7657 IFS=$as_save_IFS 7658 test -z "$as_dir" && as_dir=. 7659 for ac_exec_ext in '' $ac_executable_extensions; do 7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7661 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7663 break 2 7664 fi 7665 done 7666 done 7667 IFS=$as_save_IFS 7668 7669 ;; 7670 esac 7671 fi 7672 LN=$ac_cv_path_LN 7673 if test -n "$LN"; then 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7675 $as_echo "$LN" >&6; } 7676 else 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7678 $as_echo "no" >&6; } 7679 fi 7680 7681 7682 test -n "$LN" && break 7683 done 7684 7685 else 7686 # If it succeeded, then it was overridden by the user. We will use it 7687 # for the tool. 7688 7689 # First remove it from the list of overridden variables, so we can test 7690 # for unknown variables in the end. 7691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7692 7693 # Check if the provided tool contains a complete path. 7694 tool_specified="$LN" 7695 tool_basename="${tool_specified##*/}" 7696 if test "x$tool_basename" = "x$tool_specified"; then 7697 # A command without a complete path is provided, search $PATH. 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7699 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7700 # Extract the first word of "$tool_basename", so it can be a program name with args. 7701 set dummy $tool_basename; ac_word=$2 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7703 $as_echo_n "checking for $ac_word... " >&6; } 7704 if ${ac_cv_path_LN+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706 else 7707 case $LN in 7708 [\\/]* | ?:[\\/]*) 7709 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7710 ;; 7711 *) 7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7713 for as_dir in $PATH 7714 do 7715 IFS=$as_save_IFS 7716 test -z "$as_dir" && as_dir=. 7717 for ac_exec_ext in '' $ac_executable_extensions; do 7718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7719 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7721 break 2 7722 fi 7723 done 7724 done 7725 IFS=$as_save_IFS 7726 7727 ;; 7728 esac 7729 fi 7730 LN=$ac_cv_path_LN 7731 if test -n "$LN"; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7733 $as_echo "$LN" >&6; } 7734 else 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7736 $as_echo "no" >&6; } 7737 fi 7738 7739 7740 if test "x$LN" = x; then 7741 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7742 fi 7743 else 7744 # Otherwise we believe it is a complete path. Use it as it is. 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7746 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7748 $as_echo_n "checking for LN... " >&6; } 7749 if test ! -x "$tool_specified"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7751 $as_echo "not found" >&6; } 7752 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7753 fi 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7755 $as_echo "$tool_specified" >&6; } 7756 fi 7757 fi 7758 fi 7759 7760 7761 7762 if test "x$LN" = x; then 7763 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7764 fi 7765 7766 7767 7768 7769 7770 # Publish this variable in the help. 7771 7772 7773 if test "x$LS" = x; then 7774 # The variable is not set by user, try to locate tool using the code snippet 7775 for ac_prog in ls 7776 do 7777 # Extract the first word of "$ac_prog", so it can be a program name with args. 7778 set dummy $ac_prog; ac_word=$2 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7780 $as_echo_n "checking for $ac_word... " >&6; } 7781 if ${ac_cv_path_LS+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783 else 7784 case $LS in 7785 [\\/]* | ?:[\\/]*) 7786 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7787 ;; 7788 *) 7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7790 for as_dir in $PATH 7791 do 7792 IFS=$as_save_IFS 7793 test -z "$as_dir" && as_dir=. 7794 for ac_exec_ext in '' $ac_executable_extensions; do 7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7796 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7798 break 2 7799 fi 7800 done 7801 done 7802 IFS=$as_save_IFS 7803 7804 ;; 7805 esac 7806 fi 7807 LS=$ac_cv_path_LS 7808 if test -n "$LS"; then 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7810 $as_echo "$LS" >&6; } 7811 else 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7813 $as_echo "no" >&6; } 7814 fi 7815 7816 7817 test -n "$LS" && break 7818 done 7819 7820 else 7821 # The variable is set, but is it from the command line or the environment? 7822 7823 # Try to remove the string !LS! from our list. 7824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7826 # If it failed, the variable was not from the command line. Ignore it, 7827 # but warn the user (except for BASH, which is always set by the calling BASH). 7828 if test "xLS" != xBASH; then 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7830 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7831 fi 7832 # Try to locate tool using the code snippet 7833 for ac_prog in ls 7834 do 7835 # Extract the first word of "$ac_prog", so it can be a program name with args. 7836 set dummy $ac_prog; ac_word=$2 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7838 $as_echo_n "checking for $ac_word... " >&6; } 7839 if ${ac_cv_path_LS+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841 else 7842 case $LS in 7843 [\\/]* | ?:[\\/]*) 7844 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7845 ;; 7846 *) 7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848 for as_dir in $PATH 7849 do 7850 IFS=$as_save_IFS 7851 test -z "$as_dir" && as_dir=. 7852 for ac_exec_ext in '' $ac_executable_extensions; do 7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7854 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7856 break 2 7857 fi 7858 done 7859 done 7860 IFS=$as_save_IFS 7861 7862 ;; 7863 esac 7864 fi 7865 LS=$ac_cv_path_LS 7866 if test -n "$LS"; then 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7868 $as_echo "$LS" >&6; } 7869 else 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871 $as_echo "no" >&6; } 7872 fi 7873 7874 7875 test -n "$LS" && break 7876 done 7877 7878 else 7879 # If it succeeded, then it was overridden by the user. We will use it 7880 # for the tool. 7881 7882 # First remove it from the list of overridden variables, so we can test 7883 # for unknown variables in the end. 7884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7885 7886 # Check if the provided tool contains a complete path. 7887 tool_specified="$LS" 7888 tool_basename="${tool_specified##*/}" 7889 if test "x$tool_basename" = "x$tool_specified"; then 7890 # A command without a complete path is provided, search $PATH. 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7892 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7893 # Extract the first word of "$tool_basename", so it can be a program name with args. 7894 set dummy $tool_basename; ac_word=$2 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896 $as_echo_n "checking for $ac_word... " >&6; } 7897 if ${ac_cv_path_LS+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899 else 7900 case $LS in 7901 [\\/]* | ?:[\\/]*) 7902 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7903 ;; 7904 *) 7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7906 for as_dir in $PATH 7907 do 7908 IFS=$as_save_IFS 7909 test -z "$as_dir" && as_dir=. 7910 for ac_exec_ext in '' $ac_executable_extensions; do 7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7912 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7914 break 2 7915 fi 7916 done 7917 done 7918 IFS=$as_save_IFS 7919 7920 ;; 7921 esac 7922 fi 7923 LS=$ac_cv_path_LS 7924 if test -n "$LS"; then 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7926 $as_echo "$LS" >&6; } 7927 else 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7929 $as_echo "no" >&6; } 7930 fi 7931 7932 7933 if test "x$LS" = x; then 7934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7935 fi 7936 else 7937 # Otherwise we believe it is a complete path. Use it as it is. 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7939 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7941 $as_echo_n "checking for LS... " >&6; } 7942 if test ! -x "$tool_specified"; then 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7944 $as_echo "not found" >&6; } 7945 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7946 fi 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7948 $as_echo "$tool_specified" >&6; } 7949 fi 7950 fi 7951 fi 7952 7953 7954 7955 if test "x$LS" = x; then 7956 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7957 fi 7958 7959 7960 7961 7962 7963 # Publish this variable in the help. 7964 7965 7966 if test "x$MKDIR" = x; then 7967 # The variable is not set by user, try to locate tool using the code snippet 7968 for ac_prog in mkdir 7969 do 7970 # Extract the first word of "$ac_prog", so it can be a program name with args. 7971 set dummy $ac_prog; ac_word=$2 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7973 $as_echo_n "checking for $ac_word... " >&6; } 7974 if ${ac_cv_path_MKDIR+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976 else 7977 case $MKDIR in 7978 [\\/]* | ?:[\\/]*) 7979 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7980 ;; 7981 *) 7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7983 for as_dir in $PATH 7984 do 7985 IFS=$as_save_IFS 7986 test -z "$as_dir" && as_dir=. 7987 for ac_exec_ext in '' $ac_executable_extensions; do 7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7989 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7991 break 2 7992 fi 7993 done 7994 done 7995 IFS=$as_save_IFS 7996 7997 ;; 7998 esac 7999 fi 8000 MKDIR=$ac_cv_path_MKDIR 8001 if test -n "$MKDIR"; then 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8003 $as_echo "$MKDIR" >&6; } 8004 else 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8006 $as_echo "no" >&6; } 8007 fi 8008 8009 8010 test -n "$MKDIR" && break 8011 done 8012 8013 else 8014 # The variable is set, but is it from the command line or the environment? 8015 8016 # Try to remove the string !MKDIR! from our list. 8017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8019 # If it failed, the variable was not from the command line. Ignore it, 8020 # but warn the user (except for BASH, which is always set by the calling BASH). 8021 if test "xMKDIR" != xBASH; then 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8023 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8024 fi 8025 # Try to locate tool using the code snippet 8026 for ac_prog in mkdir 8027 do 8028 # Extract the first word of "$ac_prog", so it can be a program name with args. 8029 set dummy $ac_prog; ac_word=$2 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8031 $as_echo_n "checking for $ac_word... " >&6; } 8032 if ${ac_cv_path_MKDIR+:} false; then : 8033 $as_echo_n "(cached) " >&6 8034 else 8035 case $MKDIR in 8036 [\\/]* | ?:[\\/]*) 8037 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8038 ;; 8039 *) 8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8041 for as_dir in $PATH 8042 do 8043 IFS=$as_save_IFS 8044 test -z "$as_dir" && as_dir=. 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8047 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051 done 8052 done 8053 IFS=$as_save_IFS 8054 8055 ;; 8056 esac 8057 fi 8058 MKDIR=$ac_cv_path_MKDIR 8059 if test -n "$MKDIR"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8061 $as_echo "$MKDIR" >&6; } 8062 else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064 $as_echo "no" >&6; } 8065 fi 8066 8067 8068 test -n "$MKDIR" && break 8069 done 8070 8071 else 8072 # If it succeeded, then it was overridden by the user. We will use it 8073 # for the tool. 8074 8075 # First remove it from the list of overridden variables, so we can test 8076 # for unknown variables in the end. 8077 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8078 8079 # Check if the provided tool contains a complete path. 8080 tool_specified="$MKDIR" 8081 tool_basename="${tool_specified##*/}" 8082 if test "x$tool_basename" = "x$tool_specified"; then 8083 # A command without a complete path is provided, search $PATH. 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8085 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8086 # Extract the first word of "$tool_basename", so it can be a program name with args. 8087 set dummy $tool_basename; ac_word=$2 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8089 $as_echo_n "checking for $ac_word... " >&6; } 8090 if ${ac_cv_path_MKDIR+:} false; then : 8091 $as_echo_n "(cached) " >&6 8092 else 8093 case $MKDIR in 8094 [\\/]* | ?:[\\/]*) 8095 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8096 ;; 8097 *) 8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8099 for as_dir in $PATH 8100 do 8101 IFS=$as_save_IFS 8102 test -z "$as_dir" && as_dir=. 8103 for ac_exec_ext in '' $ac_executable_extensions; do 8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8105 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8107 break 2 8108 fi 8109 done 8110 done 8111 IFS=$as_save_IFS 8112 8113 ;; 8114 esac 8115 fi 8116 MKDIR=$ac_cv_path_MKDIR 8117 if test -n "$MKDIR"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8119 $as_echo "$MKDIR" >&6; } 8120 else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122 $as_echo "no" >&6; } 8123 fi 8124 8125 8126 if test "x$MKDIR" = x; then 8127 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8128 fi 8129 else 8130 # Otherwise we believe it is a complete path. Use it as it is. 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8132 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8134 $as_echo_n "checking for MKDIR... " >&6; } 8135 if test ! -x "$tool_specified"; then 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8137 $as_echo "not found" >&6; } 8138 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8139 fi 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8141 $as_echo "$tool_specified" >&6; } 8142 fi 8143 fi 8144 fi 8145 8146 8147 8148 if test "x$MKDIR" = x; then 8149 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8150 fi 8151 8152 8153 8154 8155 8156 # Publish this variable in the help. 8157 8158 8159 if test "x$MKTEMP" = x; then 8160 # The variable is not set by user, try to locate tool using the code snippet 8161 for ac_prog in mktemp 8162 do 8163 # Extract the first word of "$ac_prog", so it can be a program name with args. 8164 set dummy $ac_prog; ac_word=$2 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8166 $as_echo_n "checking for $ac_word... " >&6; } 8167 if ${ac_cv_path_MKTEMP+:} false; then : 8168 $as_echo_n "(cached) " >&6 8169 else 8170 case $MKTEMP in 8171 [\\/]* | ?:[\\/]*) 8172 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8173 ;; 8174 *) 8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8176 for as_dir in $PATH 8177 do 8178 IFS=$as_save_IFS 8179 test -z "$as_dir" && as_dir=. 8180 for ac_exec_ext in '' $ac_executable_extensions; do 8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8182 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8184 break 2 8185 fi 8186 done 8187 done 8188 IFS=$as_save_IFS 8189 8190 ;; 8191 esac 8192 fi 8193 MKTEMP=$ac_cv_path_MKTEMP 8194 if test -n "$MKTEMP"; then 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8196 $as_echo "$MKTEMP" >&6; } 8197 else 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8199 $as_echo "no" >&6; } 8200 fi 8201 8202 8203 test -n "$MKTEMP" && break 8204 done 8205 8206 else 8207 # The variable is set, but is it from the command line or the environment? 8208 8209 # Try to remove the string !MKTEMP! from our list. 8210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8212 # If it failed, the variable was not from the command line. Ignore it, 8213 # but warn the user (except for BASH, which is always set by the calling BASH). 8214 if test "xMKTEMP" != xBASH; then 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8216 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8217 fi 8218 # Try to locate tool using the code snippet 8219 for ac_prog in mktemp 8220 do 8221 # Extract the first word of "$ac_prog", so it can be a program name with args. 8222 set dummy $ac_prog; ac_word=$2 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8224 $as_echo_n "checking for $ac_word... " >&6; } 8225 if ${ac_cv_path_MKTEMP+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227 else 8228 case $MKTEMP in 8229 [\\/]* | ?:[\\/]*) 8230 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8231 ;; 8232 *) 8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234 for as_dir in $PATH 8235 do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8240 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244 done 8245 done 8246 IFS=$as_save_IFS 8247 8248 ;; 8249 esac 8250 fi 8251 MKTEMP=$ac_cv_path_MKTEMP 8252 if test -n "$MKTEMP"; then 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8254 $as_echo "$MKTEMP" >&6; } 8255 else 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8257 $as_echo "no" >&6; } 8258 fi 8259 8260 8261 test -n "$MKTEMP" && break 8262 done 8263 8264 else 8265 # If it succeeded, then it was overridden by the user. We will use it 8266 # for the tool. 8267 8268 # First remove it from the list of overridden variables, so we can test 8269 # for unknown variables in the end. 8270 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8271 8272 # Check if the provided tool contains a complete path. 8273 tool_specified="$MKTEMP" 8274 tool_basename="${tool_specified##*/}" 8275 if test "x$tool_basename" = "x$tool_specified"; then 8276 # A command without a complete path is provided, search $PATH. 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8278 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8279 # Extract the first word of "$tool_basename", so it can be a program name with args. 8280 set dummy $tool_basename; ac_word=$2 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8282 $as_echo_n "checking for $ac_word... " >&6; } 8283 if ${ac_cv_path_MKTEMP+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285 else 8286 case $MKTEMP in 8287 [\\/]* | ?:[\\/]*) 8288 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8289 ;; 8290 *) 8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8292 for as_dir in $PATH 8293 do 8294 IFS=$as_save_IFS 8295 test -z "$as_dir" && as_dir=. 8296 for ac_exec_ext in '' $ac_executable_extensions; do 8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8298 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8300 break 2 8301 fi 8302 done 8303 done 8304 IFS=$as_save_IFS 8305 8306 ;; 8307 esac 8308 fi 8309 MKTEMP=$ac_cv_path_MKTEMP 8310 if test -n "$MKTEMP"; then 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8312 $as_echo "$MKTEMP" >&6; } 8313 else 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8315 $as_echo "no" >&6; } 8316 fi 8317 8318 8319 if test "x$MKTEMP" = x; then 8320 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8321 fi 8322 else 8323 # Otherwise we believe it is a complete path. Use it as it is. 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8325 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8327 $as_echo_n "checking for MKTEMP... " >&6; } 8328 if test ! -x "$tool_specified"; then 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8330 $as_echo "not found" >&6; } 8331 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8332 fi 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8334 $as_echo "$tool_specified" >&6; } 8335 fi 8336 fi 8337 fi 8338 8339 8340 8341 if test "x$MKTEMP" = x; then 8342 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8343 fi 8344 8345 8346 8347 8348 8349 # Publish this variable in the help. 8350 8351 8352 if test "x$MV" = x; then 8353 # The variable is not set by user, try to locate tool using the code snippet 8354 for ac_prog in mv 8355 do 8356 # Extract the first word of "$ac_prog", so it can be a program name with args. 8357 set dummy $ac_prog; ac_word=$2 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8359 $as_echo_n "checking for $ac_word... " >&6; } 8360 if ${ac_cv_path_MV+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362 else 8363 case $MV in 8364 [\\/]* | ?:[\\/]*) 8365 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8366 ;; 8367 *) 8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8369 for as_dir in $PATH 8370 do 8371 IFS=$as_save_IFS 8372 test -z "$as_dir" && as_dir=. 8373 for ac_exec_ext in '' $ac_executable_extensions; do 8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8375 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8377 break 2 8378 fi 8379 done 8380 done 8381 IFS=$as_save_IFS 8382 8383 ;; 8384 esac 8385 fi 8386 MV=$ac_cv_path_MV 8387 if test -n "$MV"; then 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8389 $as_echo "$MV" >&6; } 8390 else 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8392 $as_echo "no" >&6; } 8393 fi 8394 8395 8396 test -n "$MV" && break 8397 done 8398 8399 else 8400 # The variable is set, but is it from the command line or the environment? 8401 8402 # Try to remove the string !MV! from our list. 8403 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8404 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8405 # If it failed, the variable was not from the command line. Ignore it, 8406 # but warn the user (except for BASH, which is always set by the calling BASH). 8407 if test "xMV" != xBASH; then 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8409 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8410 fi 8411 # Try to locate tool using the code snippet 8412 for ac_prog in mv 8413 do 8414 # Extract the first word of "$ac_prog", so it can be a program name with args. 8415 set dummy $ac_prog; ac_word=$2 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8417 $as_echo_n "checking for $ac_word... " >&6; } 8418 if ${ac_cv_path_MV+:} false; then : 8419 $as_echo_n "(cached) " >&6 8420 else 8421 case $MV in 8422 [\\/]* | ?:[\\/]*) 8423 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8424 ;; 8425 *) 8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8427 for as_dir in $PATH 8428 do 8429 IFS=$as_save_IFS 8430 test -z "$as_dir" && as_dir=. 8431 for ac_exec_ext in '' $ac_executable_extensions; do 8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8433 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8435 break 2 8436 fi 8437 done 8438 done 8439 IFS=$as_save_IFS 8440 8441 ;; 8442 esac 8443 fi 8444 MV=$ac_cv_path_MV 8445 if test -n "$MV"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8447 $as_echo "$MV" >&6; } 8448 else 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450 $as_echo "no" >&6; } 8451 fi 8452 8453 8454 test -n "$MV" && break 8455 done 8456 8457 else 8458 # If it succeeded, then it was overridden by the user. We will use it 8459 # for the tool. 8460 8461 # First remove it from the list of overridden variables, so we can test 8462 # for unknown variables in the end. 8463 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8464 8465 # Check if the provided tool contains a complete path. 8466 tool_specified="$MV" 8467 tool_basename="${tool_specified##*/}" 8468 if test "x$tool_basename" = "x$tool_specified"; then 8469 # A command without a complete path is provided, search $PATH. 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8471 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8472 # Extract the first word of "$tool_basename", so it can be a program name with args. 8473 set dummy $tool_basename; ac_word=$2 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8475 $as_echo_n "checking for $ac_word... " >&6; } 8476 if ${ac_cv_path_MV+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478 else 8479 case $MV in 8480 [\\/]* | ?:[\\/]*) 8481 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8482 ;; 8483 *) 8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8485 for as_dir in $PATH 8486 do 8487 IFS=$as_save_IFS 8488 test -z "$as_dir" && as_dir=. 8489 for ac_exec_ext in '' $ac_executable_extensions; do 8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8491 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8493 break 2 8494 fi 8495 done 8496 done 8497 IFS=$as_save_IFS 8498 8499 ;; 8500 esac 8501 fi 8502 MV=$ac_cv_path_MV 8503 if test -n "$MV"; then 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8505 $as_echo "$MV" >&6; } 8506 else 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8508 $as_echo "no" >&6; } 8509 fi 8510 8511 8512 if test "x$MV" = x; then 8513 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8514 fi 8515 else 8516 # Otherwise we believe it is a complete path. Use it as it is. 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8518 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8520 $as_echo_n "checking for MV... " >&6; } 8521 if test ! -x "$tool_specified"; then 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8523 $as_echo "not found" >&6; } 8524 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8525 fi 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8527 $as_echo "$tool_specified" >&6; } 8528 fi 8529 fi 8530 fi 8531 8532 8533 8534 if test "x$MV" = x; then 8535 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8536 fi 8537 8538 8539 8540 8541 8542 # Publish this variable in the help. 8543 8544 8545 if test "x$NAWK" = x; then 8546 # The variable is not set by user, try to locate tool using the code snippet 8547 for ac_prog in nawk gawk awk 8548 do 8549 # Extract the first word of "$ac_prog", so it can be a program name with args. 8550 set dummy $ac_prog; ac_word=$2 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8552 $as_echo_n "checking for $ac_word... " >&6; } 8553 if ${ac_cv_path_NAWK+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555 else 8556 case $NAWK in 8557 [\\/]* | ?:[\\/]*) 8558 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8559 ;; 8560 *) 8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8562 for as_dir in $PATH 8563 do 8564 IFS=$as_save_IFS 8565 test -z "$as_dir" && as_dir=. 8566 for ac_exec_ext in '' $ac_executable_extensions; do 8567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8568 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8570 break 2 8571 fi 8572 done 8573 done 8574 IFS=$as_save_IFS 8575 8576 ;; 8577 esac 8578 fi 8579 NAWK=$ac_cv_path_NAWK 8580 if test -n "$NAWK"; then 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8582 $as_echo "$NAWK" >&6; } 8583 else 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8585 $as_echo "no" >&6; } 8586 fi 8587 8588 8589 test -n "$NAWK" && break 8590 done 8591 8592 else 8593 # The variable is set, but is it from the command line or the environment? 8594 8595 # Try to remove the string !NAWK! from our list. 8596 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8597 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8598 # If it failed, the variable was not from the command line. Ignore it, 8599 # but warn the user (except for BASH, which is always set by the calling BASH). 8600 if test "xNAWK" != xBASH; then 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8602 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8603 fi 8604 # Try to locate tool using the code snippet 8605 for ac_prog in nawk gawk awk 8606 do 8607 # Extract the first word of "$ac_prog", so it can be a program name with args. 8608 set dummy $ac_prog; ac_word=$2 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8610 $as_echo_n "checking for $ac_word... " >&6; } 8611 if ${ac_cv_path_NAWK+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613 else 8614 case $NAWK in 8615 [\\/]* | ?:[\\/]*) 8616 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8617 ;; 8618 *) 8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8620 for as_dir in $PATH 8621 do 8622 IFS=$as_save_IFS 8623 test -z "$as_dir" && as_dir=. 8624 for ac_exec_ext in '' $ac_executable_extensions; do 8625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8626 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8628 break 2 8629 fi 8630 done 8631 done 8632 IFS=$as_save_IFS 8633 8634 ;; 8635 esac 8636 fi 8637 NAWK=$ac_cv_path_NAWK 8638 if test -n "$NAWK"; then 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8640 $as_echo "$NAWK" >&6; } 8641 else 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8643 $as_echo "no" >&6; } 8644 fi 8645 8646 8647 test -n "$NAWK" && break 8648 done 8649 8650 else 8651 # If it succeeded, then it was overridden by the user. We will use it 8652 # for the tool. 8653 8654 # First remove it from the list of overridden variables, so we can test 8655 # for unknown variables in the end. 8656 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8657 8658 # Check if the provided tool contains a complete path. 8659 tool_specified="$NAWK" 8660 tool_basename="${tool_specified##*/}" 8661 if test "x$tool_basename" = "x$tool_specified"; then 8662 # A command without a complete path is provided, search $PATH. 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8664 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8665 # Extract the first word of "$tool_basename", so it can be a program name with args. 8666 set dummy $tool_basename; ac_word=$2 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8668 $as_echo_n "checking for $ac_word... " >&6; } 8669 if ${ac_cv_path_NAWK+:} false; then : 8670 $as_echo_n "(cached) " >&6 8671 else 8672 case $NAWK in 8673 [\\/]* | ?:[\\/]*) 8674 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8675 ;; 8676 *) 8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8678 for as_dir in $PATH 8679 do 8680 IFS=$as_save_IFS 8681 test -z "$as_dir" && as_dir=. 8682 for ac_exec_ext in '' $ac_executable_extensions; do 8683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8684 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8686 break 2 8687 fi 8688 done 8689 done 8690 IFS=$as_save_IFS 8691 8692 ;; 8693 esac 8694 fi 8695 NAWK=$ac_cv_path_NAWK 8696 if test -n "$NAWK"; then 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8698 $as_echo "$NAWK" >&6; } 8699 else 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8701 $as_echo "no" >&6; } 8702 fi 8703 8704 8705 if test "x$NAWK" = x; then 8706 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8707 fi 8708 else 8709 # Otherwise we believe it is a complete path. Use it as it is. 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8711 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8713 $as_echo_n "checking for NAWK... " >&6; } 8714 if test ! -x "$tool_specified"; then 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8716 $as_echo "not found" >&6; } 8717 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8718 fi 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8720 $as_echo "$tool_specified" >&6; } 8721 fi 8722 fi 8723 fi 8724 8725 8726 8727 if test "x$NAWK" = x; then 8728 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8729 fi 8730 8731 8732 8733 8734 8735 # Publish this variable in the help. 8736 8737 8738 if test "x$PRINTF" = x; then 8739 # The variable is not set by user, try to locate tool using the code snippet 8740 for ac_prog in printf 8741 do 8742 # Extract the first word of "$ac_prog", so it can be a program name with args. 8743 set dummy $ac_prog; ac_word=$2 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8745 $as_echo_n "checking for $ac_word... " >&6; } 8746 if ${ac_cv_path_PRINTF+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748 else 8749 case $PRINTF in 8750 [\\/]* | ?:[\\/]*) 8751 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8752 ;; 8753 *) 8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8755 for as_dir in $PATH 8756 do 8757 IFS=$as_save_IFS 8758 test -z "$as_dir" && as_dir=. 8759 for ac_exec_ext in '' $ac_executable_extensions; do 8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8761 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8763 break 2 8764 fi 8765 done 8766 done 8767 IFS=$as_save_IFS 8768 8769 ;; 8770 esac 8771 fi 8772 PRINTF=$ac_cv_path_PRINTF 8773 if test -n "$PRINTF"; then 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8775 $as_echo "$PRINTF" >&6; } 8776 else 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8778 $as_echo "no" >&6; } 8779 fi 8780 8781 8782 test -n "$PRINTF" && break 8783 done 8784 8785 else 8786 # The variable is set, but is it from the command line or the environment? 8787 8788 # Try to remove the string !PRINTF! from our list. 8789 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8790 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8791 # If it failed, the variable was not from the command line. Ignore it, 8792 # but warn the user (except for BASH, which is always set by the calling BASH). 8793 if test "xPRINTF" != xBASH; then 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8795 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8796 fi 8797 # Try to locate tool using the code snippet 8798 for ac_prog in printf 8799 do 8800 # Extract the first word of "$ac_prog", so it can be a program name with args. 8801 set dummy $ac_prog; ac_word=$2 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8803 $as_echo_n "checking for $ac_word... " >&6; } 8804 if ${ac_cv_path_PRINTF+:} false; then : 8805 $as_echo_n "(cached) " >&6 8806 else 8807 case $PRINTF in 8808 [\\/]* | ?:[\\/]*) 8809 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8810 ;; 8811 *) 8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8813 for as_dir in $PATH 8814 do 8815 IFS=$as_save_IFS 8816 test -z "$as_dir" && as_dir=. 8817 for ac_exec_ext in '' $ac_executable_extensions; do 8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8819 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8821 break 2 8822 fi 8823 done 8824 done 8825 IFS=$as_save_IFS 8826 8827 ;; 8828 esac 8829 fi 8830 PRINTF=$ac_cv_path_PRINTF 8831 if test -n "$PRINTF"; then 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8833 $as_echo "$PRINTF" >&6; } 8834 else 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8836 $as_echo "no" >&6; } 8837 fi 8838 8839 8840 test -n "$PRINTF" && break 8841 done 8842 8843 else 8844 # If it succeeded, then it was overridden by the user. We will use it 8845 # for the tool. 8846 8847 # First remove it from the list of overridden variables, so we can test 8848 # for unknown variables in the end. 8849 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8850 8851 # Check if the provided tool contains a complete path. 8852 tool_specified="$PRINTF" 8853 tool_basename="${tool_specified##*/}" 8854 if test "x$tool_basename" = "x$tool_specified"; then 8855 # A command without a complete path is provided, search $PATH. 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8857 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8858 # Extract the first word of "$tool_basename", so it can be a program name with args. 8859 set dummy $tool_basename; ac_word=$2 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8861 $as_echo_n "checking for $ac_word... " >&6; } 8862 if ${ac_cv_path_PRINTF+:} false; then : 8863 $as_echo_n "(cached) " >&6 8864 else 8865 case $PRINTF in 8866 [\\/]* | ?:[\\/]*) 8867 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8868 ;; 8869 *) 8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8871 for as_dir in $PATH 8872 do 8873 IFS=$as_save_IFS 8874 test -z "$as_dir" && as_dir=. 8875 for ac_exec_ext in '' $ac_executable_extensions; do 8876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8877 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8879 break 2 8880 fi 8881 done 8882 done 8883 IFS=$as_save_IFS 8884 8885 ;; 8886 esac 8887 fi 8888 PRINTF=$ac_cv_path_PRINTF 8889 if test -n "$PRINTF"; then 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8891 $as_echo "$PRINTF" >&6; } 8892 else 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8894 $as_echo "no" >&6; } 8895 fi 8896 8897 8898 if test "x$PRINTF" = x; then 8899 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8900 fi 8901 else 8902 # Otherwise we believe it is a complete path. Use it as it is. 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8904 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8906 $as_echo_n "checking for PRINTF... " >&6; } 8907 if test ! -x "$tool_specified"; then 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8909 $as_echo "not found" >&6; } 8910 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8911 fi 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8913 $as_echo "$tool_specified" >&6; } 8914 fi 8915 fi 8916 fi 8917 8918 8919 8920 if test "x$PRINTF" = x; then 8921 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8922 fi 8923 8924 8925 8926 8927 8928 # Publish this variable in the help. 8929 8930 8931 if test "x$RM" = x; then 8932 # The variable is not set by user, try to locate tool using the code snippet 8933 for ac_prog in rm 8934 do 8935 # Extract the first word of "$ac_prog", so it can be a program name with args. 8936 set dummy $ac_prog; ac_word=$2 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8938 $as_echo_n "checking for $ac_word... " >&6; } 8939 if ${ac_cv_path_RM+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941 else 8942 case $RM in 8943 [\\/]* | ?:[\\/]*) 8944 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8945 ;; 8946 *) 8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8948 for as_dir in $PATH 8949 do 8950 IFS=$as_save_IFS 8951 test -z "$as_dir" && as_dir=. 8952 for ac_exec_ext in '' $ac_executable_extensions; do 8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8954 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8956 break 2 8957 fi 8958 done 8959 done 8960 IFS=$as_save_IFS 8961 8962 ;; 8963 esac 8964 fi 8965 RM=$ac_cv_path_RM 8966 if test -n "$RM"; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8968 $as_echo "$RM" >&6; } 8969 else 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8971 $as_echo "no" >&6; } 8972 fi 8973 8974 8975 test -n "$RM" && break 8976 done 8977 8978 else 8979 # The variable is set, but is it from the command line or the environment? 8980 8981 # Try to remove the string !RM! from our list. 8982 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8983 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8984 # If it failed, the variable was not from the command line. Ignore it, 8985 # but warn the user (except for BASH, which is always set by the calling BASH). 8986 if test "xRM" != xBASH; then 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8988 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8989 fi 8990 # Try to locate tool using the code snippet 8991 for ac_prog in rm 8992 do 8993 # Extract the first word of "$ac_prog", so it can be a program name with args. 8994 set dummy $ac_prog; ac_word=$2 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8996 $as_echo_n "checking for $ac_word... " >&6; } 8997 if ${ac_cv_path_RM+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999 else 9000 case $RM in 9001 [\\/]* | ?:[\\/]*) 9002 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9003 ;; 9004 *) 9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9006 for as_dir in $PATH 9007 do 9008 IFS=$as_save_IFS 9009 test -z "$as_dir" && as_dir=. 9010 for ac_exec_ext in '' $ac_executable_extensions; do 9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9012 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9014 break 2 9015 fi 9016 done 9017 done 9018 IFS=$as_save_IFS 9019 9020 ;; 9021 esac 9022 fi 9023 RM=$ac_cv_path_RM 9024 if test -n "$RM"; then 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9026 $as_echo "$RM" >&6; } 9027 else 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9029 $as_echo "no" >&6; } 9030 fi 9031 9032 9033 test -n "$RM" && break 9034 done 9035 9036 else 9037 # If it succeeded, then it was overridden by the user. We will use it 9038 # for the tool. 9039 9040 # First remove it from the list of overridden variables, so we can test 9041 # for unknown variables in the end. 9042 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9043 9044 # Check if the provided tool contains a complete path. 9045 tool_specified="$RM" 9046 tool_basename="${tool_specified##*/}" 9047 if test "x$tool_basename" = "x$tool_specified"; then 9048 # A command without a complete path is provided, search $PATH. 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9050 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9051 # Extract the first word of "$tool_basename", so it can be a program name with args. 9052 set dummy $tool_basename; ac_word=$2 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9054 $as_echo_n "checking for $ac_word... " >&6; } 9055 if ${ac_cv_path_RM+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057 else 9058 case $RM in 9059 [\\/]* | ?:[\\/]*) 9060 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9061 ;; 9062 *) 9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9064 for as_dir in $PATH 9065 do 9066 IFS=$as_save_IFS 9067 test -z "$as_dir" && as_dir=. 9068 for ac_exec_ext in '' $ac_executable_extensions; do 9069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9070 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9072 break 2 9073 fi 9074 done 9075 done 9076 IFS=$as_save_IFS 9077 9078 ;; 9079 esac 9080 fi 9081 RM=$ac_cv_path_RM 9082 if test -n "$RM"; then 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9084 $as_echo "$RM" >&6; } 9085 else 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9087 $as_echo "no" >&6; } 9088 fi 9089 9090 9091 if test "x$RM" = x; then 9092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9093 fi 9094 else 9095 # Otherwise we believe it is a complete path. Use it as it is. 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9097 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9099 $as_echo_n "checking for RM... " >&6; } 9100 if test ! -x "$tool_specified"; then 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9102 $as_echo "not found" >&6; } 9103 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9104 fi 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9106 $as_echo "$tool_specified" >&6; } 9107 fi 9108 fi 9109 fi 9110 9111 9112 9113 if test "x$RM" = x; then 9114 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9115 fi 9116 9117 9118 9119 9120 9121 # Publish this variable in the help. 9122 9123 9124 if test "x$SH" = x; then 9125 # The variable is not set by user, try to locate tool using the code snippet 9126 for ac_prog in sh 9127 do 9128 # Extract the first word of "$ac_prog", so it can be a program name with args. 9129 set dummy $ac_prog; ac_word=$2 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9131 $as_echo_n "checking for $ac_word... " >&6; } 9132 if ${ac_cv_path_SH+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134 else 9135 case $SH in 9136 [\\/]* | ?:[\\/]*) 9137 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9138 ;; 9139 *) 9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9141 for as_dir in $PATH 9142 do 9143 IFS=$as_save_IFS 9144 test -z "$as_dir" && as_dir=. 9145 for ac_exec_ext in '' $ac_executable_extensions; do 9146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9147 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9149 break 2 9150 fi 9151 done 9152 done 9153 IFS=$as_save_IFS 9154 9155 ;; 9156 esac 9157 fi 9158 SH=$ac_cv_path_SH 9159 if test -n "$SH"; then 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9161 $as_echo "$SH" >&6; } 9162 else 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9164 $as_echo "no" >&6; } 9165 fi 9166 9167 9168 test -n "$SH" && break 9169 done 9170 9171 else 9172 # The variable is set, but is it from the command line or the environment? 9173 9174 # Try to remove the string !SH! from our list. 9175 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9176 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9177 # If it failed, the variable was not from the command line. Ignore it, 9178 # but warn the user (except for BASH, which is always set by the calling BASH). 9179 if test "xSH" != xBASH; then 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9181 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9182 fi 9183 # Try to locate tool using the code snippet 9184 for ac_prog in sh 9185 do 9186 # Extract the first word of "$ac_prog", so it can be a program name with args. 9187 set dummy $ac_prog; ac_word=$2 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9189 $as_echo_n "checking for $ac_word... " >&6; } 9190 if ${ac_cv_path_SH+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192 else 9193 case $SH in 9194 [\\/]* | ?:[\\/]*) 9195 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9196 ;; 9197 *) 9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9199 for as_dir in $PATH 9200 do 9201 IFS=$as_save_IFS 9202 test -z "$as_dir" && as_dir=. 9203 for ac_exec_ext in '' $ac_executable_extensions; do 9204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9205 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9207 break 2 9208 fi 9209 done 9210 done 9211 IFS=$as_save_IFS 9212 9213 ;; 9214 esac 9215 fi 9216 SH=$ac_cv_path_SH 9217 if test -n "$SH"; then 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9219 $as_echo "$SH" >&6; } 9220 else 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9222 $as_echo "no" >&6; } 9223 fi 9224 9225 9226 test -n "$SH" && break 9227 done 9228 9229 else 9230 # If it succeeded, then it was overridden by the user. We will use it 9231 # for the tool. 9232 9233 # First remove it from the list of overridden variables, so we can test 9234 # for unknown variables in the end. 9235 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9236 9237 # Check if the provided tool contains a complete path. 9238 tool_specified="$SH" 9239 tool_basename="${tool_specified##*/}" 9240 if test "x$tool_basename" = "x$tool_specified"; then 9241 # A command without a complete path is provided, search $PATH. 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9243 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9244 # Extract the first word of "$tool_basename", so it can be a program name with args. 9245 set dummy $tool_basename; ac_word=$2 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9247 $as_echo_n "checking for $ac_word... " >&6; } 9248 if ${ac_cv_path_SH+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250 else 9251 case $SH in 9252 [\\/]* | ?:[\\/]*) 9253 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9254 ;; 9255 *) 9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9257 for as_dir in $PATH 9258 do 9259 IFS=$as_save_IFS 9260 test -z "$as_dir" && as_dir=. 9261 for ac_exec_ext in '' $ac_executable_extensions; do 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9263 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9265 break 2 9266 fi 9267 done 9268 done 9269 IFS=$as_save_IFS 9270 9271 ;; 9272 esac 9273 fi 9274 SH=$ac_cv_path_SH 9275 if test -n "$SH"; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9277 $as_echo "$SH" >&6; } 9278 else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280 $as_echo "no" >&6; } 9281 fi 9282 9283 9284 if test "x$SH" = x; then 9285 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9286 fi 9287 else 9288 # Otherwise we believe it is a complete path. Use it as it is. 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9290 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9292 $as_echo_n "checking for SH... " >&6; } 9293 if test ! -x "$tool_specified"; then 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9295 $as_echo "not found" >&6; } 9296 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9297 fi 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9299 $as_echo "$tool_specified" >&6; } 9300 fi 9301 fi 9302 fi 9303 9304 9305 9306 if test "x$SH" = x; then 9307 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9308 fi 9309 9310 9311 9312 9313 9314 # Publish this variable in the help. 9315 9316 9317 if test "x$SORT" = x; then 9318 # The variable is not set by user, try to locate tool using the code snippet 9319 for ac_prog in sort 9320 do 9321 # Extract the first word of "$ac_prog", so it can be a program name with args. 9322 set dummy $ac_prog; ac_word=$2 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9324 $as_echo_n "checking for $ac_word... " >&6; } 9325 if ${ac_cv_path_SORT+:} false; then : 9326 $as_echo_n "(cached) " >&6 9327 else 9328 case $SORT in 9329 [\\/]* | ?:[\\/]*) 9330 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9331 ;; 9332 *) 9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9334 for as_dir in $PATH 9335 do 9336 IFS=$as_save_IFS 9337 test -z "$as_dir" && as_dir=. 9338 for ac_exec_ext in '' $ac_executable_extensions; do 9339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9340 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9342 break 2 9343 fi 9344 done 9345 done 9346 IFS=$as_save_IFS 9347 9348 ;; 9349 esac 9350 fi 9351 SORT=$ac_cv_path_SORT 9352 if test -n "$SORT"; then 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9354 $as_echo "$SORT" >&6; } 9355 else 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9357 $as_echo "no" >&6; } 9358 fi 9359 9360 9361 test -n "$SORT" && break 9362 done 9363 9364 else 9365 # The variable is set, but is it from the command line or the environment? 9366 9367 # Try to remove the string !SORT! from our list. 9368 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9369 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9370 # If it failed, the variable was not from the command line. Ignore it, 9371 # but warn the user (except for BASH, which is always set by the calling BASH). 9372 if test "xSORT" != xBASH; then 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9374 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9375 fi 9376 # Try to locate tool using the code snippet 9377 for ac_prog in sort 9378 do 9379 # Extract the first word of "$ac_prog", so it can be a program name with args. 9380 set dummy $ac_prog; ac_word=$2 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9382 $as_echo_n "checking for $ac_word... " >&6; } 9383 if ${ac_cv_path_SORT+:} false; then : 9384 $as_echo_n "(cached) " >&6 9385 else 9386 case $SORT in 9387 [\\/]* | ?:[\\/]*) 9388 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9389 ;; 9390 *) 9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9392 for as_dir in $PATH 9393 do 9394 IFS=$as_save_IFS 9395 test -z "$as_dir" && as_dir=. 9396 for ac_exec_ext in '' $ac_executable_extensions; do 9397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9398 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9400 break 2 9401 fi 9402 done 9403 done 9404 IFS=$as_save_IFS 9405 9406 ;; 9407 esac 9408 fi 9409 SORT=$ac_cv_path_SORT 9410 if test -n "$SORT"; then 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9412 $as_echo "$SORT" >&6; } 9413 else 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9415 $as_echo "no" >&6; } 9416 fi 9417 9418 9419 test -n "$SORT" && break 9420 done 9421 9422 else 9423 # If it succeeded, then it was overridden by the user. We will use it 9424 # for the tool. 9425 9426 # First remove it from the list of overridden variables, so we can test 9427 # for unknown variables in the end. 9428 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9429 9430 # Check if the provided tool contains a complete path. 9431 tool_specified="$SORT" 9432 tool_basename="${tool_specified##*/}" 9433 if test "x$tool_basename" = "x$tool_specified"; then 9434 # A command without a complete path is provided, search $PATH. 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9436 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9437 # Extract the first word of "$tool_basename", so it can be a program name with args. 9438 set dummy $tool_basename; ac_word=$2 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9440 $as_echo_n "checking for $ac_word... " >&6; } 9441 if ${ac_cv_path_SORT+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443 else 9444 case $SORT in 9445 [\\/]* | ?:[\\/]*) 9446 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9447 ;; 9448 *) 9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9450 for as_dir in $PATH 9451 do 9452 IFS=$as_save_IFS 9453 test -z "$as_dir" && as_dir=. 9454 for ac_exec_ext in '' $ac_executable_extensions; do 9455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9456 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9458 break 2 9459 fi 9460 done 9461 done 9462 IFS=$as_save_IFS 9463 9464 ;; 9465 esac 9466 fi 9467 SORT=$ac_cv_path_SORT 9468 if test -n "$SORT"; then 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9470 $as_echo "$SORT" >&6; } 9471 else 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9473 $as_echo "no" >&6; } 9474 fi 9475 9476 9477 if test "x$SORT" = x; then 9478 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9479 fi 9480 else 9481 # Otherwise we believe it is a complete path. Use it as it is. 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9483 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9485 $as_echo_n "checking for SORT... " >&6; } 9486 if test ! -x "$tool_specified"; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9488 $as_echo "not found" >&6; } 9489 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9490 fi 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9492 $as_echo "$tool_specified" >&6; } 9493 fi 9494 fi 9495 fi 9496 9497 9498 9499 if test "x$SORT" = x; then 9500 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9501 fi 9502 9503 9504 9505 9506 9507 # Publish this variable in the help. 9508 9509 9510 if test "x$TAIL" = x; then 9511 # The variable is not set by user, try to locate tool using the code snippet 9512 for ac_prog in tail 9513 do 9514 # Extract the first word of "$ac_prog", so it can be a program name with args. 9515 set dummy $ac_prog; ac_word=$2 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9517 $as_echo_n "checking for $ac_word... " >&6; } 9518 if ${ac_cv_path_TAIL+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520 else 9521 case $TAIL in 9522 [\\/]* | ?:[\\/]*) 9523 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9524 ;; 9525 *) 9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9527 for as_dir in $PATH 9528 do 9529 IFS=$as_save_IFS 9530 test -z "$as_dir" && as_dir=. 9531 for ac_exec_ext in '' $ac_executable_extensions; do 9532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9533 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9535 break 2 9536 fi 9537 done 9538 done 9539 IFS=$as_save_IFS 9540 9541 ;; 9542 esac 9543 fi 9544 TAIL=$ac_cv_path_TAIL 9545 if test -n "$TAIL"; then 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9547 $as_echo "$TAIL" >&6; } 9548 else 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9550 $as_echo "no" >&6; } 9551 fi 9552 9553 9554 test -n "$TAIL" && break 9555 done 9556 9557 else 9558 # The variable is set, but is it from the command line or the environment? 9559 9560 # Try to remove the string !TAIL! from our list. 9561 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9562 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9563 # If it failed, the variable was not from the command line. Ignore it, 9564 # but warn the user (except for BASH, which is always set by the calling BASH). 9565 if test "xTAIL" != xBASH; then 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9567 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9568 fi 9569 # Try to locate tool using the code snippet 9570 for ac_prog in tail 9571 do 9572 # Extract the first word of "$ac_prog", so it can be a program name with args. 9573 set dummy $ac_prog; ac_word=$2 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9575 $as_echo_n "checking for $ac_word... " >&6; } 9576 if ${ac_cv_path_TAIL+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578 else 9579 case $TAIL in 9580 [\\/]* | ?:[\\/]*) 9581 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9582 ;; 9583 *) 9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9585 for as_dir in $PATH 9586 do 9587 IFS=$as_save_IFS 9588 test -z "$as_dir" && as_dir=. 9589 for ac_exec_ext in '' $ac_executable_extensions; do 9590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9591 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9593 break 2 9594 fi 9595 done 9596 done 9597 IFS=$as_save_IFS 9598 9599 ;; 9600 esac 9601 fi 9602 TAIL=$ac_cv_path_TAIL 9603 if test -n "$TAIL"; then 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9605 $as_echo "$TAIL" >&6; } 9606 else 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9608 $as_echo "no" >&6; } 9609 fi 9610 9611 9612 test -n "$TAIL" && break 9613 done 9614 9615 else 9616 # If it succeeded, then it was overridden by the user. We will use it 9617 # for the tool. 9618 9619 # First remove it from the list of overridden variables, so we can test 9620 # for unknown variables in the end. 9621 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9622 9623 # Check if the provided tool contains a complete path. 9624 tool_specified="$TAIL" 9625 tool_basename="${tool_specified##*/}" 9626 if test "x$tool_basename" = "x$tool_specified"; then 9627 # A command without a complete path is provided, search $PATH. 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9629 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9630 # Extract the first word of "$tool_basename", so it can be a program name with args. 9631 set dummy $tool_basename; ac_word=$2 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9633 $as_echo_n "checking for $ac_word... " >&6; } 9634 if ${ac_cv_path_TAIL+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636 else 9637 case $TAIL in 9638 [\\/]* | ?:[\\/]*) 9639 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9640 ;; 9641 *) 9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9643 for as_dir in $PATH 9644 do 9645 IFS=$as_save_IFS 9646 test -z "$as_dir" && as_dir=. 9647 for ac_exec_ext in '' $ac_executable_extensions; do 9648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9649 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9651 break 2 9652 fi 9653 done 9654 done 9655 IFS=$as_save_IFS 9656 9657 ;; 9658 esac 9659 fi 9660 TAIL=$ac_cv_path_TAIL 9661 if test -n "$TAIL"; then 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9663 $as_echo "$TAIL" >&6; } 9664 else 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9666 $as_echo "no" >&6; } 9667 fi 9668 9669 9670 if test "x$TAIL" = x; then 9671 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9672 fi 9673 else 9674 # Otherwise we believe it is a complete path. Use it as it is. 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9676 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9678 $as_echo_n "checking for TAIL... " >&6; } 9679 if test ! -x "$tool_specified"; then 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9681 $as_echo "not found" >&6; } 9682 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9683 fi 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9685 $as_echo "$tool_specified" >&6; } 9686 fi 9687 fi 9688 fi 9689 9690 9691 9692 if test "x$TAIL" = x; then 9693 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9694 fi 9695 9696 9697 9698 9699 9700 # Publish this variable in the help. 9701 9702 9703 if test "x$TAR" = x; then 9704 # The variable is not set by user, try to locate tool using the code snippet 9705 for ac_prog in tar 9706 do 9707 # Extract the first word of "$ac_prog", so it can be a program name with args. 9708 set dummy $ac_prog; ac_word=$2 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9710 $as_echo_n "checking for $ac_word... " >&6; } 9711 if ${ac_cv_path_TAR+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713 else 9714 case $TAR in 9715 [\\/]* | ?:[\\/]*) 9716 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9717 ;; 9718 *) 9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9720 for as_dir in $PATH 9721 do 9722 IFS=$as_save_IFS 9723 test -z "$as_dir" && as_dir=. 9724 for ac_exec_ext in '' $ac_executable_extensions; do 9725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9726 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9728 break 2 9729 fi 9730 done 9731 done 9732 IFS=$as_save_IFS 9733 9734 ;; 9735 esac 9736 fi 9737 TAR=$ac_cv_path_TAR 9738 if test -n "$TAR"; then 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9740 $as_echo "$TAR" >&6; } 9741 else 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9743 $as_echo "no" >&6; } 9744 fi 9745 9746 9747 test -n "$TAR" && break 9748 done 9749 9750 else 9751 # The variable is set, but is it from the command line or the environment? 9752 9753 # Try to remove the string !TAR! from our list. 9754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9756 # If it failed, the variable was not from the command line. Ignore it, 9757 # but warn the user (except for BASH, which is always set by the calling BASH). 9758 if test "xTAR" != xBASH; then 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9760 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9761 fi 9762 # Try to locate tool using the code snippet 9763 for ac_prog in tar 9764 do 9765 # Extract the first word of "$ac_prog", so it can be a program name with args. 9766 set dummy $ac_prog; ac_word=$2 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9768 $as_echo_n "checking for $ac_word... " >&6; } 9769 if ${ac_cv_path_TAR+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771 else 9772 case $TAR in 9773 [\\/]* | ?:[\\/]*) 9774 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9775 ;; 9776 *) 9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9778 for as_dir in $PATH 9779 do 9780 IFS=$as_save_IFS 9781 test -z "$as_dir" && as_dir=. 9782 for ac_exec_ext in '' $ac_executable_extensions; do 9783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9784 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9786 break 2 9787 fi 9788 done 9789 done 9790 IFS=$as_save_IFS 9791 9792 ;; 9793 esac 9794 fi 9795 TAR=$ac_cv_path_TAR 9796 if test -n "$TAR"; then 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9798 $as_echo "$TAR" >&6; } 9799 else 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9801 $as_echo "no" >&6; } 9802 fi 9803 9804 9805 test -n "$TAR" && break 9806 done 9807 9808 else 9809 # If it succeeded, then it was overridden by the user. We will use it 9810 # for the tool. 9811 9812 # First remove it from the list of overridden variables, so we can test 9813 # for unknown variables in the end. 9814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9815 9816 # Check if the provided tool contains a complete path. 9817 tool_specified="$TAR" 9818 tool_basename="${tool_specified##*/}" 9819 if test "x$tool_basename" = "x$tool_specified"; then 9820 # A command without a complete path is provided, search $PATH. 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9822 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9823 # Extract the first word of "$tool_basename", so it can be a program name with args. 9824 set dummy $tool_basename; ac_word=$2 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9826 $as_echo_n "checking for $ac_word... " >&6; } 9827 if ${ac_cv_path_TAR+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829 else 9830 case $TAR in 9831 [\\/]* | ?:[\\/]*) 9832 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9833 ;; 9834 *) 9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9836 for as_dir in $PATH 9837 do 9838 IFS=$as_save_IFS 9839 test -z "$as_dir" && as_dir=. 9840 for ac_exec_ext in '' $ac_executable_extensions; do 9841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9842 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9844 break 2 9845 fi 9846 done 9847 done 9848 IFS=$as_save_IFS 9849 9850 ;; 9851 esac 9852 fi 9853 TAR=$ac_cv_path_TAR 9854 if test -n "$TAR"; then 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9856 $as_echo "$TAR" >&6; } 9857 else 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9859 $as_echo "no" >&6; } 9860 fi 9861 9862 9863 if test "x$TAR" = x; then 9864 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9865 fi 9866 else 9867 # Otherwise we believe it is a complete path. Use it as it is. 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9869 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9871 $as_echo_n "checking for TAR... " >&6; } 9872 if test ! -x "$tool_specified"; then 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9874 $as_echo "not found" >&6; } 9875 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9876 fi 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9878 $as_echo "$tool_specified" >&6; } 9879 fi 9880 fi 9881 fi 9882 9883 9884 9885 if test "x$TAR" = x; then 9886 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9887 fi 9888 9889 9890 9891 9892 9893 # Publish this variable in the help. 9894 9895 9896 if test "x$TEE" = x; then 9897 # The variable is not set by user, try to locate tool using the code snippet 9898 for ac_prog in tee 9899 do 9900 # Extract the first word of "$ac_prog", so it can be a program name with args. 9901 set dummy $ac_prog; ac_word=$2 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9903 $as_echo_n "checking for $ac_word... " >&6; } 9904 if ${ac_cv_path_TEE+:} false; then : 9905 $as_echo_n "(cached) " >&6 9906 else 9907 case $TEE in 9908 [\\/]* | ?:[\\/]*) 9909 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9910 ;; 9911 *) 9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9913 for as_dir in $PATH 9914 do 9915 IFS=$as_save_IFS 9916 test -z "$as_dir" && as_dir=. 9917 for ac_exec_ext in '' $ac_executable_extensions; do 9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9919 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9921 break 2 9922 fi 9923 done 9924 done 9925 IFS=$as_save_IFS 9926 9927 ;; 9928 esac 9929 fi 9930 TEE=$ac_cv_path_TEE 9931 if test -n "$TEE"; then 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9933 $as_echo "$TEE" >&6; } 9934 else 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9936 $as_echo "no" >&6; } 9937 fi 9938 9939 9940 test -n "$TEE" && break 9941 done 9942 9943 else 9944 # The variable is set, but is it from the command line or the environment? 9945 9946 # Try to remove the string !TEE! from our list. 9947 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9948 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9949 # If it failed, the variable was not from the command line. Ignore it, 9950 # but warn the user (except for BASH, which is always set by the calling BASH). 9951 if test "xTEE" != xBASH; then 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9953 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9954 fi 9955 # Try to locate tool using the code snippet 9956 for ac_prog in tee 9957 do 9958 # Extract the first word of "$ac_prog", so it can be a program name with args. 9959 set dummy $ac_prog; ac_word=$2 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9961 $as_echo_n "checking for $ac_word... " >&6; } 9962 if ${ac_cv_path_TEE+:} false; then : 9963 $as_echo_n "(cached) " >&6 9964 else 9965 case $TEE in 9966 [\\/]* | ?:[\\/]*) 9967 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9968 ;; 9969 *) 9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9971 for as_dir in $PATH 9972 do 9973 IFS=$as_save_IFS 9974 test -z "$as_dir" && as_dir=. 9975 for ac_exec_ext in '' $ac_executable_extensions; do 9976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9977 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9979 break 2 9980 fi 9981 done 9982 done 9983 IFS=$as_save_IFS 9984 9985 ;; 9986 esac 9987 fi 9988 TEE=$ac_cv_path_TEE 9989 if test -n "$TEE"; then 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9991 $as_echo "$TEE" >&6; } 9992 else 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9994 $as_echo "no" >&6; } 9995 fi 9996 9997 9998 test -n "$TEE" && break 9999 done 10000 10001 else 10002 # If it succeeded, then it was overridden by the user. We will use it 10003 # for the tool. 10004 10005 # First remove it from the list of overridden variables, so we can test 10006 # for unknown variables in the end. 10007 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10008 10009 # Check if the provided tool contains a complete path. 10010 tool_specified="$TEE" 10011 tool_basename="${tool_specified##*/}" 10012 if test "x$tool_basename" = "x$tool_specified"; then 10013 # A command without a complete path is provided, search $PATH. 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10015 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10016 # Extract the first word of "$tool_basename", so it can be a program name with args. 10017 set dummy $tool_basename; ac_word=$2 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10019 $as_echo_n "checking for $ac_word... " >&6; } 10020 if ${ac_cv_path_TEE+:} false; then : 10021 $as_echo_n "(cached) " >&6 10022 else 10023 case $TEE in 10024 [\\/]* | ?:[\\/]*) 10025 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10026 ;; 10027 *) 10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10029 for as_dir in $PATH 10030 do 10031 IFS=$as_save_IFS 10032 test -z "$as_dir" && as_dir=. 10033 for ac_exec_ext in '' $ac_executable_extensions; do 10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10035 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10037 break 2 10038 fi 10039 done 10040 done 10041 IFS=$as_save_IFS 10042 10043 ;; 10044 esac 10045 fi 10046 TEE=$ac_cv_path_TEE 10047 if test -n "$TEE"; then 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10049 $as_echo "$TEE" >&6; } 10050 else 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10052 $as_echo "no" >&6; } 10053 fi 10054 10055 10056 if test "x$TEE" = x; then 10057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10058 fi 10059 else 10060 # Otherwise we believe it is a complete path. Use it as it is. 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10062 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10064 $as_echo_n "checking for TEE... " >&6; } 10065 if test ! -x "$tool_specified"; then 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10067 $as_echo "not found" >&6; } 10068 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10069 fi 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10071 $as_echo "$tool_specified" >&6; } 10072 fi 10073 fi 10074 fi 10075 10076 10077 10078 if test "x$TEE" = x; then 10079 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10080 fi 10081 10082 10083 10084 10085 10086 # Publish this variable in the help. 10087 10088 10089 if test "x$TOUCH" = x; then 10090 # The variable is not set by user, try to locate tool using the code snippet 10091 for ac_prog in touch 10092 do 10093 # Extract the first word of "$ac_prog", so it can be a program name with args. 10094 set dummy $ac_prog; ac_word=$2 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10096 $as_echo_n "checking for $ac_word... " >&6; } 10097 if ${ac_cv_path_TOUCH+:} false; then : 10098 $as_echo_n "(cached) " >&6 10099 else 10100 case $TOUCH in 10101 [\\/]* | ?:[\\/]*) 10102 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10103 ;; 10104 *) 10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10106 for as_dir in $PATH 10107 do 10108 IFS=$as_save_IFS 10109 test -z "$as_dir" && as_dir=. 10110 for ac_exec_ext in '' $ac_executable_extensions; do 10111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10112 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10114 break 2 10115 fi 10116 done 10117 done 10118 IFS=$as_save_IFS 10119 10120 ;; 10121 esac 10122 fi 10123 TOUCH=$ac_cv_path_TOUCH 10124 if test -n "$TOUCH"; then 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10126 $as_echo "$TOUCH" >&6; } 10127 else 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10129 $as_echo "no" >&6; } 10130 fi 10131 10132 10133 test -n "$TOUCH" && break 10134 done 10135 10136 else 10137 # The variable is set, but is it from the command line or the environment? 10138 10139 # Try to remove the string !TOUCH! from our list. 10140 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10141 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10142 # If it failed, the variable was not from the command line. Ignore it, 10143 # but warn the user (except for BASH, which is always set by the calling BASH). 10144 if test "xTOUCH" != xBASH; then 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10146 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10147 fi 10148 # Try to locate tool using the code snippet 10149 for ac_prog in touch 10150 do 10151 # Extract the first word of "$ac_prog", so it can be a program name with args. 10152 set dummy $ac_prog; ac_word=$2 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10154 $as_echo_n "checking for $ac_word... " >&6; } 10155 if ${ac_cv_path_TOUCH+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157 else 10158 case $TOUCH in 10159 [\\/]* | ?:[\\/]*) 10160 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10161 ;; 10162 *) 10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10164 for as_dir in $PATH 10165 do 10166 IFS=$as_save_IFS 10167 test -z "$as_dir" && as_dir=. 10168 for ac_exec_ext in '' $ac_executable_extensions; do 10169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10170 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10172 break 2 10173 fi 10174 done 10175 done 10176 IFS=$as_save_IFS 10177 10178 ;; 10179 esac 10180 fi 10181 TOUCH=$ac_cv_path_TOUCH 10182 if test -n "$TOUCH"; then 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10184 $as_echo "$TOUCH" >&6; } 10185 else 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10187 $as_echo "no" >&6; } 10188 fi 10189 10190 10191 test -n "$TOUCH" && break 10192 done 10193 10194 else 10195 # If it succeeded, then it was overridden by the user. We will use it 10196 # for the tool. 10197 10198 # First remove it from the list of overridden variables, so we can test 10199 # for unknown variables in the end. 10200 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10201 10202 # Check if the provided tool contains a complete path. 10203 tool_specified="$TOUCH" 10204 tool_basename="${tool_specified##*/}" 10205 if test "x$tool_basename" = "x$tool_specified"; then 10206 # A command without a complete path is provided, search $PATH. 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10208 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10209 # Extract the first word of "$tool_basename", so it can be a program name with args. 10210 set dummy $tool_basename; ac_word=$2 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10212 $as_echo_n "checking for $ac_word... " >&6; } 10213 if ${ac_cv_path_TOUCH+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215 else 10216 case $TOUCH in 10217 [\\/]* | ?:[\\/]*) 10218 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10219 ;; 10220 *) 10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10222 for as_dir in $PATH 10223 do 10224 IFS=$as_save_IFS 10225 test -z "$as_dir" && as_dir=. 10226 for ac_exec_ext in '' $ac_executable_extensions; do 10227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10228 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10230 break 2 10231 fi 10232 done 10233 done 10234 IFS=$as_save_IFS 10235 10236 ;; 10237 esac 10238 fi 10239 TOUCH=$ac_cv_path_TOUCH 10240 if test -n "$TOUCH"; then 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10242 $as_echo "$TOUCH" >&6; } 10243 else 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10245 $as_echo "no" >&6; } 10246 fi 10247 10248 10249 if test "x$TOUCH" = x; then 10250 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10251 fi 10252 else 10253 # Otherwise we believe it is a complete path. Use it as it is. 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10255 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10257 $as_echo_n "checking for TOUCH... " >&6; } 10258 if test ! -x "$tool_specified"; then 10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10260 $as_echo "not found" >&6; } 10261 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10262 fi 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10264 $as_echo "$tool_specified" >&6; } 10265 fi 10266 fi 10267 fi 10268 10269 10270 10271 if test "x$TOUCH" = x; then 10272 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10273 fi 10274 10275 10276 10277 10278 10279 # Publish this variable in the help. 10280 10281 10282 if test "x$TR" = x; then 10283 # The variable is not set by user, try to locate tool using the code snippet 10284 for ac_prog in tr 10285 do 10286 # Extract the first word of "$ac_prog", so it can be a program name with args. 10287 set dummy $ac_prog; ac_word=$2 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10289 $as_echo_n "checking for $ac_word... " >&6; } 10290 if ${ac_cv_path_TR+:} false; then : 10291 $as_echo_n "(cached) " >&6 10292 else 10293 case $TR in 10294 [\\/]* | ?:[\\/]*) 10295 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10296 ;; 10297 *) 10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10299 for as_dir in $PATH 10300 do 10301 IFS=$as_save_IFS 10302 test -z "$as_dir" && as_dir=. 10303 for ac_exec_ext in '' $ac_executable_extensions; do 10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10305 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10307 break 2 10308 fi 10309 done 10310 done 10311 IFS=$as_save_IFS 10312 10313 ;; 10314 esac 10315 fi 10316 TR=$ac_cv_path_TR 10317 if test -n "$TR"; then 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10319 $as_echo "$TR" >&6; } 10320 else 10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10322 $as_echo "no" >&6; } 10323 fi 10324 10325 10326 test -n "$TR" && break 10327 done 10328 10329 else 10330 # The variable is set, but is it from the command line or the environment? 10331 10332 # Try to remove the string !TR! from our list. 10333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10335 # If it failed, the variable was not from the command line. Ignore it, 10336 # but warn the user (except for BASH, which is always set by the calling BASH). 10337 if test "xTR" != xBASH; then 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10339 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10340 fi 10341 # Try to locate tool using the code snippet 10342 for ac_prog in tr 10343 do 10344 # Extract the first word of "$ac_prog", so it can be a program name with args. 10345 set dummy $ac_prog; ac_word=$2 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10347 $as_echo_n "checking for $ac_word... " >&6; } 10348 if ${ac_cv_path_TR+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350 else 10351 case $TR in 10352 [\\/]* | ?:[\\/]*) 10353 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10354 ;; 10355 *) 10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10357 for as_dir in $PATH 10358 do 10359 IFS=$as_save_IFS 10360 test -z "$as_dir" && as_dir=. 10361 for ac_exec_ext in '' $ac_executable_extensions; do 10362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10363 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10365 break 2 10366 fi 10367 done 10368 done 10369 IFS=$as_save_IFS 10370 10371 ;; 10372 esac 10373 fi 10374 TR=$ac_cv_path_TR 10375 if test -n "$TR"; then 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10377 $as_echo "$TR" >&6; } 10378 else 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10380 $as_echo "no" >&6; } 10381 fi 10382 10383 10384 test -n "$TR" && break 10385 done 10386 10387 else 10388 # If it succeeded, then it was overridden by the user. We will use it 10389 # for the tool. 10390 10391 # First remove it from the list of overridden variables, so we can test 10392 # for unknown variables in the end. 10393 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10394 10395 # Check if the provided tool contains a complete path. 10396 tool_specified="$TR" 10397 tool_basename="${tool_specified##*/}" 10398 if test "x$tool_basename" = "x$tool_specified"; then 10399 # A command without a complete path is provided, search $PATH. 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10401 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10402 # Extract the first word of "$tool_basename", so it can be a program name with args. 10403 set dummy $tool_basename; ac_word=$2 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10405 $as_echo_n "checking for $ac_word... " >&6; } 10406 if ${ac_cv_path_TR+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408 else 10409 case $TR in 10410 [\\/]* | ?:[\\/]*) 10411 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10412 ;; 10413 *) 10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10415 for as_dir in $PATH 10416 do 10417 IFS=$as_save_IFS 10418 test -z "$as_dir" && as_dir=. 10419 for ac_exec_ext in '' $ac_executable_extensions; do 10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10421 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10423 break 2 10424 fi 10425 done 10426 done 10427 IFS=$as_save_IFS 10428 10429 ;; 10430 esac 10431 fi 10432 TR=$ac_cv_path_TR 10433 if test -n "$TR"; then 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10435 $as_echo "$TR" >&6; } 10436 else 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10438 $as_echo "no" >&6; } 10439 fi 10440 10441 10442 if test "x$TR" = x; then 10443 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10444 fi 10445 else 10446 # Otherwise we believe it is a complete path. Use it as it is. 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10448 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10450 $as_echo_n "checking for TR... " >&6; } 10451 if test ! -x "$tool_specified"; then 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10453 $as_echo "not found" >&6; } 10454 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10455 fi 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10457 $as_echo "$tool_specified" >&6; } 10458 fi 10459 fi 10460 fi 10461 10462 10463 10464 if test "x$TR" = x; then 10465 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10466 fi 10467 10468 10469 10470 10471 10472 # Publish this variable in the help. 10473 10474 10475 if test "x$UNAME" = x; then 10476 # The variable is not set by user, try to locate tool using the code snippet 10477 for ac_prog in uname 10478 do 10479 # Extract the first word of "$ac_prog", so it can be a program name with args. 10480 set dummy $ac_prog; ac_word=$2 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10482 $as_echo_n "checking for $ac_word... " >&6; } 10483 if ${ac_cv_path_UNAME+:} false; then : 10484 $as_echo_n "(cached) " >&6 10485 else 10486 case $UNAME in 10487 [\\/]* | ?:[\\/]*) 10488 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10489 ;; 10490 *) 10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10492 for as_dir in $PATH 10493 do 10494 IFS=$as_save_IFS 10495 test -z "$as_dir" && as_dir=. 10496 for ac_exec_ext in '' $ac_executable_extensions; do 10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10498 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10500 break 2 10501 fi 10502 done 10503 done 10504 IFS=$as_save_IFS 10505 10506 ;; 10507 esac 10508 fi 10509 UNAME=$ac_cv_path_UNAME 10510 if test -n "$UNAME"; then 10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10512 $as_echo "$UNAME" >&6; } 10513 else 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10515 $as_echo "no" >&6; } 10516 fi 10517 10518 10519 test -n "$UNAME" && break 10520 done 10521 10522 else 10523 # The variable is set, but is it from the command line or the environment? 10524 10525 # Try to remove the string !UNAME! from our list. 10526 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10527 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10528 # If it failed, the variable was not from the command line. Ignore it, 10529 # but warn the user (except for BASH, which is always set by the calling BASH). 10530 if test "xUNAME" != xBASH; then 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10532 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10533 fi 10534 # Try to locate tool using the code snippet 10535 for ac_prog in uname 10536 do 10537 # Extract the first word of "$ac_prog", so it can be a program name with args. 10538 set dummy $ac_prog; ac_word=$2 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10540 $as_echo_n "checking for $ac_word... " >&6; } 10541 if ${ac_cv_path_UNAME+:} false; then : 10542 $as_echo_n "(cached) " >&6 10543 else 10544 case $UNAME in 10545 [\\/]* | ?:[\\/]*) 10546 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10547 ;; 10548 *) 10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10550 for as_dir in $PATH 10551 do 10552 IFS=$as_save_IFS 10553 test -z "$as_dir" && as_dir=. 10554 for ac_exec_ext in '' $ac_executable_extensions; do 10555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10556 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10558 break 2 10559 fi 10560 done 10561 done 10562 IFS=$as_save_IFS 10563 10564 ;; 10565 esac 10566 fi 10567 UNAME=$ac_cv_path_UNAME 10568 if test -n "$UNAME"; then 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10570 $as_echo "$UNAME" >&6; } 10571 else 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10573 $as_echo "no" >&6; } 10574 fi 10575 10576 10577 test -n "$UNAME" && break 10578 done 10579 10580 else 10581 # If it succeeded, then it was overridden by the user. We will use it 10582 # for the tool. 10583 10584 # First remove it from the list of overridden variables, so we can test 10585 # for unknown variables in the end. 10586 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10587 10588 # Check if the provided tool contains a complete path. 10589 tool_specified="$UNAME" 10590 tool_basename="${tool_specified##*/}" 10591 if test "x$tool_basename" = "x$tool_specified"; then 10592 # A command without a complete path is provided, search $PATH. 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10594 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10595 # Extract the first word of "$tool_basename", so it can be a program name with args. 10596 set dummy $tool_basename; ac_word=$2 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10598 $as_echo_n "checking for $ac_word... " >&6; } 10599 if ${ac_cv_path_UNAME+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601 else 10602 case $UNAME in 10603 [\\/]* | ?:[\\/]*) 10604 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10605 ;; 10606 *) 10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10608 for as_dir in $PATH 10609 do 10610 IFS=$as_save_IFS 10611 test -z "$as_dir" && as_dir=. 10612 for ac_exec_ext in '' $ac_executable_extensions; do 10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10614 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10616 break 2 10617 fi 10618 done 10619 done 10620 IFS=$as_save_IFS 10621 10622 ;; 10623 esac 10624 fi 10625 UNAME=$ac_cv_path_UNAME 10626 if test -n "$UNAME"; then 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10628 $as_echo "$UNAME" >&6; } 10629 else 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10631 $as_echo "no" >&6; } 10632 fi 10633 10634 10635 if test "x$UNAME" = x; then 10636 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10637 fi 10638 else 10639 # Otherwise we believe it is a complete path. Use it as it is. 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10641 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10643 $as_echo_n "checking for UNAME... " >&6; } 10644 if test ! -x "$tool_specified"; then 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10646 $as_echo "not found" >&6; } 10647 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10648 fi 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10650 $as_echo "$tool_specified" >&6; } 10651 fi 10652 fi 10653 fi 10654 10655 10656 10657 if test "x$UNAME" = x; then 10658 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10659 fi 10660 10661 10662 10663 10664 10665 # Publish this variable in the help. 10666 10667 10668 if test "x$UNIQ" = x; then 10669 # The variable is not set by user, try to locate tool using the code snippet 10670 for ac_prog in uniq 10671 do 10672 # Extract the first word of "$ac_prog", so it can be a program name with args. 10673 set dummy $ac_prog; ac_word=$2 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10675 $as_echo_n "checking for $ac_word... " >&6; } 10676 if ${ac_cv_path_UNIQ+:} false; then : 10677 $as_echo_n "(cached) " >&6 10678 else 10679 case $UNIQ in 10680 [\\/]* | ?:[\\/]*) 10681 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10682 ;; 10683 *) 10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10685 for as_dir in $PATH 10686 do 10687 IFS=$as_save_IFS 10688 test -z "$as_dir" && as_dir=. 10689 for ac_exec_ext in '' $ac_executable_extensions; do 10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10691 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10693 break 2 10694 fi 10695 done 10696 done 10697 IFS=$as_save_IFS 10698 10699 ;; 10700 esac 10701 fi 10702 UNIQ=$ac_cv_path_UNIQ 10703 if test -n "$UNIQ"; then 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10705 $as_echo "$UNIQ" >&6; } 10706 else 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10708 $as_echo "no" >&6; } 10709 fi 10710 10711 10712 test -n "$UNIQ" && break 10713 done 10714 10715 else 10716 # The variable is set, but is it from the command line or the environment? 10717 10718 # Try to remove the string !UNIQ! from our list. 10719 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10720 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10721 # If it failed, the variable was not from the command line. Ignore it, 10722 # but warn the user (except for BASH, which is always set by the calling BASH). 10723 if test "xUNIQ" != xBASH; then 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10725 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10726 fi 10727 # Try to locate tool using the code snippet 10728 for ac_prog in uniq 10729 do 10730 # Extract the first word of "$ac_prog", so it can be a program name with args. 10731 set dummy $ac_prog; ac_word=$2 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10733 $as_echo_n "checking for $ac_word... " >&6; } 10734 if ${ac_cv_path_UNIQ+:} false; then : 10735 $as_echo_n "(cached) " >&6 10736 else 10737 case $UNIQ in 10738 [\\/]* | ?:[\\/]*) 10739 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10740 ;; 10741 *) 10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10743 for as_dir in $PATH 10744 do 10745 IFS=$as_save_IFS 10746 test -z "$as_dir" && as_dir=. 10747 for ac_exec_ext in '' $ac_executable_extensions; do 10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10749 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10751 break 2 10752 fi 10753 done 10754 done 10755 IFS=$as_save_IFS 10756 10757 ;; 10758 esac 10759 fi 10760 UNIQ=$ac_cv_path_UNIQ 10761 if test -n "$UNIQ"; then 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10763 $as_echo "$UNIQ" >&6; } 10764 else 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10766 $as_echo "no" >&6; } 10767 fi 10768 10769 10770 test -n "$UNIQ" && break 10771 done 10772 10773 else 10774 # If it succeeded, then it was overridden by the user. We will use it 10775 # for the tool. 10776 10777 # First remove it from the list of overridden variables, so we can test 10778 # for unknown variables in the end. 10779 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10780 10781 # Check if the provided tool contains a complete path. 10782 tool_specified="$UNIQ" 10783 tool_basename="${tool_specified##*/}" 10784 if test "x$tool_basename" = "x$tool_specified"; then 10785 # A command without a complete path is provided, search $PATH. 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10787 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10788 # Extract the first word of "$tool_basename", so it can be a program name with args. 10789 set dummy $tool_basename; ac_word=$2 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10791 $as_echo_n "checking for $ac_word... " >&6; } 10792 if ${ac_cv_path_UNIQ+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794 else 10795 case $UNIQ in 10796 [\\/]* | ?:[\\/]*) 10797 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10798 ;; 10799 *) 10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10801 for as_dir in $PATH 10802 do 10803 IFS=$as_save_IFS 10804 test -z "$as_dir" && as_dir=. 10805 for ac_exec_ext in '' $ac_executable_extensions; do 10806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10807 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10809 break 2 10810 fi 10811 done 10812 done 10813 IFS=$as_save_IFS 10814 10815 ;; 10816 esac 10817 fi 10818 UNIQ=$ac_cv_path_UNIQ 10819 if test -n "$UNIQ"; then 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10821 $as_echo "$UNIQ" >&6; } 10822 else 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10824 $as_echo "no" >&6; } 10825 fi 10826 10827 10828 if test "x$UNIQ" = x; then 10829 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10830 fi 10831 else 10832 # Otherwise we believe it is a complete path. Use it as it is. 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10834 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10836 $as_echo_n "checking for UNIQ... " >&6; } 10837 if test ! -x "$tool_specified"; then 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10839 $as_echo "not found" >&6; } 10840 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10841 fi 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10843 $as_echo "$tool_specified" >&6; } 10844 fi 10845 fi 10846 fi 10847 10848 10849 10850 if test "x$UNIQ" = x; then 10851 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10852 fi 10853 10854 10855 10856 10857 10858 # Publish this variable in the help. 10859 10860 10861 if test "x$WC" = x; then 10862 # The variable is not set by user, try to locate tool using the code snippet 10863 for ac_prog in wc 10864 do 10865 # Extract the first word of "$ac_prog", so it can be a program name with args. 10866 set dummy $ac_prog; ac_word=$2 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10868 $as_echo_n "checking for $ac_word... " >&6; } 10869 if ${ac_cv_path_WC+:} false; then : 10870 $as_echo_n "(cached) " >&6 10871 else 10872 case $WC in 10873 [\\/]* | ?:[\\/]*) 10874 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10875 ;; 10876 *) 10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10878 for as_dir in $PATH 10879 do 10880 IFS=$as_save_IFS 10881 test -z "$as_dir" && as_dir=. 10882 for ac_exec_ext in '' $ac_executable_extensions; do 10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10884 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10886 break 2 10887 fi 10888 done 10889 done 10890 IFS=$as_save_IFS 10891 10892 ;; 10893 esac 10894 fi 10895 WC=$ac_cv_path_WC 10896 if test -n "$WC"; then 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10898 $as_echo "$WC" >&6; } 10899 else 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10901 $as_echo "no" >&6; } 10902 fi 10903 10904 10905 test -n "$WC" && break 10906 done 10907 10908 else 10909 # The variable is set, but is it from the command line or the environment? 10910 10911 # Try to remove the string !WC! from our list. 10912 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10913 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10914 # If it failed, the variable was not from the command line. Ignore it, 10915 # but warn the user (except for BASH, which is always set by the calling BASH). 10916 if test "xWC" != xBASH; then 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10918 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10919 fi 10920 # Try to locate tool using the code snippet 10921 for ac_prog in wc 10922 do 10923 # Extract the first word of "$ac_prog", so it can be a program name with args. 10924 set dummy $ac_prog; ac_word=$2 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10926 $as_echo_n "checking for $ac_word... " >&6; } 10927 if ${ac_cv_path_WC+:} false; then : 10928 $as_echo_n "(cached) " >&6 10929 else 10930 case $WC in 10931 [\\/]* | ?:[\\/]*) 10932 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10933 ;; 10934 *) 10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10936 for as_dir in $PATH 10937 do 10938 IFS=$as_save_IFS 10939 test -z "$as_dir" && as_dir=. 10940 for ac_exec_ext in '' $ac_executable_extensions; do 10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10942 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10944 break 2 10945 fi 10946 done 10947 done 10948 IFS=$as_save_IFS 10949 10950 ;; 10951 esac 10952 fi 10953 WC=$ac_cv_path_WC 10954 if test -n "$WC"; then 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10956 $as_echo "$WC" >&6; } 10957 else 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10959 $as_echo "no" >&6; } 10960 fi 10961 10962 10963 test -n "$WC" && break 10964 done 10965 10966 else 10967 # If it succeeded, then it was overridden by the user. We will use it 10968 # for the tool. 10969 10970 # First remove it from the list of overridden variables, so we can test 10971 # for unknown variables in the end. 10972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10973 10974 # Check if the provided tool contains a complete path. 10975 tool_specified="$WC" 10976 tool_basename="${tool_specified##*/}" 10977 if test "x$tool_basename" = "x$tool_specified"; then 10978 # A command without a complete path is provided, search $PATH. 10979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10980 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10981 # Extract the first word of "$tool_basename", so it can be a program name with args. 10982 set dummy $tool_basename; ac_word=$2 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10984 $as_echo_n "checking for $ac_word... " >&6; } 10985 if ${ac_cv_path_WC+:} false; then : 10986 $as_echo_n "(cached) " >&6 10987 else 10988 case $WC in 10989 [\\/]* | ?:[\\/]*) 10990 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10991 ;; 10992 *) 10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10994 for as_dir in $PATH 10995 do 10996 IFS=$as_save_IFS 10997 test -z "$as_dir" && as_dir=. 10998 for ac_exec_ext in '' $ac_executable_extensions; do 10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11000 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11002 break 2 11003 fi 11004 done 11005 done 11006 IFS=$as_save_IFS 11007 11008 ;; 11009 esac 11010 fi 11011 WC=$ac_cv_path_WC 11012 if test -n "$WC"; then 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11014 $as_echo "$WC" >&6; } 11015 else 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11017 $as_echo "no" >&6; } 11018 fi 11019 11020 11021 if test "x$WC" = x; then 11022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11023 fi 11024 else 11025 # Otherwise we believe it is a complete path. Use it as it is. 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11027 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11029 $as_echo_n "checking for WC... " >&6; } 11030 if test ! -x "$tool_specified"; then 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11032 $as_echo "not found" >&6; } 11033 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11034 fi 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11036 $as_echo "$tool_specified" >&6; } 11037 fi 11038 fi 11039 fi 11040 11041 11042 11043 if test "x$WC" = x; then 11044 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11045 fi 11046 11047 11048 11049 11050 11051 # Publish this variable in the help. 11052 11053 11054 if test "x$WHICH" = x; then 11055 # The variable is not set by user, try to locate tool using the code snippet 11056 for ac_prog in which 11057 do 11058 # Extract the first word of "$ac_prog", so it can be a program name with args. 11059 set dummy $ac_prog; ac_word=$2 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11061 $as_echo_n "checking for $ac_word... " >&6; } 11062 if ${ac_cv_path_WHICH+:} false; then : 11063 $as_echo_n "(cached) " >&6 11064 else 11065 case $WHICH in 11066 [\\/]* | ?:[\\/]*) 11067 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11068 ;; 11069 *) 11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11071 for as_dir in $PATH 11072 do 11073 IFS=$as_save_IFS 11074 test -z "$as_dir" && as_dir=. 11075 for ac_exec_ext in '' $ac_executable_extensions; do 11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11077 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11079 break 2 11080 fi 11081 done 11082 done 11083 IFS=$as_save_IFS 11084 11085 ;; 11086 esac 11087 fi 11088 WHICH=$ac_cv_path_WHICH 11089 if test -n "$WHICH"; then 11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11091 $as_echo "$WHICH" >&6; } 11092 else 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11094 $as_echo "no" >&6; } 11095 fi 11096 11097 11098 test -n "$WHICH" && break 11099 done 11100 11101 else 11102 # The variable is set, but is it from the command line or the environment? 11103 11104 # Try to remove the string !WHICH! from our list. 11105 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11106 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11107 # If it failed, the variable was not from the command line. Ignore it, 11108 # but warn the user (except for BASH, which is always set by the calling BASH). 11109 if test "xWHICH" != xBASH; then 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11111 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11112 fi 11113 # Try to locate tool using the code snippet 11114 for ac_prog in which 11115 do 11116 # Extract the first word of "$ac_prog", so it can be a program name with args. 11117 set dummy $ac_prog; ac_word=$2 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11119 $as_echo_n "checking for $ac_word... " >&6; } 11120 if ${ac_cv_path_WHICH+:} false; then : 11121 $as_echo_n "(cached) " >&6 11122 else 11123 case $WHICH in 11124 [\\/]* | ?:[\\/]*) 11125 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11126 ;; 11127 *) 11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11129 for as_dir in $PATH 11130 do 11131 IFS=$as_save_IFS 11132 test -z "$as_dir" && as_dir=. 11133 for ac_exec_ext in '' $ac_executable_extensions; do 11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11135 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11137 break 2 11138 fi 11139 done 11140 done 11141 IFS=$as_save_IFS 11142 11143 ;; 11144 esac 11145 fi 11146 WHICH=$ac_cv_path_WHICH 11147 if test -n "$WHICH"; then 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11149 $as_echo "$WHICH" >&6; } 11150 else 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11152 $as_echo "no" >&6; } 11153 fi 11154 11155 11156 test -n "$WHICH" && break 11157 done 11158 11159 else 11160 # If it succeeded, then it was overridden by the user. We will use it 11161 # for the tool. 11162 11163 # First remove it from the list of overridden variables, so we can test 11164 # for unknown variables in the end. 11165 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11166 11167 # Check if the provided tool contains a complete path. 11168 tool_specified="$WHICH" 11169 tool_basename="${tool_specified##*/}" 11170 if test "x$tool_basename" = "x$tool_specified"; then 11171 # A command without a complete path is provided, search $PATH. 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11173 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11174 # Extract the first word of "$tool_basename", so it can be a program name with args. 11175 set dummy $tool_basename; ac_word=$2 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11177 $as_echo_n "checking for $ac_word... " >&6; } 11178 if ${ac_cv_path_WHICH+:} false; then : 11179 $as_echo_n "(cached) " >&6 11180 else 11181 case $WHICH in 11182 [\\/]* | ?:[\\/]*) 11183 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11184 ;; 11185 *) 11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11187 for as_dir in $PATH 11188 do 11189 IFS=$as_save_IFS 11190 test -z "$as_dir" && as_dir=. 11191 for ac_exec_ext in '' $ac_executable_extensions; do 11192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11193 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11195 break 2 11196 fi 11197 done 11198 done 11199 IFS=$as_save_IFS 11200 11201 ;; 11202 esac 11203 fi 11204 WHICH=$ac_cv_path_WHICH 11205 if test -n "$WHICH"; then 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11207 $as_echo "$WHICH" >&6; } 11208 else 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11210 $as_echo "no" >&6; } 11211 fi 11212 11213 11214 if test "x$WHICH" = x; then 11215 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11216 fi 11217 else 11218 # Otherwise we believe it is a complete path. Use it as it is. 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11220 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11222 $as_echo_n "checking for WHICH... " >&6; } 11223 if test ! -x "$tool_specified"; then 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11225 $as_echo "not found" >&6; } 11226 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11227 fi 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11229 $as_echo "$tool_specified" >&6; } 11230 fi 11231 fi 11232 fi 11233 11234 11235 11236 if test "x$WHICH" = x; then 11237 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11238 fi 11239 11240 11241 11242 11243 11244 # Publish this variable in the help. 11245 11246 11247 if test "x$XARGS" = x; then 11248 # The variable is not set by user, try to locate tool using the code snippet 11249 for ac_prog in xargs 11250 do 11251 # Extract the first word of "$ac_prog", so it can be a program name with args. 11252 set dummy $ac_prog; ac_word=$2 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11254 $as_echo_n "checking for $ac_word... " >&6; } 11255 if ${ac_cv_path_XARGS+:} false; then : 11256 $as_echo_n "(cached) " >&6 11257 else 11258 case $XARGS in 11259 [\\/]* | ?:[\\/]*) 11260 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11261 ;; 11262 *) 11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11264 for as_dir in $PATH 11265 do 11266 IFS=$as_save_IFS 11267 test -z "$as_dir" && as_dir=. 11268 for ac_exec_ext in '' $ac_executable_extensions; do 11269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11270 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11272 break 2 11273 fi 11274 done 11275 done 11276 IFS=$as_save_IFS 11277 11278 ;; 11279 esac 11280 fi 11281 XARGS=$ac_cv_path_XARGS 11282 if test -n "$XARGS"; then 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11284 $as_echo "$XARGS" >&6; } 11285 else 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11287 $as_echo "no" >&6; } 11288 fi 11289 11290 11291 test -n "$XARGS" && break 11292 done 11293 11294 else 11295 # The variable is set, but is it from the command line or the environment? 11296 11297 # Try to remove the string !XARGS! from our list. 11298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11300 # If it failed, the variable was not from the command line. Ignore it, 11301 # but warn the user (except for BASH, which is always set by the calling BASH). 11302 if test "xXARGS" != xBASH; then 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11304 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11305 fi 11306 # Try to locate tool using the code snippet 11307 for ac_prog in xargs 11308 do 11309 # Extract the first word of "$ac_prog", so it can be a program name with args. 11310 set dummy $ac_prog; ac_word=$2 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11312 $as_echo_n "checking for $ac_word... " >&6; } 11313 if ${ac_cv_path_XARGS+:} false; then : 11314 $as_echo_n "(cached) " >&6 11315 else 11316 case $XARGS in 11317 [\\/]* | ?:[\\/]*) 11318 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11319 ;; 11320 *) 11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11322 for as_dir in $PATH 11323 do 11324 IFS=$as_save_IFS 11325 test -z "$as_dir" && as_dir=. 11326 for ac_exec_ext in '' $ac_executable_extensions; do 11327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11328 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11330 break 2 11331 fi 11332 done 11333 done 11334 IFS=$as_save_IFS 11335 11336 ;; 11337 esac 11338 fi 11339 XARGS=$ac_cv_path_XARGS 11340 if test -n "$XARGS"; then 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11342 $as_echo "$XARGS" >&6; } 11343 else 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11345 $as_echo "no" >&6; } 11346 fi 11347 11348 11349 test -n "$XARGS" && break 11350 done 11351 11352 else 11353 # If it succeeded, then it was overridden by the user. We will use it 11354 # for the tool. 11355 11356 # First remove it from the list of overridden variables, so we can test 11357 # for unknown variables in the end. 11358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11359 11360 # Check if the provided tool contains a complete path. 11361 tool_specified="$XARGS" 11362 tool_basename="${tool_specified##*/}" 11363 if test "x$tool_basename" = "x$tool_specified"; then 11364 # A command without a complete path is provided, search $PATH. 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11366 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11367 # Extract the first word of "$tool_basename", so it can be a program name with args. 11368 set dummy $tool_basename; ac_word=$2 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11370 $as_echo_n "checking for $ac_word... " >&6; } 11371 if ${ac_cv_path_XARGS+:} false; then : 11372 $as_echo_n "(cached) " >&6 11373 else 11374 case $XARGS in 11375 [\\/]* | ?:[\\/]*) 11376 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11377 ;; 11378 *) 11379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11380 for as_dir in $PATH 11381 do 11382 IFS=$as_save_IFS 11383 test -z "$as_dir" && as_dir=. 11384 for ac_exec_ext in '' $ac_executable_extensions; do 11385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11386 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11388 break 2 11389 fi 11390 done 11391 done 11392 IFS=$as_save_IFS 11393 11394 ;; 11395 esac 11396 fi 11397 XARGS=$ac_cv_path_XARGS 11398 if test -n "$XARGS"; then 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11400 $as_echo "$XARGS" >&6; } 11401 else 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11403 $as_echo "no" >&6; } 11404 fi 11405 11406 11407 if test "x$XARGS" = x; then 11408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11409 fi 11410 else 11411 # Otherwise we believe it is a complete path. Use it as it is. 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11413 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11415 $as_echo_n "checking for XARGS... " >&6; } 11416 if test ! -x "$tool_specified"; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11418 $as_echo "not found" >&6; } 11419 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11420 fi 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11422 $as_echo "$tool_specified" >&6; } 11423 fi 11424 fi 11425 fi 11426 11427 11428 11429 if test "x$XARGS" = x; then 11430 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11431 fi 11432 11433 11434 11435 # Then required tools that require some special treatment. 11436 11437 11438 # Publish this variable in the help. 11439 11440 11441 if test "x$AWK" = x; then 11442 # The variable is not set by user, try to locate tool using the code snippet 11443 for ac_prog in gawk mawk nawk awk 11444 do 11445 # Extract the first word of "$ac_prog", so it can be a program name with args. 11446 set dummy $ac_prog; ac_word=$2 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11448 $as_echo_n "checking for $ac_word... " >&6; } 11449 if ${ac_cv_prog_AWK+:} false; then : 11450 $as_echo_n "(cached) " >&6 11451 else 11452 if test -n "$AWK"; then 11453 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11454 else 11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11456 for as_dir in $PATH 11457 do 11458 IFS=$as_save_IFS 11459 test -z "$as_dir" && as_dir=. 11460 for ac_exec_ext in '' $ac_executable_extensions; do 11461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11462 ac_cv_prog_AWK="$ac_prog" 11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11464 break 2 11465 fi 11466 done 11467 done 11468 IFS=$as_save_IFS 11469 11470 fi 11471 fi 11472 AWK=$ac_cv_prog_AWK 11473 if test -n "$AWK"; then 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11475 $as_echo "$AWK" >&6; } 11476 else 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11478 $as_echo "no" >&6; } 11479 fi 11480 11481 11482 test -n "$AWK" && break 11483 done 11484 11485 else 11486 # The variable is set, but is it from the command line or the environment? 11487 11488 # Try to remove the string !AWK! from our list. 11489 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11490 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11491 # If it failed, the variable was not from the command line. Ignore it, 11492 # but warn the user (except for BASH, which is always set by the calling BASH). 11493 if test "xAWK" != xBASH; then 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11495 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11496 fi 11497 # Try to locate tool using the code snippet 11498 for ac_prog in gawk mawk nawk awk 11499 do 11500 # Extract the first word of "$ac_prog", so it can be a program name with args. 11501 set dummy $ac_prog; ac_word=$2 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11503 $as_echo_n "checking for $ac_word... " >&6; } 11504 if ${ac_cv_prog_AWK+:} false; then : 11505 $as_echo_n "(cached) " >&6 11506 else 11507 if test -n "$AWK"; then 11508 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11509 else 11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11511 for as_dir in $PATH 11512 do 11513 IFS=$as_save_IFS 11514 test -z "$as_dir" && as_dir=. 11515 for ac_exec_ext in '' $ac_executable_extensions; do 11516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11517 ac_cv_prog_AWK="$ac_prog" 11518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11519 break 2 11520 fi 11521 done 11522 done 11523 IFS=$as_save_IFS 11524 11525 fi 11526 fi 11527 AWK=$ac_cv_prog_AWK 11528 if test -n "$AWK"; then 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11530 $as_echo "$AWK" >&6; } 11531 else 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11533 $as_echo "no" >&6; } 11534 fi 11535 11536 11537 test -n "$AWK" && break 11538 done 11539 11540 else 11541 # If it succeeded, then it was overridden by the user. We will use it 11542 # for the tool. 11543 11544 # First remove it from the list of overridden variables, so we can test 11545 # for unknown variables in the end. 11546 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11547 11548 # Check if the provided tool contains a complete path. 11549 tool_specified="$AWK" 11550 tool_basename="${tool_specified##*/}" 11551 if test "x$tool_basename" = "x$tool_specified"; then 11552 # A command without a complete path is provided, search $PATH. 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11554 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11555 # Extract the first word of "$tool_basename", so it can be a program name with args. 11556 set dummy $tool_basename; ac_word=$2 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11558 $as_echo_n "checking for $ac_word... " >&6; } 11559 if ${ac_cv_path_AWK+:} false; then : 11560 $as_echo_n "(cached) " >&6 11561 else 11562 case $AWK in 11563 [\\/]* | ?:[\\/]*) 11564 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11565 ;; 11566 *) 11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11568 for as_dir in $PATH 11569 do 11570 IFS=$as_save_IFS 11571 test -z "$as_dir" && as_dir=. 11572 for ac_exec_ext in '' $ac_executable_extensions; do 11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11574 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11576 break 2 11577 fi 11578 done 11579 done 11580 IFS=$as_save_IFS 11581 11582 ;; 11583 esac 11584 fi 11585 AWK=$ac_cv_path_AWK 11586 if test -n "$AWK"; then 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11588 $as_echo "$AWK" >&6; } 11589 else 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11591 $as_echo "no" >&6; } 11592 fi 11593 11594 11595 if test "x$AWK" = x; then 11596 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11597 fi 11598 else 11599 # Otherwise we believe it is a complete path. Use it as it is. 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11601 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11603 $as_echo_n "checking for AWK... " >&6; } 11604 if test ! -x "$tool_specified"; then 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11606 $as_echo "not found" >&6; } 11607 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11608 fi 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11610 $as_echo "$tool_specified" >&6; } 11611 fi 11612 fi 11613 fi 11614 11615 11616 if test "x$AWK" = x; then 11617 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11618 fi 11619 11620 11621 11622 11623 # Publish this variable in the help. 11624 11625 11626 if test "x$GREP" = x; then 11627 # The variable is not set by user, try to locate tool using the code snippet 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11629 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11630 if ${ac_cv_path_GREP+:} false; then : 11631 $as_echo_n "(cached) " >&6 11632 else 11633 if test -z "$GREP"; then 11634 ac_path_GREP_found=false 11635 # Loop through the user's path and test for each of PROGNAME-LIST 11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11638 do 11639 IFS=$as_save_IFS 11640 test -z "$as_dir" && as_dir=. 11641 for ac_prog in grep ggrep; do 11642 for ac_exec_ext in '' $ac_executable_extensions; do 11643 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11644 as_fn_executable_p "$ac_path_GREP" || continue 11645 # Check for GNU ac_path_GREP and select it if it is found. 11646 # Check for GNU $ac_path_GREP 11647 case `"$ac_path_GREP" --version 2>&1` in 11648 *GNU*) 11649 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11650 *) 11651 ac_count=0 11652 $as_echo_n 0123456789 >"conftest.in" 11653 while : 11654 do 11655 cat "conftest.in" "conftest.in" >"conftest.tmp" 11656 mv "conftest.tmp" "conftest.in" 11657 cp "conftest.in" "conftest.nl" 11658 $as_echo 'GREP' >> "conftest.nl" 11659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11661 as_fn_arith $ac_count + 1 && ac_count=$as_val 11662 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11663 # Best one so far, save it but keep looking for a better one 11664 ac_cv_path_GREP="$ac_path_GREP" 11665 ac_path_GREP_max=$ac_count 11666 fi 11667 # 10*(2^10) chars as input seems more than enough 11668 test $ac_count -gt 10 && break 11669 done 11670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11671 esac 11672 11673 $ac_path_GREP_found && break 3 11674 done 11675 done 11676 done 11677 IFS=$as_save_IFS 11678 if test -z "$ac_cv_path_GREP"; then 11679 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11680 fi 11681 else 11682 ac_cv_path_GREP=$GREP 11683 fi 11684 11685 fi 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11687 $as_echo "$ac_cv_path_GREP" >&6; } 11688 GREP="$ac_cv_path_GREP" 11689 11690 11691 else 11692 # The variable is set, but is it from the command line or the environment? 11693 11694 # Try to remove the string !GREP! from our list. 11695 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11696 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11697 # If it failed, the variable was not from the command line. Ignore it, 11698 # but warn the user (except for BASH, which is always set by the calling BASH). 11699 if test "xGREP" != xBASH; then 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11701 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11702 fi 11703 # Try to locate tool using the code snippet 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11705 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11706 if ${ac_cv_path_GREP+:} false; then : 11707 $as_echo_n "(cached) " >&6 11708 else 11709 if test -z "$GREP"; then 11710 ac_path_GREP_found=false 11711 # Loop through the user's path and test for each of PROGNAME-LIST 11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11714 do 11715 IFS=$as_save_IFS 11716 test -z "$as_dir" && as_dir=. 11717 for ac_prog in grep ggrep; do 11718 for ac_exec_ext in '' $ac_executable_extensions; do 11719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11720 as_fn_executable_p "$ac_path_GREP" || continue 11721 # Check for GNU ac_path_GREP and select it if it is found. 11722 # Check for GNU $ac_path_GREP 11723 case `"$ac_path_GREP" --version 2>&1` in 11724 *GNU*) 11725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11726 *) 11727 ac_count=0 11728 $as_echo_n 0123456789 >"conftest.in" 11729 while : 11730 do 11731 cat "conftest.in" "conftest.in" >"conftest.tmp" 11732 mv "conftest.tmp" "conftest.in" 11733 cp "conftest.in" "conftest.nl" 11734 $as_echo 'GREP' >> "conftest.nl" 11735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11737 as_fn_arith $ac_count + 1 && ac_count=$as_val 11738 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11739 # Best one so far, save it but keep looking for a better one 11740 ac_cv_path_GREP="$ac_path_GREP" 11741 ac_path_GREP_max=$ac_count 11742 fi 11743 # 10*(2^10) chars as input seems more than enough 11744 test $ac_count -gt 10 && break 11745 done 11746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11747 esac 11748 11749 $ac_path_GREP_found && break 3 11750 done 11751 done 11752 done 11753 IFS=$as_save_IFS 11754 if test -z "$ac_cv_path_GREP"; then 11755 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11756 fi 11757 else 11758 ac_cv_path_GREP=$GREP 11759 fi 11760 11761 fi 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11763 $as_echo "$ac_cv_path_GREP" >&6; } 11764 GREP="$ac_cv_path_GREP" 11765 11766 11767 else 11768 # If it succeeded, then it was overridden by the user. We will use it 11769 # for the tool. 11770 11771 # First remove it from the list of overridden variables, so we can test 11772 # for unknown variables in the end. 11773 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11774 11775 # Check if the provided tool contains a complete path. 11776 tool_specified="$GREP" 11777 tool_basename="${tool_specified##*/}" 11778 if test "x$tool_basename" = "x$tool_specified"; then 11779 # A command without a complete path is provided, search $PATH. 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11781 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11782 # Extract the first word of "$tool_basename", so it can be a program name with args. 11783 set dummy $tool_basename; ac_word=$2 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785 $as_echo_n "checking for $ac_word... " >&6; } 11786 if ${ac_cv_path_GREP+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788 else 11789 case $GREP in 11790 [\\/]* | ?:[\\/]*) 11791 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11792 ;; 11793 *) 11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11795 for as_dir in $PATH 11796 do 11797 IFS=$as_save_IFS 11798 test -z "$as_dir" && as_dir=. 11799 for ac_exec_ext in '' $ac_executable_extensions; do 11800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11801 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11803 break 2 11804 fi 11805 done 11806 done 11807 IFS=$as_save_IFS 11808 11809 ;; 11810 esac 11811 fi 11812 GREP=$ac_cv_path_GREP 11813 if test -n "$GREP"; then 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11815 $as_echo "$GREP" >&6; } 11816 else 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11818 $as_echo "no" >&6; } 11819 fi 11820 11821 11822 if test "x$GREP" = x; then 11823 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11824 fi 11825 else 11826 # Otherwise we believe it is a complete path. Use it as it is. 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11828 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11830 $as_echo_n "checking for GREP... " >&6; } 11831 if test ! -x "$tool_specified"; then 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11833 $as_echo "not found" >&6; } 11834 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11835 fi 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11837 $as_echo "$tool_specified" >&6; } 11838 fi 11839 fi 11840 fi 11841 11842 11843 if test "x$GREP" = x; then 11844 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11845 fi 11846 11847 11848 11849 11850 # Publish this variable in the help. 11851 11852 11853 if test "x$EGREP" = x; then 11854 # The variable is not set by user, try to locate tool using the code snippet 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11856 $as_echo_n "checking for egrep... " >&6; } 11857 if ${ac_cv_path_EGREP+:} false; then : 11858 $as_echo_n "(cached) " >&6 11859 else 11860 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11861 then ac_cv_path_EGREP="$GREP -E" 11862 else 11863 if test -z "$EGREP"; then 11864 ac_path_EGREP_found=false 11865 # Loop through the user's path and test for each of PROGNAME-LIST 11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11868 do 11869 IFS=$as_save_IFS 11870 test -z "$as_dir" && as_dir=. 11871 for ac_prog in egrep; do 11872 for ac_exec_ext in '' $ac_executable_extensions; do 11873 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11874 as_fn_executable_p "$ac_path_EGREP" || continue 11875 # Check for GNU ac_path_EGREP and select it if it is found. 11876 # Check for GNU $ac_path_EGREP 11877 case `"$ac_path_EGREP" --version 2>&1` in 11878 *GNU*) 11879 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11880 *) 11881 ac_count=0 11882 $as_echo_n 0123456789 >"conftest.in" 11883 while : 11884 do 11885 cat "conftest.in" "conftest.in" >"conftest.tmp" 11886 mv "conftest.tmp" "conftest.in" 11887 cp "conftest.in" "conftest.nl" 11888 $as_echo 'EGREP' >> "conftest.nl" 11889 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11891 as_fn_arith $ac_count + 1 && ac_count=$as_val 11892 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11893 # Best one so far, save it but keep looking for a better one 11894 ac_cv_path_EGREP="$ac_path_EGREP" 11895 ac_path_EGREP_max=$ac_count 11896 fi 11897 # 10*(2^10) chars as input seems more than enough 11898 test $ac_count -gt 10 && break 11899 done 11900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11901 esac 11902 11903 $ac_path_EGREP_found && break 3 11904 done 11905 done 11906 done 11907 IFS=$as_save_IFS 11908 if test -z "$ac_cv_path_EGREP"; then 11909 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11910 fi 11911 else 11912 ac_cv_path_EGREP=$EGREP 11913 fi 11914 11915 fi 11916 fi 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11918 $as_echo "$ac_cv_path_EGREP" >&6; } 11919 EGREP="$ac_cv_path_EGREP" 11920 11921 11922 else 11923 # The variable is set, but is it from the command line or the environment? 11924 11925 # Try to remove the string !EGREP! from our list. 11926 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11927 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11928 # If it failed, the variable was not from the command line. Ignore it, 11929 # but warn the user (except for BASH, which is always set by the calling BASH). 11930 if test "xEGREP" != xBASH; then 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11932 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11933 fi 11934 # Try to locate tool using the code snippet 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11936 $as_echo_n "checking for egrep... " >&6; } 11937 if ${ac_cv_path_EGREP+:} false; then : 11938 $as_echo_n "(cached) " >&6 11939 else 11940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11941 then ac_cv_path_EGREP="$GREP -E" 11942 else 11943 if test -z "$EGREP"; then 11944 ac_path_EGREP_found=false 11945 # Loop through the user's path and test for each of PROGNAME-LIST 11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11948 do 11949 IFS=$as_save_IFS 11950 test -z "$as_dir" && as_dir=. 11951 for ac_prog in egrep; do 11952 for ac_exec_ext in '' $ac_executable_extensions; do 11953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11954 as_fn_executable_p "$ac_path_EGREP" || continue 11955 # Check for GNU ac_path_EGREP and select it if it is found. 11956 # Check for GNU $ac_path_EGREP 11957 case `"$ac_path_EGREP" --version 2>&1` in 11958 *GNU*) 11959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11960 *) 11961 ac_count=0 11962 $as_echo_n 0123456789 >"conftest.in" 11963 while : 11964 do 11965 cat "conftest.in" "conftest.in" >"conftest.tmp" 11966 mv "conftest.tmp" "conftest.in" 11967 cp "conftest.in" "conftest.nl" 11968 $as_echo 'EGREP' >> "conftest.nl" 11969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11971 as_fn_arith $ac_count + 1 && ac_count=$as_val 11972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11973 # Best one so far, save it but keep looking for a better one 11974 ac_cv_path_EGREP="$ac_path_EGREP" 11975 ac_path_EGREP_max=$ac_count 11976 fi 11977 # 10*(2^10) chars as input seems more than enough 11978 test $ac_count -gt 10 && break 11979 done 11980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11981 esac 11982 11983 $ac_path_EGREP_found && break 3 11984 done 11985 done 11986 done 11987 IFS=$as_save_IFS 11988 if test -z "$ac_cv_path_EGREP"; then 11989 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11990 fi 11991 else 11992 ac_cv_path_EGREP=$EGREP 11993 fi 11994 11995 fi 11996 fi 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11998 $as_echo "$ac_cv_path_EGREP" >&6; } 11999 EGREP="$ac_cv_path_EGREP" 12000 12001 12002 else 12003 # If it succeeded, then it was overridden by the user. We will use it 12004 # for the tool. 12005 12006 # First remove it from the list of overridden variables, so we can test 12007 # for unknown variables in the end. 12008 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12009 12010 # Check if the provided tool contains a complete path. 12011 tool_specified="$EGREP" 12012 tool_basename="${tool_specified##*/}" 12013 if test "x$tool_basename" = "x$tool_specified"; then 12014 # A command without a complete path is provided, search $PATH. 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 12016 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12017 # Extract the first word of "$tool_basename", so it can be a program name with args. 12018 set dummy $tool_basename; ac_word=$2 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12020 $as_echo_n "checking for $ac_word... " >&6; } 12021 if ${ac_cv_path_EGREP+:} false; then : 12022 $as_echo_n "(cached) " >&6 12023 else 12024 case $EGREP in 12025 [\\/]* | ?:[\\/]*) 12026 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12027 ;; 12028 *) 12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12030 for as_dir in $PATH 12031 do 12032 IFS=$as_save_IFS 12033 test -z "$as_dir" && as_dir=. 12034 for ac_exec_ext in '' $ac_executable_extensions; do 12035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12036 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12038 break 2 12039 fi 12040 done 12041 done 12042 IFS=$as_save_IFS 12043 12044 ;; 12045 esac 12046 fi 12047 EGREP=$ac_cv_path_EGREP 12048 if test -n "$EGREP"; then 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12050 $as_echo "$EGREP" >&6; } 12051 else 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12053 $as_echo "no" >&6; } 12054 fi 12055 12056 12057 if test "x$EGREP" = x; then 12058 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12059 fi 12060 else 12061 # Otherwise we believe it is a complete path. Use it as it is. 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12063 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12065 $as_echo_n "checking for EGREP... " >&6; } 12066 if test ! -x "$tool_specified"; then 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12068 $as_echo "not found" >&6; } 12069 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12070 fi 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12072 $as_echo "$tool_specified" >&6; } 12073 fi 12074 fi 12075 fi 12076 12077 12078 if test "x$EGREP" = x; then 12079 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12080 fi 12081 12082 12083 12084 12085 # Publish this variable in the help. 12086 12087 12088 if test "x$FGREP" = x; then 12089 # The variable is not set by user, try to locate tool using the code snippet 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12091 $as_echo_n "checking for fgrep... " >&6; } 12092 if ${ac_cv_path_FGREP+:} false; then : 12093 $as_echo_n "(cached) " >&6 12094 else 12095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12096 then ac_cv_path_FGREP="$GREP -F" 12097 else 12098 if test -z "$FGREP"; then 12099 ac_path_FGREP_found=false 12100 # Loop through the user's path and test for each of PROGNAME-LIST 12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12103 do 12104 IFS=$as_save_IFS 12105 test -z "$as_dir" && as_dir=. 12106 for ac_prog in fgrep; do 12107 for ac_exec_ext in '' $ac_executable_extensions; do 12108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12109 as_fn_executable_p "$ac_path_FGREP" || continue 12110 # Check for GNU ac_path_FGREP and select it if it is found. 12111 # Check for GNU $ac_path_FGREP 12112 case `"$ac_path_FGREP" --version 2>&1` in 12113 *GNU*) 12114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12115 *) 12116 ac_count=0 12117 $as_echo_n 0123456789 >"conftest.in" 12118 while : 12119 do 12120 cat "conftest.in" "conftest.in" >"conftest.tmp" 12121 mv "conftest.tmp" "conftest.in" 12122 cp "conftest.in" "conftest.nl" 12123 $as_echo 'FGREP' >> "conftest.nl" 12124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12126 as_fn_arith $ac_count + 1 && ac_count=$as_val 12127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12128 # Best one so far, save it but keep looking for a better one 12129 ac_cv_path_FGREP="$ac_path_FGREP" 12130 ac_path_FGREP_max=$ac_count 12131 fi 12132 # 10*(2^10) chars as input seems more than enough 12133 test $ac_count -gt 10 && break 12134 done 12135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12136 esac 12137 12138 $ac_path_FGREP_found && break 3 12139 done 12140 done 12141 done 12142 IFS=$as_save_IFS 12143 if test -z "$ac_cv_path_FGREP"; then 12144 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12145 fi 12146 else 12147 ac_cv_path_FGREP=$FGREP 12148 fi 12149 12150 fi 12151 fi 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12153 $as_echo "$ac_cv_path_FGREP" >&6; } 12154 FGREP="$ac_cv_path_FGREP" 12155 12156 12157 else 12158 # The variable is set, but is it from the command line or the environment? 12159 12160 # Try to remove the string !FGREP! from our list. 12161 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12162 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12163 # If it failed, the variable was not from the command line. Ignore it, 12164 # but warn the user (except for BASH, which is always set by the calling BASH). 12165 if test "xFGREP" != xBASH; then 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12167 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12168 fi 12169 # Try to locate tool using the code snippet 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12171 $as_echo_n "checking for fgrep... " >&6; } 12172 if ${ac_cv_path_FGREP+:} false; then : 12173 $as_echo_n "(cached) " >&6 12174 else 12175 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12176 then ac_cv_path_FGREP="$GREP -F" 12177 else 12178 if test -z "$FGREP"; then 12179 ac_path_FGREP_found=false 12180 # Loop through the user's path and test for each of PROGNAME-LIST 12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12183 do 12184 IFS=$as_save_IFS 12185 test -z "$as_dir" && as_dir=. 12186 for ac_prog in fgrep; do 12187 for ac_exec_ext in '' $ac_executable_extensions; do 12188 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12189 as_fn_executable_p "$ac_path_FGREP" || continue 12190 # Check for GNU ac_path_FGREP and select it if it is found. 12191 # Check for GNU $ac_path_FGREP 12192 case `"$ac_path_FGREP" --version 2>&1` in 12193 *GNU*) 12194 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12195 *) 12196 ac_count=0 12197 $as_echo_n 0123456789 >"conftest.in" 12198 while : 12199 do 12200 cat "conftest.in" "conftest.in" >"conftest.tmp" 12201 mv "conftest.tmp" "conftest.in" 12202 cp "conftest.in" "conftest.nl" 12203 $as_echo 'FGREP' >> "conftest.nl" 12204 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12206 as_fn_arith $ac_count + 1 && ac_count=$as_val 12207 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12208 # Best one so far, save it but keep looking for a better one 12209 ac_cv_path_FGREP="$ac_path_FGREP" 12210 ac_path_FGREP_max=$ac_count 12211 fi 12212 # 10*(2^10) chars as input seems more than enough 12213 test $ac_count -gt 10 && break 12214 done 12215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12216 esac 12217 12218 $ac_path_FGREP_found && break 3 12219 done 12220 done 12221 done 12222 IFS=$as_save_IFS 12223 if test -z "$ac_cv_path_FGREP"; then 12224 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12225 fi 12226 else 12227 ac_cv_path_FGREP=$FGREP 12228 fi 12229 12230 fi 12231 fi 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12233 $as_echo "$ac_cv_path_FGREP" >&6; } 12234 FGREP="$ac_cv_path_FGREP" 12235 12236 12237 else 12238 # If it succeeded, then it was overridden by the user. We will use it 12239 # for the tool. 12240 12241 # First remove it from the list of overridden variables, so we can test 12242 # for unknown variables in the end. 12243 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12244 12245 # Check if the provided tool contains a complete path. 12246 tool_specified="$FGREP" 12247 tool_basename="${tool_specified##*/}" 12248 if test "x$tool_basename" = "x$tool_specified"; then 12249 # A command without a complete path is provided, search $PATH. 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12251 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12252 # Extract the first word of "$tool_basename", so it can be a program name with args. 12253 set dummy $tool_basename; ac_word=$2 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12255 $as_echo_n "checking for $ac_word... " >&6; } 12256 if ${ac_cv_path_FGREP+:} false; then : 12257 $as_echo_n "(cached) " >&6 12258 else 12259 case $FGREP in 12260 [\\/]* | ?:[\\/]*) 12261 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12262 ;; 12263 *) 12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12265 for as_dir in $PATH 12266 do 12267 IFS=$as_save_IFS 12268 test -z "$as_dir" && as_dir=. 12269 for ac_exec_ext in '' $ac_executable_extensions; do 12270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12271 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12273 break 2 12274 fi 12275 done 12276 done 12277 IFS=$as_save_IFS 12278 12279 ;; 12280 esac 12281 fi 12282 FGREP=$ac_cv_path_FGREP 12283 if test -n "$FGREP"; then 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12285 $as_echo "$FGREP" >&6; } 12286 else 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12288 $as_echo "no" >&6; } 12289 fi 12290 12291 12292 if test "x$FGREP" = x; then 12293 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12294 fi 12295 else 12296 # Otherwise we believe it is a complete path. Use it as it is. 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12298 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12300 $as_echo_n "checking for FGREP... " >&6; } 12301 if test ! -x "$tool_specified"; then 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12303 $as_echo "not found" >&6; } 12304 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12305 fi 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12307 $as_echo "$tool_specified" >&6; } 12308 fi 12309 fi 12310 fi 12311 12312 12313 if test "x$FGREP" = x; then 12314 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12315 fi 12316 12317 12318 12319 12320 # Publish this variable in the help. 12321 12322 12323 if test "x$SED" = x; then 12324 # The variable is not set by user, try to locate tool using the code snippet 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12326 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12327 if ${ac_cv_path_SED+:} false; then : 12328 $as_echo_n "(cached) " >&6 12329 else 12330 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12331 for ac_i in 1 2 3 4 5 6 7; do 12332 ac_script="$ac_script$as_nl$ac_script" 12333 done 12334 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12335 { ac_script=; unset ac_script;} 12336 if test -z "$SED"; then 12337 ac_path_SED_found=false 12338 # Loop through the user's path and test for each of PROGNAME-LIST 12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12340 for as_dir in $PATH 12341 do 12342 IFS=$as_save_IFS 12343 test -z "$as_dir" && as_dir=. 12344 for ac_prog in sed gsed; do 12345 for ac_exec_ext in '' $ac_executable_extensions; do 12346 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12347 as_fn_executable_p "$ac_path_SED" || continue 12348 # Check for GNU ac_path_SED and select it if it is found. 12349 # Check for GNU $ac_path_SED 12350 case `"$ac_path_SED" --version 2>&1` in 12351 *GNU*) 12352 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12353 *) 12354 ac_count=0 12355 $as_echo_n 0123456789 >"conftest.in" 12356 while : 12357 do 12358 cat "conftest.in" "conftest.in" >"conftest.tmp" 12359 mv "conftest.tmp" "conftest.in" 12360 cp "conftest.in" "conftest.nl" 12361 $as_echo '' >> "conftest.nl" 12362 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12364 as_fn_arith $ac_count + 1 && ac_count=$as_val 12365 if test $ac_count -gt ${ac_path_SED_max-0}; then 12366 # Best one so far, save it but keep looking for a better one 12367 ac_cv_path_SED="$ac_path_SED" 12368 ac_path_SED_max=$ac_count 12369 fi 12370 # 10*(2^10) chars as input seems more than enough 12371 test $ac_count -gt 10 && break 12372 done 12373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12374 esac 12375 12376 $ac_path_SED_found && break 3 12377 done 12378 done 12379 done 12380 IFS=$as_save_IFS 12381 if test -z "$ac_cv_path_SED"; then 12382 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12383 fi 12384 else 12385 ac_cv_path_SED=$SED 12386 fi 12387 12388 fi 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12390 $as_echo "$ac_cv_path_SED" >&6; } 12391 SED="$ac_cv_path_SED" 12392 rm -f conftest.sed 12393 12394 else 12395 # The variable is set, but is it from the command line or the environment? 12396 12397 # Try to remove the string !SED! from our list. 12398 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12399 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12400 # If it failed, the variable was not from the command line. Ignore it, 12401 # but warn the user (except for BASH, which is always set by the calling BASH). 12402 if test "xSED" != xBASH; then 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12404 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12405 fi 12406 # Try to locate tool using the code snippet 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12408 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12409 if ${ac_cv_path_SED+:} false; then : 12410 $as_echo_n "(cached) " >&6 12411 else 12412 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12413 for ac_i in 1 2 3 4 5 6 7; do 12414 ac_script="$ac_script$as_nl$ac_script" 12415 done 12416 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12417 { ac_script=; unset ac_script;} 12418 if test -z "$SED"; then 12419 ac_path_SED_found=false 12420 # Loop through the user's path and test for each of PROGNAME-LIST 12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12422 for as_dir in $PATH 12423 do 12424 IFS=$as_save_IFS 12425 test -z "$as_dir" && as_dir=. 12426 for ac_prog in sed gsed; do 12427 for ac_exec_ext in '' $ac_executable_extensions; do 12428 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12429 as_fn_executable_p "$ac_path_SED" || continue 12430 # Check for GNU ac_path_SED and select it if it is found. 12431 # Check for GNU $ac_path_SED 12432 case `"$ac_path_SED" --version 2>&1` in 12433 *GNU*) 12434 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12435 *) 12436 ac_count=0 12437 $as_echo_n 0123456789 >"conftest.in" 12438 while : 12439 do 12440 cat "conftest.in" "conftest.in" >"conftest.tmp" 12441 mv "conftest.tmp" "conftest.in" 12442 cp "conftest.in" "conftest.nl" 12443 $as_echo '' >> "conftest.nl" 12444 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12446 as_fn_arith $ac_count + 1 && ac_count=$as_val 12447 if test $ac_count -gt ${ac_path_SED_max-0}; then 12448 # Best one so far, save it but keep looking for a better one 12449 ac_cv_path_SED="$ac_path_SED" 12450 ac_path_SED_max=$ac_count 12451 fi 12452 # 10*(2^10) chars as input seems more than enough 12453 test $ac_count -gt 10 && break 12454 done 12455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12456 esac 12457 12458 $ac_path_SED_found && break 3 12459 done 12460 done 12461 done 12462 IFS=$as_save_IFS 12463 if test -z "$ac_cv_path_SED"; then 12464 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12465 fi 12466 else 12467 ac_cv_path_SED=$SED 12468 fi 12469 12470 fi 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12472 $as_echo "$ac_cv_path_SED" >&6; } 12473 SED="$ac_cv_path_SED" 12474 rm -f conftest.sed 12475 12476 else 12477 # If it succeeded, then it was overridden by the user. We will use it 12478 # for the tool. 12479 12480 # First remove it from the list of overridden variables, so we can test 12481 # for unknown variables in the end. 12482 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12483 12484 # Check if the provided tool contains a complete path. 12485 tool_specified="$SED" 12486 tool_basename="${tool_specified##*/}" 12487 if test "x$tool_basename" = "x$tool_specified"; then 12488 # A command without a complete path is provided, search $PATH. 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12490 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12491 # Extract the first word of "$tool_basename", so it can be a program name with args. 12492 set dummy $tool_basename; ac_word=$2 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12494 $as_echo_n "checking for $ac_word... " >&6; } 12495 if ${ac_cv_path_SED+:} false; then : 12496 $as_echo_n "(cached) " >&6 12497 else 12498 case $SED in 12499 [\\/]* | ?:[\\/]*) 12500 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12501 ;; 12502 *) 12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12504 for as_dir in $PATH 12505 do 12506 IFS=$as_save_IFS 12507 test -z "$as_dir" && as_dir=. 12508 for ac_exec_ext in '' $ac_executable_extensions; do 12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12510 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12512 break 2 12513 fi 12514 done 12515 done 12516 IFS=$as_save_IFS 12517 12518 ;; 12519 esac 12520 fi 12521 SED=$ac_cv_path_SED 12522 if test -n "$SED"; then 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12524 $as_echo "$SED" >&6; } 12525 else 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12527 $as_echo "no" >&6; } 12528 fi 12529 12530 12531 if test "x$SED" = x; then 12532 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12533 fi 12534 else 12535 # Otherwise we believe it is a complete path. Use it as it is. 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12537 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12539 $as_echo_n "checking for SED... " >&6; } 12540 if test ! -x "$tool_specified"; then 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12542 $as_echo "not found" >&6; } 12543 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12544 fi 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12546 $as_echo "$tool_specified" >&6; } 12547 fi 12548 fi 12549 fi 12550 12551 12552 if test "x$SED" = x; then 12553 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12554 fi 12555 12556 12557 12558 # Always force rm. 12559 RM="$RM -f" 12560 12561 # pwd behaves differently on various platforms and some don't support the -L flag. 12562 # Always use the bash builtin pwd to get uniform behavior. 12563 THEPWDCMD=pwd 12564 12565 # These are not required on all platforms 12566 12567 12568 # Publish this variable in the help. 12569 12570 12571 if test "x$CYGPATH" = x; then 12572 # The variable is not set by user, try to locate tool using the code snippet 12573 for ac_prog in cygpath 12574 do 12575 # Extract the first word of "$ac_prog", so it can be a program name with args. 12576 set dummy $ac_prog; ac_word=$2 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12578 $as_echo_n "checking for $ac_word... " >&6; } 12579 if ${ac_cv_path_CYGPATH+:} false; then : 12580 $as_echo_n "(cached) " >&6 12581 else 12582 case $CYGPATH in 12583 [\\/]* | ?:[\\/]*) 12584 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12585 ;; 12586 *) 12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12588 for as_dir in $PATH 12589 do 12590 IFS=$as_save_IFS 12591 test -z "$as_dir" && as_dir=. 12592 for ac_exec_ext in '' $ac_executable_extensions; do 12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12594 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12596 break 2 12597 fi 12598 done 12599 done 12600 IFS=$as_save_IFS 12601 12602 ;; 12603 esac 12604 fi 12605 CYGPATH=$ac_cv_path_CYGPATH 12606 if test -n "$CYGPATH"; then 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12608 $as_echo "$CYGPATH" >&6; } 12609 else 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12611 $as_echo "no" >&6; } 12612 fi 12613 12614 12615 test -n "$CYGPATH" && break 12616 done 12617 12618 else 12619 # The variable is set, but is it from the command line or the environment? 12620 12621 # Try to remove the string !CYGPATH! from our list. 12622 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12623 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12624 # If it failed, the variable was not from the command line. Ignore it, 12625 # but warn the user (except for BASH, which is always set by the calling BASH). 12626 if test "xCYGPATH" != xBASH; then 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12628 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12629 fi 12630 # Try to locate tool using the code snippet 12631 for ac_prog in cygpath 12632 do 12633 # Extract the first word of "$ac_prog", so it can be a program name with args. 12634 set dummy $ac_prog; ac_word=$2 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12636 $as_echo_n "checking for $ac_word... " >&6; } 12637 if ${ac_cv_path_CYGPATH+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639 else 12640 case $CYGPATH in 12641 [\\/]* | ?:[\\/]*) 12642 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12643 ;; 12644 *) 12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12646 for as_dir in $PATH 12647 do 12648 IFS=$as_save_IFS 12649 test -z "$as_dir" && as_dir=. 12650 for ac_exec_ext in '' $ac_executable_extensions; do 12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12652 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12654 break 2 12655 fi 12656 done 12657 done 12658 IFS=$as_save_IFS 12659 12660 ;; 12661 esac 12662 fi 12663 CYGPATH=$ac_cv_path_CYGPATH 12664 if test -n "$CYGPATH"; then 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12666 $as_echo "$CYGPATH" >&6; } 12667 else 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12669 $as_echo "no" >&6; } 12670 fi 12671 12672 12673 test -n "$CYGPATH" && break 12674 done 12675 12676 else 12677 # If it succeeded, then it was overridden by the user. We will use it 12678 # for the tool. 12679 12680 # First remove it from the list of overridden variables, so we can test 12681 # for unknown variables in the end. 12682 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12683 12684 # Check if the provided tool contains a complete path. 12685 tool_specified="$CYGPATH" 12686 tool_basename="${tool_specified##*/}" 12687 if test "x$tool_basename" = "x$tool_specified"; then 12688 # A command without a complete path is provided, search $PATH. 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12690 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12691 # Extract the first word of "$tool_basename", so it can be a program name with args. 12692 set dummy $tool_basename; ac_word=$2 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12694 $as_echo_n "checking for $ac_word... " >&6; } 12695 if ${ac_cv_path_CYGPATH+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697 else 12698 case $CYGPATH in 12699 [\\/]* | ?:[\\/]*) 12700 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12701 ;; 12702 *) 12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12704 for as_dir in $PATH 12705 do 12706 IFS=$as_save_IFS 12707 test -z "$as_dir" && as_dir=. 12708 for ac_exec_ext in '' $ac_executable_extensions; do 12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12710 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12712 break 2 12713 fi 12714 done 12715 done 12716 IFS=$as_save_IFS 12717 12718 ;; 12719 esac 12720 fi 12721 CYGPATH=$ac_cv_path_CYGPATH 12722 if test -n "$CYGPATH"; then 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12724 $as_echo "$CYGPATH" >&6; } 12725 else 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12727 $as_echo "no" >&6; } 12728 fi 12729 12730 12731 if test "x$CYGPATH" = x; then 12732 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12733 fi 12734 else 12735 # Otherwise we believe it is a complete path. Use it as it is. 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12737 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12739 $as_echo_n "checking for CYGPATH... " >&6; } 12740 if test ! -x "$tool_specified"; then 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12742 $as_echo "not found" >&6; } 12743 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12744 fi 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12746 $as_echo "$tool_specified" >&6; } 12747 fi 12748 fi 12749 fi 12750 12751 12752 12753 12754 # Publish this variable in the help. 12755 12756 12757 if test "x$READLINK" = x; then 12758 # The variable is not set by user, try to locate tool using the code snippet 12759 for ac_prog in greadlink readlink 12760 do 12761 # Extract the first word of "$ac_prog", so it can be a program name with args. 12762 set dummy $ac_prog; ac_word=$2 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12764 $as_echo_n "checking for $ac_word... " >&6; } 12765 if ${ac_cv_path_READLINK+:} false; then : 12766 $as_echo_n "(cached) " >&6 12767 else 12768 case $READLINK in 12769 [\\/]* | ?:[\\/]*) 12770 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12771 ;; 12772 *) 12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12774 for as_dir in $PATH 12775 do 12776 IFS=$as_save_IFS 12777 test -z "$as_dir" && as_dir=. 12778 for ac_exec_ext in '' $ac_executable_extensions; do 12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12780 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12782 break 2 12783 fi 12784 done 12785 done 12786 IFS=$as_save_IFS 12787 12788 ;; 12789 esac 12790 fi 12791 READLINK=$ac_cv_path_READLINK 12792 if test -n "$READLINK"; then 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12794 $as_echo "$READLINK" >&6; } 12795 else 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12797 $as_echo "no" >&6; } 12798 fi 12799 12800 12801 test -n "$READLINK" && break 12802 done 12803 12804 else 12805 # The variable is set, but is it from the command line or the environment? 12806 12807 # Try to remove the string !READLINK! from our list. 12808 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12809 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12810 # If it failed, the variable was not from the command line. Ignore it, 12811 # but warn the user (except for BASH, which is always set by the calling BASH). 12812 if test "xREADLINK" != xBASH; then 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12814 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12815 fi 12816 # Try to locate tool using the code snippet 12817 for ac_prog in greadlink readlink 12818 do 12819 # Extract the first word of "$ac_prog", so it can be a program name with args. 12820 set dummy $ac_prog; ac_word=$2 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12822 $as_echo_n "checking for $ac_word... " >&6; } 12823 if ${ac_cv_path_READLINK+:} false; then : 12824 $as_echo_n "(cached) " >&6 12825 else 12826 case $READLINK in 12827 [\\/]* | ?:[\\/]*) 12828 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12829 ;; 12830 *) 12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12832 for as_dir in $PATH 12833 do 12834 IFS=$as_save_IFS 12835 test -z "$as_dir" && as_dir=. 12836 for ac_exec_ext in '' $ac_executable_extensions; do 12837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12838 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12840 break 2 12841 fi 12842 done 12843 done 12844 IFS=$as_save_IFS 12845 12846 ;; 12847 esac 12848 fi 12849 READLINK=$ac_cv_path_READLINK 12850 if test -n "$READLINK"; then 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12852 $as_echo "$READLINK" >&6; } 12853 else 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12855 $as_echo "no" >&6; } 12856 fi 12857 12858 12859 test -n "$READLINK" && break 12860 done 12861 12862 else 12863 # If it succeeded, then it was overridden by the user. We will use it 12864 # for the tool. 12865 12866 # First remove it from the list of overridden variables, so we can test 12867 # for unknown variables in the end. 12868 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12869 12870 # Check if the provided tool contains a complete path. 12871 tool_specified="$READLINK" 12872 tool_basename="${tool_specified##*/}" 12873 if test "x$tool_basename" = "x$tool_specified"; then 12874 # A command without a complete path is provided, search $PATH. 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12876 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12877 # Extract the first word of "$tool_basename", so it can be a program name with args. 12878 set dummy $tool_basename; ac_word=$2 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12880 $as_echo_n "checking for $ac_word... " >&6; } 12881 if ${ac_cv_path_READLINK+:} false; then : 12882 $as_echo_n "(cached) " >&6 12883 else 12884 case $READLINK in 12885 [\\/]* | ?:[\\/]*) 12886 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12887 ;; 12888 *) 12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12890 for as_dir in $PATH 12891 do 12892 IFS=$as_save_IFS 12893 test -z "$as_dir" && as_dir=. 12894 for ac_exec_ext in '' $ac_executable_extensions; do 12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12896 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12898 break 2 12899 fi 12900 done 12901 done 12902 IFS=$as_save_IFS 12903 12904 ;; 12905 esac 12906 fi 12907 READLINK=$ac_cv_path_READLINK 12908 if test -n "$READLINK"; then 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12910 $as_echo "$READLINK" >&6; } 12911 else 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12913 $as_echo "no" >&6; } 12914 fi 12915 12916 12917 if test "x$READLINK" = x; then 12918 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12919 fi 12920 else 12921 # Otherwise we believe it is a complete path. Use it as it is. 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12923 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12925 $as_echo_n "checking for READLINK... " >&6; } 12926 if test ! -x "$tool_specified"; then 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12928 $as_echo "not found" >&6; } 12929 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12930 fi 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12932 $as_echo "$tool_specified" >&6; } 12933 fi 12934 fi 12935 fi 12936 12937 12938 12939 12940 # Publish this variable in the help. 12941 12942 12943 if test "x$DF" = x; then 12944 # The variable is not set by user, try to locate tool using the code snippet 12945 for ac_prog in df 12946 do 12947 # Extract the first word of "$ac_prog", so it can be a program name with args. 12948 set dummy $ac_prog; ac_word=$2 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12950 $as_echo_n "checking for $ac_word... " >&6; } 12951 if ${ac_cv_path_DF+:} false; then : 12952 $as_echo_n "(cached) " >&6 12953 else 12954 case $DF in 12955 [\\/]* | ?:[\\/]*) 12956 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12957 ;; 12958 *) 12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12960 for as_dir in $PATH 12961 do 12962 IFS=$as_save_IFS 12963 test -z "$as_dir" && as_dir=. 12964 for ac_exec_ext in '' $ac_executable_extensions; do 12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12966 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12968 break 2 12969 fi 12970 done 12971 done 12972 IFS=$as_save_IFS 12973 12974 ;; 12975 esac 12976 fi 12977 DF=$ac_cv_path_DF 12978 if test -n "$DF"; then 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12980 $as_echo "$DF" >&6; } 12981 else 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12983 $as_echo "no" >&6; } 12984 fi 12985 12986 12987 test -n "$DF" && break 12988 done 12989 12990 else 12991 # The variable is set, but is it from the command line or the environment? 12992 12993 # Try to remove the string !DF! from our list. 12994 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12995 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12996 # If it failed, the variable was not from the command line. Ignore it, 12997 # but warn the user (except for BASH, which is always set by the calling BASH). 12998 if test "xDF" != xBASH; then 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 13000 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 13001 fi 13002 # Try to locate tool using the code snippet 13003 for ac_prog in df 13004 do 13005 # Extract the first word of "$ac_prog", so it can be a program name with args. 13006 set dummy $ac_prog; ac_word=$2 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13008 $as_echo_n "checking for $ac_word... " >&6; } 13009 if ${ac_cv_path_DF+:} false; then : 13010 $as_echo_n "(cached) " >&6 13011 else 13012 case $DF in 13013 [\\/]* | ?:[\\/]*) 13014 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13015 ;; 13016 *) 13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13018 for as_dir in $PATH 13019 do 13020 IFS=$as_save_IFS 13021 test -z "$as_dir" && as_dir=. 13022 for ac_exec_ext in '' $ac_executable_extensions; do 13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13024 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13026 break 2 13027 fi 13028 done 13029 done 13030 IFS=$as_save_IFS 13031 13032 ;; 13033 esac 13034 fi 13035 DF=$ac_cv_path_DF 13036 if test -n "$DF"; then 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13038 $as_echo "$DF" >&6; } 13039 else 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13041 $as_echo "no" >&6; } 13042 fi 13043 13044 13045 test -n "$DF" && break 13046 done 13047 13048 else 13049 # If it succeeded, then it was overridden by the user. We will use it 13050 # for the tool. 13051 13052 # First remove it from the list of overridden variables, so we can test 13053 # for unknown variables in the end. 13054 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13055 13056 # Check if the provided tool contains a complete path. 13057 tool_specified="$DF" 13058 tool_basename="${tool_specified##*/}" 13059 if test "x$tool_basename" = "x$tool_specified"; then 13060 # A command without a complete path is provided, search $PATH. 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13062 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13063 # Extract the first word of "$tool_basename", so it can be a program name with args. 13064 set dummy $tool_basename; ac_word=$2 13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13066 $as_echo_n "checking for $ac_word... " >&6; } 13067 if ${ac_cv_path_DF+:} false; then : 13068 $as_echo_n "(cached) " >&6 13069 else 13070 case $DF in 13071 [\\/]* | ?:[\\/]*) 13072 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13073 ;; 13074 *) 13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13076 for as_dir in $PATH 13077 do 13078 IFS=$as_save_IFS 13079 test -z "$as_dir" && as_dir=. 13080 for ac_exec_ext in '' $ac_executable_extensions; do 13081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13082 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13084 break 2 13085 fi 13086 done 13087 done 13088 IFS=$as_save_IFS 13089 13090 ;; 13091 esac 13092 fi 13093 DF=$ac_cv_path_DF 13094 if test -n "$DF"; then 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13096 $as_echo "$DF" >&6; } 13097 else 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13099 $as_echo "no" >&6; } 13100 fi 13101 13102 13103 if test "x$DF" = x; then 13104 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13105 fi 13106 else 13107 # Otherwise we believe it is a complete path. Use it as it is. 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13109 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13111 $as_echo_n "checking for DF... " >&6; } 13112 if test ! -x "$tool_specified"; then 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13114 $as_echo "not found" >&6; } 13115 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13116 fi 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13118 $as_echo "$tool_specified" >&6; } 13119 fi 13120 fi 13121 fi 13122 13123 13124 13125 13126 # Publish this variable in the help. 13127 13128 13129 if test "x$SETFILE" = x; then 13130 # The variable is not set by user, try to locate tool using the code snippet 13131 for ac_prog in SetFile 13132 do 13133 # Extract the first word of "$ac_prog", so it can be a program name with args. 13134 set dummy $ac_prog; ac_word=$2 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13136 $as_echo_n "checking for $ac_word... " >&6; } 13137 if ${ac_cv_path_SETFILE+:} false; then : 13138 $as_echo_n "(cached) " >&6 13139 else 13140 case $SETFILE in 13141 [\\/]* | ?:[\\/]*) 13142 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13143 ;; 13144 *) 13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146 for as_dir in $PATH 13147 do 13148 IFS=$as_save_IFS 13149 test -z "$as_dir" && as_dir=. 13150 for ac_exec_ext in '' $ac_executable_extensions; do 13151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13152 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13154 break 2 13155 fi 13156 done 13157 done 13158 IFS=$as_save_IFS 13159 13160 ;; 13161 esac 13162 fi 13163 SETFILE=$ac_cv_path_SETFILE 13164 if test -n "$SETFILE"; then 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13166 $as_echo "$SETFILE" >&6; } 13167 else 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13169 $as_echo "no" >&6; } 13170 fi 13171 13172 13173 test -n "$SETFILE" && break 13174 done 13175 13176 else 13177 # The variable is set, but is it from the command line or the environment? 13178 13179 # Try to remove the string !SETFILE! from our list. 13180 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13181 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13182 # If it failed, the variable was not from the command line. Ignore it, 13183 # but warn the user (except for BASH, which is always set by the calling BASH). 13184 if test "xSETFILE" != xBASH; then 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13186 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13187 fi 13188 # Try to locate tool using the code snippet 13189 for ac_prog in SetFile 13190 do 13191 # Extract the first word of "$ac_prog", so it can be a program name with args. 13192 set dummy $ac_prog; ac_word=$2 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13194 $as_echo_n "checking for $ac_word... " >&6; } 13195 if ${ac_cv_path_SETFILE+:} false; then : 13196 $as_echo_n "(cached) " >&6 13197 else 13198 case $SETFILE in 13199 [\\/]* | ?:[\\/]*) 13200 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13201 ;; 13202 *) 13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13204 for as_dir in $PATH 13205 do 13206 IFS=$as_save_IFS 13207 test -z "$as_dir" && as_dir=. 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13210 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13212 break 2 13213 fi 13214 done 13215 done 13216 IFS=$as_save_IFS 13217 13218 ;; 13219 esac 13220 fi 13221 SETFILE=$ac_cv_path_SETFILE 13222 if test -n "$SETFILE"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13224 $as_echo "$SETFILE" >&6; } 13225 else 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13227 $as_echo "no" >&6; } 13228 fi 13229 13230 13231 test -n "$SETFILE" && break 13232 done 13233 13234 else 13235 # If it succeeded, then it was overridden by the user. We will use it 13236 # for the tool. 13237 13238 # First remove it from the list of overridden variables, so we can test 13239 # for unknown variables in the end. 13240 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13241 13242 # Check if the provided tool contains a complete path. 13243 tool_specified="$SETFILE" 13244 tool_basename="${tool_specified##*/}" 13245 if test "x$tool_basename" = "x$tool_specified"; then 13246 # A command without a complete path is provided, search $PATH. 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13248 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13249 # Extract the first word of "$tool_basename", so it can be a program name with args. 13250 set dummy $tool_basename; ac_word=$2 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13252 $as_echo_n "checking for $ac_word... " >&6; } 13253 if ${ac_cv_path_SETFILE+:} false; then : 13254 $as_echo_n "(cached) " >&6 13255 else 13256 case $SETFILE in 13257 [\\/]* | ?:[\\/]*) 13258 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13259 ;; 13260 *) 13261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13262 for as_dir in $PATH 13263 do 13264 IFS=$as_save_IFS 13265 test -z "$as_dir" && as_dir=. 13266 for ac_exec_ext in '' $ac_executable_extensions; do 13267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13268 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13270 break 2 13271 fi 13272 done 13273 done 13274 IFS=$as_save_IFS 13275 13276 ;; 13277 esac 13278 fi 13279 SETFILE=$ac_cv_path_SETFILE 13280 if test -n "$SETFILE"; then 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13282 $as_echo "$SETFILE" >&6; } 13283 else 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13285 $as_echo "no" >&6; } 13286 fi 13287 13288 13289 if test "x$SETFILE" = x; then 13290 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13291 fi 13292 else 13293 # Otherwise we believe it is a complete path. Use it as it is. 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13295 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13297 $as_echo_n "checking for SETFILE... " >&6; } 13298 if test ! -x "$tool_specified"; then 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13300 $as_echo "not found" >&6; } 13301 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13302 fi 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13304 $as_echo "$tool_specified" >&6; } 13305 fi 13306 fi 13307 fi 13308 13309 13310 13311 13312 # Now we can determine OpenJDK build and target platforms. This is required to 13313 # have early on. 13314 # Make sure we can run config.sub. 13315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13316 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13317 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13319 $as_echo_n "checking build system type... " >&6; } 13320 if ${ac_cv_build+:} false; then : 13321 $as_echo_n "(cached) " >&6 13322 else 13323 ac_build_alias=$build_alias 13324 test "x$ac_build_alias" = x && 13325 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13326 test "x$ac_build_alias" = x && 13327 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13328 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13329 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13330 13331 fi 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13333 $as_echo "$ac_cv_build" >&6; } 13334 case $ac_cv_build in 13335 *-*-*) ;; 13336 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13337 esac 13338 build=$ac_cv_build 13339 ac_save_IFS=$IFS; IFS='-' 13340 set x $ac_cv_build 13341 shift 13342 build_cpu=$1 13343 build_vendor=$2 13344 shift; shift 13345 # Remember, the first character of IFS is used to create $*, 13346 # except with old shells: 13347 build_os=$* 13348 IFS=$ac_save_IFS 13349 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13350 13351 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13353 $as_echo_n "checking host system type... " >&6; } 13354 if ${ac_cv_host+:} false; then : 13355 $as_echo_n "(cached) " >&6 13356 else 13357 if test "x$host_alias" = x; then 13358 ac_cv_host=$ac_cv_build 13359 else 13360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13362 fi 13363 13364 fi 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13366 $as_echo "$ac_cv_host" >&6; } 13367 case $ac_cv_host in 13368 *-*-*) ;; 13369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13370 esac 13371 host=$ac_cv_host 13372 ac_save_IFS=$IFS; IFS='-' 13373 set x $ac_cv_host 13374 shift 13375 host_cpu=$1 13376 host_vendor=$2 13377 shift; shift 13378 # Remember, the first character of IFS is used to create $*, 13379 # except with old shells: 13380 host_os=$* 13381 IFS=$ac_save_IFS 13382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13383 13384 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13386 $as_echo_n "checking target system type... " >&6; } 13387 if ${ac_cv_target+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389 else 13390 if test "x$target_alias" = x; then 13391 ac_cv_target=$ac_cv_host 13392 else 13393 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13395 fi 13396 13397 fi 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13399 $as_echo "$ac_cv_target" >&6; } 13400 case $ac_cv_target in 13401 *-*-*) ;; 13402 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13403 esac 13404 target=$ac_cv_target 13405 ac_save_IFS=$IFS; IFS='-' 13406 set x $ac_cv_target 13407 shift 13408 target_cpu=$1 13409 target_vendor=$2 13410 shift; shift 13411 # Remember, the first character of IFS is used to create $*, 13412 # except with old shells: 13413 target_os=$* 13414 IFS=$ac_save_IFS 13415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13416 13417 13418 # The aliases save the names the user supplied, while $host etc. 13419 # will get canonicalized. 13420 test -n "$target_alias" && 13421 test "$program_prefix$program_suffix$program_transform_name" = \ 13422 NONENONEs,x,x, && 13423 program_prefix=${target_alias}- 13424 13425 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13426 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13427 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13428 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13429 # to use the configure naming style. 13430 13431 13432 13433 13434 13435 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13436 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13437 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13438 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13439 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13440 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13441 13442 13443 13444 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13445 13446 case "$build_os" in 13447 *linux*) 13448 VAR_OS=linux 13449 VAR_OS_API=posix 13450 VAR_OS_ENV=linux 13451 ;; 13452 *solaris*) 13453 VAR_OS=solaris 13454 VAR_OS_API=posix 13455 VAR_OS_ENV=solaris 13456 ;; 13457 *darwin*) 13458 VAR_OS=macosx 13459 VAR_OS_API=posix 13460 VAR_OS_ENV=macosx 13461 ;; 13462 *bsd*) 13463 VAR_OS=bsd 13464 VAR_OS_API=posix 13465 VAR_OS_ENV=bsd 13466 ;; 13467 *cygwin*) 13468 VAR_OS=windows 13469 VAR_OS_API=winapi 13470 VAR_OS_ENV=windows.cygwin 13471 ;; 13472 *mingw*) 13473 VAR_OS=windows 13474 VAR_OS_API=winapi 13475 VAR_OS_ENV=windows.msys 13476 ;; 13477 *aix*) 13478 VAR_OS=aix 13479 VAR_OS_API=posix 13480 VAR_OS_ENV=aix 13481 ;; 13482 *) 13483 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13484 ;; 13485 esac 13486 13487 13488 # First argument is the cpu name from the trip/quad 13489 case "$build_cpu" in 13490 x86_64) 13491 VAR_CPU=x86_64 13492 VAR_CPU_ARCH=x86 13493 VAR_CPU_BITS=64 13494 VAR_CPU_ENDIAN=little 13495 ;; 13496 i?86) 13497 VAR_CPU=x86 13498 VAR_CPU_ARCH=x86 13499 VAR_CPU_BITS=32 13500 VAR_CPU_ENDIAN=little 13501 ;; 13502 arm*) 13503 VAR_CPU=arm 13504 VAR_CPU_ARCH=arm 13505 VAR_CPU_BITS=32 13506 VAR_CPU_ENDIAN=little 13507 ;; 13508 powerpc) 13509 VAR_CPU=ppc 13510 VAR_CPU_ARCH=ppc 13511 VAR_CPU_BITS=32 13512 VAR_CPU_ENDIAN=big 13513 ;; 13514 powerpc64) 13515 VAR_CPU=ppc64 13516 VAR_CPU_ARCH=ppc 13517 VAR_CPU_BITS=64 13518 VAR_CPU_ENDIAN=big 13519 ;; 13520 s390) 13521 VAR_CPU=s390 13522 VAR_CPU_ARCH=s390 13523 VAR_CPU_BITS=32 13524 VAR_CPU_ENDIAN=big 13525 ;; 13526 s390x) 13527 VAR_CPU=s390x 13528 VAR_CPU_ARCH=s390 13529 VAR_CPU_BITS=64 13530 VAR_CPU_ENDIAN=big 13531 ;; 13532 sparc) 13533 VAR_CPU=sparc 13534 VAR_CPU_ARCH=sparc 13535 VAR_CPU_BITS=32 13536 VAR_CPU_ENDIAN=big 13537 ;; 13538 sparcv9) 13539 VAR_CPU=sparcv9 13540 VAR_CPU_ARCH=sparc 13541 VAR_CPU_BITS=64 13542 VAR_CPU_ENDIAN=big 13543 ;; 13544 *) 13545 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13546 ;; 13547 esac 13548 13549 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13550 OPENJDK_BUILD_OS="$VAR_OS" 13551 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13552 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13553 OPENJDK_BUILD_CPU="$VAR_CPU" 13554 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13555 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13556 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13557 13558 13559 13560 13561 13562 13563 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13565 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13567 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13568 13569 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13570 13571 case "$host_os" in 13572 *linux*) 13573 VAR_OS=linux 13574 VAR_OS_API=posix 13575 VAR_OS_ENV=linux 13576 ;; 13577 *solaris*) 13578 VAR_OS=solaris 13579 VAR_OS_API=posix 13580 VAR_OS_ENV=solaris 13581 ;; 13582 *darwin*) 13583 VAR_OS=macosx 13584 VAR_OS_API=posix 13585 VAR_OS_ENV=macosx 13586 ;; 13587 *bsd*) 13588 VAR_OS=bsd 13589 VAR_OS_API=posix 13590 VAR_OS_ENV=bsd 13591 ;; 13592 *cygwin*) 13593 VAR_OS=windows 13594 VAR_OS_API=winapi 13595 VAR_OS_ENV=windows.cygwin 13596 ;; 13597 *mingw*) 13598 VAR_OS=windows 13599 VAR_OS_API=winapi 13600 VAR_OS_ENV=windows.msys 13601 ;; 13602 *aix*) 13603 VAR_OS=aix 13604 VAR_OS_API=posix 13605 VAR_OS_ENV=aix 13606 ;; 13607 *) 13608 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13609 ;; 13610 esac 13611 13612 13613 # First argument is the cpu name from the trip/quad 13614 case "$host_cpu" in 13615 x86_64) 13616 VAR_CPU=x86_64 13617 VAR_CPU_ARCH=x86 13618 VAR_CPU_BITS=64 13619 VAR_CPU_ENDIAN=little 13620 ;; 13621 i?86) 13622 VAR_CPU=x86 13623 VAR_CPU_ARCH=x86 13624 VAR_CPU_BITS=32 13625 VAR_CPU_ENDIAN=little 13626 ;; 13627 arm*) 13628 VAR_CPU=arm 13629 VAR_CPU_ARCH=arm 13630 VAR_CPU_BITS=32 13631 VAR_CPU_ENDIAN=little 13632 ;; 13633 powerpc) 13634 VAR_CPU=ppc 13635 VAR_CPU_ARCH=ppc 13636 VAR_CPU_BITS=32 13637 VAR_CPU_ENDIAN=big 13638 ;; 13639 powerpc64) 13640 VAR_CPU=ppc64 13641 VAR_CPU_ARCH=ppc 13642 VAR_CPU_BITS=64 13643 VAR_CPU_ENDIAN=big 13644 ;; 13645 s390) 13646 VAR_CPU=s390 13647 VAR_CPU_ARCH=s390 13648 VAR_CPU_BITS=32 13649 VAR_CPU_ENDIAN=big 13650 ;; 13651 s390x) 13652 VAR_CPU=s390x 13653 VAR_CPU_ARCH=s390 13654 VAR_CPU_BITS=64 13655 VAR_CPU_ENDIAN=big 13656 ;; 13657 sparc) 13658 VAR_CPU=sparc 13659 VAR_CPU_ARCH=sparc 13660 VAR_CPU_BITS=32 13661 VAR_CPU_ENDIAN=big 13662 ;; 13663 sparcv9) 13664 VAR_CPU=sparcv9 13665 VAR_CPU_ARCH=sparc 13666 VAR_CPU_BITS=64 13667 VAR_CPU_ENDIAN=big 13668 ;; 13669 *) 13670 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13671 ;; 13672 esac 13673 13674 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13675 OPENJDK_TARGET_OS="$VAR_OS" 13676 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13677 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13678 OPENJDK_TARGET_CPU="$VAR_CPU" 13679 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13680 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13681 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13682 13683 13684 13685 13686 13687 13688 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13690 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13692 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13693 13694 13695 13696 # Check whether --with-target-bits was given. 13697 if test "${with_target_bits+set}" = set; then : 13698 withval=$with_target_bits; 13699 fi 13700 13701 13702 # We have three types of compiles: 13703 # native == normal compilation, target system == build system 13704 # cross == traditional cross compilation, target system != build system; special toolchain needed 13705 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13706 # 13707 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13708 # We're doing a proper cross-compilation 13709 COMPILE_TYPE="cross" 13710 else 13711 COMPILE_TYPE="native" 13712 fi 13713 13714 if test "x$with_target_bits" != x; then 13715 if test "x$COMPILE_TYPE" = "xcross"; then 13716 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13717 fi 13718 13719 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13720 # A reduced build is requested 13721 COMPILE_TYPE="reduced" 13722 OPENJDK_TARGET_CPU_BITS=32 13723 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13724 OPENJDK_TARGET_CPU=x86 13725 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13726 OPENJDK_TARGET_CPU=sparc 13727 else 13728 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13729 fi 13730 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13731 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 13732 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13734 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13735 else 13736 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13737 fi 13738 fi 13739 13740 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13742 $as_echo_n "checking compilation type... " >&6; } 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13744 $as_echo "$COMPILE_TYPE" >&6; } 13745 13746 13747 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13748 REQUIRED_OS_NAME=SunOS 13749 REQUIRED_OS_VERSION=5.10 13750 fi 13751 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13752 REQUIRED_OS_NAME=Linux 13753 REQUIRED_OS_VERSION=2.6 13754 fi 13755 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13756 REQUIRED_OS_NAME=Windows 13757 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13758 REQUIRED_OS_VERSION=5.2 13759 else 13760 REQUIRED_OS_VERSION=5.1 13761 fi 13762 fi 13763 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13764 REQUIRED_OS_NAME=Darwin 13765 REQUIRED_OS_VERSION=11.2 13766 fi 13767 13768 13769 13770 13771 13772 # Also store the legacy naming of the cpu. 13773 # Ie i586 and amd64 instead of x86 and x86_64 13774 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13775 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13776 OPENJDK_TARGET_CPU_LEGACY="i586" 13777 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13778 # On all platforms except MacOSX replace x86_64 with amd64. 13779 OPENJDK_TARGET_CPU_LEGACY="amd64" 13780 fi 13781 13782 13783 # And the second legacy naming of the cpu. 13784 # Ie i386 and amd64 instead of x86 and x86_64. 13785 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13786 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13787 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13788 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13789 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13790 fi 13791 13792 13793 # This is the name of the cpu (but using i386 and amd64 instead of 13794 # x86 and x86_64, respectively), preceeded by a /, to be used when 13795 # locating libraries. On macosx, it's empty, though. 13796 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13797 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13798 OPENJDK_TARGET_CPU_LIBDIR="" 13799 fi 13800 13801 13802 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13803 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13804 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13805 OPENJDK_TARGET_CPU_ISADIR="" 13806 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13807 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13808 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13809 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13810 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13811 fi 13812 fi 13813 13814 13815 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13816 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13817 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13818 # On linux only, we replace x86 with i386. 13819 OPENJDK_TARGET_CPU_OSARCH="i386" 13820 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13821 # On all platforms except macosx, we replace x86_64 with amd64. 13822 OPENJDK_TARGET_CPU_OSARCH="amd64" 13823 fi 13824 13825 13826 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13827 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13828 OPENJDK_TARGET_CPU_JLI="i386" 13829 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13830 # On all platforms except macosx, we replace x86_64 with amd64. 13831 OPENJDK_TARGET_CPU_JLI="amd64" 13832 fi 13833 # Now setup the -D flags for building libjli. 13834 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13835 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13836 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13837 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13838 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13839 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13840 fi 13841 fi 13842 13843 13844 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13845 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13846 OPENJDK_TARGET_OS_API_DIR="solaris" 13847 fi 13848 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13849 OPENJDK_TARGET_OS_API_DIR="windows" 13850 fi 13851 13852 13853 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13854 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13855 else 13856 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13857 fi 13858 13859 13860 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13861 A_LP64="LP64:=" 13862 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13863 # unpack200.exe 13864 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13865 ADD_LP64="-D_LP64=1" 13866 fi 13867 fi 13868 LP64=$A_LP64 13869 13870 13871 if test "x$COMPILE_TYPE" = "xcross"; then 13872 # FIXME: ... or should this include reduced builds..? 13873 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13874 else 13875 DEFINE_CROSS_COMPILE_ARCH="" 13876 fi 13877 13878 13879 # ZERO_ARCHDEF is used to enable architecture-specific code 13880 case "${OPENJDK_TARGET_CPU}" in 13881 ppc*) ZERO_ARCHDEF=PPC ;; 13882 s390*) ZERO_ARCHDEF=S390 ;; 13883 sparc*) ZERO_ARCHDEF=SPARC ;; 13884 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13885 x86) ZERO_ARCHDEF=IA32 ;; 13886 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13887 esac 13888 13889 13890 13891 13892 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13893 13894 # Save the current directory this script was started from 13895 CURDIR="$PWD" 13896 13897 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13898 PATH_SEP=";" 13899 13900 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13901 if test $SRC_ROOT_LENGTH -gt 100; then 13902 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13903 fi 13904 13905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13907 $as_echo_n "checking cygwin release... " >&6; } 13908 CYGWIN_VERSION=`$UNAME -r` 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13910 $as_echo "$CYGWIN_VERSION" >&6; } 13911 WINDOWS_ENV_VENDOR='cygwin' 13912 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13913 13914 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 13915 if test "x$CYGWIN_VERSION_OK" = x; then 13916 { $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 13917 $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;} 13918 as_fn_error $? "Cannot continue" "$LINENO" 5 13919 fi 13920 if test "x$CYGPATH" = x; then 13921 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13922 fi 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13924 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13925 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13926 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 13927 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 13928 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 13930 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 13931 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 13932 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 13933 if test "x$test_cygdrive_prefix" = x; then 13934 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 13935 fi 13936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 13938 $as_echo_n "checking msys release... " >&6; } 13939 MSYS_VERSION=`$UNAME -r` 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 13941 $as_echo "$MSYS_VERSION" >&6; } 13942 13943 WINDOWS_ENV_VENDOR='msys' 13944 WINDOWS_ENV_VERSION="$MSYS_VERSION" 13945 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 13947 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 13948 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13949 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 13950 13951 windows_path="$MSYS_ROOT_PATH" 13952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13953 unix_path=`$CYGPATH -u "$windows_path"` 13954 MSYS_ROOT_PATH="$unix_path" 13955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13957 MSYS_ROOT_PATH="$unix_path" 13958 fi 13959 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 13961 $as_echo "$MSYS_ROOT_PATH" >&6; } 13962 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 13963 else 13964 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 13965 fi 13966 13967 # Test if windows or unix (cygwin/msys) find is first in path. 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 13969 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 13970 FIND_BINARY_OUTPUT=`find --version 2>&1` 13971 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 13973 $as_echo "unix style" >&6; } 13974 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 13976 $as_echo "Windows" >&6; } 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 13978 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 13979 { $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 13980 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 13981 as_fn_error $? "Cannot continue" "$LINENO" 5 13982 else 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 13984 $as_echo "unknown" >&6; } 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 13986 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 13987 fi 13988 13989 else 13990 PATH_SEP=":" 13991 fi 13992 13993 13994 # We get the top-level directory from the supporting wrappers. 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 13996 $as_echo_n "checking for top-level directory... " >&6; } 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 13998 $as_echo "$TOPDIR" >&6; } 13999 14000 14001 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14002 14003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14004 14005 # Input might be given as Windows format, start by converting to 14006 # unix format. 14007 path="$CURDIR" 14008 new_path=`$CYGPATH -u "$path"` 14009 14010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14013 # "foo.exe" is OK but "foo" is an error. 14014 # 14015 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14016 # It is also a way to make sure we got the proper file name for the real test later on. 14017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14018 if test "x$test_shortpath" = x; then 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14020 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14021 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14022 fi 14023 14024 # Call helper function which possibly converts this using DOS-style short mode. 14025 # If so, the updated path is stored in $new_path. 14026 14027 input_path="$new_path" 14028 # Check if we need to convert this using DOS-style short mode. If the path 14029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14030 # take no chances and rewrite it. 14031 # Note: m4 eats our [], so we need to use [ and ] instead. 14032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14033 if test "x$has_forbidden_chars" != x; then 14034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14038 # Going to short mode and back again did indeed matter. Since short mode is 14039 # case insensitive, let's make it lowercase to improve readability. 14040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14041 # Now convert it back to Unix-stile (cygpath) 14042 input_path=`$CYGPATH -u "$shortmode_path"` 14043 new_path="$input_path" 14044 fi 14045 fi 14046 14047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14048 if test "x$test_cygdrive_prefix" = x; then 14049 # As a simple fix, exclude /usr/bin since it's not a real path. 14050 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14052 # a path prefixed by /cygdrive for fixpath to work. 14053 new_path="$CYGWIN_ROOT_PATH$input_path" 14054 fi 14055 fi 14056 14057 14058 if test "x$path" != "x$new_path"; then 14059 CURDIR="$new_path" 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14061 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14062 fi 14063 14064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14065 14066 path="$CURDIR" 14067 has_colon=`$ECHO $path | $GREP ^.:` 14068 new_path="$path" 14069 if test "x$has_colon" = x; then 14070 # Not in mixed or Windows style, start by that. 14071 new_path=`cmd //c echo $path` 14072 fi 14073 14074 14075 input_path="$new_path" 14076 # Check if we need to convert this using DOS-style short mode. If the path 14077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14078 # take no chances and rewrite it. 14079 # Note: m4 eats our [], so we need to use [ and ] instead. 14080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14081 if test "x$has_forbidden_chars" != x; then 14082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14084 fi 14085 14086 14087 windows_path="$new_path" 14088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14089 unix_path=`$CYGPATH -u "$windows_path"` 14090 new_path="$unix_path" 14091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14093 new_path="$unix_path" 14094 fi 14095 14096 if test "x$path" != "x$new_path"; then 14097 CURDIR="$new_path" 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14099 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14100 fi 14101 14102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14104 14105 else 14106 # We're on a posix platform. Hooray! :) 14107 path="$CURDIR" 14108 has_space=`$ECHO "$path" | $GREP " "` 14109 if test "x$has_space" != x; then 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14111 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14112 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14113 fi 14114 14115 # Use eval to expand a potential ~ 14116 eval path="$path" 14117 if test ! -f "$path" && test ! -d "$path"; then 14118 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14119 fi 14120 14121 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14122 fi 14123 14124 14125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14126 14127 # Input might be given as Windows format, start by converting to 14128 # unix format. 14129 path="$TOPDIR" 14130 new_path=`$CYGPATH -u "$path"` 14131 14132 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14133 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14134 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14135 # "foo.exe" is OK but "foo" is an error. 14136 # 14137 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14138 # It is also a way to make sure we got the proper file name for the real test later on. 14139 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14140 if test "x$test_shortpath" = x; then 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14142 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14143 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14144 fi 14145 14146 # Call helper function which possibly converts this using DOS-style short mode. 14147 # If so, the updated path is stored in $new_path. 14148 14149 input_path="$new_path" 14150 # Check if we need to convert this using DOS-style short mode. If the path 14151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14152 # take no chances and rewrite it. 14153 # Note: m4 eats our [], so we need to use [ and ] instead. 14154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14155 if test "x$has_forbidden_chars" != x; then 14156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14157 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14158 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14159 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14160 # Going to short mode and back again did indeed matter. Since short mode is 14161 # case insensitive, let's make it lowercase to improve readability. 14162 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14163 # Now convert it back to Unix-stile (cygpath) 14164 input_path=`$CYGPATH -u "$shortmode_path"` 14165 new_path="$input_path" 14166 fi 14167 fi 14168 14169 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14170 if test "x$test_cygdrive_prefix" = x; then 14171 # As a simple fix, exclude /usr/bin since it's not a real path. 14172 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14173 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14174 # a path prefixed by /cygdrive for fixpath to work. 14175 new_path="$CYGWIN_ROOT_PATH$input_path" 14176 fi 14177 fi 14178 14179 14180 if test "x$path" != "x$new_path"; then 14181 TOPDIR="$new_path" 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14183 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14184 fi 14185 14186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14187 14188 path="$TOPDIR" 14189 has_colon=`$ECHO $path | $GREP ^.:` 14190 new_path="$path" 14191 if test "x$has_colon" = x; then 14192 # Not in mixed or Windows style, start by that. 14193 new_path=`cmd //c echo $path` 14194 fi 14195 14196 14197 input_path="$new_path" 14198 # Check if we need to convert this using DOS-style short mode. If the path 14199 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14200 # take no chances and rewrite it. 14201 # Note: m4 eats our [], so we need to use [ and ] instead. 14202 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14203 if test "x$has_forbidden_chars" != x; then 14204 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14205 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14206 fi 14207 14208 14209 windows_path="$new_path" 14210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14211 unix_path=`$CYGPATH -u "$windows_path"` 14212 new_path="$unix_path" 14213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14215 new_path="$unix_path" 14216 fi 14217 14218 if test "x$path" != "x$new_path"; then 14219 TOPDIR="$new_path" 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14221 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14222 fi 14223 14224 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14225 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14226 14227 else 14228 # We're on a posix platform. Hooray! :) 14229 path="$TOPDIR" 14230 has_space=`$ECHO "$path" | $GREP " "` 14231 if test "x$has_space" != x; then 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14233 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14234 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14235 fi 14236 14237 # Use eval to expand a potential ~ 14238 eval path="$path" 14239 if test ! -f "$path" && test ! -d "$path"; then 14240 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14241 fi 14242 14243 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14244 fi 14245 14246 # SRC_ROOT is a traditional alias for TOPDIR. 14247 SRC_ROOT=$TOPDIR 14248 14249 # Locate the directory of this script. 14250 AUTOCONF_DIR=$TOPDIR/common/autoconf 14251 14252 14253 # Check whether --with-devkit was given. 14254 if test "${with_devkit+set}" = set; then : 14255 withval=$with_devkit; 14256 14257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14258 14259 # Input might be given as Windows format, start by converting to 14260 # unix format. 14261 path="$with_devkit" 14262 new_path=`$CYGPATH -u "$path"` 14263 14264 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14265 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14266 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14267 # "foo.exe" is OK but "foo" is an error. 14268 # 14269 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14270 # It is also a way to make sure we got the proper file name for the real test later on. 14271 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14272 if test "x$test_shortpath" = x; then 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14274 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14275 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14276 fi 14277 14278 # Call helper function which possibly converts this using DOS-style short mode. 14279 # If so, the updated path is stored in $new_path. 14280 14281 input_path="$new_path" 14282 # Check if we need to convert this using DOS-style short mode. If the path 14283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14284 # take no chances and rewrite it. 14285 # Note: m4 eats our [], so we need to use [ and ] instead. 14286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14287 if test "x$has_forbidden_chars" != x; then 14288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14289 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14290 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14291 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14292 # Going to short mode and back again did indeed matter. Since short mode is 14293 # case insensitive, let's make it lowercase to improve readability. 14294 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14295 # Now convert it back to Unix-stile (cygpath) 14296 input_path=`$CYGPATH -u "$shortmode_path"` 14297 new_path="$input_path" 14298 fi 14299 fi 14300 14301 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14302 if test "x$test_cygdrive_prefix" = x; then 14303 # As a simple fix, exclude /usr/bin since it's not a real path. 14304 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14305 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14306 # a path prefixed by /cygdrive for fixpath to work. 14307 new_path="$CYGWIN_ROOT_PATH$input_path" 14308 fi 14309 fi 14310 14311 14312 if test "x$path" != "x$new_path"; then 14313 with_devkit="$new_path" 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14315 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14316 fi 14317 14318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14319 14320 path="$with_devkit" 14321 has_colon=`$ECHO $path | $GREP ^.:` 14322 new_path="$path" 14323 if test "x$has_colon" = x; then 14324 # Not in mixed or Windows style, start by that. 14325 new_path=`cmd //c echo $path` 14326 fi 14327 14328 14329 input_path="$new_path" 14330 # Check if we need to convert this using DOS-style short mode. If the path 14331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14332 # take no chances and rewrite it. 14333 # Note: m4 eats our [], so we need to use [ and ] instead. 14334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14335 if test "x$has_forbidden_chars" != x; then 14336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14338 fi 14339 14340 14341 windows_path="$new_path" 14342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14343 unix_path=`$CYGPATH -u "$windows_path"` 14344 new_path="$unix_path" 14345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14347 new_path="$unix_path" 14348 fi 14349 14350 if test "x$path" != "x$new_path"; then 14351 with_devkit="$new_path" 14352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14353 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14354 fi 14355 14356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14358 14359 else 14360 # We're on a posix platform. Hooray! :) 14361 path="$with_devkit" 14362 has_space=`$ECHO "$path" | $GREP " "` 14363 if test "x$has_space" != x; then 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14365 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14366 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14367 fi 14368 14369 # Use eval to expand a potential ~ 14370 eval path="$path" 14371 if test ! -f "$path" && test ! -d "$path"; then 14372 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14373 fi 14374 14375 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14376 fi 14377 14378 DEVKIT_ROOT="$with_devkit" 14379 # Check for a meta data info file in the root of the devkit 14380 if test -f "$DEVKIT_ROOT/devkit.info"; then 14381 # This potentially sets the following: 14382 # DEVKIT_NAME: A descriptive name of the devkit 14383 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14384 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14385 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14386 . $DEVKIT_ROOT/devkit.info 14387 fi 14388 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14390 $as_echo_n "checking for devkit... " >&6; } 14391 if test "x$DEVKIT_NAME" != x; then 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14393 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14394 else 14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14396 $as_echo "$DEVKIT_ROOT" >&6; } 14397 fi 14398 14399 if test "x$DEVKIT_EXTRA_PATH" != x; then 14400 14401 if test "x$DEVKIT_EXTRA_PATH" != x; then 14402 if test "x$EXTRA_PATH" = x; then 14403 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14404 else 14405 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14406 fi 14407 fi 14408 14409 fi 14410 14411 # Fallback default of just /bin if DEVKIT_PATH is not defined 14412 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14413 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14414 fi 14415 14416 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14417 if test "x$TOOLCHAIN_PATH" = x; then 14418 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14419 else 14420 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14421 fi 14422 fi 14423 14424 14425 # If a separate sysroot has not been defined, use the one in the devkit 14426 if test "x$DEVKIT_SYSROOT" != x; then 14427 SYSROOT="$DEVKIT_SYSROOT" 14428 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14429 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14430 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14431 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14432 fi 14433 14434 14435 fi 14436 14437 14438 # You can force the sysroot if the sysroot encoded into the cross compiler tools 14439 # is not correct. 14440 14441 # Check whether --with-sys-root was given. 14442 if test "${with_sys_root+set}" = set; then : 14443 withval=$with_sys_root; SYSROOT=$with_sys_root 14444 14445 fi 14446 14447 14448 14449 # Check whether --with-sysroot was given. 14450 if test "${with_sysroot+set}" = set; then : 14451 withval=$with_sysroot; SYSROOT=$with_sysroot 14452 14453 fi 14454 14455 14456 14457 # Check whether --with-tools-dir was given. 14458 if test "${with_tools_dir+set}" = set; then : 14459 withval=$with_tools_dir; 14460 if test "x$with_tools_dir" != x; then 14461 if test "x$TOOLCHAIN_PATH" = x; then 14462 TOOLCHAIN_PATH="$with_tools_dir" 14463 else 14464 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14465 fi 14466 fi 14467 14468 14469 fi 14470 14471 14472 14473 # Check whether --with-toolchain-path was given. 14474 if test "${with_toolchain_path+set}" = set; then : 14475 withval=$with_toolchain_path; 14476 if test "x$with_toolchain_path" != x; then 14477 if test "x$TOOLCHAIN_PATH" = x; then 14478 TOOLCHAIN_PATH="$with_toolchain_path" 14479 else 14480 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14481 fi 14482 fi 14483 14484 14485 fi 14486 14487 14488 14489 # Check whether --with-extra-path was given. 14490 if test "${with_extra_path+set}" = set; then : 14491 withval=$with_extra_path; 14492 if test "x$with_extra_path" != x; then 14493 if test "x$EXTRA_PATH" = x; then 14494 EXTRA_PATH="$with_extra_path" 14495 else 14496 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14497 fi 14498 fi 14499 14500 14501 fi 14502 14503 14504 # Prepend the extra path to the global path 14505 14506 if test "x$EXTRA_PATH" != x; then 14507 if test "x$PATH" = x; then 14508 PATH="$EXTRA_PATH" 14509 else 14510 PATH="$EXTRA_PATH:$PATH" 14511 fi 14512 fi 14513 14514 14515 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 14516 # Add extra search paths on solaris for utilities like ar and as etc... 14517 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 14518 fi 14519 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14521 $as_echo_n "checking for sysroot... " >&6; } 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 14523 $as_echo "$SYSROOT" >&6; } 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 14525 $as_echo_n "checking for toolchain path... " >&6; } 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 14527 $as_echo "$TOOLCHAIN_PATH" >&6; } 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 14529 $as_echo_n "checking for extra path... " >&6; } 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 14531 $as_echo "$EXTRA_PATH" >&6; } 14532 14533 14534 # Setup default logging of stdout and stderr to build.log in the output root. 14535 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14536 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14537 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14538 14539 14540 14541 14542 14543 # Check if it's a pure open build or if custom sources are to be used. 14544 14545 # Check whether --enable-openjdk-only was given. 14546 if test "${enable_openjdk_only+set}" = set; then : 14547 enableval=$enable_openjdk_only; 14548 else 14549 enable_openjdk_only="no" 14550 fi 14551 14552 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14554 $as_echo_n "checking for presence of closed sources... " >&6; } 14555 if test -d "$SRC_ROOT/jdk/src/closed"; then 14556 CLOSED_SOURCE_PRESENT=yes 14557 else 14558 CLOSED_SOURCE_PRESENT=no 14559 fi 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14561 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14562 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14564 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14565 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14567 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14568 14569 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14570 OPENJDK=true 14571 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14573 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14574 fi 14575 else 14576 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14577 OPENJDK=true 14578 else 14579 OPENJDK=false 14580 fi 14581 fi 14582 14583 if test "x$OPENJDK" = "xtrue"; then 14584 SET_OPENJDK="OPENJDK=true" 14585 fi 14586 14587 14588 14589 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14590 # the IncludeCustomExtension macro. 14591 14592 14593 # Check whether --with-custom-make-dir was given. 14594 if test "${with_custom_make_dir+set}" = set; then : 14595 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 14596 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14597 fi 14598 14599 14600 14601 14602 # These are needed to be able to create a configuration name (and thus the output directory) 14603 14604 ############################################################################### 14605 # 14606 # Check which variant of the JDK that we want to build. 14607 # Currently we have: 14608 # normal: standard edition 14609 # but the custom make system may add other variants 14610 # 14611 # Effectively the JDK variant gives a name to a specific set of 14612 # modules to compile into the JDK. In the future, these modules 14613 # might even be Jigsaw modules. 14614 # 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14616 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14617 14618 # Check whether --with-jdk-variant was given. 14619 if test "${with_jdk_variant+set}" = set; then : 14620 withval=$with_jdk_variant; 14621 fi 14622 14623 14624 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14625 JDK_VARIANT="normal" 14626 else 14627 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14628 fi 14629 14630 14631 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14633 $as_echo "$JDK_VARIANT" >&6; } 14634 14635 14636 ############################################################################### 14637 # 14638 # Check which interpreter of the JVM we want to build. 14639 # Currently we have: 14640 # template: Template interpreter (the default) 14641 # cpp : C++ interpreter 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14643 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14644 14645 # Check whether --with-jvm-interpreter was given. 14646 if test "${with_jvm_interpreter+set}" = set; then : 14647 withval=$with_jvm_interpreter; 14648 fi 14649 14650 14651 if test "x$with_jvm_interpreter" = x; then 14652 with_jvm_interpreter="template" 14653 fi 14654 14655 JVM_INTERPRETER="$with_jvm_interpreter" 14656 14657 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14658 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14659 fi 14660 14661 14662 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14664 $as_echo "$with_jvm_interpreter" >&6; } 14665 14666 14667 14668 ############################################################################### 14669 # 14670 # Check which variants of the JVM that we want to build. 14671 # Currently we have: 14672 # server: normal interpreter and a tiered C1/C2 compiler 14673 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14674 # minimal1: reduced form of client with optional VM services and features stripped out 14675 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14676 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14677 # zero: no machine code interpreter, no compiler 14678 # zeroshark: zero interpreter and shark/llvm compiler backend 14679 # core: interpreter only, no compiler (only works on some platforms) 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14681 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14682 14683 # Check whether --with-jvm-variants was given. 14684 if test "${with_jvm_variants+set}" = set; then : 14685 withval=$with_jvm_variants; 14686 fi 14687 14688 14689 if test "x$with_jvm_variants" = x; then 14690 with_jvm_variants="server" 14691 fi 14692 14693 JVM_VARIANTS=",$with_jvm_variants," 14694 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,//'` 14695 14696 if test "x$TEST_VARIANTS" != "x,"; then 14697 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14698 fi 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14700 $as_echo "$with_jvm_variants" >&6; } 14701 14702 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14703 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14704 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14705 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14706 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14707 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14708 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14709 14710 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14711 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14712 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14713 fi 14714 fi 14715 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14716 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14717 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14718 fi 14719 fi 14720 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14721 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14722 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14723 fi 14724 fi 14725 14726 # Replace the commas with AND for use in the build directory name. 14727 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14728 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/'` 14729 if test "x$COUNT_VARIANTS" != "x,1"; then 14730 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14731 else 14732 BUILDING_MULTIPLE_JVM_VARIANTS=no 14733 fi 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 INCLUDE_SA=true 14745 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14746 INCLUDE_SA=false 14747 fi 14748 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14749 INCLUDE_SA=false 14750 fi 14751 if test "x$VAR_CPU" = xppc64 ; then 14752 INCLUDE_SA=false 14753 fi 14754 14755 14756 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14757 MACOSX_UNIVERSAL="true" 14758 fi 14759 14760 14761 14762 14763 ############################################################################### 14764 # 14765 # Set the debug level 14766 # release: no debug information, all optimizations, no asserts. 14767 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14768 # fastdebug: debug information (-g), all optimizations, all asserts 14769 # slowdebug: debug information (-g), no optimizations, all asserts 14770 # 14771 DEBUG_LEVEL="release" 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14773 $as_echo_n "checking which debug level to use... " >&6; } 14774 # Check whether --enable-debug was given. 14775 if test "${enable_debug+set}" = set; then : 14776 enableval=$enable_debug; 14777 ENABLE_DEBUG="${enableval}" 14778 DEBUG_LEVEL="fastdebug" 14779 14780 else 14781 ENABLE_DEBUG="no" 14782 fi 14783 14784 14785 14786 # Check whether --with-debug-level was given. 14787 if test "${with_debug_level+set}" = set; then : 14788 withval=$with_debug_level; 14789 DEBUG_LEVEL="${withval}" 14790 if test "x$ENABLE_DEBUG" = xyes; then 14791 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14792 fi 14793 14794 fi 14795 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14797 $as_echo "$DEBUG_LEVEL" >&6; } 14798 14799 if test "x$DEBUG_LEVEL" != xrelease && \ 14800 test "x$DEBUG_LEVEL" != xoptimized && \ 14801 test "x$DEBUG_LEVEL" != xfastdebug && \ 14802 test "x$DEBUG_LEVEL" != xslowdebug; then 14803 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14804 fi 14805 14806 14807 ############################################################################### 14808 # 14809 # Setup legacy vars/targets and new vars to deal with different debug levels. 14810 # 14811 14812 case $DEBUG_LEVEL in 14813 release ) 14814 VARIANT="OPT" 14815 FASTDEBUG="false" 14816 DEBUG_CLASSFILES="false" 14817 BUILD_VARIANT_RELEASE="" 14818 HOTSPOT_DEBUG_LEVEL="product" 14819 HOTSPOT_EXPORT="product" 14820 ;; 14821 fastdebug ) 14822 VARIANT="DBG" 14823 FASTDEBUG="true" 14824 DEBUG_CLASSFILES="true" 14825 BUILD_VARIANT_RELEASE="-fastdebug" 14826 HOTSPOT_DEBUG_LEVEL="fastdebug" 14827 HOTSPOT_EXPORT="fastdebug" 14828 ;; 14829 slowdebug ) 14830 VARIANT="DBG" 14831 FASTDEBUG="false" 14832 DEBUG_CLASSFILES="true" 14833 BUILD_VARIANT_RELEASE="-debug" 14834 HOTSPOT_DEBUG_LEVEL="jvmg" 14835 HOTSPOT_EXPORT="debug" 14836 ;; 14837 optimized ) 14838 VARIANT="OPT" 14839 FASTDEBUG="false" 14840 DEBUG_CLASSFILES="false" 14841 BUILD_VARIANT_RELEASE="-optimized" 14842 HOTSPOT_DEBUG_LEVEL="optimized" 14843 HOTSPOT_EXPORT="optimized" 14844 ;; 14845 esac 14846 14847 # The debug level 'optimized' is a little special because it is currently only 14848 # applicable to the HotSpot build where it means to build a completely 14849 # optimized version of the VM without any debugging code (like for the 14850 # 'release' debug level which is called 'product' in the HotSpot build) but 14851 # with the exception that it can contain additional code which is otherwise 14852 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14853 # test new and/or experimental features which are not intended for customer 14854 # shipment. Because these new features need to be tested and benchmarked in 14855 # real world scenarios, we want to build the containing JDK at the 'release' 14856 # debug level. 14857 if test "x$DEBUG_LEVEL" = xoptimized; then 14858 DEBUG_LEVEL="release" 14859 fi 14860 14861 ##### 14862 # Generate the legacy makefile targets for hotspot. 14863 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14864 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14865 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14866 # But until then ... 14867 HOTSPOT_TARGET="" 14868 14869 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14870 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14871 fi 14872 14873 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14874 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14875 fi 14876 14877 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14878 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14879 fi 14880 14881 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14882 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14883 fi 14884 14885 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14886 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14887 fi 14888 14889 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14890 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14891 fi 14892 14893 if test "x$JVM_VARIANT_CORE" = xtrue; then 14894 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14895 fi 14896 14897 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14898 14899 # On Macosx universal binaries are produced, but they only contain 14900 # 64 bit intel. This invalidates control of which jvms are built 14901 # from configure, but only server is valid anyway. Fix this 14902 # when hotspot makefiles are rewritten. 14903 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14904 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14905 fi 14906 14907 ##### 14908 14909 14910 14911 14912 14913 14914 14915 14916 # With basic setup done, call the custom early hook. 14917 14918 14919 # To properly create a configuration name, we need to have the OpenJDK target 14920 # and options (variants and debug level) parsed. 14921 14922 14923 14924 # Check whether --with-conf-name was given. 14925 if test "${with_conf_name+set}" = set; then : 14926 withval=$with_conf_name; CONF_NAME=${with_conf_name} 14927 fi 14928 14929 14930 # Test from where we are running configure, in or outside of src root. 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 14932 $as_echo_n "checking where to store configuration... " >&6; } 14933 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 14934 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 14935 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 14936 # We are running configure from the src root. 14937 # Create a default ./build/target-variant-debuglevel output root. 14938 if test "x${CONF_NAME}" = x; then 14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 14940 $as_echo "in default location" >&6; } 14941 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 14942 else 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 14944 $as_echo "in build directory with custom name" >&6; } 14945 fi 14946 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 14947 $MKDIR -p "$OUTPUT_ROOT" 14948 if test ! -d "$OUTPUT_ROOT"; then 14949 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 14950 fi 14951 else 14952 # We are running configure from outside of the src dir. 14953 # Then use the current directory as output dir! 14954 # If configuration is situated in normal build directory, just use the build 14955 # directory name as configuration name, otherwise use the complete path. 14956 if test "x${CONF_NAME}" = x; then 14957 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 14958 fi 14959 OUTPUT_ROOT="$CURDIR" 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 14961 $as_echo "in current directory" >&6; } 14962 14963 # WARNING: This might be a bad thing to do. You need to be sure you want to 14964 # have a configuration in this directory. Do some sanity checks! 14965 14966 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 14967 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 14968 # other files 14969 files_present=`$LS $OUTPUT_ROOT` 14970 # Configure has already touched config.log and confdefs.h in the current dir when this check 14971 # is performed. 14972 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 14973 | $TR -d '\n'` 14974 if test "x$filtered_files" != x; then 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 14976 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 14978 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 14980 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 14982 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 14984 $as_echo "$as_me: seriously mess up just about everything." >&6;} 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 14986 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 14988 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 14989 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 14990 fi 14991 fi 14992 fi 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 14994 $as_echo_n "checking what configuration name to use... " >&6; } 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 14996 $as_echo "$CONF_NAME" >&6; } 14997 14998 14999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15000 15001 # Input might be given as Windows format, start by converting to 15002 # unix format. 15003 path="$OUTPUT_ROOT" 15004 new_path=`$CYGPATH -u "$path"` 15005 15006 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15007 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15008 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15009 # "foo.exe" is OK but "foo" is an error. 15010 # 15011 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15012 # It is also a way to make sure we got the proper file name for the real test later on. 15013 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15014 if test "x$test_shortpath" = x; then 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15016 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15017 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15018 fi 15019 15020 # Call helper function which possibly converts this using DOS-style short mode. 15021 # If so, the updated path is stored in $new_path. 15022 15023 input_path="$new_path" 15024 # Check if we need to convert this using DOS-style short mode. If the path 15025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15026 # take no chances and rewrite it. 15027 # Note: m4 eats our [], so we need to use [ and ] instead. 15028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15029 if test "x$has_forbidden_chars" != x; then 15030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15031 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15032 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15033 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15034 # Going to short mode and back again did indeed matter. Since short mode is 15035 # case insensitive, let's make it lowercase to improve readability. 15036 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15037 # Now convert it back to Unix-stile (cygpath) 15038 input_path=`$CYGPATH -u "$shortmode_path"` 15039 new_path="$input_path" 15040 fi 15041 fi 15042 15043 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15044 if test "x$test_cygdrive_prefix" = x; then 15045 # As a simple fix, exclude /usr/bin since it's not a real path. 15046 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15047 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15048 # a path prefixed by /cygdrive for fixpath to work. 15049 new_path="$CYGWIN_ROOT_PATH$input_path" 15050 fi 15051 fi 15052 15053 15054 if test "x$path" != "x$new_path"; then 15055 OUTPUT_ROOT="$new_path" 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15057 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15058 fi 15059 15060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15061 15062 path="$OUTPUT_ROOT" 15063 has_colon=`$ECHO $path | $GREP ^.:` 15064 new_path="$path" 15065 if test "x$has_colon" = x; then 15066 # Not in mixed or Windows style, start by that. 15067 new_path=`cmd //c echo $path` 15068 fi 15069 15070 15071 input_path="$new_path" 15072 # Check if we need to convert this using DOS-style short mode. If the path 15073 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15074 # take no chances and rewrite it. 15075 # Note: m4 eats our [], so we need to use [ and ] instead. 15076 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15077 if test "x$has_forbidden_chars" != x; then 15078 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15079 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15080 fi 15081 15082 15083 windows_path="$new_path" 15084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15085 unix_path=`$CYGPATH -u "$windows_path"` 15086 new_path="$unix_path" 15087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15089 new_path="$unix_path" 15090 fi 15091 15092 if test "x$path" != "x$new_path"; then 15093 OUTPUT_ROOT="$new_path" 15094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15095 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15096 fi 15097 15098 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15099 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15100 15101 else 15102 # We're on a posix platform. Hooray! :) 15103 path="$OUTPUT_ROOT" 15104 has_space=`$ECHO "$path" | $GREP " "` 15105 if test "x$has_space" != x; then 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15107 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15108 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15109 fi 15110 15111 # Use eval to expand a potential ~ 15112 eval path="$path" 15113 if test ! -f "$path" && test ! -d "$path"; then 15114 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15115 fi 15116 15117 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15118 fi 15119 15120 15121 SPEC=$OUTPUT_ROOT/spec.gmk 15122 15123 CONF_NAME=$CONF_NAME 15124 15125 OUTPUT_ROOT=$OUTPUT_ROOT 15126 15127 15128 # Most of the probed defines are put into config.h 15129 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15130 15131 # The spec.gmk file contains all variables for the make system. 15132 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15133 15134 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15135 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15136 15137 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15138 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15139 15140 # The compare.sh is used to compare the build output to other builds. 15141 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15142 15143 # Spec.sh is currently used by compare-objects.sh 15144 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15145 15146 # The generated Makefile knows where the spec.gmk is and where the source is. 15147 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15148 # which will look for generated configurations 15149 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15150 15151 15152 15153 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15154 15155 for ac_prog in apt-get yum port pkgutil pkgadd 15156 do 15157 # Extract the first word of "$ac_prog", so it can be a program name with args. 15158 set dummy $ac_prog; ac_word=$2 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15160 $as_echo_n "checking for $ac_word... " >&6; } 15161 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15162 $as_echo_n "(cached) " >&6 15163 else 15164 if test -n "$PKGHANDLER"; then 15165 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15166 else 15167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15168 for as_dir in $PATH 15169 do 15170 IFS=$as_save_IFS 15171 test -z "$as_dir" && as_dir=. 15172 for ac_exec_ext in '' $ac_executable_extensions; do 15173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15174 ac_cv_prog_PKGHANDLER="$ac_prog" 15175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15176 break 2 15177 fi 15178 done 15179 done 15180 IFS=$as_save_IFS 15181 15182 fi 15183 fi 15184 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15185 if test -n "$PKGHANDLER"; then 15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15187 $as_echo "$PKGHANDLER" >&6; } 15188 else 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15190 $as_echo "no" >&6; } 15191 fi 15192 15193 15194 test -n "$PKGHANDLER" && break 15195 done 15196 15197 15198 15199 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15200 15201 15202 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15203 if test "x$MAKE" != x; then 15204 # User has supplied a make, test it. 15205 if test ! -f "$MAKE"; then 15206 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15207 fi 15208 15209 MAKE_CANDIDATE=""$MAKE"" 15210 DESCRIPTION="user supplied MAKE=$MAKE" 15211 if test "x$MAKE_CANDIDATE" != x; then 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15213 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15214 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15215 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15216 if test "x$IS_GNU_MAKE" = x; then 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15218 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15219 else 15220 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15221 if test "x$IS_MODERN_MAKE" = x; then 15222 { $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 15223 $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;} 15224 else 15225 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15227 MAKE_EXPECTED_ENV='cygwin' 15228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15229 MAKE_EXPECTED_ENV='msys' 15230 else 15231 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15232 fi 15233 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15234 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15235 else 15236 # Not relevant for non-Windows 15237 IS_MAKE_CORRECT_ENV=true 15238 fi 15239 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15240 { $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 15241 $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;} 15242 else 15243 FOUND_MAKE=$MAKE_CANDIDATE 15244 15245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15246 15247 # First separate the path from the arguments. This will split at the first 15248 # space. 15249 complete="$FOUND_MAKE" 15250 path="${complete%% *}" 15251 tmp="$complete EOL" 15252 arguments="${tmp#* }" 15253 15254 # Input might be given as Windows format, start by converting to 15255 # unix format. 15256 new_path=`$CYGPATH -u "$path"` 15257 15258 # Now try to locate executable using which 15259 new_path=`$WHICH "$new_path" 2> /dev/null` 15260 # bat and cmd files are not always considered executable in cygwin causing which 15261 # to not find them 15262 if test "x$new_path" = x \ 15263 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15264 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15265 new_path=`$CYGPATH -u "$path"` 15266 fi 15267 if test "x$new_path" = x; then 15268 # Oops. Which didn't find the executable. 15269 # The splitting of arguments from the executable at a space might have been incorrect, 15270 # since paths with space are more likely in Windows. Give it another try with the whole 15271 # argument. 15272 path="$complete" 15273 arguments="EOL" 15274 new_path=`$CYGPATH -u "$path"` 15275 new_path=`$WHICH "$new_path" 2> /dev/null` 15276 # bat and cmd files are not always considered executable in cygwin causing which 15277 # to not find them 15278 if test "x$new_path" = x \ 15279 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15280 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15281 new_path=`$CYGPATH -u "$path"` 15282 fi 15283 if test "x$new_path" = x; then 15284 # It's still not found. Now this is an unrecoverable error. 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15286 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15287 has_space=`$ECHO "$complete" | $GREP " "` 15288 if test "x$has_space" != x; then 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15290 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15291 fi 15292 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15293 fi 15294 fi 15295 15296 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15297 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15298 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15299 # "foo.exe" is OK but "foo" is an error. 15300 # 15301 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15302 # It is also a way to make sure we got the proper file name for the real test later on. 15303 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15304 if test "x$test_shortpath" = x; then 15305 # Short path failed, file does not exist as specified. 15306 # Try adding .exe or .cmd 15307 if test -f "${new_path}.exe"; then 15308 input_to_shortpath="${new_path}.exe" 15309 elif test -f "${new_path}.cmd"; then 15310 input_to_shortpath="${new_path}.cmd" 15311 else 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15313 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15315 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15316 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15317 fi 15318 else 15319 input_to_shortpath="$new_path" 15320 fi 15321 15322 # Call helper function which possibly converts this using DOS-style short mode. 15323 # If so, the updated path is stored in $new_path. 15324 new_path="$input_to_shortpath" 15325 15326 input_path="$input_to_shortpath" 15327 # Check if we need to convert this using DOS-style short mode. If the path 15328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15329 # take no chances and rewrite it. 15330 # Note: m4 eats our [], so we need to use [ and ] instead. 15331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15332 if test "x$has_forbidden_chars" != x; then 15333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15334 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15335 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15336 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15337 # Going to short mode and back again did indeed matter. Since short mode is 15338 # case insensitive, let's make it lowercase to improve readability. 15339 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15340 # Now convert it back to Unix-stile (cygpath) 15341 input_path=`$CYGPATH -u "$shortmode_path"` 15342 new_path="$input_path" 15343 fi 15344 fi 15345 15346 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15347 if test "x$test_cygdrive_prefix" = x; then 15348 # As a simple fix, exclude /usr/bin since it's not a real path. 15349 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15350 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15351 # a path prefixed by /cygdrive for fixpath to work. 15352 new_path="$CYGWIN_ROOT_PATH$input_path" 15353 fi 15354 fi 15355 15356 # remove trailing .exe if any 15357 new_path="${new_path/%.exe/}" 15358 15359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15360 15361 # First separate the path from the arguments. This will split at the first 15362 # space. 15363 complete="$FOUND_MAKE" 15364 path="${complete%% *}" 15365 tmp="$complete EOL" 15366 arguments="${tmp#* }" 15367 15368 # Input might be given as Windows format, start by converting to 15369 # unix format. 15370 new_path="$path" 15371 15372 windows_path="$new_path" 15373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15374 unix_path=`$CYGPATH -u "$windows_path"` 15375 new_path="$unix_path" 15376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15378 new_path="$unix_path" 15379 fi 15380 15381 15382 # Now try to locate executable using which 15383 new_path=`$WHICH "$new_path" 2> /dev/null` 15384 15385 if test "x$new_path" = x; then 15386 # Oops. Which didn't find the executable. 15387 # The splitting of arguments from the executable at a space might have been incorrect, 15388 # since paths with space are more likely in Windows. Give it another try with the whole 15389 # argument. 15390 path="$complete" 15391 arguments="EOL" 15392 new_path="$path" 15393 15394 windows_path="$new_path" 15395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15396 unix_path=`$CYGPATH -u "$windows_path"` 15397 new_path="$unix_path" 15398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15400 new_path="$unix_path" 15401 fi 15402 15403 15404 new_path=`$WHICH "$new_path" 2> /dev/null` 15405 15406 if test "x$new_path" = x; then 15407 # It's still not found. Now this is an unrecoverable error. 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15409 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15410 has_space=`$ECHO "$complete" | $GREP " "` 15411 if test "x$has_space" != x; then 15412 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15413 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15414 fi 15415 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15416 fi 15417 fi 15418 15419 # Now new_path has a complete unix path to the binary 15420 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15421 # Keep paths in /bin as-is, but remove trailing .exe if any 15422 new_path="${new_path/%.exe/}" 15423 # Do not save /bin paths to all_fixpath_prefixes! 15424 else 15425 # Not in mixed or Windows style, start by that. 15426 new_path=`cmd //c echo $new_path` 15427 15428 input_path="$new_path" 15429 # Check if we need to convert this using DOS-style short mode. If the path 15430 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15431 # take no chances and rewrite it. 15432 # Note: m4 eats our [], so we need to use [ and ] instead. 15433 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15434 if test "x$has_forbidden_chars" != x; then 15435 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15436 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15437 fi 15438 15439 # Output is in $new_path 15440 15441 windows_path="$new_path" 15442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15443 unix_path=`$CYGPATH -u "$windows_path"` 15444 new_path="$unix_path" 15445 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15446 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15447 new_path="$unix_path" 15448 fi 15449 15450 # remove trailing .exe if any 15451 new_path="${new_path/%.exe/}" 15452 15453 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15454 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15455 fi 15456 15457 else 15458 # We're on a posix platform. Hooray! :) 15459 # First separate the path from the arguments. This will split at the first 15460 # space. 15461 complete="$FOUND_MAKE" 15462 path="${complete%% *}" 15463 tmp="$complete EOL" 15464 arguments="${tmp#* }" 15465 15466 # Cannot rely on the command "which" here since it doesn't always work. 15467 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15468 if test -z "$is_absolute_path"; then 15469 # Path to executable is not absolute. Find it. 15470 IFS_save="$IFS" 15471 IFS=: 15472 for p in $PATH; do 15473 if test -f "$p/$path" && test -x "$p/$path"; then 15474 new_path="$p/$path" 15475 break 15476 fi 15477 done 15478 IFS="$IFS_save" 15479 else 15480 # This is an absolute path, we can use it without further modifications. 15481 new_path="$path" 15482 fi 15483 15484 if test "x$new_path" = x; then 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15486 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15487 has_space=`$ECHO "$complete" | $GREP " "` 15488 if test "x$has_space" != x; then 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15490 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15491 fi 15492 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15493 fi 15494 fi 15495 15496 # Now join together the path and the arguments once again 15497 if test "x$arguments" != xEOL; then 15498 new_complete="$new_path ${arguments% *}" 15499 else 15500 new_complete="$new_path" 15501 fi 15502 15503 if test "x$complete" != "x$new_complete"; then 15504 FOUND_MAKE="$new_complete" 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15506 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15507 fi 15508 15509 fi 15510 fi 15511 fi 15512 fi 15513 15514 if test "x$FOUND_MAKE" = x; then 15515 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15516 fi 15517 else 15518 # Try our hardest to locate a correct version of GNU make 15519 for ac_prog in gmake 15520 do 15521 # Extract the first word of "$ac_prog", so it can be a program name with args. 15522 set dummy $ac_prog; ac_word=$2 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15524 $as_echo_n "checking for $ac_word... " >&6; } 15525 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15526 $as_echo_n "(cached) " >&6 15527 else 15528 case $CHECK_GMAKE in 15529 [\\/]* | ?:[\\/]*) 15530 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15531 ;; 15532 *) 15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15534 for as_dir in $PATH 15535 do 15536 IFS=$as_save_IFS 15537 test -z "$as_dir" && as_dir=. 15538 for ac_exec_ext in '' $ac_executable_extensions; do 15539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15540 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15542 break 2 15543 fi 15544 done 15545 done 15546 IFS=$as_save_IFS 15547 15548 ;; 15549 esac 15550 fi 15551 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15552 if test -n "$CHECK_GMAKE"; then 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15554 $as_echo "$CHECK_GMAKE" >&6; } 15555 else 15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15557 $as_echo "no" >&6; } 15558 fi 15559 15560 15561 test -n "$CHECK_GMAKE" && break 15562 done 15563 15564 15565 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15566 DESCRIPTION="gmake in PATH" 15567 if test "x$MAKE_CANDIDATE" != x; then 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15569 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15570 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15571 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15572 if test "x$IS_GNU_MAKE" = x; then 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15574 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15575 else 15576 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15577 if test "x$IS_MODERN_MAKE" = x; then 15578 { $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 15579 $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;} 15580 else 15581 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15583 MAKE_EXPECTED_ENV='cygwin' 15584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15585 MAKE_EXPECTED_ENV='msys' 15586 else 15587 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15588 fi 15589 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15590 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15591 else 15592 # Not relevant for non-Windows 15593 IS_MAKE_CORRECT_ENV=true 15594 fi 15595 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15596 { $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 15597 $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;} 15598 else 15599 FOUND_MAKE=$MAKE_CANDIDATE 15600 15601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15602 15603 # First separate the path from the arguments. This will split at the first 15604 # space. 15605 complete="$FOUND_MAKE" 15606 path="${complete%% *}" 15607 tmp="$complete EOL" 15608 arguments="${tmp#* }" 15609 15610 # Input might be given as Windows format, start by converting to 15611 # unix format. 15612 new_path=`$CYGPATH -u "$path"` 15613 15614 # Now try to locate executable using which 15615 new_path=`$WHICH "$new_path" 2> /dev/null` 15616 # bat and cmd files are not always considered executable in cygwin causing which 15617 # to not find them 15618 if test "x$new_path" = x \ 15619 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15620 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15621 new_path=`$CYGPATH -u "$path"` 15622 fi 15623 if test "x$new_path" = x; then 15624 # Oops. Which didn't find the executable. 15625 # The splitting of arguments from the executable at a space might have been incorrect, 15626 # since paths with space are more likely in Windows. Give it another try with the whole 15627 # argument. 15628 path="$complete" 15629 arguments="EOL" 15630 new_path=`$CYGPATH -u "$path"` 15631 new_path=`$WHICH "$new_path" 2> /dev/null` 15632 # bat and cmd files are not always considered executable in cygwin causing which 15633 # to not find them 15634 if test "x$new_path" = x \ 15635 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15636 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15637 new_path=`$CYGPATH -u "$path"` 15638 fi 15639 if test "x$new_path" = x; then 15640 # It's still not found. Now this is an unrecoverable error. 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15642 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15643 has_space=`$ECHO "$complete" | $GREP " "` 15644 if test "x$has_space" != x; then 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15647 fi 15648 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15649 fi 15650 fi 15651 15652 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15653 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15654 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15655 # "foo.exe" is OK but "foo" is an error. 15656 # 15657 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15658 # It is also a way to make sure we got the proper file name for the real test later on. 15659 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15660 if test "x$test_shortpath" = x; then 15661 # Short path failed, file does not exist as specified. 15662 # Try adding .exe or .cmd 15663 if test -f "${new_path}.exe"; then 15664 input_to_shortpath="${new_path}.exe" 15665 elif test -f "${new_path}.cmd"; then 15666 input_to_shortpath="${new_path}.cmd" 15667 else 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15669 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15671 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15672 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15673 fi 15674 else 15675 input_to_shortpath="$new_path" 15676 fi 15677 15678 # Call helper function which possibly converts this using DOS-style short mode. 15679 # If so, the updated path is stored in $new_path. 15680 new_path="$input_to_shortpath" 15681 15682 input_path="$input_to_shortpath" 15683 # Check if we need to convert this using DOS-style short mode. If the path 15684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15685 # take no chances and rewrite it. 15686 # Note: m4 eats our [], so we need to use [ and ] instead. 15687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15688 if test "x$has_forbidden_chars" != x; then 15689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15690 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15691 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15692 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15693 # Going to short mode and back again did indeed matter. Since short mode is 15694 # case insensitive, let's make it lowercase to improve readability. 15695 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15696 # Now convert it back to Unix-stile (cygpath) 15697 input_path=`$CYGPATH -u "$shortmode_path"` 15698 new_path="$input_path" 15699 fi 15700 fi 15701 15702 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15703 if test "x$test_cygdrive_prefix" = x; then 15704 # As a simple fix, exclude /usr/bin since it's not a real path. 15705 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15706 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15707 # a path prefixed by /cygdrive for fixpath to work. 15708 new_path="$CYGWIN_ROOT_PATH$input_path" 15709 fi 15710 fi 15711 15712 # remove trailing .exe if any 15713 new_path="${new_path/%.exe/}" 15714 15715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15716 15717 # First separate the path from the arguments. This will split at the first 15718 # space. 15719 complete="$FOUND_MAKE" 15720 path="${complete%% *}" 15721 tmp="$complete EOL" 15722 arguments="${tmp#* }" 15723 15724 # Input might be given as Windows format, start by converting to 15725 # unix format. 15726 new_path="$path" 15727 15728 windows_path="$new_path" 15729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15730 unix_path=`$CYGPATH -u "$windows_path"` 15731 new_path="$unix_path" 15732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15734 new_path="$unix_path" 15735 fi 15736 15737 15738 # Now try to locate executable using which 15739 new_path=`$WHICH "$new_path" 2> /dev/null` 15740 15741 if test "x$new_path" = x; then 15742 # Oops. Which didn't find the executable. 15743 # The splitting of arguments from the executable at a space might have been incorrect, 15744 # since paths with space are more likely in Windows. Give it another try with the whole 15745 # argument. 15746 path="$complete" 15747 arguments="EOL" 15748 new_path="$path" 15749 15750 windows_path="$new_path" 15751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15752 unix_path=`$CYGPATH -u "$windows_path"` 15753 new_path="$unix_path" 15754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15756 new_path="$unix_path" 15757 fi 15758 15759 15760 new_path=`$WHICH "$new_path" 2> /dev/null` 15761 15762 if test "x$new_path" = x; then 15763 # It's still not found. Now this is an unrecoverable error. 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15765 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15766 has_space=`$ECHO "$complete" | $GREP " "` 15767 if test "x$has_space" != x; then 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15769 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15770 fi 15771 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15772 fi 15773 fi 15774 15775 # Now new_path has a complete unix path to the binary 15776 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15777 # Keep paths in /bin as-is, but remove trailing .exe if any 15778 new_path="${new_path/%.exe/}" 15779 # Do not save /bin paths to all_fixpath_prefixes! 15780 else 15781 # Not in mixed or Windows style, start by that. 15782 new_path=`cmd //c echo $new_path` 15783 15784 input_path="$new_path" 15785 # Check if we need to convert this using DOS-style short mode. If the path 15786 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15787 # take no chances and rewrite it. 15788 # Note: m4 eats our [], so we need to use [ and ] instead. 15789 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15790 if test "x$has_forbidden_chars" != x; then 15791 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15792 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15793 fi 15794 15795 # Output is in $new_path 15796 15797 windows_path="$new_path" 15798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15799 unix_path=`$CYGPATH -u "$windows_path"` 15800 new_path="$unix_path" 15801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15803 new_path="$unix_path" 15804 fi 15805 15806 # remove trailing .exe if any 15807 new_path="${new_path/%.exe/}" 15808 15809 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15810 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15811 fi 15812 15813 else 15814 # We're on a posix platform. Hooray! :) 15815 # First separate the path from the arguments. This will split at the first 15816 # space. 15817 complete="$FOUND_MAKE" 15818 path="${complete%% *}" 15819 tmp="$complete EOL" 15820 arguments="${tmp#* }" 15821 15822 # Cannot rely on the command "which" here since it doesn't always work. 15823 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15824 if test -z "$is_absolute_path"; then 15825 # Path to executable is not absolute. Find it. 15826 IFS_save="$IFS" 15827 IFS=: 15828 for p in $PATH; do 15829 if test -f "$p/$path" && test -x "$p/$path"; then 15830 new_path="$p/$path" 15831 break 15832 fi 15833 done 15834 IFS="$IFS_save" 15835 else 15836 # This is an absolute path, we can use it without further modifications. 15837 new_path="$path" 15838 fi 15839 15840 if test "x$new_path" = x; then 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15842 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15843 has_space=`$ECHO "$complete" | $GREP " "` 15844 if test "x$has_space" != x; then 15845 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15846 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15847 fi 15848 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15849 fi 15850 fi 15851 15852 # Now join together the path and the arguments once again 15853 if test "x$arguments" != xEOL; then 15854 new_complete="$new_path ${arguments% *}" 15855 else 15856 new_complete="$new_path" 15857 fi 15858 15859 if test "x$complete" != "x$new_complete"; then 15860 FOUND_MAKE="$new_complete" 15861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15862 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15863 fi 15864 15865 fi 15866 fi 15867 fi 15868 fi 15869 15870 15871 if test "x$FOUND_MAKE" = x; then 15872 for ac_prog in make 15873 do 15874 # Extract the first word of "$ac_prog", so it can be a program name with args. 15875 set dummy $ac_prog; ac_word=$2 15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15877 $as_echo_n "checking for $ac_word... " >&6; } 15878 if ${ac_cv_path_CHECK_MAKE+:} false; then : 15879 $as_echo_n "(cached) " >&6 15880 else 15881 case $CHECK_MAKE in 15882 [\\/]* | ?:[\\/]*) 15883 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 15884 ;; 15885 *) 15886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15887 for as_dir in $PATH 15888 do 15889 IFS=$as_save_IFS 15890 test -z "$as_dir" && as_dir=. 15891 for ac_exec_ext in '' $ac_executable_extensions; do 15892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15893 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 15894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15895 break 2 15896 fi 15897 done 15898 done 15899 IFS=$as_save_IFS 15900 15901 ;; 15902 esac 15903 fi 15904 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 15905 if test -n "$CHECK_MAKE"; then 15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 15907 $as_echo "$CHECK_MAKE" >&6; } 15908 else 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15910 $as_echo "no" >&6; } 15911 fi 15912 15913 15914 test -n "$CHECK_MAKE" && break 15915 done 15916 15917 15918 MAKE_CANDIDATE=""$CHECK_MAKE"" 15919 DESCRIPTION="make in PATH" 15920 if test "x$MAKE_CANDIDATE" != x; then 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15922 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15923 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15924 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15925 if test "x$IS_GNU_MAKE" = x; then 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15927 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15928 else 15929 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15930 if test "x$IS_MODERN_MAKE" = x; then 15931 { $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 15932 $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;} 15933 else 15934 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15936 MAKE_EXPECTED_ENV='cygwin' 15937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15938 MAKE_EXPECTED_ENV='msys' 15939 else 15940 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15941 fi 15942 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15943 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15944 else 15945 # Not relevant for non-Windows 15946 IS_MAKE_CORRECT_ENV=true 15947 fi 15948 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15949 { $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 15950 $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;} 15951 else 15952 FOUND_MAKE=$MAKE_CANDIDATE 15953 15954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15955 15956 # First separate the path from the arguments. This will split at the first 15957 # space. 15958 complete="$FOUND_MAKE" 15959 path="${complete%% *}" 15960 tmp="$complete EOL" 15961 arguments="${tmp#* }" 15962 15963 # Input might be given as Windows format, start by converting to 15964 # unix format. 15965 new_path=`$CYGPATH -u "$path"` 15966 15967 # Now try to locate executable using which 15968 new_path=`$WHICH "$new_path" 2> /dev/null` 15969 # bat and cmd files are not always considered executable in cygwin causing which 15970 # to not find them 15971 if test "x$new_path" = x \ 15972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15974 new_path=`$CYGPATH -u "$path"` 15975 fi 15976 if test "x$new_path" = x; then 15977 # Oops. Which didn't find the executable. 15978 # The splitting of arguments from the executable at a space might have been incorrect, 15979 # since paths with space are more likely in Windows. Give it another try with the whole 15980 # argument. 15981 path="$complete" 15982 arguments="EOL" 15983 new_path=`$CYGPATH -u "$path"` 15984 new_path=`$WHICH "$new_path" 2> /dev/null` 15985 # bat and cmd files are not always considered executable in cygwin causing which 15986 # to not find them 15987 if test "x$new_path" = x \ 15988 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15989 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15990 new_path=`$CYGPATH -u "$path"` 15991 fi 15992 if test "x$new_path" = x; then 15993 # It's still not found. Now this is an unrecoverable error. 15994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15995 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15996 has_space=`$ECHO "$complete" | $GREP " "` 15997 if test "x$has_space" != x; then 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15999 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16000 fi 16001 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16002 fi 16003 fi 16004 16005 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16006 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16007 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16008 # "foo.exe" is OK but "foo" is an error. 16009 # 16010 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16011 # It is also a way to make sure we got the proper file name for the real test later on. 16012 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16013 if test "x$test_shortpath" = x; then 16014 # Short path failed, file does not exist as specified. 16015 # Try adding .exe or .cmd 16016 if test -f "${new_path}.exe"; then 16017 input_to_shortpath="${new_path}.exe" 16018 elif test -f "${new_path}.cmd"; then 16019 input_to_shortpath="${new_path}.cmd" 16020 else 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16022 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16023 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16024 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16025 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16026 fi 16027 else 16028 input_to_shortpath="$new_path" 16029 fi 16030 16031 # Call helper function which possibly converts this using DOS-style short mode. 16032 # If so, the updated path is stored in $new_path. 16033 new_path="$input_to_shortpath" 16034 16035 input_path="$input_to_shortpath" 16036 # Check if we need to convert this using DOS-style short mode. If the path 16037 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16038 # take no chances and rewrite it. 16039 # Note: m4 eats our [], so we need to use [ and ] instead. 16040 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16041 if test "x$has_forbidden_chars" != x; then 16042 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16043 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16044 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16045 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16046 # Going to short mode and back again did indeed matter. Since short mode is 16047 # case insensitive, let's make it lowercase to improve readability. 16048 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16049 # Now convert it back to Unix-stile (cygpath) 16050 input_path=`$CYGPATH -u "$shortmode_path"` 16051 new_path="$input_path" 16052 fi 16053 fi 16054 16055 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16056 if test "x$test_cygdrive_prefix" = x; then 16057 # As a simple fix, exclude /usr/bin since it's not a real path. 16058 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16059 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16060 # a path prefixed by /cygdrive for fixpath to work. 16061 new_path="$CYGWIN_ROOT_PATH$input_path" 16062 fi 16063 fi 16064 16065 # remove trailing .exe if any 16066 new_path="${new_path/%.exe/}" 16067 16068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16069 16070 # First separate the path from the arguments. This will split at the first 16071 # space. 16072 complete="$FOUND_MAKE" 16073 path="${complete%% *}" 16074 tmp="$complete EOL" 16075 arguments="${tmp#* }" 16076 16077 # Input might be given as Windows format, start by converting to 16078 # unix format. 16079 new_path="$path" 16080 16081 windows_path="$new_path" 16082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16083 unix_path=`$CYGPATH -u "$windows_path"` 16084 new_path="$unix_path" 16085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16087 new_path="$unix_path" 16088 fi 16089 16090 16091 # Now try to locate executable using which 16092 new_path=`$WHICH "$new_path" 2> /dev/null` 16093 16094 if test "x$new_path" = x; then 16095 # Oops. Which didn't find the executable. 16096 # The splitting of arguments from the executable at a space might have been incorrect, 16097 # since paths with space are more likely in Windows. Give it another try with the whole 16098 # argument. 16099 path="$complete" 16100 arguments="EOL" 16101 new_path="$path" 16102 16103 windows_path="$new_path" 16104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16105 unix_path=`$CYGPATH -u "$windows_path"` 16106 new_path="$unix_path" 16107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16108 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16109 new_path="$unix_path" 16110 fi 16111 16112 16113 new_path=`$WHICH "$new_path" 2> /dev/null` 16114 16115 if test "x$new_path" = x; then 16116 # It's still not found. Now this is an unrecoverable error. 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16118 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16119 has_space=`$ECHO "$complete" | $GREP " "` 16120 if test "x$has_space" != x; then 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16122 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16123 fi 16124 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16125 fi 16126 fi 16127 16128 # Now new_path has a complete unix path to the binary 16129 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16130 # Keep paths in /bin as-is, but remove trailing .exe if any 16131 new_path="${new_path/%.exe/}" 16132 # Do not save /bin paths to all_fixpath_prefixes! 16133 else 16134 # Not in mixed or Windows style, start by that. 16135 new_path=`cmd //c echo $new_path` 16136 16137 input_path="$new_path" 16138 # Check if we need to convert this using DOS-style short mode. If the path 16139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16140 # take no chances and rewrite it. 16141 # Note: m4 eats our [], so we need to use [ and ] instead. 16142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16143 if test "x$has_forbidden_chars" != x; then 16144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16145 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16146 fi 16147 16148 # Output is in $new_path 16149 16150 windows_path="$new_path" 16151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16152 unix_path=`$CYGPATH -u "$windows_path"` 16153 new_path="$unix_path" 16154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16155 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16156 new_path="$unix_path" 16157 fi 16158 16159 # remove trailing .exe if any 16160 new_path="${new_path/%.exe/}" 16161 16162 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16163 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16164 fi 16165 16166 else 16167 # We're on a posix platform. Hooray! :) 16168 # First separate the path from the arguments. This will split at the first 16169 # space. 16170 complete="$FOUND_MAKE" 16171 path="${complete%% *}" 16172 tmp="$complete EOL" 16173 arguments="${tmp#* }" 16174 16175 # Cannot rely on the command "which" here since it doesn't always work. 16176 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16177 if test -z "$is_absolute_path"; then 16178 # Path to executable is not absolute. Find it. 16179 IFS_save="$IFS" 16180 IFS=: 16181 for p in $PATH; do 16182 if test -f "$p/$path" && test -x "$p/$path"; then 16183 new_path="$p/$path" 16184 break 16185 fi 16186 done 16187 IFS="$IFS_save" 16188 else 16189 # This is an absolute path, we can use it without further modifications. 16190 new_path="$path" 16191 fi 16192 16193 if test "x$new_path" = x; then 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16195 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16196 has_space=`$ECHO "$complete" | $GREP " "` 16197 if test "x$has_space" != x; then 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16199 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16200 fi 16201 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16202 fi 16203 fi 16204 16205 # Now join together the path and the arguments once again 16206 if test "x$arguments" != xEOL; then 16207 new_complete="$new_path ${arguments% *}" 16208 else 16209 new_complete="$new_path" 16210 fi 16211 16212 if test "x$complete" != "x$new_complete"; then 16213 FOUND_MAKE="$new_complete" 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16215 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16216 fi 16217 16218 fi 16219 fi 16220 fi 16221 fi 16222 16223 fi 16224 16225 if test "x$FOUND_MAKE" = x; then 16226 if test "x$TOOLCHAIN_PATH" != x; then 16227 # We have a toolchain path, check that as well before giving up. 16228 OLD_PATH=$PATH 16229 PATH=$TOOLCHAIN_PATH:$PATH 16230 for ac_prog in gmake 16231 do 16232 # Extract the first word of "$ac_prog", so it can be a program name with args. 16233 set dummy $ac_prog; ac_word=$2 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16235 $as_echo_n "checking for $ac_word... " >&6; } 16236 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16237 $as_echo_n "(cached) " >&6 16238 else 16239 case $CHECK_TOOLSDIR_GMAKE in 16240 [\\/]* | ?:[\\/]*) 16241 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16242 ;; 16243 *) 16244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16245 for as_dir in $PATH 16246 do 16247 IFS=$as_save_IFS 16248 test -z "$as_dir" && as_dir=. 16249 for ac_exec_ext in '' $ac_executable_extensions; do 16250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16251 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16253 break 2 16254 fi 16255 done 16256 done 16257 IFS=$as_save_IFS 16258 16259 ;; 16260 esac 16261 fi 16262 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16263 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16265 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16266 else 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16268 $as_echo "no" >&6; } 16269 fi 16270 16271 16272 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16273 done 16274 16275 16276 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16277 DESCRIPTION="gmake in tools-dir" 16278 if test "x$MAKE_CANDIDATE" != x; then 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16280 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16281 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16282 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16283 if test "x$IS_GNU_MAKE" = x; then 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16285 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16286 else 16287 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16288 if test "x$IS_MODERN_MAKE" = x; then 16289 { $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 16290 $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;} 16291 else 16292 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16294 MAKE_EXPECTED_ENV='cygwin' 16295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16296 MAKE_EXPECTED_ENV='msys' 16297 else 16298 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16299 fi 16300 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16301 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16302 else 16303 # Not relevant for non-Windows 16304 IS_MAKE_CORRECT_ENV=true 16305 fi 16306 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16307 { $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 16308 $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;} 16309 else 16310 FOUND_MAKE=$MAKE_CANDIDATE 16311 16312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16313 16314 # First separate the path from the arguments. This will split at the first 16315 # space. 16316 complete="$FOUND_MAKE" 16317 path="${complete%% *}" 16318 tmp="$complete EOL" 16319 arguments="${tmp#* }" 16320 16321 # Input might be given as Windows format, start by converting to 16322 # unix format. 16323 new_path=`$CYGPATH -u "$path"` 16324 16325 # Now try to locate executable using which 16326 new_path=`$WHICH "$new_path" 2> /dev/null` 16327 # bat and cmd files are not always considered executable in cygwin causing which 16328 # to not find them 16329 if test "x$new_path" = x \ 16330 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16331 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16332 new_path=`$CYGPATH -u "$path"` 16333 fi 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=`$CYGPATH -u "$path"` 16342 new_path=`$WHICH "$new_path" 2> /dev/null` 16343 # bat and cmd files are not always considered executable in cygwin causing which 16344 # to not find them 16345 if test "x$new_path" = x \ 16346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16348 new_path=`$CYGPATH -u "$path"` 16349 fi 16350 if test "x$new_path" = x; then 16351 # It's still not found. Now this is an unrecoverable error. 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16353 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16354 has_space=`$ECHO "$complete" | $GREP " "` 16355 if test "x$has_space" != x; then 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16357 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16358 fi 16359 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16360 fi 16361 fi 16362 16363 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16364 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16365 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16366 # "foo.exe" is OK but "foo" is an error. 16367 # 16368 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16369 # It is also a way to make sure we got the proper file name for the real test later on. 16370 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16371 if test "x$test_shortpath" = x; then 16372 # Short path failed, file does not exist as specified. 16373 # Try adding .exe or .cmd 16374 if test -f "${new_path}.exe"; then 16375 input_to_shortpath="${new_path}.exe" 16376 elif test -f "${new_path}.cmd"; then 16377 input_to_shortpath="${new_path}.cmd" 16378 else 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16380 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16382 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16383 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16384 fi 16385 else 16386 input_to_shortpath="$new_path" 16387 fi 16388 16389 # Call helper function which possibly converts this using DOS-style short mode. 16390 # If so, the updated path is stored in $new_path. 16391 new_path="$input_to_shortpath" 16392 16393 input_path="$input_to_shortpath" 16394 # Check if we need to convert this using DOS-style short mode. If the path 16395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16396 # take no chances and rewrite it. 16397 # Note: m4 eats our [], so we need to use [ and ] instead. 16398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16399 if test "x$has_forbidden_chars" != x; then 16400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16401 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16402 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16403 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16404 # Going to short mode and back again did indeed matter. Since short mode is 16405 # case insensitive, let's make it lowercase to improve readability. 16406 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16407 # Now convert it back to Unix-stile (cygpath) 16408 input_path=`$CYGPATH -u "$shortmode_path"` 16409 new_path="$input_path" 16410 fi 16411 fi 16412 16413 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16414 if test "x$test_cygdrive_prefix" = x; then 16415 # As a simple fix, exclude /usr/bin since it's not a real path. 16416 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16417 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16418 # a path prefixed by /cygdrive for fixpath to work. 16419 new_path="$CYGWIN_ROOT_PATH$input_path" 16420 fi 16421 fi 16422 16423 # remove trailing .exe if any 16424 new_path="${new_path/%.exe/}" 16425 16426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16427 16428 # First separate the path from the arguments. This will split at the first 16429 # space. 16430 complete="$FOUND_MAKE" 16431 path="${complete%% *}" 16432 tmp="$complete EOL" 16433 arguments="${tmp#* }" 16434 16435 # Input might be given as Windows format, start by converting to 16436 # unix format. 16437 new_path="$path" 16438 16439 windows_path="$new_path" 16440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16441 unix_path=`$CYGPATH -u "$windows_path"` 16442 new_path="$unix_path" 16443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16445 new_path="$unix_path" 16446 fi 16447 16448 16449 # Now try to locate executable using which 16450 new_path=`$WHICH "$new_path" 2> /dev/null` 16451 16452 if test "x$new_path" = x; then 16453 # Oops. Which didn't find the executable. 16454 # The splitting of arguments from the executable at a space might have been incorrect, 16455 # since paths with space are more likely in Windows. Give it another try with the whole 16456 # argument. 16457 path="$complete" 16458 arguments="EOL" 16459 new_path="$path" 16460 16461 windows_path="$new_path" 16462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16463 unix_path=`$CYGPATH -u "$windows_path"` 16464 new_path="$unix_path" 16465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16467 new_path="$unix_path" 16468 fi 16469 16470 16471 new_path=`$WHICH "$new_path" 2> /dev/null` 16472 16473 if test "x$new_path" = x; then 16474 # It's still not found. Now this is an unrecoverable error. 16475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16476 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16477 has_space=`$ECHO "$complete" | $GREP " "` 16478 if test "x$has_space" != x; then 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16480 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16481 fi 16482 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16483 fi 16484 fi 16485 16486 # Now new_path has a complete unix path to the binary 16487 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16488 # Keep paths in /bin as-is, but remove trailing .exe if any 16489 new_path="${new_path/%.exe/}" 16490 # Do not save /bin paths to all_fixpath_prefixes! 16491 else 16492 # Not in mixed or Windows style, start by that. 16493 new_path=`cmd //c echo $new_path` 16494 16495 input_path="$new_path" 16496 # Check if we need to convert this using DOS-style short mode. If the path 16497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16498 # take no chances and rewrite it. 16499 # Note: m4 eats our [], so we need to use [ and ] instead. 16500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16501 if test "x$has_forbidden_chars" != x; then 16502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16503 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16504 fi 16505 16506 # Output is in $new_path 16507 16508 windows_path="$new_path" 16509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16510 unix_path=`$CYGPATH -u "$windows_path"` 16511 new_path="$unix_path" 16512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16514 new_path="$unix_path" 16515 fi 16516 16517 # remove trailing .exe if any 16518 new_path="${new_path/%.exe/}" 16519 16520 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16521 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16522 fi 16523 16524 else 16525 # We're on a posix platform. Hooray! :) 16526 # First separate the path from the arguments. This will split at the first 16527 # space. 16528 complete="$FOUND_MAKE" 16529 path="${complete%% *}" 16530 tmp="$complete EOL" 16531 arguments="${tmp#* }" 16532 16533 # Cannot rely on the command "which" here since it doesn't always work. 16534 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16535 if test -z "$is_absolute_path"; then 16536 # Path to executable is not absolute. Find it. 16537 IFS_save="$IFS" 16538 IFS=: 16539 for p in $PATH; do 16540 if test -f "$p/$path" && test -x "$p/$path"; then 16541 new_path="$p/$path" 16542 break 16543 fi 16544 done 16545 IFS="$IFS_save" 16546 else 16547 # This is an absolute path, we can use it without further modifications. 16548 new_path="$path" 16549 fi 16550 16551 if test "x$new_path" = x; then 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16553 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16554 has_space=`$ECHO "$complete" | $GREP " "` 16555 if test "x$has_space" != x; then 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16557 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16558 fi 16559 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16560 fi 16561 fi 16562 16563 # Now join together the path and the arguments once again 16564 if test "x$arguments" != xEOL; then 16565 new_complete="$new_path ${arguments% *}" 16566 else 16567 new_complete="$new_path" 16568 fi 16569 16570 if test "x$complete" != "x$new_complete"; then 16571 FOUND_MAKE="$new_complete" 16572 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16573 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16574 fi 16575 16576 fi 16577 fi 16578 fi 16579 fi 16580 16581 if test "x$FOUND_MAKE" = x; then 16582 for ac_prog in make 16583 do 16584 # Extract the first word of "$ac_prog", so it can be a program name with args. 16585 set dummy $ac_prog; ac_word=$2 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16587 $as_echo_n "checking for $ac_word... " >&6; } 16588 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16589 $as_echo_n "(cached) " >&6 16590 else 16591 case $CHECK_TOOLSDIR_MAKE in 16592 [\\/]* | ?:[\\/]*) 16593 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16594 ;; 16595 *) 16596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16597 for as_dir in $PATH 16598 do 16599 IFS=$as_save_IFS 16600 test -z "$as_dir" && as_dir=. 16601 for ac_exec_ext in '' $ac_executable_extensions; do 16602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16603 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16605 break 2 16606 fi 16607 done 16608 done 16609 IFS=$as_save_IFS 16610 16611 ;; 16612 esac 16613 fi 16614 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16615 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16617 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16618 else 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16620 $as_echo "no" >&6; } 16621 fi 16622 16623 16624 test -n "$CHECK_TOOLSDIR_MAKE" && break 16625 done 16626 16627 16628 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16629 DESCRIPTION="make in tools-dir" 16630 if test "x$MAKE_CANDIDATE" != x; then 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16632 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16633 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16634 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16635 if test "x$IS_GNU_MAKE" = x; then 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16637 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16638 else 16639 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16640 if test "x$IS_MODERN_MAKE" = x; then 16641 { $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 16642 $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;} 16643 else 16644 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16646 MAKE_EXPECTED_ENV='cygwin' 16647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16648 MAKE_EXPECTED_ENV='msys' 16649 else 16650 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16651 fi 16652 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16653 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16654 else 16655 # Not relevant for non-Windows 16656 IS_MAKE_CORRECT_ENV=true 16657 fi 16658 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16659 { $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 16660 $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;} 16661 else 16662 FOUND_MAKE=$MAKE_CANDIDATE 16663 16664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16665 16666 # First separate the path from the arguments. This will split at the first 16667 # space. 16668 complete="$FOUND_MAKE" 16669 path="${complete%% *}" 16670 tmp="$complete EOL" 16671 arguments="${tmp#* }" 16672 16673 # Input might be given as Windows format, start by converting to 16674 # unix format. 16675 new_path=`$CYGPATH -u "$path"` 16676 16677 # Now try to locate executable using which 16678 new_path=`$WHICH "$new_path" 2> /dev/null` 16679 # bat and cmd files are not always considered executable in cygwin causing which 16680 # to not find them 16681 if test "x$new_path" = x \ 16682 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16683 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16684 new_path=`$CYGPATH -u "$path"` 16685 fi 16686 if test "x$new_path" = x; then 16687 # Oops. Which didn't find the executable. 16688 # The splitting of arguments from the executable at a space might have been incorrect, 16689 # since paths with space are more likely in Windows. Give it another try with the whole 16690 # argument. 16691 path="$complete" 16692 arguments="EOL" 16693 new_path=`$CYGPATH -u "$path"` 16694 new_path=`$WHICH "$new_path" 2> /dev/null` 16695 # bat and cmd files are not always considered executable in cygwin causing which 16696 # to not find them 16697 if test "x$new_path" = x \ 16698 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16699 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16700 new_path=`$CYGPATH -u "$path"` 16701 fi 16702 if test "x$new_path" = x; then 16703 # It's still not found. Now this is an unrecoverable error. 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16705 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16706 has_space=`$ECHO "$complete" | $GREP " "` 16707 if test "x$has_space" != x; then 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16710 fi 16711 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16712 fi 16713 fi 16714 16715 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16716 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16717 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16718 # "foo.exe" is OK but "foo" is an error. 16719 # 16720 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16721 # It is also a way to make sure we got the proper file name for the real test later on. 16722 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16723 if test "x$test_shortpath" = x; then 16724 # Short path failed, file does not exist as specified. 16725 # Try adding .exe or .cmd 16726 if test -f "${new_path}.exe"; then 16727 input_to_shortpath="${new_path}.exe" 16728 elif test -f "${new_path}.cmd"; then 16729 input_to_shortpath="${new_path}.cmd" 16730 else 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16732 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16734 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16735 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16736 fi 16737 else 16738 input_to_shortpath="$new_path" 16739 fi 16740 16741 # Call helper function which possibly converts this using DOS-style short mode. 16742 # If so, the updated path is stored in $new_path. 16743 new_path="$input_to_shortpath" 16744 16745 input_path="$input_to_shortpath" 16746 # Check if we need to convert this using DOS-style short mode. If the path 16747 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16748 # take no chances and rewrite it. 16749 # Note: m4 eats our [], so we need to use [ and ] instead. 16750 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16751 if test "x$has_forbidden_chars" != x; then 16752 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16753 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16754 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16755 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16756 # Going to short mode and back again did indeed matter. Since short mode is 16757 # case insensitive, let's make it lowercase to improve readability. 16758 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16759 # Now convert it back to Unix-stile (cygpath) 16760 input_path=`$CYGPATH -u "$shortmode_path"` 16761 new_path="$input_path" 16762 fi 16763 fi 16764 16765 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16766 if test "x$test_cygdrive_prefix" = x; then 16767 # As a simple fix, exclude /usr/bin since it's not a real path. 16768 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16769 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16770 # a path prefixed by /cygdrive for fixpath to work. 16771 new_path="$CYGWIN_ROOT_PATH$input_path" 16772 fi 16773 fi 16774 16775 # remove trailing .exe if any 16776 new_path="${new_path/%.exe/}" 16777 16778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16779 16780 # First separate the path from the arguments. This will split at the first 16781 # space. 16782 complete="$FOUND_MAKE" 16783 path="${complete%% *}" 16784 tmp="$complete EOL" 16785 arguments="${tmp#* }" 16786 16787 # Input might be given as Windows format, start by converting to 16788 # unix format. 16789 new_path="$path" 16790 16791 windows_path="$new_path" 16792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16793 unix_path=`$CYGPATH -u "$windows_path"` 16794 new_path="$unix_path" 16795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16797 new_path="$unix_path" 16798 fi 16799 16800 16801 # Now try to locate executable using which 16802 new_path=`$WHICH "$new_path" 2> /dev/null` 16803 16804 if test "x$new_path" = x; then 16805 # Oops. Which didn't find the executable. 16806 # The splitting of arguments from the executable at a space might have been incorrect, 16807 # since paths with space are more likely in Windows. Give it another try with the whole 16808 # argument. 16809 path="$complete" 16810 arguments="EOL" 16811 new_path="$path" 16812 16813 windows_path="$new_path" 16814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16815 unix_path=`$CYGPATH -u "$windows_path"` 16816 new_path="$unix_path" 16817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16819 new_path="$unix_path" 16820 fi 16821 16822 16823 new_path=`$WHICH "$new_path" 2> /dev/null` 16824 16825 if test "x$new_path" = x; then 16826 # It's still not found. Now this is an unrecoverable error. 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16828 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16829 has_space=`$ECHO "$complete" | $GREP " "` 16830 if test "x$has_space" != x; then 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16832 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16833 fi 16834 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16835 fi 16836 fi 16837 16838 # Now new_path has a complete unix path to the binary 16839 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16840 # Keep paths in /bin as-is, but remove trailing .exe if any 16841 new_path="${new_path/%.exe/}" 16842 # Do not save /bin paths to all_fixpath_prefixes! 16843 else 16844 # Not in mixed or Windows style, start by that. 16845 new_path=`cmd //c echo $new_path` 16846 16847 input_path="$new_path" 16848 # Check if we need to convert this using DOS-style short mode. If the path 16849 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16850 # take no chances and rewrite it. 16851 # Note: m4 eats our [], so we need to use [ and ] instead. 16852 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16853 if test "x$has_forbidden_chars" != x; then 16854 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16855 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16856 fi 16857 16858 # Output is in $new_path 16859 16860 windows_path="$new_path" 16861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16862 unix_path=`$CYGPATH -u "$windows_path"` 16863 new_path="$unix_path" 16864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16865 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16866 new_path="$unix_path" 16867 fi 16868 16869 # remove trailing .exe if any 16870 new_path="${new_path/%.exe/}" 16871 16872 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16873 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16874 fi 16875 16876 else 16877 # We're on a posix platform. Hooray! :) 16878 # First separate the path from the arguments. This will split at the first 16879 # space. 16880 complete="$FOUND_MAKE" 16881 path="${complete%% *}" 16882 tmp="$complete EOL" 16883 arguments="${tmp#* }" 16884 16885 # Cannot rely on the command "which" here since it doesn't always work. 16886 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16887 if test -z "$is_absolute_path"; then 16888 # Path to executable is not absolute. Find it. 16889 IFS_save="$IFS" 16890 IFS=: 16891 for p in $PATH; do 16892 if test -f "$p/$path" && test -x "$p/$path"; then 16893 new_path="$p/$path" 16894 break 16895 fi 16896 done 16897 IFS="$IFS_save" 16898 else 16899 # This is an absolute path, we can use it without further modifications. 16900 new_path="$path" 16901 fi 16902 16903 if test "x$new_path" = x; then 16904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16905 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16906 has_space=`$ECHO "$complete" | $GREP " "` 16907 if test "x$has_space" != x; then 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16909 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16910 fi 16911 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16912 fi 16913 fi 16914 16915 # Now join together the path and the arguments once again 16916 if test "x$arguments" != xEOL; then 16917 new_complete="$new_path ${arguments% *}" 16918 else 16919 new_complete="$new_path" 16920 fi 16921 16922 if test "x$complete" != "x$new_complete"; then 16923 FOUND_MAKE="$new_complete" 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16925 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16926 fi 16927 16928 fi 16929 fi 16930 fi 16931 fi 16932 16933 fi 16934 PATH=$OLD_PATH 16935 fi 16936 fi 16937 16938 if test "x$FOUND_MAKE" = x; then 16939 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 16940 fi 16941 fi 16942 16943 MAKE=$FOUND_MAKE 16944 16945 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 16946 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 16947 16948 16949 16950 # Test if find supports -delete 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 16952 $as_echo_n "checking if find supports -delete... " >&6; } 16953 FIND_DELETE="-delete" 16954 16955 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 16956 16957 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 16958 16959 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 16960 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 16961 # No, it does not. 16962 rm $DELETEDIR/TestIfFindSupportsDelete 16963 FIND_DELETE="-exec rm \{\} \+" 16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16965 $as_echo "no" >&6; } 16966 else 16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16968 $as_echo "yes" >&6; } 16969 fi 16970 rmdir $DELETEDIR 16971 16972 16973 16974 # These tools might not be installed by default, 16975 # need hint on how to install them. 16976 16977 16978 16979 # Publish this variable in the help. 16980 16981 16982 if test "x$UNZIP" = x; then 16983 # The variable is not set by user, try to locate tool using the code snippet 16984 for ac_prog in unzip 16985 do 16986 # Extract the first word of "$ac_prog", so it can be a program name with args. 16987 set dummy $ac_prog; ac_word=$2 16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16989 $as_echo_n "checking for $ac_word... " >&6; } 16990 if ${ac_cv_path_UNZIP+:} false; then : 16991 $as_echo_n "(cached) " >&6 16992 else 16993 case $UNZIP in 16994 [\\/]* | ?:[\\/]*) 16995 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16996 ;; 16997 *) 16998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16999 for as_dir in $PATH 17000 do 17001 IFS=$as_save_IFS 17002 test -z "$as_dir" && as_dir=. 17003 for ac_exec_ext in '' $ac_executable_extensions; do 17004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17005 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17007 break 2 17008 fi 17009 done 17010 done 17011 IFS=$as_save_IFS 17012 17013 ;; 17014 esac 17015 fi 17016 UNZIP=$ac_cv_path_UNZIP 17017 if test -n "$UNZIP"; then 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17019 $as_echo "$UNZIP" >&6; } 17020 else 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17022 $as_echo "no" >&6; } 17023 fi 17024 17025 17026 test -n "$UNZIP" && break 17027 done 17028 17029 else 17030 # The variable is set, but is it from the command line or the environment? 17031 17032 # Try to remove the string !UNZIP! from our list. 17033 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17034 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17035 # If it failed, the variable was not from the command line. Ignore it, 17036 # but warn the user (except for BASH, which is always set by the calling BASH). 17037 if test "xUNZIP" != xBASH; then 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17039 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17040 fi 17041 # Try to locate tool using the code snippet 17042 for ac_prog in unzip 17043 do 17044 # Extract the first word of "$ac_prog", so it can be a program name with args. 17045 set dummy $ac_prog; ac_word=$2 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17047 $as_echo_n "checking for $ac_word... " >&6; } 17048 if ${ac_cv_path_UNZIP+:} false; then : 17049 $as_echo_n "(cached) " >&6 17050 else 17051 case $UNZIP in 17052 [\\/]* | ?:[\\/]*) 17053 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17054 ;; 17055 *) 17056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17057 for as_dir in $PATH 17058 do 17059 IFS=$as_save_IFS 17060 test -z "$as_dir" && as_dir=. 17061 for ac_exec_ext in '' $ac_executable_extensions; do 17062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17063 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17065 break 2 17066 fi 17067 done 17068 done 17069 IFS=$as_save_IFS 17070 17071 ;; 17072 esac 17073 fi 17074 UNZIP=$ac_cv_path_UNZIP 17075 if test -n "$UNZIP"; then 17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17077 $as_echo "$UNZIP" >&6; } 17078 else 17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17080 $as_echo "no" >&6; } 17081 fi 17082 17083 17084 test -n "$UNZIP" && break 17085 done 17086 17087 else 17088 # If it succeeded, then it was overridden by the user. We will use it 17089 # for the tool. 17090 17091 # First remove it from the list of overridden variables, so we can test 17092 # for unknown variables in the end. 17093 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17094 17095 # Check if the provided tool contains a complete path. 17096 tool_specified="$UNZIP" 17097 tool_basename="${tool_specified##*/}" 17098 if test "x$tool_basename" = "x$tool_specified"; then 17099 # A command without a complete path is provided, search $PATH. 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17101 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17102 # Extract the first word of "$tool_basename", so it can be a program name with args. 17103 set dummy $tool_basename; ac_word=$2 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17105 $as_echo_n "checking for $ac_word... " >&6; } 17106 if ${ac_cv_path_UNZIP+:} false; then : 17107 $as_echo_n "(cached) " >&6 17108 else 17109 case $UNZIP in 17110 [\\/]* | ?:[\\/]*) 17111 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17112 ;; 17113 *) 17114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17115 for as_dir in $PATH 17116 do 17117 IFS=$as_save_IFS 17118 test -z "$as_dir" && as_dir=. 17119 for ac_exec_ext in '' $ac_executable_extensions; do 17120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17121 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17123 break 2 17124 fi 17125 done 17126 done 17127 IFS=$as_save_IFS 17128 17129 ;; 17130 esac 17131 fi 17132 UNZIP=$ac_cv_path_UNZIP 17133 if test -n "$UNZIP"; then 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17135 $as_echo "$UNZIP" >&6; } 17136 else 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17138 $as_echo "no" >&6; } 17139 fi 17140 17141 17142 if test "x$UNZIP" = x; then 17143 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17144 fi 17145 else 17146 # Otherwise we believe it is a complete path. Use it as it is. 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17148 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17150 $as_echo_n "checking for UNZIP... " >&6; } 17151 if test ! -x "$tool_specified"; then 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17153 $as_echo "not found" >&6; } 17154 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17155 fi 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17157 $as_echo "$tool_specified" >&6; } 17158 fi 17159 fi 17160 fi 17161 17162 17163 17164 if test "x$UNZIP" = x; then 17165 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17166 fi 17167 17168 17169 17170 17171 17172 # Publish this variable in the help. 17173 17174 17175 if test "x$ZIP" = x; then 17176 # The variable is not set by user, try to locate tool using the code snippet 17177 for ac_prog in zip 17178 do 17179 # Extract the first word of "$ac_prog", so it can be a program name with args. 17180 set dummy $ac_prog; ac_word=$2 17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17182 $as_echo_n "checking for $ac_word... " >&6; } 17183 if ${ac_cv_path_ZIP+:} false; then : 17184 $as_echo_n "(cached) " >&6 17185 else 17186 case $ZIP in 17187 [\\/]* | ?:[\\/]*) 17188 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17189 ;; 17190 *) 17191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17192 for as_dir in $PATH 17193 do 17194 IFS=$as_save_IFS 17195 test -z "$as_dir" && as_dir=. 17196 for ac_exec_ext in '' $ac_executable_extensions; do 17197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17198 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17200 break 2 17201 fi 17202 done 17203 done 17204 IFS=$as_save_IFS 17205 17206 ;; 17207 esac 17208 fi 17209 ZIP=$ac_cv_path_ZIP 17210 if test -n "$ZIP"; then 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17212 $as_echo "$ZIP" >&6; } 17213 else 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17215 $as_echo "no" >&6; } 17216 fi 17217 17218 17219 test -n "$ZIP" && break 17220 done 17221 17222 else 17223 # The variable is set, but is it from the command line or the environment? 17224 17225 # Try to remove the string !ZIP! from our list. 17226 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17227 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17228 # If it failed, the variable was not from the command line. Ignore it, 17229 # but warn the user (except for BASH, which is always set by the calling BASH). 17230 if test "xZIP" != xBASH; then 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17232 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17233 fi 17234 # Try to locate tool using the code snippet 17235 for ac_prog in zip 17236 do 17237 # Extract the first word of "$ac_prog", so it can be a program name with args. 17238 set dummy $ac_prog; ac_word=$2 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17240 $as_echo_n "checking for $ac_word... " >&6; } 17241 if ${ac_cv_path_ZIP+:} false; then : 17242 $as_echo_n "(cached) " >&6 17243 else 17244 case $ZIP in 17245 [\\/]* | ?:[\\/]*) 17246 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17247 ;; 17248 *) 17249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17250 for as_dir in $PATH 17251 do 17252 IFS=$as_save_IFS 17253 test -z "$as_dir" && as_dir=. 17254 for ac_exec_ext in '' $ac_executable_extensions; do 17255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17256 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17258 break 2 17259 fi 17260 done 17261 done 17262 IFS=$as_save_IFS 17263 17264 ;; 17265 esac 17266 fi 17267 ZIP=$ac_cv_path_ZIP 17268 if test -n "$ZIP"; then 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17270 $as_echo "$ZIP" >&6; } 17271 else 17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17273 $as_echo "no" >&6; } 17274 fi 17275 17276 17277 test -n "$ZIP" && break 17278 done 17279 17280 else 17281 # If it succeeded, then it was overridden by the user. We will use it 17282 # for the tool. 17283 17284 # First remove it from the list of overridden variables, so we can test 17285 # for unknown variables in the end. 17286 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17287 17288 # Check if the provided tool contains a complete path. 17289 tool_specified="$ZIP" 17290 tool_basename="${tool_specified##*/}" 17291 if test "x$tool_basename" = "x$tool_specified"; then 17292 # A command without a complete path is provided, search $PATH. 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17294 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17295 # Extract the first word of "$tool_basename", so it can be a program name with args. 17296 set dummy $tool_basename; ac_word=$2 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17298 $as_echo_n "checking for $ac_word... " >&6; } 17299 if ${ac_cv_path_ZIP+:} false; then : 17300 $as_echo_n "(cached) " >&6 17301 else 17302 case $ZIP in 17303 [\\/]* | ?:[\\/]*) 17304 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17305 ;; 17306 *) 17307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17308 for as_dir in $PATH 17309 do 17310 IFS=$as_save_IFS 17311 test -z "$as_dir" && as_dir=. 17312 for ac_exec_ext in '' $ac_executable_extensions; do 17313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17314 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17316 break 2 17317 fi 17318 done 17319 done 17320 IFS=$as_save_IFS 17321 17322 ;; 17323 esac 17324 fi 17325 ZIP=$ac_cv_path_ZIP 17326 if test -n "$ZIP"; then 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17328 $as_echo "$ZIP" >&6; } 17329 else 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17331 $as_echo "no" >&6; } 17332 fi 17333 17334 17335 if test "x$ZIP" = x; then 17336 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17337 fi 17338 else 17339 # Otherwise we believe it is a complete path. Use it as it is. 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17341 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17343 $as_echo_n "checking for ZIP... " >&6; } 17344 if test ! -x "$tool_specified"; then 17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17346 $as_echo "not found" >&6; } 17347 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17348 fi 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17350 $as_echo "$tool_specified" >&6; } 17351 fi 17352 fi 17353 fi 17354 17355 17356 17357 if test "x$ZIP" = x; then 17358 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17359 fi 17360 17361 17362 17363 # Non-required basic tools 17364 17365 17366 17367 # Publish this variable in the help. 17368 17369 17370 if test "x$LDD" = x; then 17371 # The variable is not set by user, try to locate tool using the code snippet 17372 for ac_prog in ldd 17373 do 17374 # Extract the first word of "$ac_prog", so it can be a program name with args. 17375 set dummy $ac_prog; ac_word=$2 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17377 $as_echo_n "checking for $ac_word... " >&6; } 17378 if ${ac_cv_path_LDD+:} false; then : 17379 $as_echo_n "(cached) " >&6 17380 else 17381 case $LDD in 17382 [\\/]* | ?:[\\/]*) 17383 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17384 ;; 17385 *) 17386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17387 for as_dir in $PATH 17388 do 17389 IFS=$as_save_IFS 17390 test -z "$as_dir" && as_dir=. 17391 for ac_exec_ext in '' $ac_executable_extensions; do 17392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17393 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17395 break 2 17396 fi 17397 done 17398 done 17399 IFS=$as_save_IFS 17400 17401 ;; 17402 esac 17403 fi 17404 LDD=$ac_cv_path_LDD 17405 if test -n "$LDD"; then 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17407 $as_echo "$LDD" >&6; } 17408 else 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17410 $as_echo "no" >&6; } 17411 fi 17412 17413 17414 test -n "$LDD" && break 17415 done 17416 17417 else 17418 # The variable is set, but is it from the command line or the environment? 17419 17420 # Try to remove the string !LDD! from our list. 17421 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17422 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17423 # If it failed, the variable was not from the command line. Ignore it, 17424 # but warn the user (except for BASH, which is always set by the calling BASH). 17425 if test "xLDD" != xBASH; then 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17427 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17428 fi 17429 # Try to locate tool using the code snippet 17430 for ac_prog in ldd 17431 do 17432 # Extract the first word of "$ac_prog", so it can be a program name with args. 17433 set dummy $ac_prog; ac_word=$2 17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17435 $as_echo_n "checking for $ac_word... " >&6; } 17436 if ${ac_cv_path_LDD+:} false; then : 17437 $as_echo_n "(cached) " >&6 17438 else 17439 case $LDD in 17440 [\\/]* | ?:[\\/]*) 17441 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17442 ;; 17443 *) 17444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17445 for as_dir in $PATH 17446 do 17447 IFS=$as_save_IFS 17448 test -z "$as_dir" && as_dir=. 17449 for ac_exec_ext in '' $ac_executable_extensions; do 17450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17451 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17453 break 2 17454 fi 17455 done 17456 done 17457 IFS=$as_save_IFS 17458 17459 ;; 17460 esac 17461 fi 17462 LDD=$ac_cv_path_LDD 17463 if test -n "$LDD"; then 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17465 $as_echo "$LDD" >&6; } 17466 else 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17468 $as_echo "no" >&6; } 17469 fi 17470 17471 17472 test -n "$LDD" && break 17473 done 17474 17475 else 17476 # If it succeeded, then it was overridden by the user. We will use it 17477 # for the tool. 17478 17479 # First remove it from the list of overridden variables, so we can test 17480 # for unknown variables in the end. 17481 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17482 17483 # Check if the provided tool contains a complete path. 17484 tool_specified="$LDD" 17485 tool_basename="${tool_specified##*/}" 17486 if test "x$tool_basename" = "x$tool_specified"; then 17487 # A command without a complete path is provided, search $PATH. 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17489 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17490 # Extract the first word of "$tool_basename", so it can be a program name with args. 17491 set dummy $tool_basename; ac_word=$2 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17493 $as_echo_n "checking for $ac_word... " >&6; } 17494 if ${ac_cv_path_LDD+:} false; then : 17495 $as_echo_n "(cached) " >&6 17496 else 17497 case $LDD in 17498 [\\/]* | ?:[\\/]*) 17499 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17500 ;; 17501 *) 17502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17503 for as_dir in $PATH 17504 do 17505 IFS=$as_save_IFS 17506 test -z "$as_dir" && as_dir=. 17507 for ac_exec_ext in '' $ac_executable_extensions; do 17508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17509 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17511 break 2 17512 fi 17513 done 17514 done 17515 IFS=$as_save_IFS 17516 17517 ;; 17518 esac 17519 fi 17520 LDD=$ac_cv_path_LDD 17521 if test -n "$LDD"; then 17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17523 $as_echo "$LDD" >&6; } 17524 else 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17526 $as_echo "no" >&6; } 17527 fi 17528 17529 17530 if test "x$LDD" = x; then 17531 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17532 fi 17533 else 17534 # Otherwise we believe it is a complete path. Use it as it is. 17535 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17536 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17538 $as_echo_n "checking for LDD... " >&6; } 17539 if test ! -x "$tool_specified"; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17541 $as_echo "not found" >&6; } 17542 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17543 fi 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17545 $as_echo "$tool_specified" >&6; } 17546 fi 17547 fi 17548 fi 17549 17550 17551 if test "x$LDD" = "x"; then 17552 # List shared lib dependencies is used for 17553 # debug output and checking for forbidden dependencies. 17554 # We can build without it. 17555 LDD="true" 17556 fi 17557 17558 17559 # Publish this variable in the help. 17560 17561 17562 if test "x$OTOOL" = x; then 17563 # The variable is not set by user, try to locate tool using the code snippet 17564 for ac_prog in otool 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_OTOOL+:} false; then : 17571 $as_echo_n "(cached) " >&6 17572 else 17573 case $OTOOL in 17574 [\\/]* | ?:[\\/]*) 17575 ac_cv_path_OTOOL="$OTOOL" # 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_OTOOL="$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 OTOOL=$ac_cv_path_OTOOL 17597 if test -n "$OTOOL"; then 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17599 $as_echo "$OTOOL" >&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 "$OTOOL" && break 17607 done 17608 17609 else 17610 # The variable is set, but is it from the command line or the environment? 17611 17612 # Try to remove the string !OTOOL! from our list. 17613 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17614 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17615 # If it failed, the variable was not from the command line. Ignore it, 17616 # but warn the user (except for BASH, which is always set by the calling BASH). 17617 if test "xOTOOL" != xBASH; then 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17619 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17620 fi 17621 # Try to locate tool using the code snippet 17622 for ac_prog in otool 17623 do 17624 # Extract the first word of "$ac_prog", so it can be a program name with args. 17625 set dummy $ac_prog; 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_OTOOL+:} false; then : 17629 $as_echo_n "(cached) " >&6 17630 else 17631 case $OTOOL in 17632 [\\/]* | ?:[\\/]*) 17633 ac_cv_path_OTOOL="$OTOOL" # 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_OTOOL="$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 OTOOL=$ac_cv_path_OTOOL 17655 if test -n "$OTOOL"; then 17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17657 $as_echo "$OTOOL" >&6; } 17658 else 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17660 $as_echo "no" >&6; } 17661 fi 17662 17663 17664 test -n "$OTOOL" && break 17665 done 17666 17667 else 17668 # If it succeeded, then it was overridden by the user. We will use it 17669 # for the tool. 17670 17671 # First remove it from the list of overridden variables, so we can test 17672 # for unknown variables in the end. 17673 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17674 17675 # Check if the provided tool contains a complete path. 17676 tool_specified="$OTOOL" 17677 tool_basename="${tool_specified##*/}" 17678 if test "x$tool_basename" = "x$tool_specified"; then 17679 # A command without a complete path is provided, search $PATH. 17680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 17681 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 17682 # Extract the first word of "$tool_basename", so it can be a program name with args. 17683 set dummy $tool_basename; ac_word=$2 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17685 $as_echo_n "checking for $ac_word... " >&6; } 17686 if ${ac_cv_path_OTOOL+:} false; then : 17687 $as_echo_n "(cached) " >&6 17688 else 17689 case $OTOOL in 17690 [\\/]* | ?:[\\/]*) 17691 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17692 ;; 17693 *) 17694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17695 for as_dir in $PATH 17696 do 17697 IFS=$as_save_IFS 17698 test -z "$as_dir" && as_dir=. 17699 for ac_exec_ext in '' $ac_executable_extensions; do 17700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17701 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17703 break 2 17704 fi 17705 done 17706 done 17707 IFS=$as_save_IFS 17708 17709 ;; 17710 esac 17711 fi 17712 OTOOL=$ac_cv_path_OTOOL 17713 if test -n "$OTOOL"; then 17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17715 $as_echo "$OTOOL" >&6; } 17716 else 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17718 $as_echo "no" >&6; } 17719 fi 17720 17721 17722 if test "x$OTOOL" = x; then 17723 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17724 fi 17725 else 17726 # Otherwise we believe it is a complete path. Use it as it is. 17727 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 17728 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 17730 $as_echo_n "checking for OTOOL... " >&6; } 17731 if test ! -x "$tool_specified"; then 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17733 $as_echo "not found" >&6; } 17734 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 17735 fi 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17737 $as_echo "$tool_specified" >&6; } 17738 fi 17739 fi 17740 fi 17741 17742 17743 if test "x$OTOOL" = "x"; then 17744 OTOOL="true" 17745 fi 17746 17747 17748 # Publish this variable in the help. 17749 17750 17751 if test "x$READELF" = x; then 17752 # The variable is not set by user, try to locate tool using the code snippet 17753 for ac_prog in greadelf readelf 17754 do 17755 # Extract the first word of "$ac_prog", so it can be a program name with args. 17756 set dummy $ac_prog; ac_word=$2 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17758 $as_echo_n "checking for $ac_word... " >&6; } 17759 if ${ac_cv_path_READELF+:} false; then : 17760 $as_echo_n "(cached) " >&6 17761 else 17762 case $READELF in 17763 [\\/]* | ?:[\\/]*) 17764 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17765 ;; 17766 *) 17767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17768 for as_dir in $PATH 17769 do 17770 IFS=$as_save_IFS 17771 test -z "$as_dir" && as_dir=. 17772 for ac_exec_ext in '' $ac_executable_extensions; do 17773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17774 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17776 break 2 17777 fi 17778 done 17779 done 17780 IFS=$as_save_IFS 17781 17782 ;; 17783 esac 17784 fi 17785 READELF=$ac_cv_path_READELF 17786 if test -n "$READELF"; then 17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17788 $as_echo "$READELF" >&6; } 17789 else 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17791 $as_echo "no" >&6; } 17792 fi 17793 17794 17795 test -n "$READELF" && break 17796 done 17797 17798 else 17799 # The variable is set, but is it from the command line or the environment? 17800 17801 # Try to remove the string !READELF! from our list. 17802 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17803 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17804 # If it failed, the variable was not from the command line. Ignore it, 17805 # but warn the user (except for BASH, which is always set by the calling BASH). 17806 if test "xREADELF" != xBASH; then 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17808 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17809 fi 17810 # Try to locate tool using the code snippet 17811 for ac_prog in greadelf readelf 17812 do 17813 # Extract the first word of "$ac_prog", so it can be a program name with args. 17814 set dummy $ac_prog; ac_word=$2 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17816 $as_echo_n "checking for $ac_word... " >&6; } 17817 if ${ac_cv_path_READELF+:} false; then : 17818 $as_echo_n "(cached) " >&6 17819 else 17820 case $READELF in 17821 [\\/]* | ?:[\\/]*) 17822 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17823 ;; 17824 *) 17825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17826 for as_dir in $PATH 17827 do 17828 IFS=$as_save_IFS 17829 test -z "$as_dir" && as_dir=. 17830 for ac_exec_ext in '' $ac_executable_extensions; do 17831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17832 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17834 break 2 17835 fi 17836 done 17837 done 17838 IFS=$as_save_IFS 17839 17840 ;; 17841 esac 17842 fi 17843 READELF=$ac_cv_path_READELF 17844 if test -n "$READELF"; then 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17846 $as_echo "$READELF" >&6; } 17847 else 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17849 $as_echo "no" >&6; } 17850 fi 17851 17852 17853 test -n "$READELF" && break 17854 done 17855 17856 else 17857 # If it succeeded, then it was overridden by the user. We will use it 17858 # for the tool. 17859 17860 # First remove it from the list of overridden variables, so we can test 17861 # for unknown variables in the end. 17862 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17863 17864 # Check if the provided tool contains a complete path. 17865 tool_specified="$READELF" 17866 tool_basename="${tool_specified##*/}" 17867 if test "x$tool_basename" = "x$tool_specified"; then 17868 # A command without a complete path is provided, search $PATH. 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17870 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17871 # Extract the first word of "$tool_basename", so it can be a program name with args. 17872 set dummy $tool_basename; ac_word=$2 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17874 $as_echo_n "checking for $ac_word... " >&6; } 17875 if ${ac_cv_path_READELF+:} false; then : 17876 $as_echo_n "(cached) " >&6 17877 else 17878 case $READELF in 17879 [\\/]* | ?:[\\/]*) 17880 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17881 ;; 17882 *) 17883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17884 for as_dir in $PATH 17885 do 17886 IFS=$as_save_IFS 17887 test -z "$as_dir" && as_dir=. 17888 for ac_exec_ext in '' $ac_executable_extensions; do 17889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17890 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17892 break 2 17893 fi 17894 done 17895 done 17896 IFS=$as_save_IFS 17897 17898 ;; 17899 esac 17900 fi 17901 READELF=$ac_cv_path_READELF 17902 if test -n "$READELF"; then 17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17904 $as_echo "$READELF" >&6; } 17905 else 17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17907 $as_echo "no" >&6; } 17908 fi 17909 17910 17911 if test "x$READELF" = x; then 17912 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17913 fi 17914 else 17915 # Otherwise we believe it is a complete path. Use it as it is. 17916 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17917 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 17919 $as_echo_n "checking for READELF... " >&6; } 17920 if test ! -x "$tool_specified"; then 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17922 $as_echo "not found" >&6; } 17923 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 17924 fi 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17926 $as_echo "$tool_specified" >&6; } 17927 fi 17928 fi 17929 fi 17930 17931 17932 17933 17934 # Publish this variable in the help. 17935 17936 17937 if test "x$HG" = x; then 17938 # The variable is not set by user, try to locate tool using the code snippet 17939 for ac_prog in hg 17940 do 17941 # Extract the first word of "$ac_prog", so it can be a program name with args. 17942 set dummy $ac_prog; ac_word=$2 17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17944 $as_echo_n "checking for $ac_word... " >&6; } 17945 if ${ac_cv_path_HG+:} false; then : 17946 $as_echo_n "(cached) " >&6 17947 else 17948 case $HG in 17949 [\\/]* | ?:[\\/]*) 17950 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17951 ;; 17952 *) 17953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17954 for as_dir in $PATH 17955 do 17956 IFS=$as_save_IFS 17957 test -z "$as_dir" && as_dir=. 17958 for ac_exec_ext in '' $ac_executable_extensions; do 17959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17960 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17962 break 2 17963 fi 17964 done 17965 done 17966 IFS=$as_save_IFS 17967 17968 ;; 17969 esac 17970 fi 17971 HG=$ac_cv_path_HG 17972 if test -n "$HG"; then 17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17974 $as_echo "$HG" >&6; } 17975 else 17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17977 $as_echo "no" >&6; } 17978 fi 17979 17980 17981 test -n "$HG" && break 17982 done 17983 17984 else 17985 # The variable is set, but is it from the command line or the environment? 17986 17987 # Try to remove the string !HG! from our list. 17988 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 17989 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17990 # If it failed, the variable was not from the command line. Ignore it, 17991 # but warn the user (except for BASH, which is always set by the calling BASH). 17992 if test "xHG" != xBASH; then 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 17994 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 17995 fi 17996 # Try to locate tool using the code snippet 17997 for ac_prog in hg 17998 do 17999 # Extract the first word of "$ac_prog", so it can be a program name with args. 18000 set dummy $ac_prog; ac_word=$2 18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18002 $as_echo_n "checking for $ac_word... " >&6; } 18003 if ${ac_cv_path_HG+:} false; then : 18004 $as_echo_n "(cached) " >&6 18005 else 18006 case $HG in 18007 [\\/]* | ?:[\\/]*) 18008 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18009 ;; 18010 *) 18011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18012 for as_dir in $PATH 18013 do 18014 IFS=$as_save_IFS 18015 test -z "$as_dir" && as_dir=. 18016 for ac_exec_ext in '' $ac_executable_extensions; do 18017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18018 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18020 break 2 18021 fi 18022 done 18023 done 18024 IFS=$as_save_IFS 18025 18026 ;; 18027 esac 18028 fi 18029 HG=$ac_cv_path_HG 18030 if test -n "$HG"; then 18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18032 $as_echo "$HG" >&6; } 18033 else 18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18035 $as_echo "no" >&6; } 18036 fi 18037 18038 18039 test -n "$HG" && break 18040 done 18041 18042 else 18043 # If it succeeded, then it was overridden by the user. We will use it 18044 # for the tool. 18045 18046 # First remove it from the list of overridden variables, so we can test 18047 # for unknown variables in the end. 18048 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18049 18050 # Check if the provided tool contains a complete path. 18051 tool_specified="$HG" 18052 tool_basename="${tool_specified##*/}" 18053 if test "x$tool_basename" = "x$tool_specified"; then 18054 # A command without a complete path is provided, search $PATH. 18055 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18056 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18057 # Extract the first word of "$tool_basename", so it can be a program name with args. 18058 set dummy $tool_basename; ac_word=$2 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18060 $as_echo_n "checking for $ac_word... " >&6; } 18061 if ${ac_cv_path_HG+:} false; then : 18062 $as_echo_n "(cached) " >&6 18063 else 18064 case $HG in 18065 [\\/]* | ?:[\\/]*) 18066 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18067 ;; 18068 *) 18069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18070 for as_dir in $PATH 18071 do 18072 IFS=$as_save_IFS 18073 test -z "$as_dir" && as_dir=. 18074 for ac_exec_ext in '' $ac_executable_extensions; do 18075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18076 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18078 break 2 18079 fi 18080 done 18081 done 18082 IFS=$as_save_IFS 18083 18084 ;; 18085 esac 18086 fi 18087 HG=$ac_cv_path_HG 18088 if test -n "$HG"; then 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18090 $as_echo "$HG" >&6; } 18091 else 18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18093 $as_echo "no" >&6; } 18094 fi 18095 18096 18097 if test "x$HG" = x; then 18098 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18099 fi 18100 else 18101 # Otherwise we believe it is a complete path. Use it as it is. 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18103 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18105 $as_echo_n "checking for HG... " >&6; } 18106 if test ! -x "$tool_specified"; then 18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18108 $as_echo "not found" >&6; } 18109 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18110 fi 18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18112 $as_echo "$tool_specified" >&6; } 18113 fi 18114 fi 18115 fi 18116 18117 18118 18119 18120 # Publish this variable in the help. 18121 18122 18123 if test "x$STAT" = x; then 18124 # The variable is not set by user, try to locate tool using the code snippet 18125 for ac_prog in stat 18126 do 18127 # Extract the first word of "$ac_prog", so it can be a program name with args. 18128 set dummy $ac_prog; ac_word=$2 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18130 $as_echo_n "checking for $ac_word... " >&6; } 18131 if ${ac_cv_path_STAT+:} false; then : 18132 $as_echo_n "(cached) " >&6 18133 else 18134 case $STAT in 18135 [\\/]* | ?:[\\/]*) 18136 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18137 ;; 18138 *) 18139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18140 for as_dir in $PATH 18141 do 18142 IFS=$as_save_IFS 18143 test -z "$as_dir" && as_dir=. 18144 for ac_exec_ext in '' $ac_executable_extensions; do 18145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18146 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18148 break 2 18149 fi 18150 done 18151 done 18152 IFS=$as_save_IFS 18153 18154 ;; 18155 esac 18156 fi 18157 STAT=$ac_cv_path_STAT 18158 if test -n "$STAT"; then 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18160 $as_echo "$STAT" >&6; } 18161 else 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18163 $as_echo "no" >&6; } 18164 fi 18165 18166 18167 test -n "$STAT" && break 18168 done 18169 18170 else 18171 # The variable is set, but is it from the command line or the environment? 18172 18173 # Try to remove the string !STAT! from our list. 18174 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18175 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18176 # If it failed, the variable was not from the command line. Ignore it, 18177 # but warn the user (except for BASH, which is always set by the calling BASH). 18178 if test "xSTAT" != xBASH; then 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18180 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18181 fi 18182 # Try to locate tool using the code snippet 18183 for ac_prog in stat 18184 do 18185 # Extract the first word of "$ac_prog", so it can be a program name with args. 18186 set dummy $ac_prog; ac_word=$2 18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18188 $as_echo_n "checking for $ac_word... " >&6; } 18189 if ${ac_cv_path_STAT+:} false; then : 18190 $as_echo_n "(cached) " >&6 18191 else 18192 case $STAT in 18193 [\\/]* | ?:[\\/]*) 18194 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18195 ;; 18196 *) 18197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18198 for as_dir in $PATH 18199 do 18200 IFS=$as_save_IFS 18201 test -z "$as_dir" && as_dir=. 18202 for ac_exec_ext in '' $ac_executable_extensions; do 18203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18204 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18206 break 2 18207 fi 18208 done 18209 done 18210 IFS=$as_save_IFS 18211 18212 ;; 18213 esac 18214 fi 18215 STAT=$ac_cv_path_STAT 18216 if test -n "$STAT"; then 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18218 $as_echo "$STAT" >&6; } 18219 else 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18221 $as_echo "no" >&6; } 18222 fi 18223 18224 18225 test -n "$STAT" && break 18226 done 18227 18228 else 18229 # If it succeeded, then it was overridden by the user. We will use it 18230 # for the tool. 18231 18232 # First remove it from the list of overridden variables, so we can test 18233 # for unknown variables in the end. 18234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18235 18236 # Check if the provided tool contains a complete path. 18237 tool_specified="$STAT" 18238 tool_basename="${tool_specified##*/}" 18239 if test "x$tool_basename" = "x$tool_specified"; then 18240 # A command without a complete path is provided, search $PATH. 18241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18242 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18243 # Extract the first word of "$tool_basename", so it can be a program name with args. 18244 set dummy $tool_basename; ac_word=$2 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18246 $as_echo_n "checking for $ac_word... " >&6; } 18247 if ${ac_cv_path_STAT+:} false; then : 18248 $as_echo_n "(cached) " >&6 18249 else 18250 case $STAT in 18251 [\\/]* | ?:[\\/]*) 18252 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18253 ;; 18254 *) 18255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18256 for as_dir in $PATH 18257 do 18258 IFS=$as_save_IFS 18259 test -z "$as_dir" && as_dir=. 18260 for ac_exec_ext in '' $ac_executable_extensions; do 18261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18262 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18264 break 2 18265 fi 18266 done 18267 done 18268 IFS=$as_save_IFS 18269 18270 ;; 18271 esac 18272 fi 18273 STAT=$ac_cv_path_STAT 18274 if test -n "$STAT"; then 18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18276 $as_echo "$STAT" >&6; } 18277 else 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18279 $as_echo "no" >&6; } 18280 fi 18281 18282 18283 if test "x$STAT" = x; then 18284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18285 fi 18286 else 18287 # Otherwise we believe it is a complete path. Use it as it is. 18288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18289 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18291 $as_echo_n "checking for STAT... " >&6; } 18292 if test ! -x "$tool_specified"; then 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18294 $as_echo "not found" >&6; } 18295 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18296 fi 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18298 $as_echo "$tool_specified" >&6; } 18299 fi 18300 fi 18301 fi 18302 18303 18304 18305 18306 # Publish this variable in the help. 18307 18308 18309 if test "x$TIME" = x; then 18310 # The variable is not set by user, try to locate tool using the code snippet 18311 for ac_prog in time 18312 do 18313 # Extract the first word of "$ac_prog", so it can be a program name with args. 18314 set dummy $ac_prog; ac_word=$2 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18316 $as_echo_n "checking for $ac_word... " >&6; } 18317 if ${ac_cv_path_TIME+:} false; then : 18318 $as_echo_n "(cached) " >&6 18319 else 18320 case $TIME in 18321 [\\/]* | ?:[\\/]*) 18322 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18323 ;; 18324 *) 18325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18326 for as_dir in $PATH 18327 do 18328 IFS=$as_save_IFS 18329 test -z "$as_dir" && as_dir=. 18330 for ac_exec_ext in '' $ac_executable_extensions; do 18331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18332 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18334 break 2 18335 fi 18336 done 18337 done 18338 IFS=$as_save_IFS 18339 18340 ;; 18341 esac 18342 fi 18343 TIME=$ac_cv_path_TIME 18344 if test -n "$TIME"; then 18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18346 $as_echo "$TIME" >&6; } 18347 else 18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18349 $as_echo "no" >&6; } 18350 fi 18351 18352 18353 test -n "$TIME" && break 18354 done 18355 18356 else 18357 # The variable is set, but is it from the command line or the environment? 18358 18359 # Try to remove the string !TIME! from our list. 18360 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18361 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18362 # If it failed, the variable was not from the command line. Ignore it, 18363 # but warn the user (except for BASH, which is always set by the calling BASH). 18364 if test "xTIME" != xBASH; then 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18366 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18367 fi 18368 # Try to locate tool using the code snippet 18369 for ac_prog in time 18370 do 18371 # Extract the first word of "$ac_prog", so it can be a program name with args. 18372 set dummy $ac_prog; ac_word=$2 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18374 $as_echo_n "checking for $ac_word... " >&6; } 18375 if ${ac_cv_path_TIME+:} false; then : 18376 $as_echo_n "(cached) " >&6 18377 else 18378 case $TIME in 18379 [\\/]* | ?:[\\/]*) 18380 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18381 ;; 18382 *) 18383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18384 for as_dir in $PATH 18385 do 18386 IFS=$as_save_IFS 18387 test -z "$as_dir" && as_dir=. 18388 for ac_exec_ext in '' $ac_executable_extensions; do 18389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18390 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18392 break 2 18393 fi 18394 done 18395 done 18396 IFS=$as_save_IFS 18397 18398 ;; 18399 esac 18400 fi 18401 TIME=$ac_cv_path_TIME 18402 if test -n "$TIME"; then 18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18404 $as_echo "$TIME" >&6; } 18405 else 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18407 $as_echo "no" >&6; } 18408 fi 18409 18410 18411 test -n "$TIME" && break 18412 done 18413 18414 else 18415 # If it succeeded, then it was overridden by the user. We will use it 18416 # for the tool. 18417 18418 # First remove it from the list of overridden variables, so we can test 18419 # for unknown variables in the end. 18420 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18421 18422 # Check if the provided tool contains a complete path. 18423 tool_specified="$TIME" 18424 tool_basename="${tool_specified##*/}" 18425 if test "x$tool_basename" = "x$tool_specified"; then 18426 # A command without a complete path is provided, search $PATH. 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18428 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18429 # Extract the first word of "$tool_basename", so it can be a program name with args. 18430 set dummy $tool_basename; ac_word=$2 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18432 $as_echo_n "checking for $ac_word... " >&6; } 18433 if ${ac_cv_path_TIME+:} false; then : 18434 $as_echo_n "(cached) " >&6 18435 else 18436 case $TIME in 18437 [\\/]* | ?:[\\/]*) 18438 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18439 ;; 18440 *) 18441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18442 for as_dir in $PATH 18443 do 18444 IFS=$as_save_IFS 18445 test -z "$as_dir" && as_dir=. 18446 for ac_exec_ext in '' $ac_executable_extensions; do 18447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18448 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18450 break 2 18451 fi 18452 done 18453 done 18454 IFS=$as_save_IFS 18455 18456 ;; 18457 esac 18458 fi 18459 TIME=$ac_cv_path_TIME 18460 if test -n "$TIME"; then 18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18462 $as_echo "$TIME" >&6; } 18463 else 18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18465 $as_echo "no" >&6; } 18466 fi 18467 18468 18469 if test "x$TIME" = x; then 18470 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18471 fi 18472 else 18473 # Otherwise we believe it is a complete path. Use it as it is. 18474 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18475 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18477 $as_echo_n "checking for TIME... " >&6; } 18478 if test ! -x "$tool_specified"; then 18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18480 $as_echo "not found" >&6; } 18481 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18482 fi 18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18484 $as_echo "$tool_specified" >&6; } 18485 fi 18486 fi 18487 fi 18488 18489 18490 # Check if it's GNU time 18491 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18492 if test "x$IS_GNU_TIME" != x; then 18493 IS_GNU_TIME=yes 18494 else 18495 IS_GNU_TIME=no 18496 fi 18497 18498 18499 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18500 18501 18502 18503 # Publish this variable in the help. 18504 18505 18506 if test "x$COMM" = x; then 18507 # The variable is not set by user, try to locate tool using the code snippet 18508 for ac_prog in comm 18509 do 18510 # Extract the first word of "$ac_prog", so it can be a program name with args. 18511 set dummy $ac_prog; ac_word=$2 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18513 $as_echo_n "checking for $ac_word... " >&6; } 18514 if ${ac_cv_path_COMM+:} false; then : 18515 $as_echo_n "(cached) " >&6 18516 else 18517 case $COMM in 18518 [\\/]* | ?:[\\/]*) 18519 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18520 ;; 18521 *) 18522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18523 for as_dir in $PATH 18524 do 18525 IFS=$as_save_IFS 18526 test -z "$as_dir" && as_dir=. 18527 for ac_exec_ext in '' $ac_executable_extensions; do 18528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18529 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18531 break 2 18532 fi 18533 done 18534 done 18535 IFS=$as_save_IFS 18536 18537 ;; 18538 esac 18539 fi 18540 COMM=$ac_cv_path_COMM 18541 if test -n "$COMM"; then 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18543 $as_echo "$COMM" >&6; } 18544 else 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18546 $as_echo "no" >&6; } 18547 fi 18548 18549 18550 test -n "$COMM" && break 18551 done 18552 18553 else 18554 # The variable is set, but is it from the command line or the environment? 18555 18556 # Try to remove the string !COMM! from our list. 18557 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18558 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18559 # If it failed, the variable was not from the command line. Ignore it, 18560 # but warn the user (except for BASH, which is always set by the calling BASH). 18561 if test "xCOMM" != xBASH; then 18562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18563 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18564 fi 18565 # Try to locate tool using the code snippet 18566 for ac_prog in comm 18567 do 18568 # Extract the first word of "$ac_prog", so it can be a program name with args. 18569 set dummy $ac_prog; ac_word=$2 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18571 $as_echo_n "checking for $ac_word... " >&6; } 18572 if ${ac_cv_path_COMM+:} false; then : 18573 $as_echo_n "(cached) " >&6 18574 else 18575 case $COMM in 18576 [\\/]* | ?:[\\/]*) 18577 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18578 ;; 18579 *) 18580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18581 for as_dir in $PATH 18582 do 18583 IFS=$as_save_IFS 18584 test -z "$as_dir" && as_dir=. 18585 for ac_exec_ext in '' $ac_executable_extensions; do 18586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18587 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18589 break 2 18590 fi 18591 done 18592 done 18593 IFS=$as_save_IFS 18594 18595 ;; 18596 esac 18597 fi 18598 COMM=$ac_cv_path_COMM 18599 if test -n "$COMM"; then 18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18601 $as_echo "$COMM" >&6; } 18602 else 18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18604 $as_echo "no" >&6; } 18605 fi 18606 18607 18608 test -n "$COMM" && break 18609 done 18610 18611 else 18612 # If it succeeded, then it was overridden by the user. We will use it 18613 # for the tool. 18614 18615 # First remove it from the list of overridden variables, so we can test 18616 # for unknown variables in the end. 18617 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18618 18619 # Check if the provided tool contains a complete path. 18620 tool_specified="$COMM" 18621 tool_basename="${tool_specified##*/}" 18622 if test "x$tool_basename" = "x$tool_specified"; then 18623 # A command without a complete path is provided, search $PATH. 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18625 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18626 # Extract the first word of "$tool_basename", so it can be a program name with args. 18627 set dummy $tool_basename; ac_word=$2 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18629 $as_echo_n "checking for $ac_word... " >&6; } 18630 if ${ac_cv_path_COMM+:} false; then : 18631 $as_echo_n "(cached) " >&6 18632 else 18633 case $COMM in 18634 [\\/]* | ?:[\\/]*) 18635 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18636 ;; 18637 *) 18638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18639 for as_dir in $PATH 18640 do 18641 IFS=$as_save_IFS 18642 test -z "$as_dir" && as_dir=. 18643 for ac_exec_ext in '' $ac_executable_extensions; do 18644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18645 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18647 break 2 18648 fi 18649 done 18650 done 18651 IFS=$as_save_IFS 18652 18653 ;; 18654 esac 18655 fi 18656 COMM=$ac_cv_path_COMM 18657 if test -n "$COMM"; then 18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18659 $as_echo "$COMM" >&6; } 18660 else 18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18662 $as_echo "no" >&6; } 18663 fi 18664 18665 18666 if test "x$COMM" = x; then 18667 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18668 fi 18669 else 18670 # Otherwise we believe it is a complete path. Use it as it is. 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18672 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18674 $as_echo_n "checking for COMM... " >&6; } 18675 if test ! -x "$tool_specified"; then 18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18677 $as_echo "not found" >&6; } 18678 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18679 fi 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18681 $as_echo "$tool_specified" >&6; } 18682 fi 18683 fi 18684 fi 18685 18686 18687 18688 if test "x$COMM" = x; then 18689 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18690 fi 18691 18692 18693 fi 18694 18695 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18696 18697 18698 18699 # Publish this variable in the help. 18700 18701 18702 if test "x$DSYMUTIL" = x; then 18703 # The variable is not set by user, try to locate tool using the code snippet 18704 for ac_prog in dsymutil 18705 do 18706 # Extract the first word of "$ac_prog", so it can be a program name with args. 18707 set dummy $ac_prog; ac_word=$2 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18709 $as_echo_n "checking for $ac_word... " >&6; } 18710 if ${ac_cv_path_DSYMUTIL+:} false; then : 18711 $as_echo_n "(cached) " >&6 18712 else 18713 case $DSYMUTIL in 18714 [\\/]* | ?:[\\/]*) 18715 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18716 ;; 18717 *) 18718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18719 for as_dir in $PATH 18720 do 18721 IFS=$as_save_IFS 18722 test -z "$as_dir" && as_dir=. 18723 for ac_exec_ext in '' $ac_executable_extensions; do 18724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18725 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18727 break 2 18728 fi 18729 done 18730 done 18731 IFS=$as_save_IFS 18732 18733 ;; 18734 esac 18735 fi 18736 DSYMUTIL=$ac_cv_path_DSYMUTIL 18737 if test -n "$DSYMUTIL"; then 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18739 $as_echo "$DSYMUTIL" >&6; } 18740 else 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18742 $as_echo "no" >&6; } 18743 fi 18744 18745 18746 test -n "$DSYMUTIL" && break 18747 done 18748 18749 else 18750 # The variable is set, but is it from the command line or the environment? 18751 18752 # Try to remove the string !DSYMUTIL! from our list. 18753 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18754 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18755 # If it failed, the variable was not from the command line. Ignore it, 18756 # but warn the user (except for BASH, which is always set by the calling BASH). 18757 if test "xDSYMUTIL" != xBASH; then 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18759 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18760 fi 18761 # Try to locate tool using the code snippet 18762 for ac_prog in dsymutil 18763 do 18764 # Extract the first word of "$ac_prog", so it can be a program name with args. 18765 set dummy $ac_prog; ac_word=$2 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18767 $as_echo_n "checking for $ac_word... " >&6; } 18768 if ${ac_cv_path_DSYMUTIL+:} false; then : 18769 $as_echo_n "(cached) " >&6 18770 else 18771 case $DSYMUTIL in 18772 [\\/]* | ?:[\\/]*) 18773 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18774 ;; 18775 *) 18776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18777 for as_dir in $PATH 18778 do 18779 IFS=$as_save_IFS 18780 test -z "$as_dir" && as_dir=. 18781 for ac_exec_ext in '' $ac_executable_extensions; do 18782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18783 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18785 break 2 18786 fi 18787 done 18788 done 18789 IFS=$as_save_IFS 18790 18791 ;; 18792 esac 18793 fi 18794 DSYMUTIL=$ac_cv_path_DSYMUTIL 18795 if test -n "$DSYMUTIL"; then 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18797 $as_echo "$DSYMUTIL" >&6; } 18798 else 18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18800 $as_echo "no" >&6; } 18801 fi 18802 18803 18804 test -n "$DSYMUTIL" && break 18805 done 18806 18807 else 18808 # If it succeeded, then it was overridden by the user. We will use it 18809 # for the tool. 18810 18811 # First remove it from the list of overridden variables, so we can test 18812 # for unknown variables in the end. 18813 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18814 18815 # Check if the provided tool contains a complete path. 18816 tool_specified="$DSYMUTIL" 18817 tool_basename="${tool_specified##*/}" 18818 if test "x$tool_basename" = "x$tool_specified"; then 18819 # A command without a complete path is provided, search $PATH. 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18821 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18822 # Extract the first word of "$tool_basename", so it can be a program name with args. 18823 set dummy $tool_basename; ac_word=$2 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18825 $as_echo_n "checking for $ac_word... " >&6; } 18826 if ${ac_cv_path_DSYMUTIL+:} false; then : 18827 $as_echo_n "(cached) " >&6 18828 else 18829 case $DSYMUTIL in 18830 [\\/]* | ?:[\\/]*) 18831 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18832 ;; 18833 *) 18834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18835 for as_dir in $PATH 18836 do 18837 IFS=$as_save_IFS 18838 test -z "$as_dir" && as_dir=. 18839 for ac_exec_ext in '' $ac_executable_extensions; do 18840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18841 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18843 break 2 18844 fi 18845 done 18846 done 18847 IFS=$as_save_IFS 18848 18849 ;; 18850 esac 18851 fi 18852 DSYMUTIL=$ac_cv_path_DSYMUTIL 18853 if test -n "$DSYMUTIL"; then 18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18855 $as_echo "$DSYMUTIL" >&6; } 18856 else 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18858 $as_echo "no" >&6; } 18859 fi 18860 18861 18862 if test "x$DSYMUTIL" = x; then 18863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18864 fi 18865 else 18866 # Otherwise we believe it is a complete path. Use it as it is. 18867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18868 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18870 $as_echo_n "checking for DSYMUTIL... " >&6; } 18871 if test ! -x "$tool_specified"; then 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18873 $as_echo "not found" >&6; } 18874 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18875 fi 18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18877 $as_echo "$tool_specified" >&6; } 18878 fi 18879 fi 18880 fi 18881 18882 18883 18884 if test "x$DSYMUTIL" = x; then 18885 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18886 fi 18887 18888 18889 18890 18891 18892 # Publish this variable in the help. 18893 18894 18895 if test "x$XATTR" = x; then 18896 # The variable is not set by user, try to locate tool using the code snippet 18897 for ac_prog in xattr 18898 do 18899 # Extract the first word of "$ac_prog", so it can be a program name with args. 18900 set dummy $ac_prog; ac_word=$2 18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18902 $as_echo_n "checking for $ac_word... " >&6; } 18903 if ${ac_cv_path_XATTR+:} false; then : 18904 $as_echo_n "(cached) " >&6 18905 else 18906 case $XATTR in 18907 [\\/]* | ?:[\\/]*) 18908 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18909 ;; 18910 *) 18911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18912 for as_dir in $PATH 18913 do 18914 IFS=$as_save_IFS 18915 test -z "$as_dir" && as_dir=. 18916 for ac_exec_ext in '' $ac_executable_extensions; do 18917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18918 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18920 break 2 18921 fi 18922 done 18923 done 18924 IFS=$as_save_IFS 18925 18926 ;; 18927 esac 18928 fi 18929 XATTR=$ac_cv_path_XATTR 18930 if test -n "$XATTR"; then 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18932 $as_echo "$XATTR" >&6; } 18933 else 18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18935 $as_echo "no" >&6; } 18936 fi 18937 18938 18939 test -n "$XATTR" && break 18940 done 18941 18942 else 18943 # The variable is set, but is it from the command line or the environment? 18944 18945 # Try to remove the string !XATTR! from our list. 18946 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 18947 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18948 # If it failed, the variable was not from the command line. Ignore it, 18949 # but warn the user (except for BASH, which is always set by the calling BASH). 18950 if test "xXATTR" != xBASH; then 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 18952 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 18953 fi 18954 # Try to locate tool using the code snippet 18955 for ac_prog in xattr 18956 do 18957 # Extract the first word of "$ac_prog", so it can be a program name with args. 18958 set dummy $ac_prog; ac_word=$2 18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18960 $as_echo_n "checking for $ac_word... " >&6; } 18961 if ${ac_cv_path_XATTR+:} false; then : 18962 $as_echo_n "(cached) " >&6 18963 else 18964 case $XATTR in 18965 [\\/]* | ?:[\\/]*) 18966 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18967 ;; 18968 *) 18969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18970 for as_dir in $PATH 18971 do 18972 IFS=$as_save_IFS 18973 test -z "$as_dir" && as_dir=. 18974 for ac_exec_ext in '' $ac_executable_extensions; do 18975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18976 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18978 break 2 18979 fi 18980 done 18981 done 18982 IFS=$as_save_IFS 18983 18984 ;; 18985 esac 18986 fi 18987 XATTR=$ac_cv_path_XATTR 18988 if test -n "$XATTR"; then 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18990 $as_echo "$XATTR" >&6; } 18991 else 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18993 $as_echo "no" >&6; } 18994 fi 18995 18996 18997 test -n "$XATTR" && break 18998 done 18999 19000 else 19001 # If it succeeded, then it was overridden by the user. We will use it 19002 # for the tool. 19003 19004 # First remove it from the list of overridden variables, so we can test 19005 # for unknown variables in the end. 19006 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19007 19008 # Check if the provided tool contains a complete path. 19009 tool_specified="$XATTR" 19010 tool_basename="${tool_specified##*/}" 19011 if test "x$tool_basename" = "x$tool_specified"; then 19012 # A command without a complete path is provided, search $PATH. 19013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19014 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19015 # Extract the first word of "$tool_basename", so it can be a program name with args. 19016 set dummy $tool_basename; ac_word=$2 19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19018 $as_echo_n "checking for $ac_word... " >&6; } 19019 if ${ac_cv_path_XATTR+:} false; then : 19020 $as_echo_n "(cached) " >&6 19021 else 19022 case $XATTR in 19023 [\\/]* | ?:[\\/]*) 19024 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19025 ;; 19026 *) 19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19028 for as_dir in $PATH 19029 do 19030 IFS=$as_save_IFS 19031 test -z "$as_dir" && as_dir=. 19032 for ac_exec_ext in '' $ac_executable_extensions; do 19033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19034 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19036 break 2 19037 fi 19038 done 19039 done 19040 IFS=$as_save_IFS 19041 19042 ;; 19043 esac 19044 fi 19045 XATTR=$ac_cv_path_XATTR 19046 if test -n "$XATTR"; then 19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19048 $as_echo "$XATTR" >&6; } 19049 else 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19051 $as_echo "no" >&6; } 19052 fi 19053 19054 19055 if test "x$XATTR" = x; then 19056 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19057 fi 19058 else 19059 # Otherwise we believe it is a complete path. Use it as it is. 19060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19061 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19063 $as_echo_n "checking for XATTR... " >&6; } 19064 if test ! -x "$tool_specified"; then 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19066 $as_echo "not found" >&6; } 19067 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19068 fi 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19070 $as_echo "$tool_specified" >&6; } 19071 fi 19072 fi 19073 fi 19074 19075 19076 19077 if test "x$XATTR" = x; then 19078 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19079 fi 19080 19081 19082 19083 19084 # Publish this variable in the help. 19085 19086 19087 if test "x$CODESIGN" = x; then 19088 # The variable is not set by user, try to locate tool using the code snippet 19089 for ac_prog in codesign 19090 do 19091 # Extract the first word of "$ac_prog", so it can be a program name with args. 19092 set dummy $ac_prog; ac_word=$2 19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19094 $as_echo_n "checking for $ac_word... " >&6; } 19095 if ${ac_cv_path_CODESIGN+:} false; then : 19096 $as_echo_n "(cached) " >&6 19097 else 19098 case $CODESIGN in 19099 [\\/]* | ?:[\\/]*) 19100 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19101 ;; 19102 *) 19103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19104 for as_dir in $PATH 19105 do 19106 IFS=$as_save_IFS 19107 test -z "$as_dir" && as_dir=. 19108 for ac_exec_ext in '' $ac_executable_extensions; do 19109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19110 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19112 break 2 19113 fi 19114 done 19115 done 19116 IFS=$as_save_IFS 19117 19118 ;; 19119 esac 19120 fi 19121 CODESIGN=$ac_cv_path_CODESIGN 19122 if test -n "$CODESIGN"; then 19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19124 $as_echo "$CODESIGN" >&6; } 19125 else 19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19127 $as_echo "no" >&6; } 19128 fi 19129 19130 19131 test -n "$CODESIGN" && break 19132 done 19133 19134 else 19135 # The variable is set, but is it from the command line or the environment? 19136 19137 # Try to remove the string !CODESIGN! from our list. 19138 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19139 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19140 # If it failed, the variable was not from the command line. Ignore it, 19141 # but warn the user (except for BASH, which is always set by the calling BASH). 19142 if test "xCODESIGN" != xBASH; then 19143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19144 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19145 fi 19146 # Try to locate tool using the code snippet 19147 for ac_prog in codesign 19148 do 19149 # Extract the first word of "$ac_prog", so it can be a program name with args. 19150 set dummy $ac_prog; ac_word=$2 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19152 $as_echo_n "checking for $ac_word... " >&6; } 19153 if ${ac_cv_path_CODESIGN+:} false; then : 19154 $as_echo_n "(cached) " >&6 19155 else 19156 case $CODESIGN in 19157 [\\/]* | ?:[\\/]*) 19158 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19159 ;; 19160 *) 19161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19162 for as_dir in $PATH 19163 do 19164 IFS=$as_save_IFS 19165 test -z "$as_dir" && as_dir=. 19166 for ac_exec_ext in '' $ac_executable_extensions; do 19167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19168 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19170 break 2 19171 fi 19172 done 19173 done 19174 IFS=$as_save_IFS 19175 19176 ;; 19177 esac 19178 fi 19179 CODESIGN=$ac_cv_path_CODESIGN 19180 if test -n "$CODESIGN"; then 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19182 $as_echo "$CODESIGN" >&6; } 19183 else 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19185 $as_echo "no" >&6; } 19186 fi 19187 19188 19189 test -n "$CODESIGN" && break 19190 done 19191 19192 else 19193 # If it succeeded, then it was overridden by the user. We will use it 19194 # for the tool. 19195 19196 # First remove it from the list of overridden variables, so we can test 19197 # for unknown variables in the end. 19198 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19199 19200 # Check if the provided tool contains a complete path. 19201 tool_specified="$CODESIGN" 19202 tool_basename="${tool_specified##*/}" 19203 if test "x$tool_basename" = "x$tool_specified"; then 19204 # A command without a complete path is provided, search $PATH. 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19206 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19207 # Extract the first word of "$tool_basename", so it can be a program name with args. 19208 set dummy $tool_basename; ac_word=$2 19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19210 $as_echo_n "checking for $ac_word... " >&6; } 19211 if ${ac_cv_path_CODESIGN+:} false; then : 19212 $as_echo_n "(cached) " >&6 19213 else 19214 case $CODESIGN in 19215 [\\/]* | ?:[\\/]*) 19216 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19217 ;; 19218 *) 19219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19220 for as_dir in $PATH 19221 do 19222 IFS=$as_save_IFS 19223 test -z "$as_dir" && as_dir=. 19224 for ac_exec_ext in '' $ac_executable_extensions; do 19225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19226 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19228 break 2 19229 fi 19230 done 19231 done 19232 IFS=$as_save_IFS 19233 19234 ;; 19235 esac 19236 fi 19237 CODESIGN=$ac_cv_path_CODESIGN 19238 if test -n "$CODESIGN"; then 19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19240 $as_echo "$CODESIGN" >&6; } 19241 else 19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19243 $as_echo "no" >&6; } 19244 fi 19245 19246 19247 if test "x$CODESIGN" = x; then 19248 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19249 fi 19250 else 19251 # Otherwise we believe it is a complete path. Use it as it is. 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19253 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19255 $as_echo_n "checking for CODESIGN... " >&6; } 19256 if test ! -x "$tool_specified"; then 19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19258 $as_echo "not found" >&6; } 19259 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19260 fi 19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19262 $as_echo "$tool_specified" >&6; } 19263 fi 19264 fi 19265 fi 19266 19267 19268 if test "x$CODESIGN" != "x"; then 19269 # Verify that the openjdk_codesign certificate is present 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19271 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19272 rm -f codesign-testfile 19273 touch codesign-testfile 19274 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19275 rm -f codesign-testfile 19276 if test "x$CODESIGN" = x; then 19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19278 $as_echo "no" >&6; } 19279 else 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19281 $as_echo "yes" >&6; } 19282 fi 19283 fi 19284 fi 19285 19286 19287 # Check if pkg-config is available. 19288 19289 19290 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19291 if test -n "$ac_tool_prefix"; then 19292 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19293 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19295 $as_echo_n "checking for $ac_word... " >&6; } 19296 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19297 $as_echo_n "(cached) " >&6 19298 else 19299 case $PKG_CONFIG in 19300 [\\/]* | ?:[\\/]*) 19301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19302 ;; 19303 *) 19304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19305 for as_dir in $PATH 19306 do 19307 IFS=$as_save_IFS 19308 test -z "$as_dir" && as_dir=. 19309 for ac_exec_ext in '' $ac_executable_extensions; do 19310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19311 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19313 break 2 19314 fi 19315 done 19316 done 19317 IFS=$as_save_IFS 19318 19319 ;; 19320 esac 19321 fi 19322 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19323 if test -n "$PKG_CONFIG"; then 19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19325 $as_echo "$PKG_CONFIG" >&6; } 19326 else 19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19328 $as_echo "no" >&6; } 19329 fi 19330 19331 19332 fi 19333 if test -z "$ac_cv_path_PKG_CONFIG"; then 19334 ac_pt_PKG_CONFIG=$PKG_CONFIG 19335 # Extract the first word of "pkg-config", so it can be a program name with args. 19336 set dummy pkg-config; ac_word=$2 19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19338 $as_echo_n "checking for $ac_word... " >&6; } 19339 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19340 $as_echo_n "(cached) " >&6 19341 else 19342 case $ac_pt_PKG_CONFIG in 19343 [\\/]* | ?:[\\/]*) 19344 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19345 ;; 19346 *) 19347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19348 for as_dir in $PATH 19349 do 19350 IFS=$as_save_IFS 19351 test -z "$as_dir" && as_dir=. 19352 for ac_exec_ext in '' $ac_executable_extensions; do 19353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19354 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19356 break 2 19357 fi 19358 done 19359 done 19360 IFS=$as_save_IFS 19361 19362 ;; 19363 esac 19364 fi 19365 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19366 if test -n "$ac_pt_PKG_CONFIG"; then 19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19368 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19369 else 19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19371 $as_echo "no" >&6; } 19372 fi 19373 19374 if test "x$ac_pt_PKG_CONFIG" = x; then 19375 PKG_CONFIG="" 19376 else 19377 case $cross_compiling:$ac_tool_warned in 19378 yes:) 19379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19381 ac_tool_warned=yes ;; 19382 esac 19383 PKG_CONFIG=$ac_pt_PKG_CONFIG 19384 fi 19385 else 19386 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19387 fi 19388 19389 fi 19390 if test -n "$PKG_CONFIG"; then 19391 _pkg_min_version=0.9.0 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19393 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19394 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19396 $as_echo "yes" >&6; } 19397 else 19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19399 $as_echo "no" >&6; } 19400 PKG_CONFIG="" 19401 fi 19402 19403 fi 19404 19405 # After basic tools have been setup, we can check build os specific details. 19406 19407 ############################################################################### 19408 19409 # Note that this is the build platform OS version! 19410 19411 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19412 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19413 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19414 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19415 19416 19417 19418 19419 19420 # Setup builddeps, for automatic downloading of tools we need. 19421 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19422 # boot-jdk setup, but we need to have basic tools setup first. 19423 19424 19425 # Check whether --with-builddeps-conf was given. 19426 if test "${with_builddeps_conf+set}" = set; then : 19427 withval=$with_builddeps_conf; 19428 fi 19429 19430 19431 19432 # Check whether --with-builddeps-server was given. 19433 if test "${with_builddeps_server+set}" = set; then : 19434 withval=$with_builddeps_server; 19435 fi 19436 19437 19438 19439 # Check whether --with-builddeps-dir was given. 19440 if test "${with_builddeps_dir+set}" = set; then : 19441 withval=$with_builddeps_dir; 19442 else 19443 with_builddeps_dir=/localhome/builddeps 19444 fi 19445 19446 19447 19448 # Check whether --with-builddeps-group was given. 19449 if test "${with_builddeps_group+set}" = set; then : 19450 withval=$with_builddeps_group; 19451 fi 19452 19453 19454 19455 19456 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19457 if test "x$with_builddeps_conf" != x; then 19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19459 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19460 builddepsfile=$with_builddeps_conf 19461 if test -s $builddepsfile; then 19462 . $builddepsfile 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19464 $as_echo "loaded!" >&6; } 19465 else 19466 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19467 fi 19468 else 19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19470 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19471 builddepsfile=`mktemp` 19472 touch $builddepsfile 19473 # Put all found confs into a single file. 19474 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19475 # Source the file to acquire the variables 19476 if test -s $builddepsfile; then 19477 . $builddepsfile 19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19479 $as_echo "found at least one!" >&6; } 19480 else 19481 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19482 fi 19483 fi 19484 # Create build and target names that use _ instead of "-" and ".". 19485 # This is necessary to use them in variable names. 19486 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19487 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19488 # Extract rewrite information for build and target 19489 eval rewritten_build=\${REWRITE_${build_var}} 19490 if test "x$rewritten_build" = x; then 19491 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19492 echo Build stays the same $rewritten_build 19493 else 19494 echo Rewriting build for builddeps into $rewritten_build 19495 fi 19496 eval rewritten_target=\${REWRITE_${target_var}} 19497 if test "x$rewritten_target" = x; then 19498 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19499 echo Target stays the same $rewritten_target 19500 else 19501 echo Rewriting target for builddeps into $rewritten_target 19502 fi 19503 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19504 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19505 fi 19506 for ac_prog in 7z unzip 19507 do 19508 # Extract the first word of "$ac_prog", so it can be a program name with args. 19509 set dummy $ac_prog; ac_word=$2 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19511 $as_echo_n "checking for $ac_word... " >&6; } 19512 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19513 $as_echo_n "(cached) " >&6 19514 else 19515 if test -n "$BDEPS_UNZIP"; then 19516 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19517 else 19518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19519 for as_dir in $PATH 19520 do 19521 IFS=$as_save_IFS 19522 test -z "$as_dir" && as_dir=. 19523 for ac_exec_ext in '' $ac_executable_extensions; do 19524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19525 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19527 break 2 19528 fi 19529 done 19530 done 19531 IFS=$as_save_IFS 19532 19533 fi 19534 fi 19535 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19536 if test -n "$BDEPS_UNZIP"; then 19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19538 $as_echo "$BDEPS_UNZIP" >&6; } 19539 else 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19541 $as_echo "no" >&6; } 19542 fi 19543 19544 19545 test -n "$BDEPS_UNZIP" && break 19546 done 19547 19548 if test "x$BDEPS_UNZIP" = x7z; then 19549 BDEPS_UNZIP="7z x" 19550 fi 19551 19552 for ac_prog in wget lftp ftp 19553 do 19554 # Extract the first word of "$ac_prog", so it can be a program name with args. 19555 set dummy $ac_prog; ac_word=$2 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19557 $as_echo_n "checking for $ac_word... " >&6; } 19558 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19559 $as_echo_n "(cached) " >&6 19560 else 19561 if test -n "$BDEPS_FTP"; then 19562 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19563 else 19564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19565 for as_dir in $PATH 19566 do 19567 IFS=$as_save_IFS 19568 test -z "$as_dir" && as_dir=. 19569 for ac_exec_ext in '' $ac_executable_extensions; do 19570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19571 ac_cv_prog_BDEPS_FTP="$ac_prog" 19572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19573 break 2 19574 fi 19575 done 19576 done 19577 IFS=$as_save_IFS 19578 19579 fi 19580 fi 19581 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19582 if test -n "$BDEPS_FTP"; then 19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19584 $as_echo "$BDEPS_FTP" >&6; } 19585 else 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19587 $as_echo "no" >&6; } 19588 fi 19589 19590 19591 test -n "$BDEPS_FTP" && break 19592 done 19593 19594 19595 19596 ############################################################################### 19597 # 19598 # Determine OpenJDK variants, options and version numbers. 19599 # 19600 ############################################################################### 19601 19602 # We need build & target for this. 19603 19604 19605 ############################################################################### 19606 # 19607 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19608 # We always build headless support. 19609 # 19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19611 $as_echo_n "checking headful support... " >&6; } 19612 # Check whether --enable-headful was given. 19613 if test "${enable_headful+set}" = set; then : 19614 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19615 else 19616 SUPPORT_HEADFUL=yes 19617 fi 19618 19619 19620 SUPPORT_HEADLESS=yes 19621 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19622 19623 if test "x$SUPPORT_HEADFUL" = xyes; then 19624 # We are building both headful and headless. 19625 headful_msg="include support for both headful and headless" 19626 fi 19627 19628 if test "x$SUPPORT_HEADFUL" = xno; then 19629 # Thus we are building headless only. 19630 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19631 headful_msg="headless only" 19632 fi 19633 19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19635 $as_echo "$headful_msg" >&6; } 19636 19637 19638 19639 19640 19641 # Control wether Hotspot runs Queens test after build. 19642 # Check whether --enable-hotspot-test-in-build was given. 19643 if test "${enable_hotspot_test_in_build+set}" = set; then : 19644 enableval=$enable_hotspot_test_in_build; 19645 else 19646 enable_hotspot_test_in_build=no 19647 fi 19648 19649 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19650 TEST_IN_BUILD=true 19651 else 19652 TEST_IN_BUILD=false 19653 fi 19654 19655 19656 ############################################################################### 19657 # 19658 # Choose cacerts source file 19659 # 19660 19661 # Check whether --with-cacerts-file was given. 19662 if test "${with_cacerts_file+set}" = set; then : 19663 withval=$with_cacerts_file; 19664 fi 19665 19666 if test "x$with_cacerts_file" != x; then 19667 CACERTS_FILE=$with_cacerts_file 19668 else 19669 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19670 fi 19671 19672 19673 ############################################################################### 19674 # 19675 # Enable or disable unlimited crypto 19676 # 19677 # Check whether --enable-unlimited-crypto was given. 19678 if test "${enable_unlimited_crypto+set}" = set; then : 19679 enableval=$enable_unlimited_crypto; 19680 else 19681 enable_unlimited_crypto=no 19682 fi 19683 19684 if test "x$enable_unlimited_crypto" = "xyes"; then 19685 UNLIMITED_CRYPTO=true 19686 else 19687 UNLIMITED_CRYPTO=false 19688 fi 19689 19690 19691 ############################################################################### 19692 # 19693 # Enable or disable the elliptic curve crypto implementation 19694 # 19695 19696 19697 ############################################################################### 19698 # 19699 # --enable-rmiconnector-iiop 19700 # 19701 # Check whether --enable-rmiconnector-iiop was given. 19702 if test "${enable_rmiconnector_iiop+set}" = set; then : 19703 enableval=$enable_rmiconnector_iiop; 19704 fi 19705 19706 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19707 RMICONNECTOR_IIOP=true 19708 else 19709 RMICONNECTOR_IIOP=false 19710 fi 19711 19712 19713 ############################################################################### 19714 # 19715 # Compress jars 19716 # 19717 COMPRESS_JARS=false 19718 19719 19720 19721 19722 # Source the version numbers 19723 . $AUTOCONF_DIR/version-numbers 19724 19725 # Get the settings from parameters 19726 19727 # Check whether --with-milestone was given. 19728 if test "${with_milestone+set}" = set; then : 19729 withval=$with_milestone; 19730 fi 19731 19732 if test "x$with_milestone" = xyes; then 19733 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19734 elif test "x$with_milestone" != x; then 19735 MILESTONE="$with_milestone" 19736 fi 19737 if test "x$MILESTONE" = x; then 19738 MILESTONE=internal 19739 fi 19740 19741 19742 # Check whether --with-update-version was given. 19743 if test "${with_update_version+set}" = set; then : 19744 withval=$with_update_version; 19745 fi 19746 19747 if test "x$with_update_version" = xyes; then 19748 as_fn_error $? "Update version must have a value" "$LINENO" 5 19749 elif test "x$with_update_version" != x; then 19750 JDK_UPDATE_VERSION="$with_update_version" 19751 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19752 # to a bug in expr (which reduces it to just X). To work around this, we 19753 # always add a 0 to one digit update versions. 19754 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19755 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19756 fi 19757 fi 19758 19759 19760 # Check whether --with-user-release-suffix was given. 19761 if test "${with_user_release_suffix+set}" = set; then : 19762 withval=$with_user_release_suffix; 19763 fi 19764 19765 if test "x$with_user_release_suffix" = xyes; then 19766 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19767 elif test "x$with_user_release_suffix" != x; then 19768 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19769 fi 19770 19771 19772 # Check whether --with-build-number was given. 19773 if test "${with_build_number+set}" = set; then : 19774 withval=$with_build_number; 19775 fi 19776 19777 if test "x$with_build_number" = xyes; then 19778 as_fn_error $? "Build number must have a value" "$LINENO" 5 19779 elif test "x$with_build_number" != x; then 19780 JDK_BUILD_NUMBER="$with_build_number" 19781 fi 19782 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19783 if test "x$JDK_BUILD_NUMBER" = x; then 19784 JDK_BUILD_NUMBER=b00 19785 if test "x$USER_RELEASE_SUFFIX" = x; then 19786 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19787 # Avoid [:alnum:] since it depends on the locale. 19788 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19789 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19790 fi 19791 fi 19792 19793 # Now set the JDK version, milestone, build number etc. 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 COPYRIGHT_YEAR=`date +'%Y'` 19810 19811 19812 if test "x$JDK_UPDATE_VERSION" != x; then 19813 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19814 else 19815 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19816 fi 19817 19818 19819 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19820 19821 19822 19823 ############################################################################### 19824 # 19825 # Setup BootJDK, used to bootstrap the build. 19826 # 19827 ############################################################################### 19828 19829 19830 BOOT_JDK_FOUND=no 19831 19832 # Check whether --with-boot-jdk was given. 19833 if test "${with_boot_jdk+set}" = set; then : 19834 withval=$with_boot_jdk; 19835 fi 19836 19837 19838 # We look for the Boot JDK through various means, going from more certain to 19839 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19840 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19841 # must check if this is indeed valid; otherwise we'll continue looking. 19842 19843 # Test: Is bootjdk explicitely set by command line arguments? 19844 19845 if test "x$BOOT_JDK_FOUND" = xno; then 19846 # Now execute the test 19847 19848 if test "x$with_boot_jdk" != x; then 19849 BOOT_JDK=$with_boot_jdk 19850 BOOT_JDK_FOUND=maybe 19851 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19852 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19853 fi 19854 19855 19856 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19857 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19858 # Do we have a bin/java? 19859 if test ! -x "$BOOT_JDK/bin/java"; then 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19861 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19862 BOOT_JDK_FOUND=no 19863 else 19864 # Do we have a bin/javac? 19865 if test ! -x "$BOOT_JDK/bin/javac"; then 19866 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19868 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19869 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19870 BOOT_JDK_FOUND=no 19871 else 19872 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19873 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19874 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19876 BOOT_JDK_FOUND=no 19877 else 19878 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19879 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19880 19881 # Extra M4 quote needed to protect [] in grep expression. 19882 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 19883 if test "x$FOUND_CORRECT_VERSION" = x; then 19884 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19885 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 19887 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 19888 BOOT_JDK_FOUND=no 19889 else 19890 # We're done! :-) 19891 BOOT_JDK_FOUND=yes 19892 19893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19894 19895 # Input might be given as Windows format, start by converting to 19896 # unix format. 19897 path="$BOOT_JDK" 19898 new_path=`$CYGPATH -u "$path"` 19899 19900 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19901 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19902 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19903 # "foo.exe" is OK but "foo" is an error. 19904 # 19905 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19906 # It is also a way to make sure we got the proper file name for the real test later on. 19907 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19908 if test "x$test_shortpath" = x; then 19909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19910 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19911 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19912 fi 19913 19914 # Call helper function which possibly converts this using DOS-style short mode. 19915 # If so, the updated path is stored in $new_path. 19916 19917 input_path="$new_path" 19918 # Check if we need to convert this using DOS-style short mode. If the path 19919 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19920 # take no chances and rewrite it. 19921 # Note: m4 eats our [], so we need to use [ and ] instead. 19922 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19923 if test "x$has_forbidden_chars" != x; then 19924 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19925 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19926 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19927 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19928 # Going to short mode and back again did indeed matter. Since short mode is 19929 # case insensitive, let's make it lowercase to improve readability. 19930 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19931 # Now convert it back to Unix-stile (cygpath) 19932 input_path=`$CYGPATH -u "$shortmode_path"` 19933 new_path="$input_path" 19934 fi 19935 fi 19936 19937 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19938 if test "x$test_cygdrive_prefix" = x; then 19939 # As a simple fix, exclude /usr/bin since it's not a real path. 19940 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19941 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19942 # a path prefixed by /cygdrive for fixpath to work. 19943 new_path="$CYGWIN_ROOT_PATH$input_path" 19944 fi 19945 fi 19946 19947 19948 if test "x$path" != "x$new_path"; then 19949 BOOT_JDK="$new_path" 19950 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19951 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19952 fi 19953 19954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19955 19956 path="$BOOT_JDK" 19957 has_colon=`$ECHO $path | $GREP ^.:` 19958 new_path="$path" 19959 if test "x$has_colon" = x; then 19960 # Not in mixed or Windows style, start by that. 19961 new_path=`cmd //c echo $path` 19962 fi 19963 19964 19965 input_path="$new_path" 19966 # Check if we need to convert this using DOS-style short mode. If the path 19967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19968 # take no chances and rewrite it. 19969 # Note: m4 eats our [], so we need to use [ and ] instead. 19970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19971 if test "x$has_forbidden_chars" != x; then 19972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19973 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19974 fi 19975 19976 19977 windows_path="$new_path" 19978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19979 unix_path=`$CYGPATH -u "$windows_path"` 19980 new_path="$unix_path" 19981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19982 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19983 new_path="$unix_path" 19984 fi 19985 19986 if test "x$path" != "x$new_path"; then 19987 BOOT_JDK="$new_path" 19988 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19989 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19990 fi 19991 19992 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19993 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19994 19995 else 19996 # We're on a posix platform. Hooray! :) 19997 path="$BOOT_JDK" 19998 has_space=`$ECHO "$path" | $GREP " "` 19999 if test "x$has_space" != x; then 20000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20001 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20002 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20003 fi 20004 20005 # Use eval to expand a potential ~ 20006 eval path="$path" 20007 if test ! -f "$path" && test ! -d "$path"; then 20008 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20009 fi 20010 20011 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20012 fi 20013 20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20015 $as_echo_n "checking for Boot JDK... " >&6; } 20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20017 $as_echo "$BOOT_JDK" >&6; } 20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20019 $as_echo_n "checking Boot JDK version... " >&6; } 20020 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20022 $as_echo "$BOOT_JDK_VERSION" >&6; } 20023 fi # end check jdk version 20024 fi # end check rt.jar 20025 fi # end check javac 20026 fi # end check java 20027 fi # end check boot jdk found 20028 fi 20029 20030 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20031 # Having specified an argument which is incorrect will produce an instant failure; 20032 # we should not go on looking 20033 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20034 fi 20035 20036 # Test: Is bootjdk available from builddeps? 20037 20038 if test "x$BOOT_JDK_FOUND" = xno; then 20039 # Now execute the test 20040 20041 20042 20043 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20044 # Source the builddeps file again, to make sure it uses the latest variables! 20045 . $builddepsfile 20046 # Look for a target and build machine specific resource! 20047 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20048 if test "x$resource" = x; then 20049 # Ok, lets instead look for a target specific resource 20050 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20051 fi 20052 if test "x$resource" = x; then 20053 # Ok, lets instead look for a build specific resource 20054 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20055 fi 20056 if test "x$resource" = x; then 20057 # Ok, lets instead look for a generic resource 20058 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20059 resource=${builddep_bootjdk} 20060 fi 20061 if test "x$resource" != x; then 20062 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20063 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20064 # If the resource in the builddeps.conf file is an existing directory, 20065 # for example /java/linux/cups 20066 if test -d ${resource}; then 20067 depdir=${resource} 20068 else 20069 20070 # bootjdk is for example mymodule 20071 # $resource is for example libs/general/libmymod_1_2_3.zip 20072 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20073 # $with_builddeps_dir is for example /localhome/builddeps 20074 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20075 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20076 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20077 filename=`basename $resource` 20078 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20079 filebase=${filename%%.*} 20080 extension=${filename#*.} 20081 installdir=$with_builddeps_dir/$filebase 20082 if test ! -f $installdir/$filename.unpacked; then 20083 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20084 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20085 if test ! -d $installdir; then 20086 mkdir -p $installdir 20087 fi 20088 if test ! -d $installdir; then 20089 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20090 fi 20091 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20092 touch $tmpfile 20093 if test ! -f $tmpfile; then 20094 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20095 fi 20096 20097 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20098 # $tmpfile is the local file name for the downloaded file. 20099 VALID_TOOL=no 20100 if test "x$BDEPS_FTP" = xwget; then 20101 VALID_TOOL=yes 20102 wget -O $tmpfile $with_builddeps_server/$resource 20103 fi 20104 if test "x$BDEPS_FTP" = xlftp; then 20105 VALID_TOOL=yes 20106 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20107 fi 20108 if test "x$BDEPS_FTP" = xftp; then 20109 VALID_TOOL=yes 20110 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20111 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20112 FTPUSERPWD=${FTPSERVER%%@*} 20113 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20114 FTPUSER=${userpwd%%:*} 20115 FTPPWD=${userpwd#*@} 20116 FTPSERVER=${FTPSERVER#*@} 20117 else 20118 FTPUSER=ftp 20119 FTPPWD=ftp 20120 fi 20121 # the "pass" command does not work on some 20122 # ftp clients (read ftp.exe) but if it works, 20123 # passive mode is better! 20124 ( \ 20125 echo "user $FTPUSER $FTPPWD" ; \ 20126 echo "pass" ; \ 20127 echo "bin" ; \ 20128 echo "get $FTPPATH $tmpfile" ; \ 20129 ) | ftp -in $FTPSERVER 20130 fi 20131 if test "x$VALID_TOOL" != xyes; then 20132 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20133 fi 20134 20135 mv $tmpfile $installdir/$filename 20136 if test ! -s $installdir/$filename; then 20137 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20138 fi 20139 case "$extension" in 20140 zip) echo "Unzipping $installdir/$filename..." 20141 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20142 ;; 20143 tar.gz) echo "Untaring $installdir/$filename..." 20144 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20145 ;; 20146 tgz) echo "Untaring $installdir/$filename..." 20147 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20148 ;; 20149 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20150 ;; 20151 esac 20152 fi 20153 if test -f $installdir/$filename.unpacked; then 20154 depdir=$installdir 20155 fi 20156 20157 fi 20158 # Source the builddeps file again, because in the previous command, the depdir 20159 # was updated to point at the current build dependency install directory. 20160 . $builddepsfile 20161 # Now extract variables from the builddeps.conf files. 20162 theroot=${builddep_bootjdk_ROOT} 20163 thecflags=${builddep_bootjdk_CFLAGS} 20164 thelibs=${builddep_bootjdk_LIBS} 20165 if test "x$depdir" = x; then 20166 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20167 fi 20168 BOOT_JDK=$depdir 20169 if test "x$theroot" != x; then 20170 BOOT_JDK="$theroot" 20171 fi 20172 if test "x$thecflags" != x; then 20173 BOOT_JDK_CFLAGS="$thecflags" 20174 fi 20175 if test "x$thelibs" != x; then 20176 BOOT_JDK_LIBS="$thelibs" 20177 fi 20178 BOOT_JDK_FOUND=maybe 20179 else BOOT_JDK_FOUND=no 20180 20181 fi 20182 else BOOT_JDK_FOUND=no 20183 20184 fi 20185 20186 20187 20188 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20189 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20190 # Do we have a bin/java? 20191 if test ! -x "$BOOT_JDK/bin/java"; then 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20194 BOOT_JDK_FOUND=no 20195 else 20196 # Do we have a bin/javac? 20197 if test ! -x "$BOOT_JDK/bin/javac"; then 20198 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20200 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20201 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20202 BOOT_JDK_FOUND=no 20203 else 20204 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20205 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20208 BOOT_JDK_FOUND=no 20209 else 20210 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20211 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20212 20213 # Extra M4 quote needed to protect [] in grep expression. 20214 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20215 if test "x$FOUND_CORRECT_VERSION" = x; then 20216 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20218 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20219 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20220 BOOT_JDK_FOUND=no 20221 else 20222 # We're done! :-) 20223 BOOT_JDK_FOUND=yes 20224 20225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20226 20227 # Input might be given as Windows format, start by converting to 20228 # unix format. 20229 path="$BOOT_JDK" 20230 new_path=`$CYGPATH -u "$path"` 20231 20232 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20233 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20234 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20235 # "foo.exe" is OK but "foo" is an error. 20236 # 20237 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20238 # It is also a way to make sure we got the proper file name for the real test later on. 20239 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20240 if test "x$test_shortpath" = x; then 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20242 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20243 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20244 fi 20245 20246 # Call helper function which possibly converts this using DOS-style short mode. 20247 # If so, the updated path is stored in $new_path. 20248 20249 input_path="$new_path" 20250 # Check if we need to convert this using DOS-style short mode. If the path 20251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20252 # take no chances and rewrite it. 20253 # Note: m4 eats our [], so we need to use [ and ] instead. 20254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20255 if test "x$has_forbidden_chars" != x; then 20256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20257 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20258 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20259 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20260 # Going to short mode and back again did indeed matter. Since short mode is 20261 # case insensitive, let's make it lowercase to improve readability. 20262 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20263 # Now convert it back to Unix-stile (cygpath) 20264 input_path=`$CYGPATH -u "$shortmode_path"` 20265 new_path="$input_path" 20266 fi 20267 fi 20268 20269 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20270 if test "x$test_cygdrive_prefix" = x; then 20271 # As a simple fix, exclude /usr/bin since it's not a real path. 20272 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20273 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20274 # a path prefixed by /cygdrive for fixpath to work. 20275 new_path="$CYGWIN_ROOT_PATH$input_path" 20276 fi 20277 fi 20278 20279 20280 if test "x$path" != "x$new_path"; then 20281 BOOT_JDK="$new_path" 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20283 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20284 fi 20285 20286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20287 20288 path="$BOOT_JDK" 20289 has_colon=`$ECHO $path | $GREP ^.:` 20290 new_path="$path" 20291 if test "x$has_colon" = x; then 20292 # Not in mixed or Windows style, start by that. 20293 new_path=`cmd //c echo $path` 20294 fi 20295 20296 20297 input_path="$new_path" 20298 # Check if we need to convert this using DOS-style short mode. If the path 20299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20300 # take no chances and rewrite it. 20301 # Note: m4 eats our [], so we need to use [ and ] instead. 20302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20303 if test "x$has_forbidden_chars" != x; then 20304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20305 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20306 fi 20307 20308 20309 windows_path="$new_path" 20310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20311 unix_path=`$CYGPATH -u "$windows_path"` 20312 new_path="$unix_path" 20313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20315 new_path="$unix_path" 20316 fi 20317 20318 if test "x$path" != "x$new_path"; then 20319 BOOT_JDK="$new_path" 20320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20321 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20322 fi 20323 20324 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20325 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20326 20327 else 20328 # We're on a posix platform. Hooray! :) 20329 path="$BOOT_JDK" 20330 has_space=`$ECHO "$path" | $GREP " "` 20331 if test "x$has_space" != x; then 20332 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20333 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20334 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20335 fi 20336 20337 # Use eval to expand a potential ~ 20338 eval path="$path" 20339 if test ! -f "$path" && test ! -d "$path"; then 20340 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20341 fi 20342 20343 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20344 fi 20345 20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20347 $as_echo_n "checking for Boot JDK... " >&6; } 20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20349 $as_echo "$BOOT_JDK" >&6; } 20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20351 $as_echo_n "checking Boot JDK version... " >&6; } 20352 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20354 $as_echo "$BOOT_JDK_VERSION" >&6; } 20355 fi # end check jdk version 20356 fi # end check rt.jar 20357 fi # end check javac 20358 fi # end check java 20359 fi # end check boot jdk found 20360 fi 20361 20362 20363 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20364 20365 if test "x$BOOT_JDK_FOUND" = xno; then 20366 # Now execute the test 20367 20368 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20369 # First check at user selected default 20370 20371 if test "x$BOOT_JDK_FOUND" = xno; then 20372 # Now execute the test 20373 20374 if test -x /usr/libexec/java_home; then 20375 BOOT_JDK=`/usr/libexec/java_home ` 20376 BOOT_JDK_FOUND=maybe 20377 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20378 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20379 fi 20380 20381 20382 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20383 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20384 # Do we have a bin/java? 20385 if test ! -x "$BOOT_JDK/bin/java"; then 20386 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20387 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20388 BOOT_JDK_FOUND=no 20389 else 20390 # Do we have a bin/javac? 20391 if test ! -x "$BOOT_JDK/bin/javac"; then 20392 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20393 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20394 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20395 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20396 BOOT_JDK_FOUND=no 20397 else 20398 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20399 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20400 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20402 BOOT_JDK_FOUND=no 20403 else 20404 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20405 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20406 20407 # Extra M4 quote needed to protect [] in grep expression. 20408 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20409 if test "x$FOUND_CORRECT_VERSION" = x; then 20410 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20412 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20413 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20414 BOOT_JDK_FOUND=no 20415 else 20416 # We're done! :-) 20417 BOOT_JDK_FOUND=yes 20418 20419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20420 20421 # Input might be given as Windows format, start by converting to 20422 # unix format. 20423 path="$BOOT_JDK" 20424 new_path=`$CYGPATH -u "$path"` 20425 20426 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20427 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20428 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20429 # "foo.exe" is OK but "foo" is an error. 20430 # 20431 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20432 # It is also a way to make sure we got the proper file name for the real test later on. 20433 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20434 if test "x$test_shortpath" = x; then 20435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20436 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20437 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20438 fi 20439 20440 # Call helper function which possibly converts this using DOS-style short mode. 20441 # If so, the updated path is stored in $new_path. 20442 20443 input_path="$new_path" 20444 # Check if we need to convert this using DOS-style short mode. If the path 20445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20446 # take no chances and rewrite it. 20447 # Note: m4 eats our [], so we need to use [ and ] instead. 20448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20449 if test "x$has_forbidden_chars" != x; then 20450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20451 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20452 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20453 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20454 # Going to short mode and back again did indeed matter. Since short mode is 20455 # case insensitive, let's make it lowercase to improve readability. 20456 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20457 # Now convert it back to Unix-stile (cygpath) 20458 input_path=`$CYGPATH -u "$shortmode_path"` 20459 new_path="$input_path" 20460 fi 20461 fi 20462 20463 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20464 if test "x$test_cygdrive_prefix" = x; then 20465 # As a simple fix, exclude /usr/bin since it's not a real path. 20466 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20467 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20468 # a path prefixed by /cygdrive for fixpath to work. 20469 new_path="$CYGWIN_ROOT_PATH$input_path" 20470 fi 20471 fi 20472 20473 20474 if test "x$path" != "x$new_path"; then 20475 BOOT_JDK="$new_path" 20476 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20477 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20478 fi 20479 20480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20481 20482 path="$BOOT_JDK" 20483 has_colon=`$ECHO $path | $GREP ^.:` 20484 new_path="$path" 20485 if test "x$has_colon" = x; then 20486 # Not in mixed or Windows style, start by that. 20487 new_path=`cmd //c echo $path` 20488 fi 20489 20490 20491 input_path="$new_path" 20492 # Check if we need to convert this using DOS-style short mode. If the path 20493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20494 # take no chances and rewrite it. 20495 # Note: m4 eats our [], so we need to use [ and ] instead. 20496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20497 if test "x$has_forbidden_chars" != x; then 20498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20499 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20500 fi 20501 20502 20503 windows_path="$new_path" 20504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20505 unix_path=`$CYGPATH -u "$windows_path"` 20506 new_path="$unix_path" 20507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20509 new_path="$unix_path" 20510 fi 20511 20512 if test "x$path" != "x$new_path"; then 20513 BOOT_JDK="$new_path" 20514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20515 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20516 fi 20517 20518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20520 20521 else 20522 # We're on a posix platform. Hooray! :) 20523 path="$BOOT_JDK" 20524 has_space=`$ECHO "$path" | $GREP " "` 20525 if test "x$has_space" != x; then 20526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20527 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20528 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20529 fi 20530 20531 # Use eval to expand a potential ~ 20532 eval path="$path" 20533 if test ! -f "$path" && test ! -d "$path"; then 20534 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20535 fi 20536 20537 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20538 fi 20539 20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20541 $as_echo_n "checking for Boot JDK... " >&6; } 20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20543 $as_echo "$BOOT_JDK" >&6; } 20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20545 $as_echo_n "checking Boot JDK version... " >&6; } 20546 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20548 $as_echo "$BOOT_JDK_VERSION" >&6; } 20549 fi # end check jdk version 20550 fi # end check rt.jar 20551 fi # end check javac 20552 fi # end check java 20553 fi # end check boot jdk found 20554 fi 20555 20556 # If that did not work out (e.g. too old), try explicit versions instead 20557 20558 if test "x$BOOT_JDK_FOUND" = xno; then 20559 # Now execute the test 20560 20561 if test -x /usr/libexec/java_home; then 20562 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20563 BOOT_JDK_FOUND=maybe 20564 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20565 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20566 fi 20567 20568 20569 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20570 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20571 # Do we have a bin/java? 20572 if test ! -x "$BOOT_JDK/bin/java"; then 20573 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20574 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20575 BOOT_JDK_FOUND=no 20576 else 20577 # Do we have a bin/javac? 20578 if test ! -x "$BOOT_JDK/bin/javac"; then 20579 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20581 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20582 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20583 BOOT_JDK_FOUND=no 20584 else 20585 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20586 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20587 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20588 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20589 BOOT_JDK_FOUND=no 20590 else 20591 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20592 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20593 20594 # Extra M4 quote needed to protect [] in grep expression. 20595 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20596 if test "x$FOUND_CORRECT_VERSION" = x; then 20597 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20599 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20600 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20601 BOOT_JDK_FOUND=no 20602 else 20603 # We're done! :-) 20604 BOOT_JDK_FOUND=yes 20605 20606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20607 20608 # Input might be given as Windows format, start by converting to 20609 # unix format. 20610 path="$BOOT_JDK" 20611 new_path=`$CYGPATH -u "$path"` 20612 20613 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20614 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20615 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20616 # "foo.exe" is OK but "foo" is an error. 20617 # 20618 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20619 # It is also a way to make sure we got the proper file name for the real test later on. 20620 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20621 if test "x$test_shortpath" = x; then 20622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20623 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20624 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20625 fi 20626 20627 # Call helper function which possibly converts this using DOS-style short mode. 20628 # If so, the updated path is stored in $new_path. 20629 20630 input_path="$new_path" 20631 # Check if we need to convert this using DOS-style short mode. If the path 20632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20633 # take no chances and rewrite it. 20634 # Note: m4 eats our [], so we need to use [ and ] instead. 20635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20636 if test "x$has_forbidden_chars" != x; then 20637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20638 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20639 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20640 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20641 # Going to short mode and back again did indeed matter. Since short mode is 20642 # case insensitive, let's make it lowercase to improve readability. 20643 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20644 # Now convert it back to Unix-stile (cygpath) 20645 input_path=`$CYGPATH -u "$shortmode_path"` 20646 new_path="$input_path" 20647 fi 20648 fi 20649 20650 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20651 if test "x$test_cygdrive_prefix" = x; then 20652 # As a simple fix, exclude /usr/bin since it's not a real path. 20653 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20654 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20655 # a path prefixed by /cygdrive for fixpath to work. 20656 new_path="$CYGWIN_ROOT_PATH$input_path" 20657 fi 20658 fi 20659 20660 20661 if test "x$path" != "x$new_path"; then 20662 BOOT_JDK="$new_path" 20663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20664 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20665 fi 20666 20667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20668 20669 path="$BOOT_JDK" 20670 has_colon=`$ECHO $path | $GREP ^.:` 20671 new_path="$path" 20672 if test "x$has_colon" = x; then 20673 # Not in mixed or Windows style, start by that. 20674 new_path=`cmd //c echo $path` 20675 fi 20676 20677 20678 input_path="$new_path" 20679 # Check if we need to convert this using DOS-style short mode. If the path 20680 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20681 # take no chances and rewrite it. 20682 # Note: m4 eats our [], so we need to use [ and ] instead. 20683 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20684 if test "x$has_forbidden_chars" != x; then 20685 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20686 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20687 fi 20688 20689 20690 windows_path="$new_path" 20691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20692 unix_path=`$CYGPATH -u "$windows_path"` 20693 new_path="$unix_path" 20694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20696 new_path="$unix_path" 20697 fi 20698 20699 if test "x$path" != "x$new_path"; then 20700 BOOT_JDK="$new_path" 20701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20702 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20703 fi 20704 20705 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20706 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20707 20708 else 20709 # We're on a posix platform. Hooray! :) 20710 path="$BOOT_JDK" 20711 has_space=`$ECHO "$path" | $GREP " "` 20712 if test "x$has_space" != x; then 20713 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20714 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20715 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20716 fi 20717 20718 # Use eval to expand a potential ~ 20719 eval path="$path" 20720 if test ! -f "$path" && test ! -d "$path"; then 20721 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20722 fi 20723 20724 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20725 fi 20726 20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20728 $as_echo_n "checking for Boot JDK... " >&6; } 20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20730 $as_echo "$BOOT_JDK" >&6; } 20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20732 $as_echo_n "checking Boot JDK version... " >&6; } 20733 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20735 $as_echo "$BOOT_JDK_VERSION" >&6; } 20736 fi # end check jdk version 20737 fi # end check rt.jar 20738 fi # end check javac 20739 fi # end check java 20740 fi # end check boot jdk found 20741 fi 20742 20743 20744 if test "x$BOOT_JDK_FOUND" = xno; then 20745 # Now execute the test 20746 20747 if test -x /usr/libexec/java_home; then 20748 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 20749 BOOT_JDK_FOUND=maybe 20750 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 20751 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 20752 fi 20753 20754 20755 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20756 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20757 # Do we have a bin/java? 20758 if test ! -x "$BOOT_JDK/bin/java"; then 20759 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20760 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20761 BOOT_JDK_FOUND=no 20762 else 20763 # Do we have a bin/javac? 20764 if test ! -x "$BOOT_JDK/bin/javac"; then 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20767 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20768 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20769 BOOT_JDK_FOUND=no 20770 else 20771 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20772 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20773 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20774 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20775 BOOT_JDK_FOUND=no 20776 else 20777 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20778 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20779 20780 # Extra M4 quote needed to protect [] in grep expression. 20781 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20782 if test "x$FOUND_CORRECT_VERSION" = x; then 20783 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20785 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20786 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20787 BOOT_JDK_FOUND=no 20788 else 20789 # We're done! :-) 20790 BOOT_JDK_FOUND=yes 20791 20792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20793 20794 # Input might be given as Windows format, start by converting to 20795 # unix format. 20796 path="$BOOT_JDK" 20797 new_path=`$CYGPATH -u "$path"` 20798 20799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20802 # "foo.exe" is OK but "foo" is an error. 20803 # 20804 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20805 # It is also a way to make sure we got the proper file name for the real test later on. 20806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20807 if test "x$test_shortpath" = x; then 20808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20809 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20810 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20811 fi 20812 20813 # Call helper function which possibly converts this using DOS-style short mode. 20814 # If so, the updated path is stored in $new_path. 20815 20816 input_path="$new_path" 20817 # Check if we need to convert this using DOS-style short mode. If the path 20818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20819 # take no chances and rewrite it. 20820 # Note: m4 eats our [], so we need to use [ and ] instead. 20821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20822 if test "x$has_forbidden_chars" != x; then 20823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20827 # Going to short mode and back again did indeed matter. Since short mode is 20828 # case insensitive, let's make it lowercase to improve readability. 20829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20830 # Now convert it back to Unix-stile (cygpath) 20831 input_path=`$CYGPATH -u "$shortmode_path"` 20832 new_path="$input_path" 20833 fi 20834 fi 20835 20836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20837 if test "x$test_cygdrive_prefix" = x; then 20838 # As a simple fix, exclude /usr/bin since it's not a real path. 20839 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20841 # a path prefixed by /cygdrive for fixpath to work. 20842 new_path="$CYGWIN_ROOT_PATH$input_path" 20843 fi 20844 fi 20845 20846 20847 if test "x$path" != "x$new_path"; then 20848 BOOT_JDK="$new_path" 20849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20850 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20851 fi 20852 20853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20854 20855 path="$BOOT_JDK" 20856 has_colon=`$ECHO $path | $GREP ^.:` 20857 new_path="$path" 20858 if test "x$has_colon" = x; then 20859 # Not in mixed or Windows style, start by that. 20860 new_path=`cmd //c echo $path` 20861 fi 20862 20863 20864 input_path="$new_path" 20865 # Check if we need to convert this using DOS-style short mode. If the path 20866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20867 # take no chances and rewrite it. 20868 # Note: m4 eats our [], so we need to use [ and ] instead. 20869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20870 if test "x$has_forbidden_chars" != x; then 20871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20873 fi 20874 20875 20876 windows_path="$new_path" 20877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20878 unix_path=`$CYGPATH -u "$windows_path"` 20879 new_path="$unix_path" 20880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20882 new_path="$unix_path" 20883 fi 20884 20885 if test "x$path" != "x$new_path"; then 20886 BOOT_JDK="$new_path" 20887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20888 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20889 fi 20890 20891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20893 20894 else 20895 # We're on a posix platform. Hooray! :) 20896 path="$BOOT_JDK" 20897 has_space=`$ECHO "$path" | $GREP " "` 20898 if test "x$has_space" != x; then 20899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20901 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20902 fi 20903 20904 # Use eval to expand a potential ~ 20905 eval path="$path" 20906 if test ! -f "$path" && test ! -d "$path"; then 20907 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20908 fi 20909 20910 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20911 fi 20912 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20914 $as_echo_n "checking for Boot JDK... " >&6; } 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20916 $as_echo "$BOOT_JDK" >&6; } 20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20918 $as_echo_n "checking Boot JDK version... " >&6; } 20919 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20921 $as_echo "$BOOT_JDK_VERSION" >&6; } 20922 fi # end check jdk version 20923 fi # end check rt.jar 20924 fi # end check javac 20925 fi # end check java 20926 fi # end check boot jdk found 20927 fi 20928 20929 20930 if test "x$BOOT_JDK_FOUND" = xno; then 20931 # Now execute the test 20932 20933 if test -x /usr/libexec/java_home; then 20934 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 20935 BOOT_JDK_FOUND=maybe 20936 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 20937 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 20938 fi 20939 20940 20941 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20942 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20943 # Do we have a bin/java? 20944 if test ! -x "$BOOT_JDK/bin/java"; then 20945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20947 BOOT_JDK_FOUND=no 20948 else 20949 # Do we have a bin/javac? 20950 if test ! -x "$BOOT_JDK/bin/javac"; then 20951 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20952 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20953 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20954 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20955 BOOT_JDK_FOUND=no 20956 else 20957 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20958 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20959 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20960 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20961 BOOT_JDK_FOUND=no 20962 else 20963 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20964 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20965 20966 # Extra M4 quote needed to protect [] in grep expression. 20967 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20968 if test "x$FOUND_CORRECT_VERSION" = x; then 20969 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20971 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20972 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20973 BOOT_JDK_FOUND=no 20974 else 20975 # We're done! :-) 20976 BOOT_JDK_FOUND=yes 20977 20978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20979 20980 # Input might be given as Windows format, start by converting to 20981 # unix format. 20982 path="$BOOT_JDK" 20983 new_path=`$CYGPATH -u "$path"` 20984 20985 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20986 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20987 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20988 # "foo.exe" is OK but "foo" is an error. 20989 # 20990 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20991 # It is also a way to make sure we got the proper file name for the real test later on. 20992 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20993 if test "x$test_shortpath" = x; then 20994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20995 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20996 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20997 fi 20998 20999 # Call helper function which possibly converts this using DOS-style short mode. 21000 # If so, the updated path is stored in $new_path. 21001 21002 input_path="$new_path" 21003 # Check if we need to convert this using DOS-style short mode. If the path 21004 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21005 # take no chances and rewrite it. 21006 # Note: m4 eats our [], so we need to use [ and ] instead. 21007 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21008 if test "x$has_forbidden_chars" != x; then 21009 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21010 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21011 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21012 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21013 # Going to short mode and back again did indeed matter. Since short mode is 21014 # case insensitive, let's make it lowercase to improve readability. 21015 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21016 # Now convert it back to Unix-stile (cygpath) 21017 input_path=`$CYGPATH -u "$shortmode_path"` 21018 new_path="$input_path" 21019 fi 21020 fi 21021 21022 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21023 if test "x$test_cygdrive_prefix" = x; then 21024 # As a simple fix, exclude /usr/bin since it's not a real path. 21025 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21026 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21027 # a path prefixed by /cygdrive for fixpath to work. 21028 new_path="$CYGWIN_ROOT_PATH$input_path" 21029 fi 21030 fi 21031 21032 21033 if test "x$path" != "x$new_path"; then 21034 BOOT_JDK="$new_path" 21035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21037 fi 21038 21039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21040 21041 path="$BOOT_JDK" 21042 has_colon=`$ECHO $path | $GREP ^.:` 21043 new_path="$path" 21044 if test "x$has_colon" = x; then 21045 # Not in mixed or Windows style, start by that. 21046 new_path=`cmd //c echo $path` 21047 fi 21048 21049 21050 input_path="$new_path" 21051 # Check if we need to convert this using DOS-style short mode. If the path 21052 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21053 # take no chances and rewrite it. 21054 # Note: m4 eats our [], so we need to use [ and ] instead. 21055 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21056 if test "x$has_forbidden_chars" != x; then 21057 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21058 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21059 fi 21060 21061 21062 windows_path="$new_path" 21063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21064 unix_path=`$CYGPATH -u "$windows_path"` 21065 new_path="$unix_path" 21066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21068 new_path="$unix_path" 21069 fi 21070 21071 if test "x$path" != "x$new_path"; then 21072 BOOT_JDK="$new_path" 21073 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21075 fi 21076 21077 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21078 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21079 21080 else 21081 # We're on a posix platform. Hooray! :) 21082 path="$BOOT_JDK" 21083 has_space=`$ECHO "$path" | $GREP " "` 21084 if test "x$has_space" != x; then 21085 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21086 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21087 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21088 fi 21089 21090 # Use eval to expand a potential ~ 21091 eval path="$path" 21092 if test ! -f "$path" && test ! -d "$path"; then 21093 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21094 fi 21095 21096 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21097 fi 21098 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21100 $as_echo_n "checking for Boot JDK... " >&6; } 21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21102 $as_echo "$BOOT_JDK" >&6; } 21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21104 $as_echo_n "checking Boot JDK version... " >&6; } 21105 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21107 $as_echo "$BOOT_JDK_VERSION" >&6; } 21108 fi # end check jdk version 21109 fi # end check rt.jar 21110 fi # end check javac 21111 fi # end check java 21112 fi # end check boot jdk found 21113 fi 21114 21115 fi 21116 21117 21118 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21119 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21120 # Do we have a bin/java? 21121 if test ! -x "$BOOT_JDK/bin/java"; then 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21123 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21124 BOOT_JDK_FOUND=no 21125 else 21126 # Do we have a bin/javac? 21127 if test ! -x "$BOOT_JDK/bin/javac"; then 21128 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21129 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21130 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21131 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21132 BOOT_JDK_FOUND=no 21133 else 21134 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21135 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21137 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21138 BOOT_JDK_FOUND=no 21139 else 21140 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21141 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21142 21143 # Extra M4 quote needed to protect [] in grep expression. 21144 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21145 if test "x$FOUND_CORRECT_VERSION" = x; then 21146 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21148 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21149 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21150 BOOT_JDK_FOUND=no 21151 else 21152 # We're done! :-) 21153 BOOT_JDK_FOUND=yes 21154 21155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21156 21157 # Input might be given as Windows format, start by converting to 21158 # unix format. 21159 path="$BOOT_JDK" 21160 new_path=`$CYGPATH -u "$path"` 21161 21162 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21163 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21164 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21165 # "foo.exe" is OK but "foo" is an error. 21166 # 21167 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21168 # It is also a way to make sure we got the proper file name for the real test later on. 21169 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21170 if test "x$test_shortpath" = x; then 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21172 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21173 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21174 fi 21175 21176 # Call helper function which possibly converts this using DOS-style short mode. 21177 # If so, the updated path is stored in $new_path. 21178 21179 input_path="$new_path" 21180 # Check if we need to convert this using DOS-style short mode. If the path 21181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21182 # take no chances and rewrite it. 21183 # Note: m4 eats our [], so we need to use [ and ] instead. 21184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21185 if test "x$has_forbidden_chars" != x; then 21186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21187 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21188 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21189 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21190 # Going to short mode and back again did indeed matter. Since short mode is 21191 # case insensitive, let's make it lowercase to improve readability. 21192 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21193 # Now convert it back to Unix-stile (cygpath) 21194 input_path=`$CYGPATH -u "$shortmode_path"` 21195 new_path="$input_path" 21196 fi 21197 fi 21198 21199 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21200 if test "x$test_cygdrive_prefix" = x; then 21201 # As a simple fix, exclude /usr/bin since it's not a real path. 21202 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21203 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21204 # a path prefixed by /cygdrive for fixpath to work. 21205 new_path="$CYGWIN_ROOT_PATH$input_path" 21206 fi 21207 fi 21208 21209 21210 if test "x$path" != "x$new_path"; then 21211 BOOT_JDK="$new_path" 21212 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21213 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21214 fi 21215 21216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21217 21218 path="$BOOT_JDK" 21219 has_colon=`$ECHO $path | $GREP ^.:` 21220 new_path="$path" 21221 if test "x$has_colon" = x; then 21222 # Not in mixed or Windows style, start by that. 21223 new_path=`cmd //c echo $path` 21224 fi 21225 21226 21227 input_path="$new_path" 21228 # Check if we need to convert this using DOS-style short mode. If the path 21229 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21230 # take no chances and rewrite it. 21231 # Note: m4 eats our [], so we need to use [ and ] instead. 21232 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21233 if test "x$has_forbidden_chars" != x; then 21234 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21235 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21236 fi 21237 21238 21239 windows_path="$new_path" 21240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21241 unix_path=`$CYGPATH -u "$windows_path"` 21242 new_path="$unix_path" 21243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21244 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21245 new_path="$unix_path" 21246 fi 21247 21248 if test "x$path" != "x$new_path"; then 21249 BOOT_JDK="$new_path" 21250 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21251 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21252 fi 21253 21254 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21255 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21256 21257 else 21258 # We're on a posix platform. Hooray! :) 21259 path="$BOOT_JDK" 21260 has_space=`$ECHO "$path" | $GREP " "` 21261 if test "x$has_space" != x; then 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21263 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21264 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21265 fi 21266 21267 # Use eval to expand a potential ~ 21268 eval path="$path" 21269 if test ! -f "$path" && test ! -d "$path"; then 21270 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21271 fi 21272 21273 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21274 fi 21275 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21277 $as_echo_n "checking for Boot JDK... " >&6; } 21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21279 $as_echo "$BOOT_JDK" >&6; } 21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21281 $as_echo_n "checking Boot JDK version... " >&6; } 21282 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21284 $as_echo "$BOOT_JDK_VERSION" >&6; } 21285 fi # end check jdk version 21286 fi # end check rt.jar 21287 fi # end check javac 21288 fi # end check java 21289 fi # end check boot jdk found 21290 fi 21291 21292 21293 # Test: Is $JAVA_HOME set? 21294 21295 if test "x$BOOT_JDK_FOUND" = xno; then 21296 # Now execute the test 21297 21298 if test "x$JAVA_HOME" != x; then 21299 JAVA_HOME_PROCESSED="$JAVA_HOME" 21300 21301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21302 21303 # Input might be given as Windows format, start by converting to 21304 # unix format. 21305 path="$JAVA_HOME_PROCESSED" 21306 new_path=`$CYGPATH -u "$path"` 21307 21308 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21309 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21310 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21311 # "foo.exe" is OK but "foo" is an error. 21312 # 21313 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21314 # It is also a way to make sure we got the proper file name for the real test later on. 21315 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21316 if test "x$test_shortpath" = x; then 21317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21318 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21319 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21320 fi 21321 21322 # Call helper function which possibly converts this using DOS-style short mode. 21323 # If so, the updated path is stored in $new_path. 21324 21325 input_path="$new_path" 21326 # Check if we need to convert this using DOS-style short mode. If the path 21327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21328 # take no chances and rewrite it. 21329 # Note: m4 eats our [], so we need to use [ and ] instead. 21330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21331 if test "x$has_forbidden_chars" != x; then 21332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21333 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21334 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21335 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21336 # Going to short mode and back again did indeed matter. Since short mode is 21337 # case insensitive, let's make it lowercase to improve readability. 21338 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21339 # Now convert it back to Unix-stile (cygpath) 21340 input_path=`$CYGPATH -u "$shortmode_path"` 21341 new_path="$input_path" 21342 fi 21343 fi 21344 21345 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21346 if test "x$test_cygdrive_prefix" = x; then 21347 # As a simple fix, exclude /usr/bin since it's not a real path. 21348 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21349 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21350 # a path prefixed by /cygdrive for fixpath to work. 21351 new_path="$CYGWIN_ROOT_PATH$input_path" 21352 fi 21353 fi 21354 21355 21356 if test "x$path" != "x$new_path"; then 21357 JAVA_HOME_PROCESSED="$new_path" 21358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21359 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21360 fi 21361 21362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21363 21364 path="$JAVA_HOME_PROCESSED" 21365 has_colon=`$ECHO $path | $GREP ^.:` 21366 new_path="$path" 21367 if test "x$has_colon" = x; then 21368 # Not in mixed or Windows style, start by that. 21369 new_path=`cmd //c echo $path` 21370 fi 21371 21372 21373 input_path="$new_path" 21374 # Check if we need to convert this using DOS-style short mode. If the path 21375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21376 # take no chances and rewrite it. 21377 # Note: m4 eats our [], so we need to use [ and ] instead. 21378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21379 if test "x$has_forbidden_chars" != x; then 21380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21381 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21382 fi 21383 21384 21385 windows_path="$new_path" 21386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21387 unix_path=`$CYGPATH -u "$windows_path"` 21388 new_path="$unix_path" 21389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21391 new_path="$unix_path" 21392 fi 21393 21394 if test "x$path" != "x$new_path"; then 21395 JAVA_HOME_PROCESSED="$new_path" 21396 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21397 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21398 fi 21399 21400 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21401 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21402 21403 else 21404 # We're on a posix platform. Hooray! :) 21405 path="$JAVA_HOME_PROCESSED" 21406 has_space=`$ECHO "$path" | $GREP " "` 21407 if test "x$has_space" != x; then 21408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21409 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21410 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21411 fi 21412 21413 # Use eval to expand a potential ~ 21414 eval path="$path" 21415 if test ! -f "$path" && test ! -d "$path"; then 21416 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21417 fi 21418 21419 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21420 fi 21421 21422 if test ! -d "$JAVA_HOME_PROCESSED"; then 21423 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21424 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21425 else 21426 # Aha, the user has set a JAVA_HOME 21427 # let us use that as the Boot JDK. 21428 BOOT_JDK="$JAVA_HOME_PROCESSED" 21429 BOOT_JDK_FOUND=maybe 21430 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21431 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21432 fi 21433 fi 21434 21435 21436 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21437 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21438 # Do we have a bin/java? 21439 if test ! -x "$BOOT_JDK/bin/java"; then 21440 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21442 BOOT_JDK_FOUND=no 21443 else 21444 # Do we have a bin/javac? 21445 if test ! -x "$BOOT_JDK/bin/javac"; then 21446 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21448 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21449 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21450 BOOT_JDK_FOUND=no 21451 else 21452 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21453 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21455 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21456 BOOT_JDK_FOUND=no 21457 else 21458 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21459 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21460 21461 # Extra M4 quote needed to protect [] in grep expression. 21462 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21463 if test "x$FOUND_CORRECT_VERSION" = x; then 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21466 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21467 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21468 BOOT_JDK_FOUND=no 21469 else 21470 # We're done! :-) 21471 BOOT_JDK_FOUND=yes 21472 21473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21474 21475 # Input might be given as Windows format, start by converting to 21476 # unix format. 21477 path="$BOOT_JDK" 21478 new_path=`$CYGPATH -u "$path"` 21479 21480 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21481 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21482 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21483 # "foo.exe" is OK but "foo" is an error. 21484 # 21485 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21486 # It is also a way to make sure we got the proper file name for the real test later on. 21487 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21488 if test "x$test_shortpath" = x; then 21489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21490 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21491 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21492 fi 21493 21494 # Call helper function which possibly converts this using DOS-style short mode. 21495 # If so, the updated path is stored in $new_path. 21496 21497 input_path="$new_path" 21498 # Check if we need to convert this using DOS-style short mode. If the path 21499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21500 # take no chances and rewrite it. 21501 # Note: m4 eats our [], so we need to use [ and ] instead. 21502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21503 if test "x$has_forbidden_chars" != x; then 21504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21505 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21506 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21507 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21508 # Going to short mode and back again did indeed matter. Since short mode is 21509 # case insensitive, let's make it lowercase to improve readability. 21510 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21511 # Now convert it back to Unix-stile (cygpath) 21512 input_path=`$CYGPATH -u "$shortmode_path"` 21513 new_path="$input_path" 21514 fi 21515 fi 21516 21517 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21518 if test "x$test_cygdrive_prefix" = x; then 21519 # As a simple fix, exclude /usr/bin since it's not a real path. 21520 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21521 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21522 # a path prefixed by /cygdrive for fixpath to work. 21523 new_path="$CYGWIN_ROOT_PATH$input_path" 21524 fi 21525 fi 21526 21527 21528 if test "x$path" != "x$new_path"; then 21529 BOOT_JDK="$new_path" 21530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21531 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21532 fi 21533 21534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21535 21536 path="$BOOT_JDK" 21537 has_colon=`$ECHO $path | $GREP ^.:` 21538 new_path="$path" 21539 if test "x$has_colon" = x; then 21540 # Not in mixed or Windows style, start by that. 21541 new_path=`cmd //c echo $path` 21542 fi 21543 21544 21545 input_path="$new_path" 21546 # Check if we need to convert this using DOS-style short mode. If the path 21547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21548 # take no chances and rewrite it. 21549 # Note: m4 eats our [], so we need to use [ and ] instead. 21550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21551 if test "x$has_forbidden_chars" != x; then 21552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21553 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21554 fi 21555 21556 21557 windows_path="$new_path" 21558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21559 unix_path=`$CYGPATH -u "$windows_path"` 21560 new_path="$unix_path" 21561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21563 new_path="$unix_path" 21564 fi 21565 21566 if test "x$path" != "x$new_path"; then 21567 BOOT_JDK="$new_path" 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21569 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21570 fi 21571 21572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21574 21575 else 21576 # We're on a posix platform. Hooray! :) 21577 path="$BOOT_JDK" 21578 has_space=`$ECHO "$path" | $GREP " "` 21579 if test "x$has_space" != x; then 21580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21581 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21582 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21583 fi 21584 21585 # Use eval to expand a potential ~ 21586 eval path="$path" 21587 if test ! -f "$path" && test ! -d "$path"; then 21588 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21589 fi 21590 21591 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21592 fi 21593 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21595 $as_echo_n "checking for Boot JDK... " >&6; } 21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21597 $as_echo "$BOOT_JDK" >&6; } 21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21599 $as_echo_n "checking Boot JDK version... " >&6; } 21600 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21602 $as_echo "$BOOT_JDK_VERSION" >&6; } 21603 fi # end check jdk version 21604 fi # end check rt.jar 21605 fi # end check javac 21606 fi # end check java 21607 fi # end check boot jdk found 21608 fi 21609 21610 21611 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21612 21613 if test "x$BOOT_JDK_FOUND" = xno; then 21614 # Now execute the test 21615 21616 # Extract the first word of "javac", so it can be a program name with args. 21617 set dummy javac; ac_word=$2 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21619 $as_echo_n "checking for $ac_word... " >&6; } 21620 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21621 $as_echo_n "(cached) " >&6 21622 else 21623 case $JAVAC_CHECK in 21624 [\\/]* | ?:[\\/]*) 21625 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21626 ;; 21627 *) 21628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21629 for as_dir in $PATH 21630 do 21631 IFS=$as_save_IFS 21632 test -z "$as_dir" && as_dir=. 21633 for ac_exec_ext in '' $ac_executable_extensions; do 21634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21635 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21637 break 2 21638 fi 21639 done 21640 done 21641 IFS=$as_save_IFS 21642 21643 ;; 21644 esac 21645 fi 21646 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21647 if test -n "$JAVAC_CHECK"; then 21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21649 $as_echo "$JAVAC_CHECK" >&6; } 21650 else 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21652 $as_echo "no" >&6; } 21653 fi 21654 21655 21656 # Extract the first word of "java", so it can be a program name with args. 21657 set dummy java; ac_word=$2 21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21659 $as_echo_n "checking for $ac_word... " >&6; } 21660 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21661 $as_echo_n "(cached) " >&6 21662 else 21663 case $JAVA_CHECK in 21664 [\\/]* | ?:[\\/]*) 21665 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21666 ;; 21667 *) 21668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21669 for as_dir in $PATH 21670 do 21671 IFS=$as_save_IFS 21672 test -z "$as_dir" && as_dir=. 21673 for ac_exec_ext in '' $ac_executable_extensions; do 21674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21675 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21677 break 2 21678 fi 21679 done 21680 done 21681 IFS=$as_save_IFS 21682 21683 ;; 21684 esac 21685 fi 21686 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21687 if test -n "$JAVA_CHECK"; then 21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21689 $as_echo "$JAVA_CHECK" >&6; } 21690 else 21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21692 $as_echo "no" >&6; } 21693 fi 21694 21695 21696 BINARY="$JAVAC_CHECK" 21697 if test "x$JAVAC_CHECK" = x; then 21698 BINARY="$JAVA_CHECK" 21699 fi 21700 if test "x$BINARY" != x; then 21701 # So there is a java(c) binary, it might be part of a JDK. 21702 # Lets find the JDK/JRE directory by following symbolic links. 21703 # Linux/GNU systems often have links from /usr/bin/java to 21704 # /etc/alternatives/java to the real JDK binary. 21705 21706 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21707 # Follow a chain of symbolic links. Use readlink 21708 # where it exists, else fall back to horribly 21709 # complicated shell code. 21710 if test "x$READLINK_TESTED" != yes; then 21711 # On MacOSX there is a readlink tool with a different 21712 # purpose than the GNU readlink tool. Check the found readlink. 21713 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21714 if test "x$ISGNU" = x; then 21715 # A readlink that we do not know how to use. 21716 # Are there other non-GNU readlinks out there? 21717 READLINK_TESTED=yes 21718 READLINK= 21719 fi 21720 fi 21721 21722 if test "x$READLINK" != x; then 21723 BINARY=`$READLINK -f $BINARY` 21724 else 21725 # Save the current directory for restoring afterwards 21726 STARTDIR=$PWD 21727 COUNTER=0 21728 sym_link_dir=`$DIRNAME $BINARY` 21729 sym_link_file=`$BASENAME $BINARY` 21730 cd $sym_link_dir 21731 # Use -P flag to resolve symlinks in directories. 21732 cd `$THEPWDCMD -P` 21733 sym_link_dir=`$THEPWDCMD -P` 21734 # Resolve file symlinks 21735 while test $COUNTER -lt 20; do 21736 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21737 if test "x$ISLINK" == x; then 21738 # This is not a symbolic link! We are done! 21739 break 21740 fi 21741 # Again resolve directory symlinks since the target of the just found 21742 # link could be in a different directory 21743 cd `$DIRNAME $ISLINK` 21744 sym_link_dir=`$THEPWDCMD -P` 21745 sym_link_file=`$BASENAME $ISLINK` 21746 let COUNTER=COUNTER+1 21747 done 21748 cd $STARTDIR 21749 BINARY=$sym_link_dir/$sym_link_file 21750 fi 21751 fi 21752 21753 BOOT_JDK=`dirname "$BINARY"` 21754 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21755 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21756 # Looks like we found ourselves an JDK 21757 BOOT_JDK_FOUND=maybe 21758 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21759 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21760 fi 21761 fi 21762 21763 21764 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21765 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21766 # Do we have a bin/java? 21767 if test ! -x "$BOOT_JDK/bin/java"; then 21768 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21770 BOOT_JDK_FOUND=no 21771 else 21772 # Do we have a bin/javac? 21773 if test ! -x "$BOOT_JDK/bin/javac"; then 21774 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21776 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21777 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21778 BOOT_JDK_FOUND=no 21779 else 21780 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21781 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21784 BOOT_JDK_FOUND=no 21785 else 21786 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21787 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21788 21789 # Extra M4 quote needed to protect [] in grep expression. 21790 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21791 if test "x$FOUND_CORRECT_VERSION" = x; then 21792 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21795 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21796 BOOT_JDK_FOUND=no 21797 else 21798 # We're done! :-) 21799 BOOT_JDK_FOUND=yes 21800 21801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21802 21803 # Input might be given as Windows format, start by converting to 21804 # unix format. 21805 path="$BOOT_JDK" 21806 new_path=`$CYGPATH -u "$path"` 21807 21808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21811 # "foo.exe" is OK but "foo" is an error. 21812 # 21813 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21814 # It is also a way to make sure we got the proper file name for the real test later on. 21815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21816 if test "x$test_shortpath" = x; then 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21819 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21820 fi 21821 21822 # Call helper function which possibly converts this using DOS-style short mode. 21823 # If so, the updated path is stored in $new_path. 21824 21825 input_path="$new_path" 21826 # Check if we need to convert this using DOS-style short mode. If the path 21827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21828 # take no chances and rewrite it. 21829 # Note: m4 eats our [], so we need to use [ and ] instead. 21830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21831 if test "x$has_forbidden_chars" != x; then 21832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21833 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21834 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21835 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21836 # Going to short mode and back again did indeed matter. Since short mode is 21837 # case insensitive, let's make it lowercase to improve readability. 21838 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21839 # Now convert it back to Unix-stile (cygpath) 21840 input_path=`$CYGPATH -u "$shortmode_path"` 21841 new_path="$input_path" 21842 fi 21843 fi 21844 21845 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21846 if test "x$test_cygdrive_prefix" = x; then 21847 # As a simple fix, exclude /usr/bin since it's not a real path. 21848 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21849 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21850 # a path prefixed by /cygdrive for fixpath to work. 21851 new_path="$CYGWIN_ROOT_PATH$input_path" 21852 fi 21853 fi 21854 21855 21856 if test "x$path" != "x$new_path"; then 21857 BOOT_JDK="$new_path" 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21860 fi 21861 21862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21863 21864 path="$BOOT_JDK" 21865 has_colon=`$ECHO $path | $GREP ^.:` 21866 new_path="$path" 21867 if test "x$has_colon" = x; then 21868 # Not in mixed or Windows style, start by that. 21869 new_path=`cmd //c echo $path` 21870 fi 21871 21872 21873 input_path="$new_path" 21874 # Check if we need to convert this using DOS-style short mode. If the path 21875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21876 # take no chances and rewrite it. 21877 # Note: m4 eats our [], so we need to use [ and ] instead. 21878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21879 if test "x$has_forbidden_chars" != x; then 21880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21881 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21882 fi 21883 21884 21885 windows_path="$new_path" 21886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21887 unix_path=`$CYGPATH -u "$windows_path"` 21888 new_path="$unix_path" 21889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21891 new_path="$unix_path" 21892 fi 21893 21894 if test "x$path" != "x$new_path"; then 21895 BOOT_JDK="$new_path" 21896 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21897 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21898 fi 21899 21900 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21901 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21902 21903 else 21904 # We're on a posix platform. Hooray! :) 21905 path="$BOOT_JDK" 21906 has_space=`$ECHO "$path" | $GREP " "` 21907 if test "x$has_space" != x; then 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21909 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21910 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21911 fi 21912 21913 # Use eval to expand a potential ~ 21914 eval path="$path" 21915 if test ! -f "$path" && test ! -d "$path"; then 21916 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21917 fi 21918 21919 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21920 fi 21921 21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21923 $as_echo_n "checking for Boot JDK... " >&6; } 21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21925 $as_echo "$BOOT_JDK" >&6; } 21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21927 $as_echo_n "checking Boot JDK version... " >&6; } 21928 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21930 $as_echo "$BOOT_JDK_VERSION" >&6; } 21931 fi # end check jdk version 21932 fi # end check rt.jar 21933 fi # end check javac 21934 fi # end check java 21935 fi # end check boot jdk found 21936 fi 21937 21938 21939 # Test: Is there a JDK installed in default, well-known locations? 21940 21941 if test "x$BOOT_JDK_FOUND" = xno; then 21942 # Now execute the test 21943 21944 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21945 21946 if test "x$BOOT_JDK_FOUND" = xno; then 21947 # Now execute the test 21948 21949 if test "x$ProgramW6432" != x; then 21950 VIRTUAL_DIR="$ProgramW6432/Java" 21951 21952 windows_path="$VIRTUAL_DIR" 21953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21954 unix_path=`$CYGPATH -u "$windows_path"` 21955 VIRTUAL_DIR="$unix_path" 21956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21958 VIRTUAL_DIR="$unix_path" 21959 fi 21960 21961 21962 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21963 BOOT_JDK_SUFFIX="" 21964 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21965 if test "x$ALL_JDKS_FOUND" != x; then 21966 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21967 21968 if test "x$BOOT_JDK_FOUND" = xno; then 21969 # Now execute the test 21970 21971 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21972 if test -d "$BOOT_JDK"; then 21973 BOOT_JDK_FOUND=maybe 21974 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21975 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21976 fi 21977 21978 21979 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21980 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21981 # Do we have a bin/java? 21982 if test ! -x "$BOOT_JDK/bin/java"; then 21983 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21984 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21985 BOOT_JDK_FOUND=no 21986 else 21987 # Do we have a bin/javac? 21988 if test ! -x "$BOOT_JDK/bin/javac"; then 21989 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21992 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21993 BOOT_JDK_FOUND=no 21994 else 21995 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21996 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21999 BOOT_JDK_FOUND=no 22000 else 22001 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22002 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22003 22004 # Extra M4 quote needed to protect [] in grep expression. 22005 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22006 if test "x$FOUND_CORRECT_VERSION" = x; then 22007 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22009 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22010 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22011 BOOT_JDK_FOUND=no 22012 else 22013 # We're done! :-) 22014 BOOT_JDK_FOUND=yes 22015 22016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22017 22018 # Input might be given as Windows format, start by converting to 22019 # unix format. 22020 path="$BOOT_JDK" 22021 new_path=`$CYGPATH -u "$path"` 22022 22023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22026 # "foo.exe" is OK but "foo" is an error. 22027 # 22028 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22029 # It is also a way to make sure we got the proper file name for the real test later on. 22030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22031 if test "x$test_shortpath" = x; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22033 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22034 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22035 fi 22036 22037 # Call helper function which possibly converts this using DOS-style short mode. 22038 # If so, the updated path is stored in $new_path. 22039 22040 input_path="$new_path" 22041 # Check if we need to convert this using DOS-style short mode. If the path 22042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22043 # take no chances and rewrite it. 22044 # Note: m4 eats our [], so we need to use [ and ] instead. 22045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22046 if test "x$has_forbidden_chars" != x; then 22047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22051 # Going to short mode and back again did indeed matter. Since short mode is 22052 # case insensitive, let's make it lowercase to improve readability. 22053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22054 # Now convert it back to Unix-stile (cygpath) 22055 input_path=`$CYGPATH -u "$shortmode_path"` 22056 new_path="$input_path" 22057 fi 22058 fi 22059 22060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22061 if test "x$test_cygdrive_prefix" = x; then 22062 # As a simple fix, exclude /usr/bin since it's not a real path. 22063 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22065 # a path prefixed by /cygdrive for fixpath to work. 22066 new_path="$CYGWIN_ROOT_PATH$input_path" 22067 fi 22068 fi 22069 22070 22071 if test "x$path" != "x$new_path"; then 22072 BOOT_JDK="$new_path" 22073 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22075 fi 22076 22077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22078 22079 path="$BOOT_JDK" 22080 has_colon=`$ECHO $path | $GREP ^.:` 22081 new_path="$path" 22082 if test "x$has_colon" = x; then 22083 # Not in mixed or Windows style, start by that. 22084 new_path=`cmd //c echo $path` 22085 fi 22086 22087 22088 input_path="$new_path" 22089 # Check if we need to convert this using DOS-style short mode. If the path 22090 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22091 # take no chances and rewrite it. 22092 # Note: m4 eats our [], so we need to use [ and ] instead. 22093 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22094 if test "x$has_forbidden_chars" != x; then 22095 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22096 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22097 fi 22098 22099 22100 windows_path="$new_path" 22101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22102 unix_path=`$CYGPATH -u "$windows_path"` 22103 new_path="$unix_path" 22104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22106 new_path="$unix_path" 22107 fi 22108 22109 if test "x$path" != "x$new_path"; then 22110 BOOT_JDK="$new_path" 22111 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22113 fi 22114 22115 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22116 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22117 22118 else 22119 # We're on a posix platform. Hooray! :) 22120 path="$BOOT_JDK" 22121 has_space=`$ECHO "$path" | $GREP " "` 22122 if test "x$has_space" != x; then 22123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22125 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22126 fi 22127 22128 # Use eval to expand a potential ~ 22129 eval path="$path" 22130 if test ! -f "$path" && test ! -d "$path"; then 22131 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22132 fi 22133 22134 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22135 fi 22136 22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22138 $as_echo_n "checking for Boot JDK... " >&6; } 22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22140 $as_echo "$BOOT_JDK" >&6; } 22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22142 $as_echo_n "checking Boot JDK version... " >&6; } 22143 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22145 $as_echo "$BOOT_JDK_VERSION" >&6; } 22146 fi # end check jdk version 22147 fi # end check rt.jar 22148 fi # end check javac 22149 fi # end check java 22150 fi # end check boot jdk found 22151 fi 22152 22153 done 22154 fi 22155 22156 fi 22157 22158 22159 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22160 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22161 # Do we have a bin/java? 22162 if test ! -x "$BOOT_JDK/bin/java"; then 22163 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22165 BOOT_JDK_FOUND=no 22166 else 22167 # Do we have a bin/javac? 22168 if test ! -x "$BOOT_JDK/bin/javac"; then 22169 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22170 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22171 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22172 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22173 BOOT_JDK_FOUND=no 22174 else 22175 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22176 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22178 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22179 BOOT_JDK_FOUND=no 22180 else 22181 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22182 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22183 22184 # Extra M4 quote needed to protect [] in grep expression. 22185 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22186 if test "x$FOUND_CORRECT_VERSION" = x; then 22187 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22190 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22191 BOOT_JDK_FOUND=no 22192 else 22193 # We're done! :-) 22194 BOOT_JDK_FOUND=yes 22195 22196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22197 22198 # Input might be given as Windows format, start by converting to 22199 # unix format. 22200 path="$BOOT_JDK" 22201 new_path=`$CYGPATH -u "$path"` 22202 22203 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22204 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22205 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22206 # "foo.exe" is OK but "foo" is an error. 22207 # 22208 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22209 # It is also a way to make sure we got the proper file name for the real test later on. 22210 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22211 if test "x$test_shortpath" = x; then 22212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22213 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22214 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22215 fi 22216 22217 # Call helper function which possibly converts this using DOS-style short mode. 22218 # If so, the updated path is stored in $new_path. 22219 22220 input_path="$new_path" 22221 # Check if we need to convert this using DOS-style short mode. If the path 22222 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22223 # take no chances and rewrite it. 22224 # Note: m4 eats our [], so we need to use [ and ] instead. 22225 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22226 if test "x$has_forbidden_chars" != x; then 22227 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22228 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22229 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22230 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22231 # Going to short mode and back again did indeed matter. Since short mode is 22232 # case insensitive, let's make it lowercase to improve readability. 22233 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22234 # Now convert it back to Unix-stile (cygpath) 22235 input_path=`$CYGPATH -u "$shortmode_path"` 22236 new_path="$input_path" 22237 fi 22238 fi 22239 22240 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22241 if test "x$test_cygdrive_prefix" = x; then 22242 # As a simple fix, exclude /usr/bin since it's not a real path. 22243 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22244 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22245 # a path prefixed by /cygdrive for fixpath to work. 22246 new_path="$CYGWIN_ROOT_PATH$input_path" 22247 fi 22248 fi 22249 22250 22251 if test "x$path" != "x$new_path"; then 22252 BOOT_JDK="$new_path" 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22254 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22255 fi 22256 22257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22258 22259 path="$BOOT_JDK" 22260 has_colon=`$ECHO $path | $GREP ^.:` 22261 new_path="$path" 22262 if test "x$has_colon" = x; then 22263 # Not in mixed or Windows style, start by that. 22264 new_path=`cmd //c echo $path` 22265 fi 22266 22267 22268 input_path="$new_path" 22269 # Check if we need to convert this using DOS-style short mode. If the path 22270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22271 # take no chances and rewrite it. 22272 # Note: m4 eats our [], so we need to use [ and ] instead. 22273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22274 if test "x$has_forbidden_chars" != x; then 22275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22276 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22277 fi 22278 22279 22280 windows_path="$new_path" 22281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22282 unix_path=`$CYGPATH -u "$windows_path"` 22283 new_path="$unix_path" 22284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22286 new_path="$unix_path" 22287 fi 22288 22289 if test "x$path" != "x$new_path"; then 22290 BOOT_JDK="$new_path" 22291 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22292 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22293 fi 22294 22295 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22296 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22297 22298 else 22299 # We're on a posix platform. Hooray! :) 22300 path="$BOOT_JDK" 22301 has_space=`$ECHO "$path" | $GREP " "` 22302 if test "x$has_space" != x; then 22303 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22304 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22305 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22306 fi 22307 22308 # Use eval to expand a potential ~ 22309 eval path="$path" 22310 if test ! -f "$path" && test ! -d "$path"; then 22311 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22312 fi 22313 22314 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22315 fi 22316 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22318 $as_echo_n "checking for Boot JDK... " >&6; } 22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22320 $as_echo "$BOOT_JDK" >&6; } 22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22322 $as_echo_n "checking Boot JDK version... " >&6; } 22323 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22325 $as_echo "$BOOT_JDK_VERSION" >&6; } 22326 fi # end check jdk version 22327 fi # end check rt.jar 22328 fi # end check javac 22329 fi # end check java 22330 fi # end check boot jdk found 22331 fi 22332 22333 22334 if test "x$BOOT_JDK_FOUND" = xno; then 22335 # Now execute the test 22336 22337 if test "x$PROGRAMW6432" != x; then 22338 VIRTUAL_DIR="$PROGRAMW6432/Java" 22339 22340 windows_path="$VIRTUAL_DIR" 22341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22342 unix_path=`$CYGPATH -u "$windows_path"` 22343 VIRTUAL_DIR="$unix_path" 22344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22346 VIRTUAL_DIR="$unix_path" 22347 fi 22348 22349 22350 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22351 BOOT_JDK_SUFFIX="" 22352 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22353 if test "x$ALL_JDKS_FOUND" != x; then 22354 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22355 22356 if test "x$BOOT_JDK_FOUND" = xno; then 22357 # Now execute the test 22358 22359 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22360 if test -d "$BOOT_JDK"; then 22361 BOOT_JDK_FOUND=maybe 22362 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22363 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22364 fi 22365 22366 22367 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22368 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22369 # Do we have a bin/java? 22370 if test ! -x "$BOOT_JDK/bin/java"; then 22371 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22372 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22373 BOOT_JDK_FOUND=no 22374 else 22375 # Do we have a bin/javac? 22376 if test ! -x "$BOOT_JDK/bin/javac"; then 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22378 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22379 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22380 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22381 BOOT_JDK_FOUND=no 22382 else 22383 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22384 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22385 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22386 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22387 BOOT_JDK_FOUND=no 22388 else 22389 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22390 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22391 22392 # Extra M4 quote needed to protect [] in grep expression. 22393 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22394 if test "x$FOUND_CORRECT_VERSION" = x; then 22395 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22396 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22397 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22398 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22399 BOOT_JDK_FOUND=no 22400 else 22401 # We're done! :-) 22402 BOOT_JDK_FOUND=yes 22403 22404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22405 22406 # Input might be given as Windows format, start by converting to 22407 # unix format. 22408 path="$BOOT_JDK" 22409 new_path=`$CYGPATH -u "$path"` 22410 22411 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22412 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22413 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22414 # "foo.exe" is OK but "foo" is an error. 22415 # 22416 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22417 # It is also a way to make sure we got the proper file name for the real test later on. 22418 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22419 if test "x$test_shortpath" = x; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22421 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22422 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22423 fi 22424 22425 # Call helper function which possibly converts this using DOS-style short mode. 22426 # If so, the updated path is stored in $new_path. 22427 22428 input_path="$new_path" 22429 # Check if we need to convert this using DOS-style short mode. If the path 22430 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22431 # take no chances and rewrite it. 22432 # Note: m4 eats our [], so we need to use [ and ] instead. 22433 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22434 if test "x$has_forbidden_chars" != x; then 22435 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22436 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22437 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22438 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22439 # Going to short mode and back again did indeed matter. Since short mode is 22440 # case insensitive, let's make it lowercase to improve readability. 22441 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22442 # Now convert it back to Unix-stile (cygpath) 22443 input_path=`$CYGPATH -u "$shortmode_path"` 22444 new_path="$input_path" 22445 fi 22446 fi 22447 22448 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22449 if test "x$test_cygdrive_prefix" = x; then 22450 # As a simple fix, exclude /usr/bin since it's not a real path. 22451 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22452 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22453 # a path prefixed by /cygdrive for fixpath to work. 22454 new_path="$CYGWIN_ROOT_PATH$input_path" 22455 fi 22456 fi 22457 22458 22459 if test "x$path" != "x$new_path"; then 22460 BOOT_JDK="$new_path" 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22462 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22463 fi 22464 22465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22466 22467 path="$BOOT_JDK" 22468 has_colon=`$ECHO $path | $GREP ^.:` 22469 new_path="$path" 22470 if test "x$has_colon" = x; then 22471 # Not in mixed or Windows style, start by that. 22472 new_path=`cmd //c echo $path` 22473 fi 22474 22475 22476 input_path="$new_path" 22477 # Check if we need to convert this using DOS-style short mode. If the path 22478 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22479 # take no chances and rewrite it. 22480 # Note: m4 eats our [], so we need to use [ and ] instead. 22481 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22482 if test "x$has_forbidden_chars" != x; then 22483 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22484 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22485 fi 22486 22487 22488 windows_path="$new_path" 22489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22490 unix_path=`$CYGPATH -u "$windows_path"` 22491 new_path="$unix_path" 22492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22494 new_path="$unix_path" 22495 fi 22496 22497 if test "x$path" != "x$new_path"; then 22498 BOOT_JDK="$new_path" 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22500 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22501 fi 22502 22503 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22504 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22505 22506 else 22507 # We're on a posix platform. Hooray! :) 22508 path="$BOOT_JDK" 22509 has_space=`$ECHO "$path" | $GREP " "` 22510 if test "x$has_space" != x; then 22511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22512 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22513 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22514 fi 22515 22516 # Use eval to expand a potential ~ 22517 eval path="$path" 22518 if test ! -f "$path" && test ! -d "$path"; then 22519 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22520 fi 22521 22522 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22523 fi 22524 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22526 $as_echo_n "checking for Boot JDK... " >&6; } 22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22528 $as_echo "$BOOT_JDK" >&6; } 22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22530 $as_echo_n "checking Boot JDK version... " >&6; } 22531 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22533 $as_echo "$BOOT_JDK_VERSION" >&6; } 22534 fi # end check jdk version 22535 fi # end check rt.jar 22536 fi # end check javac 22537 fi # end check java 22538 fi # end check boot jdk found 22539 fi 22540 22541 done 22542 fi 22543 22544 fi 22545 22546 22547 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22548 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22549 # Do we have a bin/java? 22550 if test ! -x "$BOOT_JDK/bin/java"; then 22551 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22552 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22553 BOOT_JDK_FOUND=no 22554 else 22555 # Do we have a bin/javac? 22556 if test ! -x "$BOOT_JDK/bin/javac"; then 22557 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22558 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22559 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22560 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22561 BOOT_JDK_FOUND=no 22562 else 22563 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22564 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22565 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22567 BOOT_JDK_FOUND=no 22568 else 22569 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22570 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22571 22572 # Extra M4 quote needed to protect [] in grep expression. 22573 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22574 if test "x$FOUND_CORRECT_VERSION" = x; then 22575 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22576 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22578 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22579 BOOT_JDK_FOUND=no 22580 else 22581 # We're done! :-) 22582 BOOT_JDK_FOUND=yes 22583 22584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22585 22586 # Input might be given as Windows format, start by converting to 22587 # unix format. 22588 path="$BOOT_JDK" 22589 new_path=`$CYGPATH -u "$path"` 22590 22591 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22592 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22593 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22594 # "foo.exe" is OK but "foo" is an error. 22595 # 22596 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22597 # It is also a way to make sure we got the proper file name for the real test later on. 22598 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22599 if test "x$test_shortpath" = x; then 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22601 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22602 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22603 fi 22604 22605 # Call helper function which possibly converts this using DOS-style short mode. 22606 # If so, the updated path is stored in $new_path. 22607 22608 input_path="$new_path" 22609 # Check if we need to convert this using DOS-style short mode. If the path 22610 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22611 # take no chances and rewrite it. 22612 # Note: m4 eats our [], so we need to use [ and ] instead. 22613 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22614 if test "x$has_forbidden_chars" != x; then 22615 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22616 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22617 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22618 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22619 # Going to short mode and back again did indeed matter. Since short mode is 22620 # case insensitive, let's make it lowercase to improve readability. 22621 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22622 # Now convert it back to Unix-stile (cygpath) 22623 input_path=`$CYGPATH -u "$shortmode_path"` 22624 new_path="$input_path" 22625 fi 22626 fi 22627 22628 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22629 if test "x$test_cygdrive_prefix" = x; then 22630 # As a simple fix, exclude /usr/bin since it's not a real path. 22631 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22632 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22633 # a path prefixed by /cygdrive for fixpath to work. 22634 new_path="$CYGWIN_ROOT_PATH$input_path" 22635 fi 22636 fi 22637 22638 22639 if test "x$path" != "x$new_path"; then 22640 BOOT_JDK="$new_path" 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22642 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22643 fi 22644 22645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22646 22647 path="$BOOT_JDK" 22648 has_colon=`$ECHO $path | $GREP ^.:` 22649 new_path="$path" 22650 if test "x$has_colon" = x; then 22651 # Not in mixed or Windows style, start by that. 22652 new_path=`cmd //c echo $path` 22653 fi 22654 22655 22656 input_path="$new_path" 22657 # Check if we need to convert this using DOS-style short mode. If the path 22658 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22659 # take no chances and rewrite it. 22660 # Note: m4 eats our [], so we need to use [ and ] instead. 22661 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22662 if test "x$has_forbidden_chars" != x; then 22663 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22664 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22665 fi 22666 22667 22668 windows_path="$new_path" 22669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22670 unix_path=`$CYGPATH -u "$windows_path"` 22671 new_path="$unix_path" 22672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22674 new_path="$unix_path" 22675 fi 22676 22677 if test "x$path" != "x$new_path"; then 22678 BOOT_JDK="$new_path" 22679 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22680 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22681 fi 22682 22683 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22684 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22685 22686 else 22687 # We're on a posix platform. Hooray! :) 22688 path="$BOOT_JDK" 22689 has_space=`$ECHO "$path" | $GREP " "` 22690 if test "x$has_space" != x; then 22691 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22692 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22693 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22694 fi 22695 22696 # Use eval to expand a potential ~ 22697 eval path="$path" 22698 if test ! -f "$path" && test ! -d "$path"; then 22699 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22700 fi 22701 22702 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22703 fi 22704 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22706 $as_echo_n "checking for Boot JDK... " >&6; } 22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22708 $as_echo "$BOOT_JDK" >&6; } 22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22710 $as_echo_n "checking Boot JDK version... " >&6; } 22711 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22713 $as_echo "$BOOT_JDK_VERSION" >&6; } 22714 fi # end check jdk version 22715 fi # end check rt.jar 22716 fi # end check javac 22717 fi # end check java 22718 fi # end check boot jdk found 22719 fi 22720 22721 22722 if test "x$BOOT_JDK_FOUND" = xno; then 22723 # Now execute the test 22724 22725 if test "x$PROGRAMFILES" != x; then 22726 VIRTUAL_DIR="$PROGRAMFILES/Java" 22727 22728 windows_path="$VIRTUAL_DIR" 22729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22730 unix_path=`$CYGPATH -u "$windows_path"` 22731 VIRTUAL_DIR="$unix_path" 22732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22734 VIRTUAL_DIR="$unix_path" 22735 fi 22736 22737 22738 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22739 BOOT_JDK_SUFFIX="" 22740 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22741 if test "x$ALL_JDKS_FOUND" != x; then 22742 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22743 22744 if test "x$BOOT_JDK_FOUND" = xno; then 22745 # Now execute the test 22746 22747 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22748 if test -d "$BOOT_JDK"; then 22749 BOOT_JDK_FOUND=maybe 22750 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22751 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22752 fi 22753 22754 22755 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22756 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22757 # Do we have a bin/java? 22758 if test ! -x "$BOOT_JDK/bin/java"; then 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22760 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22761 BOOT_JDK_FOUND=no 22762 else 22763 # Do we have a bin/javac? 22764 if test ! -x "$BOOT_JDK/bin/javac"; then 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22767 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22768 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22769 BOOT_JDK_FOUND=no 22770 else 22771 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22772 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22773 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22774 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22775 BOOT_JDK_FOUND=no 22776 else 22777 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22778 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22779 22780 # Extra M4 quote needed to protect [] in grep expression. 22781 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22782 if test "x$FOUND_CORRECT_VERSION" = x; then 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22785 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22786 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22787 BOOT_JDK_FOUND=no 22788 else 22789 # We're done! :-) 22790 BOOT_JDK_FOUND=yes 22791 22792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22793 22794 # Input might be given as Windows format, start by converting to 22795 # unix format. 22796 path="$BOOT_JDK" 22797 new_path=`$CYGPATH -u "$path"` 22798 22799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22802 # "foo.exe" is OK but "foo" is an error. 22803 # 22804 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22805 # It is also a way to make sure we got the proper file name for the real test later on. 22806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22807 if test "x$test_shortpath" = x; then 22808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22809 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22810 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22811 fi 22812 22813 # Call helper function which possibly converts this using DOS-style short mode. 22814 # If so, the updated path is stored in $new_path. 22815 22816 input_path="$new_path" 22817 # Check if we need to convert this using DOS-style short mode. If the path 22818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22819 # take no chances and rewrite it. 22820 # Note: m4 eats our [], so we need to use [ and ] instead. 22821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22822 if test "x$has_forbidden_chars" != x; then 22823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22827 # Going to short mode and back again did indeed matter. Since short mode is 22828 # case insensitive, let's make it lowercase to improve readability. 22829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22830 # Now convert it back to Unix-stile (cygpath) 22831 input_path=`$CYGPATH -u "$shortmode_path"` 22832 new_path="$input_path" 22833 fi 22834 fi 22835 22836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22837 if test "x$test_cygdrive_prefix" = x; then 22838 # As a simple fix, exclude /usr/bin since it's not a real path. 22839 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22841 # a path prefixed by /cygdrive for fixpath to work. 22842 new_path="$CYGWIN_ROOT_PATH$input_path" 22843 fi 22844 fi 22845 22846 22847 if test "x$path" != "x$new_path"; then 22848 BOOT_JDK="$new_path" 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22850 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22851 fi 22852 22853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22854 22855 path="$BOOT_JDK" 22856 has_colon=`$ECHO $path | $GREP ^.:` 22857 new_path="$path" 22858 if test "x$has_colon" = x; then 22859 # Not in mixed or Windows style, start by that. 22860 new_path=`cmd //c echo $path` 22861 fi 22862 22863 22864 input_path="$new_path" 22865 # Check if we need to convert this using DOS-style short mode. If the path 22866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22867 # take no chances and rewrite it. 22868 # Note: m4 eats our [], so we need to use [ and ] instead. 22869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22870 if test "x$has_forbidden_chars" != x; then 22871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22873 fi 22874 22875 22876 windows_path="$new_path" 22877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22878 unix_path=`$CYGPATH -u "$windows_path"` 22879 new_path="$unix_path" 22880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22882 new_path="$unix_path" 22883 fi 22884 22885 if test "x$path" != "x$new_path"; then 22886 BOOT_JDK="$new_path" 22887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22888 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22889 fi 22890 22891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22893 22894 else 22895 # We're on a posix platform. Hooray! :) 22896 path="$BOOT_JDK" 22897 has_space=`$ECHO "$path" | $GREP " "` 22898 if test "x$has_space" != x; then 22899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22901 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22902 fi 22903 22904 # Use eval to expand a potential ~ 22905 eval path="$path" 22906 if test ! -f "$path" && test ! -d "$path"; then 22907 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22908 fi 22909 22910 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22911 fi 22912 22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22914 $as_echo_n "checking for Boot JDK... " >&6; } 22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22916 $as_echo "$BOOT_JDK" >&6; } 22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22918 $as_echo_n "checking Boot JDK version... " >&6; } 22919 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22921 $as_echo "$BOOT_JDK_VERSION" >&6; } 22922 fi # end check jdk version 22923 fi # end check rt.jar 22924 fi # end check javac 22925 fi # end check java 22926 fi # end check boot jdk found 22927 fi 22928 22929 done 22930 fi 22931 22932 fi 22933 22934 22935 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22936 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22937 # Do we have a bin/java? 22938 if test ! -x "$BOOT_JDK/bin/java"; then 22939 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22941 BOOT_JDK_FOUND=no 22942 else 22943 # Do we have a bin/javac? 22944 if test ! -x "$BOOT_JDK/bin/javac"; then 22945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22947 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22948 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22949 BOOT_JDK_FOUND=no 22950 else 22951 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22952 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22954 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22955 BOOT_JDK_FOUND=no 22956 else 22957 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22958 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22959 22960 # Extra M4 quote needed to protect [] in grep expression. 22961 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22962 if test "x$FOUND_CORRECT_VERSION" = x; then 22963 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22965 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22966 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22967 BOOT_JDK_FOUND=no 22968 else 22969 # We're done! :-) 22970 BOOT_JDK_FOUND=yes 22971 22972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22973 22974 # Input might be given as Windows format, start by converting to 22975 # unix format. 22976 path="$BOOT_JDK" 22977 new_path=`$CYGPATH -u "$path"` 22978 22979 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22980 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22981 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22982 # "foo.exe" is OK but "foo" is an error. 22983 # 22984 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22985 # It is also a way to make sure we got the proper file name for the real test later on. 22986 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22987 if test "x$test_shortpath" = x; then 22988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22989 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22990 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22991 fi 22992 22993 # Call helper function which possibly converts this using DOS-style short mode. 22994 # If so, the updated path is stored in $new_path. 22995 22996 input_path="$new_path" 22997 # Check if we need to convert this using DOS-style short mode. If the path 22998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22999 # take no chances and rewrite it. 23000 # Note: m4 eats our [], so we need to use [ and ] instead. 23001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23002 if test "x$has_forbidden_chars" != x; then 23003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23004 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23005 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23006 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23007 # Going to short mode and back again did indeed matter. Since short mode is 23008 # case insensitive, let's make it lowercase to improve readability. 23009 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23010 # Now convert it back to Unix-stile (cygpath) 23011 input_path=`$CYGPATH -u "$shortmode_path"` 23012 new_path="$input_path" 23013 fi 23014 fi 23015 23016 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23017 if test "x$test_cygdrive_prefix" = x; then 23018 # As a simple fix, exclude /usr/bin since it's not a real path. 23019 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23020 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23021 # a path prefixed by /cygdrive for fixpath to work. 23022 new_path="$CYGWIN_ROOT_PATH$input_path" 23023 fi 23024 fi 23025 23026 23027 if test "x$path" != "x$new_path"; then 23028 BOOT_JDK="$new_path" 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23030 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23031 fi 23032 23033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23034 23035 path="$BOOT_JDK" 23036 has_colon=`$ECHO $path | $GREP ^.:` 23037 new_path="$path" 23038 if test "x$has_colon" = x; then 23039 # Not in mixed or Windows style, start by that. 23040 new_path=`cmd //c echo $path` 23041 fi 23042 23043 23044 input_path="$new_path" 23045 # Check if we need to convert this using DOS-style short mode. If the path 23046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23047 # take no chances and rewrite it. 23048 # Note: m4 eats our [], so we need to use [ and ] instead. 23049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23050 if test "x$has_forbidden_chars" != x; then 23051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23052 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23053 fi 23054 23055 23056 windows_path="$new_path" 23057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23058 unix_path=`$CYGPATH -u "$windows_path"` 23059 new_path="$unix_path" 23060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23062 new_path="$unix_path" 23063 fi 23064 23065 if test "x$path" != "x$new_path"; then 23066 BOOT_JDK="$new_path" 23067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23068 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23069 fi 23070 23071 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23072 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23073 23074 else 23075 # We're on a posix platform. Hooray! :) 23076 path="$BOOT_JDK" 23077 has_space=`$ECHO "$path" | $GREP " "` 23078 if test "x$has_space" != x; then 23079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23080 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23081 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23082 fi 23083 23084 # Use eval to expand a potential ~ 23085 eval path="$path" 23086 if test ! -f "$path" && test ! -d "$path"; then 23087 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23088 fi 23089 23090 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23091 fi 23092 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23094 $as_echo_n "checking for Boot JDK... " >&6; } 23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23096 $as_echo "$BOOT_JDK" >&6; } 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23098 $as_echo_n "checking Boot JDK version... " >&6; } 23099 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23101 $as_echo "$BOOT_JDK_VERSION" >&6; } 23102 fi # end check jdk version 23103 fi # end check rt.jar 23104 fi # end check javac 23105 fi # end check java 23106 fi # end check boot jdk found 23107 fi 23108 23109 23110 if test "x$BOOT_JDK_FOUND" = xno; then 23111 # Now execute the test 23112 23113 if test "x$ProgramFiles" != x; then 23114 VIRTUAL_DIR="$ProgramFiles/Java" 23115 23116 windows_path="$VIRTUAL_DIR" 23117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23118 unix_path=`$CYGPATH -u "$windows_path"` 23119 VIRTUAL_DIR="$unix_path" 23120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23122 VIRTUAL_DIR="$unix_path" 23123 fi 23124 23125 23126 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23127 BOOT_JDK_SUFFIX="" 23128 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23129 if test "x$ALL_JDKS_FOUND" != x; then 23130 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23131 23132 if test "x$BOOT_JDK_FOUND" = xno; then 23133 # Now execute the test 23134 23135 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23136 if test -d "$BOOT_JDK"; then 23137 BOOT_JDK_FOUND=maybe 23138 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23139 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23140 fi 23141 23142 23143 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23144 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23145 # Do we have a bin/java? 23146 if test ! -x "$BOOT_JDK/bin/java"; then 23147 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23149 BOOT_JDK_FOUND=no 23150 else 23151 # Do we have a bin/javac? 23152 if test ! -x "$BOOT_JDK/bin/javac"; then 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23155 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23156 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23157 BOOT_JDK_FOUND=no 23158 else 23159 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23160 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23161 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23162 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23163 BOOT_JDK_FOUND=no 23164 else 23165 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23166 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23167 23168 # Extra M4 quote needed to protect [] in grep expression. 23169 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23170 if test "x$FOUND_CORRECT_VERSION" = x; then 23171 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23172 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23173 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23174 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23175 BOOT_JDK_FOUND=no 23176 else 23177 # We're done! :-) 23178 BOOT_JDK_FOUND=yes 23179 23180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23181 23182 # Input might be given as Windows format, start by converting to 23183 # unix format. 23184 path="$BOOT_JDK" 23185 new_path=`$CYGPATH -u "$path"` 23186 23187 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23188 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23189 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23190 # "foo.exe" is OK but "foo" is an error. 23191 # 23192 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23193 # It is also a way to make sure we got the proper file name for the real test later on. 23194 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23195 if test "x$test_shortpath" = x; then 23196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23197 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23198 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23199 fi 23200 23201 # Call helper function which possibly converts this using DOS-style short mode. 23202 # If so, the updated path is stored in $new_path. 23203 23204 input_path="$new_path" 23205 # Check if we need to convert this using DOS-style short mode. If the path 23206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23207 # take no chances and rewrite it. 23208 # Note: m4 eats our [], so we need to use [ and ] instead. 23209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23210 if test "x$has_forbidden_chars" != x; then 23211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23212 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23213 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23214 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23215 # Going to short mode and back again did indeed matter. Since short mode is 23216 # case insensitive, let's make it lowercase to improve readability. 23217 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23218 # Now convert it back to Unix-stile (cygpath) 23219 input_path=`$CYGPATH -u "$shortmode_path"` 23220 new_path="$input_path" 23221 fi 23222 fi 23223 23224 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23225 if test "x$test_cygdrive_prefix" = x; then 23226 # As a simple fix, exclude /usr/bin since it's not a real path. 23227 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23228 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23229 # a path prefixed by /cygdrive for fixpath to work. 23230 new_path="$CYGWIN_ROOT_PATH$input_path" 23231 fi 23232 fi 23233 23234 23235 if test "x$path" != "x$new_path"; then 23236 BOOT_JDK="$new_path" 23237 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23238 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23239 fi 23240 23241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23242 23243 path="$BOOT_JDK" 23244 has_colon=`$ECHO $path | $GREP ^.:` 23245 new_path="$path" 23246 if test "x$has_colon" = x; then 23247 # Not in mixed or Windows style, start by that. 23248 new_path=`cmd //c echo $path` 23249 fi 23250 23251 23252 input_path="$new_path" 23253 # Check if we need to convert this using DOS-style short mode. If the path 23254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23255 # take no chances and rewrite it. 23256 # Note: m4 eats our [], so we need to use [ and ] instead. 23257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23258 if test "x$has_forbidden_chars" != x; then 23259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23261 fi 23262 23263 23264 windows_path="$new_path" 23265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23266 unix_path=`$CYGPATH -u "$windows_path"` 23267 new_path="$unix_path" 23268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23270 new_path="$unix_path" 23271 fi 23272 23273 if test "x$path" != "x$new_path"; then 23274 BOOT_JDK="$new_path" 23275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23276 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23277 fi 23278 23279 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23280 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23281 23282 else 23283 # We're on a posix platform. Hooray! :) 23284 path="$BOOT_JDK" 23285 has_space=`$ECHO "$path" | $GREP " "` 23286 if test "x$has_space" != x; then 23287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23288 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23289 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23290 fi 23291 23292 # Use eval to expand a potential ~ 23293 eval path="$path" 23294 if test ! -f "$path" && test ! -d "$path"; then 23295 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23296 fi 23297 23298 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23299 fi 23300 23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23302 $as_echo_n "checking for Boot JDK... " >&6; } 23303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23304 $as_echo "$BOOT_JDK" >&6; } 23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23306 $as_echo_n "checking Boot JDK version... " >&6; } 23307 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23309 $as_echo "$BOOT_JDK_VERSION" >&6; } 23310 fi # end check jdk version 23311 fi # end check rt.jar 23312 fi # end check javac 23313 fi # end check java 23314 fi # end check boot jdk found 23315 fi 23316 23317 done 23318 fi 23319 23320 fi 23321 23322 23323 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23324 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23325 # Do we have a bin/java? 23326 if test ! -x "$BOOT_JDK/bin/java"; then 23327 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23329 BOOT_JDK_FOUND=no 23330 else 23331 # Do we have a bin/javac? 23332 if test ! -x "$BOOT_JDK/bin/javac"; then 23333 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23336 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23337 BOOT_JDK_FOUND=no 23338 else 23339 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23340 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23342 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23343 BOOT_JDK_FOUND=no 23344 else 23345 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23346 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23347 23348 # Extra M4 quote needed to protect [] in grep expression. 23349 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23350 if test "x$FOUND_CORRECT_VERSION" = x; then 23351 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23352 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23353 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23354 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23355 BOOT_JDK_FOUND=no 23356 else 23357 # We're done! :-) 23358 BOOT_JDK_FOUND=yes 23359 23360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23361 23362 # Input might be given as Windows format, start by converting to 23363 # unix format. 23364 path="$BOOT_JDK" 23365 new_path=`$CYGPATH -u "$path"` 23366 23367 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23368 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23369 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23370 # "foo.exe" is OK but "foo" is an error. 23371 # 23372 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23373 # It is also a way to make sure we got the proper file name for the real test later on. 23374 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23375 if test "x$test_shortpath" = x; then 23376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23377 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23378 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23379 fi 23380 23381 # Call helper function which possibly converts this using DOS-style short mode. 23382 # If so, the updated path is stored in $new_path. 23383 23384 input_path="$new_path" 23385 # Check if we need to convert this using DOS-style short mode. If the path 23386 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23387 # take no chances and rewrite it. 23388 # Note: m4 eats our [], so we need to use [ and ] instead. 23389 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23390 if test "x$has_forbidden_chars" != x; then 23391 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23392 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23393 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23394 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23395 # Going to short mode and back again did indeed matter. Since short mode is 23396 # case insensitive, let's make it lowercase to improve readability. 23397 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23398 # Now convert it back to Unix-stile (cygpath) 23399 input_path=`$CYGPATH -u "$shortmode_path"` 23400 new_path="$input_path" 23401 fi 23402 fi 23403 23404 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23405 if test "x$test_cygdrive_prefix" = x; then 23406 # As a simple fix, exclude /usr/bin since it's not a real path. 23407 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23408 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23409 # a path prefixed by /cygdrive for fixpath to work. 23410 new_path="$CYGWIN_ROOT_PATH$input_path" 23411 fi 23412 fi 23413 23414 23415 if test "x$path" != "x$new_path"; then 23416 BOOT_JDK="$new_path" 23417 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23418 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23419 fi 23420 23421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23422 23423 path="$BOOT_JDK" 23424 has_colon=`$ECHO $path | $GREP ^.:` 23425 new_path="$path" 23426 if test "x$has_colon" = x; then 23427 # Not in mixed or Windows style, start by that. 23428 new_path=`cmd //c echo $path` 23429 fi 23430 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23441 fi 23442 23443 23444 windows_path="$new_path" 23445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23446 unix_path=`$CYGPATH -u "$windows_path"` 23447 new_path="$unix_path" 23448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23450 new_path="$unix_path" 23451 fi 23452 23453 if test "x$path" != "x$new_path"; then 23454 BOOT_JDK="$new_path" 23455 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23456 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23457 fi 23458 23459 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23460 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23461 23462 else 23463 # We're on a posix platform. Hooray! :) 23464 path="$BOOT_JDK" 23465 has_space=`$ECHO "$path" | $GREP " "` 23466 if test "x$has_space" != x; then 23467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23468 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23469 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23470 fi 23471 23472 # Use eval to expand a potential ~ 23473 eval path="$path" 23474 if test ! -f "$path" && test ! -d "$path"; then 23475 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23476 fi 23477 23478 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23479 fi 23480 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23482 $as_echo_n "checking for Boot JDK... " >&6; } 23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23484 $as_echo "$BOOT_JDK" >&6; } 23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23486 $as_echo_n "checking Boot JDK version... " >&6; } 23487 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23489 $as_echo "$BOOT_JDK_VERSION" >&6; } 23490 fi # end check jdk version 23491 fi # end check rt.jar 23492 fi # end check javac 23493 fi # end check java 23494 fi # end check boot jdk found 23495 fi 23496 23497 23498 if test "x$BOOT_JDK_FOUND" = xno; then 23499 # Now execute the test 23500 23501 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23502 BOOT_JDK_SUFFIX="" 23503 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23504 if test "x$ALL_JDKS_FOUND" != x; then 23505 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23506 23507 if test "x$BOOT_JDK_FOUND" = xno; then 23508 # Now execute the test 23509 23510 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23511 if test -d "$BOOT_JDK"; then 23512 BOOT_JDK_FOUND=maybe 23513 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23514 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23515 fi 23516 23517 23518 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23519 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23520 # Do we have a bin/java? 23521 if test ! -x "$BOOT_JDK/bin/java"; then 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23523 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23524 BOOT_JDK_FOUND=no 23525 else 23526 # Do we have a bin/javac? 23527 if test ! -x "$BOOT_JDK/bin/javac"; then 23528 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23529 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23531 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23532 BOOT_JDK_FOUND=no 23533 else 23534 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23535 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23538 BOOT_JDK_FOUND=no 23539 else 23540 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23541 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23542 23543 # Extra M4 quote needed to protect [] in grep expression. 23544 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23545 if test "x$FOUND_CORRECT_VERSION" = x; then 23546 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23548 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23549 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23550 BOOT_JDK_FOUND=no 23551 else 23552 # We're done! :-) 23553 BOOT_JDK_FOUND=yes 23554 23555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23556 23557 # Input might be given as Windows format, start by converting to 23558 # unix format. 23559 path="$BOOT_JDK" 23560 new_path=`$CYGPATH -u "$path"` 23561 23562 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23563 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23564 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23565 # "foo.exe" is OK but "foo" is an error. 23566 # 23567 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23568 # It is also a way to make sure we got the proper file name for the real test later on. 23569 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23570 if test "x$test_shortpath" = x; then 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23572 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23573 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23574 fi 23575 23576 # Call helper function which possibly converts this using DOS-style short mode. 23577 # If so, the updated path is stored in $new_path. 23578 23579 input_path="$new_path" 23580 # Check if we need to convert this using DOS-style short mode. If the path 23581 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23582 # take no chances and rewrite it. 23583 # Note: m4 eats our [], so we need to use [ and ] instead. 23584 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23585 if test "x$has_forbidden_chars" != x; then 23586 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23587 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23588 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23589 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23590 # Going to short mode and back again did indeed matter. Since short mode is 23591 # case insensitive, let's make it lowercase to improve readability. 23592 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23593 # Now convert it back to Unix-stile (cygpath) 23594 input_path=`$CYGPATH -u "$shortmode_path"` 23595 new_path="$input_path" 23596 fi 23597 fi 23598 23599 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23600 if test "x$test_cygdrive_prefix" = x; then 23601 # As a simple fix, exclude /usr/bin since it's not a real path. 23602 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23603 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23604 # a path prefixed by /cygdrive for fixpath to work. 23605 new_path="$CYGWIN_ROOT_PATH$input_path" 23606 fi 23607 fi 23608 23609 23610 if test "x$path" != "x$new_path"; then 23611 BOOT_JDK="$new_path" 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23613 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23614 fi 23615 23616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23617 23618 path="$BOOT_JDK" 23619 has_colon=`$ECHO $path | $GREP ^.:` 23620 new_path="$path" 23621 if test "x$has_colon" = x; then 23622 # Not in mixed or Windows style, start by that. 23623 new_path=`cmd //c echo $path` 23624 fi 23625 23626 23627 input_path="$new_path" 23628 # Check if we need to convert this using DOS-style short mode. If the path 23629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23630 # take no chances and rewrite it. 23631 # Note: m4 eats our [], so we need to use [ and ] instead. 23632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23633 if test "x$has_forbidden_chars" != x; then 23634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23635 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23636 fi 23637 23638 23639 windows_path="$new_path" 23640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23641 unix_path=`$CYGPATH -u "$windows_path"` 23642 new_path="$unix_path" 23643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23644 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23645 new_path="$unix_path" 23646 fi 23647 23648 if test "x$path" != "x$new_path"; then 23649 BOOT_JDK="$new_path" 23650 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23651 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23652 fi 23653 23654 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23655 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23656 23657 else 23658 # We're on a posix platform. Hooray! :) 23659 path="$BOOT_JDK" 23660 has_space=`$ECHO "$path" | $GREP " "` 23661 if test "x$has_space" != x; then 23662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23663 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23664 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23665 fi 23666 23667 # Use eval to expand a potential ~ 23668 eval path="$path" 23669 if test ! -f "$path" && test ! -d "$path"; then 23670 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23671 fi 23672 23673 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23674 fi 23675 23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23677 $as_echo_n "checking for Boot JDK... " >&6; } 23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23679 $as_echo "$BOOT_JDK" >&6; } 23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23681 $as_echo_n "checking Boot JDK version... " >&6; } 23682 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23684 $as_echo "$BOOT_JDK_VERSION" >&6; } 23685 fi # end check jdk version 23686 fi # end check rt.jar 23687 fi # end check javac 23688 fi # end check java 23689 fi # end check boot jdk found 23690 fi 23691 23692 done 23693 fi 23694 23695 23696 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23697 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23698 # Do we have a bin/java? 23699 if test ! -x "$BOOT_JDK/bin/java"; then 23700 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23701 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23702 BOOT_JDK_FOUND=no 23703 else 23704 # Do we have a bin/javac? 23705 if test ! -x "$BOOT_JDK/bin/javac"; then 23706 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23708 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23709 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23710 BOOT_JDK_FOUND=no 23711 else 23712 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23713 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23714 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23715 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23716 BOOT_JDK_FOUND=no 23717 else 23718 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23719 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23720 23721 # Extra M4 quote needed to protect [] in grep expression. 23722 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23723 if test "x$FOUND_CORRECT_VERSION" = x; then 23724 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23725 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23726 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23727 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23728 BOOT_JDK_FOUND=no 23729 else 23730 # We're done! :-) 23731 BOOT_JDK_FOUND=yes 23732 23733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23734 23735 # Input might be given as Windows format, start by converting to 23736 # unix format. 23737 path="$BOOT_JDK" 23738 new_path=`$CYGPATH -u "$path"` 23739 23740 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23741 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23742 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23743 # "foo.exe" is OK but "foo" is an error. 23744 # 23745 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23746 # It is also a way to make sure we got the proper file name for the real test later on. 23747 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23748 if test "x$test_shortpath" = x; then 23749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23750 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23751 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23752 fi 23753 23754 # Call helper function which possibly converts this using DOS-style short mode. 23755 # If so, the updated path is stored in $new_path. 23756 23757 input_path="$new_path" 23758 # Check if we need to convert this using DOS-style short mode. If the path 23759 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23760 # take no chances and rewrite it. 23761 # Note: m4 eats our [], so we need to use [ and ] instead. 23762 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23763 if test "x$has_forbidden_chars" != x; then 23764 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23765 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23766 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23767 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23768 # Going to short mode and back again did indeed matter. Since short mode is 23769 # case insensitive, let's make it lowercase to improve readability. 23770 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23771 # Now convert it back to Unix-stile (cygpath) 23772 input_path=`$CYGPATH -u "$shortmode_path"` 23773 new_path="$input_path" 23774 fi 23775 fi 23776 23777 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23778 if test "x$test_cygdrive_prefix" = x; then 23779 # As a simple fix, exclude /usr/bin since it's not a real path. 23780 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23781 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23782 # a path prefixed by /cygdrive for fixpath to work. 23783 new_path="$CYGWIN_ROOT_PATH$input_path" 23784 fi 23785 fi 23786 23787 23788 if test "x$path" != "x$new_path"; then 23789 BOOT_JDK="$new_path" 23790 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23791 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23792 fi 23793 23794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23795 23796 path="$BOOT_JDK" 23797 has_colon=`$ECHO $path | $GREP ^.:` 23798 new_path="$path" 23799 if test "x$has_colon" = x; then 23800 # Not in mixed or Windows style, start by that. 23801 new_path=`cmd //c echo $path` 23802 fi 23803 23804 23805 input_path="$new_path" 23806 # Check if we need to convert this using DOS-style short mode. If the path 23807 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23808 # take no chances and rewrite it. 23809 # Note: m4 eats our [], so we need to use [ and ] instead. 23810 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23811 if test "x$has_forbidden_chars" != x; then 23812 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23813 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23814 fi 23815 23816 23817 windows_path="$new_path" 23818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23819 unix_path=`$CYGPATH -u "$windows_path"` 23820 new_path="$unix_path" 23821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23823 new_path="$unix_path" 23824 fi 23825 23826 if test "x$path" != "x$new_path"; then 23827 BOOT_JDK="$new_path" 23828 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23829 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23830 fi 23831 23832 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23833 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23834 23835 else 23836 # We're on a posix platform. Hooray! :) 23837 path="$BOOT_JDK" 23838 has_space=`$ECHO "$path" | $GREP " "` 23839 if test "x$has_space" != x; then 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23841 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23842 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23843 fi 23844 23845 # Use eval to expand a potential ~ 23846 eval path="$path" 23847 if test ! -f "$path" && test ! -d "$path"; then 23848 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23849 fi 23850 23851 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23852 fi 23853 23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23855 $as_echo_n "checking for Boot JDK... " >&6; } 23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23857 $as_echo "$BOOT_JDK" >&6; } 23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23859 $as_echo_n "checking Boot JDK version... " >&6; } 23860 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23862 $as_echo "$BOOT_JDK_VERSION" >&6; } 23863 fi # end check jdk version 23864 fi # end check rt.jar 23865 fi # end check javac 23866 fi # end check java 23867 fi # end check boot jdk found 23868 fi 23869 23870 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23871 23872 if test "x$BOOT_JDK_FOUND" = xno; then 23873 # Now execute the test 23874 23875 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23876 BOOT_JDK_SUFFIX="/Contents/Home" 23877 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23878 if test "x$ALL_JDKS_FOUND" != x; then 23879 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23880 23881 if test "x$BOOT_JDK_FOUND" = xno; then 23882 # Now execute the test 23883 23884 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23885 if test -d "$BOOT_JDK"; then 23886 BOOT_JDK_FOUND=maybe 23887 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23888 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23889 fi 23890 23891 23892 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23893 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23894 # Do we have a bin/java? 23895 if test ! -x "$BOOT_JDK/bin/java"; then 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23898 BOOT_JDK_FOUND=no 23899 else 23900 # Do we have a bin/javac? 23901 if test ! -x "$BOOT_JDK/bin/javac"; then 23902 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23903 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23905 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23906 BOOT_JDK_FOUND=no 23907 else 23908 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23909 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23910 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23912 BOOT_JDK_FOUND=no 23913 else 23914 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23915 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23916 23917 # Extra M4 quote needed to protect [] in grep expression. 23918 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23919 if test "x$FOUND_CORRECT_VERSION" = x; then 23920 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23921 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23922 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23923 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23924 BOOT_JDK_FOUND=no 23925 else 23926 # We're done! :-) 23927 BOOT_JDK_FOUND=yes 23928 23929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23930 23931 # Input might be given as Windows format, start by converting to 23932 # unix format. 23933 path="$BOOT_JDK" 23934 new_path=`$CYGPATH -u "$path"` 23935 23936 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23937 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23938 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23939 # "foo.exe" is OK but "foo" is an error. 23940 # 23941 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23942 # It is also a way to make sure we got the proper file name for the real test later on. 23943 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23944 if test "x$test_shortpath" = x; then 23945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23946 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23947 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23948 fi 23949 23950 # Call helper function which possibly converts this using DOS-style short mode. 23951 # If so, the updated path is stored in $new_path. 23952 23953 input_path="$new_path" 23954 # Check if we need to convert this using DOS-style short mode. If the path 23955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23956 # take no chances and rewrite it. 23957 # Note: m4 eats our [], so we need to use [ and ] instead. 23958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23959 if test "x$has_forbidden_chars" != x; then 23960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23961 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23962 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23963 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23964 # Going to short mode and back again did indeed matter. Since short mode is 23965 # case insensitive, let's make it lowercase to improve readability. 23966 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23967 # Now convert it back to Unix-stile (cygpath) 23968 input_path=`$CYGPATH -u "$shortmode_path"` 23969 new_path="$input_path" 23970 fi 23971 fi 23972 23973 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23974 if test "x$test_cygdrive_prefix" = x; then 23975 # As a simple fix, exclude /usr/bin since it's not a real path. 23976 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23977 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23978 # a path prefixed by /cygdrive for fixpath to work. 23979 new_path="$CYGWIN_ROOT_PATH$input_path" 23980 fi 23981 fi 23982 23983 23984 if test "x$path" != "x$new_path"; then 23985 BOOT_JDK="$new_path" 23986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23987 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23988 fi 23989 23990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23991 23992 path="$BOOT_JDK" 23993 has_colon=`$ECHO $path | $GREP ^.:` 23994 new_path="$path" 23995 if test "x$has_colon" = x; then 23996 # Not in mixed or Windows style, start by that. 23997 new_path=`cmd //c echo $path` 23998 fi 23999 24000 24001 input_path="$new_path" 24002 # Check if we need to convert this using DOS-style short mode. If the path 24003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24004 # take no chances and rewrite it. 24005 # Note: m4 eats our [], so we need to use [ and ] instead. 24006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24007 if test "x$has_forbidden_chars" != x; then 24008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24009 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24010 fi 24011 24012 24013 windows_path="$new_path" 24014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24015 unix_path=`$CYGPATH -u "$windows_path"` 24016 new_path="$unix_path" 24017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24019 new_path="$unix_path" 24020 fi 24021 24022 if test "x$path" != "x$new_path"; then 24023 BOOT_JDK="$new_path" 24024 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24025 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24026 fi 24027 24028 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24029 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24030 24031 else 24032 # We're on a posix platform. Hooray! :) 24033 path="$BOOT_JDK" 24034 has_space=`$ECHO "$path" | $GREP " "` 24035 if test "x$has_space" != x; then 24036 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24037 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24038 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24039 fi 24040 24041 # Use eval to expand a potential ~ 24042 eval path="$path" 24043 if test ! -f "$path" && test ! -d "$path"; then 24044 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24045 fi 24046 24047 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24048 fi 24049 24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24051 $as_echo_n "checking for Boot JDK... " >&6; } 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24053 $as_echo "$BOOT_JDK" >&6; } 24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24055 $as_echo_n "checking Boot JDK version... " >&6; } 24056 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24058 $as_echo "$BOOT_JDK_VERSION" >&6; } 24059 fi # end check jdk version 24060 fi # end check rt.jar 24061 fi # end check javac 24062 fi # end check java 24063 fi # end check boot jdk found 24064 fi 24065 24066 done 24067 fi 24068 24069 24070 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24071 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24072 # Do we have a bin/java? 24073 if test ! -x "$BOOT_JDK/bin/java"; then 24074 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24075 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24076 BOOT_JDK_FOUND=no 24077 else 24078 # Do we have a bin/javac? 24079 if test ! -x "$BOOT_JDK/bin/javac"; then 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24082 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24083 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24084 BOOT_JDK_FOUND=no 24085 else 24086 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24087 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24088 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24089 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24090 BOOT_JDK_FOUND=no 24091 else 24092 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24093 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24094 24095 # Extra M4 quote needed to protect [] in grep expression. 24096 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24097 if test "x$FOUND_CORRECT_VERSION" = x; then 24098 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24099 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24101 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24102 BOOT_JDK_FOUND=no 24103 else 24104 # We're done! :-) 24105 BOOT_JDK_FOUND=yes 24106 24107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24108 24109 # Input might be given as Windows format, start by converting to 24110 # unix format. 24111 path="$BOOT_JDK" 24112 new_path=`$CYGPATH -u "$path"` 24113 24114 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24115 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24116 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24117 # "foo.exe" is OK but "foo" is an error. 24118 # 24119 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24120 # It is also a way to make sure we got the proper file name for the real test later on. 24121 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24122 if test "x$test_shortpath" = x; then 24123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24125 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24126 fi 24127 24128 # Call helper function which possibly converts this using DOS-style short mode. 24129 # If so, the updated path is stored in $new_path. 24130 24131 input_path="$new_path" 24132 # Check if we need to convert this using DOS-style short mode. If the path 24133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24134 # take no chances and rewrite it. 24135 # Note: m4 eats our [], so we need to use [ and ] instead. 24136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24137 if test "x$has_forbidden_chars" != x; then 24138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24139 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24140 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24141 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24142 # Going to short mode and back again did indeed matter. Since short mode is 24143 # case insensitive, let's make it lowercase to improve readability. 24144 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24145 # Now convert it back to Unix-stile (cygpath) 24146 input_path=`$CYGPATH -u "$shortmode_path"` 24147 new_path="$input_path" 24148 fi 24149 fi 24150 24151 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24152 if test "x$test_cygdrive_prefix" = x; then 24153 # As a simple fix, exclude /usr/bin since it's not a real path. 24154 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24155 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24156 # a path prefixed by /cygdrive for fixpath to work. 24157 new_path="$CYGWIN_ROOT_PATH$input_path" 24158 fi 24159 fi 24160 24161 24162 if test "x$path" != "x$new_path"; then 24163 BOOT_JDK="$new_path" 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24165 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24166 fi 24167 24168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24169 24170 path="$BOOT_JDK" 24171 has_colon=`$ECHO $path | $GREP ^.:` 24172 new_path="$path" 24173 if test "x$has_colon" = x; then 24174 # Not in mixed or Windows style, start by that. 24175 new_path=`cmd //c echo $path` 24176 fi 24177 24178 24179 input_path="$new_path" 24180 # Check if we need to convert this using DOS-style short mode. If the path 24181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24182 # take no chances and rewrite it. 24183 # Note: m4 eats our [], so we need to use [ and ] instead. 24184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24185 if test "x$has_forbidden_chars" != x; then 24186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24187 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24188 fi 24189 24190 24191 windows_path="$new_path" 24192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24193 unix_path=`$CYGPATH -u "$windows_path"` 24194 new_path="$unix_path" 24195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24197 new_path="$unix_path" 24198 fi 24199 24200 if test "x$path" != "x$new_path"; then 24201 BOOT_JDK="$new_path" 24202 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24203 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24204 fi 24205 24206 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24207 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24208 24209 else 24210 # We're on a posix platform. Hooray! :) 24211 path="$BOOT_JDK" 24212 has_space=`$ECHO "$path" | $GREP " "` 24213 if test "x$has_space" != x; then 24214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24215 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24216 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24217 fi 24218 24219 # Use eval to expand a potential ~ 24220 eval path="$path" 24221 if test ! -f "$path" && test ! -d "$path"; then 24222 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24223 fi 24224 24225 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24226 fi 24227 24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24229 $as_echo_n "checking for Boot JDK... " >&6; } 24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24231 $as_echo "$BOOT_JDK" >&6; } 24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24233 $as_echo_n "checking Boot JDK version... " >&6; } 24234 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24236 $as_echo "$BOOT_JDK_VERSION" >&6; } 24237 fi # end check jdk version 24238 fi # end check rt.jar 24239 fi # end check javac 24240 fi # end check java 24241 fi # end check boot jdk found 24242 fi 24243 24244 24245 if test "x$BOOT_JDK_FOUND" = xno; then 24246 # Now execute the test 24247 24248 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24249 BOOT_JDK_SUFFIX="/Contents/Home" 24250 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24251 if test "x$ALL_JDKS_FOUND" != x; then 24252 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24253 24254 if test "x$BOOT_JDK_FOUND" = xno; then 24255 # Now execute the test 24256 24257 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24258 if test -d "$BOOT_JDK"; then 24259 BOOT_JDK_FOUND=maybe 24260 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24261 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24262 fi 24263 24264 24265 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24266 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24267 # Do we have a bin/java? 24268 if test ! -x "$BOOT_JDK/bin/java"; then 24269 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24271 BOOT_JDK_FOUND=no 24272 else 24273 # Do we have a bin/javac? 24274 if test ! -x "$BOOT_JDK/bin/javac"; then 24275 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24276 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24277 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24278 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24279 BOOT_JDK_FOUND=no 24280 else 24281 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24282 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24283 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24285 BOOT_JDK_FOUND=no 24286 else 24287 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24288 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24289 24290 # Extra M4 quote needed to protect [] in grep expression. 24291 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24292 if test "x$FOUND_CORRECT_VERSION" = x; then 24293 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24295 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24296 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24297 BOOT_JDK_FOUND=no 24298 else 24299 # We're done! :-) 24300 BOOT_JDK_FOUND=yes 24301 24302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24303 24304 # Input might be given as Windows format, start by converting to 24305 # unix format. 24306 path="$BOOT_JDK" 24307 new_path=`$CYGPATH -u "$path"` 24308 24309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24312 # "foo.exe" is OK but "foo" is an error. 24313 # 24314 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24315 # It is also a way to make sure we got the proper file name for the real test later on. 24316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24317 if test "x$test_shortpath" = x; then 24318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24319 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24320 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24321 fi 24322 24323 # Call helper function which possibly converts this using DOS-style short mode. 24324 # If so, the updated path is stored in $new_path. 24325 24326 input_path="$new_path" 24327 # Check if we need to convert this using DOS-style short mode. If the path 24328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24329 # take no chances and rewrite it. 24330 # Note: m4 eats our [], so we need to use [ and ] instead. 24331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24332 if test "x$has_forbidden_chars" != x; then 24333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24334 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24335 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24336 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24337 # Going to short mode and back again did indeed matter. Since short mode is 24338 # case insensitive, let's make it lowercase to improve readability. 24339 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24340 # Now convert it back to Unix-stile (cygpath) 24341 input_path=`$CYGPATH -u "$shortmode_path"` 24342 new_path="$input_path" 24343 fi 24344 fi 24345 24346 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24347 if test "x$test_cygdrive_prefix" = x; then 24348 # As a simple fix, exclude /usr/bin since it's not a real path. 24349 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24350 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24351 # a path prefixed by /cygdrive for fixpath to work. 24352 new_path="$CYGWIN_ROOT_PATH$input_path" 24353 fi 24354 fi 24355 24356 24357 if test "x$path" != "x$new_path"; then 24358 BOOT_JDK="$new_path" 24359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24361 fi 24362 24363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24364 24365 path="$BOOT_JDK" 24366 has_colon=`$ECHO $path | $GREP ^.:` 24367 new_path="$path" 24368 if test "x$has_colon" = x; then 24369 # Not in mixed or Windows style, start by that. 24370 new_path=`cmd //c echo $path` 24371 fi 24372 24373 24374 input_path="$new_path" 24375 # Check if we need to convert this using DOS-style short mode. If the path 24376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24377 # take no chances and rewrite it. 24378 # Note: m4 eats our [], so we need to use [ and ] instead. 24379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24380 if test "x$has_forbidden_chars" != x; then 24381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24383 fi 24384 24385 24386 windows_path="$new_path" 24387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24388 unix_path=`$CYGPATH -u "$windows_path"` 24389 new_path="$unix_path" 24390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24392 new_path="$unix_path" 24393 fi 24394 24395 if test "x$path" != "x$new_path"; then 24396 BOOT_JDK="$new_path" 24397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24398 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24399 fi 24400 24401 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24402 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24403 24404 else 24405 # We're on a posix platform. Hooray! :) 24406 path="$BOOT_JDK" 24407 has_space=`$ECHO "$path" | $GREP " "` 24408 if test "x$has_space" != x; then 24409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24410 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24411 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24412 fi 24413 24414 # Use eval to expand a potential ~ 24415 eval path="$path" 24416 if test ! -f "$path" && test ! -d "$path"; then 24417 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24418 fi 24419 24420 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24421 fi 24422 24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24424 $as_echo_n "checking for Boot JDK... " >&6; } 24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24426 $as_echo "$BOOT_JDK" >&6; } 24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24428 $as_echo_n "checking Boot JDK version... " >&6; } 24429 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24431 $as_echo "$BOOT_JDK_VERSION" >&6; } 24432 fi # end check jdk version 24433 fi # end check rt.jar 24434 fi # end check javac 24435 fi # end check java 24436 fi # end check boot jdk found 24437 fi 24438 24439 done 24440 fi 24441 24442 24443 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24444 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24445 # Do we have a bin/java? 24446 if test ! -x "$BOOT_JDK/bin/java"; then 24447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24449 BOOT_JDK_FOUND=no 24450 else 24451 # Do we have a bin/javac? 24452 if test ! -x "$BOOT_JDK/bin/javac"; then 24453 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24455 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24456 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24457 BOOT_JDK_FOUND=no 24458 else 24459 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24460 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24462 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24463 BOOT_JDK_FOUND=no 24464 else 24465 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24466 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24467 24468 # Extra M4 quote needed to protect [] in grep expression. 24469 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24470 if test "x$FOUND_CORRECT_VERSION" = x; then 24471 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24472 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24473 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24474 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24475 BOOT_JDK_FOUND=no 24476 else 24477 # We're done! :-) 24478 BOOT_JDK_FOUND=yes 24479 24480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24481 24482 # Input might be given as Windows format, start by converting to 24483 # unix format. 24484 path="$BOOT_JDK" 24485 new_path=`$CYGPATH -u "$path"` 24486 24487 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24488 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24489 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24490 # "foo.exe" is OK but "foo" is an error. 24491 # 24492 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24493 # It is also a way to make sure we got the proper file name for the real test later on. 24494 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24495 if test "x$test_shortpath" = x; then 24496 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24497 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24498 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24499 fi 24500 24501 # Call helper function which possibly converts this using DOS-style short mode. 24502 # If so, the updated path is stored in $new_path. 24503 24504 input_path="$new_path" 24505 # Check if we need to convert this using DOS-style short mode. If the path 24506 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24507 # take no chances and rewrite it. 24508 # Note: m4 eats our [], so we need to use [ and ] instead. 24509 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24510 if test "x$has_forbidden_chars" != x; then 24511 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24512 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24513 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24514 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24515 # Going to short mode and back again did indeed matter. Since short mode is 24516 # case insensitive, let's make it lowercase to improve readability. 24517 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24518 # Now convert it back to Unix-stile (cygpath) 24519 input_path=`$CYGPATH -u "$shortmode_path"` 24520 new_path="$input_path" 24521 fi 24522 fi 24523 24524 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24525 if test "x$test_cygdrive_prefix" = x; then 24526 # As a simple fix, exclude /usr/bin since it's not a real path. 24527 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24528 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24529 # a path prefixed by /cygdrive for fixpath to work. 24530 new_path="$CYGWIN_ROOT_PATH$input_path" 24531 fi 24532 fi 24533 24534 24535 if test "x$path" != "x$new_path"; then 24536 BOOT_JDK="$new_path" 24537 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24538 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24539 fi 24540 24541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24542 24543 path="$BOOT_JDK" 24544 has_colon=`$ECHO $path | $GREP ^.:` 24545 new_path="$path" 24546 if test "x$has_colon" = x; then 24547 # Not in mixed or Windows style, start by that. 24548 new_path=`cmd //c echo $path` 24549 fi 24550 24551 24552 input_path="$new_path" 24553 # Check if we need to convert this using DOS-style short mode. If the path 24554 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24555 # take no chances and rewrite it. 24556 # Note: m4 eats our [], so we need to use [ and ] instead. 24557 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24558 if test "x$has_forbidden_chars" != x; then 24559 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24560 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24561 fi 24562 24563 24564 windows_path="$new_path" 24565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24566 unix_path=`$CYGPATH -u "$windows_path"` 24567 new_path="$unix_path" 24568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24569 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24570 new_path="$unix_path" 24571 fi 24572 24573 if test "x$path" != "x$new_path"; then 24574 BOOT_JDK="$new_path" 24575 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24576 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24577 fi 24578 24579 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24580 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24581 24582 else 24583 # We're on a posix platform. Hooray! :) 24584 path="$BOOT_JDK" 24585 has_space=`$ECHO "$path" | $GREP " "` 24586 if test "x$has_space" != x; then 24587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24588 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24589 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24590 fi 24591 24592 # Use eval to expand a potential ~ 24593 eval path="$path" 24594 if test ! -f "$path" && test ! -d "$path"; then 24595 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24596 fi 24597 24598 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24599 fi 24600 24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24602 $as_echo_n "checking for Boot JDK... " >&6; } 24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24604 $as_echo "$BOOT_JDK" >&6; } 24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24606 $as_echo_n "checking Boot JDK version... " >&6; } 24607 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24609 $as_echo "$BOOT_JDK_VERSION" >&6; } 24610 fi # end check jdk version 24611 fi # end check rt.jar 24612 fi # end check javac 24613 fi # end check java 24614 fi # end check boot jdk found 24615 fi 24616 24617 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24618 24619 if test "x$BOOT_JDK_FOUND" = xno; then 24620 # Now execute the test 24621 24622 BOOT_JDK_PREFIX="/usr/lib/jvm" 24623 BOOT_JDK_SUFFIX="" 24624 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24625 if test "x$ALL_JDKS_FOUND" != x; then 24626 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24627 24628 if test "x$BOOT_JDK_FOUND" = xno; then 24629 # Now execute the test 24630 24631 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24632 if test -d "$BOOT_JDK"; then 24633 BOOT_JDK_FOUND=maybe 24634 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24635 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24636 fi 24637 24638 24639 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24640 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24641 # Do we have a bin/java? 24642 if test ! -x "$BOOT_JDK/bin/java"; then 24643 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24645 BOOT_JDK_FOUND=no 24646 else 24647 # Do we have a bin/javac? 24648 if test ! -x "$BOOT_JDK/bin/javac"; then 24649 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24651 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24652 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24653 BOOT_JDK_FOUND=no 24654 else 24655 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24656 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24657 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24659 BOOT_JDK_FOUND=no 24660 else 24661 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24662 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24663 24664 # Extra M4 quote needed to protect [] in grep expression. 24665 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24666 if test "x$FOUND_CORRECT_VERSION" = x; then 24667 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24669 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24670 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24671 BOOT_JDK_FOUND=no 24672 else 24673 # We're done! :-) 24674 BOOT_JDK_FOUND=yes 24675 24676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24677 24678 # Input might be given as Windows format, start by converting to 24679 # unix format. 24680 path="$BOOT_JDK" 24681 new_path=`$CYGPATH -u "$path"` 24682 24683 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24684 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24685 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24686 # "foo.exe" is OK but "foo" is an error. 24687 # 24688 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24689 # It is also a way to make sure we got the proper file name for the real test later on. 24690 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24691 if test "x$test_shortpath" = x; then 24692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24694 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24695 fi 24696 24697 # Call helper function which possibly converts this using DOS-style short mode. 24698 # If so, the updated path is stored in $new_path. 24699 24700 input_path="$new_path" 24701 # Check if we need to convert this using DOS-style short mode. If the path 24702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24703 # take no chances and rewrite it. 24704 # Note: m4 eats our [], so we need to use [ and ] instead. 24705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24706 if test "x$has_forbidden_chars" != x; then 24707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24708 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24709 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24710 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24711 # Going to short mode and back again did indeed matter. Since short mode is 24712 # case insensitive, let's make it lowercase to improve readability. 24713 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24714 # Now convert it back to Unix-stile (cygpath) 24715 input_path=`$CYGPATH -u "$shortmode_path"` 24716 new_path="$input_path" 24717 fi 24718 fi 24719 24720 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24721 if test "x$test_cygdrive_prefix" = x; then 24722 # As a simple fix, exclude /usr/bin since it's not a real path. 24723 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24724 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24725 # a path prefixed by /cygdrive for fixpath to work. 24726 new_path="$CYGWIN_ROOT_PATH$input_path" 24727 fi 24728 fi 24729 24730 24731 if test "x$path" != "x$new_path"; then 24732 BOOT_JDK="$new_path" 24733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24735 fi 24736 24737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24738 24739 path="$BOOT_JDK" 24740 has_colon=`$ECHO $path | $GREP ^.:` 24741 new_path="$path" 24742 if test "x$has_colon" = x; then 24743 # Not in mixed or Windows style, start by that. 24744 new_path=`cmd //c echo $path` 24745 fi 24746 24747 24748 input_path="$new_path" 24749 # Check if we need to convert this using DOS-style short mode. If the path 24750 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24751 # take no chances and rewrite it. 24752 # Note: m4 eats our [], so we need to use [ and ] instead. 24753 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24754 if test "x$has_forbidden_chars" != x; then 24755 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24756 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24757 fi 24758 24759 24760 windows_path="$new_path" 24761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24762 unix_path=`$CYGPATH -u "$windows_path"` 24763 new_path="$unix_path" 24764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24766 new_path="$unix_path" 24767 fi 24768 24769 if test "x$path" != "x$new_path"; then 24770 BOOT_JDK="$new_path" 24771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24773 fi 24774 24775 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24776 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24777 24778 else 24779 # We're on a posix platform. Hooray! :) 24780 path="$BOOT_JDK" 24781 has_space=`$ECHO "$path" | $GREP " "` 24782 if test "x$has_space" != x; then 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24785 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24786 fi 24787 24788 # Use eval to expand a potential ~ 24789 eval path="$path" 24790 if test ! -f "$path" && test ! -d "$path"; then 24791 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24792 fi 24793 24794 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24795 fi 24796 24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24798 $as_echo_n "checking for Boot JDK... " >&6; } 24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24800 $as_echo "$BOOT_JDK" >&6; } 24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24802 $as_echo_n "checking Boot JDK version... " >&6; } 24803 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24805 $as_echo "$BOOT_JDK_VERSION" >&6; } 24806 fi # end check jdk version 24807 fi # end check rt.jar 24808 fi # end check javac 24809 fi # end check java 24810 fi # end check boot jdk found 24811 fi 24812 24813 done 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 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24834 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24835 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24836 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24837 BOOT_JDK_FOUND=no 24838 else 24839 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24840 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24841 24842 # Extra M4 quote needed to protect [] in grep expression. 24843 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24844 if test "x$FOUND_CORRECT_VERSION" = x; then 24845 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24846 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24847 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24848 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24849 BOOT_JDK_FOUND=no 24850 else 24851 # We're done! :-) 24852 BOOT_JDK_FOUND=yes 24853 24854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24855 24856 # Input might be given as Windows format, start by converting to 24857 # unix format. 24858 path="$BOOT_JDK" 24859 new_path=`$CYGPATH -u "$path"` 24860 24861 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24862 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24863 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24864 # "foo.exe" is OK but "foo" is an error. 24865 # 24866 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24867 # It is also a way to make sure we got the proper file name for the real test later on. 24868 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24869 if test "x$test_shortpath" = x; then 24870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24871 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24872 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24873 fi 24874 24875 # Call helper function which possibly converts this using DOS-style short mode. 24876 # If so, the updated path is stored in $new_path. 24877 24878 input_path="$new_path" 24879 # Check if we need to convert this using DOS-style short mode. If the path 24880 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24881 # take no chances and rewrite it. 24882 # Note: m4 eats our [], so we need to use [ and ] instead. 24883 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24884 if test "x$has_forbidden_chars" != x; then 24885 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24886 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24887 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24888 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24889 # Going to short mode and back again did indeed matter. Since short mode is 24890 # case insensitive, let's make it lowercase to improve readability. 24891 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24892 # Now convert it back to Unix-stile (cygpath) 24893 input_path=`$CYGPATH -u "$shortmode_path"` 24894 new_path="$input_path" 24895 fi 24896 fi 24897 24898 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24899 if test "x$test_cygdrive_prefix" = x; then 24900 # As a simple fix, exclude /usr/bin since it's not a real path. 24901 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24902 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24903 # a path prefixed by /cygdrive for fixpath to work. 24904 new_path="$CYGWIN_ROOT_PATH$input_path" 24905 fi 24906 fi 24907 24908 24909 if test "x$path" != "x$new_path"; then 24910 BOOT_JDK="$new_path" 24911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24912 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24913 fi 24914 24915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24916 24917 path="$BOOT_JDK" 24918 has_colon=`$ECHO $path | $GREP ^.:` 24919 new_path="$path" 24920 if test "x$has_colon" = x; then 24921 # Not in mixed or Windows style, start by that. 24922 new_path=`cmd //c echo $path` 24923 fi 24924 24925 24926 input_path="$new_path" 24927 # Check if we need to convert this using DOS-style short mode. If the path 24928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24929 # take no chances and rewrite it. 24930 # Note: m4 eats our [], so we need to use [ and ] instead. 24931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24932 if test "x$has_forbidden_chars" != x; then 24933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24934 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24935 fi 24936 24937 24938 windows_path="$new_path" 24939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24940 unix_path=`$CYGPATH -u "$windows_path"` 24941 new_path="$unix_path" 24942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24944 new_path="$unix_path" 24945 fi 24946 24947 if test "x$path" != "x$new_path"; then 24948 BOOT_JDK="$new_path" 24949 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24950 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24951 fi 24952 24953 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24954 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24955 24956 else 24957 # We're on a posix platform. Hooray! :) 24958 path="$BOOT_JDK" 24959 has_space=`$ECHO "$path" | $GREP " "` 24960 if test "x$has_space" != x; then 24961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24962 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24963 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24964 fi 24965 24966 # Use eval to expand a potential ~ 24967 eval path="$path" 24968 if test ! -f "$path" && test ! -d "$path"; then 24969 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24970 fi 24971 24972 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24973 fi 24974 24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24976 $as_echo_n "checking for Boot JDK... " >&6; } 24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24978 $as_echo "$BOOT_JDK" >&6; } 24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24980 $as_echo_n "checking Boot JDK version... " >&6; } 24981 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24983 $as_echo "$BOOT_JDK_VERSION" >&6; } 24984 fi # end check jdk version 24985 fi # end check rt.jar 24986 fi # end check javac 24987 fi # end check java 24988 fi # end check boot jdk found 24989 fi 24990 24991 fi 24992 24993 24994 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24995 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24996 # Do we have a bin/java? 24997 if test ! -x "$BOOT_JDK/bin/java"; then 24998 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24999 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25000 BOOT_JDK_FOUND=no 25001 else 25002 # Do we have a bin/javac? 25003 if test ! -x "$BOOT_JDK/bin/javac"; then 25004 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25005 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25006 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25007 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25008 BOOT_JDK_FOUND=no 25009 else 25010 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25011 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25012 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25013 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25014 BOOT_JDK_FOUND=no 25015 else 25016 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25017 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25018 25019 # Extra M4 quote needed to protect [] in grep expression. 25020 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 25021 if test "x$FOUND_CORRECT_VERSION" = x; then 25022 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25023 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25024 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 25025 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 25026 BOOT_JDK_FOUND=no 25027 else 25028 # We're done! :-) 25029 BOOT_JDK_FOUND=yes 25030 25031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25032 25033 # Input might be given as Windows format, start by converting to 25034 # unix format. 25035 path="$BOOT_JDK" 25036 new_path=`$CYGPATH -u "$path"` 25037 25038 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25039 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25040 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25041 # "foo.exe" is OK but "foo" is an error. 25042 # 25043 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25044 # It is also a way to make sure we got the proper file name for the real test later on. 25045 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25046 if test "x$test_shortpath" = x; then 25047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25049 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25050 fi 25051 25052 # Call helper function which possibly converts this using DOS-style short mode. 25053 # If so, the updated path is stored in $new_path. 25054 25055 input_path="$new_path" 25056 # Check if we need to convert this using DOS-style short mode. If the path 25057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25058 # take no chances and rewrite it. 25059 # Note: m4 eats our [], so we need to use [ and ] instead. 25060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25061 if test "x$has_forbidden_chars" != x; then 25062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25063 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25064 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25065 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25066 # Going to short mode and back again did indeed matter. Since short mode is 25067 # case insensitive, let's make it lowercase to improve readability. 25068 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25069 # Now convert it back to Unix-stile (cygpath) 25070 input_path=`$CYGPATH -u "$shortmode_path"` 25071 new_path="$input_path" 25072 fi 25073 fi 25074 25075 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25076 if test "x$test_cygdrive_prefix" = x; then 25077 # As a simple fix, exclude /usr/bin since it's not a real path. 25078 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25079 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25080 # a path prefixed by /cygdrive for fixpath to work. 25081 new_path="$CYGWIN_ROOT_PATH$input_path" 25082 fi 25083 fi 25084 25085 25086 if test "x$path" != "x$new_path"; then 25087 BOOT_JDK="$new_path" 25088 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25089 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25090 fi 25091 25092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25093 25094 path="$BOOT_JDK" 25095 has_colon=`$ECHO $path | $GREP ^.:` 25096 new_path="$path" 25097 if test "x$has_colon" = x; then 25098 # Not in mixed or Windows style, start by that. 25099 new_path=`cmd //c echo $path` 25100 fi 25101 25102 25103 input_path="$new_path" 25104 # Check if we need to convert this using DOS-style short mode. If the path 25105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25106 # take no chances and rewrite it. 25107 # Note: m4 eats our [], so we need to use [ and ] instead. 25108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25109 if test "x$has_forbidden_chars" != x; then 25110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25111 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25112 fi 25113 25114 25115 windows_path="$new_path" 25116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25117 unix_path=`$CYGPATH -u "$windows_path"` 25118 new_path="$unix_path" 25119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25121 new_path="$unix_path" 25122 fi 25123 25124 if test "x$path" != "x$new_path"; then 25125 BOOT_JDK="$new_path" 25126 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25127 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25128 fi 25129 25130 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25131 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25132 25133 else 25134 # We're on a posix platform. Hooray! :) 25135 path="$BOOT_JDK" 25136 has_space=`$ECHO "$path" | $GREP " "` 25137 if test "x$has_space" != x; then 25138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25139 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25140 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25141 fi 25142 25143 # Use eval to expand a potential ~ 25144 eval path="$path" 25145 if test ! -f "$path" && test ! -d "$path"; then 25146 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25147 fi 25148 25149 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25150 fi 25151 25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25153 $as_echo_n "checking for Boot JDK... " >&6; } 25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25155 $as_echo "$BOOT_JDK" >&6; } 25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25157 $as_echo_n "checking Boot JDK version... " >&6; } 25158 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25160 $as_echo "$BOOT_JDK_VERSION" >&6; } 25161 fi # end check jdk version 25162 fi # end check rt.jar 25163 fi # end check javac 25164 fi # end check java 25165 fi # end check boot jdk found 25166 fi 25167 25168 25169 # If we haven't found anything yet, we've truly lost. Give up. 25170 if test "x$BOOT_JDK_FOUND" = xno; then 25171 25172 # Print a helpful message on how to acquire the necessary build dependency. 25173 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25174 MISSING_DEPENDENCY=openjdk 25175 25176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25177 cygwin_help $MISSING_DEPENDENCY 25178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25179 msys_help $MISSING_DEPENDENCY 25180 else 25181 PKGHANDLER_COMMAND= 25182 25183 case $PKGHANDLER in 25184 apt-get) 25185 apt_help $MISSING_DEPENDENCY ;; 25186 yum) 25187 yum_help $MISSING_DEPENDENCY ;; 25188 port) 25189 port_help $MISSING_DEPENDENCY ;; 25190 pkgutil) 25191 pkgutil_help $MISSING_DEPENDENCY ;; 25192 pkgadd) 25193 pkgadd_help $MISSING_DEPENDENCY ;; 25194 esac 25195 25196 if test "x$PKGHANDLER_COMMAND" != x; then 25197 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25198 fi 25199 fi 25200 25201 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25202 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25203 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25204 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25205 as_fn_error $? "Cannot continue" "$LINENO" 5 25206 fi 25207 25208 # Setup proper paths for what we found 25209 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 25210 if test ! -f "$BOOT_RTJAR"; then 25211 # On MacOSX it is called classes.jar 25212 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 25213 if test -f "$BOOT_RTJAR"; then 25214 # Remove the .. 25215 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 25216 fi 25217 fi 25218 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 25219 BOOT_JDK="$BOOT_JDK" 25220 25221 25222 25223 25224 # Setup tools from the Boot JDK. 25225 25226 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25227 25228 # Publish this variable in the help. 25229 25230 25231 if test "x$JAVA" = x; then 25232 # The variable is not set by user, try to locate tool using the code snippet 25233 25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25235 $as_echo_n "checking for java in Boot JDK... " >&6; } 25236 JAVA=$BOOT_JDK/bin/java 25237 if test ! -x $JAVA; then 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25239 $as_echo "not found" >&6; } 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25241 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25242 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25243 fi 25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25245 $as_echo "ok" >&6; } 25246 25247 25248 else 25249 # The variable is set, but is it from the command line or the environment? 25250 25251 # Try to remove the string !JAVA! from our list. 25252 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25253 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25254 # If it failed, the variable was not from the command line. Ignore it, 25255 # but warn the user (except for BASH, which is always set by the calling BASH). 25256 if test "xJAVA" != xBASH; then 25257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25258 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25259 fi 25260 # Try to locate tool using the code snippet 25261 25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25263 $as_echo_n "checking for java in Boot JDK... " >&6; } 25264 JAVA=$BOOT_JDK/bin/java 25265 if test ! -x $JAVA; then 25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25267 $as_echo "not found" >&6; } 25268 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25269 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25270 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25271 fi 25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25273 $as_echo "ok" >&6; } 25274 25275 25276 else 25277 # If it succeeded, then it was overridden by the user. We will use it 25278 # for the tool. 25279 25280 # First remove it from the list of overridden variables, so we can test 25281 # for unknown variables in the end. 25282 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25283 25284 # Check if the provided tool contains a complete path. 25285 tool_specified="$JAVA" 25286 tool_basename="${tool_specified##*/}" 25287 if test "x$tool_basename" = "x$tool_specified"; then 25288 # A command without a complete path is provided, search $PATH. 25289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25290 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25291 # Extract the first word of "$tool_basename", so it can be a program name with args. 25292 set dummy $tool_basename; ac_word=$2 25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25294 $as_echo_n "checking for $ac_word... " >&6; } 25295 if ${ac_cv_path_JAVA+:} false; then : 25296 $as_echo_n "(cached) " >&6 25297 else 25298 case $JAVA in 25299 [\\/]* | ?:[\\/]*) 25300 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25301 ;; 25302 *) 25303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25304 for as_dir in $PATH 25305 do 25306 IFS=$as_save_IFS 25307 test -z "$as_dir" && as_dir=. 25308 for ac_exec_ext in '' $ac_executable_extensions; do 25309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25310 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25312 break 2 25313 fi 25314 done 25315 done 25316 IFS=$as_save_IFS 25317 25318 ;; 25319 esac 25320 fi 25321 JAVA=$ac_cv_path_JAVA 25322 if test -n "$JAVA"; then 25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25324 $as_echo "$JAVA" >&6; } 25325 else 25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25327 $as_echo "no" >&6; } 25328 fi 25329 25330 25331 if test "x$JAVA" = x; then 25332 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25333 fi 25334 else 25335 # Otherwise we believe it is a complete path. Use it as it is. 25336 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25337 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25339 $as_echo_n "checking for JAVA... " >&6; } 25340 if test ! -x "$tool_specified"; then 25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25342 $as_echo "not found" >&6; } 25343 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25344 fi 25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25346 $as_echo "$tool_specified" >&6; } 25347 fi 25348 fi 25349 fi 25350 25351 25352 25353 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25354 25355 # Publish this variable in the help. 25356 25357 25358 if test "x$JAVAC" = x; then 25359 # The variable is not set by user, try to locate tool using the code snippet 25360 25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25362 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25363 JAVAC=$BOOT_JDK/bin/javac 25364 if test ! -x $JAVAC; then 25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25366 $as_echo "not found" >&6; } 25367 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25368 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25369 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25370 fi 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25372 $as_echo "ok" >&6; } 25373 25374 25375 else 25376 # The variable is set, but is it from the command line or the environment? 25377 25378 # Try to remove the string !JAVAC! from our list. 25379 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25380 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25381 # If it failed, the variable was not from the command line. Ignore it, 25382 # but warn the user (except for BASH, which is always set by the calling BASH). 25383 if test "xJAVAC" != xBASH; then 25384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25385 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25386 fi 25387 # Try to locate tool using the code snippet 25388 25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25390 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25391 JAVAC=$BOOT_JDK/bin/javac 25392 if test ! -x $JAVAC; then 25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25394 $as_echo "not found" >&6; } 25395 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25396 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25397 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25398 fi 25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25400 $as_echo "ok" >&6; } 25401 25402 25403 else 25404 # If it succeeded, then it was overridden by the user. We will use it 25405 # for the tool. 25406 25407 # First remove it from the list of overridden variables, so we can test 25408 # for unknown variables in the end. 25409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25410 25411 # Check if the provided tool contains a complete path. 25412 tool_specified="$JAVAC" 25413 tool_basename="${tool_specified##*/}" 25414 if test "x$tool_basename" = "x$tool_specified"; then 25415 # A command without a complete path is provided, search $PATH. 25416 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25417 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25418 # Extract the first word of "$tool_basename", so it can be a program name with args. 25419 set dummy $tool_basename; ac_word=$2 25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25421 $as_echo_n "checking for $ac_word... " >&6; } 25422 if ${ac_cv_path_JAVAC+:} false; then : 25423 $as_echo_n "(cached) " >&6 25424 else 25425 case $JAVAC in 25426 [\\/]* | ?:[\\/]*) 25427 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25428 ;; 25429 *) 25430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25431 for as_dir in $PATH 25432 do 25433 IFS=$as_save_IFS 25434 test -z "$as_dir" && as_dir=. 25435 for ac_exec_ext in '' $ac_executable_extensions; do 25436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25437 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25439 break 2 25440 fi 25441 done 25442 done 25443 IFS=$as_save_IFS 25444 25445 ;; 25446 esac 25447 fi 25448 JAVAC=$ac_cv_path_JAVAC 25449 if test -n "$JAVAC"; then 25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25451 $as_echo "$JAVAC" >&6; } 25452 else 25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25454 $as_echo "no" >&6; } 25455 fi 25456 25457 25458 if test "x$JAVAC" = x; then 25459 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25460 fi 25461 else 25462 # Otherwise we believe it is a complete path. Use it as it is. 25463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25464 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25466 $as_echo_n "checking for JAVAC... " >&6; } 25467 if test ! -x "$tool_specified"; then 25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25469 $as_echo "not found" >&6; } 25470 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25471 fi 25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25473 $as_echo "$tool_specified" >&6; } 25474 fi 25475 fi 25476 fi 25477 25478 25479 25480 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25481 25482 # Publish this variable in the help. 25483 25484 25485 if test "x$JAVAH" = x; then 25486 # The variable is not set by user, try to locate tool using the code snippet 25487 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25489 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25490 JAVAH=$BOOT_JDK/bin/javah 25491 if test ! -x $JAVAH; then 25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25493 $as_echo "not found" >&6; } 25494 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25495 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25496 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25497 fi 25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25499 $as_echo "ok" >&6; } 25500 25501 25502 else 25503 # The variable is set, but is it from the command line or the environment? 25504 25505 # Try to remove the string !JAVAH! from our list. 25506 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25507 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25508 # If it failed, the variable was not from the command line. Ignore it, 25509 # but warn the user (except for BASH, which is always set by the calling BASH). 25510 if test "xJAVAH" != xBASH; then 25511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25512 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25513 fi 25514 # Try to locate tool using the code snippet 25515 25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25517 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25518 JAVAH=$BOOT_JDK/bin/javah 25519 if test ! -x $JAVAH; then 25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25521 $as_echo "not found" >&6; } 25522 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25523 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25524 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25525 fi 25526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25527 $as_echo "ok" >&6; } 25528 25529 25530 else 25531 # If it succeeded, then it was overridden by the user. We will use it 25532 # for the tool. 25533 25534 # First remove it from the list of overridden variables, so we can test 25535 # for unknown variables in the end. 25536 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25537 25538 # Check if the provided tool contains a complete path. 25539 tool_specified="$JAVAH" 25540 tool_basename="${tool_specified##*/}" 25541 if test "x$tool_basename" = "x$tool_specified"; then 25542 # A command without a complete path is provided, search $PATH. 25543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25544 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25545 # Extract the first word of "$tool_basename", so it can be a program name with args. 25546 set dummy $tool_basename; ac_word=$2 25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25548 $as_echo_n "checking for $ac_word... " >&6; } 25549 if ${ac_cv_path_JAVAH+:} false; then : 25550 $as_echo_n "(cached) " >&6 25551 else 25552 case $JAVAH in 25553 [\\/]* | ?:[\\/]*) 25554 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25555 ;; 25556 *) 25557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25558 for as_dir in $PATH 25559 do 25560 IFS=$as_save_IFS 25561 test -z "$as_dir" && as_dir=. 25562 for ac_exec_ext in '' $ac_executable_extensions; do 25563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25564 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25566 break 2 25567 fi 25568 done 25569 done 25570 IFS=$as_save_IFS 25571 25572 ;; 25573 esac 25574 fi 25575 JAVAH=$ac_cv_path_JAVAH 25576 if test -n "$JAVAH"; then 25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25578 $as_echo "$JAVAH" >&6; } 25579 else 25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25581 $as_echo "no" >&6; } 25582 fi 25583 25584 25585 if test "x$JAVAH" = x; then 25586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25587 fi 25588 else 25589 # Otherwise we believe it is a complete path. Use it as it is. 25590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25591 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25593 $as_echo_n "checking for JAVAH... " >&6; } 25594 if test ! -x "$tool_specified"; then 25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25596 $as_echo "not found" >&6; } 25597 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25598 fi 25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25600 $as_echo "$tool_specified" >&6; } 25601 fi 25602 fi 25603 fi 25604 25605 25606 25607 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25608 25609 # Publish this variable in the help. 25610 25611 25612 if test "x$JAR" = x; then 25613 # The variable is not set by user, try to locate tool using the code snippet 25614 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25616 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25617 JAR=$BOOT_JDK/bin/jar 25618 if test ! -x $JAR; then 25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25620 $as_echo "not found" >&6; } 25621 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25622 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25623 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25624 fi 25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25626 $as_echo "ok" >&6; } 25627 25628 25629 else 25630 # The variable is set, but is it from the command line or the environment? 25631 25632 # Try to remove the string !JAR! from our list. 25633 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25634 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25635 # If it failed, the variable was not from the command line. Ignore it, 25636 # but warn the user (except for BASH, which is always set by the calling BASH). 25637 if test "xJAR" != xBASH; then 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25639 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25640 fi 25641 # Try to locate tool using the code snippet 25642 25643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25644 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25645 JAR=$BOOT_JDK/bin/jar 25646 if test ! -x $JAR; then 25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25648 $as_echo "not found" >&6; } 25649 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25650 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25651 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25652 fi 25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25654 $as_echo "ok" >&6; } 25655 25656 25657 else 25658 # If it succeeded, then it was overridden by the user. We will use it 25659 # for the tool. 25660 25661 # First remove it from the list of overridden variables, so we can test 25662 # for unknown variables in the end. 25663 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25664 25665 # Check if the provided tool contains a complete path. 25666 tool_specified="$JAR" 25667 tool_basename="${tool_specified##*/}" 25668 if test "x$tool_basename" = "x$tool_specified"; then 25669 # A command without a complete path is provided, search $PATH. 25670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25671 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25672 # Extract the first word of "$tool_basename", so it can be a program name with args. 25673 set dummy $tool_basename; ac_word=$2 25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25675 $as_echo_n "checking for $ac_word... " >&6; } 25676 if ${ac_cv_path_JAR+:} false; then : 25677 $as_echo_n "(cached) " >&6 25678 else 25679 case $JAR in 25680 [\\/]* | ?:[\\/]*) 25681 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25682 ;; 25683 *) 25684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25685 for as_dir in $PATH 25686 do 25687 IFS=$as_save_IFS 25688 test -z "$as_dir" && as_dir=. 25689 for ac_exec_ext in '' $ac_executable_extensions; do 25690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25691 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25693 break 2 25694 fi 25695 done 25696 done 25697 IFS=$as_save_IFS 25698 25699 ;; 25700 esac 25701 fi 25702 JAR=$ac_cv_path_JAR 25703 if test -n "$JAR"; then 25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25705 $as_echo "$JAR" >&6; } 25706 else 25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25708 $as_echo "no" >&6; } 25709 fi 25710 25711 25712 if test "x$JAR" = x; then 25713 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25714 fi 25715 else 25716 # Otherwise we believe it is a complete path. Use it as it is. 25717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25718 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25720 $as_echo_n "checking for JAR... " >&6; } 25721 if test ! -x "$tool_specified"; then 25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25723 $as_echo "not found" >&6; } 25724 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25725 fi 25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25727 $as_echo "$tool_specified" >&6; } 25728 fi 25729 fi 25730 fi 25731 25732 25733 25734 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25735 25736 # Publish this variable in the help. 25737 25738 25739 if test "x$NATIVE2ASCII" = x; then 25740 # The variable is not set by user, try to locate tool using the code snippet 25741 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25743 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25744 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25745 if test ! -x $NATIVE2ASCII; then 25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25747 $as_echo "not found" >&6; } 25748 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25749 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25750 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25751 fi 25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25753 $as_echo "ok" >&6; } 25754 25755 25756 else 25757 # The variable is set, but is it from the command line or the environment? 25758 25759 # Try to remove the string !NATIVE2ASCII! from our list. 25760 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25761 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25762 # If it failed, the variable was not from the command line. Ignore it, 25763 # but warn the user (except for BASH, which is always set by the calling BASH). 25764 if test "xNATIVE2ASCII" != xBASH; then 25765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25766 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25767 fi 25768 # Try to locate tool using the code snippet 25769 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25771 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25772 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25773 if test ! -x $NATIVE2ASCII; then 25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25775 $as_echo "not found" >&6; } 25776 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25777 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25778 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25779 fi 25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25781 $as_echo "ok" >&6; } 25782 25783 25784 else 25785 # If it succeeded, then it was overridden by the user. We will use it 25786 # for the tool. 25787 25788 # First remove it from the list of overridden variables, so we can test 25789 # for unknown variables in the end. 25790 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25791 25792 # Check if the provided tool contains a complete path. 25793 tool_specified="$NATIVE2ASCII" 25794 tool_basename="${tool_specified##*/}" 25795 if test "x$tool_basename" = "x$tool_specified"; then 25796 # A command without a complete path is provided, search $PATH. 25797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 25798 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 25799 # Extract the first word of "$tool_basename", so it can be a program name with args. 25800 set dummy $tool_basename; ac_word=$2 25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25802 $as_echo_n "checking for $ac_word... " >&6; } 25803 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 25804 $as_echo_n "(cached) " >&6 25805 else 25806 case $NATIVE2ASCII in 25807 [\\/]* | ?:[\\/]*) 25808 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 25809 ;; 25810 *) 25811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25812 for as_dir in $PATH 25813 do 25814 IFS=$as_save_IFS 25815 test -z "$as_dir" && as_dir=. 25816 for ac_exec_ext in '' $ac_executable_extensions; do 25817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25818 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 25819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25820 break 2 25821 fi 25822 done 25823 done 25824 IFS=$as_save_IFS 25825 25826 ;; 25827 esac 25828 fi 25829 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 25830 if test -n "$NATIVE2ASCII"; then 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 25832 $as_echo "$NATIVE2ASCII" >&6; } 25833 else 25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25835 $as_echo "no" >&6; } 25836 fi 25837 25838 25839 if test "x$NATIVE2ASCII" = x; then 25840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25841 fi 25842 else 25843 # Otherwise we believe it is a complete path. Use it as it is. 25844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 25845 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 25847 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 25848 if test ! -x "$tool_specified"; then 25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25850 $as_echo "not found" >&6; } 25851 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 25852 fi 25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25854 $as_echo "$tool_specified" >&6; } 25855 fi 25856 fi 25857 fi 25858 25859 25860 25861 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25862 25863 # Publish this variable in the help. 25864 25865 25866 if test "x$JARSIGNER" = x; then 25867 # The variable is not set by user, try to locate tool using the code snippet 25868 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25870 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25871 JARSIGNER=$BOOT_JDK/bin/jarsigner 25872 if test ! -x $JARSIGNER; then 25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25874 $as_echo "not found" >&6; } 25875 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25876 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25877 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25878 fi 25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25880 $as_echo "ok" >&6; } 25881 25882 25883 else 25884 # The variable is set, but is it from the command line or the environment? 25885 25886 # Try to remove the string !JARSIGNER! from our list. 25887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 25888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25889 # If it failed, the variable was not from the command line. Ignore it, 25890 # but warn the user (except for BASH, which is always set by the calling BASH). 25891 if test "xJARSIGNER" != xBASH; then 25892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 25893 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 25894 fi 25895 # Try to locate tool using the code snippet 25896 25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25898 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25899 JARSIGNER=$BOOT_JDK/bin/jarsigner 25900 if test ! -x $JARSIGNER; then 25901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25902 $as_echo "not found" >&6; } 25903 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25904 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25905 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25906 fi 25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25908 $as_echo "ok" >&6; } 25909 25910 25911 else 25912 # If it succeeded, then it was overridden by the user. We will use it 25913 # for the tool. 25914 25915 # First remove it from the list of overridden variables, so we can test 25916 # for unknown variables in the end. 25917 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25918 25919 # Check if the provided tool contains a complete path. 25920 tool_specified="$JARSIGNER" 25921 tool_basename="${tool_specified##*/}" 25922 if test "x$tool_basename" = "x$tool_specified"; then 25923 # A command without a complete path is provided, search $PATH. 25924 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 25925 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 25926 # Extract the first word of "$tool_basename", so it can be a program name with args. 25927 set dummy $tool_basename; ac_word=$2 25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25929 $as_echo_n "checking for $ac_word... " >&6; } 25930 if ${ac_cv_path_JARSIGNER+:} false; then : 25931 $as_echo_n "(cached) " >&6 25932 else 25933 case $JARSIGNER in 25934 [\\/]* | ?:[\\/]*) 25935 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 25936 ;; 25937 *) 25938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25939 for as_dir in $PATH 25940 do 25941 IFS=$as_save_IFS 25942 test -z "$as_dir" && as_dir=. 25943 for ac_exec_ext in '' $ac_executable_extensions; do 25944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25945 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 25946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25947 break 2 25948 fi 25949 done 25950 done 25951 IFS=$as_save_IFS 25952 25953 ;; 25954 esac 25955 fi 25956 JARSIGNER=$ac_cv_path_JARSIGNER 25957 if test -n "$JARSIGNER"; then 25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 25959 $as_echo "$JARSIGNER" >&6; } 25960 else 25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25962 $as_echo "no" >&6; } 25963 fi 25964 25965 25966 if test "x$JARSIGNER" = x; then 25967 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25968 fi 25969 else 25970 # Otherwise we believe it is a complete path. Use it as it is. 25971 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 25972 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 25974 $as_echo_n "checking for JARSIGNER... " >&6; } 25975 if test ! -x "$tool_specified"; then 25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25977 $as_echo "not found" >&6; } 25978 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 25979 fi 25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25981 $as_echo "$tool_specified" >&6; } 25982 fi 25983 fi 25984 fi 25985 25986 25987 25988 # Finally, set some other options... 25989 25990 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 25991 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 25992 25993 25994 25995 25996 ############################################################################## 25997 # 25998 # Specify jvm options for anything that is run with the Boot JDK. 25999 # Not all JVM:s accept the same arguments on the command line. 26000 # 26001 26002 # Check whether --with-boot-jdk-jvmargs was given. 26003 if test "${with_boot_jdk_jvmargs+set}" = set; then : 26004 withval=$with_boot_jdk_jvmargs; 26005 fi 26006 26007 26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 26009 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 26010 26011 # Disable special log output when a debug build is used as Boot JDK... 26012 26013 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 26014 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 26015 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 26016 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26017 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26018 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26019 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 26020 JVM_ARG_OK=true 26021 else 26022 $ECHO "Arg failed:" >&5 26023 $ECHO "$OUTPUT" >&5 26024 JVM_ARG_OK=false 26025 fi 26026 26027 26028 # Apply user provided options. 26029 26030 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 26031 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 26032 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 26033 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26034 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26035 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26036 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 26037 JVM_ARG_OK=true 26038 else 26039 $ECHO "Arg failed:" >&5 26040 $ECHO "$OUTPUT" >&5 26041 JVM_ARG_OK=false 26042 fi 26043 26044 26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 26046 $as_echo "$boot_jdk_jvmargs" >&6; } 26047 26048 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 26049 JAVA_FLAGS=$boot_jdk_jvmargs 26050 26051 26052 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 26054 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 26055 26056 # Starting amount of heap memory. 26057 26058 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 26059 $ECHO "Command: $JAVA -Xms64M -version" >&5 26060 OUTPUT=`$JAVA -Xms64M -version 2>&1` 26061 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26062 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26063 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26064 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 26065 JVM_ARG_OK=true 26066 else 26067 $ECHO "Arg failed:" >&5 26068 $ECHO "$OUTPUT" >&5 26069 JVM_ARG_OK=false 26070 fi 26071 26072 26073 # Maximum amount of heap memory. 26074 # Maximum stack size. 26075 if test "x$BUILD_NUM_BITS" = x32; then 26076 JVM_MAX_HEAP=1100M 26077 STACK_SIZE=768 26078 else 26079 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 26080 # pointers are used. Apparently, we need to increase the heap and stack 26081 # space for the jvm. More specifically, when running javac to build huge 26082 # jdk batch 26083 JVM_MAX_HEAP=1600M 26084 STACK_SIZE=1536 26085 fi 26086 26087 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 26088 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 26089 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 26090 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26091 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26092 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26093 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 26094 JVM_ARG_OK=true 26095 else 26096 $ECHO "Arg failed:" >&5 26097 $ECHO "$OUTPUT" >&5 26098 JVM_ARG_OK=false 26099 fi 26100 26101 26102 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 26103 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 26104 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 26105 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26106 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26107 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26108 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 26109 JVM_ARG_OK=true 26110 else 26111 $ECHO "Arg failed:" >&5 26112 $ECHO "$OUTPUT" >&5 26113 JVM_ARG_OK=false 26114 fi 26115 26116 26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 26118 $as_echo "$boot_jdk_jvmargs_big" >&6; } 26119 26120 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 26121 26122 26123 26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 26125 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 26126 26127 # Use serial gc for small short lived tools if possible 26128 26129 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 26130 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 26131 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 26132 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26133 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26134 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26135 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 26136 JVM_ARG_OK=true 26137 else 26138 $ECHO "Arg failed:" >&5 26139 $ECHO "$OUTPUT" >&5 26140 JVM_ARG_OK=false 26141 fi 26142 26143 26144 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 26145 $ECHO "Command: $JAVA -Xms32M -version" >&5 26146 OUTPUT=`$JAVA -Xms32M -version 2>&1` 26147 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26148 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26149 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26150 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 26151 JVM_ARG_OK=true 26152 else 26153 $ECHO "Arg failed:" >&5 26154 $ECHO "$OUTPUT" >&5 26155 JVM_ARG_OK=false 26156 fi 26157 26158 26159 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 26160 $ECHO "Command: $JAVA -Xmx512M -version" >&5 26161 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 26162 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26163 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26164 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26165 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 26166 JVM_ARG_OK=true 26167 else 26168 $ECHO "Arg failed:" >&5 26169 $ECHO "$OUTPUT" >&5 26170 JVM_ARG_OK=false 26171 fi 26172 26173 26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 26175 $as_echo "$boot_jdk_jvmargs_small" >&6; } 26176 26177 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 26178 26179 26180 26181 ############################################################################### 26182 # 26183 # Configure the sources to use. We can add or override individual directories. 26184 # 26185 ############################################################################### 26186 26187 26188 # Where are the sources. Any of these can be overridden 26189 # using --with-override-corba and the likes. 26190 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26191 CORBA_TOPDIR="$SRC_ROOT/corba" 26192 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26193 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26194 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26195 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26196 JDK_TOPDIR="$SRC_ROOT/jdk" 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 ############################################################################### 26208 # 26209 # Pickup additional source for a component from outside of the source root 26210 # or override source for a component. 26211 # 26212 26213 # Check whether --with-add-source-root was given. 26214 if test "${with_add_source_root+set}" = set; then : 26215 withval=$with_add_source_root; 26216 fi 26217 26218 26219 26220 # Check whether --with-override-source-root was given. 26221 if test "${with_override_source_root+set}" = set; then : 26222 withval=$with_override_source_root; 26223 fi 26224 26225 26226 26227 # Check whether --with-adds-and-overrides was given. 26228 if test "${with_adds_and_overrides+set}" = set; then : 26229 withval=$with_adds_and_overrides; 26230 fi 26231 26232 26233 if test "x$with_adds_and_overrides" != x; then 26234 with_add_source_root="$with_adds_and_overrides/adds" 26235 with_override_source_root="$with_adds_and_overrides/overrides" 26236 fi 26237 26238 if test "x$with_add_source_root" != x; then 26239 if ! test -d $with_add_source_root; then 26240 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26241 fi 26242 CURDIR="$PWD" 26243 cd "$with_add_source_root" 26244 ADD_SRC_ROOT="`pwd`" 26245 cd "$CURDIR" 26246 # Verify that the addon source root does not have any root makefiles. 26247 # If it does, then it is usually an error, prevent this. 26248 if test -f $with_add_source_root/langtools/make/Makefile; then 26249 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 26250 fi 26251 if test -f $with_add_source_root/corba/make/Makefile; then 26252 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 26253 fi 26254 if test -f $with_add_source_root/jaxp/make/Makefile; then 26255 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 26256 fi 26257 if test -f $with_add_source_root/jaxws/make/Makefile; then 26258 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 26259 fi 26260 if test -f $with_add_source_root/hotspot/make/Makefile; then 26261 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 26262 fi 26263 if test -f $with_add_source_root/nashorn/make/Makefile; then 26264 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 26265 fi 26266 if test -f $with_add_source_root/jdk/make/Makefile; then 26267 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 26268 fi 26269 fi 26270 26271 26272 if test "x$with_override_source_root" != x; then 26273 if ! test -d $with_override_source_root; then 26274 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26275 fi 26276 CURDIR="$PWD" 26277 cd "$with_override_source_root" 26278 OVERRIDE_SRC_ROOT="`pwd`" 26279 cd "$CURDIR" 26280 if test -f $with_override_source_root/langtools/make/Makefile; then 26281 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 26282 fi 26283 if test -f $with_override_source_root/corba/make/Makefile; then 26284 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 26285 fi 26286 if test -f $with_override_source_root/jaxp/make/Makefile; then 26287 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 26288 fi 26289 if test -f $with_override_source_root/jaxws/make/Makefile; then 26290 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 26291 fi 26292 if test -f $with_override_source_root/hotspot/make/Makefile; then 26293 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 26294 fi 26295 if test -f $with_override_source_root/nashorn/make/Makefile; then 26296 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 26297 fi 26298 if test -f $with_override_source_root/jdk/make/Makefile; then 26299 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 26300 fi 26301 fi 26302 26303 26304 ############################################################################### 26305 # 26306 # Override a repo completely, this is used for example when you have 3 small 26307 # development sandboxes of the langtools sources and want to avoid having 3 full 26308 # OpenJDK sources checked out on disk. 26309 # 26310 # Assuming that the 3 langtools sandboxes are located here: 26311 # /home/fredrik/sandbox1/langtools 26312 # /home/fredrik/sandbox2/langtools 26313 # /home/fredrik/sandbox3/langtools 26314 # 26315 # From the source root you create build subdirs manually: 26316 # mkdir -p build1 build2 build3 26317 # in each build directory run: 26318 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26319 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26320 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26321 # 26322 26323 26324 # Check whether --with-override-langtools was given. 26325 if test "${with_override_langtools+set}" = set; then : 26326 withval=$with_override_langtools; 26327 fi 26328 26329 26330 26331 # Check whether --with-override-corba was given. 26332 if test "${with_override_corba+set}" = set; then : 26333 withval=$with_override_corba; 26334 fi 26335 26336 26337 26338 # Check whether --with-override-jaxp was given. 26339 if test "${with_override_jaxp+set}" = set; then : 26340 withval=$with_override_jaxp; 26341 fi 26342 26343 26344 26345 # Check whether --with-override-jaxws was given. 26346 if test "${with_override_jaxws+set}" = set; then : 26347 withval=$with_override_jaxws; 26348 fi 26349 26350 26351 26352 # Check whether --with-override-hotspot was given. 26353 if test "${with_override_hotspot+set}" = set; then : 26354 withval=$with_override_hotspot; 26355 fi 26356 26357 26358 26359 # Check whether --with-override-nashorn was given. 26360 if test "${with_override_nashorn+set}" = set; then : 26361 withval=$with_override_nashorn; 26362 fi 26363 26364 26365 26366 # Check whether --with-override-jdk was given. 26367 if test "${with_override_jdk+set}" = set; then : 26368 withval=$with_override_jdk; 26369 fi 26370 26371 26372 if test "x$with_override_langtools" != x; then 26373 CURDIR="$PWD" 26374 cd "$with_override_langtools" 26375 LANGTOOLS_TOPDIR="`pwd`" 26376 cd "$CURDIR" 26377 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26378 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26379 fi 26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26381 $as_echo_n "checking if langtools should be overridden... " >&6; } 26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26383 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26384 fi 26385 if test "x$with_override_corba" != x; then 26386 CURDIR="$PWD" 26387 cd "$with_override_corba" 26388 CORBA_TOPDIR="`pwd`" 26389 cd "$CURDIR" 26390 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26391 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26392 fi 26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26394 $as_echo_n "checking if corba should be overridden... " >&6; } 26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26396 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26397 fi 26398 if test "x$with_override_jaxp" != x; then 26399 CURDIR="$PWD" 26400 cd "$with_override_jaxp" 26401 JAXP_TOPDIR="`pwd`" 26402 cd "$CURDIR" 26403 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26404 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26405 fi 26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26407 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26409 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26410 fi 26411 if test "x$with_override_jaxws" != x; then 26412 CURDIR="$PWD" 26413 cd "$with_override_jaxws" 26414 JAXWS_TOPDIR="`pwd`" 26415 cd "$CURDIR" 26416 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26417 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26418 fi 26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26420 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26422 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26423 fi 26424 if test "x$with_override_hotspot" != x; then 26425 CURDIR="$PWD" 26426 cd "$with_override_hotspot" 26427 HOTSPOT_TOPDIR="`pwd`" 26428 cd "$CURDIR" 26429 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26430 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26431 fi 26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26433 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26435 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26436 fi 26437 if test "x$with_override_nashorn" != x; then 26438 CURDIR="$PWD" 26439 cd "$with_override_nashorn" 26440 NASHORN_TOPDIR="`pwd`" 26441 cd "$CURDIR" 26442 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26443 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26444 fi 26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26446 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26448 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26449 fi 26450 if test "x$with_override_jdk" != x; then 26451 CURDIR="$PWD" 26452 cd "$with_override_jdk" 26453 JDK_TOPDIR="`pwd`" 26454 cd "$CURDIR" 26455 if ! test -f $JDK_TOPDIR/make/Makefile; then 26456 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26457 fi 26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26459 $as_echo_n "checking if JDK should be overridden... " >&6; } 26460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26461 $as_echo "yes with $JDK_TOPDIR" >&6; } 26462 fi 26463 26464 26465 BUILD_OUTPUT="$OUTPUT_ROOT" 26466 26467 26468 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26469 BUILD_HOTSPOT=true 26470 26471 26472 26473 # Check whether --with-import-hotspot was given. 26474 if test "${with_import_hotspot+set}" = set; then : 26475 withval=$with_import_hotspot; 26476 fi 26477 26478 if test "x$with_import_hotspot" != x; then 26479 CURDIR="$PWD" 26480 cd "$with_import_hotspot" 26481 HOTSPOT_DIST="`pwd`" 26482 cd "$CURDIR" 26483 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26484 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26485 fi 26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26487 $as_echo_n "checking if hotspot should be imported... " >&6; } 26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26489 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26490 BUILD_HOTSPOT=false 26491 fi 26492 26493 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26494 26495 26496 ############################################################################### 26497 # 26498 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26499 # native code. 26500 # 26501 ############################################################################### 26502 26503 # First determine the toolchain type (compiler family) 26504 26505 26506 # Check whether --with-toolchain-type was given. 26507 if test "${with_toolchain_type+set}" = set; then : 26508 withval=$with_toolchain_type; 26509 fi 26510 26511 26512 # Use indirect variable referencing 26513 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26514 VALID_TOOLCHAINS=${!toolchain_var_name} 26515 26516 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26517 # On Mac OS X, default toolchain to clang after Xcode 5 26518 XCODE_VERSION_OUTPUT=`xcodebuild -version 2>&1 | $HEAD -n 1` 26519 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26520 if test $? -ne 0; then 26521 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26522 fi 26523 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26524 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26525 $CUT -f 1 -d .` 26526 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26527 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26528 if test $XCODE_MAJOR_VERSION -ge 5; then 26529 DEFAULT_TOOLCHAIN="clang" 26530 else 26531 DEFAULT_TOOLCHAIN="gcc" 26532 fi 26533 else 26534 # First toolchain type in the list is the default 26535 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26536 fi 26537 26538 if test "x$with_toolchain_type" = xlist; then 26539 # List all toolchains 26540 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26541 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26542 for toolchain in $VALID_TOOLCHAINS; do 26543 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26544 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26545 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26546 done 26547 26548 exit 0 26549 elif test "x$with_toolchain_type" != x; then 26550 # User override; check that it is valid 26551 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26552 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26553 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26554 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26555 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26556 as_fn_error $? "Cannot continue." "$LINENO" 5 26557 fi 26558 TOOLCHAIN_TYPE=$with_toolchain_type 26559 else 26560 # No flag given, use default 26561 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26562 fi 26563 26564 26565 TOOLCHAIN_CC_BINARY_clang="clang" 26566 TOOLCHAIN_CC_BINARY_gcc="gcc" 26567 TOOLCHAIN_CC_BINARY_microsoft="cl" 26568 TOOLCHAIN_CC_BINARY_solstudio="cc" 26569 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26570 26571 TOOLCHAIN_CXX_BINARY_clang="clang++" 26572 TOOLCHAIN_CXX_BINARY_gcc="g++" 26573 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26574 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26575 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26576 26577 # Use indirect variable referencing 26578 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26579 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26580 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26581 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26582 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26583 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26584 26585 26586 # Define filename patterns 26587 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26588 LIBRARY_PREFIX= 26589 SHARED_LIBRARY_SUFFIX='.dll' 26590 STATIC_LIBRARY_SUFFIX='.lib' 26591 SHARED_LIBRARY='$1.dll' 26592 STATIC_LIBRARY='$1.lib' 26593 OBJ_SUFFIX='.obj' 26594 EXE_SUFFIX='.exe' 26595 else 26596 LIBRARY_PREFIX=lib 26597 SHARED_LIBRARY_SUFFIX='.so' 26598 STATIC_LIBRARY_SUFFIX='.a' 26599 SHARED_LIBRARY='lib$1.so' 26600 STATIC_LIBRARY='lib$1.a' 26601 OBJ_SUFFIX='.o' 26602 EXE_SUFFIX='' 26603 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26604 SHARED_LIBRARY='lib$1.dylib' 26605 SHARED_LIBRARY_SUFFIX='.dylib' 26606 fi 26607 fi 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26619 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26620 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26621 else 26622 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26623 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26624 fi 26625 26626 26627 # Then detect the actual binaries needed 26628 26629 # FIXME: Is this needed? 26630 ac_ext=cpp 26631 ac_cpp='$CXXCPP $CPPFLAGS' 26632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26635 26636 26637 # Store the CFLAGS etc passed to the configure script. 26638 ORG_CFLAGS="$CFLAGS" 26639 ORG_CXXFLAGS="$CXXFLAGS" 26640 ORG_OBJCFLAGS="$OBJCFLAGS" 26641 26642 # On Windows, we need to detect the visual studio installation first. 26643 # This will change the PATH, but we need to keep that new PATH even 26644 # after toolchain detection is done, since the compiler (on x86) uses 26645 # it for DLL resolution in runtime. 26646 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26647 26648 # Store path to cygwin link.exe to help excluding it when searching for 26649 # VS linker. This must be done before changing the PATH when looking for VS. 26650 # Extract the first word of "link", so it can be a program name with args. 26651 set dummy link; ac_word=$2 26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26653 $as_echo_n "checking for $ac_word... " >&6; } 26654 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26655 $as_echo_n "(cached) " >&6 26656 else 26657 case $CYGWIN_LINK in 26658 [\\/]* | ?:[\\/]*) 26659 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26660 ;; 26661 *) 26662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26663 for as_dir in $PATH 26664 do 26665 IFS=$as_save_IFS 26666 test -z "$as_dir" && as_dir=. 26667 for ac_exec_ext in '' $ac_executable_extensions; do 26668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26669 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26671 break 2 26672 fi 26673 done 26674 done 26675 IFS=$as_save_IFS 26676 26677 ;; 26678 esac 26679 fi 26680 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26681 if test -n "$CYGWIN_LINK"; then 26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26683 $as_echo "$CYGWIN_LINK" >&6; } 26684 else 26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26686 $as_echo "no" >&6; } 26687 fi 26688 26689 26690 if test "x$CYGWIN_LINK" != x; then 26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26692 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26693 "$CYGWIN_LINK" --version > /dev/null 26694 if test $? -eq 0 ; then 26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26696 $as_echo "yes" >&6; } 26697 else 26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26699 $as_echo "no" >&6; } 26700 # This might be the VS linker. Don't exclude it later on. 26701 CYGWIN_LINK="" 26702 fi 26703 fi 26704 26705 # First-hand choice is to locate and run the vsvars bat file. 26706 26707 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26708 VCVARSFILE="vc/bin/vcvars32.bat" 26709 else 26710 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26711 fi 26712 26713 VS_ENV_CMD="" 26714 VS_ENV_ARGS="" 26715 if test "x$with_toolsdir" != x; then 26716 26717 if test "x$VS_ENV_CMD" = x; then 26718 VS100BASE="$with_toolsdir/../.." 26719 METHOD="--with-tools-dir" 26720 26721 windows_path="$VS100BASE" 26722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26723 unix_path=`$CYGPATH -u "$windows_path"` 26724 VS100BASE="$unix_path" 26725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26727 VS100BASE="$unix_path" 26728 fi 26729 26730 if test -d "$VS100BASE"; then 26731 if test -f "$VS100BASE/$VCVARSFILE"; then 26732 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26733 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26734 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26735 else 26736 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26737 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26738 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26739 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26740 fi 26741 fi 26742 fi 26743 26744 fi 26745 26746 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26747 # Having specified an argument which is incorrect will produce an instant failure; 26748 # we should not go on looking 26749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26750 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26751 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26752 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26753 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26754 fi 26755 26756 if test "x$VS100COMNTOOLS" != x; then 26757 26758 if test "x$VS_ENV_CMD" = x; then 26759 VS100BASE="$VS100COMNTOOLS/../.." 26760 METHOD="VS100COMNTOOLS variable" 26761 26762 windows_path="$VS100BASE" 26763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26764 unix_path=`$CYGPATH -u "$windows_path"` 26765 VS100BASE="$unix_path" 26766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26768 VS100BASE="$unix_path" 26769 fi 26770 26771 if test -d "$VS100BASE"; then 26772 if test -f "$VS100BASE/$VCVARSFILE"; then 26773 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26774 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26775 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26776 else 26777 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26778 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26779 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26780 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26781 fi 26782 fi 26783 fi 26784 26785 fi 26786 if test "x$PROGRAMFILES" != x; then 26787 26788 if test "x$VS_ENV_CMD" = x; then 26789 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26790 METHOD="well-known name" 26791 26792 windows_path="$VS100BASE" 26793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26794 unix_path=`$CYGPATH -u "$windows_path"` 26795 VS100BASE="$unix_path" 26796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26797 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26798 VS100BASE="$unix_path" 26799 fi 26800 26801 if test -d "$VS100BASE"; then 26802 if test -f "$VS100BASE/$VCVARSFILE"; then 26803 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26804 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26805 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26806 else 26807 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26808 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26809 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26810 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26811 fi 26812 fi 26813 fi 26814 26815 fi 26816 26817 if test "x$VS_ENV_CMD" = x; then 26818 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26819 METHOD="well-known name" 26820 26821 windows_path="$VS100BASE" 26822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26823 unix_path=`$CYGPATH -u "$windows_path"` 26824 VS100BASE="$unix_path" 26825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26827 VS100BASE="$unix_path" 26828 fi 26829 26830 if test -d "$VS100BASE"; then 26831 if test -f "$VS100BASE/$VCVARSFILE"; then 26832 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26833 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26834 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26835 else 26836 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26837 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26838 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26839 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26840 fi 26841 fi 26842 fi 26843 26844 26845 if test "x$VS_ENV_CMD" = x; then 26846 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 26847 METHOD="well-known name" 26848 26849 windows_path="$VS100BASE" 26850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26851 unix_path=`$CYGPATH -u "$windows_path"` 26852 VS100BASE="$unix_path" 26853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26854 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26855 VS100BASE="$unix_path" 26856 fi 26857 26858 if test -d "$VS100BASE"; then 26859 if test -f "$VS100BASE/$VCVARSFILE"; then 26860 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26861 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26862 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26863 else 26864 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26865 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26866 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26867 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26868 fi 26869 fi 26870 fi 26871 26872 26873 if test "x$ProgramW6432" != x; then 26874 26875 if test "x$VS_ENV_CMD" = x; then 26876 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 26877 METHOD="well-known name" 26878 26879 windows_path="$WIN_SDK_BASE" 26880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26881 unix_path=`$CYGPATH -u "$windows_path"` 26882 WIN_SDK_BASE="$unix_path" 26883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26885 WIN_SDK_BASE="$unix_path" 26886 fi 26887 26888 if test -d "$WIN_SDK_BASE"; then 26889 # There have been cases of partial or broken SDK installations. A missing 26890 # lib dir is not going to work. 26891 if test ! -d "$WIN_SDK_BASE/../lib"; then 26892 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26893 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26894 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26895 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26896 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26897 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26898 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26899 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26900 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26901 VS_ENV_ARGS="/x86" 26902 else 26903 VS_ENV_ARGS="/x64" 26904 fi 26905 else 26906 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26907 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26908 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26909 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26910 fi 26911 fi 26912 fi 26913 26914 fi 26915 if test "x$PROGRAMW6432" != x; then 26916 26917 if test "x$VS_ENV_CMD" = x; then 26918 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 26919 METHOD="well-known name" 26920 26921 windows_path="$WIN_SDK_BASE" 26922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26923 unix_path=`$CYGPATH -u "$windows_path"` 26924 WIN_SDK_BASE="$unix_path" 26925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26927 WIN_SDK_BASE="$unix_path" 26928 fi 26929 26930 if test -d "$WIN_SDK_BASE"; then 26931 # There have been cases of partial or broken SDK installations. A missing 26932 # lib dir is not going to work. 26933 if test ! -d "$WIN_SDK_BASE/../lib"; then 26934 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26935 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26936 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26937 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26938 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26939 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26940 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26941 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26942 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26943 VS_ENV_ARGS="/x86" 26944 else 26945 VS_ENV_ARGS="/x64" 26946 fi 26947 else 26948 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26949 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26950 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26951 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26952 fi 26953 fi 26954 fi 26955 26956 fi 26957 if test "x$PROGRAMFILES" != x; then 26958 26959 if test "x$VS_ENV_CMD" = x; then 26960 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 26961 METHOD="well-known name" 26962 26963 windows_path="$WIN_SDK_BASE" 26964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26965 unix_path=`$CYGPATH -u "$windows_path"` 26966 WIN_SDK_BASE="$unix_path" 26967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26968 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26969 WIN_SDK_BASE="$unix_path" 26970 fi 26971 26972 if test -d "$WIN_SDK_BASE"; then 26973 # There have been cases of partial or broken SDK installations. A missing 26974 # lib dir is not going to work. 26975 if test ! -d "$WIN_SDK_BASE/../lib"; then 26976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26977 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26978 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26979 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26980 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26981 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26982 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26983 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26984 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26985 VS_ENV_ARGS="/x86" 26986 else 26987 VS_ENV_ARGS="/x64" 26988 fi 26989 else 26990 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26991 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26992 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26993 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26994 fi 26995 fi 26996 fi 26997 26998 fi 26999 27000 if test "x$VS_ENV_CMD" = x; then 27001 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 27002 METHOD="well-known name" 27003 27004 windows_path="$WIN_SDK_BASE" 27005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27006 unix_path=`$CYGPATH -u "$windows_path"` 27007 WIN_SDK_BASE="$unix_path" 27008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27010 WIN_SDK_BASE="$unix_path" 27011 fi 27012 27013 if test -d "$WIN_SDK_BASE"; then 27014 # There have been cases of partial or broken SDK installations. A missing 27015 # lib dir is not going to work. 27016 if test ! -d "$WIN_SDK_BASE/../lib"; then 27017 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27018 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27019 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27020 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27021 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27022 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27023 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27024 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27025 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27026 VS_ENV_ARGS="/x86" 27027 else 27028 VS_ENV_ARGS="/x64" 27029 fi 27030 else 27031 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27032 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27033 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27034 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27035 fi 27036 fi 27037 fi 27038 27039 27040 if test "x$VS_ENV_CMD" = x; then 27041 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 27042 METHOD="well-known name" 27043 27044 windows_path="$WIN_SDK_BASE" 27045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27046 unix_path=`$CYGPATH -u "$windows_path"` 27047 WIN_SDK_BASE="$unix_path" 27048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27050 WIN_SDK_BASE="$unix_path" 27051 fi 27052 27053 if test -d "$WIN_SDK_BASE"; then 27054 # There have been cases of partial or broken SDK installations. A missing 27055 # lib dir is not going to work. 27056 if test ! -d "$WIN_SDK_BASE/../lib"; then 27057 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27058 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27059 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27060 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27061 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27063 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27064 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27065 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27066 VS_ENV_ARGS="/x86" 27067 else 27068 VS_ENV_ARGS="/x64" 27069 fi 27070 else 27071 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27072 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27073 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27074 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27075 fi 27076 fi 27077 fi 27078 27079 27080 if test "x$VS_ENV_CMD" != x; then 27081 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27082 27083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27084 27085 # First separate the path from the arguments. This will split at the first 27086 # space. 27087 complete="$VS_ENV_CMD" 27088 path="${complete%% *}" 27089 tmp="$complete EOL" 27090 arguments="${tmp#* }" 27091 27092 # Input might be given as Windows format, start by converting to 27093 # unix format. 27094 new_path=`$CYGPATH -u "$path"` 27095 27096 # Now try to locate executable using which 27097 new_path=`$WHICH "$new_path" 2> /dev/null` 27098 # bat and cmd files are not always considered executable in cygwin causing which 27099 # to not find them 27100 if test "x$new_path" = x \ 27101 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27102 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27103 new_path=`$CYGPATH -u "$path"` 27104 fi 27105 if test "x$new_path" = x; then 27106 # Oops. Which didn't find the executable. 27107 # The splitting of arguments from the executable at a space might have been incorrect, 27108 # since paths with space are more likely in Windows. Give it another try with the whole 27109 # argument. 27110 path="$complete" 27111 arguments="EOL" 27112 new_path=`$CYGPATH -u "$path"` 27113 new_path=`$WHICH "$new_path" 2> /dev/null` 27114 # bat and cmd files are not always considered executable in cygwin causing which 27115 # to not find them 27116 if test "x$new_path" = x \ 27117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27119 new_path=`$CYGPATH -u "$path"` 27120 fi 27121 if test "x$new_path" = x; then 27122 # It's still not found. Now this is an unrecoverable error. 27123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27124 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27125 has_space=`$ECHO "$complete" | $GREP " "` 27126 if test "x$has_space" != x; then 27127 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27128 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27129 fi 27130 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27131 fi 27132 fi 27133 27134 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27135 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27136 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27137 # "foo.exe" is OK but "foo" is an error. 27138 # 27139 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27140 # It is also a way to make sure we got the proper file name for the real test later on. 27141 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27142 if test "x$test_shortpath" = x; then 27143 # Short path failed, file does not exist as specified. 27144 # Try adding .exe or .cmd 27145 if test -f "${new_path}.exe"; then 27146 input_to_shortpath="${new_path}.exe" 27147 elif test -f "${new_path}.cmd"; then 27148 input_to_shortpath="${new_path}.cmd" 27149 else 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27151 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27152 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27153 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27154 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27155 fi 27156 else 27157 input_to_shortpath="$new_path" 27158 fi 27159 27160 # Call helper function which possibly converts this using DOS-style short mode. 27161 # If so, the updated path is stored in $new_path. 27162 new_path="$input_to_shortpath" 27163 27164 input_path="$input_to_shortpath" 27165 # Check if we need to convert this using DOS-style short mode. If the path 27166 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27167 # take no chances and rewrite it. 27168 # Note: m4 eats our [], so we need to use [ and ] instead. 27169 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27170 if test "x$has_forbidden_chars" != x; then 27171 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27172 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27173 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27174 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27175 # Going to short mode and back again did indeed matter. Since short mode is 27176 # case insensitive, let's make it lowercase to improve readability. 27177 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27178 # Now convert it back to Unix-stile (cygpath) 27179 input_path=`$CYGPATH -u "$shortmode_path"` 27180 new_path="$input_path" 27181 fi 27182 fi 27183 27184 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27185 if test "x$test_cygdrive_prefix" = x; then 27186 # As a simple fix, exclude /usr/bin since it's not a real path. 27187 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27188 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27189 # a path prefixed by /cygdrive for fixpath to work. 27190 new_path="$CYGWIN_ROOT_PATH$input_path" 27191 fi 27192 fi 27193 27194 # remove trailing .exe if any 27195 new_path="${new_path/%.exe/}" 27196 27197 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27198 27199 # First separate the path from the arguments. This will split at the first 27200 # space. 27201 complete="$VS_ENV_CMD" 27202 path="${complete%% *}" 27203 tmp="$complete EOL" 27204 arguments="${tmp#* }" 27205 27206 # Input might be given as Windows format, start by converting to 27207 # unix format. 27208 new_path="$path" 27209 27210 windows_path="$new_path" 27211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27212 unix_path=`$CYGPATH -u "$windows_path"` 27213 new_path="$unix_path" 27214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27216 new_path="$unix_path" 27217 fi 27218 27219 27220 # Now try to locate executable using which 27221 new_path=`$WHICH "$new_path" 2> /dev/null` 27222 27223 if test "x$new_path" = x; then 27224 # Oops. Which didn't find the executable. 27225 # The splitting of arguments from the executable at a space might have been incorrect, 27226 # since paths with space are more likely in Windows. Give it another try with the whole 27227 # argument. 27228 path="$complete" 27229 arguments="EOL" 27230 new_path="$path" 27231 27232 windows_path="$new_path" 27233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27234 unix_path=`$CYGPATH -u "$windows_path"` 27235 new_path="$unix_path" 27236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27238 new_path="$unix_path" 27239 fi 27240 27241 27242 new_path=`$WHICH "$new_path" 2> /dev/null` 27243 27244 if test "x$new_path" = x; then 27245 # It's still not found. Now this is an unrecoverable error. 27246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27247 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27248 has_space=`$ECHO "$complete" | $GREP " "` 27249 if test "x$has_space" != x; then 27250 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27251 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27252 fi 27253 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27254 fi 27255 fi 27256 27257 # Now new_path has a complete unix path to the binary 27258 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27259 # Keep paths in /bin as-is, but remove trailing .exe if any 27260 new_path="${new_path/%.exe/}" 27261 # Do not save /bin paths to all_fixpath_prefixes! 27262 else 27263 # Not in mixed or Windows style, start by that. 27264 new_path=`cmd //c echo $new_path` 27265 27266 input_path="$new_path" 27267 # Check if we need to convert this using DOS-style short mode. If the path 27268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27269 # take no chances and rewrite it. 27270 # Note: m4 eats our [], so we need to use [ and ] instead. 27271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27272 if test "x$has_forbidden_chars" != x; then 27273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27274 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27275 fi 27276 27277 # Output is in $new_path 27278 27279 windows_path="$new_path" 27280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27281 unix_path=`$CYGPATH -u "$windows_path"` 27282 new_path="$unix_path" 27283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27285 new_path="$unix_path" 27286 fi 27287 27288 # remove trailing .exe if any 27289 new_path="${new_path/%.exe/}" 27290 27291 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27292 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27293 fi 27294 27295 else 27296 # We're on a posix platform. Hooray! :) 27297 # First separate the path from the arguments. This will split at the first 27298 # space. 27299 complete="$VS_ENV_CMD" 27300 path="${complete%% *}" 27301 tmp="$complete EOL" 27302 arguments="${tmp#* }" 27303 27304 # Cannot rely on the command "which" here since it doesn't always work. 27305 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27306 if test -z "$is_absolute_path"; then 27307 # Path to executable is not absolute. Find it. 27308 IFS_save="$IFS" 27309 IFS=: 27310 for p in $PATH; do 27311 if test -f "$p/$path" && test -x "$p/$path"; then 27312 new_path="$p/$path" 27313 break 27314 fi 27315 done 27316 IFS="$IFS_save" 27317 else 27318 # This is an absolute path, we can use it without further modifications. 27319 new_path="$path" 27320 fi 27321 27322 if test "x$new_path" = x; then 27323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27324 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27325 has_space=`$ECHO "$complete" | $GREP " "` 27326 if test "x$has_space" != x; then 27327 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27328 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27329 fi 27330 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27331 fi 27332 fi 27333 27334 # Now join together the path and the arguments once again 27335 if test "x$arguments" != xEOL; then 27336 new_complete="$new_path ${arguments% *}" 27337 else 27338 new_complete="$new_path" 27339 fi 27340 27341 if test "x$complete" != "x$new_complete"; then 27342 VS_ENV_CMD="$new_complete" 27343 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27344 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27345 fi 27346 27347 27348 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27349 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27350 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27351 cd $OUTPUT_ROOT 27352 # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted 27353 # to autoconf standards. 27354 27355 #---- 27356 27357 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment) 27358 # but calculate the difference in Cygwin environment before/after running it and then 27359 # apply the diff. 27360 27361 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 27362 _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"` 27363 _dosvs10varsall=`cygpath -a -w -s $_vs10varsall` 27364 _dosbash=`cygpath -a -w -s \`which bash\`.*` 27365 else 27366 _dosvs10varsall=`cmd //c echo $VS_ENV_CMD` 27367 _dosbash=`cmd //c echo \`which bash\`` 27368 fi 27369 27370 # generate the set of exported vars before/after the vs10 setup 27371 $ECHO "@echo off" > localdevenvtmp.bat 27372 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat 27373 $ECHO "call $_dosvs10varsall $VS_ENV_ARGS" >> localdevenvtmp.bat 27374 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat 27375 27376 # Now execute the newly created bat file. 27377 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys 27378 cmd /c localdevenvtmp.bat | cat 27379 27380 # apply the diff (less some non-vs10 vars named by "!") 27381 $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort 27382 $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort 27383 $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh 27384 27385 # cleanup 27386 $RM localdevenvtmp* 27387 #---- 27388 cd $CURDIR 27389 if test ! -s $OUTPUT_ROOT/localdevenv.sh; then 27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27391 $as_echo "no" >&6; } 27392 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27393 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27394 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27395 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27396 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27397 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27398 as_fn_error $? "Cannot continue" "$LINENO" 5 27399 fi 27400 27401 # Now set all paths and other env variables. This will allow the rest of 27402 # the configure script to find and run the compiler in the proper way. 27403 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27404 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27405 . $OUTPUT_ROOT/localdevenv.sh 27406 else 27407 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27409 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27410 fi 27411 27412 # At this point, we should have corrent variables in the environment, or we can't continue. 27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27414 $as_echo_n "checking for Visual Studio variables... " >&6; } 27415 27416 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27417 if test "x$INCLUDE" = x || test "x$LIB" = x; then 27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27419 $as_echo "present but broken" >&6; } 27420 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27421 else 27422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27423 $as_echo "ok" >&6; } 27424 # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk. 27425 VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'` 27426 VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'` 27427 # Remove any paths containing # (typically F#) as that messes up make 27428 PATH=`$ECHO "$PATH" | $SED 's/[^:#]*#[^:]*://g'` 27429 VS_PATH="$PATH" 27430 27431 27432 27433 fi 27434 else 27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27436 $as_echo "not found" >&6; } 27437 27438 if test "x$VS_ENV_CMD" = x; then 27439 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27440 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27441 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27442 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27443 else 27444 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27445 $as_echo "$as_me: Running the extraction script failed." >&6;} 27446 fi 27447 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27448 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27449 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27450 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27451 as_fn_error $? "Cannot continue" "$LINENO" 5 27452 fi 27453 27454 fi 27455 27456 # autoconf magic only relies on PATH, so update it if tools dir is specified 27457 OLD_PATH="$PATH" 27458 27459 # For solaris we really need solaris tools, and not the GNU equivalent. 27460 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27461 # so add that to path before starting to probe. 27462 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27463 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27464 if test "x$TOOLCHAIN_PATH" = x; then 27465 PATH="/usr/ccs/bin:$PATH" 27466 fi 27467 fi 27468 27469 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 27470 # override all other locations. 27471 if test "x$TOOLCHAIN_PATH" != x; then 27472 PATH=$TOOLCHAIN_PATH:$PATH 27473 fi 27474 27475 27476 # 27477 # Setup the compilers (CC and CXX) 27478 # 27479 27480 COMPILER_NAME=C 27481 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27482 27483 if test "x$CC" != x; then 27484 # User has supplied compiler name already, always let that override. 27485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27486 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27487 if test "x`basename $CC`" = "x$CC"; then 27488 # A command without a complete path is provided, search $PATH. 27489 27490 for ac_prog in $CC 27491 do 27492 # Extract the first word of "$ac_prog", so it can be a program name with args. 27493 set dummy $ac_prog; ac_word=$2 27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27495 $as_echo_n "checking for $ac_word... " >&6; } 27496 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27497 $as_echo_n "(cached) " >&6 27498 else 27499 case $POTENTIAL_CC in 27500 [\\/]* | ?:[\\/]*) 27501 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27502 ;; 27503 *) 27504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27505 for as_dir in $PATH 27506 do 27507 IFS=$as_save_IFS 27508 test -z "$as_dir" && as_dir=. 27509 for ac_exec_ext in '' $ac_executable_extensions; do 27510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27511 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27513 break 2 27514 fi 27515 done 27516 done 27517 IFS=$as_save_IFS 27518 27519 ;; 27520 esac 27521 fi 27522 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27523 if test -n "$POTENTIAL_CC"; then 27524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27525 $as_echo "$POTENTIAL_CC" >&6; } 27526 else 27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27528 $as_echo "no" >&6; } 27529 fi 27530 27531 27532 test -n "$POTENTIAL_CC" && break 27533 done 27534 27535 if test "x$POTENTIAL_CC" != x; then 27536 CC=$POTENTIAL_CC 27537 else 27538 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27539 fi 27540 else 27541 # Otherwise it might already be a complete path 27542 if test ! -x "$CC"; then 27543 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27544 fi 27545 fi 27546 else 27547 # No user supplied value. Locate compiler ourselves. 27548 27549 # If we are cross compiling, assume cross compilation tools follows the 27550 # cross compilation standard where they are prefixed with the autoconf 27551 # standard name for the target. For example the binary 27552 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27553 # If we are not cross compiling, then the default compiler name will be 27554 # used. 27555 27556 CC= 27557 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27558 # before checking the rest of the PATH. 27559 # FIXME: Now that we prefix the TOOLCHAIN_PATH to the PATH in the PRE_DETECTION 27560 # step, this should not be necessary. 27561 if test -n "$TOOLCHAIN_PATH"; then 27562 PATH_save="$PATH" 27563 PATH="$TOOLCHAIN_PATH" 27564 for ac_prog in $SEARCH_LIST 27565 do 27566 # Extract the first word of "$ac_prog", so it can be a program name with args. 27567 set dummy $ac_prog; ac_word=$2 27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27569 $as_echo_n "checking for $ac_word... " >&6; } 27570 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27571 $as_echo_n "(cached) " >&6 27572 else 27573 case $TOOLCHAIN_PATH_CC in 27574 [\\/]* | ?:[\\/]*) 27575 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27576 ;; 27577 *) 27578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27579 for as_dir in $PATH 27580 do 27581 IFS=$as_save_IFS 27582 test -z "$as_dir" && as_dir=. 27583 for ac_exec_ext in '' $ac_executable_extensions; do 27584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27585 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27587 break 2 27588 fi 27589 done 27590 done 27591 IFS=$as_save_IFS 27592 27593 ;; 27594 esac 27595 fi 27596 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27597 if test -n "$TOOLCHAIN_PATH_CC"; then 27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27599 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27600 else 27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27602 $as_echo "no" >&6; } 27603 fi 27604 27605 27606 test -n "$TOOLCHAIN_PATH_CC" && break 27607 done 27608 27609 CC=$TOOLCHAIN_PATH_CC 27610 PATH="$PATH_save" 27611 fi 27612 27613 # AC_PATH_PROGS can't be run multiple times with the same variable, 27614 # so create a new name for this run. 27615 if test "x$CC" = x; then 27616 for ac_prog in $SEARCH_LIST 27617 do 27618 # Extract the first word of "$ac_prog", so it can be a program name with args. 27619 set dummy $ac_prog; ac_word=$2 27620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27621 $as_echo_n "checking for $ac_word... " >&6; } 27622 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27623 $as_echo_n "(cached) " >&6 27624 else 27625 case $POTENTIAL_CC in 27626 [\\/]* | ?:[\\/]*) 27627 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27628 ;; 27629 *) 27630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27631 for as_dir in $PATH 27632 do 27633 IFS=$as_save_IFS 27634 test -z "$as_dir" && as_dir=. 27635 for ac_exec_ext in '' $ac_executable_extensions; do 27636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27637 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27639 break 2 27640 fi 27641 done 27642 done 27643 IFS=$as_save_IFS 27644 27645 ;; 27646 esac 27647 fi 27648 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27649 if test -n "$POTENTIAL_CC"; then 27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27651 $as_echo "$POTENTIAL_CC" >&6; } 27652 else 27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27654 $as_echo "no" >&6; } 27655 fi 27656 27657 27658 test -n "$POTENTIAL_CC" && break 27659 done 27660 27661 CC=$POTENTIAL_CC 27662 fi 27663 27664 if test "x$CC" = x; then 27665 27666 # Print a helpful message on how to acquire the necessary build dependency. 27667 # devkit is the help tag: freetype, cups, pulse, alsa etc 27668 MISSING_DEPENDENCY=devkit 27669 27670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27671 cygwin_help $MISSING_DEPENDENCY 27672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27673 msys_help $MISSING_DEPENDENCY 27674 else 27675 PKGHANDLER_COMMAND= 27676 27677 case $PKGHANDLER in 27678 apt-get) 27679 apt_help $MISSING_DEPENDENCY ;; 27680 yum) 27681 yum_help $MISSING_DEPENDENCY ;; 27682 port) 27683 port_help $MISSING_DEPENDENCY ;; 27684 pkgutil) 27685 pkgutil_help $MISSING_DEPENDENCY ;; 27686 pkgadd) 27687 pkgadd_help $MISSING_DEPENDENCY ;; 27688 esac 27689 27690 if test "x$PKGHANDLER_COMMAND" != x; then 27691 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27692 fi 27693 fi 27694 27695 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27696 fi 27697 fi 27698 27699 # Now we have a compiler binary in CC. Make sure it's okay. 27700 27701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27702 27703 # First separate the path from the arguments. This will split at the first 27704 # space. 27705 complete="$CC" 27706 path="${complete%% *}" 27707 tmp="$complete EOL" 27708 arguments="${tmp#* }" 27709 27710 # Input might be given as Windows format, start by converting to 27711 # unix format. 27712 new_path=`$CYGPATH -u "$path"` 27713 27714 # Now try to locate executable using which 27715 new_path=`$WHICH "$new_path" 2> /dev/null` 27716 # bat and cmd files are not always considered executable in cygwin causing which 27717 # to not find them 27718 if test "x$new_path" = x \ 27719 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27720 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27721 new_path=`$CYGPATH -u "$path"` 27722 fi 27723 if test "x$new_path" = x; then 27724 # Oops. Which didn't find the executable. 27725 # The splitting of arguments from the executable at a space might have been incorrect, 27726 # since paths with space are more likely in Windows. Give it another try with the whole 27727 # argument. 27728 path="$complete" 27729 arguments="EOL" 27730 new_path=`$CYGPATH -u "$path"` 27731 new_path=`$WHICH "$new_path" 2> /dev/null` 27732 # bat and cmd files are not always considered executable in cygwin causing which 27733 # to not find them 27734 if test "x$new_path" = x \ 27735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27737 new_path=`$CYGPATH -u "$path"` 27738 fi 27739 if test "x$new_path" = x; then 27740 # It's still not found. Now this is an unrecoverable error. 27741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27742 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27743 has_space=`$ECHO "$complete" | $GREP " "` 27744 if test "x$has_space" != x; then 27745 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27746 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27747 fi 27748 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27749 fi 27750 fi 27751 27752 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27753 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27754 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27755 # "foo.exe" is OK but "foo" is an error. 27756 # 27757 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27758 # It is also a way to make sure we got the proper file name for the real test later on. 27759 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27760 if test "x$test_shortpath" = x; then 27761 # Short path failed, file does not exist as specified. 27762 # Try adding .exe or .cmd 27763 if test -f "${new_path}.exe"; then 27764 input_to_shortpath="${new_path}.exe" 27765 elif test -f "${new_path}.cmd"; then 27766 input_to_shortpath="${new_path}.cmd" 27767 else 27768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27769 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27770 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27771 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27772 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27773 fi 27774 else 27775 input_to_shortpath="$new_path" 27776 fi 27777 27778 # Call helper function which possibly converts this using DOS-style short mode. 27779 # If so, the updated path is stored in $new_path. 27780 new_path="$input_to_shortpath" 27781 27782 input_path="$input_to_shortpath" 27783 # Check if we need to convert this using DOS-style short mode. If the path 27784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27785 # take no chances and rewrite it. 27786 # Note: m4 eats our [], so we need to use [ and ] instead. 27787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27788 if test "x$has_forbidden_chars" != x; then 27789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27790 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27791 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27792 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27793 # Going to short mode and back again did indeed matter. Since short mode is 27794 # case insensitive, let's make it lowercase to improve readability. 27795 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27796 # Now convert it back to Unix-stile (cygpath) 27797 input_path=`$CYGPATH -u "$shortmode_path"` 27798 new_path="$input_path" 27799 fi 27800 fi 27801 27802 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27803 if test "x$test_cygdrive_prefix" = x; then 27804 # As a simple fix, exclude /usr/bin since it's not a real path. 27805 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27806 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27807 # a path prefixed by /cygdrive for fixpath to work. 27808 new_path="$CYGWIN_ROOT_PATH$input_path" 27809 fi 27810 fi 27811 27812 # remove trailing .exe if any 27813 new_path="${new_path/%.exe/}" 27814 27815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27816 27817 # First separate the path from the arguments. This will split at the first 27818 # space. 27819 complete="$CC" 27820 path="${complete%% *}" 27821 tmp="$complete EOL" 27822 arguments="${tmp#* }" 27823 27824 # Input might be given as Windows format, start by converting to 27825 # unix format. 27826 new_path="$path" 27827 27828 windows_path="$new_path" 27829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27830 unix_path=`$CYGPATH -u "$windows_path"` 27831 new_path="$unix_path" 27832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27834 new_path="$unix_path" 27835 fi 27836 27837 27838 # Now try to locate executable using which 27839 new_path=`$WHICH "$new_path" 2> /dev/null` 27840 27841 if test "x$new_path" = x; then 27842 # Oops. Which didn't find the executable. 27843 # The splitting of arguments from the executable at a space might have been incorrect, 27844 # since paths with space are more likely in Windows. Give it another try with the whole 27845 # argument. 27846 path="$complete" 27847 arguments="EOL" 27848 new_path="$path" 27849 27850 windows_path="$new_path" 27851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27852 unix_path=`$CYGPATH -u "$windows_path"` 27853 new_path="$unix_path" 27854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27856 new_path="$unix_path" 27857 fi 27858 27859 27860 new_path=`$WHICH "$new_path" 2> /dev/null` 27861 27862 if test "x$new_path" = x; then 27863 # It's still not found. Now this is an unrecoverable error. 27864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27865 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27866 has_space=`$ECHO "$complete" | $GREP " "` 27867 if test "x$has_space" != x; then 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27869 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27870 fi 27871 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27872 fi 27873 fi 27874 27875 # Now new_path has a complete unix path to the binary 27876 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27877 # Keep paths in /bin as-is, but remove trailing .exe if any 27878 new_path="${new_path/%.exe/}" 27879 # Do not save /bin paths to all_fixpath_prefixes! 27880 else 27881 # Not in mixed or Windows style, start by that. 27882 new_path=`cmd //c echo $new_path` 27883 27884 input_path="$new_path" 27885 # Check if we need to convert this using DOS-style short mode. If the path 27886 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27887 # take no chances and rewrite it. 27888 # Note: m4 eats our [], so we need to use [ and ] instead. 27889 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27890 if test "x$has_forbidden_chars" != x; then 27891 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27892 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27893 fi 27894 27895 # Output is in $new_path 27896 27897 windows_path="$new_path" 27898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27899 unix_path=`$CYGPATH -u "$windows_path"` 27900 new_path="$unix_path" 27901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27903 new_path="$unix_path" 27904 fi 27905 27906 # remove trailing .exe if any 27907 new_path="${new_path/%.exe/}" 27908 27909 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27910 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27911 fi 27912 27913 else 27914 # We're on a posix platform. Hooray! :) 27915 # First separate the path from the arguments. This will split at the first 27916 # space. 27917 complete="$CC" 27918 path="${complete%% *}" 27919 tmp="$complete EOL" 27920 arguments="${tmp#* }" 27921 27922 # Cannot rely on the command "which" here since it doesn't always work. 27923 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27924 if test -z "$is_absolute_path"; then 27925 # Path to executable is not absolute. Find it. 27926 IFS_save="$IFS" 27927 IFS=: 27928 for p in $PATH; do 27929 if test -f "$p/$path" && test -x "$p/$path"; then 27930 new_path="$p/$path" 27931 break 27932 fi 27933 done 27934 IFS="$IFS_save" 27935 else 27936 # This is an absolute path, we can use it without further modifications. 27937 new_path="$path" 27938 fi 27939 27940 if test "x$new_path" = x; then 27941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27942 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27943 has_space=`$ECHO "$complete" | $GREP " "` 27944 if test "x$has_space" != x; then 27945 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27946 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27947 fi 27948 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27949 fi 27950 fi 27951 27952 # Now join together the path and the arguments once again 27953 if test "x$arguments" != xEOL; then 27954 new_complete="$new_path ${arguments% *}" 27955 else 27956 new_complete="$new_path" 27957 fi 27958 27959 if test "x$complete" != "x$new_complete"; then 27960 CC="$new_complete" 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27962 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27963 fi 27964 27965 TEST_COMPILER="$CC" 27966 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 27967 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 27968 if test "x$OPENJDK_BUILD_OS" != xaix; then 27969 # FIXME: This test should not be needed anymore; we don't do that for any platform. 27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27971 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27972 27973 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27974 # Follow a chain of symbolic links. Use readlink 27975 # where it exists, else fall back to horribly 27976 # complicated shell code. 27977 if test "x$READLINK_TESTED" != yes; then 27978 # On MacOSX there is a readlink tool with a different 27979 # purpose than the GNU readlink tool. Check the found readlink. 27980 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27981 if test "x$ISGNU" = x; then 27982 # A readlink that we do not know how to use. 27983 # Are there other non-GNU readlinks out there? 27984 READLINK_TESTED=yes 27985 READLINK= 27986 fi 27987 fi 27988 27989 if test "x$READLINK" != x; then 27990 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 27991 else 27992 # Save the current directory for restoring afterwards 27993 STARTDIR=$PWD 27994 COUNTER=0 27995 sym_link_dir=`$DIRNAME $TEST_COMPILER` 27996 sym_link_file=`$BASENAME $TEST_COMPILER` 27997 cd $sym_link_dir 27998 # Use -P flag to resolve symlinks in directories. 27999 cd `$THEPWDCMD -P` 28000 sym_link_dir=`$THEPWDCMD -P` 28001 # Resolve file symlinks 28002 while test $COUNTER -lt 20; do 28003 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28004 if test "x$ISLINK" == x; then 28005 # This is not a symbolic link! We are done! 28006 break 28007 fi 28008 # Again resolve directory symlinks since the target of the just found 28009 # link could be in a different directory 28010 cd `$DIRNAME $ISLINK` 28011 sym_link_dir=`$THEPWDCMD -P` 28012 sym_link_file=`$BASENAME $ISLINK` 28013 let COUNTER=COUNTER+1 28014 done 28015 cd $STARTDIR 28016 TEST_COMPILER=$sym_link_dir/$sym_link_file 28017 fi 28018 fi 28019 28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28021 $as_echo "$TEST_COMPILER" >&6; } 28022 fi 28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28024 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28025 28026 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28027 if test "x$COMPILER_BASENAME" = "xccache"; then 28028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28029 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28030 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28031 # We want to control ccache invocation ourselves, so ignore this cc and try 28032 # searching again. 28033 28034 # Remove the path to the fake ccache cc from the PATH 28035 RETRY_COMPILER_SAVED_PATH="$PATH" 28036 COMPILER_DIRNAME=`$DIRNAME $CC` 28037 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28038 28039 # Try again looking for our compiler 28040 if test -n "$ac_tool_prefix"; then 28041 for ac_prog in $TOOLCHAIN_CC_BINARY 28042 do 28043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28046 $as_echo_n "checking for $ac_word... " >&6; } 28047 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28048 $as_echo_n "(cached) " >&6 28049 else 28050 if test -n "$PROPER_COMPILER_CC"; then 28051 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28052 else 28053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28054 for as_dir in $PATH 28055 do 28056 IFS=$as_save_IFS 28057 test -z "$as_dir" && as_dir=. 28058 for ac_exec_ext in '' $ac_executable_extensions; do 28059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28060 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28062 break 2 28063 fi 28064 done 28065 done 28066 IFS=$as_save_IFS 28067 28068 fi 28069 fi 28070 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28071 if test -n "$PROPER_COMPILER_CC"; then 28072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28073 $as_echo "$PROPER_COMPILER_CC" >&6; } 28074 else 28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28076 $as_echo "no" >&6; } 28077 fi 28078 28079 28080 test -n "$PROPER_COMPILER_CC" && break 28081 done 28082 fi 28083 if test -z "$PROPER_COMPILER_CC"; then 28084 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28085 for ac_prog in $TOOLCHAIN_CC_BINARY 28086 do 28087 # Extract the first word of "$ac_prog", so it can be a program name with args. 28088 set dummy $ac_prog; ac_word=$2 28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28090 $as_echo_n "checking for $ac_word... " >&6; } 28091 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28092 $as_echo_n "(cached) " >&6 28093 else 28094 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28095 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28096 else 28097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28098 for as_dir in $PATH 28099 do 28100 IFS=$as_save_IFS 28101 test -z "$as_dir" && as_dir=. 28102 for ac_exec_ext in '' $ac_executable_extensions; do 28103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28104 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28106 break 2 28107 fi 28108 done 28109 done 28110 IFS=$as_save_IFS 28111 28112 fi 28113 fi 28114 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28115 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28117 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28118 else 28119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28120 $as_echo "no" >&6; } 28121 fi 28122 28123 28124 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28125 done 28126 28127 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28128 PROPER_COMPILER_CC="" 28129 else 28130 case $cross_compiling:$ac_tool_warned in 28131 yes:) 28132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28134 ac_tool_warned=yes ;; 28135 esac 28136 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28137 fi 28138 fi 28139 28140 28141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28142 28143 # First separate the path from the arguments. This will split at the first 28144 # space. 28145 complete="$PROPER_COMPILER_CC" 28146 path="${complete%% *}" 28147 tmp="$complete EOL" 28148 arguments="${tmp#* }" 28149 28150 # Input might be given as Windows format, start by converting to 28151 # unix format. 28152 new_path=`$CYGPATH -u "$path"` 28153 28154 # Now try to locate executable using which 28155 new_path=`$WHICH "$new_path" 2> /dev/null` 28156 # bat and cmd files are not always considered executable in cygwin causing which 28157 # to not find them 28158 if test "x$new_path" = x \ 28159 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28160 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28161 new_path=`$CYGPATH -u "$path"` 28162 fi 28163 if test "x$new_path" = x; then 28164 # Oops. Which didn't find the executable. 28165 # The splitting of arguments from the executable at a space might have been incorrect, 28166 # since paths with space are more likely in Windows. Give it another try with the whole 28167 # argument. 28168 path="$complete" 28169 arguments="EOL" 28170 new_path=`$CYGPATH -u "$path"` 28171 new_path=`$WHICH "$new_path" 2> /dev/null` 28172 # bat and cmd files are not always considered executable in cygwin causing which 28173 # to not find them 28174 if test "x$new_path" = x \ 28175 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28176 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28177 new_path=`$CYGPATH -u "$path"` 28178 fi 28179 if test "x$new_path" = x; then 28180 # It's still not found. Now this is an unrecoverable error. 28181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28182 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28183 has_space=`$ECHO "$complete" | $GREP " "` 28184 if test "x$has_space" != x; then 28185 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28186 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28187 fi 28188 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28189 fi 28190 fi 28191 28192 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28193 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28194 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28195 # "foo.exe" is OK but "foo" is an error. 28196 # 28197 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28198 # It is also a way to make sure we got the proper file name for the real test later on. 28199 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28200 if test "x$test_shortpath" = x; then 28201 # Short path failed, file does not exist as specified. 28202 # Try adding .exe or .cmd 28203 if test -f "${new_path}.exe"; then 28204 input_to_shortpath="${new_path}.exe" 28205 elif test -f "${new_path}.cmd"; then 28206 input_to_shortpath="${new_path}.cmd" 28207 else 28208 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28209 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28210 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28211 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28212 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28213 fi 28214 else 28215 input_to_shortpath="$new_path" 28216 fi 28217 28218 # Call helper function which possibly converts this using DOS-style short mode. 28219 # If so, the updated path is stored in $new_path. 28220 new_path="$input_to_shortpath" 28221 28222 input_path="$input_to_shortpath" 28223 # Check if we need to convert this using DOS-style short mode. If the path 28224 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28225 # take no chances and rewrite it. 28226 # Note: m4 eats our [], so we need to use [ and ] instead. 28227 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28228 if test "x$has_forbidden_chars" != x; then 28229 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28230 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28231 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28232 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28233 # Going to short mode and back again did indeed matter. Since short mode is 28234 # case insensitive, let's make it lowercase to improve readability. 28235 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28236 # Now convert it back to Unix-stile (cygpath) 28237 input_path=`$CYGPATH -u "$shortmode_path"` 28238 new_path="$input_path" 28239 fi 28240 fi 28241 28242 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28243 if test "x$test_cygdrive_prefix" = x; then 28244 # As a simple fix, exclude /usr/bin since it's not a real path. 28245 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28246 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28247 # a path prefixed by /cygdrive for fixpath to work. 28248 new_path="$CYGWIN_ROOT_PATH$input_path" 28249 fi 28250 fi 28251 28252 # remove trailing .exe if any 28253 new_path="${new_path/%.exe/}" 28254 28255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28256 28257 # First separate the path from the arguments. This will split at the first 28258 # space. 28259 complete="$PROPER_COMPILER_CC" 28260 path="${complete%% *}" 28261 tmp="$complete EOL" 28262 arguments="${tmp#* }" 28263 28264 # Input might be given as Windows format, start by converting to 28265 # unix format. 28266 new_path="$path" 28267 28268 windows_path="$new_path" 28269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28270 unix_path=`$CYGPATH -u "$windows_path"` 28271 new_path="$unix_path" 28272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28274 new_path="$unix_path" 28275 fi 28276 28277 28278 # Now try to locate executable using which 28279 new_path=`$WHICH "$new_path" 2> /dev/null` 28280 28281 if test "x$new_path" = x; then 28282 # Oops. Which didn't find the executable. 28283 # The splitting of arguments from the executable at a space might have been incorrect, 28284 # since paths with space are more likely in Windows. Give it another try with the whole 28285 # argument. 28286 path="$complete" 28287 arguments="EOL" 28288 new_path="$path" 28289 28290 windows_path="$new_path" 28291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28292 unix_path=`$CYGPATH -u "$windows_path"` 28293 new_path="$unix_path" 28294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28296 new_path="$unix_path" 28297 fi 28298 28299 28300 new_path=`$WHICH "$new_path" 2> /dev/null` 28301 28302 if test "x$new_path" = x; then 28303 # It's still not found. Now this is an unrecoverable error. 28304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28305 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28306 has_space=`$ECHO "$complete" | $GREP " "` 28307 if test "x$has_space" != x; then 28308 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28309 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28310 fi 28311 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28312 fi 28313 fi 28314 28315 # Now new_path has a complete unix path to the binary 28316 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28317 # Keep paths in /bin as-is, but remove trailing .exe if any 28318 new_path="${new_path/%.exe/}" 28319 # Do not save /bin paths to all_fixpath_prefixes! 28320 else 28321 # Not in mixed or Windows style, start by that. 28322 new_path=`cmd //c echo $new_path` 28323 28324 input_path="$new_path" 28325 # Check if we need to convert this using DOS-style short mode. If the path 28326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28327 # take no chances and rewrite it. 28328 # Note: m4 eats our [], so we need to use [ and ] instead. 28329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28330 if test "x$has_forbidden_chars" != x; then 28331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28332 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28333 fi 28334 28335 # Output is in $new_path 28336 28337 windows_path="$new_path" 28338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28339 unix_path=`$CYGPATH -u "$windows_path"` 28340 new_path="$unix_path" 28341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28343 new_path="$unix_path" 28344 fi 28345 28346 # remove trailing .exe if any 28347 new_path="${new_path/%.exe/}" 28348 28349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28351 fi 28352 28353 else 28354 # We're on a posix platform. Hooray! :) 28355 # First separate the path from the arguments. This will split at the first 28356 # space. 28357 complete="$PROPER_COMPILER_CC" 28358 path="${complete%% *}" 28359 tmp="$complete EOL" 28360 arguments="${tmp#* }" 28361 28362 # Cannot rely on the command "which" here since it doesn't always work. 28363 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28364 if test -z "$is_absolute_path"; then 28365 # Path to executable is not absolute. Find it. 28366 IFS_save="$IFS" 28367 IFS=: 28368 for p in $PATH; do 28369 if test -f "$p/$path" && test -x "$p/$path"; then 28370 new_path="$p/$path" 28371 break 28372 fi 28373 done 28374 IFS="$IFS_save" 28375 else 28376 # This is an absolute path, we can use it without further modifications. 28377 new_path="$path" 28378 fi 28379 28380 if test "x$new_path" = x; then 28381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28382 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28383 has_space=`$ECHO "$complete" | $GREP " "` 28384 if test "x$has_space" != x; then 28385 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28386 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28387 fi 28388 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28389 fi 28390 fi 28391 28392 # Now join together the path and the arguments once again 28393 if test "x$arguments" != xEOL; then 28394 new_complete="$new_path ${arguments% *}" 28395 else 28396 new_complete="$new_path" 28397 fi 28398 28399 if test "x$complete" != "x$new_complete"; then 28400 PROPER_COMPILER_CC="$new_complete" 28401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28402 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28403 fi 28404 28405 PATH="$RETRY_COMPILER_SAVED_PATH" 28406 28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28408 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28409 28410 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28411 # Follow a chain of symbolic links. Use readlink 28412 # where it exists, else fall back to horribly 28413 # complicated shell code. 28414 if test "x$READLINK_TESTED" != yes; then 28415 # On MacOSX there is a readlink tool with a different 28416 # purpose than the GNU readlink tool. Check the found readlink. 28417 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28418 if test "x$ISGNU" = x; then 28419 # A readlink that we do not know how to use. 28420 # Are there other non-GNU readlinks out there? 28421 READLINK_TESTED=yes 28422 READLINK= 28423 fi 28424 fi 28425 28426 if test "x$READLINK" != x; then 28427 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28428 else 28429 # Save the current directory for restoring afterwards 28430 STARTDIR=$PWD 28431 COUNTER=0 28432 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28433 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28434 cd $sym_link_dir 28435 # Use -P flag to resolve symlinks in directories. 28436 cd `$THEPWDCMD -P` 28437 sym_link_dir=`$THEPWDCMD -P` 28438 # Resolve file symlinks 28439 while test $COUNTER -lt 20; do 28440 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28441 if test "x$ISLINK" == x; then 28442 # This is not a symbolic link! We are done! 28443 break 28444 fi 28445 # Again resolve directory symlinks since the target of the just found 28446 # link could be in a different directory 28447 cd `$DIRNAME $ISLINK` 28448 sym_link_dir=`$THEPWDCMD -P` 28449 sym_link_file=`$BASENAME $ISLINK` 28450 let COUNTER=COUNTER+1 28451 done 28452 cd $STARTDIR 28453 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28454 fi 28455 fi 28456 28457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28458 $as_echo "$PROPER_COMPILER_CC" >&6; } 28459 CC="$PROPER_COMPILER_CC" 28460 else 28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28462 $as_echo "no, keeping CC" >&6; } 28463 fi 28464 28465 28466 COMPILER=$CC 28467 COMPILER_NAME=$COMPILER_NAME 28468 28469 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28470 # cc -V output typically looks like 28471 # cc: Sun C 5.12 Linux_i386 2011/11/16 28472 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28473 # Check that this is likely to be the Solaris Studio cc. 28474 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28475 if test $? -ne 0; then 28476 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28477 { $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 28478 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28479 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28480 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28482 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28483 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28484 fi 28485 # Remove usage instructions (if present), and 28486 # collapse compiler output into a single line 28487 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28488 $SED -e 's/ *[Uu]sage:.*//'` 28489 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28490 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28491 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28492 # xlc -qversion output typically looks like 28493 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28494 # Version: 11.01.0000.0015 28495 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28496 # Check that this is likely to be the IBM XL C compiler. 28497 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28498 if test $? -ne 0; then 28499 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28500 { $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 28501 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28502 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28503 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28504 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28505 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28506 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28507 fi 28508 # Collapse compiler output into a single line 28509 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28510 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28511 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28512 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28513 # There is no specific version flag, but all output starts with a version string. 28514 # First line typically looks something like: 28515 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28516 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28517 # Check that this is likely to be Microsoft CL.EXE. 28518 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28519 if test $? -ne 0; then 28520 { $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 28521 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28522 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28523 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28524 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28525 fi 28526 # Collapse compiler output into a single line 28527 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28528 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28529 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28530 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28531 # gcc --version output typically looks like 28532 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28533 # Copyright (C) 2013 Free Software Foundation, Inc. 28534 # This is free software; see the source for copying conditions. There is NO 28535 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28536 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28537 # Check that this is likely to be GCC. 28538 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28539 if test $? -ne 0; then 28540 { $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 28541 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28542 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28543 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28544 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28545 fi 28546 # Remove Copyright and legalese from version string, and 28547 # collapse into a single line 28548 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28549 $SED -e 's/ *Copyright .*//'` 28550 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28551 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28552 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28553 # clang --version output typically looks like 28554 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28555 # clang version 3.3 (tags/RELEASE_33/final) 28556 # or 28557 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28558 # Target: x86_64-pc-linux-gnu 28559 # Thread model: posix 28560 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28561 # Check that this is likely to be clang 28562 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28563 if test $? -ne 0; then 28564 { $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 28565 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28566 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28567 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28568 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28569 fi 28570 # Collapse compiler output into a single line 28571 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28572 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28573 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28574 else 28575 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28576 fi 28577 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28578 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28579 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28580 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28581 28582 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28583 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28584 28585 28586 # Now that we have resolved CC ourself, let autoconf have its go at it 28587 ac_ext=c 28588 ac_cpp='$CPP $CPPFLAGS' 28589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28591 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28592 if test -n "$ac_tool_prefix"; then 28593 for ac_prog in $CC 28594 do 28595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28598 $as_echo_n "checking for $ac_word... " >&6; } 28599 if ${ac_cv_prog_CC+:} false; then : 28600 $as_echo_n "(cached) " >&6 28601 else 28602 if test -n "$CC"; then 28603 ac_cv_prog_CC="$CC" # Let the user override the test. 28604 else 28605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28606 for as_dir in $PATH 28607 do 28608 IFS=$as_save_IFS 28609 test -z "$as_dir" && as_dir=. 28610 for ac_exec_ext in '' $ac_executable_extensions; do 28611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28614 break 2 28615 fi 28616 done 28617 done 28618 IFS=$as_save_IFS 28619 28620 fi 28621 fi 28622 CC=$ac_cv_prog_CC 28623 if test -n "$CC"; then 28624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28625 $as_echo "$CC" >&6; } 28626 else 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28628 $as_echo "no" >&6; } 28629 fi 28630 28631 28632 test -n "$CC" && break 28633 done 28634 fi 28635 if test -z "$CC"; then 28636 ac_ct_CC=$CC 28637 for ac_prog in $CC 28638 do 28639 # Extract the first word of "$ac_prog", so it can be a program name with args. 28640 set dummy $ac_prog; ac_word=$2 28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28642 $as_echo_n "checking for $ac_word... " >&6; } 28643 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28644 $as_echo_n "(cached) " >&6 28645 else 28646 if test -n "$ac_ct_CC"; then 28647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28648 else 28649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28650 for as_dir in $PATH 28651 do 28652 IFS=$as_save_IFS 28653 test -z "$as_dir" && as_dir=. 28654 for ac_exec_ext in '' $ac_executable_extensions; do 28655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28656 ac_cv_prog_ac_ct_CC="$ac_prog" 28657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28658 break 2 28659 fi 28660 done 28661 done 28662 IFS=$as_save_IFS 28663 28664 fi 28665 fi 28666 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28667 if test -n "$ac_ct_CC"; then 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28669 $as_echo "$ac_ct_CC" >&6; } 28670 else 28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28672 $as_echo "no" >&6; } 28673 fi 28674 28675 28676 test -n "$ac_ct_CC" && break 28677 done 28678 28679 if test "x$ac_ct_CC" = x; then 28680 CC="" 28681 else 28682 case $cross_compiling:$ac_tool_warned in 28683 yes:) 28684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28686 ac_tool_warned=yes ;; 28687 esac 28688 CC=$ac_ct_CC 28689 fi 28690 fi 28691 28692 28693 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28695 as_fn_error $? "no acceptable C compiler found in \$PATH 28696 See \`config.log' for more details" "$LINENO" 5; } 28697 28698 # Provide some information about the compiler. 28699 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28700 set X $ac_compile 28701 ac_compiler=$2 28702 for ac_option in --version -v -V -qversion; do 28703 { { ac_try="$ac_compiler $ac_option >&5" 28704 case "(($ac_try" in 28705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28706 *) ac_try_echo=$ac_try;; 28707 esac 28708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28709 $as_echo "$ac_try_echo"; } >&5 28710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28711 ac_status=$? 28712 if test -s conftest.err; then 28713 sed '10a\ 28714 ... rest of stderr output deleted ... 28715 10q' conftest.err >conftest.er1 28716 cat conftest.er1 >&5 28717 fi 28718 rm -f conftest.er1 conftest.err 28719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28720 test $ac_status = 0; } 28721 done 28722 28723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28724 /* end confdefs.h. */ 28725 28726 int 28727 main () 28728 { 28729 28730 ; 28731 return 0; 28732 } 28733 _ACEOF 28734 ac_clean_files_save=$ac_clean_files 28735 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28736 # Try to create an executable without -o first, disregard a.out. 28737 # It will help us diagnose broken compilers, and finding out an intuition 28738 # of exeext. 28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28740 $as_echo_n "checking whether the C compiler works... " >&6; } 28741 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28742 28743 # The possible output files: 28744 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28745 28746 ac_rmfiles= 28747 for ac_file in $ac_files 28748 do 28749 case $ac_file in 28750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28751 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28752 esac 28753 done 28754 rm -f $ac_rmfiles 28755 28756 if { { ac_try="$ac_link_default" 28757 case "(($ac_try" in 28758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28759 *) ac_try_echo=$ac_try;; 28760 esac 28761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28762 $as_echo "$ac_try_echo"; } >&5 28763 (eval "$ac_link_default") 2>&5 28764 ac_status=$? 28765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28766 test $ac_status = 0; }; then : 28767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28768 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28769 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28770 # so that the user can short-circuit this test for compilers unknown to 28771 # Autoconf. 28772 for ac_file in $ac_files '' 28773 do 28774 test -f "$ac_file" || continue 28775 case $ac_file in 28776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28777 ;; 28778 [ab].out ) 28779 # We found the default executable, but exeext='' is most 28780 # certainly right. 28781 break;; 28782 *.* ) 28783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28784 then :; else 28785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28786 fi 28787 # We set ac_cv_exeext here because the later test for it is not 28788 # safe: cross compilers may not add the suffix if given an `-o' 28789 # argument, so we may need to know it at that point already. 28790 # Even if this section looks crufty: it has the advantage of 28791 # actually working. 28792 break;; 28793 * ) 28794 break;; 28795 esac 28796 done 28797 test "$ac_cv_exeext" = no && ac_cv_exeext= 28798 28799 else 28800 ac_file='' 28801 fi 28802 if test -z "$ac_file"; then : 28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28804 $as_echo "no" >&6; } 28805 $as_echo "$as_me: failed program was:" >&5 28806 sed 's/^/| /' conftest.$ac_ext >&5 28807 28808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28810 as_fn_error 77 "C compiler cannot create executables 28811 See \`config.log' for more details" "$LINENO" 5; } 28812 else 28813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28814 $as_echo "yes" >&6; } 28815 fi 28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28817 $as_echo_n "checking for C compiler default output file name... " >&6; } 28818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28819 $as_echo "$ac_file" >&6; } 28820 ac_exeext=$ac_cv_exeext 28821 28822 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28823 ac_clean_files=$ac_clean_files_save 28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28825 $as_echo_n "checking for suffix of executables... " >&6; } 28826 if { { ac_try="$ac_link" 28827 case "(($ac_try" in 28828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28829 *) ac_try_echo=$ac_try;; 28830 esac 28831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28832 $as_echo "$ac_try_echo"; } >&5 28833 (eval "$ac_link") 2>&5 28834 ac_status=$? 28835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28836 test $ac_status = 0; }; then : 28837 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28839 # work properly (i.e., refer to `conftest.exe'), while it won't with 28840 # `rm'. 28841 for ac_file in conftest.exe conftest conftest.*; do 28842 test -f "$ac_file" || continue 28843 case $ac_file in 28844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28846 break;; 28847 * ) break;; 28848 esac 28849 done 28850 else 28851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28853 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28854 See \`config.log' for more details" "$LINENO" 5; } 28855 fi 28856 rm -f conftest conftest$ac_cv_exeext 28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28858 $as_echo "$ac_cv_exeext" >&6; } 28859 28860 rm -f conftest.$ac_ext 28861 EXEEXT=$ac_cv_exeext 28862 ac_exeext=$EXEEXT 28863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28864 /* end confdefs.h. */ 28865 #include <stdio.h> 28866 int 28867 main () 28868 { 28869 FILE *f = fopen ("conftest.out", "w"); 28870 return ferror (f) || fclose (f) != 0; 28871 28872 ; 28873 return 0; 28874 } 28875 _ACEOF 28876 ac_clean_files="$ac_clean_files conftest.out" 28877 # Check that the compiler produces executables we can run. If not, either 28878 # the compiler is broken, or we cross compile. 28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28880 $as_echo_n "checking whether we are cross compiling... " >&6; } 28881 if test "$cross_compiling" != yes; then 28882 { { ac_try="$ac_link" 28883 case "(($ac_try" in 28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28885 *) ac_try_echo=$ac_try;; 28886 esac 28887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28888 $as_echo "$ac_try_echo"; } >&5 28889 (eval "$ac_link") 2>&5 28890 ac_status=$? 28891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28892 test $ac_status = 0; } 28893 if { ac_try='./conftest$ac_cv_exeext' 28894 { { case "(($ac_try" in 28895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28896 *) ac_try_echo=$ac_try;; 28897 esac 28898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28899 $as_echo "$ac_try_echo"; } >&5 28900 (eval "$ac_try") 2>&5 28901 ac_status=$? 28902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28903 test $ac_status = 0; }; }; then 28904 cross_compiling=no 28905 else 28906 if test "$cross_compiling" = maybe; then 28907 cross_compiling=yes 28908 else 28909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28911 as_fn_error $? "cannot run C compiled programs. 28912 If you meant to cross compile, use \`--host'. 28913 See \`config.log' for more details" "$LINENO" 5; } 28914 fi 28915 fi 28916 fi 28917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28918 $as_echo "$cross_compiling" >&6; } 28919 28920 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28921 ac_clean_files=$ac_clean_files_save 28922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28923 $as_echo_n "checking for suffix of object files... " >&6; } 28924 if ${ac_cv_objext+:} false; then : 28925 $as_echo_n "(cached) " >&6 28926 else 28927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28928 /* end confdefs.h. */ 28929 28930 int 28931 main () 28932 { 28933 28934 ; 28935 return 0; 28936 } 28937 _ACEOF 28938 rm -f conftest.o conftest.obj 28939 if { { ac_try="$ac_compile" 28940 case "(($ac_try" in 28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28942 *) ac_try_echo=$ac_try;; 28943 esac 28944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28945 $as_echo "$ac_try_echo"; } >&5 28946 (eval "$ac_compile") 2>&5 28947 ac_status=$? 28948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28949 test $ac_status = 0; }; then : 28950 for ac_file in conftest.o conftest.obj conftest.*; do 28951 test -f "$ac_file" || continue; 28952 case $ac_file in 28953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28954 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28955 break;; 28956 esac 28957 done 28958 else 28959 $as_echo "$as_me: failed program was:" >&5 28960 sed 's/^/| /' conftest.$ac_ext >&5 28961 28962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28964 as_fn_error $? "cannot compute suffix of object files: cannot compile 28965 See \`config.log' for more details" "$LINENO" 5; } 28966 fi 28967 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28968 fi 28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28970 $as_echo "$ac_cv_objext" >&6; } 28971 OBJEXT=$ac_cv_objext 28972 ac_objext=$OBJEXT 28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28974 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 28975 if ${ac_cv_c_compiler_gnu+:} false; then : 28976 $as_echo_n "(cached) " >&6 28977 else 28978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28979 /* end confdefs.h. */ 28980 28981 int 28982 main () 28983 { 28984 #ifndef __GNUC__ 28985 choke me 28986 #endif 28987 28988 ; 28989 return 0; 28990 } 28991 _ACEOF 28992 if ac_fn_c_try_compile "$LINENO"; then : 28993 ac_compiler_gnu=yes 28994 else 28995 ac_compiler_gnu=no 28996 fi 28997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28998 ac_cv_c_compiler_gnu=$ac_compiler_gnu 28999 29000 fi 29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29002 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29003 if test $ac_compiler_gnu = yes; then 29004 GCC=yes 29005 else 29006 GCC= 29007 fi 29008 ac_test_CFLAGS=${CFLAGS+set} 29009 ac_save_CFLAGS=$CFLAGS 29010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29011 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29012 if ${ac_cv_prog_cc_g+:} false; then : 29013 $as_echo_n "(cached) " >&6 29014 else 29015 ac_save_c_werror_flag=$ac_c_werror_flag 29016 ac_c_werror_flag=yes 29017 ac_cv_prog_cc_g=no 29018 CFLAGS="-g" 29019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29020 /* end confdefs.h. */ 29021 29022 int 29023 main () 29024 { 29025 29026 ; 29027 return 0; 29028 } 29029 _ACEOF 29030 if ac_fn_c_try_compile "$LINENO"; then : 29031 ac_cv_prog_cc_g=yes 29032 else 29033 CFLAGS="" 29034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29035 /* end confdefs.h. */ 29036 29037 int 29038 main () 29039 { 29040 29041 ; 29042 return 0; 29043 } 29044 _ACEOF 29045 if ac_fn_c_try_compile "$LINENO"; then : 29046 29047 else 29048 ac_c_werror_flag=$ac_save_c_werror_flag 29049 CFLAGS="-g" 29050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29051 /* end confdefs.h. */ 29052 29053 int 29054 main () 29055 { 29056 29057 ; 29058 return 0; 29059 } 29060 _ACEOF 29061 if ac_fn_c_try_compile "$LINENO"; then : 29062 ac_cv_prog_cc_g=yes 29063 fi 29064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29065 fi 29066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29067 fi 29068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29069 ac_c_werror_flag=$ac_save_c_werror_flag 29070 fi 29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29072 $as_echo "$ac_cv_prog_cc_g" >&6; } 29073 if test "$ac_test_CFLAGS" = set; then 29074 CFLAGS=$ac_save_CFLAGS 29075 elif test $ac_cv_prog_cc_g = yes; then 29076 if test "$GCC" = yes; then 29077 CFLAGS="-g -O2" 29078 else 29079 CFLAGS="-g" 29080 fi 29081 else 29082 if test "$GCC" = yes; then 29083 CFLAGS="-O2" 29084 else 29085 CFLAGS= 29086 fi 29087 fi 29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29089 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29090 if ${ac_cv_prog_cc_c89+:} false; then : 29091 $as_echo_n "(cached) " >&6 29092 else 29093 ac_cv_prog_cc_c89=no 29094 ac_save_CC=$CC 29095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29096 /* end confdefs.h. */ 29097 #include <stdarg.h> 29098 #include <stdio.h> 29099 struct stat; 29100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29101 struct buf { int x; }; 29102 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29103 static char *e (p, i) 29104 char **p; 29105 int i; 29106 { 29107 return p[i]; 29108 } 29109 static char *f (char * (*g) (char **, int), char **p, ...) 29110 { 29111 char *s; 29112 va_list v; 29113 va_start (v,p); 29114 s = g (p, va_arg (v,int)); 29115 va_end (v); 29116 return s; 29117 } 29118 29119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29120 function prototypes and stuff, but not '\xHH' hex character constants. 29121 These don't provoke an error unfortunately, instead are silently treated 29122 as 'x'. The following induces an error, until -std is added to get 29123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29124 array size at least. It's necessary to write '\x00'==0 to get something 29125 that's true only with -std. */ 29126 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29127 29128 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29129 inside strings and character constants. */ 29130 #define FOO(x) 'x' 29131 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29132 29133 int test (int i, double x); 29134 struct s1 {int (*f) (int a);}; 29135 struct s2 {int (*f) (double a);}; 29136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29137 int argc; 29138 char **argv; 29139 int 29140 main () 29141 { 29142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29143 ; 29144 return 0; 29145 } 29146 _ACEOF 29147 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29149 do 29150 CC="$ac_save_CC $ac_arg" 29151 if ac_fn_c_try_compile "$LINENO"; then : 29152 ac_cv_prog_cc_c89=$ac_arg 29153 fi 29154 rm -f core conftest.err conftest.$ac_objext 29155 test "x$ac_cv_prog_cc_c89" != "xno" && break 29156 done 29157 rm -f conftest.$ac_ext 29158 CC=$ac_save_CC 29159 29160 fi 29161 # AC_CACHE_VAL 29162 case "x$ac_cv_prog_cc_c89" in 29163 x) 29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29165 $as_echo "none needed" >&6; } ;; 29166 xno) 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29168 $as_echo "unsupported" >&6; } ;; 29169 *) 29170 CC="$CC $ac_cv_prog_cc_c89" 29171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29172 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29173 esac 29174 if test "x$ac_cv_prog_cc_c89" != xno; then : 29175 29176 fi 29177 29178 ac_ext=cpp 29179 ac_cpp='$CXXCPP $CPPFLAGS' 29180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29183 29184 29185 29186 COMPILER_NAME=C++ 29187 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29188 29189 if test "x$CXX" != x; then 29190 # User has supplied compiler name already, always let that override. 29191 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29192 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29193 if test "x`basename $CXX`" = "x$CXX"; then 29194 # A command without a complete path is provided, search $PATH. 29195 29196 for ac_prog in $CXX 29197 do 29198 # Extract the first word of "$ac_prog", so it can be a program name with args. 29199 set dummy $ac_prog; ac_word=$2 29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29201 $as_echo_n "checking for $ac_word... " >&6; } 29202 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29203 $as_echo_n "(cached) " >&6 29204 else 29205 case $POTENTIAL_CXX in 29206 [\\/]* | ?:[\\/]*) 29207 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29208 ;; 29209 *) 29210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29211 for as_dir in $PATH 29212 do 29213 IFS=$as_save_IFS 29214 test -z "$as_dir" && as_dir=. 29215 for ac_exec_ext in '' $ac_executable_extensions; do 29216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29217 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29219 break 2 29220 fi 29221 done 29222 done 29223 IFS=$as_save_IFS 29224 29225 ;; 29226 esac 29227 fi 29228 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29229 if test -n "$POTENTIAL_CXX"; then 29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29231 $as_echo "$POTENTIAL_CXX" >&6; } 29232 else 29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29234 $as_echo "no" >&6; } 29235 fi 29236 29237 29238 test -n "$POTENTIAL_CXX" && break 29239 done 29240 29241 if test "x$POTENTIAL_CXX" != x; then 29242 CXX=$POTENTIAL_CXX 29243 else 29244 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29245 fi 29246 else 29247 # Otherwise it might already be a complete path 29248 if test ! -x "$CXX"; then 29249 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29250 fi 29251 fi 29252 else 29253 # No user supplied value. Locate compiler ourselves. 29254 29255 # If we are cross compiling, assume cross compilation tools follows the 29256 # cross compilation standard where they are prefixed with the autoconf 29257 # standard name for the target. For example the binary 29258 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29259 # If we are not cross compiling, then the default compiler name will be 29260 # used. 29261 29262 CXX= 29263 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29264 # before checking the rest of the PATH. 29265 # FIXME: Now that we prefix the TOOLCHAIN_PATH to the PATH in the PRE_DETECTION 29266 # step, this should not be necessary. 29267 if test -n "$TOOLCHAIN_PATH"; then 29268 PATH_save="$PATH" 29269 PATH="$TOOLCHAIN_PATH" 29270 for ac_prog in $SEARCH_LIST 29271 do 29272 # Extract the first word of "$ac_prog", so it can be a program name with args. 29273 set dummy $ac_prog; ac_word=$2 29274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29275 $as_echo_n "checking for $ac_word... " >&6; } 29276 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29277 $as_echo_n "(cached) " >&6 29278 else 29279 case $TOOLCHAIN_PATH_CXX in 29280 [\\/]* | ?:[\\/]*) 29281 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29282 ;; 29283 *) 29284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29285 for as_dir in $PATH 29286 do 29287 IFS=$as_save_IFS 29288 test -z "$as_dir" && as_dir=. 29289 for ac_exec_ext in '' $ac_executable_extensions; do 29290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29291 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29293 break 2 29294 fi 29295 done 29296 done 29297 IFS=$as_save_IFS 29298 29299 ;; 29300 esac 29301 fi 29302 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29303 if test -n "$TOOLCHAIN_PATH_CXX"; then 29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29305 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29306 else 29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29308 $as_echo "no" >&6; } 29309 fi 29310 29311 29312 test -n "$TOOLCHAIN_PATH_CXX" && break 29313 done 29314 29315 CXX=$TOOLCHAIN_PATH_CXX 29316 PATH="$PATH_save" 29317 fi 29318 29319 # AC_PATH_PROGS can't be run multiple times with the same variable, 29320 # so create a new name for this run. 29321 if test "x$CXX" = x; then 29322 for ac_prog in $SEARCH_LIST 29323 do 29324 # Extract the first word of "$ac_prog", so it can be a program name with args. 29325 set dummy $ac_prog; ac_word=$2 29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29327 $as_echo_n "checking for $ac_word... " >&6; } 29328 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29329 $as_echo_n "(cached) " >&6 29330 else 29331 case $POTENTIAL_CXX in 29332 [\\/]* | ?:[\\/]*) 29333 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29334 ;; 29335 *) 29336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29337 for as_dir in $PATH 29338 do 29339 IFS=$as_save_IFS 29340 test -z "$as_dir" && as_dir=. 29341 for ac_exec_ext in '' $ac_executable_extensions; do 29342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29343 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29345 break 2 29346 fi 29347 done 29348 done 29349 IFS=$as_save_IFS 29350 29351 ;; 29352 esac 29353 fi 29354 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29355 if test -n "$POTENTIAL_CXX"; then 29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29357 $as_echo "$POTENTIAL_CXX" >&6; } 29358 else 29359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29360 $as_echo "no" >&6; } 29361 fi 29362 29363 29364 test -n "$POTENTIAL_CXX" && break 29365 done 29366 29367 CXX=$POTENTIAL_CXX 29368 fi 29369 29370 if test "x$CXX" = x; then 29371 29372 # Print a helpful message on how to acquire the necessary build dependency. 29373 # devkit is the help tag: freetype, cups, pulse, alsa etc 29374 MISSING_DEPENDENCY=devkit 29375 29376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29377 cygwin_help $MISSING_DEPENDENCY 29378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29379 msys_help $MISSING_DEPENDENCY 29380 else 29381 PKGHANDLER_COMMAND= 29382 29383 case $PKGHANDLER in 29384 apt-get) 29385 apt_help $MISSING_DEPENDENCY ;; 29386 yum) 29387 yum_help $MISSING_DEPENDENCY ;; 29388 port) 29389 port_help $MISSING_DEPENDENCY ;; 29390 pkgutil) 29391 pkgutil_help $MISSING_DEPENDENCY ;; 29392 pkgadd) 29393 pkgadd_help $MISSING_DEPENDENCY ;; 29394 esac 29395 29396 if test "x$PKGHANDLER_COMMAND" != x; then 29397 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29398 fi 29399 fi 29400 29401 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29402 fi 29403 fi 29404 29405 # Now we have a compiler binary in CXX. Make sure it's okay. 29406 29407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29408 29409 # First separate the path from the arguments. This will split at the first 29410 # space. 29411 complete="$CXX" 29412 path="${complete%% *}" 29413 tmp="$complete EOL" 29414 arguments="${tmp#* }" 29415 29416 # Input might be given as Windows format, start by converting to 29417 # unix format. 29418 new_path=`$CYGPATH -u "$path"` 29419 29420 # Now try to locate executable using which 29421 new_path=`$WHICH "$new_path" 2> /dev/null` 29422 # bat and cmd files are not always considered executable in cygwin causing which 29423 # to not find them 29424 if test "x$new_path" = x \ 29425 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29426 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29427 new_path=`$CYGPATH -u "$path"` 29428 fi 29429 if test "x$new_path" = x; then 29430 # Oops. Which didn't find the executable. 29431 # The splitting of arguments from the executable at a space might have been incorrect, 29432 # since paths with space are more likely in Windows. Give it another try with the whole 29433 # argument. 29434 path="$complete" 29435 arguments="EOL" 29436 new_path=`$CYGPATH -u "$path"` 29437 new_path=`$WHICH "$new_path" 2> /dev/null` 29438 # bat and cmd files are not always considered executable in cygwin causing which 29439 # to not find them 29440 if test "x$new_path" = x \ 29441 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29442 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29443 new_path=`$CYGPATH -u "$path"` 29444 fi 29445 if test "x$new_path" = x; then 29446 # It's still not found. Now this is an unrecoverable error. 29447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29448 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29449 has_space=`$ECHO "$complete" | $GREP " "` 29450 if test "x$has_space" != x; then 29451 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29452 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29453 fi 29454 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29455 fi 29456 fi 29457 29458 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29459 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29460 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29461 # "foo.exe" is OK but "foo" is an error. 29462 # 29463 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29464 # It is also a way to make sure we got the proper file name for the real test later on. 29465 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29466 if test "x$test_shortpath" = x; then 29467 # Short path failed, file does not exist as specified. 29468 # Try adding .exe or .cmd 29469 if test -f "${new_path}.exe"; then 29470 input_to_shortpath="${new_path}.exe" 29471 elif test -f "${new_path}.cmd"; then 29472 input_to_shortpath="${new_path}.cmd" 29473 else 29474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29475 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29476 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29477 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29478 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29479 fi 29480 else 29481 input_to_shortpath="$new_path" 29482 fi 29483 29484 # Call helper function which possibly converts this using DOS-style short mode. 29485 # If so, the updated path is stored in $new_path. 29486 new_path="$input_to_shortpath" 29487 29488 input_path="$input_to_shortpath" 29489 # Check if we need to convert this using DOS-style short mode. If the path 29490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29491 # take no chances and rewrite it. 29492 # Note: m4 eats our [], so we need to use [ and ] instead. 29493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29494 if test "x$has_forbidden_chars" != x; then 29495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29496 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29497 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29498 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29499 # Going to short mode and back again did indeed matter. Since short mode is 29500 # case insensitive, let's make it lowercase to improve readability. 29501 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29502 # Now convert it back to Unix-stile (cygpath) 29503 input_path=`$CYGPATH -u "$shortmode_path"` 29504 new_path="$input_path" 29505 fi 29506 fi 29507 29508 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29509 if test "x$test_cygdrive_prefix" = x; then 29510 # As a simple fix, exclude /usr/bin since it's not a real path. 29511 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29512 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29513 # a path prefixed by /cygdrive for fixpath to work. 29514 new_path="$CYGWIN_ROOT_PATH$input_path" 29515 fi 29516 fi 29517 29518 # remove trailing .exe if any 29519 new_path="${new_path/%.exe/}" 29520 29521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29522 29523 # First separate the path from the arguments. This will split at the first 29524 # space. 29525 complete="$CXX" 29526 path="${complete%% *}" 29527 tmp="$complete EOL" 29528 arguments="${tmp#* }" 29529 29530 # Input might be given as Windows format, start by converting to 29531 # unix format. 29532 new_path="$path" 29533 29534 windows_path="$new_path" 29535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29536 unix_path=`$CYGPATH -u "$windows_path"` 29537 new_path="$unix_path" 29538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29539 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29540 new_path="$unix_path" 29541 fi 29542 29543 29544 # Now try to locate executable using which 29545 new_path=`$WHICH "$new_path" 2> /dev/null` 29546 29547 if test "x$new_path" = x; then 29548 # Oops. Which didn't find the executable. 29549 # The splitting of arguments from the executable at a space might have been incorrect, 29550 # since paths with space are more likely in Windows. Give it another try with the whole 29551 # argument. 29552 path="$complete" 29553 arguments="EOL" 29554 new_path="$path" 29555 29556 windows_path="$new_path" 29557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29558 unix_path=`$CYGPATH -u "$windows_path"` 29559 new_path="$unix_path" 29560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29562 new_path="$unix_path" 29563 fi 29564 29565 29566 new_path=`$WHICH "$new_path" 2> /dev/null` 29567 29568 if test "x$new_path" = x; then 29569 # It's still not found. Now this is an unrecoverable error. 29570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29571 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29572 has_space=`$ECHO "$complete" | $GREP " "` 29573 if test "x$has_space" != x; then 29574 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29575 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29576 fi 29577 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29578 fi 29579 fi 29580 29581 # Now new_path has a complete unix path to the binary 29582 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29583 # Keep paths in /bin as-is, but remove trailing .exe if any 29584 new_path="${new_path/%.exe/}" 29585 # Do not save /bin paths to all_fixpath_prefixes! 29586 else 29587 # Not in mixed or Windows style, start by that. 29588 new_path=`cmd //c echo $new_path` 29589 29590 input_path="$new_path" 29591 # Check if we need to convert this using DOS-style short mode. If the path 29592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29593 # take no chances and rewrite it. 29594 # Note: m4 eats our [], so we need to use [ and ] instead. 29595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29596 if test "x$has_forbidden_chars" != x; then 29597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29598 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29599 fi 29600 29601 # Output is in $new_path 29602 29603 windows_path="$new_path" 29604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29605 unix_path=`$CYGPATH -u "$windows_path"` 29606 new_path="$unix_path" 29607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29609 new_path="$unix_path" 29610 fi 29611 29612 # remove trailing .exe if any 29613 new_path="${new_path/%.exe/}" 29614 29615 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29616 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29617 fi 29618 29619 else 29620 # We're on a posix platform. Hooray! :) 29621 # First separate the path from the arguments. This will split at the first 29622 # space. 29623 complete="$CXX" 29624 path="${complete%% *}" 29625 tmp="$complete EOL" 29626 arguments="${tmp#* }" 29627 29628 # Cannot rely on the command "which" here since it doesn't always work. 29629 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29630 if test -z "$is_absolute_path"; then 29631 # Path to executable is not absolute. Find it. 29632 IFS_save="$IFS" 29633 IFS=: 29634 for p in $PATH; do 29635 if test -f "$p/$path" && test -x "$p/$path"; then 29636 new_path="$p/$path" 29637 break 29638 fi 29639 done 29640 IFS="$IFS_save" 29641 else 29642 # This is an absolute path, we can use it without further modifications. 29643 new_path="$path" 29644 fi 29645 29646 if test "x$new_path" = x; then 29647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29648 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29649 has_space=`$ECHO "$complete" | $GREP " "` 29650 if test "x$has_space" != x; then 29651 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29652 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29653 fi 29654 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29655 fi 29656 fi 29657 29658 # Now join together the path and the arguments once again 29659 if test "x$arguments" != xEOL; then 29660 new_complete="$new_path ${arguments% *}" 29661 else 29662 new_complete="$new_path" 29663 fi 29664 29665 if test "x$complete" != "x$new_complete"; then 29666 CXX="$new_complete" 29667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29668 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29669 fi 29670 29671 TEST_COMPILER="$CXX" 29672 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29673 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29674 if test "x$OPENJDK_BUILD_OS" != xaix; then 29675 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29677 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29678 29679 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29680 # Follow a chain of symbolic links. Use readlink 29681 # where it exists, else fall back to horribly 29682 # complicated shell code. 29683 if test "x$READLINK_TESTED" != yes; then 29684 # On MacOSX there is a readlink tool with a different 29685 # purpose than the GNU readlink tool. Check the found readlink. 29686 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29687 if test "x$ISGNU" = x; then 29688 # A readlink that we do not know how to use. 29689 # Are there other non-GNU readlinks out there? 29690 READLINK_TESTED=yes 29691 READLINK= 29692 fi 29693 fi 29694 29695 if test "x$READLINK" != x; then 29696 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29697 else 29698 # Save the current directory for restoring afterwards 29699 STARTDIR=$PWD 29700 COUNTER=0 29701 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29702 sym_link_file=`$BASENAME $TEST_COMPILER` 29703 cd $sym_link_dir 29704 # Use -P flag to resolve symlinks in directories. 29705 cd `$THEPWDCMD -P` 29706 sym_link_dir=`$THEPWDCMD -P` 29707 # Resolve file symlinks 29708 while test $COUNTER -lt 20; do 29709 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29710 if test "x$ISLINK" == x; then 29711 # This is not a symbolic link! We are done! 29712 break 29713 fi 29714 # Again resolve directory symlinks since the target of the just found 29715 # link could be in a different directory 29716 cd `$DIRNAME $ISLINK` 29717 sym_link_dir=`$THEPWDCMD -P` 29718 sym_link_file=`$BASENAME $ISLINK` 29719 let COUNTER=COUNTER+1 29720 done 29721 cd $STARTDIR 29722 TEST_COMPILER=$sym_link_dir/$sym_link_file 29723 fi 29724 fi 29725 29726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 29727 $as_echo "$TEST_COMPILER" >&6; } 29728 fi 29729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29730 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29731 29732 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 29733 if test "x$COMPILER_BASENAME" = "xccache"; then 29734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29735 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29736 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29737 # We want to control ccache invocation ourselves, so ignore this cc and try 29738 # searching again. 29739 29740 # Remove the path to the fake ccache cc from the PATH 29741 RETRY_COMPILER_SAVED_PATH="$PATH" 29742 COMPILER_DIRNAME=`$DIRNAME $CXX` 29743 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29744 29745 # Try again looking for our compiler 29746 if test -n "$ac_tool_prefix"; then 29747 for ac_prog in $TOOLCHAIN_CXX_BINARY 29748 do 29749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29752 $as_echo_n "checking for $ac_word... " >&6; } 29753 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29754 $as_echo_n "(cached) " >&6 29755 else 29756 if test -n "$PROPER_COMPILER_CXX"; then 29757 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29758 else 29759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29760 for as_dir in $PATH 29761 do 29762 IFS=$as_save_IFS 29763 test -z "$as_dir" && as_dir=. 29764 for ac_exec_ext in '' $ac_executable_extensions; do 29765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29766 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29768 break 2 29769 fi 29770 done 29771 done 29772 IFS=$as_save_IFS 29773 29774 fi 29775 fi 29776 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29777 if test -n "$PROPER_COMPILER_CXX"; then 29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29779 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29780 else 29781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29782 $as_echo "no" >&6; } 29783 fi 29784 29785 29786 test -n "$PROPER_COMPILER_CXX" && break 29787 done 29788 fi 29789 if test -z "$PROPER_COMPILER_CXX"; then 29790 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29791 for ac_prog in $TOOLCHAIN_CXX_BINARY 29792 do 29793 # Extract the first word of "$ac_prog", so it can be a program name with args. 29794 set dummy $ac_prog; ac_word=$2 29795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29796 $as_echo_n "checking for $ac_word... " >&6; } 29797 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29798 $as_echo_n "(cached) " >&6 29799 else 29800 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29801 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29802 else 29803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29804 for as_dir in $PATH 29805 do 29806 IFS=$as_save_IFS 29807 test -z "$as_dir" && as_dir=. 29808 for ac_exec_ext in '' $ac_executable_extensions; do 29809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29810 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29812 break 2 29813 fi 29814 done 29815 done 29816 IFS=$as_save_IFS 29817 29818 fi 29819 fi 29820 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29821 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29823 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29824 else 29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29826 $as_echo "no" >&6; } 29827 fi 29828 29829 29830 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29831 done 29832 29833 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29834 PROPER_COMPILER_CXX="" 29835 else 29836 case $cross_compiling:$ac_tool_warned in 29837 yes:) 29838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29840 ac_tool_warned=yes ;; 29841 esac 29842 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29843 fi 29844 fi 29845 29846 29847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29848 29849 # First separate the path from the arguments. This will split at the first 29850 # space. 29851 complete="$PROPER_COMPILER_CXX" 29852 path="${complete%% *}" 29853 tmp="$complete EOL" 29854 arguments="${tmp#* }" 29855 29856 # Input might be given as Windows format, start by converting to 29857 # unix format. 29858 new_path=`$CYGPATH -u "$path"` 29859 29860 # Now try to locate executable using which 29861 new_path=`$WHICH "$new_path" 2> /dev/null` 29862 # bat and cmd files are not always considered executable in cygwin causing which 29863 # to not find them 29864 if test "x$new_path" = x \ 29865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29867 new_path=`$CYGPATH -u "$path"` 29868 fi 29869 if test "x$new_path" = x; then 29870 # Oops. Which didn't find the executable. 29871 # The splitting of arguments from the executable at a space might have been incorrect, 29872 # since paths with space are more likely in Windows. Give it another try with the whole 29873 # argument. 29874 path="$complete" 29875 arguments="EOL" 29876 new_path=`$CYGPATH -u "$path"` 29877 new_path=`$WHICH "$new_path" 2> /dev/null` 29878 # bat and cmd files are not always considered executable in cygwin causing which 29879 # to not find them 29880 if test "x$new_path" = x \ 29881 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29882 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29883 new_path=`$CYGPATH -u "$path"` 29884 fi 29885 if test "x$new_path" = x; then 29886 # It's still not found. Now this is an unrecoverable error. 29887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29888 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29889 has_space=`$ECHO "$complete" | $GREP " "` 29890 if test "x$has_space" != x; then 29891 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29892 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29893 fi 29894 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29895 fi 29896 fi 29897 29898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29901 # "foo.exe" is OK but "foo" is an error. 29902 # 29903 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29904 # It is also a way to make sure we got the proper file name for the real test later on. 29905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29906 if test "x$test_shortpath" = x; then 29907 # Short path failed, file does not exist as specified. 29908 # Try adding .exe or .cmd 29909 if test -f "${new_path}.exe"; then 29910 input_to_shortpath="${new_path}.exe" 29911 elif test -f "${new_path}.cmd"; then 29912 input_to_shortpath="${new_path}.cmd" 29913 else 29914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29915 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29916 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29917 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29918 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29919 fi 29920 else 29921 input_to_shortpath="$new_path" 29922 fi 29923 29924 # Call helper function which possibly converts this using DOS-style short mode. 29925 # If so, the updated path is stored in $new_path. 29926 new_path="$input_to_shortpath" 29927 29928 input_path="$input_to_shortpath" 29929 # Check if we need to convert this using DOS-style short mode. If the path 29930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29931 # take no chances and rewrite it. 29932 # Note: m4 eats our [], so we need to use [ and ] instead. 29933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29934 if test "x$has_forbidden_chars" != x; then 29935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29939 # Going to short mode and back again did indeed matter. Since short mode is 29940 # case insensitive, let's make it lowercase to improve readability. 29941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29942 # Now convert it back to Unix-stile (cygpath) 29943 input_path=`$CYGPATH -u "$shortmode_path"` 29944 new_path="$input_path" 29945 fi 29946 fi 29947 29948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29949 if test "x$test_cygdrive_prefix" = x; then 29950 # As a simple fix, exclude /usr/bin since it's not a real path. 29951 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29953 # a path prefixed by /cygdrive for fixpath to work. 29954 new_path="$CYGWIN_ROOT_PATH$input_path" 29955 fi 29956 fi 29957 29958 # remove trailing .exe if any 29959 new_path="${new_path/%.exe/}" 29960 29961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29962 29963 # First separate the path from the arguments. This will split at the first 29964 # space. 29965 complete="$PROPER_COMPILER_CXX" 29966 path="${complete%% *}" 29967 tmp="$complete EOL" 29968 arguments="${tmp#* }" 29969 29970 # Input might be given as Windows format, start by converting to 29971 # unix format. 29972 new_path="$path" 29973 29974 windows_path="$new_path" 29975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29976 unix_path=`$CYGPATH -u "$windows_path"` 29977 new_path="$unix_path" 29978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29980 new_path="$unix_path" 29981 fi 29982 29983 29984 # Now try to locate executable using which 29985 new_path=`$WHICH "$new_path" 2> /dev/null` 29986 29987 if test "x$new_path" = x; then 29988 # Oops. Which didn't find the executable. 29989 # The splitting of arguments from the executable at a space might have been incorrect, 29990 # since paths with space are more likely in Windows. Give it another try with the whole 29991 # argument. 29992 path="$complete" 29993 arguments="EOL" 29994 new_path="$path" 29995 29996 windows_path="$new_path" 29997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29998 unix_path=`$CYGPATH -u "$windows_path"` 29999 new_path="$unix_path" 30000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30002 new_path="$unix_path" 30003 fi 30004 30005 30006 new_path=`$WHICH "$new_path" 2> /dev/null` 30007 30008 if test "x$new_path" = x; then 30009 # It's still not found. Now this is an unrecoverable error. 30010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30011 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30012 has_space=`$ECHO "$complete" | $GREP " "` 30013 if test "x$has_space" != x; then 30014 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30015 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30016 fi 30017 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30018 fi 30019 fi 30020 30021 # Now new_path has a complete unix path to the binary 30022 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30023 # Keep paths in /bin as-is, but remove trailing .exe if any 30024 new_path="${new_path/%.exe/}" 30025 # Do not save /bin paths to all_fixpath_prefixes! 30026 else 30027 # Not in mixed or Windows style, start by that. 30028 new_path=`cmd //c echo $new_path` 30029 30030 input_path="$new_path" 30031 # Check if we need to convert this using DOS-style short mode. If the path 30032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30033 # take no chances and rewrite it. 30034 # Note: m4 eats our [], so we need to use [ and ] instead. 30035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30036 if test "x$has_forbidden_chars" != x; then 30037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30038 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30039 fi 30040 30041 # Output is in $new_path 30042 30043 windows_path="$new_path" 30044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30045 unix_path=`$CYGPATH -u "$windows_path"` 30046 new_path="$unix_path" 30047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30049 new_path="$unix_path" 30050 fi 30051 30052 # remove trailing .exe if any 30053 new_path="${new_path/%.exe/}" 30054 30055 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30056 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30057 fi 30058 30059 else 30060 # We're on a posix platform. Hooray! :) 30061 # First separate the path from the arguments. This will split at the first 30062 # space. 30063 complete="$PROPER_COMPILER_CXX" 30064 path="${complete%% *}" 30065 tmp="$complete EOL" 30066 arguments="${tmp#* }" 30067 30068 # Cannot rely on the command "which" here since it doesn't always work. 30069 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30070 if test -z "$is_absolute_path"; then 30071 # Path to executable is not absolute. Find it. 30072 IFS_save="$IFS" 30073 IFS=: 30074 for p in $PATH; do 30075 if test -f "$p/$path" && test -x "$p/$path"; then 30076 new_path="$p/$path" 30077 break 30078 fi 30079 done 30080 IFS="$IFS_save" 30081 else 30082 # This is an absolute path, we can use it without further modifications. 30083 new_path="$path" 30084 fi 30085 30086 if test "x$new_path" = x; then 30087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30088 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30089 has_space=`$ECHO "$complete" | $GREP " "` 30090 if test "x$has_space" != x; then 30091 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30092 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30093 fi 30094 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30095 fi 30096 fi 30097 30098 # Now join together the path and the arguments once again 30099 if test "x$arguments" != xEOL; then 30100 new_complete="$new_path ${arguments% *}" 30101 else 30102 new_complete="$new_path" 30103 fi 30104 30105 if test "x$complete" != "x$new_complete"; then 30106 PROPER_COMPILER_CXX="$new_complete" 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30108 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30109 fi 30110 30111 PATH="$RETRY_COMPILER_SAVED_PATH" 30112 30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30114 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30115 30116 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30117 # Follow a chain of symbolic links. Use readlink 30118 # where it exists, else fall back to horribly 30119 # complicated shell code. 30120 if test "x$READLINK_TESTED" != yes; then 30121 # On MacOSX there is a readlink tool with a different 30122 # purpose than the GNU readlink tool. Check the found readlink. 30123 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30124 if test "x$ISGNU" = x; then 30125 # A readlink that we do not know how to use. 30126 # Are there other non-GNU readlinks out there? 30127 READLINK_TESTED=yes 30128 READLINK= 30129 fi 30130 fi 30131 30132 if test "x$READLINK" != x; then 30133 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30134 else 30135 # Save the current directory for restoring afterwards 30136 STARTDIR=$PWD 30137 COUNTER=0 30138 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30139 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30140 cd $sym_link_dir 30141 # Use -P flag to resolve symlinks in directories. 30142 cd `$THEPWDCMD -P` 30143 sym_link_dir=`$THEPWDCMD -P` 30144 # Resolve file symlinks 30145 while test $COUNTER -lt 20; do 30146 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30147 if test "x$ISLINK" == x; then 30148 # This is not a symbolic link! We are done! 30149 break 30150 fi 30151 # Again resolve directory symlinks since the target of the just found 30152 # link could be in a different directory 30153 cd `$DIRNAME $ISLINK` 30154 sym_link_dir=`$THEPWDCMD -P` 30155 sym_link_file=`$BASENAME $ISLINK` 30156 let COUNTER=COUNTER+1 30157 done 30158 cd $STARTDIR 30159 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30160 fi 30161 fi 30162 30163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30164 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30165 CXX="$PROPER_COMPILER_CXX" 30166 else 30167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30168 $as_echo "no, keeping CXX" >&6; } 30169 fi 30170 30171 30172 COMPILER=$CXX 30173 COMPILER_NAME=$COMPILER_NAME 30174 30175 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30176 # cc -V output typically looks like 30177 # cc: Sun C 5.12 Linux_i386 2011/11/16 30178 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30179 # Check that this is likely to be the Solaris Studio cc. 30180 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30181 if test $? -ne 0; then 30182 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30183 { $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 30184 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30185 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30186 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30187 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30188 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30189 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30190 fi 30191 # Remove usage instructions (if present), and 30192 # collapse compiler output into a single line 30193 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30194 $SED -e 's/ *[Uu]sage:.*//'` 30195 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30196 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30197 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30198 # xlc -qversion output typically looks like 30199 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30200 # Version: 11.01.0000.0015 30201 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30202 # Check that this is likely to be the IBM XL C compiler. 30203 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30204 if test $? -ne 0; then 30205 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30206 { $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 30207 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30208 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30209 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30211 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30212 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30213 fi 30214 # Collapse compiler output into a single line 30215 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30216 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30217 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30218 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30219 # There is no specific version flag, but all output starts with a version string. 30220 # First line typically looks something like: 30221 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30222 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30223 # Check that this is likely to be Microsoft CL.EXE. 30224 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30225 if test $? -ne 0; then 30226 { $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 30227 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30228 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30229 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30230 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30231 fi 30232 # Collapse compiler output into a single line 30233 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30234 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30235 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30236 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30237 # gcc --version output typically looks like 30238 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30239 # Copyright (C) 2013 Free Software Foundation, Inc. 30240 # This is free software; see the source for copying conditions. There is NO 30241 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30242 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30243 # Check that this is likely to be GCC. 30244 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30245 if test $? -ne 0; then 30246 { $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 30247 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30248 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30249 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30250 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30251 fi 30252 # Remove Copyright and legalese from version string, and 30253 # collapse into a single line 30254 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30255 $SED -e 's/ *Copyright .*//'` 30256 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30257 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30258 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30259 # clang --version output typically looks like 30260 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30261 # clang version 3.3 (tags/RELEASE_33/final) 30262 # or 30263 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30264 # Target: x86_64-pc-linux-gnu 30265 # Thread model: posix 30266 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30267 # Check that this is likely to be clang 30268 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30269 if test $? -ne 0; then 30270 { $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 30271 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30272 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30273 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30274 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30275 fi 30276 # Collapse compiler output into a single line 30277 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30278 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30279 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30280 else 30281 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30282 fi 30283 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30284 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30285 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30286 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30287 30288 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30289 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30290 30291 30292 # Now that we have resolved CXX ourself, let autoconf have its go at it 30293 ac_ext=cpp 30294 ac_cpp='$CXXCPP $CPPFLAGS' 30295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30298 if test -z "$CXX"; then 30299 if test -n "$CCC"; then 30300 CXX=$CCC 30301 else 30302 if test -n "$ac_tool_prefix"; then 30303 for ac_prog in $CXX 30304 do 30305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30308 $as_echo_n "checking for $ac_word... " >&6; } 30309 if ${ac_cv_prog_CXX+:} false; then : 30310 $as_echo_n "(cached) " >&6 30311 else 30312 if test -n "$CXX"; then 30313 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30314 else 30315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30316 for as_dir in $PATH 30317 do 30318 IFS=$as_save_IFS 30319 test -z "$as_dir" && as_dir=. 30320 for ac_exec_ext in '' $ac_executable_extensions; do 30321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30322 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30324 break 2 30325 fi 30326 done 30327 done 30328 IFS=$as_save_IFS 30329 30330 fi 30331 fi 30332 CXX=$ac_cv_prog_CXX 30333 if test -n "$CXX"; then 30334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30335 $as_echo "$CXX" >&6; } 30336 else 30337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30338 $as_echo "no" >&6; } 30339 fi 30340 30341 30342 test -n "$CXX" && break 30343 done 30344 fi 30345 if test -z "$CXX"; then 30346 ac_ct_CXX=$CXX 30347 for ac_prog in $CXX 30348 do 30349 # Extract the first word of "$ac_prog", so it can be a program name with args. 30350 set dummy $ac_prog; ac_word=$2 30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30352 $as_echo_n "checking for $ac_word... " >&6; } 30353 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30354 $as_echo_n "(cached) " >&6 30355 else 30356 if test -n "$ac_ct_CXX"; then 30357 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30358 else 30359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30360 for as_dir in $PATH 30361 do 30362 IFS=$as_save_IFS 30363 test -z "$as_dir" && as_dir=. 30364 for ac_exec_ext in '' $ac_executable_extensions; do 30365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30366 ac_cv_prog_ac_ct_CXX="$ac_prog" 30367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30368 break 2 30369 fi 30370 done 30371 done 30372 IFS=$as_save_IFS 30373 30374 fi 30375 fi 30376 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30377 if test -n "$ac_ct_CXX"; then 30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30379 $as_echo "$ac_ct_CXX" >&6; } 30380 else 30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30382 $as_echo "no" >&6; } 30383 fi 30384 30385 30386 test -n "$ac_ct_CXX" && break 30387 done 30388 30389 if test "x$ac_ct_CXX" = x; then 30390 CXX="g++" 30391 else 30392 case $cross_compiling:$ac_tool_warned in 30393 yes:) 30394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30396 ac_tool_warned=yes ;; 30397 esac 30398 CXX=$ac_ct_CXX 30399 fi 30400 fi 30401 30402 fi 30403 fi 30404 # Provide some information about the compiler. 30405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30406 set X $ac_compile 30407 ac_compiler=$2 30408 for ac_option in --version -v -V -qversion; do 30409 { { ac_try="$ac_compiler $ac_option >&5" 30410 case "(($ac_try" in 30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30412 *) ac_try_echo=$ac_try;; 30413 esac 30414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30415 $as_echo "$ac_try_echo"; } >&5 30416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30417 ac_status=$? 30418 if test -s conftest.err; then 30419 sed '10a\ 30420 ... rest of stderr output deleted ... 30421 10q' conftest.err >conftest.er1 30422 cat conftest.er1 >&5 30423 fi 30424 rm -f conftest.er1 conftest.err 30425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30426 test $ac_status = 0; } 30427 done 30428 30429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30430 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30431 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30432 $as_echo_n "(cached) " >&6 30433 else 30434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30435 /* end confdefs.h. */ 30436 30437 int 30438 main () 30439 { 30440 #ifndef __GNUC__ 30441 choke me 30442 #endif 30443 30444 ; 30445 return 0; 30446 } 30447 _ACEOF 30448 if ac_fn_cxx_try_compile "$LINENO"; then : 30449 ac_compiler_gnu=yes 30450 else 30451 ac_compiler_gnu=no 30452 fi 30453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30454 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30455 30456 fi 30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30458 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30459 if test $ac_compiler_gnu = yes; then 30460 GXX=yes 30461 else 30462 GXX= 30463 fi 30464 ac_test_CXXFLAGS=${CXXFLAGS+set} 30465 ac_save_CXXFLAGS=$CXXFLAGS 30466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30467 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30468 if ${ac_cv_prog_cxx_g+:} false; then : 30469 $as_echo_n "(cached) " >&6 30470 else 30471 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30472 ac_cxx_werror_flag=yes 30473 ac_cv_prog_cxx_g=no 30474 CXXFLAGS="-g" 30475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30476 /* end confdefs.h. */ 30477 30478 int 30479 main () 30480 { 30481 30482 ; 30483 return 0; 30484 } 30485 _ACEOF 30486 if ac_fn_cxx_try_compile "$LINENO"; then : 30487 ac_cv_prog_cxx_g=yes 30488 else 30489 CXXFLAGS="" 30490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30491 /* end confdefs.h. */ 30492 30493 int 30494 main () 30495 { 30496 30497 ; 30498 return 0; 30499 } 30500 _ACEOF 30501 if ac_fn_cxx_try_compile "$LINENO"; then : 30502 30503 else 30504 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30505 CXXFLAGS="-g" 30506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30507 /* end confdefs.h. */ 30508 30509 int 30510 main () 30511 { 30512 30513 ; 30514 return 0; 30515 } 30516 _ACEOF 30517 if ac_fn_cxx_try_compile "$LINENO"; then : 30518 ac_cv_prog_cxx_g=yes 30519 fi 30520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30521 fi 30522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30523 fi 30524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30526 fi 30527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30528 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30529 if test "$ac_test_CXXFLAGS" = set; then 30530 CXXFLAGS=$ac_save_CXXFLAGS 30531 elif test $ac_cv_prog_cxx_g = yes; then 30532 if test "$GXX" = yes; then 30533 CXXFLAGS="-g -O2" 30534 else 30535 CXXFLAGS="-g" 30536 fi 30537 else 30538 if test "$GXX" = yes; then 30539 CXXFLAGS="-O2" 30540 else 30541 CXXFLAGS= 30542 fi 30543 fi 30544 ac_ext=cpp 30545 ac_cpp='$CXXCPP $CPPFLAGS' 30546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30549 30550 30551 # 30552 # Setup the preprocessor (CPP and CXXCPP) 30553 # 30554 ac_ext=c 30555 ac_cpp='$CPP $CPPFLAGS' 30556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30558 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30560 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30561 # On Suns, sometimes $CPP names a directory. 30562 if test -n "$CPP" && test -d "$CPP"; then 30563 CPP= 30564 fi 30565 if test -z "$CPP"; then 30566 if ${ac_cv_prog_CPP+:} false; then : 30567 $as_echo_n "(cached) " >&6 30568 else 30569 # Double quotes because CPP needs to be expanded 30570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30571 do 30572 ac_preproc_ok=false 30573 for ac_c_preproc_warn_flag in '' yes 30574 do 30575 # Use a header file that comes with gcc, so configuring glibc 30576 # with a fresh cross-compiler works. 30577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30578 # <limits.h> exists even on freestanding compilers. 30579 # On the NeXT, cc -E runs the code through the compiler's parser, 30580 # not just through cpp. "Syntax error" is here to catch this case. 30581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30582 /* end confdefs.h. */ 30583 #ifdef __STDC__ 30584 # include <limits.h> 30585 #else 30586 # include <assert.h> 30587 #endif 30588 Syntax error 30589 _ACEOF 30590 if ac_fn_c_try_cpp "$LINENO"; then : 30591 30592 else 30593 # Broken: fails on valid input. 30594 continue 30595 fi 30596 rm -f conftest.err conftest.i conftest.$ac_ext 30597 30598 # OK, works on sane cases. Now check whether nonexistent headers 30599 # can be detected and how. 30600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30601 /* end confdefs.h. */ 30602 #include <ac_nonexistent.h> 30603 _ACEOF 30604 if ac_fn_c_try_cpp "$LINENO"; then : 30605 # Broken: success on invalid input. 30606 continue 30607 else 30608 # Passes both tests. 30609 ac_preproc_ok=: 30610 break 30611 fi 30612 rm -f conftest.err conftest.i conftest.$ac_ext 30613 30614 done 30615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30616 rm -f conftest.i conftest.err conftest.$ac_ext 30617 if $ac_preproc_ok; then : 30618 break 30619 fi 30620 30621 done 30622 ac_cv_prog_CPP=$CPP 30623 30624 fi 30625 CPP=$ac_cv_prog_CPP 30626 else 30627 ac_cv_prog_CPP=$CPP 30628 fi 30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30630 $as_echo "$CPP" >&6; } 30631 ac_preproc_ok=false 30632 for ac_c_preproc_warn_flag in '' yes 30633 do 30634 # Use a header file that comes with gcc, so configuring glibc 30635 # with a fresh cross-compiler works. 30636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30637 # <limits.h> exists even on freestanding compilers. 30638 # On the NeXT, cc -E runs the code through the compiler's parser, 30639 # not just through cpp. "Syntax error" is here to catch this case. 30640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30641 /* end confdefs.h. */ 30642 #ifdef __STDC__ 30643 # include <limits.h> 30644 #else 30645 # include <assert.h> 30646 #endif 30647 Syntax error 30648 _ACEOF 30649 if ac_fn_c_try_cpp "$LINENO"; then : 30650 30651 else 30652 # Broken: fails on valid input. 30653 continue 30654 fi 30655 rm -f conftest.err conftest.i conftest.$ac_ext 30656 30657 # OK, works on sane cases. Now check whether nonexistent headers 30658 # can be detected and how. 30659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30660 /* end confdefs.h. */ 30661 #include <ac_nonexistent.h> 30662 _ACEOF 30663 if ac_fn_c_try_cpp "$LINENO"; then : 30664 # Broken: success on invalid input. 30665 continue 30666 else 30667 # Passes both tests. 30668 ac_preproc_ok=: 30669 break 30670 fi 30671 rm -f conftest.err conftest.i conftest.$ac_ext 30672 30673 done 30674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30675 rm -f conftest.i conftest.err conftest.$ac_ext 30676 if $ac_preproc_ok; then : 30677 30678 else 30679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30681 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30682 See \`config.log' for more details" "$LINENO" 5; } 30683 fi 30684 30685 ac_ext=cpp 30686 ac_cpp='$CXXCPP $CPPFLAGS' 30687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30690 30691 30692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30693 30694 # First separate the path from the arguments. This will split at the first 30695 # space. 30696 complete="$CPP" 30697 path="${complete%% *}" 30698 tmp="$complete EOL" 30699 arguments="${tmp#* }" 30700 30701 # Input might be given as Windows format, start by converting to 30702 # unix format. 30703 new_path=`$CYGPATH -u "$path"` 30704 30705 # Now try to locate executable using which 30706 new_path=`$WHICH "$new_path" 2> /dev/null` 30707 # bat and cmd files are not always considered executable in cygwin causing which 30708 # to not find them 30709 if test "x$new_path" = x \ 30710 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30711 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30712 new_path=`$CYGPATH -u "$path"` 30713 fi 30714 if test "x$new_path" = x; then 30715 # Oops. Which didn't find the executable. 30716 # The splitting of arguments from the executable at a space might have been incorrect, 30717 # since paths with space are more likely in Windows. Give it another try with the whole 30718 # argument. 30719 path="$complete" 30720 arguments="EOL" 30721 new_path=`$CYGPATH -u "$path"` 30722 new_path=`$WHICH "$new_path" 2> /dev/null` 30723 # bat and cmd files are not always considered executable in cygwin causing which 30724 # to not find them 30725 if test "x$new_path" = x \ 30726 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30727 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30728 new_path=`$CYGPATH -u "$path"` 30729 fi 30730 if test "x$new_path" = x; then 30731 # It's still not found. Now this is an unrecoverable error. 30732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30733 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30734 has_space=`$ECHO "$complete" | $GREP " "` 30735 if test "x$has_space" != x; then 30736 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30737 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30738 fi 30739 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30740 fi 30741 fi 30742 30743 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30744 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30745 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30746 # "foo.exe" is OK but "foo" is an error. 30747 # 30748 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30749 # It is also a way to make sure we got the proper file name for the real test later on. 30750 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30751 if test "x$test_shortpath" = x; then 30752 # Short path failed, file does not exist as specified. 30753 # Try adding .exe or .cmd 30754 if test -f "${new_path}.exe"; then 30755 input_to_shortpath="${new_path}.exe" 30756 elif test -f "${new_path}.cmd"; then 30757 input_to_shortpath="${new_path}.cmd" 30758 else 30759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30760 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30761 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30762 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30763 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30764 fi 30765 else 30766 input_to_shortpath="$new_path" 30767 fi 30768 30769 # Call helper function which possibly converts this using DOS-style short mode. 30770 # If so, the updated path is stored in $new_path. 30771 new_path="$input_to_shortpath" 30772 30773 input_path="$input_to_shortpath" 30774 # Check if we need to convert this using DOS-style short mode. If the path 30775 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30776 # take no chances and rewrite it. 30777 # Note: m4 eats our [], so we need to use [ and ] instead. 30778 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30779 if test "x$has_forbidden_chars" != x; then 30780 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30781 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30782 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30783 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30784 # Going to short mode and back again did indeed matter. Since short mode is 30785 # case insensitive, let's make it lowercase to improve readability. 30786 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30787 # Now convert it back to Unix-stile (cygpath) 30788 input_path=`$CYGPATH -u "$shortmode_path"` 30789 new_path="$input_path" 30790 fi 30791 fi 30792 30793 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30794 if test "x$test_cygdrive_prefix" = x; then 30795 # As a simple fix, exclude /usr/bin since it's not a real path. 30796 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30797 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30798 # a path prefixed by /cygdrive for fixpath to work. 30799 new_path="$CYGWIN_ROOT_PATH$input_path" 30800 fi 30801 fi 30802 30803 # remove trailing .exe if any 30804 new_path="${new_path/%.exe/}" 30805 30806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30807 30808 # First separate the path from the arguments. This will split at the first 30809 # space. 30810 complete="$CPP" 30811 path="${complete%% *}" 30812 tmp="$complete EOL" 30813 arguments="${tmp#* }" 30814 30815 # Input might be given as Windows format, start by converting to 30816 # unix format. 30817 new_path="$path" 30818 30819 windows_path="$new_path" 30820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30821 unix_path=`$CYGPATH -u "$windows_path"` 30822 new_path="$unix_path" 30823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30825 new_path="$unix_path" 30826 fi 30827 30828 30829 # Now try to locate executable using which 30830 new_path=`$WHICH "$new_path" 2> /dev/null` 30831 30832 if test "x$new_path" = x; then 30833 # Oops. Which didn't find the executable. 30834 # The splitting of arguments from the executable at a space might have been incorrect, 30835 # since paths with space are more likely in Windows. Give it another try with the whole 30836 # argument. 30837 path="$complete" 30838 arguments="EOL" 30839 new_path="$path" 30840 30841 windows_path="$new_path" 30842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30843 unix_path=`$CYGPATH -u "$windows_path"` 30844 new_path="$unix_path" 30845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30847 new_path="$unix_path" 30848 fi 30849 30850 30851 new_path=`$WHICH "$new_path" 2> /dev/null` 30852 30853 if test "x$new_path" = x; then 30854 # It's still not found. Now this is an unrecoverable error. 30855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30856 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30857 has_space=`$ECHO "$complete" | $GREP " "` 30858 if test "x$has_space" != x; then 30859 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30860 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30861 fi 30862 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30863 fi 30864 fi 30865 30866 # Now new_path has a complete unix path to the binary 30867 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30868 # Keep paths in /bin as-is, but remove trailing .exe if any 30869 new_path="${new_path/%.exe/}" 30870 # Do not save /bin paths to all_fixpath_prefixes! 30871 else 30872 # Not in mixed or Windows style, start by that. 30873 new_path=`cmd //c echo $new_path` 30874 30875 input_path="$new_path" 30876 # Check if we need to convert this using DOS-style short mode. If the path 30877 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30878 # take no chances and rewrite it. 30879 # Note: m4 eats our [], so we need to use [ and ] instead. 30880 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30881 if test "x$has_forbidden_chars" != x; then 30882 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30883 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30884 fi 30885 30886 # Output is in $new_path 30887 30888 windows_path="$new_path" 30889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30890 unix_path=`$CYGPATH -u "$windows_path"` 30891 new_path="$unix_path" 30892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30894 new_path="$unix_path" 30895 fi 30896 30897 # remove trailing .exe if any 30898 new_path="${new_path/%.exe/}" 30899 30900 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30901 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30902 fi 30903 30904 else 30905 # We're on a posix platform. Hooray! :) 30906 # First separate the path from the arguments. This will split at the first 30907 # space. 30908 complete="$CPP" 30909 path="${complete%% *}" 30910 tmp="$complete EOL" 30911 arguments="${tmp#* }" 30912 30913 # Cannot rely on the command "which" here since it doesn't always work. 30914 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30915 if test -z "$is_absolute_path"; then 30916 # Path to executable is not absolute. Find it. 30917 IFS_save="$IFS" 30918 IFS=: 30919 for p in $PATH; do 30920 if test -f "$p/$path" && test -x "$p/$path"; then 30921 new_path="$p/$path" 30922 break 30923 fi 30924 done 30925 IFS="$IFS_save" 30926 else 30927 # This is an absolute path, we can use it without further modifications. 30928 new_path="$path" 30929 fi 30930 30931 if test "x$new_path" = x; then 30932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30933 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30934 has_space=`$ECHO "$complete" | $GREP " "` 30935 if test "x$has_space" != x; then 30936 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30937 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30938 fi 30939 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30940 fi 30941 fi 30942 30943 # Now join together the path and the arguments once again 30944 if test "x$arguments" != xEOL; then 30945 new_complete="$new_path ${arguments% *}" 30946 else 30947 new_complete="$new_path" 30948 fi 30949 30950 if test "x$complete" != "x$new_complete"; then 30951 CPP="$new_complete" 30952 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30953 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30954 fi 30955 30956 ac_ext=cpp 30957 ac_cpp='$CXXCPP $CPPFLAGS' 30958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30962 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30963 if test -z "$CXXCPP"; then 30964 if ${ac_cv_prog_CXXCPP+:} false; then : 30965 $as_echo_n "(cached) " >&6 30966 else 30967 # Double quotes because CXXCPP needs to be expanded 30968 for CXXCPP in "$CXX -E" "/lib/cpp" 30969 do 30970 ac_preproc_ok=false 30971 for ac_cxx_preproc_warn_flag in '' yes 30972 do 30973 # Use a header file that comes with gcc, so configuring glibc 30974 # with a fresh cross-compiler works. 30975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30976 # <limits.h> exists even on freestanding compilers. 30977 # On the NeXT, cc -E runs the code through the compiler's parser, 30978 # not just through cpp. "Syntax error" is here to catch this case. 30979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30980 /* end confdefs.h. */ 30981 #ifdef __STDC__ 30982 # include <limits.h> 30983 #else 30984 # include <assert.h> 30985 #endif 30986 Syntax error 30987 _ACEOF 30988 if ac_fn_cxx_try_cpp "$LINENO"; then : 30989 30990 else 30991 # Broken: fails on valid input. 30992 continue 30993 fi 30994 rm -f conftest.err conftest.i conftest.$ac_ext 30995 30996 # OK, works on sane cases. Now check whether nonexistent headers 30997 # can be detected and how. 30998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30999 /* end confdefs.h. */ 31000 #include <ac_nonexistent.h> 31001 _ACEOF 31002 if ac_fn_cxx_try_cpp "$LINENO"; then : 31003 # Broken: success on invalid input. 31004 continue 31005 else 31006 # Passes both tests. 31007 ac_preproc_ok=: 31008 break 31009 fi 31010 rm -f conftest.err conftest.i conftest.$ac_ext 31011 31012 done 31013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31014 rm -f conftest.i conftest.err conftest.$ac_ext 31015 if $ac_preproc_ok; then : 31016 break 31017 fi 31018 31019 done 31020 ac_cv_prog_CXXCPP=$CXXCPP 31021 31022 fi 31023 CXXCPP=$ac_cv_prog_CXXCPP 31024 else 31025 ac_cv_prog_CXXCPP=$CXXCPP 31026 fi 31027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31028 $as_echo "$CXXCPP" >&6; } 31029 ac_preproc_ok=false 31030 for ac_cxx_preproc_warn_flag in '' yes 31031 do 31032 # Use a header file that comes with gcc, so configuring glibc 31033 # with a fresh cross-compiler works. 31034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31035 # <limits.h> exists even on freestanding compilers. 31036 # On the NeXT, cc -E runs the code through the compiler's parser, 31037 # not just through cpp. "Syntax error" is here to catch this case. 31038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31039 /* end confdefs.h. */ 31040 #ifdef __STDC__ 31041 # include <limits.h> 31042 #else 31043 # include <assert.h> 31044 #endif 31045 Syntax error 31046 _ACEOF 31047 if ac_fn_cxx_try_cpp "$LINENO"; then : 31048 31049 else 31050 # Broken: fails on valid input. 31051 continue 31052 fi 31053 rm -f conftest.err conftest.i conftest.$ac_ext 31054 31055 # OK, works on sane cases. Now check whether nonexistent headers 31056 # can be detected and how. 31057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31058 /* end confdefs.h. */ 31059 #include <ac_nonexistent.h> 31060 _ACEOF 31061 if ac_fn_cxx_try_cpp "$LINENO"; then : 31062 # Broken: success on invalid input. 31063 continue 31064 else 31065 # Passes both tests. 31066 ac_preproc_ok=: 31067 break 31068 fi 31069 rm -f conftest.err conftest.i conftest.$ac_ext 31070 31071 done 31072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31073 rm -f conftest.i conftest.err conftest.$ac_ext 31074 if $ac_preproc_ok; then : 31075 31076 else 31077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31079 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31080 See \`config.log' for more details" "$LINENO" 5; } 31081 fi 31082 31083 ac_ext=cpp 31084 ac_cpp='$CXXCPP $CPPFLAGS' 31085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31088 31089 31090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31091 31092 # First separate the path from the arguments. This will split at the first 31093 # space. 31094 complete="$CXXCPP" 31095 path="${complete%% *}" 31096 tmp="$complete EOL" 31097 arguments="${tmp#* }" 31098 31099 # Input might be given as Windows format, start by converting to 31100 # unix format. 31101 new_path=`$CYGPATH -u "$path"` 31102 31103 # Now try to locate executable using which 31104 new_path=`$WHICH "$new_path" 2> /dev/null` 31105 # bat and cmd files are not always considered executable in cygwin causing which 31106 # to not find them 31107 if test "x$new_path" = x \ 31108 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31109 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31110 new_path=`$CYGPATH -u "$path"` 31111 fi 31112 if test "x$new_path" = x; then 31113 # Oops. Which didn't find the executable. 31114 # The splitting of arguments from the executable at a space might have been incorrect, 31115 # since paths with space are more likely in Windows. Give it another try with the whole 31116 # argument. 31117 path="$complete" 31118 arguments="EOL" 31119 new_path=`$CYGPATH -u "$path"` 31120 new_path=`$WHICH "$new_path" 2> /dev/null` 31121 # bat and cmd files are not always considered executable in cygwin causing which 31122 # to not find them 31123 if test "x$new_path" = x \ 31124 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31125 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31126 new_path=`$CYGPATH -u "$path"` 31127 fi 31128 if test "x$new_path" = x; then 31129 # It's still not found. Now this is an unrecoverable error. 31130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31131 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31132 has_space=`$ECHO "$complete" | $GREP " "` 31133 if test "x$has_space" != x; then 31134 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31135 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31136 fi 31137 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31138 fi 31139 fi 31140 31141 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31142 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31143 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31144 # "foo.exe" is OK but "foo" is an error. 31145 # 31146 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31147 # It is also a way to make sure we got the proper file name for the real test later on. 31148 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31149 if test "x$test_shortpath" = x; then 31150 # Short path failed, file does not exist as specified. 31151 # Try adding .exe or .cmd 31152 if test -f "${new_path}.exe"; then 31153 input_to_shortpath="${new_path}.exe" 31154 elif test -f "${new_path}.cmd"; then 31155 input_to_shortpath="${new_path}.cmd" 31156 else 31157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31158 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31159 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31160 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31161 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31162 fi 31163 else 31164 input_to_shortpath="$new_path" 31165 fi 31166 31167 # Call helper function which possibly converts this using DOS-style short mode. 31168 # If so, the updated path is stored in $new_path. 31169 new_path="$input_to_shortpath" 31170 31171 input_path="$input_to_shortpath" 31172 # Check if we need to convert this using DOS-style short mode. If the path 31173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31174 # take no chances and rewrite it. 31175 # Note: m4 eats our [], so we need to use [ and ] instead. 31176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31177 if test "x$has_forbidden_chars" != x; then 31178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31179 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31180 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31181 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31182 # Going to short mode and back again did indeed matter. Since short mode is 31183 # case insensitive, let's make it lowercase to improve readability. 31184 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31185 # Now convert it back to Unix-stile (cygpath) 31186 input_path=`$CYGPATH -u "$shortmode_path"` 31187 new_path="$input_path" 31188 fi 31189 fi 31190 31191 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31192 if test "x$test_cygdrive_prefix" = x; then 31193 # As a simple fix, exclude /usr/bin since it's not a real path. 31194 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31195 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31196 # a path prefixed by /cygdrive for fixpath to work. 31197 new_path="$CYGWIN_ROOT_PATH$input_path" 31198 fi 31199 fi 31200 31201 # remove trailing .exe if any 31202 new_path="${new_path/%.exe/}" 31203 31204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31205 31206 # First separate the path from the arguments. This will split at the first 31207 # space. 31208 complete="$CXXCPP" 31209 path="${complete%% *}" 31210 tmp="$complete EOL" 31211 arguments="${tmp#* }" 31212 31213 # Input might be given as Windows format, start by converting to 31214 # unix format. 31215 new_path="$path" 31216 31217 windows_path="$new_path" 31218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31219 unix_path=`$CYGPATH -u "$windows_path"` 31220 new_path="$unix_path" 31221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31223 new_path="$unix_path" 31224 fi 31225 31226 31227 # Now try to locate executable using which 31228 new_path=`$WHICH "$new_path" 2> /dev/null` 31229 31230 if test "x$new_path" = x; then 31231 # Oops. Which didn't find the executable. 31232 # The splitting of arguments from the executable at a space might have been incorrect, 31233 # since paths with space are more likely in Windows. Give it another try with the whole 31234 # argument. 31235 path="$complete" 31236 arguments="EOL" 31237 new_path="$path" 31238 31239 windows_path="$new_path" 31240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31241 unix_path=`$CYGPATH -u "$windows_path"` 31242 new_path="$unix_path" 31243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31244 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31245 new_path="$unix_path" 31246 fi 31247 31248 31249 new_path=`$WHICH "$new_path" 2> /dev/null` 31250 31251 if test "x$new_path" = x; then 31252 # It's still not found. Now this is an unrecoverable error. 31253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31254 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31255 has_space=`$ECHO "$complete" | $GREP " "` 31256 if test "x$has_space" != x; then 31257 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31258 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31259 fi 31260 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31261 fi 31262 fi 31263 31264 # Now new_path has a complete unix path to the binary 31265 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31266 # Keep paths in /bin as-is, but remove trailing .exe if any 31267 new_path="${new_path/%.exe/}" 31268 # Do not save /bin paths to all_fixpath_prefixes! 31269 else 31270 # Not in mixed or Windows style, start by that. 31271 new_path=`cmd //c echo $new_path` 31272 31273 input_path="$new_path" 31274 # Check if we need to convert this using DOS-style short mode. If the path 31275 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31276 # take no chances and rewrite it. 31277 # Note: m4 eats our [], so we need to use [ and ] instead. 31278 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31279 if test "x$has_forbidden_chars" != x; then 31280 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31281 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31282 fi 31283 31284 # Output is in $new_path 31285 31286 windows_path="$new_path" 31287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31288 unix_path=`$CYGPATH -u "$windows_path"` 31289 new_path="$unix_path" 31290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31291 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31292 new_path="$unix_path" 31293 fi 31294 31295 # remove trailing .exe if any 31296 new_path="${new_path/%.exe/}" 31297 31298 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31299 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31300 fi 31301 31302 else 31303 # We're on a posix platform. Hooray! :) 31304 # First separate the path from the arguments. This will split at the first 31305 # space. 31306 complete="$CXXCPP" 31307 path="${complete%% *}" 31308 tmp="$complete EOL" 31309 arguments="${tmp#* }" 31310 31311 # Cannot rely on the command "which" here since it doesn't always work. 31312 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31313 if test -z "$is_absolute_path"; then 31314 # Path to executable is not absolute. Find it. 31315 IFS_save="$IFS" 31316 IFS=: 31317 for p in $PATH; do 31318 if test -f "$p/$path" && test -x "$p/$path"; then 31319 new_path="$p/$path" 31320 break 31321 fi 31322 done 31323 IFS="$IFS_save" 31324 else 31325 # This is an absolute path, we can use it without further modifications. 31326 new_path="$path" 31327 fi 31328 31329 if test "x$new_path" = x; then 31330 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31331 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31332 has_space=`$ECHO "$complete" | $GREP " "` 31333 if test "x$has_space" != x; then 31334 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31335 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31336 fi 31337 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31338 fi 31339 fi 31340 31341 # Now join together the path and the arguments once again 31342 if test "x$arguments" != xEOL; then 31343 new_complete="$new_path ${arguments% *}" 31344 else 31345 new_complete="$new_path" 31346 fi 31347 31348 if test "x$complete" != "x$new_complete"; then 31349 CXXCPP="$new_complete" 31350 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31351 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31352 fi 31353 31354 31355 # 31356 # Setup the linker (LD) 31357 # 31358 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31359 # In the Microsoft toolchain we have a separate LD command "link". 31360 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31361 # a cygwin program for something completely different. 31362 # Extract the first word of "link", so it can be a program name with args. 31363 set dummy link; ac_word=$2 31364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31365 $as_echo_n "checking for $ac_word... " >&6; } 31366 if ${ac_cv_prog_LD+:} false; then : 31367 $as_echo_n "(cached) " >&6 31368 else 31369 if test -n "$LD"; then 31370 ac_cv_prog_LD="$LD" # Let the user override the test. 31371 else 31372 ac_prog_rejected=no 31373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31374 for as_dir in $PATH 31375 do 31376 IFS=$as_save_IFS 31377 test -z "$as_dir" && as_dir=. 31378 for ac_exec_ext in '' $ac_executable_extensions; do 31379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31380 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31381 ac_prog_rejected=yes 31382 continue 31383 fi 31384 ac_cv_prog_LD="link" 31385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31386 break 2 31387 fi 31388 done 31389 done 31390 IFS=$as_save_IFS 31391 31392 if test $ac_prog_rejected = yes; then 31393 # We found a bogon in the path, so make sure we never use it. 31394 set dummy $ac_cv_prog_LD 31395 shift 31396 if test $# != 0; then 31397 # We chose a different compiler from the bogus one. 31398 # However, it has the same basename, so the bogon will be chosen 31399 # first if we set LD to just the basename; use the full file name. 31400 shift 31401 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31402 fi 31403 fi 31404 fi 31405 fi 31406 LD=$ac_cv_prog_LD 31407 if test -n "$LD"; then 31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31409 $as_echo "$LD" >&6; } 31410 else 31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31412 $as_echo "no" >&6; } 31413 fi 31414 31415 31416 31417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31418 31419 # First separate the path from the arguments. This will split at the first 31420 # space. 31421 complete="$LD" 31422 path="${complete%% *}" 31423 tmp="$complete EOL" 31424 arguments="${tmp#* }" 31425 31426 # Input might be given as Windows format, start by converting to 31427 # unix format. 31428 new_path=`$CYGPATH -u "$path"` 31429 31430 # Now try to locate executable using which 31431 new_path=`$WHICH "$new_path" 2> /dev/null` 31432 # bat and cmd files are not always considered executable in cygwin causing which 31433 # to not find them 31434 if test "x$new_path" = x \ 31435 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31436 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31437 new_path=`$CYGPATH -u "$path"` 31438 fi 31439 if test "x$new_path" = x; then 31440 # Oops. Which didn't find the executable. 31441 # The splitting of arguments from the executable at a space might have been incorrect, 31442 # since paths with space are more likely in Windows. Give it another try with the whole 31443 # argument. 31444 path="$complete" 31445 arguments="EOL" 31446 new_path=`$CYGPATH -u "$path"` 31447 new_path=`$WHICH "$new_path" 2> /dev/null` 31448 # bat and cmd files are not always considered executable in cygwin causing which 31449 # to not find them 31450 if test "x$new_path" = x \ 31451 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31452 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31453 new_path=`$CYGPATH -u "$path"` 31454 fi 31455 if test "x$new_path" = x; then 31456 # It's still not found. Now this is an unrecoverable error. 31457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31458 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31459 has_space=`$ECHO "$complete" | $GREP " "` 31460 if test "x$has_space" != x; then 31461 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31462 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31463 fi 31464 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31465 fi 31466 fi 31467 31468 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31469 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31470 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31471 # "foo.exe" is OK but "foo" is an error. 31472 # 31473 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31474 # It is also a way to make sure we got the proper file name for the real test later on. 31475 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31476 if test "x$test_shortpath" = x; then 31477 # Short path failed, file does not exist as specified. 31478 # Try adding .exe or .cmd 31479 if test -f "${new_path}.exe"; then 31480 input_to_shortpath="${new_path}.exe" 31481 elif test -f "${new_path}.cmd"; then 31482 input_to_shortpath="${new_path}.cmd" 31483 else 31484 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31485 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31486 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31487 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31488 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31489 fi 31490 else 31491 input_to_shortpath="$new_path" 31492 fi 31493 31494 # Call helper function which possibly converts this using DOS-style short mode. 31495 # If so, the updated path is stored in $new_path. 31496 new_path="$input_to_shortpath" 31497 31498 input_path="$input_to_shortpath" 31499 # Check if we need to convert this using DOS-style short mode. If the path 31500 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31501 # take no chances and rewrite it. 31502 # Note: m4 eats our [], so we need to use [ and ] instead. 31503 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31504 if test "x$has_forbidden_chars" != x; then 31505 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31506 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31507 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31508 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31509 # Going to short mode and back again did indeed matter. Since short mode is 31510 # case insensitive, let's make it lowercase to improve readability. 31511 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31512 # Now convert it back to Unix-stile (cygpath) 31513 input_path=`$CYGPATH -u "$shortmode_path"` 31514 new_path="$input_path" 31515 fi 31516 fi 31517 31518 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31519 if test "x$test_cygdrive_prefix" = x; then 31520 # As a simple fix, exclude /usr/bin since it's not a real path. 31521 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31522 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31523 # a path prefixed by /cygdrive for fixpath to work. 31524 new_path="$CYGWIN_ROOT_PATH$input_path" 31525 fi 31526 fi 31527 31528 # remove trailing .exe if any 31529 new_path="${new_path/%.exe/}" 31530 31531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31532 31533 # First separate the path from the arguments. This will split at the first 31534 # space. 31535 complete="$LD" 31536 path="${complete%% *}" 31537 tmp="$complete EOL" 31538 arguments="${tmp#* }" 31539 31540 # Input might be given as Windows format, start by converting to 31541 # unix format. 31542 new_path="$path" 31543 31544 windows_path="$new_path" 31545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31546 unix_path=`$CYGPATH -u "$windows_path"` 31547 new_path="$unix_path" 31548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31550 new_path="$unix_path" 31551 fi 31552 31553 31554 # Now try to locate executable using which 31555 new_path=`$WHICH "$new_path" 2> /dev/null` 31556 31557 if test "x$new_path" = x; then 31558 # Oops. Which didn't find the executable. 31559 # The splitting of arguments from the executable at a space might have been incorrect, 31560 # since paths with space are more likely in Windows. Give it another try with the whole 31561 # argument. 31562 path="$complete" 31563 arguments="EOL" 31564 new_path="$path" 31565 31566 windows_path="$new_path" 31567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31568 unix_path=`$CYGPATH -u "$windows_path"` 31569 new_path="$unix_path" 31570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31572 new_path="$unix_path" 31573 fi 31574 31575 31576 new_path=`$WHICH "$new_path" 2> /dev/null` 31577 31578 if test "x$new_path" = x; then 31579 # It's still not found. Now this is an unrecoverable error. 31580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31581 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31582 has_space=`$ECHO "$complete" | $GREP " "` 31583 if test "x$has_space" != x; then 31584 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31585 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31586 fi 31587 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31588 fi 31589 fi 31590 31591 # Now new_path has a complete unix path to the binary 31592 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31593 # Keep paths in /bin as-is, but remove trailing .exe if any 31594 new_path="${new_path/%.exe/}" 31595 # Do not save /bin paths to all_fixpath_prefixes! 31596 else 31597 # Not in mixed or Windows style, start by that. 31598 new_path=`cmd //c echo $new_path` 31599 31600 input_path="$new_path" 31601 # Check if we need to convert this using DOS-style short mode. If the path 31602 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31603 # take no chances and rewrite it. 31604 # Note: m4 eats our [], so we need to use [ and ] instead. 31605 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31606 if test "x$has_forbidden_chars" != x; then 31607 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31608 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31609 fi 31610 31611 # Output is in $new_path 31612 31613 windows_path="$new_path" 31614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31615 unix_path=`$CYGPATH -u "$windows_path"` 31616 new_path="$unix_path" 31617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31619 new_path="$unix_path" 31620 fi 31621 31622 # remove trailing .exe if any 31623 new_path="${new_path/%.exe/}" 31624 31625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31627 fi 31628 31629 else 31630 # We're on a posix platform. Hooray! :) 31631 # First separate the path from the arguments. This will split at the first 31632 # space. 31633 complete="$LD" 31634 path="${complete%% *}" 31635 tmp="$complete EOL" 31636 arguments="${tmp#* }" 31637 31638 # Cannot rely on the command "which" here since it doesn't always work. 31639 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31640 if test -z "$is_absolute_path"; then 31641 # Path to executable is not absolute. Find it. 31642 IFS_save="$IFS" 31643 IFS=: 31644 for p in $PATH; do 31645 if test -f "$p/$path" && test -x "$p/$path"; then 31646 new_path="$p/$path" 31647 break 31648 fi 31649 done 31650 IFS="$IFS_save" 31651 else 31652 # This is an absolute path, we can use it without further modifications. 31653 new_path="$path" 31654 fi 31655 31656 if test "x$new_path" = x; then 31657 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31658 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31659 has_space=`$ECHO "$complete" | $GREP " "` 31660 if test "x$has_space" != x; then 31661 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31662 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31663 fi 31664 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31665 fi 31666 fi 31667 31668 # Now join together the path and the arguments once again 31669 if test "x$arguments" != xEOL; then 31670 new_complete="$new_path ${arguments% *}" 31671 else 31672 new_complete="$new_path" 31673 fi 31674 31675 if test "x$complete" != "x$new_complete"; then 31676 LD="$new_complete" 31677 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31678 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31679 fi 31680 31681 # Verify that we indeed succeeded with this trick. 31682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31683 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31684 "$LD" --version > /dev/null 31685 if test $? -eq 0 ; then 31686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31687 $as_echo "no" >&6; } 31688 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31689 else 31690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31691 $as_echo "yes" >&6; } 31692 fi 31693 LDCXX="$LD" 31694 else 31695 # All other toolchains use the compiler to link. 31696 LD="$CC" 31697 LDCXX="$CXX" 31698 fi 31699 31700 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31701 31702 31703 # 31704 # Setup the assembler (AS) 31705 # 31706 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31707 # FIXME: should this really be solaris, or solstudio? 31708 31709 31710 # Publish this variable in the help. 31711 31712 31713 if test "x$AS" = x; then 31714 # The variable is not set by user, try to locate tool using the code snippet 31715 for ac_prog in as 31716 do 31717 # Extract the first word of "$ac_prog", so it can be a program name with args. 31718 set dummy $ac_prog; ac_word=$2 31719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31720 $as_echo_n "checking for $ac_word... " >&6; } 31721 if ${ac_cv_path_AS+:} false; then : 31722 $as_echo_n "(cached) " >&6 31723 else 31724 case $AS in 31725 [\\/]* | ?:[\\/]*) 31726 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31727 ;; 31728 *) 31729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31730 for as_dir in $PATH 31731 do 31732 IFS=$as_save_IFS 31733 test -z "$as_dir" && as_dir=. 31734 for ac_exec_ext in '' $ac_executable_extensions; do 31735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31736 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31738 break 2 31739 fi 31740 done 31741 done 31742 IFS=$as_save_IFS 31743 31744 ;; 31745 esac 31746 fi 31747 AS=$ac_cv_path_AS 31748 if test -n "$AS"; then 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31750 $as_echo "$AS" >&6; } 31751 else 31752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31753 $as_echo "no" >&6; } 31754 fi 31755 31756 31757 test -n "$AS" && break 31758 done 31759 31760 else 31761 # The variable is set, but is it from the command line or the environment? 31762 31763 # Try to remove the string !AS! from our list. 31764 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31765 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31766 # If it failed, the variable was not from the command line. Ignore it, 31767 # but warn the user (except for BASH, which is always set by the calling BASH). 31768 if test "xAS" != xBASH; then 31769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31770 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31771 fi 31772 # Try to locate tool using the code snippet 31773 for ac_prog in as 31774 do 31775 # Extract the first word of "$ac_prog", so it can be a program name with args. 31776 set dummy $ac_prog; ac_word=$2 31777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31778 $as_echo_n "checking for $ac_word... " >&6; } 31779 if ${ac_cv_path_AS+:} false; then : 31780 $as_echo_n "(cached) " >&6 31781 else 31782 case $AS in 31783 [\\/]* | ?:[\\/]*) 31784 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31785 ;; 31786 *) 31787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31788 for as_dir in $PATH 31789 do 31790 IFS=$as_save_IFS 31791 test -z "$as_dir" && as_dir=. 31792 for ac_exec_ext in '' $ac_executable_extensions; do 31793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31794 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31796 break 2 31797 fi 31798 done 31799 done 31800 IFS=$as_save_IFS 31801 31802 ;; 31803 esac 31804 fi 31805 AS=$ac_cv_path_AS 31806 if test -n "$AS"; then 31807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31808 $as_echo "$AS" >&6; } 31809 else 31810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31811 $as_echo "no" >&6; } 31812 fi 31813 31814 31815 test -n "$AS" && break 31816 done 31817 31818 else 31819 # If it succeeded, then it was overridden by the user. We will use it 31820 # for the tool. 31821 31822 # First remove it from the list of overridden variables, so we can test 31823 # for unknown variables in the end. 31824 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31825 31826 # Check if the provided tool contains a complete path. 31827 tool_specified="$AS" 31828 tool_basename="${tool_specified##*/}" 31829 if test "x$tool_basename" = "x$tool_specified"; then 31830 # A command without a complete path is provided, search $PATH. 31831 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31832 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31833 # Extract the first word of "$tool_basename", so it can be a program name with args. 31834 set dummy $tool_basename; ac_word=$2 31835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31836 $as_echo_n "checking for $ac_word... " >&6; } 31837 if ${ac_cv_path_AS+:} false; then : 31838 $as_echo_n "(cached) " >&6 31839 else 31840 case $AS in 31841 [\\/]* | ?:[\\/]*) 31842 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31843 ;; 31844 *) 31845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31846 for as_dir in $PATH 31847 do 31848 IFS=$as_save_IFS 31849 test -z "$as_dir" && as_dir=. 31850 for ac_exec_ext in '' $ac_executable_extensions; do 31851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31852 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31854 break 2 31855 fi 31856 done 31857 done 31858 IFS=$as_save_IFS 31859 31860 ;; 31861 esac 31862 fi 31863 AS=$ac_cv_path_AS 31864 if test -n "$AS"; then 31865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31866 $as_echo "$AS" >&6; } 31867 else 31868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31869 $as_echo "no" >&6; } 31870 fi 31871 31872 31873 if test "x$AS" = x; then 31874 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31875 fi 31876 else 31877 # Otherwise we believe it is a complete path. Use it as it is. 31878 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31879 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31881 $as_echo_n "checking for AS... " >&6; } 31882 if test ! -x "$tool_specified"; then 31883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31884 $as_echo "not found" >&6; } 31885 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31886 fi 31887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31888 $as_echo "$tool_specified" >&6; } 31889 fi 31890 fi 31891 fi 31892 31893 31894 31895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31896 31897 # First separate the path from the arguments. This will split at the first 31898 # space. 31899 complete="$AS" 31900 path="${complete%% *}" 31901 tmp="$complete EOL" 31902 arguments="${tmp#* }" 31903 31904 # Input might be given as Windows format, start by converting to 31905 # unix format. 31906 new_path=`$CYGPATH -u "$path"` 31907 31908 # Now try to locate executable using which 31909 new_path=`$WHICH "$new_path" 2> /dev/null` 31910 # bat and cmd files are not always considered executable in cygwin causing which 31911 # to not find them 31912 if test "x$new_path" = x \ 31913 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31914 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31915 new_path=`$CYGPATH -u "$path"` 31916 fi 31917 if test "x$new_path" = x; then 31918 # Oops. Which didn't find the executable. 31919 # The splitting of arguments from the executable at a space might have been incorrect, 31920 # since paths with space are more likely in Windows. Give it another try with the whole 31921 # argument. 31922 path="$complete" 31923 arguments="EOL" 31924 new_path=`$CYGPATH -u "$path"` 31925 new_path=`$WHICH "$new_path" 2> /dev/null` 31926 # bat and cmd files are not always considered executable in cygwin causing which 31927 # to not find them 31928 if test "x$new_path" = x \ 31929 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31930 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31931 new_path=`$CYGPATH -u "$path"` 31932 fi 31933 if test "x$new_path" = x; then 31934 # It's still not found. Now this is an unrecoverable error. 31935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31936 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31937 has_space=`$ECHO "$complete" | $GREP " "` 31938 if test "x$has_space" != x; then 31939 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31940 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31941 fi 31942 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31943 fi 31944 fi 31945 31946 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31947 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31948 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31949 # "foo.exe" is OK but "foo" is an error. 31950 # 31951 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31952 # It is also a way to make sure we got the proper file name for the real test later on. 31953 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31954 if test "x$test_shortpath" = x; then 31955 # Short path failed, file does not exist as specified. 31956 # Try adding .exe or .cmd 31957 if test -f "${new_path}.exe"; then 31958 input_to_shortpath="${new_path}.exe" 31959 elif test -f "${new_path}.cmd"; then 31960 input_to_shortpath="${new_path}.cmd" 31961 else 31962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31963 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31964 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31965 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31966 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31967 fi 31968 else 31969 input_to_shortpath="$new_path" 31970 fi 31971 31972 # Call helper function which possibly converts this using DOS-style short mode. 31973 # If so, the updated path is stored in $new_path. 31974 new_path="$input_to_shortpath" 31975 31976 input_path="$input_to_shortpath" 31977 # Check if we need to convert this using DOS-style short mode. If the path 31978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31979 # take no chances and rewrite it. 31980 # Note: m4 eats our [], so we need to use [ and ] instead. 31981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31982 if test "x$has_forbidden_chars" != x; then 31983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31984 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31985 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31986 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31987 # Going to short mode and back again did indeed matter. Since short mode is 31988 # case insensitive, let's make it lowercase to improve readability. 31989 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31990 # Now convert it back to Unix-stile (cygpath) 31991 input_path=`$CYGPATH -u "$shortmode_path"` 31992 new_path="$input_path" 31993 fi 31994 fi 31995 31996 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31997 if test "x$test_cygdrive_prefix" = x; then 31998 # As a simple fix, exclude /usr/bin since it's not a real path. 31999 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32000 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32001 # a path prefixed by /cygdrive for fixpath to work. 32002 new_path="$CYGWIN_ROOT_PATH$input_path" 32003 fi 32004 fi 32005 32006 # remove trailing .exe if any 32007 new_path="${new_path/%.exe/}" 32008 32009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32010 32011 # First separate the path from the arguments. This will split at the first 32012 # space. 32013 complete="$AS" 32014 path="${complete%% *}" 32015 tmp="$complete EOL" 32016 arguments="${tmp#* }" 32017 32018 # Input might be given as Windows format, start by converting to 32019 # unix format. 32020 new_path="$path" 32021 32022 windows_path="$new_path" 32023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32024 unix_path=`$CYGPATH -u "$windows_path"` 32025 new_path="$unix_path" 32026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32028 new_path="$unix_path" 32029 fi 32030 32031 32032 # Now try to locate executable using which 32033 new_path=`$WHICH "$new_path" 2> /dev/null` 32034 32035 if test "x$new_path" = x; then 32036 # Oops. Which didn't find the executable. 32037 # The splitting of arguments from the executable at a space might have been incorrect, 32038 # since paths with space are more likely in Windows. Give it another try with the whole 32039 # argument. 32040 path="$complete" 32041 arguments="EOL" 32042 new_path="$path" 32043 32044 windows_path="$new_path" 32045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32046 unix_path=`$CYGPATH -u "$windows_path"` 32047 new_path="$unix_path" 32048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32050 new_path="$unix_path" 32051 fi 32052 32053 32054 new_path=`$WHICH "$new_path" 2> /dev/null` 32055 32056 if test "x$new_path" = x; then 32057 # It's still not found. Now this is an unrecoverable error. 32058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32059 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32060 has_space=`$ECHO "$complete" | $GREP " "` 32061 if test "x$has_space" != x; then 32062 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32063 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32064 fi 32065 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32066 fi 32067 fi 32068 32069 # Now new_path has a complete unix path to the binary 32070 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32071 # Keep paths in /bin as-is, but remove trailing .exe if any 32072 new_path="${new_path/%.exe/}" 32073 # Do not save /bin paths to all_fixpath_prefixes! 32074 else 32075 # Not in mixed or Windows style, start by that. 32076 new_path=`cmd //c echo $new_path` 32077 32078 input_path="$new_path" 32079 # Check if we need to convert this using DOS-style short mode. If the path 32080 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32081 # take no chances and rewrite it. 32082 # Note: m4 eats our [], so we need to use [ and ] instead. 32083 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32084 if test "x$has_forbidden_chars" != x; then 32085 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32086 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32087 fi 32088 32089 # Output is in $new_path 32090 32091 windows_path="$new_path" 32092 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32093 unix_path=`$CYGPATH -u "$windows_path"` 32094 new_path="$unix_path" 32095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32096 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32097 new_path="$unix_path" 32098 fi 32099 32100 # remove trailing .exe if any 32101 new_path="${new_path/%.exe/}" 32102 32103 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32104 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32105 fi 32106 32107 else 32108 # We're on a posix platform. Hooray! :) 32109 # First separate the path from the arguments. This will split at the first 32110 # space. 32111 complete="$AS" 32112 path="${complete%% *}" 32113 tmp="$complete EOL" 32114 arguments="${tmp#* }" 32115 32116 # Cannot rely on the command "which" here since it doesn't always work. 32117 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32118 if test -z "$is_absolute_path"; then 32119 # Path to executable is not absolute. Find it. 32120 IFS_save="$IFS" 32121 IFS=: 32122 for p in $PATH; do 32123 if test -f "$p/$path" && test -x "$p/$path"; then 32124 new_path="$p/$path" 32125 break 32126 fi 32127 done 32128 IFS="$IFS_save" 32129 else 32130 # This is an absolute path, we can use it without further modifications. 32131 new_path="$path" 32132 fi 32133 32134 if test "x$new_path" = x; then 32135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32136 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32137 has_space=`$ECHO "$complete" | $GREP " "` 32138 if test "x$has_space" != x; then 32139 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32140 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32141 fi 32142 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32143 fi 32144 fi 32145 32146 # Now join together the path and the arguments once again 32147 if test "x$arguments" != xEOL; then 32148 new_complete="$new_path ${arguments% *}" 32149 else 32150 new_complete="$new_path" 32151 fi 32152 32153 if test "x$complete" != "x$new_complete"; then 32154 AS="$new_complete" 32155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32156 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32157 fi 32158 32159 else 32160 # FIXME: is this correct for microsoft? 32161 AS="$CC -c" 32162 fi 32163 32164 32165 # 32166 # Setup the archiver (AR) 32167 # 32168 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32169 # The corresponding ar tool is lib.exe (used to create static libraries) 32170 # Extract the first word of "lib", so it can be a program name with args. 32171 set dummy lib; ac_word=$2 32172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32173 $as_echo_n "checking for $ac_word... " >&6; } 32174 if ${ac_cv_prog_AR+:} false; then : 32175 $as_echo_n "(cached) " >&6 32176 else 32177 if test -n "$AR"; then 32178 ac_cv_prog_AR="$AR" # Let the user override the test. 32179 else 32180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32181 for as_dir in $PATH 32182 do 32183 IFS=$as_save_IFS 32184 test -z "$as_dir" && as_dir=. 32185 for ac_exec_ext in '' $ac_executable_extensions; do 32186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32187 ac_cv_prog_AR="lib" 32188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32189 break 2 32190 fi 32191 done 32192 done 32193 IFS=$as_save_IFS 32194 32195 fi 32196 fi 32197 AR=$ac_cv_prog_AR 32198 if test -n "$AR"; then 32199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32200 $as_echo "$AR" >&6; } 32201 else 32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32203 $as_echo "no" >&6; } 32204 fi 32205 32206 32207 else 32208 32209 32210 # Publish this variable in the help. 32211 32212 32213 if test "x$AR" = x; then 32214 # The variable is not set by user, try to locate tool using the code snippet 32215 if test -n "$ac_tool_prefix"; then 32216 for ac_prog in ar 32217 do 32218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32221 $as_echo_n "checking for $ac_word... " >&6; } 32222 if ${ac_cv_prog_AR+:} false; then : 32223 $as_echo_n "(cached) " >&6 32224 else 32225 if test -n "$AR"; then 32226 ac_cv_prog_AR="$AR" # Let the user override the test. 32227 else 32228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32229 for as_dir in $PATH 32230 do 32231 IFS=$as_save_IFS 32232 test -z "$as_dir" && as_dir=. 32233 for ac_exec_ext in '' $ac_executable_extensions; do 32234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32235 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32237 break 2 32238 fi 32239 done 32240 done 32241 IFS=$as_save_IFS 32242 32243 fi 32244 fi 32245 AR=$ac_cv_prog_AR 32246 if test -n "$AR"; then 32247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32248 $as_echo "$AR" >&6; } 32249 else 32250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32251 $as_echo "no" >&6; } 32252 fi 32253 32254 32255 test -n "$AR" && break 32256 done 32257 fi 32258 if test -z "$AR"; then 32259 ac_ct_AR=$AR 32260 for ac_prog in ar 32261 do 32262 # Extract the first word of "$ac_prog", so it can be a program name with args. 32263 set dummy $ac_prog; ac_word=$2 32264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32265 $as_echo_n "checking for $ac_word... " >&6; } 32266 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32267 $as_echo_n "(cached) " >&6 32268 else 32269 if test -n "$ac_ct_AR"; then 32270 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32271 else 32272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32273 for as_dir in $PATH 32274 do 32275 IFS=$as_save_IFS 32276 test -z "$as_dir" && as_dir=. 32277 for ac_exec_ext in '' $ac_executable_extensions; do 32278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32279 ac_cv_prog_ac_ct_AR="$ac_prog" 32280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32281 break 2 32282 fi 32283 done 32284 done 32285 IFS=$as_save_IFS 32286 32287 fi 32288 fi 32289 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32290 if test -n "$ac_ct_AR"; then 32291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32292 $as_echo "$ac_ct_AR" >&6; } 32293 else 32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32295 $as_echo "no" >&6; } 32296 fi 32297 32298 32299 test -n "$ac_ct_AR" && break 32300 done 32301 32302 if test "x$ac_ct_AR" = x; then 32303 AR="" 32304 else 32305 case $cross_compiling:$ac_tool_warned in 32306 yes:) 32307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32309 ac_tool_warned=yes ;; 32310 esac 32311 AR=$ac_ct_AR 32312 fi 32313 fi 32314 32315 else 32316 # The variable is set, but is it from the command line or the environment? 32317 32318 # Try to remove the string !AR! from our list. 32319 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32320 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32321 # If it failed, the variable was not from the command line. Ignore it, 32322 # but warn the user (except for BASH, which is always set by the calling BASH). 32323 if test "xAR" != xBASH; then 32324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32325 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32326 fi 32327 # Try to locate tool using the code snippet 32328 if test -n "$ac_tool_prefix"; then 32329 for ac_prog in ar 32330 do 32331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32334 $as_echo_n "checking for $ac_word... " >&6; } 32335 if ${ac_cv_prog_AR+:} false; then : 32336 $as_echo_n "(cached) " >&6 32337 else 32338 if test -n "$AR"; then 32339 ac_cv_prog_AR="$AR" # Let the user override the test. 32340 else 32341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32342 for as_dir in $PATH 32343 do 32344 IFS=$as_save_IFS 32345 test -z "$as_dir" && as_dir=. 32346 for ac_exec_ext in '' $ac_executable_extensions; do 32347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32348 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32350 break 2 32351 fi 32352 done 32353 done 32354 IFS=$as_save_IFS 32355 32356 fi 32357 fi 32358 AR=$ac_cv_prog_AR 32359 if test -n "$AR"; then 32360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32361 $as_echo "$AR" >&6; } 32362 else 32363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32364 $as_echo "no" >&6; } 32365 fi 32366 32367 32368 test -n "$AR" && break 32369 done 32370 fi 32371 if test -z "$AR"; then 32372 ac_ct_AR=$AR 32373 for ac_prog in ar 32374 do 32375 # Extract the first word of "$ac_prog", so it can be a program name with args. 32376 set dummy $ac_prog; ac_word=$2 32377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32378 $as_echo_n "checking for $ac_word... " >&6; } 32379 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32380 $as_echo_n "(cached) " >&6 32381 else 32382 if test -n "$ac_ct_AR"; then 32383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32384 else 32385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32386 for as_dir in $PATH 32387 do 32388 IFS=$as_save_IFS 32389 test -z "$as_dir" && as_dir=. 32390 for ac_exec_ext in '' $ac_executable_extensions; do 32391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32392 ac_cv_prog_ac_ct_AR="$ac_prog" 32393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32394 break 2 32395 fi 32396 done 32397 done 32398 IFS=$as_save_IFS 32399 32400 fi 32401 fi 32402 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32403 if test -n "$ac_ct_AR"; then 32404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32405 $as_echo "$ac_ct_AR" >&6; } 32406 else 32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32408 $as_echo "no" >&6; } 32409 fi 32410 32411 32412 test -n "$ac_ct_AR" && break 32413 done 32414 32415 if test "x$ac_ct_AR" = x; then 32416 AR="" 32417 else 32418 case $cross_compiling:$ac_tool_warned in 32419 yes:) 32420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32422 ac_tool_warned=yes ;; 32423 esac 32424 AR=$ac_ct_AR 32425 fi 32426 fi 32427 32428 else 32429 # If it succeeded, then it was overridden by the user. We will use it 32430 # for the tool. 32431 32432 # First remove it from the list of overridden variables, so we can test 32433 # for unknown variables in the end. 32434 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32435 32436 # Check if the provided tool contains a complete path. 32437 tool_specified="$AR" 32438 tool_basename="${tool_specified##*/}" 32439 if test "x$tool_basename" = "x$tool_specified"; then 32440 # A command without a complete path is provided, search $PATH. 32441 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32442 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32443 # Extract the first word of "$tool_basename", so it can be a program name with args. 32444 set dummy $tool_basename; ac_word=$2 32445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32446 $as_echo_n "checking for $ac_word... " >&6; } 32447 if ${ac_cv_path_AR+:} false; then : 32448 $as_echo_n "(cached) " >&6 32449 else 32450 case $AR in 32451 [\\/]* | ?:[\\/]*) 32452 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32453 ;; 32454 *) 32455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32456 for as_dir in $PATH 32457 do 32458 IFS=$as_save_IFS 32459 test -z "$as_dir" && as_dir=. 32460 for ac_exec_ext in '' $ac_executable_extensions; do 32461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32462 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32464 break 2 32465 fi 32466 done 32467 done 32468 IFS=$as_save_IFS 32469 32470 ;; 32471 esac 32472 fi 32473 AR=$ac_cv_path_AR 32474 if test -n "$AR"; then 32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32476 $as_echo "$AR" >&6; } 32477 else 32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32479 $as_echo "no" >&6; } 32480 fi 32481 32482 32483 if test "x$AR" = x; then 32484 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32485 fi 32486 else 32487 # Otherwise we believe it is a complete path. Use it as it is. 32488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32489 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32491 $as_echo_n "checking for AR... " >&6; } 32492 if test ! -x "$tool_specified"; then 32493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32494 $as_echo "not found" >&6; } 32495 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32496 fi 32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32498 $as_echo "$tool_specified" >&6; } 32499 fi 32500 fi 32501 fi 32502 32503 32504 fi 32505 32506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32507 32508 # First separate the path from the arguments. This will split at the first 32509 # space. 32510 complete="$AR" 32511 path="${complete%% *}" 32512 tmp="$complete EOL" 32513 arguments="${tmp#* }" 32514 32515 # Input might be given as Windows format, start by converting to 32516 # unix format. 32517 new_path=`$CYGPATH -u "$path"` 32518 32519 # Now try to locate executable using which 32520 new_path=`$WHICH "$new_path" 2> /dev/null` 32521 # bat and cmd files are not always considered executable in cygwin causing which 32522 # to not find them 32523 if test "x$new_path" = x \ 32524 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32525 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32526 new_path=`$CYGPATH -u "$path"` 32527 fi 32528 if test "x$new_path" = x; then 32529 # Oops. Which didn't find the executable. 32530 # The splitting of arguments from the executable at a space might have been incorrect, 32531 # since paths with space are more likely in Windows. Give it another try with the whole 32532 # argument. 32533 path="$complete" 32534 arguments="EOL" 32535 new_path=`$CYGPATH -u "$path"` 32536 new_path=`$WHICH "$new_path" 2> /dev/null` 32537 # bat and cmd files are not always considered executable in cygwin causing which 32538 # to not find them 32539 if test "x$new_path" = x \ 32540 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32541 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32542 new_path=`$CYGPATH -u "$path"` 32543 fi 32544 if test "x$new_path" = x; then 32545 # It's still not found. Now this is an unrecoverable error. 32546 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32547 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32548 has_space=`$ECHO "$complete" | $GREP " "` 32549 if test "x$has_space" != x; then 32550 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32551 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32552 fi 32553 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32554 fi 32555 fi 32556 32557 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32558 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32559 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32560 # "foo.exe" is OK but "foo" is an error. 32561 # 32562 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32563 # It is also a way to make sure we got the proper file name for the real test later on. 32564 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32565 if test "x$test_shortpath" = x; then 32566 # Short path failed, file does not exist as specified. 32567 # Try adding .exe or .cmd 32568 if test -f "${new_path}.exe"; then 32569 input_to_shortpath="${new_path}.exe" 32570 elif test -f "${new_path}.cmd"; then 32571 input_to_shortpath="${new_path}.cmd" 32572 else 32573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32574 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32575 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32576 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32577 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32578 fi 32579 else 32580 input_to_shortpath="$new_path" 32581 fi 32582 32583 # Call helper function which possibly converts this using DOS-style short mode. 32584 # If so, the updated path is stored in $new_path. 32585 new_path="$input_to_shortpath" 32586 32587 input_path="$input_to_shortpath" 32588 # Check if we need to convert this using DOS-style short mode. If the path 32589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32590 # take no chances and rewrite it. 32591 # Note: m4 eats our [], so we need to use [ and ] instead. 32592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32593 if test "x$has_forbidden_chars" != x; then 32594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32595 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32596 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32597 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32598 # Going to short mode and back again did indeed matter. Since short mode is 32599 # case insensitive, let's make it lowercase to improve readability. 32600 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32601 # Now convert it back to Unix-stile (cygpath) 32602 input_path=`$CYGPATH -u "$shortmode_path"` 32603 new_path="$input_path" 32604 fi 32605 fi 32606 32607 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32608 if test "x$test_cygdrive_prefix" = x; then 32609 # As a simple fix, exclude /usr/bin since it's not a real path. 32610 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32611 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32612 # a path prefixed by /cygdrive for fixpath to work. 32613 new_path="$CYGWIN_ROOT_PATH$input_path" 32614 fi 32615 fi 32616 32617 # remove trailing .exe if any 32618 new_path="${new_path/%.exe/}" 32619 32620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32621 32622 # First separate the path from the arguments. This will split at the first 32623 # space. 32624 complete="$AR" 32625 path="${complete%% *}" 32626 tmp="$complete EOL" 32627 arguments="${tmp#* }" 32628 32629 # Input might be given as Windows format, start by converting to 32630 # unix format. 32631 new_path="$path" 32632 32633 windows_path="$new_path" 32634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32635 unix_path=`$CYGPATH -u "$windows_path"` 32636 new_path="$unix_path" 32637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32639 new_path="$unix_path" 32640 fi 32641 32642 32643 # Now try to locate executable using which 32644 new_path=`$WHICH "$new_path" 2> /dev/null` 32645 32646 if test "x$new_path" = x; then 32647 # Oops. Which didn't find the executable. 32648 # The splitting of arguments from the executable at a space might have been incorrect, 32649 # since paths with space are more likely in Windows. Give it another try with the whole 32650 # argument. 32651 path="$complete" 32652 arguments="EOL" 32653 new_path="$path" 32654 32655 windows_path="$new_path" 32656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32657 unix_path=`$CYGPATH -u "$windows_path"` 32658 new_path="$unix_path" 32659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32661 new_path="$unix_path" 32662 fi 32663 32664 32665 new_path=`$WHICH "$new_path" 2> /dev/null` 32666 32667 if test "x$new_path" = x; then 32668 # It's still not found. Now this is an unrecoverable error. 32669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32670 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32671 has_space=`$ECHO "$complete" | $GREP " "` 32672 if test "x$has_space" != x; then 32673 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32674 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32675 fi 32676 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32677 fi 32678 fi 32679 32680 # Now new_path has a complete unix path to the binary 32681 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32682 # Keep paths in /bin as-is, but remove trailing .exe if any 32683 new_path="${new_path/%.exe/}" 32684 # Do not save /bin paths to all_fixpath_prefixes! 32685 else 32686 # Not in mixed or Windows style, start by that. 32687 new_path=`cmd //c echo $new_path` 32688 32689 input_path="$new_path" 32690 # Check if we need to convert this using DOS-style short mode. If the path 32691 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32692 # take no chances and rewrite it. 32693 # Note: m4 eats our [], so we need to use [ and ] instead. 32694 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32695 if test "x$has_forbidden_chars" != x; then 32696 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32697 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32698 fi 32699 32700 # Output is in $new_path 32701 32702 windows_path="$new_path" 32703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32704 unix_path=`$CYGPATH -u "$windows_path"` 32705 new_path="$unix_path" 32706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32708 new_path="$unix_path" 32709 fi 32710 32711 # remove trailing .exe if any 32712 new_path="${new_path/%.exe/}" 32713 32714 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32715 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32716 fi 32717 32718 else 32719 # We're on a posix platform. Hooray! :) 32720 # First separate the path from the arguments. This will split at the first 32721 # space. 32722 complete="$AR" 32723 path="${complete%% *}" 32724 tmp="$complete EOL" 32725 arguments="${tmp#* }" 32726 32727 # Cannot rely on the command "which" here since it doesn't always work. 32728 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32729 if test -z "$is_absolute_path"; then 32730 # Path to executable is not absolute. Find it. 32731 IFS_save="$IFS" 32732 IFS=: 32733 for p in $PATH; do 32734 if test -f "$p/$path" && test -x "$p/$path"; then 32735 new_path="$p/$path" 32736 break 32737 fi 32738 done 32739 IFS="$IFS_save" 32740 else 32741 # This is an absolute path, we can use it without further modifications. 32742 new_path="$path" 32743 fi 32744 32745 if test "x$new_path" = x; then 32746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32747 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32748 has_space=`$ECHO "$complete" | $GREP " "` 32749 if test "x$has_space" != x; then 32750 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32751 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32752 fi 32753 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32754 fi 32755 fi 32756 32757 # Now join together the path and the arguments once again 32758 if test "x$arguments" != xEOL; then 32759 new_complete="$new_path ${arguments% *}" 32760 else 32761 new_complete="$new_path" 32762 fi 32763 32764 if test "x$complete" != "x$new_complete"; then 32765 AR="$new_complete" 32766 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32767 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32768 fi 32769 32770 32771 32772 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32773 ac_ext=m 32774 ac_cpp='$OBJCPP $CPPFLAGS' 32775 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32776 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32777 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32778 if test -n "$ac_tool_prefix"; then 32779 for ac_prog in gcc objcc objc cc CC 32780 do 32781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32784 $as_echo_n "checking for $ac_word... " >&6; } 32785 if ${ac_cv_prog_OBJC+:} false; then : 32786 $as_echo_n "(cached) " >&6 32787 else 32788 if test -n "$OBJC"; then 32789 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32790 else 32791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32792 for as_dir in $PATH 32793 do 32794 IFS=$as_save_IFS 32795 test -z "$as_dir" && as_dir=. 32796 for ac_exec_ext in '' $ac_executable_extensions; do 32797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32798 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32800 break 2 32801 fi 32802 done 32803 done 32804 IFS=$as_save_IFS 32805 32806 fi 32807 fi 32808 OBJC=$ac_cv_prog_OBJC 32809 if test -n "$OBJC"; then 32810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32811 $as_echo "$OBJC" >&6; } 32812 else 32813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32814 $as_echo "no" >&6; } 32815 fi 32816 32817 32818 test -n "$OBJC" && break 32819 done 32820 fi 32821 if test -z "$OBJC"; then 32822 ac_ct_OBJC=$OBJC 32823 for ac_prog in gcc objcc objc cc CC 32824 do 32825 # Extract the first word of "$ac_prog", so it can be a program name with args. 32826 set dummy $ac_prog; ac_word=$2 32827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32828 $as_echo_n "checking for $ac_word... " >&6; } 32829 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32830 $as_echo_n "(cached) " >&6 32831 else 32832 if test -n "$ac_ct_OBJC"; then 32833 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32834 else 32835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32836 for as_dir in $PATH 32837 do 32838 IFS=$as_save_IFS 32839 test -z "$as_dir" && as_dir=. 32840 for ac_exec_ext in '' $ac_executable_extensions; do 32841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32842 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32844 break 2 32845 fi 32846 done 32847 done 32848 IFS=$as_save_IFS 32849 32850 fi 32851 fi 32852 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32853 if test -n "$ac_ct_OBJC"; then 32854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32855 $as_echo "$ac_ct_OBJC" >&6; } 32856 else 32857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32858 $as_echo "no" >&6; } 32859 fi 32860 32861 32862 test -n "$ac_ct_OBJC" && break 32863 done 32864 32865 if test "x$ac_ct_OBJC" = x; then 32866 OBJC="gcc" 32867 else 32868 case $cross_compiling:$ac_tool_warned in 32869 yes:) 32870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32872 ac_tool_warned=yes ;; 32873 esac 32874 OBJC=$ac_ct_OBJC 32875 fi 32876 fi 32877 32878 # Provide some information about the compiler. 32879 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32880 set X $ac_compile 32881 ac_compiler=$2 32882 for ac_option in --version -v -V -qversion; do 32883 { { ac_try="$ac_compiler $ac_option >&5" 32884 case "(($ac_try" in 32885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32886 *) ac_try_echo=$ac_try;; 32887 esac 32888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32889 $as_echo "$ac_try_echo"; } >&5 32890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32891 ac_status=$? 32892 if test -s conftest.err; then 32893 sed '10a\ 32894 ... rest of stderr output deleted ... 32895 10q' conftest.err >conftest.er1 32896 cat conftest.er1 >&5 32897 fi 32898 rm -f conftest.er1 conftest.err 32899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32900 test $ac_status = 0; } 32901 done 32902 32903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32904 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32905 if ${ac_cv_objc_compiler_gnu+:} false; then : 32906 $as_echo_n "(cached) " >&6 32907 else 32908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32909 /* end confdefs.h. */ 32910 32911 int 32912 main () 32913 { 32914 #ifndef __GNUC__ 32915 choke me 32916 #endif 32917 32918 ; 32919 return 0; 32920 } 32921 _ACEOF 32922 if ac_fn_objc_try_compile "$LINENO"; then : 32923 ac_compiler_gnu=yes 32924 else 32925 ac_compiler_gnu=no 32926 fi 32927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32928 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32929 32930 fi 32931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32932 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32933 if test $ac_compiler_gnu = yes; then 32934 GOBJC=yes 32935 else 32936 GOBJC= 32937 fi 32938 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32939 ac_save_OBJCFLAGS=$OBJCFLAGS 32940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32941 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32942 if ${ac_cv_prog_objc_g+:} false; then : 32943 $as_echo_n "(cached) " >&6 32944 else 32945 ac_save_objc_werror_flag=$ac_objc_werror_flag 32946 ac_objc_werror_flag=yes 32947 ac_cv_prog_objc_g=no 32948 OBJCFLAGS="-g" 32949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32950 /* end confdefs.h. */ 32951 32952 int 32953 main () 32954 { 32955 32956 ; 32957 return 0; 32958 } 32959 _ACEOF 32960 if ac_fn_objc_try_compile "$LINENO"; then : 32961 ac_cv_prog_objc_g=yes 32962 else 32963 OBJCFLAGS="" 32964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32965 /* end confdefs.h. */ 32966 32967 int 32968 main () 32969 { 32970 32971 ; 32972 return 0; 32973 } 32974 _ACEOF 32975 if ac_fn_objc_try_compile "$LINENO"; then : 32976 32977 else 32978 ac_objc_werror_flag=$ac_save_objc_werror_flag 32979 OBJCFLAGS="-g" 32980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32981 /* end confdefs.h. */ 32982 32983 int 32984 main () 32985 { 32986 32987 ; 32988 return 0; 32989 } 32990 _ACEOF 32991 if ac_fn_objc_try_compile "$LINENO"; then : 32992 ac_cv_prog_objc_g=yes 32993 fi 32994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32995 fi 32996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32997 fi 32998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32999 ac_objc_werror_flag=$ac_save_objc_werror_flag 33000 fi 33001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33002 $as_echo "$ac_cv_prog_objc_g" >&6; } 33003 if test "$ac_test_OBJCFLAGS" = set; then 33004 OBJCFLAGS=$ac_save_OBJCFLAGS 33005 elif test $ac_cv_prog_objc_g = yes; then 33006 if test "$GOBJC" = yes; then 33007 OBJCFLAGS="-g -O2" 33008 else 33009 OBJCFLAGS="-g" 33010 fi 33011 else 33012 if test "$GOBJC" = yes; then 33013 OBJCFLAGS="-O2" 33014 else 33015 OBJCFLAGS= 33016 fi 33017 fi 33018 ac_ext=cpp 33019 ac_cpp='$CXXCPP $CPPFLAGS' 33020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33023 33024 33025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33026 33027 # First separate the path from the arguments. This will split at the first 33028 # space. 33029 complete="$OBJC" 33030 path="${complete%% *}" 33031 tmp="$complete EOL" 33032 arguments="${tmp#* }" 33033 33034 # Input might be given as Windows format, start by converting to 33035 # unix format. 33036 new_path=`$CYGPATH -u "$path"` 33037 33038 # Now try to locate executable using which 33039 new_path=`$WHICH "$new_path" 2> /dev/null` 33040 # bat and cmd files are not always considered executable in cygwin causing which 33041 # to not find them 33042 if test "x$new_path" = x \ 33043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33045 new_path=`$CYGPATH -u "$path"` 33046 fi 33047 if test "x$new_path" = x; then 33048 # Oops. Which didn't find the executable. 33049 # The splitting of arguments from the executable at a space might have been incorrect, 33050 # since paths with space are more likely in Windows. Give it another try with the whole 33051 # argument. 33052 path="$complete" 33053 arguments="EOL" 33054 new_path=`$CYGPATH -u "$path"` 33055 new_path=`$WHICH "$new_path" 2> /dev/null` 33056 # bat and cmd files are not always considered executable in cygwin causing which 33057 # to not find them 33058 if test "x$new_path" = x \ 33059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33061 new_path=`$CYGPATH -u "$path"` 33062 fi 33063 if test "x$new_path" = x; then 33064 # It's still not found. Now this is an unrecoverable error. 33065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33066 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33067 has_space=`$ECHO "$complete" | $GREP " "` 33068 if test "x$has_space" != x; then 33069 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33070 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33071 fi 33072 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33073 fi 33074 fi 33075 33076 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33077 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33078 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33079 # "foo.exe" is OK but "foo" is an error. 33080 # 33081 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33082 # It is also a way to make sure we got the proper file name for the real test later on. 33083 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33084 if test "x$test_shortpath" = x; then 33085 # Short path failed, file does not exist as specified. 33086 # Try adding .exe or .cmd 33087 if test -f "${new_path}.exe"; then 33088 input_to_shortpath="${new_path}.exe" 33089 elif test -f "${new_path}.cmd"; then 33090 input_to_shortpath="${new_path}.cmd" 33091 else 33092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33093 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33095 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33096 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33097 fi 33098 else 33099 input_to_shortpath="$new_path" 33100 fi 33101 33102 # Call helper function which possibly converts this using DOS-style short mode. 33103 # If so, the updated path is stored in $new_path. 33104 new_path="$input_to_shortpath" 33105 33106 input_path="$input_to_shortpath" 33107 # Check if we need to convert this using DOS-style short mode. If the path 33108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33109 # take no chances and rewrite it. 33110 # Note: m4 eats our [], so we need to use [ and ] instead. 33111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33112 if test "x$has_forbidden_chars" != x; then 33113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33117 # Going to short mode and back again did indeed matter. Since short mode is 33118 # case insensitive, let's make it lowercase to improve readability. 33119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33120 # Now convert it back to Unix-stile (cygpath) 33121 input_path=`$CYGPATH -u "$shortmode_path"` 33122 new_path="$input_path" 33123 fi 33124 fi 33125 33126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33127 if test "x$test_cygdrive_prefix" = x; then 33128 # As a simple fix, exclude /usr/bin since it's not a real path. 33129 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33131 # a path prefixed by /cygdrive for fixpath to work. 33132 new_path="$CYGWIN_ROOT_PATH$input_path" 33133 fi 33134 fi 33135 33136 # remove trailing .exe if any 33137 new_path="${new_path/%.exe/}" 33138 33139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33140 33141 # First separate the path from the arguments. This will split at the first 33142 # space. 33143 complete="$OBJC" 33144 path="${complete%% *}" 33145 tmp="$complete EOL" 33146 arguments="${tmp#* }" 33147 33148 # Input might be given as Windows format, start by converting to 33149 # unix format. 33150 new_path="$path" 33151 33152 windows_path="$new_path" 33153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33154 unix_path=`$CYGPATH -u "$windows_path"` 33155 new_path="$unix_path" 33156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33158 new_path="$unix_path" 33159 fi 33160 33161 33162 # Now try to locate executable using which 33163 new_path=`$WHICH "$new_path" 2> /dev/null` 33164 33165 if test "x$new_path" = x; then 33166 # Oops. Which didn't find the executable. 33167 # The splitting of arguments from the executable at a space might have been incorrect, 33168 # since paths with space are more likely in Windows. Give it another try with the whole 33169 # argument. 33170 path="$complete" 33171 arguments="EOL" 33172 new_path="$path" 33173 33174 windows_path="$new_path" 33175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33176 unix_path=`$CYGPATH -u "$windows_path"` 33177 new_path="$unix_path" 33178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33180 new_path="$unix_path" 33181 fi 33182 33183 33184 new_path=`$WHICH "$new_path" 2> /dev/null` 33185 33186 if test "x$new_path" = x; then 33187 # It's still not found. Now this is an unrecoverable error. 33188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33189 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33190 has_space=`$ECHO "$complete" | $GREP " "` 33191 if test "x$has_space" != x; then 33192 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33193 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33194 fi 33195 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33196 fi 33197 fi 33198 33199 # Now new_path has a complete unix path to the binary 33200 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33201 # Keep paths in /bin as-is, but remove trailing .exe if any 33202 new_path="${new_path/%.exe/}" 33203 # Do not save /bin paths to all_fixpath_prefixes! 33204 else 33205 # Not in mixed or Windows style, start by that. 33206 new_path=`cmd //c echo $new_path` 33207 33208 input_path="$new_path" 33209 # Check if we need to convert this using DOS-style short mode. If the path 33210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33211 # take no chances and rewrite it. 33212 # Note: m4 eats our [], so we need to use [ and ] instead. 33213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33214 if test "x$has_forbidden_chars" != x; then 33215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33216 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33217 fi 33218 33219 # Output is in $new_path 33220 33221 windows_path="$new_path" 33222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33223 unix_path=`$CYGPATH -u "$windows_path"` 33224 new_path="$unix_path" 33225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33227 new_path="$unix_path" 33228 fi 33229 33230 # remove trailing .exe if any 33231 new_path="${new_path/%.exe/}" 33232 33233 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33234 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33235 fi 33236 33237 else 33238 # We're on a posix platform. Hooray! :) 33239 # First separate the path from the arguments. This will split at the first 33240 # space. 33241 complete="$OBJC" 33242 path="${complete%% *}" 33243 tmp="$complete EOL" 33244 arguments="${tmp#* }" 33245 33246 # Cannot rely on the command "which" here since it doesn't always work. 33247 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33248 if test -z "$is_absolute_path"; then 33249 # Path to executable is not absolute. Find it. 33250 IFS_save="$IFS" 33251 IFS=: 33252 for p in $PATH; do 33253 if test -f "$p/$path" && test -x "$p/$path"; then 33254 new_path="$p/$path" 33255 break 33256 fi 33257 done 33258 IFS="$IFS_save" 33259 else 33260 # This is an absolute path, we can use it without further modifications. 33261 new_path="$path" 33262 fi 33263 33264 if test "x$new_path" = x; then 33265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33266 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33267 has_space=`$ECHO "$complete" | $GREP " "` 33268 if test "x$has_space" != x; then 33269 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33270 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33271 fi 33272 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33273 fi 33274 fi 33275 33276 # Now join together the path and the arguments once again 33277 if test "x$arguments" != xEOL; then 33278 new_complete="$new_path ${arguments% *}" 33279 else 33280 new_complete="$new_path" 33281 fi 33282 33283 if test "x$complete" != "x$new_complete"; then 33284 OBJC="$new_complete" 33285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33286 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33287 fi 33288 33289 33290 33291 # Publish this variable in the help. 33292 33293 33294 if test "x$LIPO" = x; then 33295 # The variable is not set by user, try to locate tool using the code snippet 33296 for ac_prog in lipo 33297 do 33298 # Extract the first word of "$ac_prog", so it can be a program name with args. 33299 set dummy $ac_prog; ac_word=$2 33300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33301 $as_echo_n "checking for $ac_word... " >&6; } 33302 if ${ac_cv_path_LIPO+:} false; then : 33303 $as_echo_n "(cached) " >&6 33304 else 33305 case $LIPO in 33306 [\\/]* | ?:[\\/]*) 33307 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33308 ;; 33309 *) 33310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33311 for as_dir in $PATH 33312 do 33313 IFS=$as_save_IFS 33314 test -z "$as_dir" && as_dir=. 33315 for ac_exec_ext in '' $ac_executable_extensions; do 33316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33317 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33319 break 2 33320 fi 33321 done 33322 done 33323 IFS=$as_save_IFS 33324 33325 ;; 33326 esac 33327 fi 33328 LIPO=$ac_cv_path_LIPO 33329 if test -n "$LIPO"; then 33330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33331 $as_echo "$LIPO" >&6; } 33332 else 33333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33334 $as_echo "no" >&6; } 33335 fi 33336 33337 33338 test -n "$LIPO" && break 33339 done 33340 33341 else 33342 # The variable is set, but is it from the command line or the environment? 33343 33344 # Try to remove the string !LIPO! from our list. 33345 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33346 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33347 # If it failed, the variable was not from the command line. Ignore it, 33348 # but warn the user (except for BASH, which is always set by the calling BASH). 33349 if test "xLIPO" != xBASH; then 33350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33351 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33352 fi 33353 # Try to locate tool using the code snippet 33354 for ac_prog in lipo 33355 do 33356 # Extract the first word of "$ac_prog", so it can be a program name with args. 33357 set dummy $ac_prog; ac_word=$2 33358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33359 $as_echo_n "checking for $ac_word... " >&6; } 33360 if ${ac_cv_path_LIPO+:} false; then : 33361 $as_echo_n "(cached) " >&6 33362 else 33363 case $LIPO in 33364 [\\/]* | ?:[\\/]*) 33365 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33366 ;; 33367 *) 33368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33369 for as_dir in $PATH 33370 do 33371 IFS=$as_save_IFS 33372 test -z "$as_dir" && as_dir=. 33373 for ac_exec_ext in '' $ac_executable_extensions; do 33374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33375 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33377 break 2 33378 fi 33379 done 33380 done 33381 IFS=$as_save_IFS 33382 33383 ;; 33384 esac 33385 fi 33386 LIPO=$ac_cv_path_LIPO 33387 if test -n "$LIPO"; then 33388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33389 $as_echo "$LIPO" >&6; } 33390 else 33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33392 $as_echo "no" >&6; } 33393 fi 33394 33395 33396 test -n "$LIPO" && break 33397 done 33398 33399 else 33400 # If it succeeded, then it was overridden by the user. We will use it 33401 # for the tool. 33402 33403 # First remove it from the list of overridden variables, so we can test 33404 # for unknown variables in the end. 33405 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33406 33407 # Check if the provided tool contains a complete path. 33408 tool_specified="$LIPO" 33409 tool_basename="${tool_specified##*/}" 33410 if test "x$tool_basename" = "x$tool_specified"; then 33411 # A command without a complete path is provided, search $PATH. 33412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33413 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33414 # Extract the first word of "$tool_basename", so it can be a program name with args. 33415 set dummy $tool_basename; ac_word=$2 33416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33417 $as_echo_n "checking for $ac_word... " >&6; } 33418 if ${ac_cv_path_LIPO+:} false; then : 33419 $as_echo_n "(cached) " >&6 33420 else 33421 case $LIPO in 33422 [\\/]* | ?:[\\/]*) 33423 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33424 ;; 33425 *) 33426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33427 for as_dir in $PATH 33428 do 33429 IFS=$as_save_IFS 33430 test -z "$as_dir" && as_dir=. 33431 for ac_exec_ext in '' $ac_executable_extensions; do 33432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33433 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33435 break 2 33436 fi 33437 done 33438 done 33439 IFS=$as_save_IFS 33440 33441 ;; 33442 esac 33443 fi 33444 LIPO=$ac_cv_path_LIPO 33445 if test -n "$LIPO"; then 33446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33447 $as_echo "$LIPO" >&6; } 33448 else 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33450 $as_echo "no" >&6; } 33451 fi 33452 33453 33454 if test "x$LIPO" = x; then 33455 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33456 fi 33457 else 33458 # Otherwise we believe it is a complete path. Use it as it is. 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33460 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33462 $as_echo_n "checking for LIPO... " >&6; } 33463 if test ! -x "$tool_specified"; then 33464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33465 $as_echo "not found" >&6; } 33466 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33467 fi 33468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33469 $as_echo "$tool_specified" >&6; } 33470 fi 33471 fi 33472 fi 33473 33474 33475 33476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33477 33478 # First separate the path from the arguments. This will split at the first 33479 # space. 33480 complete="$LIPO" 33481 path="${complete%% *}" 33482 tmp="$complete EOL" 33483 arguments="${tmp#* }" 33484 33485 # Input might be given as Windows format, start by converting to 33486 # unix format. 33487 new_path=`$CYGPATH -u "$path"` 33488 33489 # Now try to locate executable using which 33490 new_path=`$WHICH "$new_path" 2> /dev/null` 33491 # bat and cmd files are not always considered executable in cygwin causing which 33492 # to not find them 33493 if test "x$new_path" = x \ 33494 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33495 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33496 new_path=`$CYGPATH -u "$path"` 33497 fi 33498 if test "x$new_path" = x; then 33499 # Oops. Which didn't find the executable. 33500 # The splitting of arguments from the executable at a space might have been incorrect, 33501 # since paths with space are more likely in Windows. Give it another try with the whole 33502 # argument. 33503 path="$complete" 33504 arguments="EOL" 33505 new_path=`$CYGPATH -u "$path"` 33506 new_path=`$WHICH "$new_path" 2> /dev/null` 33507 # bat and cmd files are not always considered executable in cygwin causing which 33508 # to not find them 33509 if test "x$new_path" = x \ 33510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33512 new_path=`$CYGPATH -u "$path"` 33513 fi 33514 if test "x$new_path" = x; then 33515 # It's still not found. Now this is an unrecoverable error. 33516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33517 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33518 has_space=`$ECHO "$complete" | $GREP " "` 33519 if test "x$has_space" != x; then 33520 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33521 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33522 fi 33523 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33524 fi 33525 fi 33526 33527 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33528 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33529 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33530 # "foo.exe" is OK but "foo" is an error. 33531 # 33532 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33533 # It is also a way to make sure we got the proper file name for the real test later on. 33534 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33535 if test "x$test_shortpath" = x; then 33536 # Short path failed, file does not exist as specified. 33537 # Try adding .exe or .cmd 33538 if test -f "${new_path}.exe"; then 33539 input_to_shortpath="${new_path}.exe" 33540 elif test -f "${new_path}.cmd"; then 33541 input_to_shortpath="${new_path}.cmd" 33542 else 33543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33544 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33545 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33546 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33547 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33548 fi 33549 else 33550 input_to_shortpath="$new_path" 33551 fi 33552 33553 # Call helper function which possibly converts this using DOS-style short mode. 33554 # If so, the updated path is stored in $new_path. 33555 new_path="$input_to_shortpath" 33556 33557 input_path="$input_to_shortpath" 33558 # Check if we need to convert this using DOS-style short mode. If the path 33559 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33560 # take no chances and rewrite it. 33561 # Note: m4 eats our [], so we need to use [ and ] instead. 33562 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33563 if test "x$has_forbidden_chars" != x; then 33564 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33565 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33566 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33567 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33568 # Going to short mode and back again did indeed matter. Since short mode is 33569 # case insensitive, let's make it lowercase to improve readability. 33570 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33571 # Now convert it back to Unix-stile (cygpath) 33572 input_path=`$CYGPATH -u "$shortmode_path"` 33573 new_path="$input_path" 33574 fi 33575 fi 33576 33577 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33578 if test "x$test_cygdrive_prefix" = x; then 33579 # As a simple fix, exclude /usr/bin since it's not a real path. 33580 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33581 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33582 # a path prefixed by /cygdrive for fixpath to work. 33583 new_path="$CYGWIN_ROOT_PATH$input_path" 33584 fi 33585 fi 33586 33587 # remove trailing .exe if any 33588 new_path="${new_path/%.exe/}" 33589 33590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33591 33592 # First separate the path from the arguments. This will split at the first 33593 # space. 33594 complete="$LIPO" 33595 path="${complete%% *}" 33596 tmp="$complete EOL" 33597 arguments="${tmp#* }" 33598 33599 # Input might be given as Windows format, start by converting to 33600 # unix format. 33601 new_path="$path" 33602 33603 windows_path="$new_path" 33604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33605 unix_path=`$CYGPATH -u "$windows_path"` 33606 new_path="$unix_path" 33607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33609 new_path="$unix_path" 33610 fi 33611 33612 33613 # Now try to locate executable using which 33614 new_path=`$WHICH "$new_path" 2> /dev/null` 33615 33616 if test "x$new_path" = x; then 33617 # Oops. Which didn't find the executable. 33618 # The splitting of arguments from the executable at a space might have been incorrect, 33619 # since paths with space are more likely in Windows. Give it another try with the whole 33620 # argument. 33621 path="$complete" 33622 arguments="EOL" 33623 new_path="$path" 33624 33625 windows_path="$new_path" 33626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33627 unix_path=`$CYGPATH -u "$windows_path"` 33628 new_path="$unix_path" 33629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33631 new_path="$unix_path" 33632 fi 33633 33634 33635 new_path=`$WHICH "$new_path" 2> /dev/null` 33636 33637 if test "x$new_path" = x; then 33638 # It's still not found. Now this is an unrecoverable error. 33639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33640 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33641 has_space=`$ECHO "$complete" | $GREP " "` 33642 if test "x$has_space" != x; then 33643 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33644 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33645 fi 33646 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33647 fi 33648 fi 33649 33650 # Now new_path has a complete unix path to the binary 33651 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33652 # Keep paths in /bin as-is, but remove trailing .exe if any 33653 new_path="${new_path/%.exe/}" 33654 # Do not save /bin paths to all_fixpath_prefixes! 33655 else 33656 # Not in mixed or Windows style, start by that. 33657 new_path=`cmd //c echo $new_path` 33658 33659 input_path="$new_path" 33660 # Check if we need to convert this using DOS-style short mode. If the path 33661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33662 # take no chances and rewrite it. 33663 # Note: m4 eats our [], so we need to use [ and ] instead. 33664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33665 if test "x$has_forbidden_chars" != x; then 33666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33667 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33668 fi 33669 33670 # Output is in $new_path 33671 33672 windows_path="$new_path" 33673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33674 unix_path=`$CYGPATH -u "$windows_path"` 33675 new_path="$unix_path" 33676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33678 new_path="$unix_path" 33679 fi 33680 33681 # remove trailing .exe if any 33682 new_path="${new_path/%.exe/}" 33683 33684 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33685 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33686 fi 33687 33688 else 33689 # We're on a posix platform. Hooray! :) 33690 # First separate the path from the arguments. This will split at the first 33691 # space. 33692 complete="$LIPO" 33693 path="${complete%% *}" 33694 tmp="$complete EOL" 33695 arguments="${tmp#* }" 33696 33697 # Cannot rely on the command "which" here since it doesn't always work. 33698 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33699 if test -z "$is_absolute_path"; then 33700 # Path to executable is not absolute. Find it. 33701 IFS_save="$IFS" 33702 IFS=: 33703 for p in $PATH; do 33704 if test -f "$p/$path" && test -x "$p/$path"; then 33705 new_path="$p/$path" 33706 break 33707 fi 33708 done 33709 IFS="$IFS_save" 33710 else 33711 # This is an absolute path, we can use it without further modifications. 33712 new_path="$path" 33713 fi 33714 33715 if test "x$new_path" = x; then 33716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33717 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33718 has_space=`$ECHO "$complete" | $GREP " "` 33719 if test "x$has_space" != x; then 33720 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33721 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33722 fi 33723 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33724 fi 33725 fi 33726 33727 # Now join together the path and the arguments once again 33728 if test "x$arguments" != xEOL; then 33729 new_complete="$new_path ${arguments% *}" 33730 else 33731 new_complete="$new_path" 33732 fi 33733 33734 if test "x$complete" != "x$new_complete"; then 33735 LIPO="$new_complete" 33736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33737 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33738 fi 33739 33740 else 33741 OBJC= 33742 fi 33743 33744 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33745 # Extract the first word of "mt", so it can be a program name with args. 33746 set dummy mt; ac_word=$2 33747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33748 $as_echo_n "checking for $ac_word... " >&6; } 33749 if ${ac_cv_prog_MT+:} false; then : 33750 $as_echo_n "(cached) " >&6 33751 else 33752 if test -n "$MT"; then 33753 ac_cv_prog_MT="$MT" # Let the user override the test. 33754 else 33755 ac_prog_rejected=no 33756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33757 for as_dir in $PATH 33758 do 33759 IFS=$as_save_IFS 33760 test -z "$as_dir" && as_dir=. 33761 for ac_exec_ext in '' $ac_executable_extensions; do 33762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33764 ac_prog_rejected=yes 33765 continue 33766 fi 33767 ac_cv_prog_MT="mt" 33768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33769 break 2 33770 fi 33771 done 33772 done 33773 IFS=$as_save_IFS 33774 33775 if test $ac_prog_rejected = yes; then 33776 # We found a bogon in the path, so make sure we never use it. 33777 set dummy $ac_cv_prog_MT 33778 shift 33779 if test $# != 0; then 33780 # We chose a different compiler from the bogus one. 33781 # However, it has the same basename, so the bogon will be chosen 33782 # first if we set MT to just the basename; use the full file name. 33783 shift 33784 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33785 fi 33786 fi 33787 fi 33788 fi 33789 MT=$ac_cv_prog_MT 33790 if test -n "$MT"; then 33791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33792 $as_echo "$MT" >&6; } 33793 else 33794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33795 $as_echo "no" >&6; } 33796 fi 33797 33798 33799 33800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33801 33802 # First separate the path from the arguments. This will split at the first 33803 # space. 33804 complete="$MT" 33805 path="${complete%% *}" 33806 tmp="$complete EOL" 33807 arguments="${tmp#* }" 33808 33809 # Input might be given as Windows format, start by converting to 33810 # unix format. 33811 new_path=`$CYGPATH -u "$path"` 33812 33813 # Now try to locate executable using which 33814 new_path=`$WHICH "$new_path" 2> /dev/null` 33815 # bat and cmd files are not always considered executable in cygwin causing which 33816 # to not find them 33817 if test "x$new_path" = x \ 33818 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33819 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33820 new_path=`$CYGPATH -u "$path"` 33821 fi 33822 if test "x$new_path" = x; then 33823 # Oops. Which didn't find the executable. 33824 # The splitting of arguments from the executable at a space might have been incorrect, 33825 # since paths with space are more likely in Windows. Give it another try with the whole 33826 # argument. 33827 path="$complete" 33828 arguments="EOL" 33829 new_path=`$CYGPATH -u "$path"` 33830 new_path=`$WHICH "$new_path" 2> /dev/null` 33831 # bat and cmd files are not always considered executable in cygwin causing which 33832 # to not find them 33833 if test "x$new_path" = x \ 33834 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33835 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33836 new_path=`$CYGPATH -u "$path"` 33837 fi 33838 if test "x$new_path" = x; then 33839 # It's still not found. Now this is an unrecoverable error. 33840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33841 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33842 has_space=`$ECHO "$complete" | $GREP " "` 33843 if test "x$has_space" != x; then 33844 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33845 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33846 fi 33847 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33848 fi 33849 fi 33850 33851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33854 # "foo.exe" is OK but "foo" is an error. 33855 # 33856 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33857 # It is also a way to make sure we got the proper file name for the real test later on. 33858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33859 if test "x$test_shortpath" = x; then 33860 # Short path failed, file does not exist as specified. 33861 # Try adding .exe or .cmd 33862 if test -f "${new_path}.exe"; then 33863 input_to_shortpath="${new_path}.exe" 33864 elif test -f "${new_path}.cmd"; then 33865 input_to_shortpath="${new_path}.cmd" 33866 else 33867 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33868 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33870 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33871 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33872 fi 33873 else 33874 input_to_shortpath="$new_path" 33875 fi 33876 33877 # Call helper function which possibly converts this using DOS-style short mode. 33878 # If so, the updated path is stored in $new_path. 33879 new_path="$input_to_shortpath" 33880 33881 input_path="$input_to_shortpath" 33882 # Check if we need to convert this using DOS-style short mode. If the path 33883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33884 # take no chances and rewrite it. 33885 # Note: m4 eats our [], so we need to use [ and ] instead. 33886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33887 if test "x$has_forbidden_chars" != x; then 33888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33889 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33890 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33891 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33892 # Going to short mode and back again did indeed matter. Since short mode is 33893 # case insensitive, let's make it lowercase to improve readability. 33894 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33895 # Now convert it back to Unix-stile (cygpath) 33896 input_path=`$CYGPATH -u "$shortmode_path"` 33897 new_path="$input_path" 33898 fi 33899 fi 33900 33901 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33902 if test "x$test_cygdrive_prefix" = x; then 33903 # As a simple fix, exclude /usr/bin since it's not a real path. 33904 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33905 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33906 # a path prefixed by /cygdrive for fixpath to work. 33907 new_path="$CYGWIN_ROOT_PATH$input_path" 33908 fi 33909 fi 33910 33911 # remove trailing .exe if any 33912 new_path="${new_path/%.exe/}" 33913 33914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33915 33916 # First separate the path from the arguments. This will split at the first 33917 # space. 33918 complete="$MT" 33919 path="${complete%% *}" 33920 tmp="$complete EOL" 33921 arguments="${tmp#* }" 33922 33923 # Input might be given as Windows format, start by converting to 33924 # unix format. 33925 new_path="$path" 33926 33927 windows_path="$new_path" 33928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33929 unix_path=`$CYGPATH -u "$windows_path"` 33930 new_path="$unix_path" 33931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33933 new_path="$unix_path" 33934 fi 33935 33936 33937 # Now try to locate executable using which 33938 new_path=`$WHICH "$new_path" 2> /dev/null` 33939 33940 if test "x$new_path" = x; then 33941 # Oops. Which didn't find the executable. 33942 # The splitting of arguments from the executable at a space might have been incorrect, 33943 # since paths with space are more likely in Windows. Give it another try with the whole 33944 # argument. 33945 path="$complete" 33946 arguments="EOL" 33947 new_path="$path" 33948 33949 windows_path="$new_path" 33950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33951 unix_path=`$CYGPATH -u "$windows_path"` 33952 new_path="$unix_path" 33953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33955 new_path="$unix_path" 33956 fi 33957 33958 33959 new_path=`$WHICH "$new_path" 2> /dev/null` 33960 33961 if test "x$new_path" = x; then 33962 # It's still not found. Now this is an unrecoverable error. 33963 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33964 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33965 has_space=`$ECHO "$complete" | $GREP " "` 33966 if test "x$has_space" != x; then 33967 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33968 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33969 fi 33970 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33971 fi 33972 fi 33973 33974 # Now new_path has a complete unix path to the binary 33975 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33976 # Keep paths in /bin as-is, but remove trailing .exe if any 33977 new_path="${new_path/%.exe/}" 33978 # Do not save /bin paths to all_fixpath_prefixes! 33979 else 33980 # Not in mixed or Windows style, start by that. 33981 new_path=`cmd //c echo $new_path` 33982 33983 input_path="$new_path" 33984 # Check if we need to convert this using DOS-style short mode. If the path 33985 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33986 # take no chances and rewrite it. 33987 # Note: m4 eats our [], so we need to use [ and ] instead. 33988 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33989 if test "x$has_forbidden_chars" != x; then 33990 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33991 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33992 fi 33993 33994 # Output is in $new_path 33995 33996 windows_path="$new_path" 33997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33998 unix_path=`$CYGPATH -u "$windows_path"` 33999 new_path="$unix_path" 34000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34002 new_path="$unix_path" 34003 fi 34004 34005 # remove trailing .exe if any 34006 new_path="${new_path/%.exe/}" 34007 34008 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34009 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34010 fi 34011 34012 else 34013 # We're on a posix platform. Hooray! :) 34014 # First separate the path from the arguments. This will split at the first 34015 # space. 34016 complete="$MT" 34017 path="${complete%% *}" 34018 tmp="$complete EOL" 34019 arguments="${tmp#* }" 34020 34021 # Cannot rely on the command "which" here since it doesn't always work. 34022 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34023 if test -z "$is_absolute_path"; then 34024 # Path to executable is not absolute. Find it. 34025 IFS_save="$IFS" 34026 IFS=: 34027 for p in $PATH; do 34028 if test -f "$p/$path" && test -x "$p/$path"; then 34029 new_path="$p/$path" 34030 break 34031 fi 34032 done 34033 IFS="$IFS_save" 34034 else 34035 # This is an absolute path, we can use it without further modifications. 34036 new_path="$path" 34037 fi 34038 34039 if test "x$new_path" = x; then 34040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34041 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34042 has_space=`$ECHO "$complete" | $GREP " "` 34043 if test "x$has_space" != x; then 34044 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34045 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34046 fi 34047 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34048 fi 34049 fi 34050 34051 # Now join together the path and the arguments once again 34052 if test "x$arguments" != xEOL; then 34053 new_complete="$new_path ${arguments% *}" 34054 else 34055 new_complete="$new_path" 34056 fi 34057 34058 if test "x$complete" != "x$new_complete"; then 34059 MT="$new_complete" 34060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34061 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34062 fi 34063 34064 # Setup the resource compiler (RC) 34065 # Extract the first word of "rc", so it can be a program name with args. 34066 set dummy rc; ac_word=$2 34067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34068 $as_echo_n "checking for $ac_word... " >&6; } 34069 if ${ac_cv_prog_RC+:} false; then : 34070 $as_echo_n "(cached) " >&6 34071 else 34072 if test -n "$RC"; then 34073 ac_cv_prog_RC="$RC" # Let the user override the test. 34074 else 34075 ac_prog_rejected=no 34076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34077 for as_dir in $PATH 34078 do 34079 IFS=$as_save_IFS 34080 test -z "$as_dir" && as_dir=. 34081 for ac_exec_ext in '' $ac_executable_extensions; do 34082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34084 ac_prog_rejected=yes 34085 continue 34086 fi 34087 ac_cv_prog_RC="rc" 34088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34089 break 2 34090 fi 34091 done 34092 done 34093 IFS=$as_save_IFS 34094 34095 if test $ac_prog_rejected = yes; then 34096 # We found a bogon in the path, so make sure we never use it. 34097 set dummy $ac_cv_prog_RC 34098 shift 34099 if test $# != 0; then 34100 # We chose a different compiler from the bogus one. 34101 # However, it has the same basename, so the bogon will be chosen 34102 # first if we set RC to just the basename; use the full file name. 34103 shift 34104 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34105 fi 34106 fi 34107 fi 34108 fi 34109 RC=$ac_cv_prog_RC 34110 if test -n "$RC"; then 34111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34112 $as_echo "$RC" >&6; } 34113 else 34114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34115 $as_echo "no" >&6; } 34116 fi 34117 34118 34119 34120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34121 34122 # First separate the path from the arguments. This will split at the first 34123 # space. 34124 complete="$RC" 34125 path="${complete%% *}" 34126 tmp="$complete EOL" 34127 arguments="${tmp#* }" 34128 34129 # Input might be given as Windows format, start by converting to 34130 # unix format. 34131 new_path=`$CYGPATH -u "$path"` 34132 34133 # Now try to locate executable using which 34134 new_path=`$WHICH "$new_path" 2> /dev/null` 34135 # bat and cmd files are not always considered executable in cygwin causing which 34136 # to not find them 34137 if test "x$new_path" = x \ 34138 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34139 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34140 new_path=`$CYGPATH -u "$path"` 34141 fi 34142 if test "x$new_path" = x; then 34143 # Oops. Which didn't find the executable. 34144 # The splitting of arguments from the executable at a space might have been incorrect, 34145 # since paths with space are more likely in Windows. Give it another try with the whole 34146 # argument. 34147 path="$complete" 34148 arguments="EOL" 34149 new_path=`$CYGPATH -u "$path"` 34150 new_path=`$WHICH "$new_path" 2> /dev/null` 34151 # bat and cmd files are not always considered executable in cygwin causing which 34152 # to not find them 34153 if test "x$new_path" = x \ 34154 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34155 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34156 new_path=`$CYGPATH -u "$path"` 34157 fi 34158 if test "x$new_path" = x; then 34159 # It's still not found. Now this is an unrecoverable error. 34160 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34161 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34162 has_space=`$ECHO "$complete" | $GREP " "` 34163 if test "x$has_space" != x; then 34164 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34165 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34166 fi 34167 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34168 fi 34169 fi 34170 34171 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34172 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34173 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34174 # "foo.exe" is OK but "foo" is an error. 34175 # 34176 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34177 # It is also a way to make sure we got the proper file name for the real test later on. 34178 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34179 if test "x$test_shortpath" = x; then 34180 # Short path failed, file does not exist as specified. 34181 # Try adding .exe or .cmd 34182 if test -f "${new_path}.exe"; then 34183 input_to_shortpath="${new_path}.exe" 34184 elif test -f "${new_path}.cmd"; then 34185 input_to_shortpath="${new_path}.cmd" 34186 else 34187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34188 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34189 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34190 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34191 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34192 fi 34193 else 34194 input_to_shortpath="$new_path" 34195 fi 34196 34197 # Call helper function which possibly converts this using DOS-style short mode. 34198 # If so, the updated path is stored in $new_path. 34199 new_path="$input_to_shortpath" 34200 34201 input_path="$input_to_shortpath" 34202 # Check if we need to convert this using DOS-style short mode. If the path 34203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34204 # take no chances and rewrite it. 34205 # Note: m4 eats our [], so we need to use [ and ] instead. 34206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34207 if test "x$has_forbidden_chars" != x; then 34208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34209 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34210 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34211 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34212 # Going to short mode and back again did indeed matter. Since short mode is 34213 # case insensitive, let's make it lowercase to improve readability. 34214 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34215 # Now convert it back to Unix-stile (cygpath) 34216 input_path=`$CYGPATH -u "$shortmode_path"` 34217 new_path="$input_path" 34218 fi 34219 fi 34220 34221 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34222 if test "x$test_cygdrive_prefix" = x; then 34223 # As a simple fix, exclude /usr/bin since it's not a real path. 34224 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34225 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34226 # a path prefixed by /cygdrive for fixpath to work. 34227 new_path="$CYGWIN_ROOT_PATH$input_path" 34228 fi 34229 fi 34230 34231 # remove trailing .exe if any 34232 new_path="${new_path/%.exe/}" 34233 34234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34235 34236 # First separate the path from the arguments. This will split at the first 34237 # space. 34238 complete="$RC" 34239 path="${complete%% *}" 34240 tmp="$complete EOL" 34241 arguments="${tmp#* }" 34242 34243 # Input might be given as Windows format, start by converting to 34244 # unix format. 34245 new_path="$path" 34246 34247 windows_path="$new_path" 34248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34249 unix_path=`$CYGPATH -u "$windows_path"` 34250 new_path="$unix_path" 34251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34252 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34253 new_path="$unix_path" 34254 fi 34255 34256 34257 # Now try to locate executable using which 34258 new_path=`$WHICH "$new_path" 2> /dev/null` 34259 34260 if test "x$new_path" = x; then 34261 # Oops. Which didn't find the executable. 34262 # The splitting of arguments from the executable at a space might have been incorrect, 34263 # since paths with space are more likely in Windows. Give it another try with the whole 34264 # argument. 34265 path="$complete" 34266 arguments="EOL" 34267 new_path="$path" 34268 34269 windows_path="$new_path" 34270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34271 unix_path=`$CYGPATH -u "$windows_path"` 34272 new_path="$unix_path" 34273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34275 new_path="$unix_path" 34276 fi 34277 34278 34279 new_path=`$WHICH "$new_path" 2> /dev/null` 34280 34281 if test "x$new_path" = x; then 34282 # It's still not found. Now this is an unrecoverable error. 34283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34284 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34285 has_space=`$ECHO "$complete" | $GREP " "` 34286 if test "x$has_space" != x; then 34287 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34288 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34289 fi 34290 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34291 fi 34292 fi 34293 34294 # Now new_path has a complete unix path to the binary 34295 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34296 # Keep paths in /bin as-is, but remove trailing .exe if any 34297 new_path="${new_path/%.exe/}" 34298 # Do not save /bin paths to all_fixpath_prefixes! 34299 else 34300 # Not in mixed or Windows style, start by that. 34301 new_path=`cmd //c echo $new_path` 34302 34303 input_path="$new_path" 34304 # Check if we need to convert this using DOS-style short mode. If the path 34305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34306 # take no chances and rewrite it. 34307 # Note: m4 eats our [], so we need to use [ and ] instead. 34308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34309 if test "x$has_forbidden_chars" != x; then 34310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34311 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34312 fi 34313 34314 # Output is in $new_path 34315 34316 windows_path="$new_path" 34317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34318 unix_path=`$CYGPATH -u "$windows_path"` 34319 new_path="$unix_path" 34320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34322 new_path="$unix_path" 34323 fi 34324 34325 # remove trailing .exe if any 34326 new_path="${new_path/%.exe/}" 34327 34328 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34329 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34330 fi 34331 34332 else 34333 # We're on a posix platform. Hooray! :) 34334 # First separate the path from the arguments. This will split at the first 34335 # space. 34336 complete="$RC" 34337 path="${complete%% *}" 34338 tmp="$complete EOL" 34339 arguments="${tmp#* }" 34340 34341 # Cannot rely on the command "which" here since it doesn't always work. 34342 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34343 if test -z "$is_absolute_path"; then 34344 # Path to executable is not absolute. Find it. 34345 IFS_save="$IFS" 34346 IFS=: 34347 for p in $PATH; do 34348 if test -f "$p/$path" && test -x "$p/$path"; then 34349 new_path="$p/$path" 34350 break 34351 fi 34352 done 34353 IFS="$IFS_save" 34354 else 34355 # This is an absolute path, we can use it without further modifications. 34356 new_path="$path" 34357 fi 34358 34359 if test "x$new_path" = x; then 34360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34361 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34362 has_space=`$ECHO "$complete" | $GREP " "` 34363 if test "x$has_space" != x; then 34364 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34365 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34366 fi 34367 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34368 fi 34369 fi 34370 34371 # Now join together the path and the arguments once again 34372 if test "x$arguments" != xEOL; then 34373 new_complete="$new_path ${arguments% *}" 34374 else 34375 new_complete="$new_path" 34376 fi 34377 34378 if test "x$complete" != "x$new_complete"; then 34379 RC="$new_complete" 34380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34381 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34382 fi 34383 34384 # Extract the first word of "dumpbin", so it can be a program name with args. 34385 set dummy dumpbin; ac_word=$2 34386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34387 $as_echo_n "checking for $ac_word... " >&6; } 34388 if ${ac_cv_prog_DUMPBIN+:} false; then : 34389 $as_echo_n "(cached) " >&6 34390 else 34391 if test -n "$DUMPBIN"; then 34392 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34393 else 34394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34395 for as_dir in $PATH 34396 do 34397 IFS=$as_save_IFS 34398 test -z "$as_dir" && as_dir=. 34399 for ac_exec_ext in '' $ac_executable_extensions; do 34400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34401 ac_cv_prog_DUMPBIN="dumpbin" 34402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34403 break 2 34404 fi 34405 done 34406 done 34407 IFS=$as_save_IFS 34408 34409 fi 34410 fi 34411 DUMPBIN=$ac_cv_prog_DUMPBIN 34412 if test -n "$DUMPBIN"; then 34413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34414 $as_echo "$DUMPBIN" >&6; } 34415 else 34416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34417 $as_echo "no" >&6; } 34418 fi 34419 34420 34421 34422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34423 34424 # First separate the path from the arguments. This will split at the first 34425 # space. 34426 complete="$DUMPBIN" 34427 path="${complete%% *}" 34428 tmp="$complete EOL" 34429 arguments="${tmp#* }" 34430 34431 # Input might be given as Windows format, start by converting to 34432 # unix format. 34433 new_path=`$CYGPATH -u "$path"` 34434 34435 # Now try to locate executable using which 34436 new_path=`$WHICH "$new_path" 2> /dev/null` 34437 # bat and cmd files are not always considered executable in cygwin causing which 34438 # to not find them 34439 if test "x$new_path" = x \ 34440 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34441 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34442 new_path=`$CYGPATH -u "$path"` 34443 fi 34444 if test "x$new_path" = x; then 34445 # Oops. Which didn't find the executable. 34446 # The splitting of arguments from the executable at a space might have been incorrect, 34447 # since paths with space are more likely in Windows. Give it another try with the whole 34448 # argument. 34449 path="$complete" 34450 arguments="EOL" 34451 new_path=`$CYGPATH -u "$path"` 34452 new_path=`$WHICH "$new_path" 2> /dev/null` 34453 # bat and cmd files are not always considered executable in cygwin causing which 34454 # to not find them 34455 if test "x$new_path" = x \ 34456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34458 new_path=`$CYGPATH -u "$path"` 34459 fi 34460 if test "x$new_path" = x; then 34461 # It's still not found. Now this is an unrecoverable error. 34462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34463 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34464 has_space=`$ECHO "$complete" | $GREP " "` 34465 if test "x$has_space" != x; then 34466 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34467 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34468 fi 34469 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34470 fi 34471 fi 34472 34473 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34474 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34475 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34476 # "foo.exe" is OK but "foo" is an error. 34477 # 34478 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34479 # It is also a way to make sure we got the proper file name for the real test later on. 34480 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34481 if test "x$test_shortpath" = x; then 34482 # Short path failed, file does not exist as specified. 34483 # Try adding .exe or .cmd 34484 if test -f "${new_path}.exe"; then 34485 input_to_shortpath="${new_path}.exe" 34486 elif test -f "${new_path}.cmd"; then 34487 input_to_shortpath="${new_path}.cmd" 34488 else 34489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34490 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34491 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34492 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34493 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34494 fi 34495 else 34496 input_to_shortpath="$new_path" 34497 fi 34498 34499 # Call helper function which possibly converts this using DOS-style short mode. 34500 # If so, the updated path is stored in $new_path. 34501 new_path="$input_to_shortpath" 34502 34503 input_path="$input_to_shortpath" 34504 # Check if we need to convert this using DOS-style short mode. If the path 34505 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34506 # take no chances and rewrite it. 34507 # Note: m4 eats our [], so we need to use [ and ] instead. 34508 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34509 if test "x$has_forbidden_chars" != x; then 34510 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34511 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34512 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34513 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34514 # Going to short mode and back again did indeed matter. Since short mode is 34515 # case insensitive, let's make it lowercase to improve readability. 34516 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34517 # Now convert it back to Unix-stile (cygpath) 34518 input_path=`$CYGPATH -u "$shortmode_path"` 34519 new_path="$input_path" 34520 fi 34521 fi 34522 34523 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34524 if test "x$test_cygdrive_prefix" = x; then 34525 # As a simple fix, exclude /usr/bin since it's not a real path. 34526 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34527 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34528 # a path prefixed by /cygdrive for fixpath to work. 34529 new_path="$CYGWIN_ROOT_PATH$input_path" 34530 fi 34531 fi 34532 34533 # remove trailing .exe if any 34534 new_path="${new_path/%.exe/}" 34535 34536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34537 34538 # First separate the path from the arguments. This will split at the first 34539 # space. 34540 complete="$DUMPBIN" 34541 path="${complete%% *}" 34542 tmp="$complete EOL" 34543 arguments="${tmp#* }" 34544 34545 # Input might be given as Windows format, start by converting to 34546 # unix format. 34547 new_path="$path" 34548 34549 windows_path="$new_path" 34550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34551 unix_path=`$CYGPATH -u "$windows_path"` 34552 new_path="$unix_path" 34553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34555 new_path="$unix_path" 34556 fi 34557 34558 34559 # Now try to locate executable using which 34560 new_path=`$WHICH "$new_path" 2> /dev/null` 34561 34562 if test "x$new_path" = x; then 34563 # Oops. Which didn't find the executable. 34564 # The splitting of arguments from the executable at a space might have been incorrect, 34565 # since paths with space are more likely in Windows. Give it another try with the whole 34566 # argument. 34567 path="$complete" 34568 arguments="EOL" 34569 new_path="$path" 34570 34571 windows_path="$new_path" 34572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34573 unix_path=`$CYGPATH -u "$windows_path"` 34574 new_path="$unix_path" 34575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34576 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34577 new_path="$unix_path" 34578 fi 34579 34580 34581 new_path=`$WHICH "$new_path" 2> /dev/null` 34582 34583 if test "x$new_path" = x; then 34584 # It's still not found. Now this is an unrecoverable error. 34585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34586 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34587 has_space=`$ECHO "$complete" | $GREP " "` 34588 if test "x$has_space" != x; then 34589 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34590 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34591 fi 34592 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34593 fi 34594 fi 34595 34596 # Now new_path has a complete unix path to the binary 34597 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34598 # Keep paths in /bin as-is, but remove trailing .exe if any 34599 new_path="${new_path/%.exe/}" 34600 # Do not save /bin paths to all_fixpath_prefixes! 34601 else 34602 # Not in mixed or Windows style, start by that. 34603 new_path=`cmd //c echo $new_path` 34604 34605 input_path="$new_path" 34606 # Check if we need to convert this using DOS-style short mode. If the path 34607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34608 # take no chances and rewrite it. 34609 # Note: m4 eats our [], so we need to use [ and ] instead. 34610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34611 if test "x$has_forbidden_chars" != x; then 34612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34613 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34614 fi 34615 34616 # Output is in $new_path 34617 34618 windows_path="$new_path" 34619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34620 unix_path=`$CYGPATH -u "$windows_path"` 34621 new_path="$unix_path" 34622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34624 new_path="$unix_path" 34625 fi 34626 34627 # remove trailing .exe if any 34628 new_path="${new_path/%.exe/}" 34629 34630 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34631 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34632 fi 34633 34634 else 34635 # We're on a posix platform. Hooray! :) 34636 # First separate the path from the arguments. This will split at the first 34637 # space. 34638 complete="$DUMPBIN" 34639 path="${complete%% *}" 34640 tmp="$complete EOL" 34641 arguments="${tmp#* }" 34642 34643 # Cannot rely on the command "which" here since it doesn't always work. 34644 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34645 if test -z "$is_absolute_path"; then 34646 # Path to executable is not absolute. Find it. 34647 IFS_save="$IFS" 34648 IFS=: 34649 for p in $PATH; do 34650 if test -f "$p/$path" && test -x "$p/$path"; then 34651 new_path="$p/$path" 34652 break 34653 fi 34654 done 34655 IFS="$IFS_save" 34656 else 34657 # This is an absolute path, we can use it without further modifications. 34658 new_path="$path" 34659 fi 34660 34661 if test "x$new_path" = x; then 34662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34663 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34664 has_space=`$ECHO "$complete" | $GREP " "` 34665 if test "x$has_space" != x; then 34666 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34667 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34668 fi 34669 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34670 fi 34671 fi 34672 34673 # Now join together the path and the arguments once again 34674 if test "x$arguments" != xEOL; then 34675 new_complete="$new_path ${arguments% *}" 34676 else 34677 new_complete="$new_path" 34678 fi 34679 34680 if test "x$complete" != "x$new_complete"; then 34681 DUMPBIN="$new_complete" 34682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34683 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34684 fi 34685 34686 fi 34687 34688 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34689 34690 34691 # Publish this variable in the help. 34692 34693 34694 if test "x$STRIP" = x; then 34695 # The variable is not set by user, try to locate tool using the code snippet 34696 for ac_prog in strip 34697 do 34698 # Extract the first word of "$ac_prog", so it can be a program name with args. 34699 set dummy $ac_prog; ac_word=$2 34700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34701 $as_echo_n "checking for $ac_word... " >&6; } 34702 if ${ac_cv_path_STRIP+:} false; then : 34703 $as_echo_n "(cached) " >&6 34704 else 34705 case $STRIP in 34706 [\\/]* | ?:[\\/]*) 34707 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34708 ;; 34709 *) 34710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34711 for as_dir in $PATH 34712 do 34713 IFS=$as_save_IFS 34714 test -z "$as_dir" && as_dir=. 34715 for ac_exec_ext in '' $ac_executable_extensions; do 34716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34717 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34719 break 2 34720 fi 34721 done 34722 done 34723 IFS=$as_save_IFS 34724 34725 ;; 34726 esac 34727 fi 34728 STRIP=$ac_cv_path_STRIP 34729 if test -n "$STRIP"; then 34730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34731 $as_echo "$STRIP" >&6; } 34732 else 34733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34734 $as_echo "no" >&6; } 34735 fi 34736 34737 34738 test -n "$STRIP" && break 34739 done 34740 34741 else 34742 # The variable is set, but is it from the command line or the environment? 34743 34744 # Try to remove the string !STRIP! from our list. 34745 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34746 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34747 # If it failed, the variable was not from the command line. Ignore it, 34748 # but warn the user (except for BASH, which is always set by the calling BASH). 34749 if test "xSTRIP" != xBASH; then 34750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34751 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34752 fi 34753 # Try to locate tool using the code snippet 34754 for ac_prog in strip 34755 do 34756 # Extract the first word of "$ac_prog", so it can be a program name with args. 34757 set dummy $ac_prog; ac_word=$2 34758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34759 $as_echo_n "checking for $ac_word... " >&6; } 34760 if ${ac_cv_path_STRIP+:} false; then : 34761 $as_echo_n "(cached) " >&6 34762 else 34763 case $STRIP in 34764 [\\/]* | ?:[\\/]*) 34765 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34766 ;; 34767 *) 34768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34769 for as_dir in $PATH 34770 do 34771 IFS=$as_save_IFS 34772 test -z "$as_dir" && as_dir=. 34773 for ac_exec_ext in '' $ac_executable_extensions; do 34774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34775 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34777 break 2 34778 fi 34779 done 34780 done 34781 IFS=$as_save_IFS 34782 34783 ;; 34784 esac 34785 fi 34786 STRIP=$ac_cv_path_STRIP 34787 if test -n "$STRIP"; then 34788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34789 $as_echo "$STRIP" >&6; } 34790 else 34791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34792 $as_echo "no" >&6; } 34793 fi 34794 34795 34796 test -n "$STRIP" && break 34797 done 34798 34799 else 34800 # If it succeeded, then it was overridden by the user. We will use it 34801 # for the tool. 34802 34803 # First remove it from the list of overridden variables, so we can test 34804 # for unknown variables in the end. 34805 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34806 34807 # Check if the provided tool contains a complete path. 34808 tool_specified="$STRIP" 34809 tool_basename="${tool_specified##*/}" 34810 if test "x$tool_basename" = "x$tool_specified"; then 34811 # A command without a complete path is provided, search $PATH. 34812 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34813 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34814 # Extract the first word of "$tool_basename", so it can be a program name with args. 34815 set dummy $tool_basename; ac_word=$2 34816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34817 $as_echo_n "checking for $ac_word... " >&6; } 34818 if ${ac_cv_path_STRIP+:} false; then : 34819 $as_echo_n "(cached) " >&6 34820 else 34821 case $STRIP in 34822 [\\/]* | ?:[\\/]*) 34823 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34824 ;; 34825 *) 34826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34827 for as_dir in $PATH 34828 do 34829 IFS=$as_save_IFS 34830 test -z "$as_dir" && as_dir=. 34831 for ac_exec_ext in '' $ac_executable_extensions; do 34832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34833 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34835 break 2 34836 fi 34837 done 34838 done 34839 IFS=$as_save_IFS 34840 34841 ;; 34842 esac 34843 fi 34844 STRIP=$ac_cv_path_STRIP 34845 if test -n "$STRIP"; then 34846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34847 $as_echo "$STRIP" >&6; } 34848 else 34849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34850 $as_echo "no" >&6; } 34851 fi 34852 34853 34854 if test "x$STRIP" = x; then 34855 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34856 fi 34857 else 34858 # Otherwise we believe it is a complete path. Use it as it is. 34859 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 34860 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 34861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 34862 $as_echo_n "checking for STRIP... " >&6; } 34863 if test ! -x "$tool_specified"; then 34864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34865 $as_echo "not found" >&6; } 34866 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 34867 fi 34868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34869 $as_echo "$tool_specified" >&6; } 34870 fi 34871 fi 34872 fi 34873 34874 34875 34876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34877 34878 # First separate the path from the arguments. This will split at the first 34879 # space. 34880 complete="$STRIP" 34881 path="${complete%% *}" 34882 tmp="$complete EOL" 34883 arguments="${tmp#* }" 34884 34885 # Input might be given as Windows format, start by converting to 34886 # unix format. 34887 new_path=`$CYGPATH -u "$path"` 34888 34889 # Now try to locate executable using which 34890 new_path=`$WHICH "$new_path" 2> /dev/null` 34891 # bat and cmd files are not always considered executable in cygwin causing which 34892 # to not find them 34893 if test "x$new_path" = x \ 34894 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34895 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34896 new_path=`$CYGPATH -u "$path"` 34897 fi 34898 if test "x$new_path" = x; then 34899 # Oops. Which didn't find the executable. 34900 # The splitting of arguments from the executable at a space might have been incorrect, 34901 # since paths with space are more likely in Windows. Give it another try with the whole 34902 # argument. 34903 path="$complete" 34904 arguments="EOL" 34905 new_path=`$CYGPATH -u "$path"` 34906 new_path=`$WHICH "$new_path" 2> /dev/null` 34907 # bat and cmd files are not always considered executable in cygwin causing which 34908 # to not find them 34909 if test "x$new_path" = x \ 34910 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34911 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34912 new_path=`$CYGPATH -u "$path"` 34913 fi 34914 if test "x$new_path" = x; then 34915 # It's still not found. Now this is an unrecoverable error. 34916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34917 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34918 has_space=`$ECHO "$complete" | $GREP " "` 34919 if test "x$has_space" != x; then 34920 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34921 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34922 fi 34923 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34924 fi 34925 fi 34926 34927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34930 # "foo.exe" is OK but "foo" is an error. 34931 # 34932 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34933 # It is also a way to make sure we got the proper file name for the real test later on. 34934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34935 if test "x$test_shortpath" = x; then 34936 # Short path failed, file does not exist as specified. 34937 # Try adding .exe or .cmd 34938 if test -f "${new_path}.exe"; then 34939 input_to_shortpath="${new_path}.exe" 34940 elif test -f "${new_path}.cmd"; then 34941 input_to_shortpath="${new_path}.cmd" 34942 else 34943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 34944 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 34945 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34946 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34947 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34948 fi 34949 else 34950 input_to_shortpath="$new_path" 34951 fi 34952 34953 # Call helper function which possibly converts this using DOS-style short mode. 34954 # If so, the updated path is stored in $new_path. 34955 new_path="$input_to_shortpath" 34956 34957 input_path="$input_to_shortpath" 34958 # Check if we need to convert this using DOS-style short mode. If the path 34959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34960 # take no chances and rewrite it. 34961 # Note: m4 eats our [], so we need to use [ and ] instead. 34962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34963 if test "x$has_forbidden_chars" != x; then 34964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34965 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34966 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34967 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34968 # Going to short mode and back again did indeed matter. Since short mode is 34969 # case insensitive, let's make it lowercase to improve readability. 34970 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34971 # Now convert it back to Unix-stile (cygpath) 34972 input_path=`$CYGPATH -u "$shortmode_path"` 34973 new_path="$input_path" 34974 fi 34975 fi 34976 34977 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34978 if test "x$test_cygdrive_prefix" = x; then 34979 # As a simple fix, exclude /usr/bin since it's not a real path. 34980 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34981 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34982 # a path prefixed by /cygdrive for fixpath to work. 34983 new_path="$CYGWIN_ROOT_PATH$input_path" 34984 fi 34985 fi 34986 34987 # remove trailing .exe if any 34988 new_path="${new_path/%.exe/}" 34989 34990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34991 34992 # First separate the path from the arguments. This will split at the first 34993 # space. 34994 complete="$STRIP" 34995 path="${complete%% *}" 34996 tmp="$complete EOL" 34997 arguments="${tmp#* }" 34998 34999 # Input might be given as Windows format, start by converting to 35000 # unix format. 35001 new_path="$path" 35002 35003 windows_path="$new_path" 35004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35005 unix_path=`$CYGPATH -u "$windows_path"` 35006 new_path="$unix_path" 35007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35009 new_path="$unix_path" 35010 fi 35011 35012 35013 # Now try to locate executable using which 35014 new_path=`$WHICH "$new_path" 2> /dev/null` 35015 35016 if test "x$new_path" = x; then 35017 # Oops. Which didn't find the executable. 35018 # The splitting of arguments from the executable at a space might have been incorrect, 35019 # since paths with space are more likely in Windows. Give it another try with the whole 35020 # argument. 35021 path="$complete" 35022 arguments="EOL" 35023 new_path="$path" 35024 35025 windows_path="$new_path" 35026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35027 unix_path=`$CYGPATH -u "$windows_path"` 35028 new_path="$unix_path" 35029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35031 new_path="$unix_path" 35032 fi 35033 35034 35035 new_path=`$WHICH "$new_path" 2> /dev/null` 35036 35037 if test "x$new_path" = x; then 35038 # It's still not found. Now this is an unrecoverable error. 35039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35040 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35041 has_space=`$ECHO "$complete" | $GREP " "` 35042 if test "x$has_space" != x; then 35043 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35044 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35045 fi 35046 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35047 fi 35048 fi 35049 35050 # Now new_path has a complete unix path to the binary 35051 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35052 # Keep paths in /bin as-is, but remove trailing .exe if any 35053 new_path="${new_path/%.exe/}" 35054 # Do not save /bin paths to all_fixpath_prefixes! 35055 else 35056 # Not in mixed or Windows style, start by that. 35057 new_path=`cmd //c echo $new_path` 35058 35059 input_path="$new_path" 35060 # Check if we need to convert this using DOS-style short mode. If the path 35061 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35062 # take no chances and rewrite it. 35063 # Note: m4 eats our [], so we need to use [ and ] instead. 35064 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35065 if test "x$has_forbidden_chars" != x; then 35066 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35067 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35068 fi 35069 35070 # Output is in $new_path 35071 35072 windows_path="$new_path" 35073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35074 unix_path=`$CYGPATH -u "$windows_path"` 35075 new_path="$unix_path" 35076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35077 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35078 new_path="$unix_path" 35079 fi 35080 35081 # remove trailing .exe if any 35082 new_path="${new_path/%.exe/}" 35083 35084 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35085 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35086 fi 35087 35088 else 35089 # We're on a posix platform. Hooray! :) 35090 # First separate the path from the arguments. This will split at the first 35091 # space. 35092 complete="$STRIP" 35093 path="${complete%% *}" 35094 tmp="$complete EOL" 35095 arguments="${tmp#* }" 35096 35097 # Cannot rely on the command "which" here since it doesn't always work. 35098 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35099 if test -z "$is_absolute_path"; then 35100 # Path to executable is not absolute. Find it. 35101 IFS_save="$IFS" 35102 IFS=: 35103 for p in $PATH; do 35104 if test -f "$p/$path" && test -x "$p/$path"; then 35105 new_path="$p/$path" 35106 break 35107 fi 35108 done 35109 IFS="$IFS_save" 35110 else 35111 # This is an absolute path, we can use it without further modifications. 35112 new_path="$path" 35113 fi 35114 35115 if test "x$new_path" = x; then 35116 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35117 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35118 has_space=`$ECHO "$complete" | $GREP " "` 35119 if test "x$has_space" != x; then 35120 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35121 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35122 fi 35123 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35124 fi 35125 fi 35126 35127 # Now join together the path and the arguments once again 35128 if test "x$arguments" != xEOL; then 35129 new_complete="$new_path ${arguments% *}" 35130 else 35131 new_complete="$new_path" 35132 fi 35133 35134 if test "x$complete" != "x$new_complete"; then 35135 STRIP="$new_complete" 35136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35137 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35138 fi 35139 35140 35141 35142 # Publish this variable in the help. 35143 35144 35145 if test "x$NM" = x; then 35146 # The variable is not set by user, try to locate tool using the code snippet 35147 for ac_prog in nm 35148 do 35149 # Extract the first word of "$ac_prog", so it can be a program name with args. 35150 set dummy $ac_prog; ac_word=$2 35151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35152 $as_echo_n "checking for $ac_word... " >&6; } 35153 if ${ac_cv_path_NM+:} false; then : 35154 $as_echo_n "(cached) " >&6 35155 else 35156 case $NM in 35157 [\\/]* | ?:[\\/]*) 35158 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35159 ;; 35160 *) 35161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35162 for as_dir in $PATH 35163 do 35164 IFS=$as_save_IFS 35165 test -z "$as_dir" && as_dir=. 35166 for ac_exec_ext in '' $ac_executable_extensions; do 35167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35168 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35170 break 2 35171 fi 35172 done 35173 done 35174 IFS=$as_save_IFS 35175 35176 ;; 35177 esac 35178 fi 35179 NM=$ac_cv_path_NM 35180 if test -n "$NM"; then 35181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35182 $as_echo "$NM" >&6; } 35183 else 35184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35185 $as_echo "no" >&6; } 35186 fi 35187 35188 35189 test -n "$NM" && break 35190 done 35191 35192 else 35193 # The variable is set, but is it from the command line or the environment? 35194 35195 # Try to remove the string !NM! from our list. 35196 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35197 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35198 # If it failed, the variable was not from the command line. Ignore it, 35199 # but warn the user (except for BASH, which is always set by the calling BASH). 35200 if test "xNM" != xBASH; then 35201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35202 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35203 fi 35204 # Try to locate tool using the code snippet 35205 for ac_prog in nm 35206 do 35207 # Extract the first word of "$ac_prog", so it can be a program name with args. 35208 set dummy $ac_prog; ac_word=$2 35209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35210 $as_echo_n "checking for $ac_word... " >&6; } 35211 if ${ac_cv_path_NM+:} false; then : 35212 $as_echo_n "(cached) " >&6 35213 else 35214 case $NM in 35215 [\\/]* | ?:[\\/]*) 35216 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35217 ;; 35218 *) 35219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35220 for as_dir in $PATH 35221 do 35222 IFS=$as_save_IFS 35223 test -z "$as_dir" && as_dir=. 35224 for ac_exec_ext in '' $ac_executable_extensions; do 35225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35226 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35228 break 2 35229 fi 35230 done 35231 done 35232 IFS=$as_save_IFS 35233 35234 ;; 35235 esac 35236 fi 35237 NM=$ac_cv_path_NM 35238 if test -n "$NM"; then 35239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35240 $as_echo "$NM" >&6; } 35241 else 35242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35243 $as_echo "no" >&6; } 35244 fi 35245 35246 35247 test -n "$NM" && break 35248 done 35249 35250 else 35251 # If it succeeded, then it was overridden by the user. We will use it 35252 # for the tool. 35253 35254 # First remove it from the list of overridden variables, so we can test 35255 # for unknown variables in the end. 35256 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35257 35258 # Check if the provided tool contains a complete path. 35259 tool_specified="$NM" 35260 tool_basename="${tool_specified##*/}" 35261 if test "x$tool_basename" = "x$tool_specified"; then 35262 # A command without a complete path is provided, search $PATH. 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35264 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35265 # Extract the first word of "$tool_basename", so it can be a program name with args. 35266 set dummy $tool_basename; ac_word=$2 35267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35268 $as_echo_n "checking for $ac_word... " >&6; } 35269 if ${ac_cv_path_NM+:} false; then : 35270 $as_echo_n "(cached) " >&6 35271 else 35272 case $NM in 35273 [\\/]* | ?:[\\/]*) 35274 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35275 ;; 35276 *) 35277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35278 for as_dir in $PATH 35279 do 35280 IFS=$as_save_IFS 35281 test -z "$as_dir" && as_dir=. 35282 for ac_exec_ext in '' $ac_executable_extensions; do 35283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35284 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35286 break 2 35287 fi 35288 done 35289 done 35290 IFS=$as_save_IFS 35291 35292 ;; 35293 esac 35294 fi 35295 NM=$ac_cv_path_NM 35296 if test -n "$NM"; then 35297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35298 $as_echo "$NM" >&6; } 35299 else 35300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35301 $as_echo "no" >&6; } 35302 fi 35303 35304 35305 if test "x$NM" = x; then 35306 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35307 fi 35308 else 35309 # Otherwise we believe it is a complete path. Use it as it is. 35310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35311 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35313 $as_echo_n "checking for NM... " >&6; } 35314 if test ! -x "$tool_specified"; then 35315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35316 $as_echo "not found" >&6; } 35317 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35318 fi 35319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35320 $as_echo "$tool_specified" >&6; } 35321 fi 35322 fi 35323 fi 35324 35325 35326 35327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35328 35329 # First separate the path from the arguments. This will split at the first 35330 # space. 35331 complete="$NM" 35332 path="${complete%% *}" 35333 tmp="$complete EOL" 35334 arguments="${tmp#* }" 35335 35336 # Input might be given as Windows format, start by converting to 35337 # unix format. 35338 new_path=`$CYGPATH -u "$path"` 35339 35340 # Now try to locate executable using which 35341 new_path=`$WHICH "$new_path" 2> /dev/null` 35342 # bat and cmd files are not always considered executable in cygwin causing which 35343 # to not find them 35344 if test "x$new_path" = x \ 35345 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35346 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35347 new_path=`$CYGPATH -u "$path"` 35348 fi 35349 if test "x$new_path" = x; then 35350 # Oops. Which didn't find the executable. 35351 # The splitting of arguments from the executable at a space might have been incorrect, 35352 # since paths with space are more likely in Windows. Give it another try with the whole 35353 # argument. 35354 path="$complete" 35355 arguments="EOL" 35356 new_path=`$CYGPATH -u "$path"` 35357 new_path=`$WHICH "$new_path" 2> /dev/null` 35358 # bat and cmd files are not always considered executable in cygwin causing which 35359 # to not find them 35360 if test "x$new_path" = x \ 35361 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35362 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35363 new_path=`$CYGPATH -u "$path"` 35364 fi 35365 if test "x$new_path" = x; then 35366 # It's still not found. Now this is an unrecoverable error. 35367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35368 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35369 has_space=`$ECHO "$complete" | $GREP " "` 35370 if test "x$has_space" != x; then 35371 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35372 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35373 fi 35374 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35375 fi 35376 fi 35377 35378 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35379 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35380 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35381 # "foo.exe" is OK but "foo" is an error. 35382 # 35383 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35384 # It is also a way to make sure we got the proper file name for the real test later on. 35385 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35386 if test "x$test_shortpath" = x; then 35387 # Short path failed, file does not exist as specified. 35388 # Try adding .exe or .cmd 35389 if test -f "${new_path}.exe"; then 35390 input_to_shortpath="${new_path}.exe" 35391 elif test -f "${new_path}.cmd"; then 35392 input_to_shortpath="${new_path}.cmd" 35393 else 35394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35395 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35396 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35397 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35398 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35399 fi 35400 else 35401 input_to_shortpath="$new_path" 35402 fi 35403 35404 # Call helper function which possibly converts this using DOS-style short mode. 35405 # If so, the updated path is stored in $new_path. 35406 new_path="$input_to_shortpath" 35407 35408 input_path="$input_to_shortpath" 35409 # Check if we need to convert this using DOS-style short mode. If the path 35410 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35411 # take no chances and rewrite it. 35412 # Note: m4 eats our [], so we need to use [ and ] instead. 35413 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35414 if test "x$has_forbidden_chars" != x; then 35415 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35416 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35417 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35418 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35419 # Going to short mode and back again did indeed matter. Since short mode is 35420 # case insensitive, let's make it lowercase to improve readability. 35421 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35422 # Now convert it back to Unix-stile (cygpath) 35423 input_path=`$CYGPATH -u "$shortmode_path"` 35424 new_path="$input_path" 35425 fi 35426 fi 35427 35428 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35429 if test "x$test_cygdrive_prefix" = x; then 35430 # As a simple fix, exclude /usr/bin since it's not a real path. 35431 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35432 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35433 # a path prefixed by /cygdrive for fixpath to work. 35434 new_path="$CYGWIN_ROOT_PATH$input_path" 35435 fi 35436 fi 35437 35438 # remove trailing .exe if any 35439 new_path="${new_path/%.exe/}" 35440 35441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35442 35443 # First separate the path from the arguments. This will split at the first 35444 # space. 35445 complete="$NM" 35446 path="${complete%% *}" 35447 tmp="$complete EOL" 35448 arguments="${tmp#* }" 35449 35450 # Input might be given as Windows format, start by converting to 35451 # unix format. 35452 new_path="$path" 35453 35454 windows_path="$new_path" 35455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35456 unix_path=`$CYGPATH -u "$windows_path"` 35457 new_path="$unix_path" 35458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35460 new_path="$unix_path" 35461 fi 35462 35463 35464 # Now try to locate executable using which 35465 new_path=`$WHICH "$new_path" 2> /dev/null` 35466 35467 if test "x$new_path" = x; then 35468 # Oops. Which didn't find the executable. 35469 # The splitting of arguments from the executable at a space might have been incorrect, 35470 # since paths with space are more likely in Windows. Give it another try with the whole 35471 # argument. 35472 path="$complete" 35473 arguments="EOL" 35474 new_path="$path" 35475 35476 windows_path="$new_path" 35477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35478 unix_path=`$CYGPATH -u "$windows_path"` 35479 new_path="$unix_path" 35480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35482 new_path="$unix_path" 35483 fi 35484 35485 35486 new_path=`$WHICH "$new_path" 2> /dev/null` 35487 35488 if test "x$new_path" = x; then 35489 # It's still not found. Now this is an unrecoverable error. 35490 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35491 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35492 has_space=`$ECHO "$complete" | $GREP " "` 35493 if test "x$has_space" != x; then 35494 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35495 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35496 fi 35497 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35498 fi 35499 fi 35500 35501 # Now new_path has a complete unix path to the binary 35502 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35503 # Keep paths in /bin as-is, but remove trailing .exe if any 35504 new_path="${new_path/%.exe/}" 35505 # Do not save /bin paths to all_fixpath_prefixes! 35506 else 35507 # Not in mixed or Windows style, start by that. 35508 new_path=`cmd //c echo $new_path` 35509 35510 input_path="$new_path" 35511 # Check if we need to convert this using DOS-style short mode. If the path 35512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35513 # take no chances and rewrite it. 35514 # Note: m4 eats our [], so we need to use [ and ] instead. 35515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35516 if test "x$has_forbidden_chars" != x; then 35517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35518 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35519 fi 35520 35521 # Output is in $new_path 35522 35523 windows_path="$new_path" 35524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35525 unix_path=`$CYGPATH -u "$windows_path"` 35526 new_path="$unix_path" 35527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35529 new_path="$unix_path" 35530 fi 35531 35532 # remove trailing .exe if any 35533 new_path="${new_path/%.exe/}" 35534 35535 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35536 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35537 fi 35538 35539 else 35540 # We're on a posix platform. Hooray! :) 35541 # First separate the path from the arguments. This will split at the first 35542 # space. 35543 complete="$NM" 35544 path="${complete%% *}" 35545 tmp="$complete EOL" 35546 arguments="${tmp#* }" 35547 35548 # Cannot rely on the command "which" here since it doesn't always work. 35549 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35550 if test -z "$is_absolute_path"; then 35551 # Path to executable is not absolute. Find it. 35552 IFS_save="$IFS" 35553 IFS=: 35554 for p in $PATH; do 35555 if test -f "$p/$path" && test -x "$p/$path"; then 35556 new_path="$p/$path" 35557 break 35558 fi 35559 done 35560 IFS="$IFS_save" 35561 else 35562 # This is an absolute path, we can use it without further modifications. 35563 new_path="$path" 35564 fi 35565 35566 if test "x$new_path" = x; then 35567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35568 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35569 has_space=`$ECHO "$complete" | $GREP " "` 35570 if test "x$has_space" != x; then 35571 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35572 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35573 fi 35574 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35575 fi 35576 fi 35577 35578 # Now join together the path and the arguments once again 35579 if test "x$arguments" != xEOL; then 35580 new_complete="$new_path ${arguments% *}" 35581 else 35582 new_complete="$new_path" 35583 fi 35584 35585 if test "x$complete" != "x$new_complete"; then 35586 NM="$new_complete" 35587 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35588 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35589 fi 35590 35591 35592 35593 # Publish this variable in the help. 35594 35595 35596 if test "x$GNM" = x; then 35597 # The variable is not set by user, try to locate tool using the code snippet 35598 for ac_prog in gnm 35599 do 35600 # Extract the first word of "$ac_prog", so it can be a program name with args. 35601 set dummy $ac_prog; ac_word=$2 35602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35603 $as_echo_n "checking for $ac_word... " >&6; } 35604 if ${ac_cv_path_GNM+:} false; then : 35605 $as_echo_n "(cached) " >&6 35606 else 35607 case $GNM in 35608 [\\/]* | ?:[\\/]*) 35609 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35610 ;; 35611 *) 35612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35613 for as_dir in $PATH 35614 do 35615 IFS=$as_save_IFS 35616 test -z "$as_dir" && as_dir=. 35617 for ac_exec_ext in '' $ac_executable_extensions; do 35618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35619 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35621 break 2 35622 fi 35623 done 35624 done 35625 IFS=$as_save_IFS 35626 35627 ;; 35628 esac 35629 fi 35630 GNM=$ac_cv_path_GNM 35631 if test -n "$GNM"; then 35632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35633 $as_echo "$GNM" >&6; } 35634 else 35635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35636 $as_echo "no" >&6; } 35637 fi 35638 35639 35640 test -n "$GNM" && break 35641 done 35642 35643 else 35644 # The variable is set, but is it from the command line or the environment? 35645 35646 # Try to remove the string !GNM! from our list. 35647 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35648 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35649 # If it failed, the variable was not from the command line. Ignore it, 35650 # but warn the user (except for BASH, which is always set by the calling BASH). 35651 if test "xGNM" != xBASH; then 35652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35653 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35654 fi 35655 # Try to locate tool using the code snippet 35656 for ac_prog in gnm 35657 do 35658 # Extract the first word of "$ac_prog", so it can be a program name with args. 35659 set dummy $ac_prog; ac_word=$2 35660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35661 $as_echo_n "checking for $ac_word... " >&6; } 35662 if ${ac_cv_path_GNM+:} false; then : 35663 $as_echo_n "(cached) " >&6 35664 else 35665 case $GNM in 35666 [\\/]* | ?:[\\/]*) 35667 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35668 ;; 35669 *) 35670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35671 for as_dir in $PATH 35672 do 35673 IFS=$as_save_IFS 35674 test -z "$as_dir" && as_dir=. 35675 for ac_exec_ext in '' $ac_executable_extensions; do 35676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35677 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35679 break 2 35680 fi 35681 done 35682 done 35683 IFS=$as_save_IFS 35684 35685 ;; 35686 esac 35687 fi 35688 GNM=$ac_cv_path_GNM 35689 if test -n "$GNM"; then 35690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35691 $as_echo "$GNM" >&6; } 35692 else 35693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35694 $as_echo "no" >&6; } 35695 fi 35696 35697 35698 test -n "$GNM" && break 35699 done 35700 35701 else 35702 # If it succeeded, then it was overridden by the user. We will use it 35703 # for the tool. 35704 35705 # First remove it from the list of overridden variables, so we can test 35706 # for unknown variables in the end. 35707 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35708 35709 # Check if the provided tool contains a complete path. 35710 tool_specified="$GNM" 35711 tool_basename="${tool_specified##*/}" 35712 if test "x$tool_basename" = "x$tool_specified"; then 35713 # A command without a complete path is provided, search $PATH. 35714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35715 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35716 # Extract the first word of "$tool_basename", so it can be a program name with args. 35717 set dummy $tool_basename; ac_word=$2 35718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35719 $as_echo_n "checking for $ac_word... " >&6; } 35720 if ${ac_cv_path_GNM+:} false; then : 35721 $as_echo_n "(cached) " >&6 35722 else 35723 case $GNM in 35724 [\\/]* | ?:[\\/]*) 35725 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35726 ;; 35727 *) 35728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35729 for as_dir in $PATH 35730 do 35731 IFS=$as_save_IFS 35732 test -z "$as_dir" && as_dir=. 35733 for ac_exec_ext in '' $ac_executable_extensions; do 35734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35735 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35737 break 2 35738 fi 35739 done 35740 done 35741 IFS=$as_save_IFS 35742 35743 ;; 35744 esac 35745 fi 35746 GNM=$ac_cv_path_GNM 35747 if test -n "$GNM"; then 35748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35749 $as_echo "$GNM" >&6; } 35750 else 35751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35752 $as_echo "no" >&6; } 35753 fi 35754 35755 35756 if test "x$GNM" = x; then 35757 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35758 fi 35759 else 35760 # Otherwise we believe it is a complete path. Use it as it is. 35761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35762 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35764 $as_echo_n "checking for GNM... " >&6; } 35765 if test ! -x "$tool_specified"; then 35766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35767 $as_echo "not found" >&6; } 35768 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35769 fi 35770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35771 $as_echo "$tool_specified" >&6; } 35772 fi 35773 fi 35774 fi 35775 35776 35777 35778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35779 35780 # First separate the path from the arguments. This will split at the first 35781 # space. 35782 complete="$GNM" 35783 path="${complete%% *}" 35784 tmp="$complete EOL" 35785 arguments="${tmp#* }" 35786 35787 # Input might be given as Windows format, start by converting to 35788 # unix format. 35789 new_path=`$CYGPATH -u "$path"` 35790 35791 # Now try to locate executable using which 35792 new_path=`$WHICH "$new_path" 2> /dev/null` 35793 # bat and cmd files are not always considered executable in cygwin causing which 35794 # to not find them 35795 if test "x$new_path" = x \ 35796 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35797 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35798 new_path=`$CYGPATH -u "$path"` 35799 fi 35800 if test "x$new_path" = x; then 35801 # Oops. Which didn't find the executable. 35802 # The splitting of arguments from the executable at a space might have been incorrect, 35803 # since paths with space are more likely in Windows. Give it another try with the whole 35804 # argument. 35805 path="$complete" 35806 arguments="EOL" 35807 new_path=`$CYGPATH -u "$path"` 35808 new_path=`$WHICH "$new_path" 2> /dev/null` 35809 # bat and cmd files are not always considered executable in cygwin causing which 35810 # to not find them 35811 if test "x$new_path" = x \ 35812 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35813 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35814 new_path=`$CYGPATH -u "$path"` 35815 fi 35816 if test "x$new_path" = x; then 35817 # It's still not found. Now this is an unrecoverable error. 35818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35819 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35820 has_space=`$ECHO "$complete" | $GREP " "` 35821 if test "x$has_space" != x; then 35822 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35823 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35824 fi 35825 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35826 fi 35827 fi 35828 35829 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35830 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35831 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35832 # "foo.exe" is OK but "foo" is an error. 35833 # 35834 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35835 # It is also a way to make sure we got the proper file name for the real test later on. 35836 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35837 if test "x$test_shortpath" = x; then 35838 # Short path failed, file does not exist as specified. 35839 # Try adding .exe or .cmd 35840 if test -f "${new_path}.exe"; then 35841 input_to_shortpath="${new_path}.exe" 35842 elif test -f "${new_path}.cmd"; then 35843 input_to_shortpath="${new_path}.cmd" 35844 else 35845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 35846 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 35847 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35848 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35849 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35850 fi 35851 else 35852 input_to_shortpath="$new_path" 35853 fi 35854 35855 # Call helper function which possibly converts this using DOS-style short mode. 35856 # If so, the updated path is stored in $new_path. 35857 new_path="$input_to_shortpath" 35858 35859 input_path="$input_to_shortpath" 35860 # Check if we need to convert this using DOS-style short mode. If the path 35861 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35862 # take no chances and rewrite it. 35863 # Note: m4 eats our [], so we need to use [ and ] instead. 35864 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35865 if test "x$has_forbidden_chars" != x; then 35866 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35867 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35868 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35869 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35870 # Going to short mode and back again did indeed matter. Since short mode is 35871 # case insensitive, let's make it lowercase to improve readability. 35872 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35873 # Now convert it back to Unix-stile (cygpath) 35874 input_path=`$CYGPATH -u "$shortmode_path"` 35875 new_path="$input_path" 35876 fi 35877 fi 35878 35879 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35880 if test "x$test_cygdrive_prefix" = x; then 35881 # As a simple fix, exclude /usr/bin since it's not a real path. 35882 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35883 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35884 # a path prefixed by /cygdrive for fixpath to work. 35885 new_path="$CYGWIN_ROOT_PATH$input_path" 35886 fi 35887 fi 35888 35889 # remove trailing .exe if any 35890 new_path="${new_path/%.exe/}" 35891 35892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35893 35894 # First separate the path from the arguments. This will split at the first 35895 # space. 35896 complete="$GNM" 35897 path="${complete%% *}" 35898 tmp="$complete EOL" 35899 arguments="${tmp#* }" 35900 35901 # Input might be given as Windows format, start by converting to 35902 # unix format. 35903 new_path="$path" 35904 35905 windows_path="$new_path" 35906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35907 unix_path=`$CYGPATH -u "$windows_path"` 35908 new_path="$unix_path" 35909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35910 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35911 new_path="$unix_path" 35912 fi 35913 35914 35915 # Now try to locate executable using which 35916 new_path=`$WHICH "$new_path" 2> /dev/null` 35917 35918 if test "x$new_path" = x; then 35919 # Oops. Which didn't find the executable. 35920 # The splitting of arguments from the executable at a space might have been incorrect, 35921 # since paths with space are more likely in Windows. Give it another try with the whole 35922 # argument. 35923 path="$complete" 35924 arguments="EOL" 35925 new_path="$path" 35926 35927 windows_path="$new_path" 35928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35929 unix_path=`$CYGPATH -u "$windows_path"` 35930 new_path="$unix_path" 35931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35933 new_path="$unix_path" 35934 fi 35935 35936 35937 new_path=`$WHICH "$new_path" 2> /dev/null` 35938 35939 if test "x$new_path" = x; then 35940 # It's still not found. Now this is an unrecoverable error. 35941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35942 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35943 has_space=`$ECHO "$complete" | $GREP " "` 35944 if test "x$has_space" != x; then 35945 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35946 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35947 fi 35948 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35949 fi 35950 fi 35951 35952 # Now new_path has a complete unix path to the binary 35953 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35954 # Keep paths in /bin as-is, but remove trailing .exe if any 35955 new_path="${new_path/%.exe/}" 35956 # Do not save /bin paths to all_fixpath_prefixes! 35957 else 35958 # Not in mixed or Windows style, start by that. 35959 new_path=`cmd //c echo $new_path` 35960 35961 input_path="$new_path" 35962 # Check if we need to convert this using DOS-style short mode. If the path 35963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35964 # take no chances and rewrite it. 35965 # Note: m4 eats our [], so we need to use [ and ] instead. 35966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35967 if test "x$has_forbidden_chars" != x; then 35968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35969 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35970 fi 35971 35972 # Output is in $new_path 35973 35974 windows_path="$new_path" 35975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35976 unix_path=`$CYGPATH -u "$windows_path"` 35977 new_path="$unix_path" 35978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35980 new_path="$unix_path" 35981 fi 35982 35983 # remove trailing .exe if any 35984 new_path="${new_path/%.exe/}" 35985 35986 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35987 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35988 fi 35989 35990 else 35991 # We're on a posix platform. Hooray! :) 35992 # First separate the path from the arguments. This will split at the first 35993 # space. 35994 complete="$GNM" 35995 path="${complete%% *}" 35996 tmp="$complete EOL" 35997 arguments="${tmp#* }" 35998 35999 # Cannot rely on the command "which" here since it doesn't always work. 36000 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36001 if test -z "$is_absolute_path"; then 36002 # Path to executable is not absolute. Find it. 36003 IFS_save="$IFS" 36004 IFS=: 36005 for p in $PATH; do 36006 if test -f "$p/$path" && test -x "$p/$path"; then 36007 new_path="$p/$path" 36008 break 36009 fi 36010 done 36011 IFS="$IFS_save" 36012 else 36013 # This is an absolute path, we can use it without further modifications. 36014 new_path="$path" 36015 fi 36016 36017 if test "x$new_path" = x; then 36018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36019 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36020 has_space=`$ECHO "$complete" | $GREP " "` 36021 if test "x$has_space" != x; then 36022 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36023 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36024 fi 36025 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36026 fi 36027 fi 36028 36029 # Now join together the path and the arguments once again 36030 if test "x$arguments" != xEOL; then 36031 new_complete="$new_path ${arguments% *}" 36032 else 36033 new_complete="$new_path" 36034 fi 36035 36036 if test "x$complete" != "x$new_complete"; then 36037 GNM="$new_complete" 36038 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36039 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36040 fi 36041 36042 36043 36044 36045 # Publish this variable in the help. 36046 36047 36048 if test "x$MCS" = x; then 36049 # The variable is not set by user, try to locate tool using the code snippet 36050 for ac_prog in mcs 36051 do 36052 # Extract the first word of "$ac_prog", so it can be a program name with args. 36053 set dummy $ac_prog; ac_word=$2 36054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36055 $as_echo_n "checking for $ac_word... " >&6; } 36056 if ${ac_cv_path_MCS+:} false; then : 36057 $as_echo_n "(cached) " >&6 36058 else 36059 case $MCS in 36060 [\\/]* | ?:[\\/]*) 36061 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36062 ;; 36063 *) 36064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36065 for as_dir in $PATH 36066 do 36067 IFS=$as_save_IFS 36068 test -z "$as_dir" && as_dir=. 36069 for ac_exec_ext in '' $ac_executable_extensions; do 36070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36071 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36073 break 2 36074 fi 36075 done 36076 done 36077 IFS=$as_save_IFS 36078 36079 ;; 36080 esac 36081 fi 36082 MCS=$ac_cv_path_MCS 36083 if test -n "$MCS"; then 36084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36085 $as_echo "$MCS" >&6; } 36086 else 36087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36088 $as_echo "no" >&6; } 36089 fi 36090 36091 36092 test -n "$MCS" && break 36093 done 36094 36095 else 36096 # The variable is set, but is it from the command line or the environment? 36097 36098 # Try to remove the string !MCS! from our list. 36099 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36100 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36101 # If it failed, the variable was not from the command line. Ignore it, 36102 # but warn the user (except for BASH, which is always set by the calling BASH). 36103 if test "xMCS" != xBASH; then 36104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36105 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36106 fi 36107 # Try to locate tool using the code snippet 36108 for ac_prog in mcs 36109 do 36110 # Extract the first word of "$ac_prog", so it can be a program name with args. 36111 set dummy $ac_prog; ac_word=$2 36112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36113 $as_echo_n "checking for $ac_word... " >&6; } 36114 if ${ac_cv_path_MCS+:} false; then : 36115 $as_echo_n "(cached) " >&6 36116 else 36117 case $MCS in 36118 [\\/]* | ?:[\\/]*) 36119 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36120 ;; 36121 *) 36122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36123 for as_dir in $PATH 36124 do 36125 IFS=$as_save_IFS 36126 test -z "$as_dir" && as_dir=. 36127 for ac_exec_ext in '' $ac_executable_extensions; do 36128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36129 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36131 break 2 36132 fi 36133 done 36134 done 36135 IFS=$as_save_IFS 36136 36137 ;; 36138 esac 36139 fi 36140 MCS=$ac_cv_path_MCS 36141 if test -n "$MCS"; then 36142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36143 $as_echo "$MCS" >&6; } 36144 else 36145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36146 $as_echo "no" >&6; } 36147 fi 36148 36149 36150 test -n "$MCS" && break 36151 done 36152 36153 else 36154 # If it succeeded, then it was overridden by the user. We will use it 36155 # for the tool. 36156 36157 # First remove it from the list of overridden variables, so we can test 36158 # for unknown variables in the end. 36159 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36160 36161 # Check if the provided tool contains a complete path. 36162 tool_specified="$MCS" 36163 tool_basename="${tool_specified##*/}" 36164 if test "x$tool_basename" = "x$tool_specified"; then 36165 # A command without a complete path is provided, search $PATH. 36166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36167 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36168 # Extract the first word of "$tool_basename", so it can be a program name with args. 36169 set dummy $tool_basename; ac_word=$2 36170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36171 $as_echo_n "checking for $ac_word... " >&6; } 36172 if ${ac_cv_path_MCS+:} false; then : 36173 $as_echo_n "(cached) " >&6 36174 else 36175 case $MCS in 36176 [\\/]* | ?:[\\/]*) 36177 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36178 ;; 36179 *) 36180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36181 for as_dir in $PATH 36182 do 36183 IFS=$as_save_IFS 36184 test -z "$as_dir" && as_dir=. 36185 for ac_exec_ext in '' $ac_executable_extensions; do 36186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36187 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36189 break 2 36190 fi 36191 done 36192 done 36193 IFS=$as_save_IFS 36194 36195 ;; 36196 esac 36197 fi 36198 MCS=$ac_cv_path_MCS 36199 if test -n "$MCS"; then 36200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36201 $as_echo "$MCS" >&6; } 36202 else 36203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36204 $as_echo "no" >&6; } 36205 fi 36206 36207 36208 if test "x$MCS" = x; then 36209 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36210 fi 36211 else 36212 # Otherwise we believe it is a complete path. Use it as it is. 36213 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36214 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36216 $as_echo_n "checking for MCS... " >&6; } 36217 if test ! -x "$tool_specified"; then 36218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36219 $as_echo "not found" >&6; } 36220 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36221 fi 36222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36223 $as_echo "$tool_specified" >&6; } 36224 fi 36225 fi 36226 fi 36227 36228 36229 36230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36231 36232 # First separate the path from the arguments. This will split at the first 36233 # space. 36234 complete="$MCS" 36235 path="${complete%% *}" 36236 tmp="$complete EOL" 36237 arguments="${tmp#* }" 36238 36239 # Input might be given as Windows format, start by converting to 36240 # unix format. 36241 new_path=`$CYGPATH -u "$path"` 36242 36243 # Now try to locate executable using which 36244 new_path=`$WHICH "$new_path" 2> /dev/null` 36245 # bat and cmd files are not always considered executable in cygwin causing which 36246 # to not find them 36247 if test "x$new_path" = x \ 36248 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36249 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36250 new_path=`$CYGPATH -u "$path"` 36251 fi 36252 if test "x$new_path" = x; then 36253 # Oops. Which didn't find the executable. 36254 # The splitting of arguments from the executable at a space might have been incorrect, 36255 # since paths with space are more likely in Windows. Give it another try with the whole 36256 # argument. 36257 path="$complete" 36258 arguments="EOL" 36259 new_path=`$CYGPATH -u "$path"` 36260 new_path=`$WHICH "$new_path" 2> /dev/null` 36261 # bat and cmd files are not always considered executable in cygwin causing which 36262 # to not find them 36263 if test "x$new_path" = x \ 36264 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36265 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36266 new_path=`$CYGPATH -u "$path"` 36267 fi 36268 if test "x$new_path" = x; then 36269 # It's still not found. Now this is an unrecoverable error. 36270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36271 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36272 has_space=`$ECHO "$complete" | $GREP " "` 36273 if test "x$has_space" != x; then 36274 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36275 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36276 fi 36277 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36278 fi 36279 fi 36280 36281 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36282 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36283 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36284 # "foo.exe" is OK but "foo" is an error. 36285 # 36286 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36287 # It is also a way to make sure we got the proper file name for the real test later on. 36288 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36289 if test "x$test_shortpath" = x; then 36290 # Short path failed, file does not exist as specified. 36291 # Try adding .exe or .cmd 36292 if test -f "${new_path}.exe"; then 36293 input_to_shortpath="${new_path}.exe" 36294 elif test -f "${new_path}.cmd"; then 36295 input_to_shortpath="${new_path}.cmd" 36296 else 36297 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36298 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36299 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36300 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36301 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36302 fi 36303 else 36304 input_to_shortpath="$new_path" 36305 fi 36306 36307 # Call helper function which possibly converts this using DOS-style short mode. 36308 # If so, the updated path is stored in $new_path. 36309 new_path="$input_to_shortpath" 36310 36311 input_path="$input_to_shortpath" 36312 # Check if we need to convert this using DOS-style short mode. If the path 36313 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36314 # take no chances and rewrite it. 36315 # Note: m4 eats our [], so we need to use [ and ] instead. 36316 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36317 if test "x$has_forbidden_chars" != x; then 36318 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36319 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36320 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36321 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36322 # Going to short mode and back again did indeed matter. Since short mode is 36323 # case insensitive, let's make it lowercase to improve readability. 36324 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36325 # Now convert it back to Unix-stile (cygpath) 36326 input_path=`$CYGPATH -u "$shortmode_path"` 36327 new_path="$input_path" 36328 fi 36329 fi 36330 36331 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36332 if test "x$test_cygdrive_prefix" = x; then 36333 # As a simple fix, exclude /usr/bin since it's not a real path. 36334 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36335 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36336 # a path prefixed by /cygdrive for fixpath to work. 36337 new_path="$CYGWIN_ROOT_PATH$input_path" 36338 fi 36339 fi 36340 36341 # remove trailing .exe if any 36342 new_path="${new_path/%.exe/}" 36343 36344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36345 36346 # First separate the path from the arguments. This will split at the first 36347 # space. 36348 complete="$MCS" 36349 path="${complete%% *}" 36350 tmp="$complete EOL" 36351 arguments="${tmp#* }" 36352 36353 # Input might be given as Windows format, start by converting to 36354 # unix format. 36355 new_path="$path" 36356 36357 windows_path="$new_path" 36358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36359 unix_path=`$CYGPATH -u "$windows_path"` 36360 new_path="$unix_path" 36361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36363 new_path="$unix_path" 36364 fi 36365 36366 36367 # Now try to locate executable using which 36368 new_path=`$WHICH "$new_path" 2> /dev/null` 36369 36370 if test "x$new_path" = x; then 36371 # Oops. Which didn't find the executable. 36372 # The splitting of arguments from the executable at a space might have been incorrect, 36373 # since paths with space are more likely in Windows. Give it another try with the whole 36374 # argument. 36375 path="$complete" 36376 arguments="EOL" 36377 new_path="$path" 36378 36379 windows_path="$new_path" 36380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36381 unix_path=`$CYGPATH -u "$windows_path"` 36382 new_path="$unix_path" 36383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36385 new_path="$unix_path" 36386 fi 36387 36388 36389 new_path=`$WHICH "$new_path" 2> /dev/null` 36390 36391 if test "x$new_path" = x; then 36392 # It's still not found. Now this is an unrecoverable error. 36393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36394 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36395 has_space=`$ECHO "$complete" | $GREP " "` 36396 if test "x$has_space" != x; then 36397 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36398 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36399 fi 36400 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36401 fi 36402 fi 36403 36404 # Now new_path has a complete unix path to the binary 36405 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36406 # Keep paths in /bin as-is, but remove trailing .exe if any 36407 new_path="${new_path/%.exe/}" 36408 # Do not save /bin paths to all_fixpath_prefixes! 36409 else 36410 # Not in mixed or Windows style, start by that. 36411 new_path=`cmd //c echo $new_path` 36412 36413 input_path="$new_path" 36414 # Check if we need to convert this using DOS-style short mode. If the path 36415 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36416 # take no chances and rewrite it. 36417 # Note: m4 eats our [], so we need to use [ and ] instead. 36418 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36419 if test "x$has_forbidden_chars" != x; then 36420 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36421 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36422 fi 36423 36424 # Output is in $new_path 36425 36426 windows_path="$new_path" 36427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36428 unix_path=`$CYGPATH -u "$windows_path"` 36429 new_path="$unix_path" 36430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36432 new_path="$unix_path" 36433 fi 36434 36435 # remove trailing .exe if any 36436 new_path="${new_path/%.exe/}" 36437 36438 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36439 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36440 fi 36441 36442 else 36443 # We're on a posix platform. Hooray! :) 36444 # First separate the path from the arguments. This will split at the first 36445 # space. 36446 complete="$MCS" 36447 path="${complete%% *}" 36448 tmp="$complete EOL" 36449 arguments="${tmp#* }" 36450 36451 # Cannot rely on the command "which" here since it doesn't always work. 36452 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36453 if test -z "$is_absolute_path"; then 36454 # Path to executable is not absolute. Find it. 36455 IFS_save="$IFS" 36456 IFS=: 36457 for p in $PATH; do 36458 if test -f "$p/$path" && test -x "$p/$path"; then 36459 new_path="$p/$path" 36460 break 36461 fi 36462 done 36463 IFS="$IFS_save" 36464 else 36465 # This is an absolute path, we can use it without further modifications. 36466 new_path="$path" 36467 fi 36468 36469 if test "x$new_path" = x; then 36470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36471 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36472 has_space=`$ECHO "$complete" | $GREP " "` 36473 if test "x$has_space" != x; then 36474 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36475 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36476 fi 36477 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36478 fi 36479 fi 36480 36481 # Now join together the path and the arguments once again 36482 if test "x$arguments" != xEOL; then 36483 new_complete="$new_path ${arguments% *}" 36484 else 36485 new_complete="$new_path" 36486 fi 36487 36488 if test "x$complete" != "x$new_complete"; then 36489 MCS="$new_complete" 36490 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36491 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36492 fi 36493 36494 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36495 # FIXME: we should unify this with the solaris case above. 36496 36497 36498 # Publish this variable in the help. 36499 36500 36501 if test "x$STRIP" = x; then 36502 # The variable is not set by user, try to locate tool using the code snippet 36503 if test -n "$ac_tool_prefix"; then 36504 for ac_prog in strip 36505 do 36506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36509 $as_echo_n "checking for $ac_word... " >&6; } 36510 if ${ac_cv_prog_STRIP+:} false; then : 36511 $as_echo_n "(cached) " >&6 36512 else 36513 if test -n "$STRIP"; then 36514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36515 else 36516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36517 for as_dir in $PATH 36518 do 36519 IFS=$as_save_IFS 36520 test -z "$as_dir" && as_dir=. 36521 for ac_exec_ext in '' $ac_executable_extensions; do 36522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36523 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36525 break 2 36526 fi 36527 done 36528 done 36529 IFS=$as_save_IFS 36530 36531 fi 36532 fi 36533 STRIP=$ac_cv_prog_STRIP 36534 if test -n "$STRIP"; then 36535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36536 $as_echo "$STRIP" >&6; } 36537 else 36538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36539 $as_echo "no" >&6; } 36540 fi 36541 36542 36543 test -n "$STRIP" && break 36544 done 36545 fi 36546 if test -z "$STRIP"; then 36547 ac_ct_STRIP=$STRIP 36548 for ac_prog in strip 36549 do 36550 # Extract the first word of "$ac_prog", so it can be a program name with args. 36551 set dummy $ac_prog; ac_word=$2 36552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36553 $as_echo_n "checking for $ac_word... " >&6; } 36554 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36555 $as_echo_n "(cached) " >&6 36556 else 36557 if test -n "$ac_ct_STRIP"; then 36558 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36559 else 36560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36561 for as_dir in $PATH 36562 do 36563 IFS=$as_save_IFS 36564 test -z "$as_dir" && as_dir=. 36565 for ac_exec_ext in '' $ac_executable_extensions; do 36566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36567 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36569 break 2 36570 fi 36571 done 36572 done 36573 IFS=$as_save_IFS 36574 36575 fi 36576 fi 36577 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36578 if test -n "$ac_ct_STRIP"; then 36579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36580 $as_echo "$ac_ct_STRIP" >&6; } 36581 else 36582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36583 $as_echo "no" >&6; } 36584 fi 36585 36586 36587 test -n "$ac_ct_STRIP" && break 36588 done 36589 36590 if test "x$ac_ct_STRIP" = x; then 36591 STRIP="" 36592 else 36593 case $cross_compiling:$ac_tool_warned in 36594 yes:) 36595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36597 ac_tool_warned=yes ;; 36598 esac 36599 STRIP=$ac_ct_STRIP 36600 fi 36601 fi 36602 36603 else 36604 # The variable is set, but is it from the command line or the environment? 36605 36606 # Try to remove the string !STRIP! from our list. 36607 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36608 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36609 # If it failed, the variable was not from the command line. Ignore it, 36610 # but warn the user (except for BASH, which is always set by the calling BASH). 36611 if test "xSTRIP" != xBASH; then 36612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36613 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36614 fi 36615 # Try to locate tool using the code snippet 36616 if test -n "$ac_tool_prefix"; then 36617 for ac_prog in strip 36618 do 36619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36622 $as_echo_n "checking for $ac_word... " >&6; } 36623 if ${ac_cv_prog_STRIP+:} false; then : 36624 $as_echo_n "(cached) " >&6 36625 else 36626 if test -n "$STRIP"; then 36627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36628 else 36629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36630 for as_dir in $PATH 36631 do 36632 IFS=$as_save_IFS 36633 test -z "$as_dir" && as_dir=. 36634 for ac_exec_ext in '' $ac_executable_extensions; do 36635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36636 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36638 break 2 36639 fi 36640 done 36641 done 36642 IFS=$as_save_IFS 36643 36644 fi 36645 fi 36646 STRIP=$ac_cv_prog_STRIP 36647 if test -n "$STRIP"; then 36648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36649 $as_echo "$STRIP" >&6; } 36650 else 36651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36652 $as_echo "no" >&6; } 36653 fi 36654 36655 36656 test -n "$STRIP" && break 36657 done 36658 fi 36659 if test -z "$STRIP"; then 36660 ac_ct_STRIP=$STRIP 36661 for ac_prog in strip 36662 do 36663 # Extract the first word of "$ac_prog", so it can be a program name with args. 36664 set dummy $ac_prog; ac_word=$2 36665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36666 $as_echo_n "checking for $ac_word... " >&6; } 36667 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36668 $as_echo_n "(cached) " >&6 36669 else 36670 if test -n "$ac_ct_STRIP"; then 36671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36672 else 36673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36674 for as_dir in $PATH 36675 do 36676 IFS=$as_save_IFS 36677 test -z "$as_dir" && as_dir=. 36678 for ac_exec_ext in '' $ac_executable_extensions; do 36679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36680 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36682 break 2 36683 fi 36684 done 36685 done 36686 IFS=$as_save_IFS 36687 36688 fi 36689 fi 36690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36691 if test -n "$ac_ct_STRIP"; then 36692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36693 $as_echo "$ac_ct_STRIP" >&6; } 36694 else 36695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36696 $as_echo "no" >&6; } 36697 fi 36698 36699 36700 test -n "$ac_ct_STRIP" && break 36701 done 36702 36703 if test "x$ac_ct_STRIP" = x; then 36704 STRIP="" 36705 else 36706 case $cross_compiling:$ac_tool_warned in 36707 yes:) 36708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36710 ac_tool_warned=yes ;; 36711 esac 36712 STRIP=$ac_ct_STRIP 36713 fi 36714 fi 36715 36716 else 36717 # If it succeeded, then it was overridden by the user. We will use it 36718 # for the tool. 36719 36720 # First remove it from the list of overridden variables, so we can test 36721 # for unknown variables in the end. 36722 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36723 36724 # Check if the provided tool contains a complete path. 36725 tool_specified="$STRIP" 36726 tool_basename="${tool_specified##*/}" 36727 if test "x$tool_basename" = "x$tool_specified"; then 36728 # A command without a complete path is provided, search $PATH. 36729 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36730 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36731 # Extract the first word of "$tool_basename", so it can be a program name with args. 36732 set dummy $tool_basename; ac_word=$2 36733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36734 $as_echo_n "checking for $ac_word... " >&6; } 36735 if ${ac_cv_path_STRIP+:} false; then : 36736 $as_echo_n "(cached) " >&6 36737 else 36738 case $STRIP in 36739 [\\/]* | ?:[\\/]*) 36740 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36741 ;; 36742 *) 36743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36744 for as_dir in $PATH 36745 do 36746 IFS=$as_save_IFS 36747 test -z "$as_dir" && as_dir=. 36748 for ac_exec_ext in '' $ac_executable_extensions; do 36749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36750 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36752 break 2 36753 fi 36754 done 36755 done 36756 IFS=$as_save_IFS 36757 36758 ;; 36759 esac 36760 fi 36761 STRIP=$ac_cv_path_STRIP 36762 if test -n "$STRIP"; then 36763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36764 $as_echo "$STRIP" >&6; } 36765 else 36766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36767 $as_echo "no" >&6; } 36768 fi 36769 36770 36771 if test "x$STRIP" = x; then 36772 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36773 fi 36774 else 36775 # Otherwise we believe it is a complete path. Use it as it is. 36776 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36777 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36779 $as_echo_n "checking for STRIP... " >&6; } 36780 if test ! -x "$tool_specified"; then 36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36782 $as_echo "not found" >&6; } 36783 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36784 fi 36785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36786 $as_echo "$tool_specified" >&6; } 36787 fi 36788 fi 36789 fi 36790 36791 36792 36793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36794 36795 # First separate the path from the arguments. This will split at the first 36796 # space. 36797 complete="$STRIP" 36798 path="${complete%% *}" 36799 tmp="$complete EOL" 36800 arguments="${tmp#* }" 36801 36802 # Input might be given as Windows format, start by converting to 36803 # unix format. 36804 new_path=`$CYGPATH -u "$path"` 36805 36806 # Now try to locate executable using which 36807 new_path=`$WHICH "$new_path" 2> /dev/null` 36808 # bat and cmd files are not always considered executable in cygwin causing which 36809 # to not find them 36810 if test "x$new_path" = x \ 36811 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36812 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36813 new_path=`$CYGPATH -u "$path"` 36814 fi 36815 if test "x$new_path" = x; then 36816 # Oops. Which didn't find the executable. 36817 # The splitting of arguments from the executable at a space might have been incorrect, 36818 # since paths with space are more likely in Windows. Give it another try with the whole 36819 # argument. 36820 path="$complete" 36821 arguments="EOL" 36822 new_path=`$CYGPATH -u "$path"` 36823 new_path=`$WHICH "$new_path" 2> /dev/null` 36824 # bat and cmd files are not always considered executable in cygwin causing which 36825 # to not find them 36826 if test "x$new_path" = x \ 36827 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36828 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36829 new_path=`$CYGPATH -u "$path"` 36830 fi 36831 if test "x$new_path" = x; then 36832 # It's still not found. Now this is an unrecoverable error. 36833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36834 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36835 has_space=`$ECHO "$complete" | $GREP " "` 36836 if test "x$has_space" != x; then 36837 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36838 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36839 fi 36840 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36841 fi 36842 fi 36843 36844 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36845 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36846 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36847 # "foo.exe" is OK but "foo" is an error. 36848 # 36849 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36850 # It is also a way to make sure we got the proper file name for the real test later on. 36851 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36852 if test "x$test_shortpath" = x; then 36853 # Short path failed, file does not exist as specified. 36854 # Try adding .exe or .cmd 36855 if test -f "${new_path}.exe"; then 36856 input_to_shortpath="${new_path}.exe" 36857 elif test -f "${new_path}.cmd"; then 36858 input_to_shortpath="${new_path}.cmd" 36859 else 36860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36861 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36862 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36863 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36864 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36865 fi 36866 else 36867 input_to_shortpath="$new_path" 36868 fi 36869 36870 # Call helper function which possibly converts this using DOS-style short mode. 36871 # If so, the updated path is stored in $new_path. 36872 new_path="$input_to_shortpath" 36873 36874 input_path="$input_to_shortpath" 36875 # Check if we need to convert this using DOS-style short mode. If the path 36876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36877 # take no chances and rewrite it. 36878 # Note: m4 eats our [], so we need to use [ and ] instead. 36879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36880 if test "x$has_forbidden_chars" != x; then 36881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36882 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36883 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36884 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36885 # Going to short mode and back again did indeed matter. Since short mode is 36886 # case insensitive, let's make it lowercase to improve readability. 36887 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36888 # Now convert it back to Unix-stile (cygpath) 36889 input_path=`$CYGPATH -u "$shortmode_path"` 36890 new_path="$input_path" 36891 fi 36892 fi 36893 36894 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36895 if test "x$test_cygdrive_prefix" = x; then 36896 # As a simple fix, exclude /usr/bin since it's not a real path. 36897 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36898 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36899 # a path prefixed by /cygdrive for fixpath to work. 36900 new_path="$CYGWIN_ROOT_PATH$input_path" 36901 fi 36902 fi 36903 36904 # remove trailing .exe if any 36905 new_path="${new_path/%.exe/}" 36906 36907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36908 36909 # First separate the path from the arguments. This will split at the first 36910 # space. 36911 complete="$STRIP" 36912 path="${complete%% *}" 36913 tmp="$complete EOL" 36914 arguments="${tmp#* }" 36915 36916 # Input might be given as Windows format, start by converting to 36917 # unix format. 36918 new_path="$path" 36919 36920 windows_path="$new_path" 36921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36922 unix_path=`$CYGPATH -u "$windows_path"` 36923 new_path="$unix_path" 36924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36926 new_path="$unix_path" 36927 fi 36928 36929 36930 # Now try to locate executable using which 36931 new_path=`$WHICH "$new_path" 2> /dev/null` 36932 36933 if test "x$new_path" = x; then 36934 # Oops. Which didn't find the executable. 36935 # The splitting of arguments from the executable at a space might have been incorrect, 36936 # since paths with space are more likely in Windows. Give it another try with the whole 36937 # argument. 36938 path="$complete" 36939 arguments="EOL" 36940 new_path="$path" 36941 36942 windows_path="$new_path" 36943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36944 unix_path=`$CYGPATH -u "$windows_path"` 36945 new_path="$unix_path" 36946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36948 new_path="$unix_path" 36949 fi 36950 36951 36952 new_path=`$WHICH "$new_path" 2> /dev/null` 36953 36954 if test "x$new_path" = x; then 36955 # It's still not found. Now this is an unrecoverable error. 36956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36957 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36958 has_space=`$ECHO "$complete" | $GREP " "` 36959 if test "x$has_space" != x; then 36960 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36961 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36962 fi 36963 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36964 fi 36965 fi 36966 36967 # Now new_path has a complete unix path to the binary 36968 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36969 # Keep paths in /bin as-is, but remove trailing .exe if any 36970 new_path="${new_path/%.exe/}" 36971 # Do not save /bin paths to all_fixpath_prefixes! 36972 else 36973 # Not in mixed or Windows style, start by that. 36974 new_path=`cmd //c echo $new_path` 36975 36976 input_path="$new_path" 36977 # Check if we need to convert this using DOS-style short mode. If the path 36978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36979 # take no chances and rewrite it. 36980 # Note: m4 eats our [], so we need to use [ and ] instead. 36981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36982 if test "x$has_forbidden_chars" != x; then 36983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36984 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36985 fi 36986 36987 # Output is in $new_path 36988 36989 windows_path="$new_path" 36990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36991 unix_path=`$CYGPATH -u "$windows_path"` 36992 new_path="$unix_path" 36993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36995 new_path="$unix_path" 36996 fi 36997 36998 # remove trailing .exe if any 36999 new_path="${new_path/%.exe/}" 37000 37001 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37002 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37003 fi 37004 37005 else 37006 # We're on a posix platform. Hooray! :) 37007 # First separate the path from the arguments. This will split at the first 37008 # space. 37009 complete="$STRIP" 37010 path="${complete%% *}" 37011 tmp="$complete EOL" 37012 arguments="${tmp#* }" 37013 37014 # Cannot rely on the command "which" here since it doesn't always work. 37015 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37016 if test -z "$is_absolute_path"; then 37017 # Path to executable is not absolute. Find it. 37018 IFS_save="$IFS" 37019 IFS=: 37020 for p in $PATH; do 37021 if test -f "$p/$path" && test -x "$p/$path"; then 37022 new_path="$p/$path" 37023 break 37024 fi 37025 done 37026 IFS="$IFS_save" 37027 else 37028 # This is an absolute path, we can use it without further modifications. 37029 new_path="$path" 37030 fi 37031 37032 if test "x$new_path" = x; then 37033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37034 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37035 has_space=`$ECHO "$complete" | $GREP " "` 37036 if test "x$has_space" != x; then 37037 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37038 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37039 fi 37040 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37041 fi 37042 fi 37043 37044 # Now join together the path and the arguments once again 37045 if test "x$arguments" != xEOL; then 37046 new_complete="$new_path ${arguments% *}" 37047 else 37048 new_complete="$new_path" 37049 fi 37050 37051 if test "x$complete" != "x$new_complete"; then 37052 STRIP="$new_complete" 37053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37054 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37055 fi 37056 37057 37058 37059 # Publish this variable in the help. 37060 37061 37062 if test "x$NM" = x; then 37063 # The variable is not set by user, try to locate tool using the code snippet 37064 if test -n "$ac_tool_prefix"; then 37065 for ac_prog in nm 37066 do 37067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37070 $as_echo_n "checking for $ac_word... " >&6; } 37071 if ${ac_cv_prog_NM+:} false; then : 37072 $as_echo_n "(cached) " >&6 37073 else 37074 if test -n "$NM"; then 37075 ac_cv_prog_NM="$NM" # Let the user override the test. 37076 else 37077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37078 for as_dir in $PATH 37079 do 37080 IFS=$as_save_IFS 37081 test -z "$as_dir" && as_dir=. 37082 for ac_exec_ext in '' $ac_executable_extensions; do 37083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37084 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37086 break 2 37087 fi 37088 done 37089 done 37090 IFS=$as_save_IFS 37091 37092 fi 37093 fi 37094 NM=$ac_cv_prog_NM 37095 if test -n "$NM"; then 37096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37097 $as_echo "$NM" >&6; } 37098 else 37099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37100 $as_echo "no" >&6; } 37101 fi 37102 37103 37104 test -n "$NM" && break 37105 done 37106 fi 37107 if test -z "$NM"; then 37108 ac_ct_NM=$NM 37109 for ac_prog in nm 37110 do 37111 # Extract the first word of "$ac_prog", so it can be a program name with args. 37112 set dummy $ac_prog; ac_word=$2 37113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37114 $as_echo_n "checking for $ac_word... " >&6; } 37115 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37116 $as_echo_n "(cached) " >&6 37117 else 37118 if test -n "$ac_ct_NM"; then 37119 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37120 else 37121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37122 for as_dir in $PATH 37123 do 37124 IFS=$as_save_IFS 37125 test -z "$as_dir" && as_dir=. 37126 for ac_exec_ext in '' $ac_executable_extensions; do 37127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37128 ac_cv_prog_ac_ct_NM="$ac_prog" 37129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37130 break 2 37131 fi 37132 done 37133 done 37134 IFS=$as_save_IFS 37135 37136 fi 37137 fi 37138 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37139 if test -n "$ac_ct_NM"; then 37140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37141 $as_echo "$ac_ct_NM" >&6; } 37142 else 37143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37144 $as_echo "no" >&6; } 37145 fi 37146 37147 37148 test -n "$ac_ct_NM" && break 37149 done 37150 37151 if test "x$ac_ct_NM" = x; then 37152 NM="" 37153 else 37154 case $cross_compiling:$ac_tool_warned in 37155 yes:) 37156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37158 ac_tool_warned=yes ;; 37159 esac 37160 NM=$ac_ct_NM 37161 fi 37162 fi 37163 37164 else 37165 # The variable is set, but is it from the command line or the environment? 37166 37167 # Try to remove the string !NM! from our list. 37168 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37169 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37170 # If it failed, the variable was not from the command line. Ignore it, 37171 # but warn the user (except for BASH, which is always set by the calling BASH). 37172 if test "xNM" != xBASH; then 37173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37174 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37175 fi 37176 # Try to locate tool using the code snippet 37177 if test -n "$ac_tool_prefix"; then 37178 for ac_prog in nm 37179 do 37180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37183 $as_echo_n "checking for $ac_word... " >&6; } 37184 if ${ac_cv_prog_NM+:} false; then : 37185 $as_echo_n "(cached) " >&6 37186 else 37187 if test -n "$NM"; then 37188 ac_cv_prog_NM="$NM" # Let the user override the test. 37189 else 37190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37191 for as_dir in $PATH 37192 do 37193 IFS=$as_save_IFS 37194 test -z "$as_dir" && as_dir=. 37195 for ac_exec_ext in '' $ac_executable_extensions; do 37196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37197 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37199 break 2 37200 fi 37201 done 37202 done 37203 IFS=$as_save_IFS 37204 37205 fi 37206 fi 37207 NM=$ac_cv_prog_NM 37208 if test -n "$NM"; then 37209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37210 $as_echo "$NM" >&6; } 37211 else 37212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37213 $as_echo "no" >&6; } 37214 fi 37215 37216 37217 test -n "$NM" && break 37218 done 37219 fi 37220 if test -z "$NM"; then 37221 ac_ct_NM=$NM 37222 for ac_prog in nm 37223 do 37224 # Extract the first word of "$ac_prog", so it can be a program name with args. 37225 set dummy $ac_prog; ac_word=$2 37226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37227 $as_echo_n "checking for $ac_word... " >&6; } 37228 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37229 $as_echo_n "(cached) " >&6 37230 else 37231 if test -n "$ac_ct_NM"; then 37232 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37233 else 37234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37235 for as_dir in $PATH 37236 do 37237 IFS=$as_save_IFS 37238 test -z "$as_dir" && as_dir=. 37239 for ac_exec_ext in '' $ac_executable_extensions; do 37240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37241 ac_cv_prog_ac_ct_NM="$ac_prog" 37242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37243 break 2 37244 fi 37245 done 37246 done 37247 IFS=$as_save_IFS 37248 37249 fi 37250 fi 37251 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37252 if test -n "$ac_ct_NM"; then 37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37254 $as_echo "$ac_ct_NM" >&6; } 37255 else 37256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37257 $as_echo "no" >&6; } 37258 fi 37259 37260 37261 test -n "$ac_ct_NM" && break 37262 done 37263 37264 if test "x$ac_ct_NM" = x; then 37265 NM="" 37266 else 37267 case $cross_compiling:$ac_tool_warned in 37268 yes:) 37269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37271 ac_tool_warned=yes ;; 37272 esac 37273 NM=$ac_ct_NM 37274 fi 37275 fi 37276 37277 else 37278 # If it succeeded, then it was overridden by the user. We will use it 37279 # for the tool. 37280 37281 # First remove it from the list of overridden variables, so we can test 37282 # for unknown variables in the end. 37283 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37284 37285 # Check if the provided tool contains a complete path. 37286 tool_specified="$NM" 37287 tool_basename="${tool_specified##*/}" 37288 if test "x$tool_basename" = "x$tool_specified"; then 37289 # A command without a complete path is provided, search $PATH. 37290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37291 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37292 # Extract the first word of "$tool_basename", so it can be a program name with args. 37293 set dummy $tool_basename; ac_word=$2 37294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37295 $as_echo_n "checking for $ac_word... " >&6; } 37296 if ${ac_cv_path_NM+:} false; then : 37297 $as_echo_n "(cached) " >&6 37298 else 37299 case $NM in 37300 [\\/]* | ?:[\\/]*) 37301 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37302 ;; 37303 *) 37304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37305 for as_dir in $PATH 37306 do 37307 IFS=$as_save_IFS 37308 test -z "$as_dir" && as_dir=. 37309 for ac_exec_ext in '' $ac_executable_extensions; do 37310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37311 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37313 break 2 37314 fi 37315 done 37316 done 37317 IFS=$as_save_IFS 37318 37319 ;; 37320 esac 37321 fi 37322 NM=$ac_cv_path_NM 37323 if test -n "$NM"; then 37324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37325 $as_echo "$NM" >&6; } 37326 else 37327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37328 $as_echo "no" >&6; } 37329 fi 37330 37331 37332 if test "x$NM" = x; then 37333 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37334 fi 37335 else 37336 # Otherwise we believe it is a complete path. Use it as it is. 37337 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37338 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37340 $as_echo_n "checking for NM... " >&6; } 37341 if test ! -x "$tool_specified"; then 37342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37343 $as_echo "not found" >&6; } 37344 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37345 fi 37346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37347 $as_echo "$tool_specified" >&6; } 37348 fi 37349 fi 37350 fi 37351 37352 37353 37354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37355 37356 # First separate the path from the arguments. This will split at the first 37357 # space. 37358 complete="$NM" 37359 path="${complete%% *}" 37360 tmp="$complete EOL" 37361 arguments="${tmp#* }" 37362 37363 # Input might be given as Windows format, start by converting to 37364 # unix format. 37365 new_path=`$CYGPATH -u "$path"` 37366 37367 # Now try to locate executable using which 37368 new_path=`$WHICH "$new_path" 2> /dev/null` 37369 # bat and cmd files are not always considered executable in cygwin causing which 37370 # to not find them 37371 if test "x$new_path" = x \ 37372 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37373 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37374 new_path=`$CYGPATH -u "$path"` 37375 fi 37376 if test "x$new_path" = x; then 37377 # Oops. Which didn't find the executable. 37378 # The splitting of arguments from the executable at a space might have been incorrect, 37379 # since paths with space are more likely in Windows. Give it another try with the whole 37380 # argument. 37381 path="$complete" 37382 arguments="EOL" 37383 new_path=`$CYGPATH -u "$path"` 37384 new_path=`$WHICH "$new_path" 2> /dev/null` 37385 # bat and cmd files are not always considered executable in cygwin causing which 37386 # to not find them 37387 if test "x$new_path" = x \ 37388 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37389 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37390 new_path=`$CYGPATH -u "$path"` 37391 fi 37392 if test "x$new_path" = x; then 37393 # It's still not found. Now this is an unrecoverable error. 37394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37395 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37396 has_space=`$ECHO "$complete" | $GREP " "` 37397 if test "x$has_space" != x; then 37398 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37399 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37400 fi 37401 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37402 fi 37403 fi 37404 37405 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37406 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37407 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37408 # "foo.exe" is OK but "foo" is an error. 37409 # 37410 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37411 # It is also a way to make sure we got the proper file name for the real test later on. 37412 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37413 if test "x$test_shortpath" = x; then 37414 # Short path failed, file does not exist as specified. 37415 # Try adding .exe or .cmd 37416 if test -f "${new_path}.exe"; then 37417 input_to_shortpath="${new_path}.exe" 37418 elif test -f "${new_path}.cmd"; then 37419 input_to_shortpath="${new_path}.cmd" 37420 else 37421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37422 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37423 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37424 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37425 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37426 fi 37427 else 37428 input_to_shortpath="$new_path" 37429 fi 37430 37431 # Call helper function which possibly converts this using DOS-style short mode. 37432 # If so, the updated path is stored in $new_path. 37433 new_path="$input_to_shortpath" 37434 37435 input_path="$input_to_shortpath" 37436 # Check if we need to convert this using DOS-style short mode. If the path 37437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37438 # take no chances and rewrite it. 37439 # Note: m4 eats our [], so we need to use [ and ] instead. 37440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37441 if test "x$has_forbidden_chars" != x; then 37442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37443 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37444 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37445 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37446 # Going to short mode and back again did indeed matter. Since short mode is 37447 # case insensitive, let's make it lowercase to improve readability. 37448 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37449 # Now convert it back to Unix-stile (cygpath) 37450 input_path=`$CYGPATH -u "$shortmode_path"` 37451 new_path="$input_path" 37452 fi 37453 fi 37454 37455 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37456 if test "x$test_cygdrive_prefix" = x; then 37457 # As a simple fix, exclude /usr/bin since it's not a real path. 37458 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37459 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37460 # a path prefixed by /cygdrive for fixpath to work. 37461 new_path="$CYGWIN_ROOT_PATH$input_path" 37462 fi 37463 fi 37464 37465 # remove trailing .exe if any 37466 new_path="${new_path/%.exe/}" 37467 37468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37469 37470 # First separate the path from the arguments. This will split at the first 37471 # space. 37472 complete="$NM" 37473 path="${complete%% *}" 37474 tmp="$complete EOL" 37475 arguments="${tmp#* }" 37476 37477 # Input might be given as Windows format, start by converting to 37478 # unix format. 37479 new_path="$path" 37480 37481 windows_path="$new_path" 37482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37483 unix_path=`$CYGPATH -u "$windows_path"` 37484 new_path="$unix_path" 37485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37487 new_path="$unix_path" 37488 fi 37489 37490 37491 # Now try to locate executable using which 37492 new_path=`$WHICH "$new_path" 2> /dev/null` 37493 37494 if test "x$new_path" = x; then 37495 # Oops. Which didn't find the executable. 37496 # The splitting of arguments from the executable at a space might have been incorrect, 37497 # since paths with space are more likely in Windows. Give it another try with the whole 37498 # argument. 37499 path="$complete" 37500 arguments="EOL" 37501 new_path="$path" 37502 37503 windows_path="$new_path" 37504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37505 unix_path=`$CYGPATH -u "$windows_path"` 37506 new_path="$unix_path" 37507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37509 new_path="$unix_path" 37510 fi 37511 37512 37513 new_path=`$WHICH "$new_path" 2> /dev/null` 37514 37515 if test "x$new_path" = x; then 37516 # It's still not found. Now this is an unrecoverable error. 37517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37518 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37519 has_space=`$ECHO "$complete" | $GREP " "` 37520 if test "x$has_space" != x; then 37521 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37522 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37523 fi 37524 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37525 fi 37526 fi 37527 37528 # Now new_path has a complete unix path to the binary 37529 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37530 # Keep paths in /bin as-is, but remove trailing .exe if any 37531 new_path="${new_path/%.exe/}" 37532 # Do not save /bin paths to all_fixpath_prefixes! 37533 else 37534 # Not in mixed or Windows style, start by that. 37535 new_path=`cmd //c echo $new_path` 37536 37537 input_path="$new_path" 37538 # Check if we need to convert this using DOS-style short mode. If the path 37539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37540 # take no chances and rewrite it. 37541 # Note: m4 eats our [], so we need to use [ and ] instead. 37542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37543 if test "x$has_forbidden_chars" != x; then 37544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37545 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37546 fi 37547 37548 # Output is in $new_path 37549 37550 windows_path="$new_path" 37551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37552 unix_path=`$CYGPATH -u "$windows_path"` 37553 new_path="$unix_path" 37554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37556 new_path="$unix_path" 37557 fi 37558 37559 # remove trailing .exe if any 37560 new_path="${new_path/%.exe/}" 37561 37562 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37563 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37564 fi 37565 37566 else 37567 # We're on a posix platform. Hooray! :) 37568 # First separate the path from the arguments. This will split at the first 37569 # space. 37570 complete="$NM" 37571 path="${complete%% *}" 37572 tmp="$complete EOL" 37573 arguments="${tmp#* }" 37574 37575 # Cannot rely on the command "which" here since it doesn't always work. 37576 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37577 if test -z "$is_absolute_path"; then 37578 # Path to executable is not absolute. Find it. 37579 IFS_save="$IFS" 37580 IFS=: 37581 for p in $PATH; do 37582 if test -f "$p/$path" && test -x "$p/$path"; then 37583 new_path="$p/$path" 37584 break 37585 fi 37586 done 37587 IFS="$IFS_save" 37588 else 37589 # This is an absolute path, we can use it without further modifications. 37590 new_path="$path" 37591 fi 37592 37593 if test "x$new_path" = x; then 37594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37595 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37596 has_space=`$ECHO "$complete" | $GREP " "` 37597 if test "x$has_space" != x; then 37598 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37599 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37600 fi 37601 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37602 fi 37603 fi 37604 37605 # Now join together the path and the arguments once again 37606 if test "x$arguments" != xEOL; then 37607 new_complete="$new_path ${arguments% *}" 37608 else 37609 new_complete="$new_path" 37610 fi 37611 37612 if test "x$complete" != "x$new_complete"; then 37613 NM="$new_complete" 37614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37615 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37616 fi 37617 37618 GNM="$NM" 37619 37620 fi 37621 37622 # objcopy is used for moving debug symbols to separate files when 37623 # full debug symbols are enabled. 37624 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37625 37626 37627 # Publish this variable in the help. 37628 37629 37630 if test "x$OBJCOPY" = x; then 37631 # The variable is not set by user, try to locate tool using the code snippet 37632 if test -n "$ac_tool_prefix"; then 37633 for ac_prog in gobjcopy objcopy 37634 do 37635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37638 $as_echo_n "checking for $ac_word... " >&6; } 37639 if ${ac_cv_prog_OBJCOPY+:} false; then : 37640 $as_echo_n "(cached) " >&6 37641 else 37642 if test -n "$OBJCOPY"; then 37643 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37644 else 37645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37646 for as_dir in $PATH 37647 do 37648 IFS=$as_save_IFS 37649 test -z "$as_dir" && as_dir=. 37650 for ac_exec_ext in '' $ac_executable_extensions; do 37651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37652 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37654 break 2 37655 fi 37656 done 37657 done 37658 IFS=$as_save_IFS 37659 37660 fi 37661 fi 37662 OBJCOPY=$ac_cv_prog_OBJCOPY 37663 if test -n "$OBJCOPY"; then 37664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37665 $as_echo "$OBJCOPY" >&6; } 37666 else 37667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37668 $as_echo "no" >&6; } 37669 fi 37670 37671 37672 test -n "$OBJCOPY" && break 37673 done 37674 fi 37675 if test -z "$OBJCOPY"; then 37676 ac_ct_OBJCOPY=$OBJCOPY 37677 for ac_prog in gobjcopy objcopy 37678 do 37679 # Extract the first word of "$ac_prog", so it can be a program name with args. 37680 set dummy $ac_prog; ac_word=$2 37681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37682 $as_echo_n "checking for $ac_word... " >&6; } 37683 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37684 $as_echo_n "(cached) " >&6 37685 else 37686 if test -n "$ac_ct_OBJCOPY"; then 37687 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37688 else 37689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37690 for as_dir in $PATH 37691 do 37692 IFS=$as_save_IFS 37693 test -z "$as_dir" && as_dir=. 37694 for ac_exec_ext in '' $ac_executable_extensions; do 37695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37696 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37698 break 2 37699 fi 37700 done 37701 done 37702 IFS=$as_save_IFS 37703 37704 fi 37705 fi 37706 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37707 if test -n "$ac_ct_OBJCOPY"; then 37708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37709 $as_echo "$ac_ct_OBJCOPY" >&6; } 37710 else 37711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37712 $as_echo "no" >&6; } 37713 fi 37714 37715 37716 test -n "$ac_ct_OBJCOPY" && break 37717 done 37718 37719 if test "x$ac_ct_OBJCOPY" = x; then 37720 OBJCOPY="" 37721 else 37722 case $cross_compiling:$ac_tool_warned in 37723 yes:) 37724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37726 ac_tool_warned=yes ;; 37727 esac 37728 OBJCOPY=$ac_ct_OBJCOPY 37729 fi 37730 fi 37731 37732 else 37733 # The variable is set, but is it from the command line or the environment? 37734 37735 # Try to remove the string !OBJCOPY! from our list. 37736 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37737 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37738 # If it failed, the variable was not from the command line. Ignore it, 37739 # but warn the user (except for BASH, which is always set by the calling BASH). 37740 if test "xOBJCOPY" != xBASH; then 37741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37742 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37743 fi 37744 # Try to locate tool using the code snippet 37745 if test -n "$ac_tool_prefix"; then 37746 for ac_prog in gobjcopy objcopy 37747 do 37748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37751 $as_echo_n "checking for $ac_word... " >&6; } 37752 if ${ac_cv_prog_OBJCOPY+:} false; then : 37753 $as_echo_n "(cached) " >&6 37754 else 37755 if test -n "$OBJCOPY"; then 37756 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37757 else 37758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37759 for as_dir in $PATH 37760 do 37761 IFS=$as_save_IFS 37762 test -z "$as_dir" && as_dir=. 37763 for ac_exec_ext in '' $ac_executable_extensions; do 37764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37765 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37767 break 2 37768 fi 37769 done 37770 done 37771 IFS=$as_save_IFS 37772 37773 fi 37774 fi 37775 OBJCOPY=$ac_cv_prog_OBJCOPY 37776 if test -n "$OBJCOPY"; then 37777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37778 $as_echo "$OBJCOPY" >&6; } 37779 else 37780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37781 $as_echo "no" >&6; } 37782 fi 37783 37784 37785 test -n "$OBJCOPY" && break 37786 done 37787 fi 37788 if test -z "$OBJCOPY"; then 37789 ac_ct_OBJCOPY=$OBJCOPY 37790 for ac_prog in gobjcopy objcopy 37791 do 37792 # Extract the first word of "$ac_prog", so it can be a program name with args. 37793 set dummy $ac_prog; ac_word=$2 37794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37795 $as_echo_n "checking for $ac_word... " >&6; } 37796 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37797 $as_echo_n "(cached) " >&6 37798 else 37799 if test -n "$ac_ct_OBJCOPY"; then 37800 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37801 else 37802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37803 for as_dir in $PATH 37804 do 37805 IFS=$as_save_IFS 37806 test -z "$as_dir" && as_dir=. 37807 for ac_exec_ext in '' $ac_executable_extensions; do 37808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37809 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37811 break 2 37812 fi 37813 done 37814 done 37815 IFS=$as_save_IFS 37816 37817 fi 37818 fi 37819 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37820 if test -n "$ac_ct_OBJCOPY"; then 37821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37822 $as_echo "$ac_ct_OBJCOPY" >&6; } 37823 else 37824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37825 $as_echo "no" >&6; } 37826 fi 37827 37828 37829 test -n "$ac_ct_OBJCOPY" && break 37830 done 37831 37832 if test "x$ac_ct_OBJCOPY" = x; then 37833 OBJCOPY="" 37834 else 37835 case $cross_compiling:$ac_tool_warned in 37836 yes:) 37837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37839 ac_tool_warned=yes ;; 37840 esac 37841 OBJCOPY=$ac_ct_OBJCOPY 37842 fi 37843 fi 37844 37845 else 37846 # If it succeeded, then it was overridden by the user. We will use it 37847 # for the tool. 37848 37849 # First remove it from the list of overridden variables, so we can test 37850 # for unknown variables in the end. 37851 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37852 37853 # Check if the provided tool contains a complete path. 37854 tool_specified="$OBJCOPY" 37855 tool_basename="${tool_specified##*/}" 37856 if test "x$tool_basename" = "x$tool_specified"; then 37857 # A command without a complete path is provided, search $PATH. 37858 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 37859 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 37860 # Extract the first word of "$tool_basename", so it can be a program name with args. 37861 set dummy $tool_basename; ac_word=$2 37862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37863 $as_echo_n "checking for $ac_word... " >&6; } 37864 if ${ac_cv_path_OBJCOPY+:} false; then : 37865 $as_echo_n "(cached) " >&6 37866 else 37867 case $OBJCOPY in 37868 [\\/]* | ?:[\\/]*) 37869 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 37870 ;; 37871 *) 37872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37873 for as_dir in $PATH 37874 do 37875 IFS=$as_save_IFS 37876 test -z "$as_dir" && as_dir=. 37877 for ac_exec_ext in '' $ac_executable_extensions; do 37878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37879 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 37880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37881 break 2 37882 fi 37883 done 37884 done 37885 IFS=$as_save_IFS 37886 37887 ;; 37888 esac 37889 fi 37890 OBJCOPY=$ac_cv_path_OBJCOPY 37891 if test -n "$OBJCOPY"; then 37892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37893 $as_echo "$OBJCOPY" >&6; } 37894 else 37895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37896 $as_echo "no" >&6; } 37897 fi 37898 37899 37900 if test "x$OBJCOPY" = x; then 37901 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37902 fi 37903 else 37904 # Otherwise we believe it is a complete path. Use it as it is. 37905 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 37906 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 37907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 37908 $as_echo_n "checking for OBJCOPY... " >&6; } 37909 if test ! -x "$tool_specified"; then 37910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37911 $as_echo "not found" >&6; } 37912 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 37913 fi 37914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37915 $as_echo "$tool_specified" >&6; } 37916 fi 37917 fi 37918 fi 37919 37920 37921 # Only call fixup if objcopy was found. 37922 if test -n "$OBJCOPY"; then 37923 37924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37925 37926 # First separate the path from the arguments. This will split at the first 37927 # space. 37928 complete="$OBJCOPY" 37929 path="${complete%% *}" 37930 tmp="$complete EOL" 37931 arguments="${tmp#* }" 37932 37933 # Input might be given as Windows format, start by converting to 37934 # unix format. 37935 new_path=`$CYGPATH -u "$path"` 37936 37937 # Now try to locate executable using which 37938 new_path=`$WHICH "$new_path" 2> /dev/null` 37939 # bat and cmd files are not always considered executable in cygwin causing which 37940 # to not find them 37941 if test "x$new_path" = x \ 37942 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37943 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37944 new_path=`$CYGPATH -u "$path"` 37945 fi 37946 if test "x$new_path" = x; then 37947 # Oops. Which didn't find the executable. 37948 # The splitting of arguments from the executable at a space might have been incorrect, 37949 # since paths with space are more likely in Windows. Give it another try with the whole 37950 # argument. 37951 path="$complete" 37952 arguments="EOL" 37953 new_path=`$CYGPATH -u "$path"` 37954 new_path=`$WHICH "$new_path" 2> /dev/null` 37955 # bat and cmd files are not always considered executable in cygwin causing which 37956 # to not find them 37957 if test "x$new_path" = x \ 37958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37960 new_path=`$CYGPATH -u "$path"` 37961 fi 37962 if test "x$new_path" = x; then 37963 # It's still not found. Now this is an unrecoverable error. 37964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37965 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37966 has_space=`$ECHO "$complete" | $GREP " "` 37967 if test "x$has_space" != x; then 37968 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37969 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37970 fi 37971 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37972 fi 37973 fi 37974 37975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37978 # "foo.exe" is OK but "foo" is an error. 37979 # 37980 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37981 # It is also a way to make sure we got the proper file name for the real test later on. 37982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37983 if test "x$test_shortpath" = x; then 37984 # Short path failed, file does not exist as specified. 37985 # Try adding .exe or .cmd 37986 if test -f "${new_path}.exe"; then 37987 input_to_shortpath="${new_path}.exe" 37988 elif test -f "${new_path}.cmd"; then 37989 input_to_shortpath="${new_path}.cmd" 37990 else 37991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 37992 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 37993 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37994 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37995 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37996 fi 37997 else 37998 input_to_shortpath="$new_path" 37999 fi 38000 38001 # Call helper function which possibly converts this using DOS-style short mode. 38002 # If so, the updated path is stored in $new_path. 38003 new_path="$input_to_shortpath" 38004 38005 input_path="$input_to_shortpath" 38006 # Check if we need to convert this using DOS-style short mode. If the path 38007 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38008 # take no chances and rewrite it. 38009 # Note: m4 eats our [], so we need to use [ and ] instead. 38010 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38011 if test "x$has_forbidden_chars" != x; then 38012 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38013 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38014 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38015 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38016 # Going to short mode and back again did indeed matter. Since short mode is 38017 # case insensitive, let's make it lowercase to improve readability. 38018 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38019 # Now convert it back to Unix-stile (cygpath) 38020 input_path=`$CYGPATH -u "$shortmode_path"` 38021 new_path="$input_path" 38022 fi 38023 fi 38024 38025 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38026 if test "x$test_cygdrive_prefix" = x; then 38027 # As a simple fix, exclude /usr/bin since it's not a real path. 38028 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38029 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38030 # a path prefixed by /cygdrive for fixpath to work. 38031 new_path="$CYGWIN_ROOT_PATH$input_path" 38032 fi 38033 fi 38034 38035 # remove trailing .exe if any 38036 new_path="${new_path/%.exe/}" 38037 38038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38039 38040 # First separate the path from the arguments. This will split at the first 38041 # space. 38042 complete="$OBJCOPY" 38043 path="${complete%% *}" 38044 tmp="$complete EOL" 38045 arguments="${tmp#* }" 38046 38047 # Input might be given as Windows format, start by converting to 38048 # unix format. 38049 new_path="$path" 38050 38051 windows_path="$new_path" 38052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38053 unix_path=`$CYGPATH -u "$windows_path"` 38054 new_path="$unix_path" 38055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38057 new_path="$unix_path" 38058 fi 38059 38060 38061 # Now try to locate executable using which 38062 new_path=`$WHICH "$new_path" 2> /dev/null` 38063 38064 if test "x$new_path" = x; then 38065 # Oops. Which didn't find the executable. 38066 # The splitting of arguments from the executable at a space might have been incorrect, 38067 # since paths with space are more likely in Windows. Give it another try with the whole 38068 # argument. 38069 path="$complete" 38070 arguments="EOL" 38071 new_path="$path" 38072 38073 windows_path="$new_path" 38074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38075 unix_path=`$CYGPATH -u "$windows_path"` 38076 new_path="$unix_path" 38077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38079 new_path="$unix_path" 38080 fi 38081 38082 38083 new_path=`$WHICH "$new_path" 2> /dev/null` 38084 38085 if test "x$new_path" = x; then 38086 # It's still not found. Now this is an unrecoverable error. 38087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38088 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38089 has_space=`$ECHO "$complete" | $GREP " "` 38090 if test "x$has_space" != x; then 38091 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38092 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38093 fi 38094 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38095 fi 38096 fi 38097 38098 # Now new_path has a complete unix path to the binary 38099 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38100 # Keep paths in /bin as-is, but remove trailing .exe if any 38101 new_path="${new_path/%.exe/}" 38102 # Do not save /bin paths to all_fixpath_prefixes! 38103 else 38104 # Not in mixed or Windows style, start by that. 38105 new_path=`cmd //c echo $new_path` 38106 38107 input_path="$new_path" 38108 # Check if we need to convert this using DOS-style short mode. If the path 38109 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38110 # take no chances and rewrite it. 38111 # Note: m4 eats our [], so we need to use [ and ] instead. 38112 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38113 if test "x$has_forbidden_chars" != x; then 38114 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38115 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38116 fi 38117 38118 # Output is in $new_path 38119 38120 windows_path="$new_path" 38121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38122 unix_path=`$CYGPATH -u "$windows_path"` 38123 new_path="$unix_path" 38124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38126 new_path="$unix_path" 38127 fi 38128 38129 # remove trailing .exe if any 38130 new_path="${new_path/%.exe/}" 38131 38132 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38133 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38134 fi 38135 38136 else 38137 # We're on a posix platform. Hooray! :) 38138 # First separate the path from the arguments. This will split at the first 38139 # space. 38140 complete="$OBJCOPY" 38141 path="${complete%% *}" 38142 tmp="$complete EOL" 38143 arguments="${tmp#* }" 38144 38145 # Cannot rely on the command "which" here since it doesn't always work. 38146 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38147 if test -z "$is_absolute_path"; then 38148 # Path to executable is not absolute. Find it. 38149 IFS_save="$IFS" 38150 IFS=: 38151 for p in $PATH; do 38152 if test -f "$p/$path" && test -x "$p/$path"; then 38153 new_path="$p/$path" 38154 break 38155 fi 38156 done 38157 IFS="$IFS_save" 38158 else 38159 # This is an absolute path, we can use it without further modifications. 38160 new_path="$path" 38161 fi 38162 38163 if test "x$new_path" = x; then 38164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38165 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38166 has_space=`$ECHO "$complete" | $GREP " "` 38167 if test "x$has_space" != x; then 38168 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38169 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38170 fi 38171 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38172 fi 38173 fi 38174 38175 # Now join together the path and the arguments once again 38176 if test "x$arguments" != xEOL; then 38177 new_complete="$new_path ${arguments% *}" 38178 else 38179 new_complete="$new_path" 38180 fi 38181 38182 if test "x$complete" != "x$new_complete"; then 38183 OBJCOPY="$new_complete" 38184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38185 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38186 fi 38187 38188 fi 38189 fi 38190 38191 38192 38193 # Publish this variable in the help. 38194 38195 38196 if test "x$OBJDUMP" = x; then 38197 # The variable is not set by user, try to locate tool using the code snippet 38198 if test -n "$ac_tool_prefix"; then 38199 for ac_prog in gobjdump objdump 38200 do 38201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38204 $as_echo_n "checking for $ac_word... " >&6; } 38205 if ${ac_cv_prog_OBJDUMP+:} false; then : 38206 $as_echo_n "(cached) " >&6 38207 else 38208 if test -n "$OBJDUMP"; then 38209 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38210 else 38211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38212 for as_dir in $PATH 38213 do 38214 IFS=$as_save_IFS 38215 test -z "$as_dir" && as_dir=. 38216 for ac_exec_ext in '' $ac_executable_extensions; do 38217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38218 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38220 break 2 38221 fi 38222 done 38223 done 38224 IFS=$as_save_IFS 38225 38226 fi 38227 fi 38228 OBJDUMP=$ac_cv_prog_OBJDUMP 38229 if test -n "$OBJDUMP"; then 38230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38231 $as_echo "$OBJDUMP" >&6; } 38232 else 38233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38234 $as_echo "no" >&6; } 38235 fi 38236 38237 38238 test -n "$OBJDUMP" && break 38239 done 38240 fi 38241 if test -z "$OBJDUMP"; then 38242 ac_ct_OBJDUMP=$OBJDUMP 38243 for ac_prog in gobjdump objdump 38244 do 38245 # Extract the first word of "$ac_prog", so it can be a program name with args. 38246 set dummy $ac_prog; ac_word=$2 38247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38248 $as_echo_n "checking for $ac_word... " >&6; } 38249 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38250 $as_echo_n "(cached) " >&6 38251 else 38252 if test -n "$ac_ct_OBJDUMP"; then 38253 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38254 else 38255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38256 for as_dir in $PATH 38257 do 38258 IFS=$as_save_IFS 38259 test -z "$as_dir" && as_dir=. 38260 for ac_exec_ext in '' $ac_executable_extensions; do 38261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38262 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38264 break 2 38265 fi 38266 done 38267 done 38268 IFS=$as_save_IFS 38269 38270 fi 38271 fi 38272 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38273 if test -n "$ac_ct_OBJDUMP"; then 38274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38275 $as_echo "$ac_ct_OBJDUMP" >&6; } 38276 else 38277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38278 $as_echo "no" >&6; } 38279 fi 38280 38281 38282 test -n "$ac_ct_OBJDUMP" && break 38283 done 38284 38285 if test "x$ac_ct_OBJDUMP" = x; then 38286 OBJDUMP="" 38287 else 38288 case $cross_compiling:$ac_tool_warned in 38289 yes:) 38290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38292 ac_tool_warned=yes ;; 38293 esac 38294 OBJDUMP=$ac_ct_OBJDUMP 38295 fi 38296 fi 38297 38298 else 38299 # The variable is set, but is it from the command line or the environment? 38300 38301 # Try to remove the string !OBJDUMP! from our list. 38302 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38303 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38304 # If it failed, the variable was not from the command line. Ignore it, 38305 # but warn the user (except for BASH, which is always set by the calling BASH). 38306 if test "xOBJDUMP" != xBASH; then 38307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38308 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38309 fi 38310 # Try to locate tool using the code snippet 38311 if test -n "$ac_tool_prefix"; then 38312 for ac_prog in gobjdump objdump 38313 do 38314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38317 $as_echo_n "checking for $ac_word... " >&6; } 38318 if ${ac_cv_prog_OBJDUMP+:} false; then : 38319 $as_echo_n "(cached) " >&6 38320 else 38321 if test -n "$OBJDUMP"; then 38322 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38323 else 38324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38325 for as_dir in $PATH 38326 do 38327 IFS=$as_save_IFS 38328 test -z "$as_dir" && as_dir=. 38329 for ac_exec_ext in '' $ac_executable_extensions; do 38330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38331 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38333 break 2 38334 fi 38335 done 38336 done 38337 IFS=$as_save_IFS 38338 38339 fi 38340 fi 38341 OBJDUMP=$ac_cv_prog_OBJDUMP 38342 if test -n "$OBJDUMP"; then 38343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38344 $as_echo "$OBJDUMP" >&6; } 38345 else 38346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38347 $as_echo "no" >&6; } 38348 fi 38349 38350 38351 test -n "$OBJDUMP" && break 38352 done 38353 fi 38354 if test -z "$OBJDUMP"; then 38355 ac_ct_OBJDUMP=$OBJDUMP 38356 for ac_prog in gobjdump objdump 38357 do 38358 # Extract the first word of "$ac_prog", so it can be a program name with args. 38359 set dummy $ac_prog; ac_word=$2 38360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38361 $as_echo_n "checking for $ac_word... " >&6; } 38362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38363 $as_echo_n "(cached) " >&6 38364 else 38365 if test -n "$ac_ct_OBJDUMP"; then 38366 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38367 else 38368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38369 for as_dir in $PATH 38370 do 38371 IFS=$as_save_IFS 38372 test -z "$as_dir" && as_dir=. 38373 for ac_exec_ext in '' $ac_executable_extensions; do 38374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38375 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38377 break 2 38378 fi 38379 done 38380 done 38381 IFS=$as_save_IFS 38382 38383 fi 38384 fi 38385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38386 if test -n "$ac_ct_OBJDUMP"; then 38387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38388 $as_echo "$ac_ct_OBJDUMP" >&6; } 38389 else 38390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38391 $as_echo "no" >&6; } 38392 fi 38393 38394 38395 test -n "$ac_ct_OBJDUMP" && break 38396 done 38397 38398 if test "x$ac_ct_OBJDUMP" = x; then 38399 OBJDUMP="" 38400 else 38401 case $cross_compiling:$ac_tool_warned in 38402 yes:) 38403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38405 ac_tool_warned=yes ;; 38406 esac 38407 OBJDUMP=$ac_ct_OBJDUMP 38408 fi 38409 fi 38410 38411 else 38412 # If it succeeded, then it was overridden by the user. We will use it 38413 # for the tool. 38414 38415 # First remove it from the list of overridden variables, so we can test 38416 # for unknown variables in the end. 38417 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38418 38419 # Check if the provided tool contains a complete path. 38420 tool_specified="$OBJDUMP" 38421 tool_basename="${tool_specified##*/}" 38422 if test "x$tool_basename" = "x$tool_specified"; then 38423 # A command without a complete path is provided, search $PATH. 38424 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38425 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38426 # Extract the first word of "$tool_basename", so it can be a program name with args. 38427 set dummy $tool_basename; ac_word=$2 38428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38429 $as_echo_n "checking for $ac_word... " >&6; } 38430 if ${ac_cv_path_OBJDUMP+:} false; then : 38431 $as_echo_n "(cached) " >&6 38432 else 38433 case $OBJDUMP in 38434 [\\/]* | ?:[\\/]*) 38435 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38436 ;; 38437 *) 38438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38439 for as_dir in $PATH 38440 do 38441 IFS=$as_save_IFS 38442 test -z "$as_dir" && as_dir=. 38443 for ac_exec_ext in '' $ac_executable_extensions; do 38444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38445 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38447 break 2 38448 fi 38449 done 38450 done 38451 IFS=$as_save_IFS 38452 38453 ;; 38454 esac 38455 fi 38456 OBJDUMP=$ac_cv_path_OBJDUMP 38457 if test -n "$OBJDUMP"; then 38458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38459 $as_echo "$OBJDUMP" >&6; } 38460 else 38461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38462 $as_echo "no" >&6; } 38463 fi 38464 38465 38466 if test "x$OBJDUMP" = x; then 38467 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38468 fi 38469 else 38470 # Otherwise we believe it is a complete path. Use it as it is. 38471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38472 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38474 $as_echo_n "checking for OBJDUMP... " >&6; } 38475 if test ! -x "$tool_specified"; then 38476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38477 $as_echo "not found" >&6; } 38478 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38479 fi 38480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38481 $as_echo "$tool_specified" >&6; } 38482 fi 38483 fi 38484 fi 38485 38486 38487 if test "x$OBJDUMP" != x; then 38488 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38489 # bails if argument is missing. 38490 38491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38492 38493 # First separate the path from the arguments. This will split at the first 38494 # space. 38495 complete="$OBJDUMP" 38496 path="${complete%% *}" 38497 tmp="$complete EOL" 38498 arguments="${tmp#* }" 38499 38500 # Input might be given as Windows format, start by converting to 38501 # unix format. 38502 new_path=`$CYGPATH -u "$path"` 38503 38504 # Now try to locate executable using which 38505 new_path=`$WHICH "$new_path" 2> /dev/null` 38506 # bat and cmd files are not always considered executable in cygwin causing which 38507 # to not find them 38508 if test "x$new_path" = x \ 38509 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38510 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38511 new_path=`$CYGPATH -u "$path"` 38512 fi 38513 if test "x$new_path" = x; then 38514 # Oops. Which didn't find the executable. 38515 # The splitting of arguments from the executable at a space might have been incorrect, 38516 # since paths with space are more likely in Windows. Give it another try with the whole 38517 # argument. 38518 path="$complete" 38519 arguments="EOL" 38520 new_path=`$CYGPATH -u "$path"` 38521 new_path=`$WHICH "$new_path" 2> /dev/null` 38522 # bat and cmd files are not always considered executable in cygwin causing which 38523 # to not find them 38524 if test "x$new_path" = x \ 38525 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38526 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38527 new_path=`$CYGPATH -u "$path"` 38528 fi 38529 if test "x$new_path" = x; then 38530 # It's still not found. Now this is an unrecoverable error. 38531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38532 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38533 has_space=`$ECHO "$complete" | $GREP " "` 38534 if test "x$has_space" != x; then 38535 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38536 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38537 fi 38538 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38539 fi 38540 fi 38541 38542 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38543 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38544 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38545 # "foo.exe" is OK but "foo" is an error. 38546 # 38547 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38548 # It is also a way to make sure we got the proper file name for the real test later on. 38549 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38550 if test "x$test_shortpath" = x; then 38551 # Short path failed, file does not exist as specified. 38552 # Try adding .exe or .cmd 38553 if test -f "${new_path}.exe"; then 38554 input_to_shortpath="${new_path}.exe" 38555 elif test -f "${new_path}.cmd"; then 38556 input_to_shortpath="${new_path}.cmd" 38557 else 38558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38559 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38560 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38561 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38562 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38563 fi 38564 else 38565 input_to_shortpath="$new_path" 38566 fi 38567 38568 # Call helper function which possibly converts this using DOS-style short mode. 38569 # If so, the updated path is stored in $new_path. 38570 new_path="$input_to_shortpath" 38571 38572 input_path="$input_to_shortpath" 38573 # Check if we need to convert this using DOS-style short mode. If the path 38574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38575 # take no chances and rewrite it. 38576 # Note: m4 eats our [], so we need to use [ and ] instead. 38577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38578 if test "x$has_forbidden_chars" != x; then 38579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38580 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38581 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38582 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38583 # Going to short mode and back again did indeed matter. Since short mode is 38584 # case insensitive, let's make it lowercase to improve readability. 38585 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38586 # Now convert it back to Unix-stile (cygpath) 38587 input_path=`$CYGPATH -u "$shortmode_path"` 38588 new_path="$input_path" 38589 fi 38590 fi 38591 38592 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38593 if test "x$test_cygdrive_prefix" = x; then 38594 # As a simple fix, exclude /usr/bin since it's not a real path. 38595 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38596 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38597 # a path prefixed by /cygdrive for fixpath to work. 38598 new_path="$CYGWIN_ROOT_PATH$input_path" 38599 fi 38600 fi 38601 38602 # remove trailing .exe if any 38603 new_path="${new_path/%.exe/}" 38604 38605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38606 38607 # First separate the path from the arguments. This will split at the first 38608 # space. 38609 complete="$OBJDUMP" 38610 path="${complete%% *}" 38611 tmp="$complete EOL" 38612 arguments="${tmp#* }" 38613 38614 # Input might be given as Windows format, start by converting to 38615 # unix format. 38616 new_path="$path" 38617 38618 windows_path="$new_path" 38619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38620 unix_path=`$CYGPATH -u "$windows_path"` 38621 new_path="$unix_path" 38622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38624 new_path="$unix_path" 38625 fi 38626 38627 38628 # Now try to locate executable using which 38629 new_path=`$WHICH "$new_path" 2> /dev/null` 38630 38631 if test "x$new_path" = x; then 38632 # Oops. Which didn't find the executable. 38633 # The splitting of arguments from the executable at a space might have been incorrect, 38634 # since paths with space are more likely in Windows. Give it another try with the whole 38635 # argument. 38636 path="$complete" 38637 arguments="EOL" 38638 new_path="$path" 38639 38640 windows_path="$new_path" 38641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38642 unix_path=`$CYGPATH -u "$windows_path"` 38643 new_path="$unix_path" 38644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38646 new_path="$unix_path" 38647 fi 38648 38649 38650 new_path=`$WHICH "$new_path" 2> /dev/null` 38651 38652 if test "x$new_path" = x; then 38653 # It's still not found. Now this is an unrecoverable error. 38654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38655 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38656 has_space=`$ECHO "$complete" | $GREP " "` 38657 if test "x$has_space" != x; then 38658 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38659 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38660 fi 38661 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38662 fi 38663 fi 38664 38665 # Now new_path has a complete unix path to the binary 38666 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38667 # Keep paths in /bin as-is, but remove trailing .exe if any 38668 new_path="${new_path/%.exe/}" 38669 # Do not save /bin paths to all_fixpath_prefixes! 38670 else 38671 # Not in mixed or Windows style, start by that. 38672 new_path=`cmd //c echo $new_path` 38673 38674 input_path="$new_path" 38675 # Check if we need to convert this using DOS-style short mode. If the path 38676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38677 # take no chances and rewrite it. 38678 # Note: m4 eats our [], so we need to use [ and ] instead. 38679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38680 if test "x$has_forbidden_chars" != x; then 38681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38682 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38683 fi 38684 38685 # Output is in $new_path 38686 38687 windows_path="$new_path" 38688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38689 unix_path=`$CYGPATH -u "$windows_path"` 38690 new_path="$unix_path" 38691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38692 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38693 new_path="$unix_path" 38694 fi 38695 38696 # remove trailing .exe if any 38697 new_path="${new_path/%.exe/}" 38698 38699 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38700 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38701 fi 38702 38703 else 38704 # We're on a posix platform. Hooray! :) 38705 # First separate the path from the arguments. This will split at the first 38706 # space. 38707 complete="$OBJDUMP" 38708 path="${complete%% *}" 38709 tmp="$complete EOL" 38710 arguments="${tmp#* }" 38711 38712 # Cannot rely on the command "which" here since it doesn't always work. 38713 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38714 if test -z "$is_absolute_path"; then 38715 # Path to executable is not absolute. Find it. 38716 IFS_save="$IFS" 38717 IFS=: 38718 for p in $PATH; do 38719 if test -f "$p/$path" && test -x "$p/$path"; then 38720 new_path="$p/$path" 38721 break 38722 fi 38723 done 38724 IFS="$IFS_save" 38725 else 38726 # This is an absolute path, we can use it without further modifications. 38727 new_path="$path" 38728 fi 38729 38730 if test "x$new_path" = x; then 38731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38732 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38733 has_space=`$ECHO "$complete" | $GREP " "` 38734 if test "x$has_space" != x; then 38735 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38736 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38737 fi 38738 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38739 fi 38740 fi 38741 38742 # Now join together the path and the arguments once again 38743 if test "x$arguments" != xEOL; then 38744 new_complete="$new_path ${arguments% *}" 38745 else 38746 new_complete="$new_path" 38747 fi 38748 38749 if test "x$complete" != "x$new_complete"; then 38750 OBJDUMP="$new_complete" 38751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 38752 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 38753 fi 38754 38755 fi 38756 38757 38758 # Restore old path. 38759 PATH="$OLD_PATH" 38760 38761 # Restore the flags to the user specified values. 38762 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 38763 CFLAGS="$ORG_CFLAGS" 38764 CXXFLAGS="$ORG_CXXFLAGS" 38765 OBJCFLAGS="$ORG_OBJCFLAGS" 38766 38767 38768 # Finally do some processing after the detection phase 38769 38770 if test "x$COMPILE_TYPE" = "xcross"; then 38771 # Now we need to find a C/C++ compiler that can build executables for the 38772 # build platform. We can't use the AC_PROG_CC macro, since it can only be 38773 # used once. Also, we need to do this without adding a tools dir to the 38774 # path, otherwise we might pick up cross-compilers which don't use standard 38775 # naming. 38776 38777 # FIXME: we should list the discovered compilers as an exclude pattern! 38778 # If we do that, we can do this detection before POST_DETECTION, and still 38779 # find the build compilers in the tools dir, if needed. 38780 38781 38782 # Publish this variable in the help. 38783 38784 38785 if test "x$BUILD_CC" = x; then 38786 # The variable is not set by user, try to locate tool using the code snippet 38787 for ac_prog in cl cc gcc 38788 do 38789 # Extract the first word of "$ac_prog", so it can be a program name with args. 38790 set dummy $ac_prog; ac_word=$2 38791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38792 $as_echo_n "checking for $ac_word... " >&6; } 38793 if ${ac_cv_path_BUILD_CC+:} false; then : 38794 $as_echo_n "(cached) " >&6 38795 else 38796 case $BUILD_CC in 38797 [\\/]* | ?:[\\/]*) 38798 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38799 ;; 38800 *) 38801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38802 for as_dir in $PATH 38803 do 38804 IFS=$as_save_IFS 38805 test -z "$as_dir" && as_dir=. 38806 for ac_exec_ext in '' $ac_executable_extensions; do 38807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38808 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38810 break 2 38811 fi 38812 done 38813 done 38814 IFS=$as_save_IFS 38815 38816 ;; 38817 esac 38818 fi 38819 BUILD_CC=$ac_cv_path_BUILD_CC 38820 if test -n "$BUILD_CC"; then 38821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38822 $as_echo "$BUILD_CC" >&6; } 38823 else 38824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38825 $as_echo "no" >&6; } 38826 fi 38827 38828 38829 test -n "$BUILD_CC" && break 38830 done 38831 38832 else 38833 # The variable is set, but is it from the command line or the environment? 38834 38835 # Try to remove the string !BUILD_CC! from our list. 38836 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 38837 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38838 # If it failed, the variable was not from the command line. Ignore it, 38839 # but warn the user (except for BASH, which is always set by the calling BASH). 38840 if test "xBUILD_CC" != xBASH; then 38841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 38842 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 38843 fi 38844 # Try to locate tool using the code snippet 38845 for ac_prog in cl cc gcc 38846 do 38847 # Extract the first word of "$ac_prog", so it can be a program name with args. 38848 set dummy $ac_prog; ac_word=$2 38849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38850 $as_echo_n "checking for $ac_word... " >&6; } 38851 if ${ac_cv_path_BUILD_CC+:} false; then : 38852 $as_echo_n "(cached) " >&6 38853 else 38854 case $BUILD_CC in 38855 [\\/]* | ?:[\\/]*) 38856 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38857 ;; 38858 *) 38859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38860 for as_dir in $PATH 38861 do 38862 IFS=$as_save_IFS 38863 test -z "$as_dir" && as_dir=. 38864 for ac_exec_ext in '' $ac_executable_extensions; do 38865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38866 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38868 break 2 38869 fi 38870 done 38871 done 38872 IFS=$as_save_IFS 38873 38874 ;; 38875 esac 38876 fi 38877 BUILD_CC=$ac_cv_path_BUILD_CC 38878 if test -n "$BUILD_CC"; then 38879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38880 $as_echo "$BUILD_CC" >&6; } 38881 else 38882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38883 $as_echo "no" >&6; } 38884 fi 38885 38886 38887 test -n "$BUILD_CC" && break 38888 done 38889 38890 else 38891 # If it succeeded, then it was overridden by the user. We will use it 38892 # for the tool. 38893 38894 # First remove it from the list of overridden variables, so we can test 38895 # for unknown variables in the end. 38896 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38897 38898 # Check if the provided tool contains a complete path. 38899 tool_specified="$BUILD_CC" 38900 tool_basename="${tool_specified##*/}" 38901 if test "x$tool_basename" = "x$tool_specified"; then 38902 # A command without a complete path is provided, search $PATH. 38903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 38904 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 38905 # Extract the first word of "$tool_basename", so it can be a program name with args. 38906 set dummy $tool_basename; ac_word=$2 38907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38908 $as_echo_n "checking for $ac_word... " >&6; } 38909 if ${ac_cv_path_BUILD_CC+:} false; then : 38910 $as_echo_n "(cached) " >&6 38911 else 38912 case $BUILD_CC in 38913 [\\/]* | ?:[\\/]*) 38914 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38915 ;; 38916 *) 38917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38918 for as_dir in $PATH 38919 do 38920 IFS=$as_save_IFS 38921 test -z "$as_dir" && as_dir=. 38922 for ac_exec_ext in '' $ac_executable_extensions; do 38923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38924 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38926 break 2 38927 fi 38928 done 38929 done 38930 IFS=$as_save_IFS 38931 38932 ;; 38933 esac 38934 fi 38935 BUILD_CC=$ac_cv_path_BUILD_CC 38936 if test -n "$BUILD_CC"; then 38937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38938 $as_echo "$BUILD_CC" >&6; } 38939 else 38940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38941 $as_echo "no" >&6; } 38942 fi 38943 38944 38945 if test "x$BUILD_CC" = x; then 38946 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38947 fi 38948 else 38949 # Otherwise we believe it is a complete path. Use it as it is. 38950 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 38951 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 38952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 38953 $as_echo_n "checking for BUILD_CC... " >&6; } 38954 if test ! -x "$tool_specified"; then 38955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38956 $as_echo "not found" >&6; } 38957 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 38958 fi 38959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38960 $as_echo "$tool_specified" >&6; } 38961 fi 38962 fi 38963 fi 38964 38965 38966 38967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38968 38969 # First separate the path from the arguments. This will split at the first 38970 # space. 38971 complete="$BUILD_CC" 38972 path="${complete%% *}" 38973 tmp="$complete EOL" 38974 arguments="${tmp#* }" 38975 38976 # Input might be given as Windows format, start by converting to 38977 # unix format. 38978 new_path=`$CYGPATH -u "$path"` 38979 38980 # Now try to locate executable using which 38981 new_path=`$WHICH "$new_path" 2> /dev/null` 38982 # bat and cmd files are not always considered executable in cygwin causing which 38983 # to not find them 38984 if test "x$new_path" = x \ 38985 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38986 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38987 new_path=`$CYGPATH -u "$path"` 38988 fi 38989 if test "x$new_path" = x; then 38990 # Oops. Which didn't find the executable. 38991 # The splitting of arguments from the executable at a space might have been incorrect, 38992 # since paths with space are more likely in Windows. Give it another try with the whole 38993 # argument. 38994 path="$complete" 38995 arguments="EOL" 38996 new_path=`$CYGPATH -u "$path"` 38997 new_path=`$WHICH "$new_path" 2> /dev/null` 38998 # bat and cmd files are not always considered executable in cygwin causing which 38999 # to not find them 39000 if test "x$new_path" = x \ 39001 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39002 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39003 new_path=`$CYGPATH -u "$path"` 39004 fi 39005 if test "x$new_path" = x; then 39006 # It's still not found. Now this is an unrecoverable error. 39007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39008 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39009 has_space=`$ECHO "$complete" | $GREP " "` 39010 if test "x$has_space" != x; then 39011 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39012 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39013 fi 39014 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39015 fi 39016 fi 39017 39018 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39019 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39020 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39021 # "foo.exe" is OK but "foo" is an error. 39022 # 39023 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39024 # It is also a way to make sure we got the proper file name for the real test later on. 39025 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39026 if test "x$test_shortpath" = x; then 39027 # Short path failed, file does not exist as specified. 39028 # Try adding .exe or .cmd 39029 if test -f "${new_path}.exe"; then 39030 input_to_shortpath="${new_path}.exe" 39031 elif test -f "${new_path}.cmd"; then 39032 input_to_shortpath="${new_path}.cmd" 39033 else 39034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39035 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39036 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39037 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39038 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39039 fi 39040 else 39041 input_to_shortpath="$new_path" 39042 fi 39043 39044 # Call helper function which possibly converts this using DOS-style short mode. 39045 # If so, the updated path is stored in $new_path. 39046 new_path="$input_to_shortpath" 39047 39048 input_path="$input_to_shortpath" 39049 # Check if we need to convert this using DOS-style short mode. If the path 39050 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39051 # take no chances and rewrite it. 39052 # Note: m4 eats our [], so we need to use [ and ] instead. 39053 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39054 if test "x$has_forbidden_chars" != x; then 39055 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39056 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39057 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39058 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39059 # Going to short mode and back again did indeed matter. Since short mode is 39060 # case insensitive, let's make it lowercase to improve readability. 39061 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39062 # Now convert it back to Unix-stile (cygpath) 39063 input_path=`$CYGPATH -u "$shortmode_path"` 39064 new_path="$input_path" 39065 fi 39066 fi 39067 39068 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39069 if test "x$test_cygdrive_prefix" = x; then 39070 # As a simple fix, exclude /usr/bin since it's not a real path. 39071 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39072 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39073 # a path prefixed by /cygdrive for fixpath to work. 39074 new_path="$CYGWIN_ROOT_PATH$input_path" 39075 fi 39076 fi 39077 39078 # remove trailing .exe if any 39079 new_path="${new_path/%.exe/}" 39080 39081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39082 39083 # First separate the path from the arguments. This will split at the first 39084 # space. 39085 complete="$BUILD_CC" 39086 path="${complete%% *}" 39087 tmp="$complete EOL" 39088 arguments="${tmp#* }" 39089 39090 # Input might be given as Windows format, start by converting to 39091 # unix format. 39092 new_path="$path" 39093 39094 windows_path="$new_path" 39095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39096 unix_path=`$CYGPATH -u "$windows_path"` 39097 new_path="$unix_path" 39098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39100 new_path="$unix_path" 39101 fi 39102 39103 39104 # Now try to locate executable using which 39105 new_path=`$WHICH "$new_path" 2> /dev/null` 39106 39107 if test "x$new_path" = x; then 39108 # Oops. Which didn't find the executable. 39109 # The splitting of arguments from the executable at a space might have been incorrect, 39110 # since paths with space are more likely in Windows. Give it another try with the whole 39111 # argument. 39112 path="$complete" 39113 arguments="EOL" 39114 new_path="$path" 39115 39116 windows_path="$new_path" 39117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39118 unix_path=`$CYGPATH -u "$windows_path"` 39119 new_path="$unix_path" 39120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39122 new_path="$unix_path" 39123 fi 39124 39125 39126 new_path=`$WHICH "$new_path" 2> /dev/null` 39127 39128 if test "x$new_path" = x; then 39129 # It's still not found. Now this is an unrecoverable error. 39130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39131 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39132 has_space=`$ECHO "$complete" | $GREP " "` 39133 if test "x$has_space" != x; then 39134 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39135 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39136 fi 39137 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39138 fi 39139 fi 39140 39141 # Now new_path has a complete unix path to the binary 39142 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39143 # Keep paths in /bin as-is, but remove trailing .exe if any 39144 new_path="${new_path/%.exe/}" 39145 # Do not save /bin paths to all_fixpath_prefixes! 39146 else 39147 # Not in mixed or Windows style, start by that. 39148 new_path=`cmd //c echo $new_path` 39149 39150 input_path="$new_path" 39151 # Check if we need to convert this using DOS-style short mode. If the path 39152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39153 # take no chances and rewrite it. 39154 # Note: m4 eats our [], so we need to use [ and ] instead. 39155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39156 if test "x$has_forbidden_chars" != x; then 39157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39158 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39159 fi 39160 39161 # Output is in $new_path 39162 39163 windows_path="$new_path" 39164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39165 unix_path=`$CYGPATH -u "$windows_path"` 39166 new_path="$unix_path" 39167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39169 new_path="$unix_path" 39170 fi 39171 39172 # remove trailing .exe if any 39173 new_path="${new_path/%.exe/}" 39174 39175 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39176 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39177 fi 39178 39179 else 39180 # We're on a posix platform. Hooray! :) 39181 # First separate the path from the arguments. This will split at the first 39182 # space. 39183 complete="$BUILD_CC" 39184 path="${complete%% *}" 39185 tmp="$complete EOL" 39186 arguments="${tmp#* }" 39187 39188 # Cannot rely on the command "which" here since it doesn't always work. 39189 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39190 if test -z "$is_absolute_path"; then 39191 # Path to executable is not absolute. Find it. 39192 IFS_save="$IFS" 39193 IFS=: 39194 for p in $PATH; do 39195 if test -f "$p/$path" && test -x "$p/$path"; then 39196 new_path="$p/$path" 39197 break 39198 fi 39199 done 39200 IFS="$IFS_save" 39201 else 39202 # This is an absolute path, we can use it without further modifications. 39203 new_path="$path" 39204 fi 39205 39206 if test "x$new_path" = x; then 39207 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39208 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39209 has_space=`$ECHO "$complete" | $GREP " "` 39210 if test "x$has_space" != x; then 39211 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39212 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39213 fi 39214 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39215 fi 39216 fi 39217 39218 # Now join together the path and the arguments once again 39219 if test "x$arguments" != xEOL; then 39220 new_complete="$new_path ${arguments% *}" 39221 else 39222 new_complete="$new_path" 39223 fi 39224 39225 if test "x$complete" != "x$new_complete"; then 39226 BUILD_CC="$new_complete" 39227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39228 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39229 fi 39230 39231 39232 39233 # Publish this variable in the help. 39234 39235 39236 if test "x$BUILD_CXX" = x; then 39237 # The variable is not set by user, try to locate tool using the code snippet 39238 for ac_prog in cl CC g++ 39239 do 39240 # Extract the first word of "$ac_prog", so it can be a program name with args. 39241 set dummy $ac_prog; ac_word=$2 39242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39243 $as_echo_n "checking for $ac_word... " >&6; } 39244 if ${ac_cv_path_BUILD_CXX+:} false; then : 39245 $as_echo_n "(cached) " >&6 39246 else 39247 case $BUILD_CXX in 39248 [\\/]* | ?:[\\/]*) 39249 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39250 ;; 39251 *) 39252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39253 for as_dir in $PATH 39254 do 39255 IFS=$as_save_IFS 39256 test -z "$as_dir" && as_dir=. 39257 for ac_exec_ext in '' $ac_executable_extensions; do 39258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39259 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39261 break 2 39262 fi 39263 done 39264 done 39265 IFS=$as_save_IFS 39266 39267 ;; 39268 esac 39269 fi 39270 BUILD_CXX=$ac_cv_path_BUILD_CXX 39271 if test -n "$BUILD_CXX"; then 39272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39273 $as_echo "$BUILD_CXX" >&6; } 39274 else 39275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39276 $as_echo "no" >&6; } 39277 fi 39278 39279 39280 test -n "$BUILD_CXX" && break 39281 done 39282 39283 else 39284 # The variable is set, but is it from the command line or the environment? 39285 39286 # Try to remove the string !BUILD_CXX! from our list. 39287 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39288 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39289 # If it failed, the variable was not from the command line. Ignore it, 39290 # but warn the user (except for BASH, which is always set by the calling BASH). 39291 if test "xBUILD_CXX" != xBASH; then 39292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39293 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39294 fi 39295 # Try to locate tool using the code snippet 39296 for ac_prog in cl CC g++ 39297 do 39298 # Extract the first word of "$ac_prog", so it can be a program name with args. 39299 set dummy $ac_prog; ac_word=$2 39300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39301 $as_echo_n "checking for $ac_word... " >&6; } 39302 if ${ac_cv_path_BUILD_CXX+:} false; then : 39303 $as_echo_n "(cached) " >&6 39304 else 39305 case $BUILD_CXX in 39306 [\\/]* | ?:[\\/]*) 39307 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39308 ;; 39309 *) 39310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39311 for as_dir in $PATH 39312 do 39313 IFS=$as_save_IFS 39314 test -z "$as_dir" && as_dir=. 39315 for ac_exec_ext in '' $ac_executable_extensions; do 39316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39317 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39319 break 2 39320 fi 39321 done 39322 done 39323 IFS=$as_save_IFS 39324 39325 ;; 39326 esac 39327 fi 39328 BUILD_CXX=$ac_cv_path_BUILD_CXX 39329 if test -n "$BUILD_CXX"; then 39330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39331 $as_echo "$BUILD_CXX" >&6; } 39332 else 39333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39334 $as_echo "no" >&6; } 39335 fi 39336 39337 39338 test -n "$BUILD_CXX" && break 39339 done 39340 39341 else 39342 # If it succeeded, then it was overridden by the user. We will use it 39343 # for the tool. 39344 39345 # First remove it from the list of overridden variables, so we can test 39346 # for unknown variables in the end. 39347 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39348 39349 # Check if the provided tool contains a complete path. 39350 tool_specified="$BUILD_CXX" 39351 tool_basename="${tool_specified##*/}" 39352 if test "x$tool_basename" = "x$tool_specified"; then 39353 # A command without a complete path is provided, search $PATH. 39354 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39355 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39356 # Extract the first word of "$tool_basename", so it can be a program name with args. 39357 set dummy $tool_basename; ac_word=$2 39358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39359 $as_echo_n "checking for $ac_word... " >&6; } 39360 if ${ac_cv_path_BUILD_CXX+:} false; then : 39361 $as_echo_n "(cached) " >&6 39362 else 39363 case $BUILD_CXX in 39364 [\\/]* | ?:[\\/]*) 39365 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39366 ;; 39367 *) 39368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39369 for as_dir in $PATH 39370 do 39371 IFS=$as_save_IFS 39372 test -z "$as_dir" && as_dir=. 39373 for ac_exec_ext in '' $ac_executable_extensions; do 39374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39375 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39377 break 2 39378 fi 39379 done 39380 done 39381 IFS=$as_save_IFS 39382 39383 ;; 39384 esac 39385 fi 39386 BUILD_CXX=$ac_cv_path_BUILD_CXX 39387 if test -n "$BUILD_CXX"; then 39388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39389 $as_echo "$BUILD_CXX" >&6; } 39390 else 39391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39392 $as_echo "no" >&6; } 39393 fi 39394 39395 39396 if test "x$BUILD_CXX" = x; then 39397 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39398 fi 39399 else 39400 # Otherwise we believe it is a complete path. Use it as it is. 39401 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39402 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39404 $as_echo_n "checking for BUILD_CXX... " >&6; } 39405 if test ! -x "$tool_specified"; then 39406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39407 $as_echo "not found" >&6; } 39408 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39409 fi 39410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39411 $as_echo "$tool_specified" >&6; } 39412 fi 39413 fi 39414 fi 39415 39416 39417 39418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39419 39420 # First separate the path from the arguments. This will split at the first 39421 # space. 39422 complete="$BUILD_CXX" 39423 path="${complete%% *}" 39424 tmp="$complete EOL" 39425 arguments="${tmp#* }" 39426 39427 # Input might be given as Windows format, start by converting to 39428 # unix format. 39429 new_path=`$CYGPATH -u "$path"` 39430 39431 # Now try to locate executable using which 39432 new_path=`$WHICH "$new_path" 2> /dev/null` 39433 # bat and cmd files are not always considered executable in cygwin causing which 39434 # to not find them 39435 if test "x$new_path" = x \ 39436 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39437 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39438 new_path=`$CYGPATH -u "$path"` 39439 fi 39440 if test "x$new_path" = x; then 39441 # Oops. Which didn't find the executable. 39442 # The splitting of arguments from the executable at a space might have been incorrect, 39443 # since paths with space are more likely in Windows. Give it another try with the whole 39444 # argument. 39445 path="$complete" 39446 arguments="EOL" 39447 new_path=`$CYGPATH -u "$path"` 39448 new_path=`$WHICH "$new_path" 2> /dev/null` 39449 # bat and cmd files are not always considered executable in cygwin causing which 39450 # to not find them 39451 if test "x$new_path" = x \ 39452 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39453 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39454 new_path=`$CYGPATH -u "$path"` 39455 fi 39456 if test "x$new_path" = x; then 39457 # It's still not found. Now this is an unrecoverable error. 39458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39459 $as_echo "$as_me: The path of BUILD_CXX, 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}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39463 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39464 fi 39465 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39466 fi 39467 fi 39468 39469 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39470 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39471 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39472 # "foo.exe" is OK but "foo" is an error. 39473 # 39474 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39475 # It is also a way to make sure we got the proper file name for the real test later on. 39476 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39477 if test "x$test_shortpath" = x; then 39478 # Short path failed, file does not exist as specified. 39479 # Try adding .exe or .cmd 39480 if test -f "${new_path}.exe"; then 39481 input_to_shortpath="${new_path}.exe" 39482 elif test -f "${new_path}.cmd"; then 39483 input_to_shortpath="${new_path}.cmd" 39484 else 39485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39486 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39487 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39488 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39489 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39490 fi 39491 else 39492 input_to_shortpath="$new_path" 39493 fi 39494 39495 # Call helper function which possibly converts this using DOS-style short mode. 39496 # If so, the updated path is stored in $new_path. 39497 new_path="$input_to_shortpath" 39498 39499 input_path="$input_to_shortpath" 39500 # Check if we need to convert this using DOS-style short mode. If the path 39501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39502 # take no chances and rewrite it. 39503 # Note: m4 eats our [], so we need to use [ and ] instead. 39504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39505 if test "x$has_forbidden_chars" != x; then 39506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39507 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39508 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39509 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39510 # Going to short mode and back again did indeed matter. Since short mode is 39511 # case insensitive, let's make it lowercase to improve readability. 39512 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39513 # Now convert it back to Unix-stile (cygpath) 39514 input_path=`$CYGPATH -u "$shortmode_path"` 39515 new_path="$input_path" 39516 fi 39517 fi 39518 39519 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39520 if test "x$test_cygdrive_prefix" = x; then 39521 # As a simple fix, exclude /usr/bin since it's not a real path. 39522 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39523 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39524 # a path prefixed by /cygdrive for fixpath to work. 39525 new_path="$CYGWIN_ROOT_PATH$input_path" 39526 fi 39527 fi 39528 39529 # remove trailing .exe if any 39530 new_path="${new_path/%.exe/}" 39531 39532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39533 39534 # First separate the path from the arguments. This will split at the first 39535 # space. 39536 complete="$BUILD_CXX" 39537 path="${complete%% *}" 39538 tmp="$complete EOL" 39539 arguments="${tmp#* }" 39540 39541 # Input might be given as Windows format, start by converting to 39542 # unix format. 39543 new_path="$path" 39544 39545 windows_path="$new_path" 39546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39547 unix_path=`$CYGPATH -u "$windows_path"` 39548 new_path="$unix_path" 39549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39551 new_path="$unix_path" 39552 fi 39553 39554 39555 # Now try to locate executable using which 39556 new_path=`$WHICH "$new_path" 2> /dev/null` 39557 39558 if test "x$new_path" = x; then 39559 # Oops. Which didn't find the executable. 39560 # The splitting of arguments from the executable at a space might have been incorrect, 39561 # since paths with space are more likely in Windows. Give it another try with the whole 39562 # argument. 39563 path="$complete" 39564 arguments="EOL" 39565 new_path="$path" 39566 39567 windows_path="$new_path" 39568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39569 unix_path=`$CYGPATH -u "$windows_path"` 39570 new_path="$unix_path" 39571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39572 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39573 new_path="$unix_path" 39574 fi 39575 39576 39577 new_path=`$WHICH "$new_path" 2> /dev/null` 39578 39579 if test "x$new_path" = x; then 39580 # It's still not found. Now this is an unrecoverable error. 39581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39582 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39583 has_space=`$ECHO "$complete" | $GREP " "` 39584 if test "x$has_space" != x; then 39585 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39586 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39587 fi 39588 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39589 fi 39590 fi 39591 39592 # Now new_path has a complete unix path to the binary 39593 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39594 # Keep paths in /bin as-is, but remove trailing .exe if any 39595 new_path="${new_path/%.exe/}" 39596 # Do not save /bin paths to all_fixpath_prefixes! 39597 else 39598 # Not in mixed or Windows style, start by that. 39599 new_path=`cmd //c echo $new_path` 39600 39601 input_path="$new_path" 39602 # Check if we need to convert this using DOS-style short mode. If the path 39603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39604 # take no chances and rewrite it. 39605 # Note: m4 eats our [], so we need to use [ and ] instead. 39606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39607 if test "x$has_forbidden_chars" != x; then 39608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39609 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39610 fi 39611 39612 # Output is in $new_path 39613 39614 windows_path="$new_path" 39615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39616 unix_path=`$CYGPATH -u "$windows_path"` 39617 new_path="$unix_path" 39618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39619 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39620 new_path="$unix_path" 39621 fi 39622 39623 # remove trailing .exe if any 39624 new_path="${new_path/%.exe/}" 39625 39626 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39627 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39628 fi 39629 39630 else 39631 # We're on a posix platform. Hooray! :) 39632 # First separate the path from the arguments. This will split at the first 39633 # space. 39634 complete="$BUILD_CXX" 39635 path="${complete%% *}" 39636 tmp="$complete EOL" 39637 arguments="${tmp#* }" 39638 39639 # Cannot rely on the command "which" here since it doesn't always work. 39640 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39641 if test -z "$is_absolute_path"; then 39642 # Path to executable is not absolute. Find it. 39643 IFS_save="$IFS" 39644 IFS=: 39645 for p in $PATH; do 39646 if test -f "$p/$path" && test -x "$p/$path"; then 39647 new_path="$p/$path" 39648 break 39649 fi 39650 done 39651 IFS="$IFS_save" 39652 else 39653 # This is an absolute path, we can use it without further modifications. 39654 new_path="$path" 39655 fi 39656 39657 if test "x$new_path" = x; then 39658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39659 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39660 has_space=`$ECHO "$complete" | $GREP " "` 39661 if test "x$has_space" != x; then 39662 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39663 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39664 fi 39665 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39666 fi 39667 fi 39668 39669 # Now join together the path and the arguments once again 39670 if test "x$arguments" != xEOL; then 39671 new_complete="$new_path ${arguments% *}" 39672 else 39673 new_complete="$new_path" 39674 fi 39675 39676 if test "x$complete" != "x$new_complete"; then 39677 BUILD_CXX="$new_complete" 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 39679 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 39680 fi 39681 39682 39683 39684 # Publish this variable in the help. 39685 39686 39687 if test "x$BUILD_LD" = x; then 39688 # The variable is not set by user, try to locate tool using the code snippet 39689 for ac_prog in ld 39690 do 39691 # Extract the first word of "$ac_prog", so it can be a program name with args. 39692 set dummy $ac_prog; ac_word=$2 39693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39694 $as_echo_n "checking for $ac_word... " >&6; } 39695 if ${ac_cv_path_BUILD_LD+:} false; then : 39696 $as_echo_n "(cached) " >&6 39697 else 39698 case $BUILD_LD in 39699 [\\/]* | ?:[\\/]*) 39700 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39701 ;; 39702 *) 39703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39704 for as_dir in $PATH 39705 do 39706 IFS=$as_save_IFS 39707 test -z "$as_dir" && as_dir=. 39708 for ac_exec_ext in '' $ac_executable_extensions; do 39709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39710 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39712 break 2 39713 fi 39714 done 39715 done 39716 IFS=$as_save_IFS 39717 39718 ;; 39719 esac 39720 fi 39721 BUILD_LD=$ac_cv_path_BUILD_LD 39722 if test -n "$BUILD_LD"; then 39723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39724 $as_echo "$BUILD_LD" >&6; } 39725 else 39726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39727 $as_echo "no" >&6; } 39728 fi 39729 39730 39731 test -n "$BUILD_LD" && break 39732 done 39733 39734 else 39735 # The variable is set, but is it from the command line or the environment? 39736 39737 # Try to remove the string !BUILD_LD! from our list. 39738 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 39739 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39740 # If it failed, the variable was not from the command line. Ignore it, 39741 # but warn the user (except for BASH, which is always set by the calling BASH). 39742 if test "xBUILD_LD" != xBASH; then 39743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 39744 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 39745 fi 39746 # Try to locate tool using the code snippet 39747 for ac_prog in ld 39748 do 39749 # Extract the first word of "$ac_prog", so it can be a program name with args. 39750 set dummy $ac_prog; ac_word=$2 39751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39752 $as_echo_n "checking for $ac_word... " >&6; } 39753 if ${ac_cv_path_BUILD_LD+:} false; then : 39754 $as_echo_n "(cached) " >&6 39755 else 39756 case $BUILD_LD in 39757 [\\/]* | ?:[\\/]*) 39758 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39759 ;; 39760 *) 39761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39762 for as_dir in $PATH 39763 do 39764 IFS=$as_save_IFS 39765 test -z "$as_dir" && as_dir=. 39766 for ac_exec_ext in '' $ac_executable_extensions; do 39767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39768 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39770 break 2 39771 fi 39772 done 39773 done 39774 IFS=$as_save_IFS 39775 39776 ;; 39777 esac 39778 fi 39779 BUILD_LD=$ac_cv_path_BUILD_LD 39780 if test -n "$BUILD_LD"; then 39781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39782 $as_echo "$BUILD_LD" >&6; } 39783 else 39784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39785 $as_echo "no" >&6; } 39786 fi 39787 39788 39789 test -n "$BUILD_LD" && break 39790 done 39791 39792 else 39793 # If it succeeded, then it was overridden by the user. We will use it 39794 # for the tool. 39795 39796 # First remove it from the list of overridden variables, so we can test 39797 # for unknown variables in the end. 39798 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39799 39800 # Check if the provided tool contains a complete path. 39801 tool_specified="$BUILD_LD" 39802 tool_basename="${tool_specified##*/}" 39803 if test "x$tool_basename" = "x$tool_specified"; then 39804 # A command without a complete path is provided, search $PATH. 39805 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 39806 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 39807 # Extract the first word of "$tool_basename", so it can be a program name with args. 39808 set dummy $tool_basename; ac_word=$2 39809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39810 $as_echo_n "checking for $ac_word... " >&6; } 39811 if ${ac_cv_path_BUILD_LD+:} false; then : 39812 $as_echo_n "(cached) " >&6 39813 else 39814 case $BUILD_LD in 39815 [\\/]* | ?:[\\/]*) 39816 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39817 ;; 39818 *) 39819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39820 for as_dir in $PATH 39821 do 39822 IFS=$as_save_IFS 39823 test -z "$as_dir" && as_dir=. 39824 for ac_exec_ext in '' $ac_executable_extensions; do 39825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39826 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39828 break 2 39829 fi 39830 done 39831 done 39832 IFS=$as_save_IFS 39833 39834 ;; 39835 esac 39836 fi 39837 BUILD_LD=$ac_cv_path_BUILD_LD 39838 if test -n "$BUILD_LD"; then 39839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39840 $as_echo "$BUILD_LD" >&6; } 39841 else 39842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39843 $as_echo "no" >&6; } 39844 fi 39845 39846 39847 if test "x$BUILD_LD" = x; then 39848 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39849 fi 39850 else 39851 # Otherwise we believe it is a complete path. Use it as it is. 39852 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 39853 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 39854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 39855 $as_echo_n "checking for BUILD_LD... " >&6; } 39856 if test ! -x "$tool_specified"; then 39857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39858 $as_echo "not found" >&6; } 39859 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 39860 fi 39861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39862 $as_echo "$tool_specified" >&6; } 39863 fi 39864 fi 39865 fi 39866 39867 39868 39869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39870 39871 # First separate the path from the arguments. This will split at the first 39872 # space. 39873 complete="$BUILD_LD" 39874 path="${complete%% *}" 39875 tmp="$complete EOL" 39876 arguments="${tmp#* }" 39877 39878 # Input might be given as Windows format, start by converting to 39879 # unix format. 39880 new_path=`$CYGPATH -u "$path"` 39881 39882 # Now try to locate executable using which 39883 new_path=`$WHICH "$new_path" 2> /dev/null` 39884 # bat and cmd files are not always considered executable in cygwin causing which 39885 # to not find them 39886 if test "x$new_path" = x \ 39887 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39888 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39889 new_path=`$CYGPATH -u "$path"` 39890 fi 39891 if test "x$new_path" = x; then 39892 # Oops. Which didn't find the executable. 39893 # The splitting of arguments from the executable at a space might have been incorrect, 39894 # since paths with space are more likely in Windows. Give it another try with the whole 39895 # argument. 39896 path="$complete" 39897 arguments="EOL" 39898 new_path=`$CYGPATH -u "$path"` 39899 new_path=`$WHICH "$new_path" 2> /dev/null` 39900 # bat and cmd files are not always considered executable in cygwin causing which 39901 # to not find them 39902 if test "x$new_path" = x \ 39903 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39904 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39905 new_path=`$CYGPATH -u "$path"` 39906 fi 39907 if test "x$new_path" = x; then 39908 # It's still not found. Now this is an unrecoverable error. 39909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 39910 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 39911 has_space=`$ECHO "$complete" | $GREP " "` 39912 if test "x$has_space" != x; then 39913 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39914 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39915 fi 39916 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39917 fi 39918 fi 39919 39920 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39921 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39922 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39923 # "foo.exe" is OK but "foo" is an error. 39924 # 39925 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39926 # It is also a way to make sure we got the proper file name for the real test later on. 39927 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39928 if test "x$test_shortpath" = x; then 39929 # Short path failed, file does not exist as specified. 39930 # Try adding .exe or .cmd 39931 if test -f "${new_path}.exe"; then 39932 input_to_shortpath="${new_path}.exe" 39933 elif test -f "${new_path}.cmd"; then 39934 input_to_shortpath="${new_path}.cmd" 39935 else 39936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 39937 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 39938 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39939 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39940 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39941 fi 39942 else 39943 input_to_shortpath="$new_path" 39944 fi 39945 39946 # Call helper function which possibly converts this using DOS-style short mode. 39947 # If so, the updated path is stored in $new_path. 39948 new_path="$input_to_shortpath" 39949 39950 input_path="$input_to_shortpath" 39951 # Check if we need to convert this using DOS-style short mode. If the path 39952 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39953 # take no chances and rewrite it. 39954 # Note: m4 eats our [], so we need to use [ and ] instead. 39955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39956 if test "x$has_forbidden_chars" != x; then 39957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39958 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39959 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39960 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39961 # Going to short mode and back again did indeed matter. Since short mode is 39962 # case insensitive, let's make it lowercase to improve readability. 39963 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39964 # Now convert it back to Unix-stile (cygpath) 39965 input_path=`$CYGPATH -u "$shortmode_path"` 39966 new_path="$input_path" 39967 fi 39968 fi 39969 39970 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39971 if test "x$test_cygdrive_prefix" = x; then 39972 # As a simple fix, exclude /usr/bin since it's not a real path. 39973 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39974 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39975 # a path prefixed by /cygdrive for fixpath to work. 39976 new_path="$CYGWIN_ROOT_PATH$input_path" 39977 fi 39978 fi 39979 39980 # remove trailing .exe if any 39981 new_path="${new_path/%.exe/}" 39982 39983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39984 39985 # First separate the path from the arguments. This will split at the first 39986 # space. 39987 complete="$BUILD_LD" 39988 path="${complete%% *}" 39989 tmp="$complete EOL" 39990 arguments="${tmp#* }" 39991 39992 # Input might be given as Windows format, start by converting to 39993 # unix format. 39994 new_path="$path" 39995 39996 windows_path="$new_path" 39997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39998 unix_path=`$CYGPATH -u "$windows_path"` 39999 new_path="$unix_path" 40000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40002 new_path="$unix_path" 40003 fi 40004 40005 40006 # Now try to locate executable using which 40007 new_path=`$WHICH "$new_path" 2> /dev/null` 40008 40009 if test "x$new_path" = x; then 40010 # Oops. Which didn't find the executable. 40011 # The splitting of arguments from the executable at a space might have been incorrect, 40012 # since paths with space are more likely in Windows. Give it another try with the whole 40013 # argument. 40014 path="$complete" 40015 arguments="EOL" 40016 new_path="$path" 40017 40018 windows_path="$new_path" 40019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40020 unix_path=`$CYGPATH -u "$windows_path"` 40021 new_path="$unix_path" 40022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40024 new_path="$unix_path" 40025 fi 40026 40027 40028 new_path=`$WHICH "$new_path" 2> /dev/null` 40029 40030 if test "x$new_path" = x; then 40031 # It's still not found. Now this is an unrecoverable error. 40032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40033 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40034 has_space=`$ECHO "$complete" | $GREP " "` 40035 if test "x$has_space" != x; then 40036 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40037 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40038 fi 40039 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40040 fi 40041 fi 40042 40043 # Now new_path has a complete unix path to the binary 40044 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40045 # Keep paths in /bin as-is, but remove trailing .exe if any 40046 new_path="${new_path/%.exe/}" 40047 # Do not save /bin paths to all_fixpath_prefixes! 40048 else 40049 # Not in mixed or Windows style, start by that. 40050 new_path=`cmd //c echo $new_path` 40051 40052 input_path="$new_path" 40053 # Check if we need to convert this using DOS-style short mode. If the path 40054 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40055 # take no chances and rewrite it. 40056 # Note: m4 eats our [], so we need to use [ and ] instead. 40057 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40058 if test "x$has_forbidden_chars" != x; then 40059 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40060 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40061 fi 40062 40063 # Output is in $new_path 40064 40065 windows_path="$new_path" 40066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40067 unix_path=`$CYGPATH -u "$windows_path"` 40068 new_path="$unix_path" 40069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40070 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40071 new_path="$unix_path" 40072 fi 40073 40074 # remove trailing .exe if any 40075 new_path="${new_path/%.exe/}" 40076 40077 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40078 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40079 fi 40080 40081 else 40082 # We're on a posix platform. Hooray! :) 40083 # First separate the path from the arguments. This will split at the first 40084 # space. 40085 complete="$BUILD_LD" 40086 path="${complete%% *}" 40087 tmp="$complete EOL" 40088 arguments="${tmp#* }" 40089 40090 # Cannot rely on the command "which" here since it doesn't always work. 40091 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40092 if test -z "$is_absolute_path"; then 40093 # Path to executable is not absolute. Find it. 40094 IFS_save="$IFS" 40095 IFS=: 40096 for p in $PATH; do 40097 if test -f "$p/$path" && test -x "$p/$path"; then 40098 new_path="$p/$path" 40099 break 40100 fi 40101 done 40102 IFS="$IFS_save" 40103 else 40104 # This is an absolute path, we can use it without further modifications. 40105 new_path="$path" 40106 fi 40107 40108 if test "x$new_path" = x; then 40109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40110 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40111 has_space=`$ECHO "$complete" | $GREP " "` 40112 if test "x$has_space" != x; then 40113 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40114 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40115 fi 40116 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40117 fi 40118 fi 40119 40120 # Now join together the path and the arguments once again 40121 if test "x$arguments" != xEOL; then 40122 new_complete="$new_path ${arguments% *}" 40123 else 40124 new_complete="$new_path" 40125 fi 40126 40127 if test "x$complete" != "x$new_complete"; then 40128 BUILD_LD="$new_complete" 40129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40130 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40131 fi 40132 40133 else 40134 # If we are not cross compiling, use the normal target compilers for 40135 # building the build platform executables. 40136 BUILD_CC="$CC" 40137 BUILD_CXX="$CXX" 40138 BUILD_LD="$LD" 40139 fi 40140 40141 40142 40143 40144 40145 40146 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40147 # For hotspot, we need these in Windows mixed path, 40148 # so rewrite them all. Need added .exe suffix. 40149 HOTSPOT_CXX="$CXX.exe" 40150 HOTSPOT_LD="$LD.exe" 40151 HOTSPOT_MT="$MT.exe" 40152 HOTSPOT_RC="$RC.exe" 40153 40154 unix_path="$HOTSPOT_CXX" 40155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40156 windows_path=`$CYGPATH -m "$unix_path"` 40157 HOTSPOT_CXX="$windows_path" 40158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40159 windows_path=`cmd //c echo $unix_path` 40160 HOTSPOT_CXX="$windows_path" 40161 fi 40162 40163 40164 unix_path="$HOTSPOT_LD" 40165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40166 windows_path=`$CYGPATH -m "$unix_path"` 40167 HOTSPOT_LD="$windows_path" 40168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40169 windows_path=`cmd //c echo $unix_path` 40170 HOTSPOT_LD="$windows_path" 40171 fi 40172 40173 40174 unix_path="$HOTSPOT_MT" 40175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40176 windows_path=`$CYGPATH -m "$unix_path"` 40177 HOTSPOT_MT="$windows_path" 40178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40179 windows_path=`cmd //c echo $unix_path` 40180 HOTSPOT_MT="$windows_path" 40181 fi 40182 40183 40184 unix_path="$HOTSPOT_RC" 40185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40186 windows_path=`$CYGPATH -m "$unix_path"` 40187 HOTSPOT_RC="$windows_path" 40188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40189 windows_path=`cmd //c echo $unix_path` 40190 HOTSPOT_RC="$windows_path" 40191 fi 40192 40193 40194 40195 else 40196 HOTSPOT_CXX="$CXX" 40197 HOTSPOT_LD="$LD" 40198 fi 40199 40200 40201 40202 if test "x$TOOLCHAIN_TYPE" = xclang; then 40203 USE_CLANG=true 40204 fi 40205 40206 40207 # LDEXE is the linker to use, when creating executables. Not really used. 40208 # FIXME: These should just be removed! 40209 LDEXE="$LD" 40210 LDEXECXX="$LDCXX" 40211 40212 40213 40214 40215 # The package path is used only on macosx? 40216 # FIXME: clean this up, and/or move it elsewhere. 40217 PACKAGE_PATH=/opt/local 40218 40219 40220 # Check for extra potential brokenness. 40221 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40222 # On Windows, double-check that we got the right compiler. 40223 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40224 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40225 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40226 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40227 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40228 fi 40229 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40230 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40231 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40232 fi 40233 fi 40234 fi 40235 40236 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40237 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40238 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40239 # This is later checked when setting flags. 40240 fi 40241 40242 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40243 # in executable.' 40244 USING_BROKEN_SUSE_LD=no 40245 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40247 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40248 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 40249 echo "int main() { }" > main.c 40250 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40252 $as_echo "no" >&6; } 40253 USING_BROKEN_SUSE_LD=no 40254 else 40255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40256 $as_echo "yes" >&6; } 40257 USING_BROKEN_SUSE_LD=yes 40258 fi 40259 rm -rf version-script.map main.c a.out 40260 fi 40261 40262 40263 40264 # Setup the JTReg Regression Test Harness. 40265 40266 40267 # Check whether --with-jtreg was given. 40268 if test "${with_jtreg+set}" = set; then : 40269 withval=$with_jtreg; 40270 else 40271 with_jtreg=no 40272 fi 40273 40274 40275 if test "x$with_jtreg" = xno; then 40276 # jtreg disabled 40277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40278 $as_echo_n "checking for jtreg... " >&6; } 40279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40280 $as_echo "no" >&6; } 40281 else 40282 if test "x$with_jtreg" != xyes; then 40283 # with path specified. 40284 JT_HOME="$with_jtreg" 40285 fi 40286 40287 if test "x$JT_HOME" != x; then 40288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40289 $as_echo_n "checking for jtreg... " >&6; } 40290 40291 # use JT_HOME enviroment var. 40292 40293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40294 40295 # Input might be given as Windows format, start by converting to 40296 # unix format. 40297 path="$JT_HOME" 40298 new_path=`$CYGPATH -u "$path"` 40299 40300 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40301 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40302 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40303 # "foo.exe" is OK but "foo" is an error. 40304 # 40305 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40306 # It is also a way to make sure we got the proper file name for the real test later on. 40307 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40308 if test "x$test_shortpath" = x; then 40309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40310 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40311 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40312 fi 40313 40314 # Call helper function which possibly converts this using DOS-style short mode. 40315 # If so, the updated path is stored in $new_path. 40316 40317 input_path="$new_path" 40318 # Check if we need to convert this using DOS-style short mode. If the path 40319 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40320 # take no chances and rewrite it. 40321 # Note: m4 eats our [], so we need to use [ and ] instead. 40322 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40323 if test "x$has_forbidden_chars" != x; then 40324 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40325 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40326 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40327 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40328 # Going to short mode and back again did indeed matter. Since short mode is 40329 # case insensitive, let's make it lowercase to improve readability. 40330 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40331 # Now convert it back to Unix-stile (cygpath) 40332 input_path=`$CYGPATH -u "$shortmode_path"` 40333 new_path="$input_path" 40334 fi 40335 fi 40336 40337 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40338 if test "x$test_cygdrive_prefix" = x; then 40339 # As a simple fix, exclude /usr/bin since it's not a real path. 40340 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40341 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40342 # a path prefixed by /cygdrive for fixpath to work. 40343 new_path="$CYGWIN_ROOT_PATH$input_path" 40344 fi 40345 fi 40346 40347 40348 if test "x$path" != "x$new_path"; then 40349 JT_HOME="$new_path" 40350 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40351 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40352 fi 40353 40354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40355 40356 path="$JT_HOME" 40357 has_colon=`$ECHO $path | $GREP ^.:` 40358 new_path="$path" 40359 if test "x$has_colon" = x; then 40360 # Not in mixed or Windows style, start by that. 40361 new_path=`cmd //c echo $path` 40362 fi 40363 40364 40365 input_path="$new_path" 40366 # Check if we need to convert this using DOS-style short mode. If the path 40367 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40368 # take no chances and rewrite it. 40369 # Note: m4 eats our [], so we need to use [ and ] instead. 40370 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40371 if test "x$has_forbidden_chars" != x; then 40372 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40373 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40374 fi 40375 40376 40377 windows_path="$new_path" 40378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40379 unix_path=`$CYGPATH -u "$windows_path"` 40380 new_path="$unix_path" 40381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40383 new_path="$unix_path" 40384 fi 40385 40386 if test "x$path" != "x$new_path"; then 40387 JT_HOME="$new_path" 40388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40389 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40390 fi 40391 40392 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40393 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40394 40395 else 40396 # We're on a posix platform. Hooray! :) 40397 path="$JT_HOME" 40398 has_space=`$ECHO "$path" | $GREP " "` 40399 if test "x$has_space" != x; then 40400 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40401 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40402 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40403 fi 40404 40405 # Use eval to expand a potential ~ 40406 eval path="$path" 40407 if test ! -f "$path" && test ! -d "$path"; then 40408 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40409 fi 40410 40411 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40412 fi 40413 40414 40415 # jtreg win32 script works for everybody 40416 JTREGEXE="$JT_HOME/win32/bin/jtreg" 40417 40418 if test ! -f "$JTREGEXE"; then 40419 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40420 fi 40421 40422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40423 $as_echo "$JTREGEXE" >&6; } 40424 else 40425 # try to find jtreg on path 40426 40427 40428 40429 # Publish this variable in the help. 40430 40431 40432 if test "x$JTREGEXE" = x; then 40433 # The variable is not set by user, try to locate tool using the code snippet 40434 for ac_prog in jtreg 40435 do 40436 # Extract the first word of "$ac_prog", so it can be a program name with args. 40437 set dummy $ac_prog; ac_word=$2 40438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40439 $as_echo_n "checking for $ac_word... " >&6; } 40440 if ${ac_cv_path_JTREGEXE+:} false; then : 40441 $as_echo_n "(cached) " >&6 40442 else 40443 case $JTREGEXE in 40444 [\\/]* | ?:[\\/]*) 40445 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40446 ;; 40447 *) 40448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40449 for as_dir in $PATH 40450 do 40451 IFS=$as_save_IFS 40452 test -z "$as_dir" && as_dir=. 40453 for ac_exec_ext in '' $ac_executable_extensions; do 40454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40455 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40457 break 2 40458 fi 40459 done 40460 done 40461 IFS=$as_save_IFS 40462 40463 ;; 40464 esac 40465 fi 40466 JTREGEXE=$ac_cv_path_JTREGEXE 40467 if test -n "$JTREGEXE"; then 40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40469 $as_echo "$JTREGEXE" >&6; } 40470 else 40471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40472 $as_echo "no" >&6; } 40473 fi 40474 40475 40476 test -n "$JTREGEXE" && break 40477 done 40478 40479 else 40480 # The variable is set, but is it from the command line or the environment? 40481 40482 # Try to remove the string !JTREGEXE! from our list. 40483 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40484 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40485 # If it failed, the variable was not from the command line. Ignore it, 40486 # but warn the user (except for BASH, which is always set by the calling BASH). 40487 if test "xJTREGEXE" != xBASH; then 40488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40489 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40490 fi 40491 # Try to locate tool using the code snippet 40492 for ac_prog in jtreg 40493 do 40494 # Extract the first word of "$ac_prog", so it can be a program name with args. 40495 set dummy $ac_prog; ac_word=$2 40496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40497 $as_echo_n "checking for $ac_word... " >&6; } 40498 if ${ac_cv_path_JTREGEXE+:} false; then : 40499 $as_echo_n "(cached) " >&6 40500 else 40501 case $JTREGEXE in 40502 [\\/]* | ?:[\\/]*) 40503 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40504 ;; 40505 *) 40506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40507 for as_dir in $PATH 40508 do 40509 IFS=$as_save_IFS 40510 test -z "$as_dir" && as_dir=. 40511 for ac_exec_ext in '' $ac_executable_extensions; do 40512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40513 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40515 break 2 40516 fi 40517 done 40518 done 40519 IFS=$as_save_IFS 40520 40521 ;; 40522 esac 40523 fi 40524 JTREGEXE=$ac_cv_path_JTREGEXE 40525 if test -n "$JTREGEXE"; then 40526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40527 $as_echo "$JTREGEXE" >&6; } 40528 else 40529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40530 $as_echo "no" >&6; } 40531 fi 40532 40533 40534 test -n "$JTREGEXE" && break 40535 done 40536 40537 else 40538 # If it succeeded, then it was overridden by the user. We will use it 40539 # for the tool. 40540 40541 # First remove it from the list of overridden variables, so we can test 40542 # for unknown variables in the end. 40543 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40544 40545 # Check if the provided tool contains a complete path. 40546 tool_specified="$JTREGEXE" 40547 tool_basename="${tool_specified##*/}" 40548 if test "x$tool_basename" = "x$tool_specified"; then 40549 # A command without a complete path is provided, search $PATH. 40550 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 40551 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 40552 # Extract the first word of "$tool_basename", so it can be a program name with args. 40553 set dummy $tool_basename; ac_word=$2 40554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40555 $as_echo_n "checking for $ac_word... " >&6; } 40556 if ${ac_cv_path_JTREGEXE+:} false; then : 40557 $as_echo_n "(cached) " >&6 40558 else 40559 case $JTREGEXE in 40560 [\\/]* | ?:[\\/]*) 40561 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40562 ;; 40563 *) 40564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40565 for as_dir in $PATH 40566 do 40567 IFS=$as_save_IFS 40568 test -z "$as_dir" && as_dir=. 40569 for ac_exec_ext in '' $ac_executable_extensions; do 40570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40571 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40573 break 2 40574 fi 40575 done 40576 done 40577 IFS=$as_save_IFS 40578 40579 ;; 40580 esac 40581 fi 40582 JTREGEXE=$ac_cv_path_JTREGEXE 40583 if test -n "$JTREGEXE"; then 40584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40585 $as_echo "$JTREGEXE" >&6; } 40586 else 40587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40588 $as_echo "no" >&6; } 40589 fi 40590 40591 40592 if test "x$JTREGEXE" = x; then 40593 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40594 fi 40595 else 40596 # Otherwise we believe it is a complete path. Use it as it is. 40597 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 40598 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 40599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 40600 $as_echo_n "checking for JTREGEXE... " >&6; } 40601 if test ! -x "$tool_specified"; then 40602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40603 $as_echo "not found" >&6; } 40604 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 40605 fi 40606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40607 $as_echo "$tool_specified" >&6; } 40608 fi 40609 fi 40610 fi 40611 40612 40613 40614 if test "x$JTREGEXE" = x; then 40615 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 40616 fi 40617 40618 40619 JT_HOME="`$DIRNAME $JTREGEXE`" 40620 fi 40621 fi 40622 40623 40624 40625 40626 40627 40628 # Option used to tell the compiler whether to create 32- or 64-bit executables 40629 if test "x$TOOLCHAIN_TYPE" = xxlc; then 40630 COMPILER_TARGET_BITS_FLAG="-q" 40631 else 40632 COMPILER_TARGET_BITS_FLAG="-m" 40633 fi 40634 40635 40636 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 40637 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40638 ARFLAGS="-r" 40639 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40640 ARFLAGS="-X64" 40641 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 40642 # lib.exe is used as AR to create static libraries. 40643 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 40644 else 40645 ARFLAGS="" 40646 fi 40647 40648 40649 ## Setup strip. 40650 # FIXME: should this really be per platform, or should it be per toolchain type? 40651 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 40652 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 40653 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40654 STRIPFLAGS="-g" 40655 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 40656 STRIPFLAGS="-x" 40657 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 40658 STRIPFLAGS="-S" 40659 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40660 STRIPFLAGS="-X32_64" 40661 fi 40662 40663 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40664 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 40665 fi 40666 40667 40668 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40669 # FIXME: break out into MCSFLAGS 40670 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 40671 fi 40672 40673 40674 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40675 CC_OUT_OPTION=-Fo 40676 EXE_OUT_OPTION=-out: 40677 LD_OUT_OPTION=-out: 40678 AR_OUT_OPTION=-out: 40679 else 40680 # The option used to specify the target .o,.a or .so file. 40681 # When compiling, how to specify the to be created object file. 40682 CC_OUT_OPTION='-o$(SPACE)' 40683 # When linking, how to specify the to be created executable. 40684 EXE_OUT_OPTION='-o$(SPACE)' 40685 # When linking, how to specify the to be created dynamically linkable library. 40686 LD_OUT_OPTION='-o$(SPACE)' 40687 # When archiving, how to specify the to be create static archive for object files. 40688 AR_OUT_OPTION='rcs$(SPACE)' 40689 fi 40690 40691 40692 40693 40694 40695 # On Windows, we need to set RC flags. 40696 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40697 RC_FLAGS="-nologo -l 0x409 -r" 40698 if test "x$VARIANT" = xOPT; then 40699 RC_FLAGS="$RC_FLAGS -d NDEBUG" 40700 fi 40701 40702 # The version variables used to create RC_FLAGS may be overridden 40703 # in a custom configure script, or possibly the command line. 40704 # Let those variables be expanded at make time in spec.gmk. 40705 # The \$ are escaped to the shell, and the $(...) variables 40706 # are evaluated by make. 40707 RC_FLAGS="$RC_FLAGS \ 40708 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 40709 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 40710 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 40711 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 40712 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 40713 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 40714 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 40715 fi 40716 40717 40718 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40719 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 40720 CCXXFLAGS="$CCXXFLAGS -nologo" 40721 fi 40722 40723 if test "x$SYSROOT" != "x"; then 40724 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40725 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40726 # When using a sysroot on Solaris with Solaris Studio, make sure the 40727 # /usr/include dir in it is added to all compile lines. 40728 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 40729 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 40730 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 40731 fi 40732 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 40733 SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\"" 40734 SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\"" 40735 elif test "x$TOOLCHAIN_TYPE" = xclang; then 40736 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 40737 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 40738 fi 40739 # Propagate the sysroot args to hotspot 40740 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 40741 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 40742 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 40743 fi 40744 40745 40746 40747 40748 # FIXME: Currently we must test this after toolchain but before flags. Fix! 40749 40750 # Now we can test some aspects on the target using configure macros. 40751 40752 40753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 40754 $as_echo_n "checking for ANSI C header files... " >&6; } 40755 if ${ac_cv_header_stdc+:} false; then : 40756 $as_echo_n "(cached) " >&6 40757 else 40758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40759 /* end confdefs.h. */ 40760 #include <stdlib.h> 40761 #include <stdarg.h> 40762 #include <string.h> 40763 #include <float.h> 40764 40765 int 40766 main () 40767 { 40768 40769 ; 40770 return 0; 40771 } 40772 _ACEOF 40773 if ac_fn_cxx_try_compile "$LINENO"; then : 40774 ac_cv_header_stdc=yes 40775 else 40776 ac_cv_header_stdc=no 40777 fi 40778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40779 40780 if test $ac_cv_header_stdc = yes; then 40781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 40782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40783 /* end confdefs.h. */ 40784 #include <string.h> 40785 40786 _ACEOF 40787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40788 $EGREP "memchr" >/dev/null 2>&1; then : 40789 40790 else 40791 ac_cv_header_stdc=no 40792 fi 40793 rm -f conftest* 40794 40795 fi 40796 40797 if test $ac_cv_header_stdc = yes; then 40798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 40799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40800 /* end confdefs.h. */ 40801 #include <stdlib.h> 40802 40803 _ACEOF 40804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40805 $EGREP "free" >/dev/null 2>&1; then : 40806 40807 else 40808 ac_cv_header_stdc=no 40809 fi 40810 rm -f conftest* 40811 40812 fi 40813 40814 if test $ac_cv_header_stdc = yes; then 40815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 40816 if test "$cross_compiling" = yes; then : 40817 : 40818 else 40819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40820 /* end confdefs.h. */ 40821 #include <ctype.h> 40822 #include <stdlib.h> 40823 #if ((' ' & 0x0FF) == 0x020) 40824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 40825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 40826 #else 40827 # define ISLOWER(c) \ 40828 (('a' <= (c) && (c) <= 'i') \ 40829 || ('j' <= (c) && (c) <= 'r') \ 40830 || ('s' <= (c) && (c) <= 'z')) 40831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 40832 #endif 40833 40834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 40835 int 40836 main () 40837 { 40838 int i; 40839 for (i = 0; i < 256; i++) 40840 if (XOR (islower (i), ISLOWER (i)) 40841 || toupper (i) != TOUPPER (i)) 40842 return 2; 40843 return 0; 40844 } 40845 _ACEOF 40846 if ac_fn_cxx_try_run "$LINENO"; then : 40847 40848 else 40849 ac_cv_header_stdc=no 40850 fi 40851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40852 conftest.$ac_objext conftest.beam conftest.$ac_ext 40853 fi 40854 40855 fi 40856 fi 40857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 40858 $as_echo "$ac_cv_header_stdc" >&6; } 40859 if test $ac_cv_header_stdc = yes; then 40860 40861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 40862 40863 fi 40864 40865 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 40866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 40867 inttypes.h stdint.h unistd.h 40868 do : 40869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 40870 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 40871 " 40872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 40873 cat >>confdefs.h <<_ACEOF 40874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 40875 _ACEOF 40876 40877 fi 40878 40879 done 40880 40881 40882 40883 ############################################################################### 40884 # 40885 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 40886 # (The JVM can use 32 or 64 bit Java pointers but that decision 40887 # is made at runtime.) 40888 # 40889 40890 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 40891 # Always specify -m flag on Solaris 40892 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 40893 40894 # When we add flags to the "official" CFLAGS etc, we need to 40895 # keep track of these additions in ADDED_CFLAGS etc. These 40896 # will later be checked to make sure only controlled additions 40897 # have been made to CFLAGS etc. 40898 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40899 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40900 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40901 40902 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40903 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40904 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40905 40906 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40907 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40908 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40909 40910 elif test "x$COMPILE_TYPE" = xreduced; then 40911 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40912 # Specify -m if running reduced on other Posix platforms 40913 40914 # When we add flags to the "official" CFLAGS etc, we need to 40915 # keep track of these additions in ADDED_CFLAGS etc. These 40916 # will later be checked to make sure only controlled additions 40917 # have been made to CFLAGS etc. 40918 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40919 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40920 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40921 40922 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40923 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40924 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40925 40926 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40927 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40928 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40929 40930 fi 40931 fi 40932 40933 # Make compilation sanity check 40934 for ac_header in stdio.h 40935 do : 40936 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 40937 if test "x$ac_cv_header_stdio_h" = xyes; then : 40938 cat >>confdefs.h <<_ACEOF 40939 #define HAVE_STDIO_H 1 40940 _ACEOF 40941 40942 else 40943 40944 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 40945 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 40946 if test "x$COMPILE_TYPE" = xreduced; then 40947 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 40948 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 40949 elif test "x$COMPILE_TYPE" = xcross; then 40950 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 40951 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 40952 fi 40953 as_fn_error $? "Cannot continue." "$LINENO" 5 40954 40955 fi 40956 40957 done 40958 40959 40960 # The cast to long int works around a bug in the HP C Compiler 40961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40963 # This bug is HP SR number 8606223364. 40964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 40965 $as_echo_n "checking size of int *... " >&6; } 40966 if ${ac_cv_sizeof_int_p+:} false; then : 40967 $as_echo_n "(cached) " >&6 40968 else 40969 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 40970 40971 else 40972 if test "$ac_cv_type_int_p" = yes; then 40973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40975 as_fn_error 77 "cannot compute sizeof (int *) 40976 See \`config.log' for more details" "$LINENO" 5; } 40977 else 40978 ac_cv_sizeof_int_p=0 40979 fi 40980 fi 40981 40982 fi 40983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 40984 $as_echo "$ac_cv_sizeof_int_p" >&6; } 40985 40986 40987 40988 cat >>confdefs.h <<_ACEOF 40989 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 40990 _ACEOF 40991 40992 40993 40994 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 40995 if test "x$ac_cv_sizeof_int_p" = x; then 40996 # The test failed, lets stick to the assumed value. 40997 { $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 40998 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 40999 else 41000 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41001 41002 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41003 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41004 # Let's try to implicitely set the compilers target architecture and retry the test 41005 { $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 41006 $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;} 41007 { $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 41008 $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;} 41009 41010 # When we add flags to the "official" CFLAGS etc, we need to 41011 # keep track of these additions in ADDED_CFLAGS etc. These 41012 # will later be checked to make sure only controlled additions 41013 # have been made to CFLAGS etc. 41014 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41015 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41016 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41017 41018 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41019 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41020 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41021 41022 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41023 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41024 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41025 41026 41027 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41028 unset ac_cv_sizeof_int_p 41029 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41030 cat >>confdefs.h <<_ACEOF 41031 #undef SIZEOF_INT_P 41032 _ACEOF 41033 41034 # The cast to long int works around a bug in the HP C Compiler 41035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41037 # This bug is HP SR number 8606223364. 41038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41039 $as_echo_n "checking size of int *... " >&6; } 41040 if ${ac_cv_sizeof_int_p+:} false; then : 41041 $as_echo_n "(cached) " >&6 41042 else 41043 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41044 41045 else 41046 if test "$ac_cv_type_int_p" = yes; then 41047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41049 as_fn_error 77 "cannot compute sizeof (int *) 41050 See \`config.log' for more details" "$LINENO" 5; } 41051 else 41052 ac_cv_sizeof_int_p=0 41053 fi 41054 fi 41055 41056 fi 41057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41058 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41059 41060 41061 41062 cat >>confdefs.h <<_ACEOF 41063 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41064 _ACEOF 41065 41066 41067 41068 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41069 41070 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41071 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 41072 fi 41073 fi 41074 fi 41075 41076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41077 $as_echo_n "checking for target address size... " >&6; } 41078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41079 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41080 41081 41082 ############################################################################### 41083 # 41084 # Is the target little of big endian? 41085 # 41086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41087 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41088 if ${ac_cv_c_bigendian+:} false; then : 41089 $as_echo_n "(cached) " >&6 41090 else 41091 ac_cv_c_bigendian=unknown 41092 # See if we're dealing with a universal compiler. 41093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41094 /* end confdefs.h. */ 41095 #ifndef __APPLE_CC__ 41096 not a universal capable compiler 41097 #endif 41098 typedef int dummy; 41099 41100 _ACEOF 41101 if ac_fn_cxx_try_compile "$LINENO"; then : 41102 41103 # Check for potential -arch flags. It is not universal unless 41104 # there are at least two -arch flags with different values. 41105 ac_arch= 41106 ac_prev= 41107 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41108 if test -n "$ac_prev"; then 41109 case $ac_word in 41110 i?86 | x86_64 | ppc | ppc64) 41111 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41112 ac_arch=$ac_word 41113 else 41114 ac_cv_c_bigendian=universal 41115 break 41116 fi 41117 ;; 41118 esac 41119 ac_prev= 41120 elif test "x$ac_word" = "x-arch"; then 41121 ac_prev=arch 41122 fi 41123 done 41124 fi 41125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41126 if test $ac_cv_c_bigendian = unknown; then 41127 # See if sys/param.h defines the BYTE_ORDER macro. 41128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41129 /* end confdefs.h. */ 41130 #include <sys/types.h> 41131 #include <sys/param.h> 41132 41133 int 41134 main () 41135 { 41136 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41137 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41138 && LITTLE_ENDIAN) 41139 bogus endian macros 41140 #endif 41141 41142 ; 41143 return 0; 41144 } 41145 _ACEOF 41146 if ac_fn_cxx_try_compile "$LINENO"; then : 41147 # It does; now see whether it defined to BIG_ENDIAN or not. 41148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41149 /* end confdefs.h. */ 41150 #include <sys/types.h> 41151 #include <sys/param.h> 41152 41153 int 41154 main () 41155 { 41156 #if BYTE_ORDER != BIG_ENDIAN 41157 not big endian 41158 #endif 41159 41160 ; 41161 return 0; 41162 } 41163 _ACEOF 41164 if ac_fn_cxx_try_compile "$LINENO"; then : 41165 ac_cv_c_bigendian=yes 41166 else 41167 ac_cv_c_bigendian=no 41168 fi 41169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41170 fi 41171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41172 fi 41173 if test $ac_cv_c_bigendian = unknown; then 41174 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41176 /* end confdefs.h. */ 41177 #include <limits.h> 41178 41179 int 41180 main () 41181 { 41182 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41183 bogus endian macros 41184 #endif 41185 41186 ; 41187 return 0; 41188 } 41189 _ACEOF 41190 if ac_fn_cxx_try_compile "$LINENO"; then : 41191 # It does; now see whether it defined to _BIG_ENDIAN or not. 41192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41193 /* end confdefs.h. */ 41194 #include <limits.h> 41195 41196 int 41197 main () 41198 { 41199 #ifndef _BIG_ENDIAN 41200 not big endian 41201 #endif 41202 41203 ; 41204 return 0; 41205 } 41206 _ACEOF 41207 if ac_fn_cxx_try_compile "$LINENO"; then : 41208 ac_cv_c_bigendian=yes 41209 else 41210 ac_cv_c_bigendian=no 41211 fi 41212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41213 fi 41214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41215 fi 41216 if test $ac_cv_c_bigendian = unknown; then 41217 # Compile a test program. 41218 if test "$cross_compiling" = yes; then : 41219 # Try to guess by grepping values from an object file. 41220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41221 /* end confdefs.h. */ 41222 short int ascii_mm[] = 41223 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41224 short int ascii_ii[] = 41225 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41226 int use_ascii (int i) { 41227 return ascii_mm[i] + ascii_ii[i]; 41228 } 41229 short int ebcdic_ii[] = 41230 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41231 short int ebcdic_mm[] = 41232 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41233 int use_ebcdic (int i) { 41234 return ebcdic_mm[i] + ebcdic_ii[i]; 41235 } 41236 extern int foo; 41237 41238 int 41239 main () 41240 { 41241 return use_ascii (foo) == use_ebcdic (foo); 41242 ; 41243 return 0; 41244 } 41245 _ACEOF 41246 if ac_fn_cxx_try_compile "$LINENO"; then : 41247 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41248 ac_cv_c_bigendian=yes 41249 fi 41250 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41251 if test "$ac_cv_c_bigendian" = unknown; then 41252 ac_cv_c_bigendian=no 41253 else 41254 # finding both strings is unlikely to happen, but who knows? 41255 ac_cv_c_bigendian=unknown 41256 fi 41257 fi 41258 fi 41259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41260 else 41261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41262 /* end confdefs.h. */ 41263 $ac_includes_default 41264 int 41265 main () 41266 { 41267 41268 /* Are we little or big endian? From Harbison&Steele. */ 41269 union 41270 { 41271 long int l; 41272 char c[sizeof (long int)]; 41273 } u; 41274 u.l = 1; 41275 return u.c[sizeof (long int) - 1] == 1; 41276 41277 ; 41278 return 0; 41279 } 41280 _ACEOF 41281 if ac_fn_cxx_try_run "$LINENO"; then : 41282 ac_cv_c_bigendian=no 41283 else 41284 ac_cv_c_bigendian=yes 41285 fi 41286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41287 conftest.$ac_objext conftest.beam conftest.$ac_ext 41288 fi 41289 41290 fi 41291 fi 41292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41293 $as_echo "$ac_cv_c_bigendian" >&6; } 41294 case $ac_cv_c_bigendian in #( 41295 yes) 41296 ENDIAN="big";; #( 41297 no) 41298 ENDIAN="little" ;; #( 41299 universal) 41300 ENDIAN="universal_endianness" 41301 ;; #( 41302 *) 41303 ENDIAN="unknown" ;; 41304 esac 41305 41306 41307 if test "x$ENDIAN" = xuniversal_endianness; then 41308 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41309 fi 41310 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41311 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 41312 fi 41313 41314 41315 # Configure flags for the tools 41316 41317 ############################################################################### 41318 # 41319 # How to compile shared libraries. 41320 # 41321 41322 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41323 PICFLAG="-fPIC" 41324 C_FLAG_REORDER='' 41325 CXX_FLAG_REORDER='' 41326 41327 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41328 # Linking is different on MacOSX 41329 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41330 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41331 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41332 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41333 SET_SHARED_LIBRARY_MAPFILE='' 41334 else 41335 # Default works for linux, might work on other platforms as well. 41336 SHARED_LIBRARY_FLAGS='-shared' 41337 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41338 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41339 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41340 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41341 fi 41342 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41343 PICFLAG='' 41344 C_FLAG_REORDER='' 41345 CXX_FLAG_REORDER='' 41346 41347 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41348 # Linking is different on MacOSX 41349 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41350 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41351 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41352 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41353 SET_SHARED_LIBRARY_MAPFILE='' 41354 else 41355 # Default works for linux, might work on other platforms as well. 41356 SHARED_LIBRARY_FLAGS='-shared' 41357 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41358 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41359 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41360 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41361 fi 41362 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41363 PICFLAG="-KPIC" 41364 C_FLAG_REORDER='-xF' 41365 CXX_FLAG_REORDER='-xF' 41366 SHARED_LIBRARY_FLAGS="-G" 41367 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41368 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41369 SET_SHARED_LIBRARY_NAME='' 41370 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41371 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41372 PICFLAG="-qpic=large" 41373 C_FLAG_REORDER='' 41374 CXX_FLAG_REORDER='' 41375 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41376 SET_EXECUTABLE_ORIGIN="" 41377 SET_SHARED_LIBRARY_ORIGIN='' 41378 SET_SHARED_LIBRARY_NAME='' 41379 SET_SHARED_LIBRARY_MAPFILE='' 41380 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41381 PICFLAG="" 41382 C_FLAG_REORDER='' 41383 CXX_FLAG_REORDER='' 41384 SHARED_LIBRARY_FLAGS="-LD" 41385 SET_EXECUTABLE_ORIGIN='' 41386 SET_SHARED_LIBRARY_ORIGIN='' 41387 SET_SHARED_LIBRARY_NAME='' 41388 SET_SHARED_LIBRARY_MAPFILE='' 41389 fi 41390 41391 41392 41393 41394 41395 41396 41397 41398 41399 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41400 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41401 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41402 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41403 fi 41404 # The (cross) compiler is now configured, we can now test capabilities 41405 # of the target platform. 41406 41407 41408 41409 ############################################################################### 41410 # 41411 # Setup the opt flags for different compilers 41412 # and different operating systems. 41413 # 41414 41415 # FIXME: this was indirectly the old default, but just inherited. 41416 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41417 # C_FLAG_DEPS="-MMD -MF" 41418 # fi 41419 41420 # Generate make dependency files 41421 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41422 C_FLAG_DEPS="-MMD -MF" 41423 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41424 C_FLAG_DEPS="-MMD -MF" 41425 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41426 C_FLAG_DEPS="-xMMD -xMF" 41427 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41428 C_FLAG_DEPS="-qmakedep=gcc -MF" 41429 fi 41430 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41431 41432 41433 41434 # Debug symbols 41435 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41436 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41437 CFLAGS_DEBUG_SYMBOLS="-g1" 41438 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41439 else 41440 CFLAGS_DEBUG_SYMBOLS="-g" 41441 CXXFLAGS_DEBUG_SYMBOLS="-g" 41442 fi 41443 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41444 CFLAGS_DEBUG_SYMBOLS="-g" 41445 CXXFLAGS_DEBUG_SYMBOLS="-g" 41446 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41447 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41448 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41449 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41450 CFLAGS_DEBUG_SYMBOLS="-g" 41451 CXXFLAGS_DEBUG_SYMBOLS="-g" 41452 fi 41453 41454 41455 41456 # Optimization levels 41457 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41458 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41459 41460 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 41461 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 41462 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 41463 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41464 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41465 C_O_FLAG_NONE="-xregs=no%frameptr" 41466 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41467 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41468 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41469 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41470 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41471 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41472 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41473 fi 41474 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41475 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 41476 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41477 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41478 C_O_FLAG_NONE="" 41479 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41480 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41481 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41482 CXX_O_FLAG_NONE="" 41483 fi 41484 else 41485 # The remaining toolchains share opt flags between CC and CXX; 41486 # setup for C and duplicate afterwards. 41487 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41488 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41489 # On MacOSX we optimize for size, something 41490 # we should do for all platforms? 41491 C_O_FLAG_HIGHEST="-Os" 41492 C_O_FLAG_HI="-Os" 41493 C_O_FLAG_NORM="-Os" 41494 C_O_FLAG_NONE="" 41495 else 41496 C_O_FLAG_HIGHEST="-O3" 41497 C_O_FLAG_HI="-O3" 41498 C_O_FLAG_NORM="-O2" 41499 C_O_FLAG_NONE="-O0" 41500 fi 41501 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41502 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41503 # On MacOSX we optimize for size, something 41504 # we should do for all platforms? 41505 C_O_FLAG_HIGHEST="-Os" 41506 C_O_FLAG_HI="-Os" 41507 C_O_FLAG_NORM="-Os" 41508 C_O_FLAG_NONE="" 41509 else 41510 C_O_FLAG_HIGHEST="-O3" 41511 C_O_FLAG_HI="-O3" 41512 C_O_FLAG_NORM="-O2" 41513 C_O_FLAG_NONE="-O0" 41514 fi 41515 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41516 C_O_FLAG_HIGHEST="-O3" 41517 C_O_FLAG_HI="-O3 -qstrict" 41518 C_O_FLAG_NORM="-O2" 41519 C_O_FLAG_NONE="" 41520 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41521 C_O_FLAG_HIGHEST="-O2" 41522 C_O_FLAG_HI="-O1" 41523 C_O_FLAG_NORM="-O1" 41524 C_O_FLAG_NONE="-Od" 41525 fi 41526 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41527 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41528 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41529 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41530 fi 41531 41532 41533 41534 41535 41536 41537 41538 41539 41540 41541 41542 # Special extras... 41543 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41544 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41545 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41546 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41547 fi 41548 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41549 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41550 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41551 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41552 fi 41553 41554 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41556 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41557 fi 41558 41559 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 41560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 41561 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 41562 fi 41563 41564 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 41565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 41566 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 41567 fi 41568 41569 41570 # Check whether --with-extra-cflags was given. 41571 if test "${with_extra_cflags+set}" = set; then : 41572 withval=$with_extra_cflags; 41573 fi 41574 41575 41576 41577 # Check whether --with-extra-cxxflags was given. 41578 if test "${with_extra_cxxflags+set}" = set; then : 41579 withval=$with_extra_cxxflags; 41580 fi 41581 41582 41583 41584 # Check whether --with-extra-ldflags was given. 41585 if test "${with_extra_ldflags+set}" = set; then : 41586 withval=$with_extra_ldflags; 41587 fi 41588 41589 41590 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 41591 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 41592 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 41593 41594 # Hotspot needs these set in their legacy form 41595 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 41596 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 41597 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 41598 41599 41600 41601 41602 41603 ############################################################################### 41604 # 41605 # Now setup the CFLAGS and LDFLAGS for the JDK build. 41606 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 41607 # 41608 41609 # Setup compiler/platform specific flags to CFLAGS_JDK, 41610 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 41611 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41612 # these options are used for both C and C++ compiles 41613 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 41614 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 41615 case $OPENJDK_TARGET_CPU_ARCH in 41616 arm ) 41617 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 41618 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41619 ;; 41620 ppc ) 41621 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 41622 ;; 41623 * ) 41624 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 41625 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41626 ;; 41627 esac 41628 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41629 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 41630 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 41631 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 41632 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 41633 fi 41634 41635 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 41636 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 41637 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41638 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41639 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41640 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41641 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 41642 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 41643 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 41644 -DWIN32 -DIAL" 41645 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 41646 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 41647 else 41648 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 41649 fi 41650 fi 41651 41652 ############################################################################### 41653 41654 # Adjust flags according to debug level. 41655 case $DEBUG_LEVEL in 41656 fastdebug ) 41657 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41658 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41659 C_O_FLAG_HI="$C_O_FLAG_NORM" 41660 C_O_FLAG_NORM="$C_O_FLAG_NORM" 41661 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 41662 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 41663 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41664 ;; 41665 slowdebug ) 41666 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41667 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41668 C_O_FLAG_HI="$C_O_FLAG_NONE" 41669 C_O_FLAG_NORM="$C_O_FLAG_NONE" 41670 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 41671 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 41672 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41673 ;; 41674 esac 41675 41676 # Setup LP64 41677 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 41678 41679 # Set some common defines. These works for all compilers, but assume 41680 # -D is universally accepted. 41681 41682 # Setup endianness 41683 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 41684 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 41685 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 41686 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 41687 # Note: -Dmacro is the same as #define macro 1 41688 # -Dmacro= is the same as #define macro 41689 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41690 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 41691 else 41692 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 41693 fi 41694 else 41695 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 41696 # are defined in the system? 41697 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41698 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN=" 41699 else 41700 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 41701 fi 41702 fi 41703 41704 # Setup target OS define. Use OS target name but in upper case. 41705 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 41706 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 41707 41708 # Setup target CPU 41709 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 41710 41711 # Setup debug/release defines 41712 if test "x$DEBUG_LEVEL" = xrelease; then 41713 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 41714 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41715 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 41716 fi 41717 else 41718 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 41719 fi 41720 41721 # Setup release name 41722 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 41723 41724 41725 # Set some additional per-OS defines. 41726 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41727 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 41728 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41729 # FIXME: PPC64 should not be here. 41730 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 41731 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 41732 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 41733 fi 41734 41735 # Additional macosx handling 41736 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41737 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41738 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 41739 # FIXME: clean this up, and/or move it elsewhere. 41740 41741 # Setting these parameters makes it an error to link to macosx APIs that are 41742 # newer than the given OS version and makes the linked binaries compatible 41743 # even if built on a newer version of the OS. 41744 # The expected format is X.Y.Z 41745 MACOSX_VERSION_MIN=10.7.0 41746 41747 41748 # The macro takes the version with no dots, ex: 1070 41749 # Let the flags variables get resolved in make for easier override on make 41750 # command line. 41751 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41752 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41753 fi 41754 fi 41755 41756 # Setup some hard coded includes 41757 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 41758 -I${JDK_OUTPUTDIR}/include \ 41759 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 41760 -I${JDK_TOPDIR}/src/share/javavm/export \ 41761 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 41762 -I${JDK_TOPDIR}/src/share/native/common \ 41763 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 41764 41765 # The shared libraries are compiled using the picflag. 41766 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 41767 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 41768 41769 # Executable flags 41770 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 41771 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 41772 41773 41774 41775 41776 41777 41778 # Setup LDFLAGS et al. 41779 # 41780 # Now this is odd. The JDK native libraries have to link against libjvm.so 41781 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 41782 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 41783 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 41784 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 41785 # libraries will link to whatever is in memory. Yuck. 41786 # 41787 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 41788 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41789 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 41790 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41791 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 41792 fi 41793 # TODO: make -debug optional "--disable-full-debug-symbols" 41794 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 41795 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 41796 LDFLAGS_JDKLIB_SUFFIX="" 41797 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 41798 LDFLAGS_STACK_SIZE=1048576 41799 else 41800 LDFLAGS_STACK_SIZE=327680 41801 fi 41802 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 41803 else 41804 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41805 # If this is a --hash-style=gnu system, use --hash-style=both, why? 41806 # We have previously set HAS_GNU_HASH if this is the case 41807 if test -n "$HAS_GNU_HASH"; then 41808 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 41809 fi 41810 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41811 # And since we now know that the linker is gnu, then add -z defs, to forbid 41812 # undefined symbols in object files. 41813 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 41814 if test "x$DEBUG_LEVEL" = "xrelease"; then 41815 # When building release libraries, tell the linker optimize them. 41816 # Should this be supplied to the OSS linker as well? 41817 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 41818 fi 41819 fi 41820 fi 41821 41822 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41823 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 41824 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 41825 fi 41826 41827 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 41828 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 41829 41830 # On some platforms (mac) the linker warns about non existing -L dirs. 41831 # Add server first if available. Linking aginst client does not always produce the same results. 41832 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 41833 # Default to server for other variants. 41834 if test "x$JVM_VARIANT_SERVER" = xtrue; then 41835 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41836 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 41837 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 41838 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 41839 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 41840 else 41841 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41842 fi 41843 41844 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 41845 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41846 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 41847 fi 41848 41849 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 41850 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41851 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 41852 fi 41853 fi 41854 41855 41856 41857 41858 41859 41860 41861 41862 # Some Zero and Shark settings. 41863 # ZERO_ARCHFLAG tells the compiler which mode to build for 41864 case "${OPENJDK_TARGET_CPU}" in 41865 s390) 41866 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 41867 ;; 41868 *) 41869 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41870 esac 41871 41872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 41873 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 41874 supports=yes 41875 41876 saved_cflags="$CFLAGS" 41877 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 41878 ac_ext=c 41879 ac_cpp='$CPP $CPPFLAGS' 41880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41882 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41883 41884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41885 /* end confdefs.h. */ 41886 int i; 41887 _ACEOF 41888 if ac_fn_c_try_compile "$LINENO"; then : 41889 41890 else 41891 supports=no 41892 fi 41893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41894 ac_ext=cpp 41895 ac_cpp='$CXXCPP $CPPFLAGS' 41896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41899 41900 CFLAGS="$saved_cflags" 41901 41902 saved_cxxflags="$CXXFLAGS" 41903 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 41904 ac_ext=cpp 41905 ac_cpp='$CXXCPP $CPPFLAGS' 41906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41909 41910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41911 /* end confdefs.h. */ 41912 int i; 41913 _ACEOF 41914 if ac_fn_cxx_try_compile "$LINENO"; then : 41915 41916 else 41917 supports=no 41918 fi 41919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41920 ac_ext=cpp 41921 ac_cpp='$CXXCPP $CPPFLAGS' 41922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41925 41926 CXXFLAGS="$saved_cxxflags" 41927 41928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41929 $as_echo "$supports" >&6; } 41930 if test "x$supports" = "xyes" ; then 41931 : 41932 else 41933 ZERO_ARCHFLAG="" 41934 fi 41935 41936 41937 41938 # Check that the compiler supports -mX (or -qX on AIX) flags 41939 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 41940 41941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 41942 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 41943 supports=yes 41944 41945 saved_cflags="$CFLAGS" 41946 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41947 ac_ext=c 41948 ac_cpp='$CPP $CPPFLAGS' 41949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41951 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41952 41953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41954 /* end confdefs.h. */ 41955 int i; 41956 _ACEOF 41957 if ac_fn_c_try_compile "$LINENO"; then : 41958 41959 else 41960 supports=no 41961 fi 41962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41963 ac_ext=cpp 41964 ac_cpp='$CXXCPP $CPPFLAGS' 41965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41968 41969 CFLAGS="$saved_cflags" 41970 41971 saved_cxxflags="$CXXFLAGS" 41972 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41973 ac_ext=cpp 41974 ac_cpp='$CXXCPP $CPPFLAGS' 41975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41978 41979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41980 /* end confdefs.h. */ 41981 int i; 41982 _ACEOF 41983 if ac_fn_cxx_try_compile "$LINENO"; then : 41984 41985 else 41986 supports=no 41987 fi 41988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41989 ac_ext=cpp 41990 ac_cpp='$CXXCPP $CPPFLAGS' 41991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41994 41995 CXXFLAGS="$saved_cxxflags" 41996 41997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41998 $as_echo "$supports" >&6; } 41999 if test "x$supports" = "xyes" ; then 42000 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42001 else 42002 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42003 fi 42004 42005 42006 42007 case "${TOOLCHAIN_TYPE}" in 42008 microsoft) 42009 CFLAGS_WARNINGS_ARE_ERRORS="/WX" 42010 ;; 42011 solstudio) 42012 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 42013 ;; 42014 gcc) 42015 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42016 ;; 42017 clang) 42018 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42019 ;; 42020 esac 42021 42022 42023 42024 # Setup debug symbols (need objcopy from the toolchain for that) 42025 42026 # 42027 # ENABLE_DEBUG_SYMBOLS 42028 # This must be done after the toolchain is setup, since we're looking at objcopy. 42029 # 42030 # Check whether --enable-debug-symbols was given. 42031 if test "${enable_debug_symbols+set}" = set; then : 42032 enableval=$enable_debug_symbols; 42033 fi 42034 42035 42036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42037 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42038 42039 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42040 # explicit enabling of enable-debug-symbols and can't find objcopy 42041 # this is an error 42042 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42043 fi 42044 42045 if test "x$enable_debug_symbols" = "xyes"; then 42046 ENABLE_DEBUG_SYMBOLS=true 42047 elif test "x$enable_debug_symbols" = "xno"; then 42048 ENABLE_DEBUG_SYMBOLS=false 42049 else 42050 # Default is on if objcopy is found 42051 if test "x$OBJCOPY" != x; then 42052 ENABLE_DEBUG_SYMBOLS=true 42053 # MacOS X and Windows don't use objcopy but default is on for those OSes 42054 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42055 ENABLE_DEBUG_SYMBOLS=true 42056 else 42057 ENABLE_DEBUG_SYMBOLS=false 42058 fi 42059 fi 42060 42061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42062 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42063 42064 # 42065 # ZIP_DEBUGINFO_FILES 42066 # 42067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42068 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42069 # Check whether --enable-zip-debug-info was given. 42070 if test "${enable_zip_debug_info+set}" = set; then : 42071 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42072 else 42073 enable_zip_debug_info="yes" 42074 fi 42075 42076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42077 $as_echo "${enable_zip_debug_info}" >&6; } 42078 42079 if test "x${enable_zip_debug_info}" = "xno"; then 42080 ZIP_DEBUGINFO_FILES=false 42081 else 42082 ZIP_DEBUGINFO_FILES=true 42083 fi 42084 42085 42086 42087 42088 42089 ############################################################################### 42090 # 42091 # Check dependencies for external and internal libraries. 42092 # 42093 ############################################################################### 42094 42095 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42096 42097 # When using cygwin or msys, we need a wrapper binary that renames 42098 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42099 # @files and rewrites these too! This wrapper binary is 42100 # called fixpath. 42101 FIXPATH= 42102 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42104 $as_echo_n "checking if fixpath can be created... " >&6; } 42105 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42106 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42107 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42108 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42109 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42110 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42111 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42112 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42113 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42114 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42115 42116 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42117 # @ was chosen as separator to minimize risk of other tools messing around with it 42118 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42119 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42120 42121 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42122 fi 42123 rm -f $OUTPUT_ROOT/fixpath* 42124 cd $OUTPUT_ROOT 42125 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42126 cd $CURDIR 42127 42128 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42130 $as_echo "no" >&6; } 42131 cat $OUTPUT_ROOT/fixpath1.log 42132 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42133 fi 42134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42135 $as_echo "yes" >&6; } 42136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42137 $as_echo_n "checking if fixpath.exe works... " >&6; } 42138 cd $OUTPUT_ROOT 42139 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42140 cd $CURDIR 42141 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42143 $as_echo "no" >&6; } 42144 cat $OUTPUT_ROOT/fixpath2.log 42145 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42146 fi 42147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42148 $as_echo "yes" >&6; } 42149 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42150 fi 42151 42152 42153 42154 42155 42156 42157 ############################################################################### 42158 # 42159 # OS specific settings that we never will need to probe. 42160 # 42161 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42163 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42164 PULSE_NOT_NEEDED=yes 42165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42166 $as_echo "pulse" >&6; } 42167 fi 42168 42169 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42171 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42172 ALSA_NOT_NEEDED=yes 42173 PULSE_NOT_NEEDED=yes 42174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42175 $as_echo "alsa pulse" >&6; } 42176 fi 42177 42178 if test "x$OPENJDK_TARGET_OS" = xaix; then 42179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42180 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42181 ALSA_NOT_NEEDED=yes 42182 PULSE_NOT_NEEDED=yes 42183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42184 $as_echo "alsa pulse" >&6; } 42185 fi 42186 42187 42188 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42190 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42191 CUPS_NOT_NEEDED=yes 42192 ALSA_NOT_NEEDED=yes 42193 PULSE_NOT_NEEDED=yes 42194 X11_NOT_NEEDED=yes 42195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42196 $as_echo "alsa cups pulse x11" >&6; } 42197 fi 42198 42199 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42201 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42202 ALSA_NOT_NEEDED=yes 42203 PULSE_NOT_NEEDED=yes 42204 X11_NOT_NEEDED=yes 42205 # If the java runtime framework is disabled, then we need X11. 42206 # This will be adjusted below. 42207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42208 $as_echo "alsa pulse x11" >&6; } 42209 fi 42210 42211 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42213 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42214 ALSA_NOT_NEEDED=yes 42215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42216 $as_echo "alsa" >&6; } 42217 fi 42218 42219 if test "x$OPENJDK" = "xfalse"; then 42220 FREETYPE_NOT_NEEDED=yes 42221 fi 42222 42223 if test "x$SUPPORT_HEADFUL" = xno; then 42224 X11_NOT_NEEDED=yes 42225 fi 42226 42227 ############################################################################### 42228 # 42229 # Check for MacOSX support for OpenJDK. 42230 # 42231 42232 42233 # Check whether --enable-macosx-runtime-support was given. 42234 if test "${enable_macosx_runtime_support+set}" = set; then : 42235 enableval=$enable_macosx_runtime_support; 42236 fi 42237 42238 if test "x$enable_macosx_runtime_support" != x; then 42239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 42240 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 42241 fi 42242 42243 42244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5 42245 $as_echo_n "checking for Mac OS X Java Framework... " >&6; } 42246 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then 42247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5 42248 $as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; } 42249 else 42250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42251 $as_echo "no" >&6; } 42252 fi 42253 42254 42255 42256 ############################################################################### 42257 # 42258 # Check for X Windows 42259 # 42260 42261 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42262 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42263 # --x-libraries for the sysroot, if that seems to be correct. 42264 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 42265 if test "x$SYSROOT" != "x"; then 42266 if test "x$x_includes" = xNONE; then 42267 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 42268 x_includes="$SYSROOT/usr/X11R6/include" 42269 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 42270 x_includes="$SYSROOT/usr/include" 42271 fi 42272 fi 42273 if test "x$x_libraries" = xNONE; then 42274 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 42275 x_libraries="$SYSROOT/usr/X11R6/lib" 42276 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42277 x_libraries="$SYSROOT/usr/lib64" 42278 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 42279 x_libraries="$SYSROOT/usr/lib" 42280 fi 42281 fi 42282 fi 42283 fi 42284 42285 # Now let autoconf do it's magic 42286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42287 $as_echo_n "checking for X... " >&6; } 42288 42289 42290 # Check whether --with-x was given. 42291 if test "${with_x+set}" = set; then : 42292 withval=$with_x; 42293 fi 42294 42295 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42296 if test "x$with_x" = xno; then 42297 # The user explicitly disabled X. 42298 have_x=disabled 42299 else 42300 case $x_includes,$x_libraries in #( 42301 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42302 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42303 $as_echo_n "(cached) " >&6 42304 else 42305 # One or both of the vars are not set, and there is no cached value. 42306 ac_x_includes=no ac_x_libraries=no 42307 rm -f -r conftest.dir 42308 if mkdir conftest.dir; then 42309 cd conftest.dir 42310 cat >Imakefile <<'_ACEOF' 42311 incroot: 42312 @echo incroot='${INCROOT}' 42313 usrlibdir: 42314 @echo usrlibdir='${USRLIBDIR}' 42315 libdir: 42316 @echo libdir='${LIBDIR}' 42317 _ACEOF 42318 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42319 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42320 for ac_var in incroot usrlibdir libdir; do 42321 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42322 done 42323 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42324 for ac_extension in a so sl dylib la dll; do 42325 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42326 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42327 ac_im_usrlibdir=$ac_im_libdir; break 42328 fi 42329 done 42330 # Screen out bogus values from the imake configuration. They are 42331 # bogus both because they are the default anyway, and because 42332 # using them would break gcc on systems where it needs fixed includes. 42333 case $ac_im_incroot in 42334 /usr/include) ac_x_includes= ;; 42335 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42336 esac 42337 case $ac_im_usrlibdir in 42338 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42339 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42340 esac 42341 fi 42342 cd .. 42343 rm -f -r conftest.dir 42344 fi 42345 42346 # Standard set of common directories for X headers. 42347 # Check X11 before X11Rn because it is often a symlink to the current release. 42348 ac_x_header_dirs=' 42349 /usr/X11/include 42350 /usr/X11R7/include 42351 /usr/X11R6/include 42352 /usr/X11R5/include 42353 /usr/X11R4/include 42354 42355 /usr/include/X11 42356 /usr/include/X11R7 42357 /usr/include/X11R6 42358 /usr/include/X11R5 42359 /usr/include/X11R4 42360 42361 /usr/local/X11/include 42362 /usr/local/X11R7/include 42363 /usr/local/X11R6/include 42364 /usr/local/X11R5/include 42365 /usr/local/X11R4/include 42366 42367 /usr/local/include/X11 42368 /usr/local/include/X11R7 42369 /usr/local/include/X11R6 42370 /usr/local/include/X11R5 42371 /usr/local/include/X11R4 42372 42373 /usr/X386/include 42374 /usr/x386/include 42375 /usr/XFree86/include/X11 42376 42377 /usr/include 42378 /usr/local/include 42379 /usr/unsupported/include 42380 /usr/athena/include 42381 /usr/local/x11r5/include 42382 /usr/lpp/Xamples/include 42383 42384 /usr/openwin/include 42385 /usr/openwin/share/include' 42386 42387 if test "$ac_x_includes" = no; then 42388 # Guess where to find include files, by looking for Xlib.h. 42389 # First, try using that file with no special directory specified. 42390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42391 /* end confdefs.h. */ 42392 #include <X11/Xlib.h> 42393 _ACEOF 42394 if ac_fn_cxx_try_cpp "$LINENO"; then : 42395 # We can compile using X headers with no special include directory. 42396 ac_x_includes= 42397 else 42398 for ac_dir in $ac_x_header_dirs; do 42399 if test -r "$ac_dir/X11/Xlib.h"; then 42400 ac_x_includes=$ac_dir 42401 break 42402 fi 42403 done 42404 fi 42405 rm -f conftest.err conftest.i conftest.$ac_ext 42406 fi # $ac_x_includes = no 42407 42408 if test "$ac_x_libraries" = no; then 42409 # Check for the libraries. 42410 # See if we find them without any special options. 42411 # Don't add to $LIBS permanently. 42412 ac_save_LIBS=$LIBS 42413 LIBS="-lX11 $LIBS" 42414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42415 /* end confdefs.h. */ 42416 #include <X11/Xlib.h> 42417 int 42418 main () 42419 { 42420 XrmInitialize () 42421 ; 42422 return 0; 42423 } 42424 _ACEOF 42425 if ac_fn_cxx_try_link "$LINENO"; then : 42426 LIBS=$ac_save_LIBS 42427 # We can link X programs with no special library path. 42428 ac_x_libraries= 42429 else 42430 LIBS=$ac_save_LIBS 42431 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42432 do 42433 # Don't even attempt the hair of trying to link an X program! 42434 for ac_extension in a so sl dylib la dll; do 42435 if test -r "$ac_dir/libX11.$ac_extension"; then 42436 ac_x_libraries=$ac_dir 42437 break 2 42438 fi 42439 done 42440 done 42441 fi 42442 rm -f core conftest.err conftest.$ac_objext \ 42443 conftest$ac_exeext conftest.$ac_ext 42444 fi # $ac_x_libraries = no 42445 42446 case $ac_x_includes,$ac_x_libraries in #( 42447 no,* | *,no | *\'*) 42448 # Didn't find X, or a directory has "'" in its name. 42449 ac_cv_have_x="have_x=no";; #( 42450 *) 42451 # Record where we found X for the cache. 42452 ac_cv_have_x="have_x=yes\ 42453 ac_x_includes='$ac_x_includes'\ 42454 ac_x_libraries='$ac_x_libraries'" 42455 esac 42456 fi 42457 ;; #( 42458 *) have_x=yes;; 42459 esac 42460 eval "$ac_cv_have_x" 42461 fi # $with_x != no 42462 42463 if test "$have_x" != yes; then 42464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 42465 $as_echo "$have_x" >&6; } 42466 no_x=yes 42467 else 42468 # If each of the values was on the command line, it overrides each guess. 42469 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 42470 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 42471 # Update the cache value to reflect the command line values. 42472 ac_cv_have_x="have_x=yes\ 42473 ac_x_includes='$x_includes'\ 42474 ac_x_libraries='$x_libraries'" 42475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 42476 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 42477 fi 42478 42479 if test "$no_x" = yes; then 42480 # Not all programs may use this symbol, but it does not hurt to define it. 42481 42482 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 42483 42484 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 42485 else 42486 if test -n "$x_includes"; then 42487 X_CFLAGS="$X_CFLAGS -I$x_includes" 42488 fi 42489 42490 # It would also be nice to do this for all -L options, not just this one. 42491 if test -n "$x_libraries"; then 42492 X_LIBS="$X_LIBS -L$x_libraries" 42493 # For Solaris; some versions of Sun CC require a space after -R and 42494 # others require no space. Words are not sufficient . . . . 42495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 42496 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 42497 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 42498 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 42499 ac_cxx_werror_flag=yes 42500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42501 /* end confdefs.h. */ 42502 42503 int 42504 main () 42505 { 42506 42507 ; 42508 return 0; 42509 } 42510 _ACEOF 42511 if ac_fn_cxx_try_link "$LINENO"; then : 42512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42513 $as_echo "no" >&6; } 42514 X_LIBS="$X_LIBS -R$x_libraries" 42515 else 42516 LIBS="$ac_xsave_LIBS -R $x_libraries" 42517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42518 /* end confdefs.h. */ 42519 42520 int 42521 main () 42522 { 42523 42524 ; 42525 return 0; 42526 } 42527 _ACEOF 42528 if ac_fn_cxx_try_link "$LINENO"; then : 42529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42530 $as_echo "yes" >&6; } 42531 X_LIBS="$X_LIBS -R $x_libraries" 42532 else 42533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 42534 $as_echo "neither works" >&6; } 42535 fi 42536 rm -f core conftest.err conftest.$ac_objext \ 42537 conftest$ac_exeext conftest.$ac_ext 42538 fi 42539 rm -f core conftest.err conftest.$ac_objext \ 42540 conftest$ac_exeext conftest.$ac_ext 42541 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 42542 LIBS=$ac_xsave_LIBS 42543 fi 42544 42545 # Check for system-dependent libraries X programs must link with. 42546 # Do this before checking for the system-independent R6 libraries 42547 # (-lICE), since we may need -lsocket or whatever for X linking. 42548 42549 if test "$ISC" = yes; then 42550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 42551 else 42552 # Martyn Johnson says this is needed for Ultrix, if the X 42553 # libraries were built with DECnet support. And Karl Berry says 42554 # the Alpha needs dnet_stub (dnet does not exist). 42555 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 42556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42557 /* end confdefs.h. */ 42558 42559 /* Override any GCC internal prototype to avoid an error. 42560 Use char because int might match the return type of a GCC 42561 builtin and then its argument prototype would still apply. */ 42562 #ifdef __cplusplus 42563 extern "C" 42564 #endif 42565 char XOpenDisplay (); 42566 int 42567 main () 42568 { 42569 return XOpenDisplay (); 42570 ; 42571 return 0; 42572 } 42573 _ACEOF 42574 if ac_fn_cxx_try_link "$LINENO"; then : 42575 42576 else 42577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 42578 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 42579 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 42580 $as_echo_n "(cached) " >&6 42581 else 42582 ac_check_lib_save_LIBS=$LIBS 42583 LIBS="-ldnet $LIBS" 42584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42585 /* end confdefs.h. */ 42586 42587 /* Override any GCC internal prototype to avoid an error. 42588 Use char because int might match the return type of a GCC 42589 builtin and then its argument prototype would still apply. */ 42590 #ifdef __cplusplus 42591 extern "C" 42592 #endif 42593 char dnet_ntoa (); 42594 int 42595 main () 42596 { 42597 return dnet_ntoa (); 42598 ; 42599 return 0; 42600 } 42601 _ACEOF 42602 if ac_fn_cxx_try_link "$LINENO"; then : 42603 ac_cv_lib_dnet_dnet_ntoa=yes 42604 else 42605 ac_cv_lib_dnet_dnet_ntoa=no 42606 fi 42607 rm -f core conftest.err conftest.$ac_objext \ 42608 conftest$ac_exeext conftest.$ac_ext 42609 LIBS=$ac_check_lib_save_LIBS 42610 fi 42611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 42612 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 42613 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 42614 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 42615 fi 42616 42617 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 42618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 42619 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 42620 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 42621 $as_echo_n "(cached) " >&6 42622 else 42623 ac_check_lib_save_LIBS=$LIBS 42624 LIBS="-ldnet_stub $LIBS" 42625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42626 /* end confdefs.h. */ 42627 42628 /* Override any GCC internal prototype to avoid an error. 42629 Use char because int might match the return type of a GCC 42630 builtin and then its argument prototype would still apply. */ 42631 #ifdef __cplusplus 42632 extern "C" 42633 #endif 42634 char dnet_ntoa (); 42635 int 42636 main () 42637 { 42638 return dnet_ntoa (); 42639 ; 42640 return 0; 42641 } 42642 _ACEOF 42643 if ac_fn_cxx_try_link "$LINENO"; then : 42644 ac_cv_lib_dnet_stub_dnet_ntoa=yes 42645 else 42646 ac_cv_lib_dnet_stub_dnet_ntoa=no 42647 fi 42648 rm -f core conftest.err conftest.$ac_objext \ 42649 conftest$ac_exeext conftest.$ac_ext 42650 LIBS=$ac_check_lib_save_LIBS 42651 fi 42652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 42653 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 42654 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 42655 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 42656 fi 42657 42658 fi 42659 fi 42660 rm -f core conftest.err conftest.$ac_objext \ 42661 conftest$ac_exeext conftest.$ac_ext 42662 LIBS="$ac_xsave_LIBS" 42663 42664 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 42665 # to get the SysV transport functions. 42666 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 42667 # needs -lnsl. 42668 # The nsl library prevents programs from opening the X display 42669 # on Irix 5.2, according to T.E. Dickey. 42670 # The functions gethostbyname, getservbyname, and inet_addr are 42671 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 42672 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 42673 if test "x$ac_cv_func_gethostbyname" = xyes; then : 42674 42675 fi 42676 42677 if test $ac_cv_func_gethostbyname = no; then 42678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 42679 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 42680 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 42681 $as_echo_n "(cached) " >&6 42682 else 42683 ac_check_lib_save_LIBS=$LIBS 42684 LIBS="-lnsl $LIBS" 42685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42686 /* end confdefs.h. */ 42687 42688 /* Override any GCC internal prototype to avoid an error. 42689 Use char because int might match the return type of a GCC 42690 builtin and then its argument prototype would still apply. */ 42691 #ifdef __cplusplus 42692 extern "C" 42693 #endif 42694 char gethostbyname (); 42695 int 42696 main () 42697 { 42698 return gethostbyname (); 42699 ; 42700 return 0; 42701 } 42702 _ACEOF 42703 if ac_fn_cxx_try_link "$LINENO"; then : 42704 ac_cv_lib_nsl_gethostbyname=yes 42705 else 42706 ac_cv_lib_nsl_gethostbyname=no 42707 fi 42708 rm -f core conftest.err conftest.$ac_objext \ 42709 conftest$ac_exeext conftest.$ac_ext 42710 LIBS=$ac_check_lib_save_LIBS 42711 fi 42712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 42713 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 42714 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 42715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 42716 fi 42717 42718 if test $ac_cv_lib_nsl_gethostbyname = no; then 42719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 42720 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 42721 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 42722 $as_echo_n "(cached) " >&6 42723 else 42724 ac_check_lib_save_LIBS=$LIBS 42725 LIBS="-lbsd $LIBS" 42726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42727 /* end confdefs.h. */ 42728 42729 /* Override any GCC internal prototype to avoid an error. 42730 Use char because int might match the return type of a GCC 42731 builtin and then its argument prototype would still apply. */ 42732 #ifdef __cplusplus 42733 extern "C" 42734 #endif 42735 char gethostbyname (); 42736 int 42737 main () 42738 { 42739 return gethostbyname (); 42740 ; 42741 return 0; 42742 } 42743 _ACEOF 42744 if ac_fn_cxx_try_link "$LINENO"; then : 42745 ac_cv_lib_bsd_gethostbyname=yes 42746 else 42747 ac_cv_lib_bsd_gethostbyname=no 42748 fi 42749 rm -f core conftest.err conftest.$ac_objext \ 42750 conftest$ac_exeext conftest.$ac_ext 42751 LIBS=$ac_check_lib_save_LIBS 42752 fi 42753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 42754 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 42755 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 42756 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 42757 fi 42758 42759 fi 42760 fi 42761 42762 # lieder@skyler.mavd.honeywell.com says without -lsocket, 42763 # socket/setsockopt and other routines are undefined under SCO ODT 42764 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 42765 # on later versions), says Simon Leinen: it contains gethostby* 42766 # variants that don't use the name server (or something). -lsocket 42767 # must be given before -lnsl if both are needed. We assume that 42768 # if connect needs -lnsl, so does gethostbyname. 42769 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 42770 if test "x$ac_cv_func_connect" = xyes; then : 42771 42772 fi 42773 42774 if test $ac_cv_func_connect = no; then 42775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 42776 $as_echo_n "checking for connect in -lsocket... " >&6; } 42777 if ${ac_cv_lib_socket_connect+:} false; then : 42778 $as_echo_n "(cached) " >&6 42779 else 42780 ac_check_lib_save_LIBS=$LIBS 42781 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 42782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42783 /* end confdefs.h. */ 42784 42785 /* Override any GCC internal prototype to avoid an error. 42786 Use char because int might match the return type of a GCC 42787 builtin and then its argument prototype would still apply. */ 42788 #ifdef __cplusplus 42789 extern "C" 42790 #endif 42791 char connect (); 42792 int 42793 main () 42794 { 42795 return connect (); 42796 ; 42797 return 0; 42798 } 42799 _ACEOF 42800 if ac_fn_cxx_try_link "$LINENO"; then : 42801 ac_cv_lib_socket_connect=yes 42802 else 42803 ac_cv_lib_socket_connect=no 42804 fi 42805 rm -f core conftest.err conftest.$ac_objext \ 42806 conftest$ac_exeext conftest.$ac_ext 42807 LIBS=$ac_check_lib_save_LIBS 42808 fi 42809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 42810 $as_echo "$ac_cv_lib_socket_connect" >&6; } 42811 if test "x$ac_cv_lib_socket_connect" = xyes; then : 42812 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 42813 fi 42814 42815 fi 42816 42817 # Guillermo Gomez says -lposix is necessary on A/UX. 42818 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 42819 if test "x$ac_cv_func_remove" = xyes; then : 42820 42821 fi 42822 42823 if test $ac_cv_func_remove = no; then 42824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 42825 $as_echo_n "checking for remove in -lposix... " >&6; } 42826 if ${ac_cv_lib_posix_remove+:} false; then : 42827 $as_echo_n "(cached) " >&6 42828 else 42829 ac_check_lib_save_LIBS=$LIBS 42830 LIBS="-lposix $LIBS" 42831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42832 /* end confdefs.h. */ 42833 42834 /* Override any GCC internal prototype to avoid an error. 42835 Use char because int might match the return type of a GCC 42836 builtin and then its argument prototype would still apply. */ 42837 #ifdef __cplusplus 42838 extern "C" 42839 #endif 42840 char remove (); 42841 int 42842 main () 42843 { 42844 return remove (); 42845 ; 42846 return 0; 42847 } 42848 _ACEOF 42849 if ac_fn_cxx_try_link "$LINENO"; then : 42850 ac_cv_lib_posix_remove=yes 42851 else 42852 ac_cv_lib_posix_remove=no 42853 fi 42854 rm -f core conftest.err conftest.$ac_objext \ 42855 conftest$ac_exeext conftest.$ac_ext 42856 LIBS=$ac_check_lib_save_LIBS 42857 fi 42858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 42859 $as_echo "$ac_cv_lib_posix_remove" >&6; } 42860 if test "x$ac_cv_lib_posix_remove" = xyes; then : 42861 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 42862 fi 42863 42864 fi 42865 42866 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 42867 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 42868 if test "x$ac_cv_func_shmat" = xyes; then : 42869 42870 fi 42871 42872 if test $ac_cv_func_shmat = no; then 42873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 42874 $as_echo_n "checking for shmat in -lipc... " >&6; } 42875 if ${ac_cv_lib_ipc_shmat+:} false; then : 42876 $as_echo_n "(cached) " >&6 42877 else 42878 ac_check_lib_save_LIBS=$LIBS 42879 LIBS="-lipc $LIBS" 42880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42881 /* end confdefs.h. */ 42882 42883 /* Override any GCC internal prototype to avoid an error. 42884 Use char because int might match the return type of a GCC 42885 builtin and then its argument prototype would still apply. */ 42886 #ifdef __cplusplus 42887 extern "C" 42888 #endif 42889 char shmat (); 42890 int 42891 main () 42892 { 42893 return shmat (); 42894 ; 42895 return 0; 42896 } 42897 _ACEOF 42898 if ac_fn_cxx_try_link "$LINENO"; then : 42899 ac_cv_lib_ipc_shmat=yes 42900 else 42901 ac_cv_lib_ipc_shmat=no 42902 fi 42903 rm -f core conftest.err conftest.$ac_objext \ 42904 conftest$ac_exeext conftest.$ac_ext 42905 LIBS=$ac_check_lib_save_LIBS 42906 fi 42907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 42908 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 42909 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 42910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 42911 fi 42912 42913 fi 42914 fi 42915 42916 # Check for libraries that X11R6 Xt/Xaw programs need. 42917 ac_save_LDFLAGS=$LDFLAGS 42918 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 42919 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 42920 # check for ICE first), but we must link in the order -lSM -lICE or 42921 # we get undefined symbols. So assume we have SM if we have ICE. 42922 # These have to be linked with before -lX11, unlike the other 42923 # libraries we check for below, so use a different variable. 42924 # John Interrante, Karl Berry 42925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 42926 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 42927 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 42928 $as_echo_n "(cached) " >&6 42929 else 42930 ac_check_lib_save_LIBS=$LIBS 42931 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 42932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42933 /* end confdefs.h. */ 42934 42935 /* Override any GCC internal prototype to avoid an error. 42936 Use char because int might match the return type of a GCC 42937 builtin and then its argument prototype would still apply. */ 42938 #ifdef __cplusplus 42939 extern "C" 42940 #endif 42941 char IceConnectionNumber (); 42942 int 42943 main () 42944 { 42945 return IceConnectionNumber (); 42946 ; 42947 return 0; 42948 } 42949 _ACEOF 42950 if ac_fn_cxx_try_link "$LINENO"; then : 42951 ac_cv_lib_ICE_IceConnectionNumber=yes 42952 else 42953 ac_cv_lib_ICE_IceConnectionNumber=no 42954 fi 42955 rm -f core conftest.err conftest.$ac_objext \ 42956 conftest$ac_exeext conftest.$ac_ext 42957 LIBS=$ac_check_lib_save_LIBS 42958 fi 42959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 42960 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 42961 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 42962 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 42963 fi 42964 42965 LDFLAGS=$ac_save_LDFLAGS 42966 42967 fi 42968 42969 42970 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 42971 # this doesn't make sense so we remove it. 42972 if test "x$COMPILE_TYPE" = xcross; then 42973 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 42974 fi 42975 42976 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 42977 42978 # Print a helpful message on how to acquire the necessary build dependency. 42979 # x11 is the help tag: freetype, cups, pulse, alsa etc 42980 MISSING_DEPENDENCY=x11 42981 42982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42983 cygwin_help $MISSING_DEPENDENCY 42984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42985 msys_help $MISSING_DEPENDENCY 42986 else 42987 PKGHANDLER_COMMAND= 42988 42989 case $PKGHANDLER in 42990 apt-get) 42991 apt_help $MISSING_DEPENDENCY ;; 42992 yum) 42993 yum_help $MISSING_DEPENDENCY ;; 42994 port) 42995 port_help $MISSING_DEPENDENCY ;; 42996 pkgutil) 42997 pkgutil_help $MISSING_DEPENDENCY ;; 42998 pkgadd) 42999 pkgadd_help $MISSING_DEPENDENCY ;; 43000 esac 43001 43002 if test "x$PKGHANDLER_COMMAND" != x; then 43003 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43004 fi 43005 fi 43006 43007 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43008 fi 43009 43010 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43011 OPENWIN_HOME="$SYSROOT/usr/openwin" 43012 X_CFLAGS="-I$OPENWIN_HOME/include -I$OPENWIN_HOME/include/X11/extensions" 43013 X_LIBS="-L$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43014 -L$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 43015 -R/usr/openwin/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43016 -R/usr/openwin/lib$OPENJDK_TARGET_CPU_ISADIR" 43017 fi 43018 43019 # 43020 # Weird Sol10 something check...TODO change to try compile 43021 # 43022 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 43023 if test "`uname -r`" = "5.10"; then 43024 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 43025 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43026 fi 43027 fi 43028 fi 43029 43030 ac_ext=c 43031 ac_cpp='$CPP $CPPFLAGS' 43032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43034 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43035 43036 OLD_CFLAGS="$CFLAGS" 43037 CFLAGS="$CFLAGS $X_CFLAGS" 43038 43039 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43040 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43041 do : 43042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43044 # include <X11/Xlib.h> 43045 # include <X11/Xutil.h> 43046 43047 43048 " 43049 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43050 cat >>confdefs.h <<_ACEOF 43051 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43052 _ACEOF 43053 X11_A_OK=yes 43054 else 43055 X11_A_OK=no; break 43056 fi 43057 43058 done 43059 43060 43061 CFLAGS="$OLD_CFLAGS" 43062 ac_ext=cpp 43063 ac_cpp='$CXXCPP $CPPFLAGS' 43064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43067 43068 43069 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 43070 43071 # Print a helpful message on how to acquire the necessary build dependency. 43072 # x11 is the help tag: freetype, cups, pulse, alsa etc 43073 MISSING_DEPENDENCY=x11 43074 43075 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43076 cygwin_help $MISSING_DEPENDENCY 43077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43078 msys_help $MISSING_DEPENDENCY 43079 else 43080 PKGHANDLER_COMMAND= 43081 43082 case $PKGHANDLER in 43083 apt-get) 43084 apt_help $MISSING_DEPENDENCY ;; 43085 yum) 43086 yum_help $MISSING_DEPENDENCY ;; 43087 port) 43088 port_help $MISSING_DEPENDENCY ;; 43089 pkgutil) 43090 pkgutil_help $MISSING_DEPENDENCY ;; 43091 pkgadd) 43092 pkgadd_help $MISSING_DEPENDENCY ;; 43093 esac 43094 43095 if test "x$PKGHANDLER_COMMAND" != x; then 43096 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43097 fi 43098 fi 43099 43100 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43101 fi 43102 43103 43104 43105 43106 43107 43108 ############################################################################### 43109 # 43110 # The common unix printing system cups is used to print from java. 43111 # 43112 43113 # Check whether --with-cups was given. 43114 if test "${with_cups+set}" = set; then : 43115 withval=$with_cups; 43116 fi 43117 43118 43119 # Check whether --with-cups-include was given. 43120 if test "${with_cups_include+set}" = set; then : 43121 withval=$with_cups_include; 43122 fi 43123 43124 43125 if test "x$CUPS_NOT_NEEDED" = xyes; then 43126 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43128 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43129 fi 43130 CUPS_CFLAGS= 43131 else 43132 CUPS_FOUND=no 43133 43134 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43135 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43136 fi 43137 43138 if test "x${with_cups}" != x; then 43139 CUPS_CFLAGS="-I${with_cups}/include" 43140 CUPS_FOUND=yes 43141 fi 43142 if test "x${with_cups_include}" != x; then 43143 CUPS_CFLAGS="-I${with_cups_include}" 43144 CUPS_FOUND=yes 43145 fi 43146 if test "x$CUPS_FOUND" = xno; then 43147 43148 43149 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43150 # Source the builddeps file again, to make sure it uses the latest variables! 43151 . $builddepsfile 43152 # Look for a target and build machine specific resource! 43153 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43154 if test "x$resource" = x; then 43155 # Ok, lets instead look for a target specific resource 43156 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43157 fi 43158 if test "x$resource" = x; then 43159 # Ok, lets instead look for a build specific resource 43160 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43161 fi 43162 if test "x$resource" = x; then 43163 # Ok, lets instead look for a generic resource 43164 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43165 resource=${builddep_cups} 43166 fi 43167 if test "x$resource" != x; then 43168 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43169 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43170 # If the resource in the builddeps.conf file is an existing directory, 43171 # for example /java/linux/cups 43172 if test -d ${resource}; then 43173 depdir=${resource} 43174 else 43175 43176 # cups is for example mymodule 43177 # $resource is for example libs/general/libmymod_1_2_3.zip 43178 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43179 # $with_builddeps_dir is for example /localhome/builddeps 43180 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43181 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43182 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43183 filename=`basename $resource` 43184 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43185 filebase=${filename%%.*} 43186 extension=${filename#*.} 43187 installdir=$with_builddeps_dir/$filebase 43188 if test ! -f $installdir/$filename.unpacked; then 43189 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43190 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43191 if test ! -d $installdir; then 43192 mkdir -p $installdir 43193 fi 43194 if test ! -d $installdir; then 43195 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43196 fi 43197 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43198 touch $tmpfile 43199 if test ! -f $tmpfile; then 43200 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43201 fi 43202 43203 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43204 # $tmpfile is the local file name for the downloaded file. 43205 VALID_TOOL=no 43206 if test "x$BDEPS_FTP" = xwget; then 43207 VALID_TOOL=yes 43208 wget -O $tmpfile $with_builddeps_server/$resource 43209 fi 43210 if test "x$BDEPS_FTP" = xlftp; then 43211 VALID_TOOL=yes 43212 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43213 fi 43214 if test "x$BDEPS_FTP" = xftp; then 43215 VALID_TOOL=yes 43216 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43217 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43218 FTPUSERPWD=${FTPSERVER%%@*} 43219 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43220 FTPUSER=${userpwd%%:*} 43221 FTPPWD=${userpwd#*@} 43222 FTPSERVER=${FTPSERVER#*@} 43223 else 43224 FTPUSER=ftp 43225 FTPPWD=ftp 43226 fi 43227 # the "pass" command does not work on some 43228 # ftp clients (read ftp.exe) but if it works, 43229 # passive mode is better! 43230 ( \ 43231 echo "user $FTPUSER $FTPPWD" ; \ 43232 echo "pass" ; \ 43233 echo "bin" ; \ 43234 echo "get $FTPPATH $tmpfile" ; \ 43235 ) | ftp -in $FTPSERVER 43236 fi 43237 if test "x$VALID_TOOL" != xyes; then 43238 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43239 fi 43240 43241 mv $tmpfile $installdir/$filename 43242 if test ! -s $installdir/$filename; then 43243 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43244 fi 43245 case "$extension" in 43246 zip) echo "Unzipping $installdir/$filename..." 43247 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43248 ;; 43249 tar.gz) echo "Untaring $installdir/$filename..." 43250 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43251 ;; 43252 tgz) echo "Untaring $installdir/$filename..." 43253 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43254 ;; 43255 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43256 ;; 43257 esac 43258 fi 43259 if test -f $installdir/$filename.unpacked; then 43260 depdir=$installdir 43261 fi 43262 43263 fi 43264 # Source the builddeps file again, because in the previous command, the depdir 43265 # was updated to point at the current build dependency install directory. 43266 . $builddepsfile 43267 # Now extract variables from the builddeps.conf files. 43268 theroot=${builddep_cups_ROOT} 43269 thecflags=${builddep_cups_CFLAGS} 43270 thelibs=${builddep_cups_LIBS} 43271 if test "x$depdir" = x; then 43272 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43273 fi 43274 CUPS=$depdir 43275 if test "x$theroot" != x; then 43276 CUPS="$theroot" 43277 fi 43278 if test "x$thecflags" != x; then 43279 CUPS_CFLAGS="$thecflags" 43280 fi 43281 if test "x$thelibs" != x; then 43282 CUPS_LIBS="$thelibs" 43283 fi 43284 CUPS_FOUND=yes 43285 43286 fi 43287 43288 fi 43289 43290 fi 43291 if test "x$CUPS_FOUND" = xno; then 43292 # Are the cups headers installed in the default /usr/include location? 43293 for ac_header in cups/cups.h cups/ppd.h 43294 do : 43295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43296 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43298 cat >>confdefs.h <<_ACEOF 43299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43300 _ACEOF 43301 43302 CUPS_FOUND=yes 43303 CUPS_CFLAGS= 43304 DEFAULT_CUPS=yes 43305 43306 43307 fi 43308 43309 done 43310 43311 fi 43312 if test "x$CUPS_FOUND" = xno; then 43313 # Getting nervous now? Lets poke around for standard Solaris third-party 43314 # package installation locations. 43315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43316 $as_echo_n "checking for cups headers... " >&6; } 43317 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 43318 # An SFW package seems to be installed! 43319 CUPS_FOUND=yes 43320 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 43321 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 43322 # A CSW package seems to be installed! 43323 CUPS_FOUND=yes 43324 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 43325 fi 43326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43327 $as_echo "$CUPS_FOUND" >&6; } 43328 fi 43329 if test "x$CUPS_FOUND" = xno; then 43330 43331 # Print a helpful message on how to acquire the necessary build dependency. 43332 # cups is the help tag: freetype, cups, pulse, alsa etc 43333 MISSING_DEPENDENCY=cups 43334 43335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43336 cygwin_help $MISSING_DEPENDENCY 43337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43338 msys_help $MISSING_DEPENDENCY 43339 else 43340 PKGHANDLER_COMMAND= 43341 43342 case $PKGHANDLER in 43343 apt-get) 43344 apt_help $MISSING_DEPENDENCY ;; 43345 yum) 43346 yum_help $MISSING_DEPENDENCY ;; 43347 port) 43348 port_help $MISSING_DEPENDENCY ;; 43349 pkgutil) 43350 pkgutil_help $MISSING_DEPENDENCY ;; 43351 pkgadd) 43352 pkgadd_help $MISSING_DEPENDENCY ;; 43353 esac 43354 43355 if test "x$PKGHANDLER_COMMAND" != x; then 43356 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43357 fi 43358 fi 43359 43360 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43361 fi 43362 fi 43363 43364 43365 43366 43367 43368 43369 ############################################################################### 43370 # 43371 # The ubiquitous freetype library is used to render fonts. 43372 # 43373 43374 # Check whether --with-freetype was given. 43375 if test "${with_freetype+set}" = set; then : 43376 withval=$with_freetype; 43377 fi 43378 43379 43380 # Check whether --with-freetype-include was given. 43381 if test "${with_freetype_include+set}" = set; then : 43382 withval=$with_freetype_include; 43383 fi 43384 43385 43386 # Check whether --with-freetype-lib was given. 43387 if test "${with_freetype_lib+set}" = set; then : 43388 withval=$with_freetype_lib; 43389 fi 43390 43391 # Check whether --enable-freetype-bundling was given. 43392 if test "${enable_freetype_bundling+set}" = set; then : 43393 enableval=$enable_freetype_bundling; 43394 fi 43395 43396 43397 FREETYPE_CFLAGS= 43398 FREETYPE_LIBS= 43399 FREETYPE_BUNDLE_LIB_PATH= 43400 43401 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43402 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43404 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43405 fi 43406 if test "x$enable_freetype_bundling" != x; then 43407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43408 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43409 fi 43410 else 43411 # freetype is needed to build; go get it! 43412 43413 BUNDLE_FREETYPE="$enable_freetype_bundling" 43414 43415 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43416 # User has specified settings 43417 43418 if test "x$BUNDLE_FREETYPE" = x; then 43419 # If not specified, default is to bundle freetype 43420 BUNDLE_FREETYPE=yes 43421 fi 43422 43423 if test "x$with_freetype" != x; then 43424 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 43425 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 43426 fi 43427 43428 # Allow --with-freetype-lib and --with-freetype-include to override 43429 if test "x$with_freetype_include" != x; then 43430 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 43431 fi 43432 if test "x$with_freetype_lib" != x; then 43433 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 43434 fi 43435 43436 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 43437 # Okay, we got it. Check that it works. 43438 43439 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43440 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43441 METHOD="--with-freetype" 43442 43443 # First check if the files exists. 43444 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43445 # We found an arbitrary include file. That's a good sign. 43446 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43447 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43448 FOUND_FREETYPE=yes 43449 43450 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43451 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43452 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43453 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43454 FOUND_FREETYPE=no 43455 else 43456 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43457 # On Windows, we will need both .lib and .dll file. 43458 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43459 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43460 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43461 FOUND_FREETYPE=no 43462 fi 43463 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 43464 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43465 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43466 fi 43467 fi 43468 fi 43469 43470 if test "x$FOUND_FREETYPE" = xyes; then 43471 43472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43473 43474 # Input might be given as Windows format, start by converting to 43475 # unix format. 43476 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43477 new_path=`$CYGPATH -u "$path"` 43478 43479 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43480 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43481 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43482 # "foo.exe" is OK but "foo" is an error. 43483 # 43484 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43485 # It is also a way to make sure we got the proper file name for the real test later on. 43486 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43487 if test "x$test_shortpath" = x; then 43488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43489 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43490 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43491 fi 43492 43493 # Call helper function which possibly converts this using DOS-style short mode. 43494 # If so, the updated path is stored in $new_path. 43495 43496 input_path="$new_path" 43497 # Check if we need to convert this using DOS-style short mode. If the path 43498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43499 # take no chances and rewrite it. 43500 # Note: m4 eats our [], so we need to use [ and ] instead. 43501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43502 if test "x$has_forbidden_chars" != x; then 43503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43504 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43505 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43506 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43507 # Going to short mode and back again did indeed matter. Since short mode is 43508 # case insensitive, let's make it lowercase to improve readability. 43509 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43510 # Now convert it back to Unix-stile (cygpath) 43511 input_path=`$CYGPATH -u "$shortmode_path"` 43512 new_path="$input_path" 43513 fi 43514 fi 43515 43516 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43517 if test "x$test_cygdrive_prefix" = x; then 43518 # As a simple fix, exclude /usr/bin since it's not a real path. 43519 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43520 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43521 # a path prefixed by /cygdrive for fixpath to work. 43522 new_path="$CYGWIN_ROOT_PATH$input_path" 43523 fi 43524 fi 43525 43526 43527 if test "x$path" != "x$new_path"; then 43528 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43530 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43531 fi 43532 43533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43534 43535 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43536 has_colon=`$ECHO $path | $GREP ^.:` 43537 new_path="$path" 43538 if test "x$has_colon" = x; then 43539 # Not in mixed or Windows style, start by that. 43540 new_path=`cmd //c echo $path` 43541 fi 43542 43543 43544 input_path="$new_path" 43545 # Check if we need to convert this using DOS-style short mode. If the path 43546 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43547 # take no chances and rewrite it. 43548 # Note: m4 eats our [], so we need to use [ and ] instead. 43549 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43550 if test "x$has_forbidden_chars" != x; then 43551 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43552 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43553 fi 43554 43555 43556 windows_path="$new_path" 43557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43558 unix_path=`$CYGPATH -u "$windows_path"` 43559 new_path="$unix_path" 43560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43562 new_path="$unix_path" 43563 fi 43564 43565 if test "x$path" != "x$new_path"; then 43566 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43568 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43569 fi 43570 43571 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43572 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43573 43574 else 43575 # We're on a posix platform. Hooray! :) 43576 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43577 has_space=`$ECHO "$path" | $GREP " "` 43578 if test "x$has_space" != x; then 43579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43580 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43581 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43582 fi 43583 43584 # Use eval to expand a potential ~ 43585 eval path="$path" 43586 if test ! -f "$path" && test ! -d "$path"; then 43587 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43588 fi 43589 43590 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43591 fi 43592 43593 43594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43595 43596 # Input might be given as Windows format, start by converting to 43597 # unix format. 43598 path="$POTENTIAL_FREETYPE_LIB_PATH" 43599 new_path=`$CYGPATH -u "$path"` 43600 43601 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43602 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43603 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43604 # "foo.exe" is OK but "foo" is an error. 43605 # 43606 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43607 # It is also a way to make sure we got the proper file name for the real test later on. 43608 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43609 if test "x$test_shortpath" = x; then 43610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43611 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43612 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43613 fi 43614 43615 # Call helper function which possibly converts this using DOS-style short mode. 43616 # If so, the updated path is stored in $new_path. 43617 43618 input_path="$new_path" 43619 # Check if we need to convert this using DOS-style short mode. If the path 43620 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43621 # take no chances and rewrite it. 43622 # Note: m4 eats our [], so we need to use [ and ] instead. 43623 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43624 if test "x$has_forbidden_chars" != x; then 43625 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43626 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43627 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43628 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43629 # Going to short mode and back again did indeed matter. Since short mode is 43630 # case insensitive, let's make it lowercase to improve readability. 43631 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43632 # Now convert it back to Unix-stile (cygpath) 43633 input_path=`$CYGPATH -u "$shortmode_path"` 43634 new_path="$input_path" 43635 fi 43636 fi 43637 43638 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43639 if test "x$test_cygdrive_prefix" = x; then 43640 # As a simple fix, exclude /usr/bin since it's not a real path. 43641 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43642 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43643 # a path prefixed by /cygdrive for fixpath to work. 43644 new_path="$CYGWIN_ROOT_PATH$input_path" 43645 fi 43646 fi 43647 43648 43649 if test "x$path" != "x$new_path"; then 43650 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43651 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43652 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43653 fi 43654 43655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43656 43657 path="$POTENTIAL_FREETYPE_LIB_PATH" 43658 has_colon=`$ECHO $path | $GREP ^.:` 43659 new_path="$path" 43660 if test "x$has_colon" = x; then 43661 # Not in mixed or Windows style, start by that. 43662 new_path=`cmd //c echo $path` 43663 fi 43664 43665 43666 input_path="$new_path" 43667 # Check if we need to convert this using DOS-style short mode. If the path 43668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43669 # take no chances and rewrite it. 43670 # Note: m4 eats our [], so we need to use [ and ] instead. 43671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43672 if test "x$has_forbidden_chars" != x; then 43673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43674 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43675 fi 43676 43677 43678 windows_path="$new_path" 43679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43680 unix_path=`$CYGPATH -u "$windows_path"` 43681 new_path="$unix_path" 43682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43684 new_path="$unix_path" 43685 fi 43686 43687 if test "x$path" != "x$new_path"; then 43688 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43690 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43691 fi 43692 43693 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43694 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43695 43696 else 43697 # We're on a posix platform. Hooray! :) 43698 path="$POTENTIAL_FREETYPE_LIB_PATH" 43699 has_space=`$ECHO "$path" | $GREP " "` 43700 if test "x$has_space" != x; then 43701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43702 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43703 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43704 fi 43705 43706 # Use eval to expand a potential ~ 43707 eval path="$path" 43708 if test ! -f "$path" && test ! -d "$path"; then 43709 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43710 fi 43711 43712 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43713 fi 43714 43715 43716 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43718 $as_echo_n "checking for freetype includes... " >&6; } 43719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43720 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43721 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43723 $as_echo_n "checking for freetype libraries... " >&6; } 43724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43725 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43726 fi 43727 43728 if test "x$FOUND_FREETYPE" != xyes; then 43729 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 43730 fi 43731 else 43732 # User specified only one of lib or include. This is an error. 43733 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 43734 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 43735 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 43736 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 43737 else 43738 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 43739 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 43740 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 43741 fi 43742 fi 43743 else 43744 # User did not specify settings, but we need freetype. Try to locate it. 43745 43746 if test "x$BUNDLE_FREETYPE" = x; then 43747 # If not specified, default is to bundle freetype only on windows 43748 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43749 BUNDLE_FREETYPE=yes 43750 else 43751 BUNDLE_FREETYPE=no 43752 fi 43753 fi 43754 43755 if test "x$FOUND_FREETYPE" != xyes; then 43756 # Check builddeps 43757 43758 43759 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43760 # Source the builddeps file again, to make sure it uses the latest variables! 43761 . $builddepsfile 43762 # Look for a target and build machine specific resource! 43763 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43764 if test "x$resource" = x; then 43765 # Ok, lets instead look for a target specific resource 43766 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 43767 fi 43768 if test "x$resource" = x; then 43769 # Ok, lets instead look for a build specific resource 43770 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 43771 fi 43772 if test "x$resource" = x; then 43773 # Ok, lets instead look for a generic resource 43774 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 43775 resource=${builddep_freetype2} 43776 fi 43777 if test "x$resource" != x; then 43778 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 43779 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 43780 # If the resource in the builddeps.conf file is an existing directory, 43781 # for example /java/linux/cups 43782 if test -d ${resource}; then 43783 depdir=${resource} 43784 else 43785 43786 # freetype2 is for example mymodule 43787 # $resource is for example libs/general/libmymod_1_2_3.zip 43788 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43789 # $with_builddeps_dir is for example /localhome/builddeps 43790 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43791 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43792 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43793 filename=`basename $resource` 43794 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43795 filebase=${filename%%.*} 43796 extension=${filename#*.} 43797 installdir=$with_builddeps_dir/$filebase 43798 if test ! -f $installdir/$filename.unpacked; then 43799 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 43800 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43801 if test ! -d $installdir; then 43802 mkdir -p $installdir 43803 fi 43804 if test ! -d $installdir; then 43805 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43806 fi 43807 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 43808 touch $tmpfile 43809 if test ! -f $tmpfile; then 43810 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43811 fi 43812 43813 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43814 # $tmpfile is the local file name for the downloaded file. 43815 VALID_TOOL=no 43816 if test "x$BDEPS_FTP" = xwget; then 43817 VALID_TOOL=yes 43818 wget -O $tmpfile $with_builddeps_server/$resource 43819 fi 43820 if test "x$BDEPS_FTP" = xlftp; then 43821 VALID_TOOL=yes 43822 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43823 fi 43824 if test "x$BDEPS_FTP" = xftp; then 43825 VALID_TOOL=yes 43826 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43827 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43828 FTPUSERPWD=${FTPSERVER%%@*} 43829 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43830 FTPUSER=${userpwd%%:*} 43831 FTPPWD=${userpwd#*@} 43832 FTPSERVER=${FTPSERVER#*@} 43833 else 43834 FTPUSER=ftp 43835 FTPPWD=ftp 43836 fi 43837 # the "pass" command does not work on some 43838 # ftp clients (read ftp.exe) but if it works, 43839 # passive mode is better! 43840 ( \ 43841 echo "user $FTPUSER $FTPPWD" ; \ 43842 echo "pass" ; \ 43843 echo "bin" ; \ 43844 echo "get $FTPPATH $tmpfile" ; \ 43845 ) | ftp -in $FTPSERVER 43846 fi 43847 if test "x$VALID_TOOL" != xyes; then 43848 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43849 fi 43850 43851 mv $tmpfile $installdir/$filename 43852 if test ! -s $installdir/$filename; then 43853 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43854 fi 43855 case "$extension" in 43856 zip) echo "Unzipping $installdir/$filename..." 43857 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43858 ;; 43859 tar.gz) echo "Untaring $installdir/$filename..." 43860 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43861 ;; 43862 tgz) echo "Untaring $installdir/$filename..." 43863 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43864 ;; 43865 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43866 ;; 43867 esac 43868 fi 43869 if test -f $installdir/$filename.unpacked; then 43870 depdir=$installdir 43871 fi 43872 43873 fi 43874 # Source the builddeps file again, because in the previous command, the depdir 43875 # was updated to point at the current build dependency install directory. 43876 . $builddepsfile 43877 # Now extract variables from the builddeps.conf files. 43878 theroot=${builddep_freetype2_ROOT} 43879 thecflags=${builddep_freetype2_CFLAGS} 43880 thelibs=${builddep_freetype2_LIBS} 43881 if test "x$depdir" = x; then 43882 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 43883 fi 43884 FREETYPE=$depdir 43885 if test "x$theroot" != x; then 43886 FREETYPE="$theroot" 43887 fi 43888 if test "x$thecflags" != x; then 43889 FREETYPE_CFLAGS="$thecflags" 43890 fi 43891 if test "x$thelibs" != x; then 43892 FREETYPE_LIBS="$thelibs" 43893 fi 43894 FOUND_FREETYPE=yes 43895 else FOUND_FREETYPE=no 43896 43897 fi 43898 else FOUND_FREETYPE=no 43899 43900 fi 43901 43902 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 43903 if test "x$FOUND_FREETYPE" = xyes; then 43904 if test "x$BUNDLE_FREETYPE" = xyes; then 43905 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 43906 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 43907 FOUND_FREETYPE=no 43908 else 43909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 43910 $as_echo_n "checking for freetype... " >&6; } 43911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 43912 $as_echo "yes (using builddeps)" >&6; } 43913 fi 43914 fi 43915 fi 43916 43917 # If we have a sys-root, assume that's where we are supposed to look and skip pkg-config. 43918 if test "x$SYSROOT" = x; then 43919 if test "x$FOUND_FREETYPE" != xyes; then 43920 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 43921 if test "x$PKG_CONFIG" != x; then 43922 43923 pkg_failed=no 43924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 43925 $as_echo_n "checking for FREETYPE... " >&6; } 43926 43927 if test -n "$FREETYPE_CFLAGS"; then 43928 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 43929 elif test -n "$PKG_CONFIG"; then 43930 if test -n "$PKG_CONFIG" && \ 43931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 43932 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 43933 ac_status=$? 43934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 43935 test $ac_status = 0; }; then 43936 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 43937 else 43938 pkg_failed=yes 43939 fi 43940 else 43941 pkg_failed=untried 43942 fi 43943 if test -n "$FREETYPE_LIBS"; then 43944 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 43945 elif test -n "$PKG_CONFIG"; then 43946 if test -n "$PKG_CONFIG" && \ 43947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 43948 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 43949 ac_status=$? 43950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 43951 test $ac_status = 0; }; then 43952 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 43953 else 43954 pkg_failed=yes 43955 fi 43956 else 43957 pkg_failed=untried 43958 fi 43959 43960 43961 43962 if test $pkg_failed = yes; then 43963 43964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 43965 _pkg_short_errors_supported=yes 43966 else 43967 _pkg_short_errors_supported=no 43968 fi 43969 if test $_pkg_short_errors_supported = yes; then 43970 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 43971 else 43972 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 43973 fi 43974 # Put the nasty error message in config.log where it belongs 43975 echo "$FREETYPE_PKG_ERRORS" >&5 43976 43977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43978 $as_echo "no" >&6; } 43979 FOUND_FREETYPE=no 43980 elif test $pkg_failed = untried; then 43981 FOUND_FREETYPE=no 43982 else 43983 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 43984 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 43985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43986 $as_echo "yes" >&6; } 43987 FOUND_FREETYPE=yes 43988 fi 43989 if test "x$FOUND_FREETYPE" = xyes; then 43990 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 43991 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 43992 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 43993 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 43994 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 43995 fi 43996 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 43997 if test "x$BUNDLE_FREETYPE" = xyes; then 43998 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 43999 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 44000 FOUND_FREETYPE=no 44001 else 44002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44003 $as_echo_n "checking for freetype... " >&6; } 44004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 44005 $as_echo "yes (using pkg-config)" >&6; } 44006 fi 44007 fi 44008 fi 44009 fi 44010 fi 44011 44012 if test "x$FOUND_FREETYPE" != xyes; then 44013 # Check in well-known locations 44014 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44015 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 44016 44017 windows_path="$FREETYPE_BASE_DIR" 44018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44019 unix_path=`$CYGPATH -u "$windows_path"` 44020 FREETYPE_BASE_DIR="$unix_path" 44021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44023 FREETYPE_BASE_DIR="$unix_path" 44024 fi 44025 44026 44027 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44028 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44029 METHOD="well-known location" 44030 44031 # First check if the files exists. 44032 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44033 # We found an arbitrary include file. That's a good sign. 44034 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44035 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44036 FOUND_FREETYPE=yes 44037 44038 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44039 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44040 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44041 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44042 FOUND_FREETYPE=no 44043 else 44044 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44045 # On Windows, we will need both .lib and .dll file. 44046 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44047 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44048 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44049 FOUND_FREETYPE=no 44050 fi 44051 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44052 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44053 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44054 fi 44055 fi 44056 fi 44057 44058 if test "x$FOUND_FREETYPE" = xyes; then 44059 44060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44061 44062 # Input might be given as Windows format, start by converting to 44063 # unix format. 44064 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44065 new_path=`$CYGPATH -u "$path"` 44066 44067 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44068 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44069 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44070 # "foo.exe" is OK but "foo" is an error. 44071 # 44072 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44073 # It is also a way to make sure we got the proper file name for the real test later on. 44074 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44075 if test "x$test_shortpath" = x; then 44076 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44077 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44078 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44079 fi 44080 44081 # Call helper function which possibly converts this using DOS-style short mode. 44082 # If so, the updated path is stored in $new_path. 44083 44084 input_path="$new_path" 44085 # Check if we need to convert this using DOS-style short mode. If the path 44086 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44087 # take no chances and rewrite it. 44088 # Note: m4 eats our [], so we need to use [ and ] instead. 44089 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44090 if test "x$has_forbidden_chars" != x; then 44091 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44092 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44093 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44094 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44095 # Going to short mode and back again did indeed matter. Since short mode is 44096 # case insensitive, let's make it lowercase to improve readability. 44097 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44098 # Now convert it back to Unix-stile (cygpath) 44099 input_path=`$CYGPATH -u "$shortmode_path"` 44100 new_path="$input_path" 44101 fi 44102 fi 44103 44104 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44105 if test "x$test_cygdrive_prefix" = x; then 44106 # As a simple fix, exclude /usr/bin since it's not a real path. 44107 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44108 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44109 # a path prefixed by /cygdrive for fixpath to work. 44110 new_path="$CYGWIN_ROOT_PATH$input_path" 44111 fi 44112 fi 44113 44114 44115 if test "x$path" != "x$new_path"; then 44116 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44117 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44118 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44119 fi 44120 44121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44122 44123 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44124 has_colon=`$ECHO $path | $GREP ^.:` 44125 new_path="$path" 44126 if test "x$has_colon" = x; then 44127 # Not in mixed or Windows style, start by that. 44128 new_path=`cmd //c echo $path` 44129 fi 44130 44131 44132 input_path="$new_path" 44133 # Check if we need to convert this using DOS-style short mode. If the path 44134 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44135 # take no chances and rewrite it. 44136 # Note: m4 eats our [], so we need to use [ and ] instead. 44137 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44138 if test "x$has_forbidden_chars" != x; then 44139 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44140 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44141 fi 44142 44143 44144 windows_path="$new_path" 44145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44146 unix_path=`$CYGPATH -u "$windows_path"` 44147 new_path="$unix_path" 44148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44150 new_path="$unix_path" 44151 fi 44152 44153 if test "x$path" != "x$new_path"; then 44154 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44156 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44157 fi 44158 44159 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44160 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44161 44162 else 44163 # We're on a posix platform. Hooray! :) 44164 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44165 has_space=`$ECHO "$path" | $GREP " "` 44166 if test "x$has_space" != x; then 44167 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44168 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44169 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44170 fi 44171 44172 # Use eval to expand a potential ~ 44173 eval path="$path" 44174 if test ! -f "$path" && test ! -d "$path"; then 44175 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44176 fi 44177 44178 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44179 fi 44180 44181 44182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44183 44184 # Input might be given as Windows format, start by converting to 44185 # unix format. 44186 path="$POTENTIAL_FREETYPE_LIB_PATH" 44187 new_path=`$CYGPATH -u "$path"` 44188 44189 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44190 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44191 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44192 # "foo.exe" is OK but "foo" is an error. 44193 # 44194 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44195 # It is also a way to make sure we got the proper file name for the real test later on. 44196 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44197 if test "x$test_shortpath" = x; then 44198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44199 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44200 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44201 fi 44202 44203 # Call helper function which possibly converts this using DOS-style short mode. 44204 # If so, the updated path is stored in $new_path. 44205 44206 input_path="$new_path" 44207 # Check if we need to convert this using DOS-style short mode. If the path 44208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44209 # take no chances and rewrite it. 44210 # Note: m4 eats our [], so we need to use [ and ] instead. 44211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44212 if test "x$has_forbidden_chars" != x; then 44213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44214 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44215 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44216 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44217 # Going to short mode and back again did indeed matter. Since short mode is 44218 # case insensitive, let's make it lowercase to improve readability. 44219 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44220 # Now convert it back to Unix-stile (cygpath) 44221 input_path=`$CYGPATH -u "$shortmode_path"` 44222 new_path="$input_path" 44223 fi 44224 fi 44225 44226 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44227 if test "x$test_cygdrive_prefix" = x; then 44228 # As a simple fix, exclude /usr/bin since it's not a real path. 44229 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44230 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44231 # a path prefixed by /cygdrive for fixpath to work. 44232 new_path="$CYGWIN_ROOT_PATH$input_path" 44233 fi 44234 fi 44235 44236 44237 if test "x$path" != "x$new_path"; then 44238 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44239 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44240 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44241 fi 44242 44243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44244 44245 path="$POTENTIAL_FREETYPE_LIB_PATH" 44246 has_colon=`$ECHO $path | $GREP ^.:` 44247 new_path="$path" 44248 if test "x$has_colon" = x; then 44249 # Not in mixed or Windows style, start by that. 44250 new_path=`cmd //c echo $path` 44251 fi 44252 44253 44254 input_path="$new_path" 44255 # Check if we need to convert this using DOS-style short mode. If the path 44256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44257 # take no chances and rewrite it. 44258 # Note: m4 eats our [], so we need to use [ and ] instead. 44259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44260 if test "x$has_forbidden_chars" != x; then 44261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44262 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44263 fi 44264 44265 44266 windows_path="$new_path" 44267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44268 unix_path=`$CYGPATH -u "$windows_path"` 44269 new_path="$unix_path" 44270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44272 new_path="$unix_path" 44273 fi 44274 44275 if test "x$path" != "x$new_path"; then 44276 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44278 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44279 fi 44280 44281 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44282 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44283 44284 else 44285 # We're on a posix platform. Hooray! :) 44286 path="$POTENTIAL_FREETYPE_LIB_PATH" 44287 has_space=`$ECHO "$path" | $GREP " "` 44288 if test "x$has_space" != x; then 44289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44290 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44291 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44292 fi 44293 44294 # Use eval to expand a potential ~ 44295 eval path="$path" 44296 if test ! -f "$path" && test ! -d "$path"; then 44297 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44298 fi 44299 44300 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44301 fi 44302 44303 44304 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44306 $as_echo_n "checking for freetype includes... " >&6; } 44307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44308 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44309 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44311 $as_echo_n "checking for freetype libraries... " >&6; } 44312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44313 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44314 fi 44315 44316 if test "x$FOUND_FREETYPE" != xyes; then 44317 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 44318 44319 windows_path="$FREETYPE_BASE_DIR" 44320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44321 unix_path=`$CYGPATH -u "$windows_path"` 44322 FREETYPE_BASE_DIR="$unix_path" 44323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44324 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44325 FREETYPE_BASE_DIR="$unix_path" 44326 fi 44327 44328 44329 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44330 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44331 METHOD="well-known location" 44332 44333 # First check if the files exists. 44334 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44335 # We found an arbitrary include file. That's a good sign. 44336 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44337 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44338 FOUND_FREETYPE=yes 44339 44340 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44341 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44342 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44343 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44344 FOUND_FREETYPE=no 44345 else 44346 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44347 # On Windows, we will need both .lib and .dll file. 44348 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44349 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44350 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44351 FOUND_FREETYPE=no 44352 fi 44353 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44354 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44355 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44356 fi 44357 fi 44358 fi 44359 44360 if test "x$FOUND_FREETYPE" = xyes; then 44361 44362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44363 44364 # Input might be given as Windows format, start by converting to 44365 # unix format. 44366 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44367 new_path=`$CYGPATH -u "$path"` 44368 44369 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44370 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44371 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44372 # "foo.exe" is OK but "foo" is an error. 44373 # 44374 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44375 # It is also a way to make sure we got the proper file name for the real test later on. 44376 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44377 if test "x$test_shortpath" = x; then 44378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44379 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44380 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44381 fi 44382 44383 # Call helper function which possibly converts this using DOS-style short mode. 44384 # If so, the updated path is stored in $new_path. 44385 44386 input_path="$new_path" 44387 # Check if we need to convert this using DOS-style short mode. If the path 44388 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44389 # take no chances and rewrite it. 44390 # Note: m4 eats our [], so we need to use [ and ] instead. 44391 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44392 if test "x$has_forbidden_chars" != x; then 44393 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44394 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44395 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44396 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44397 # Going to short mode and back again did indeed matter. Since short mode is 44398 # case insensitive, let's make it lowercase to improve readability. 44399 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44400 # Now convert it back to Unix-stile (cygpath) 44401 input_path=`$CYGPATH -u "$shortmode_path"` 44402 new_path="$input_path" 44403 fi 44404 fi 44405 44406 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44407 if test "x$test_cygdrive_prefix" = x; then 44408 # As a simple fix, exclude /usr/bin since it's not a real path. 44409 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44410 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44411 # a path prefixed by /cygdrive for fixpath to work. 44412 new_path="$CYGWIN_ROOT_PATH$input_path" 44413 fi 44414 fi 44415 44416 44417 if test "x$path" != "x$new_path"; then 44418 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44419 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44420 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44421 fi 44422 44423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44424 44425 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44426 has_colon=`$ECHO $path | $GREP ^.:` 44427 new_path="$path" 44428 if test "x$has_colon" = x; then 44429 # Not in mixed or Windows style, start by that. 44430 new_path=`cmd //c echo $path` 44431 fi 44432 44433 44434 input_path="$new_path" 44435 # Check if we need to convert this using DOS-style short mode. If the path 44436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44437 # take no chances and rewrite it. 44438 # Note: m4 eats our [], so we need to use [ and ] instead. 44439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44440 if test "x$has_forbidden_chars" != x; then 44441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44442 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44443 fi 44444 44445 44446 windows_path="$new_path" 44447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44448 unix_path=`$CYGPATH -u "$windows_path"` 44449 new_path="$unix_path" 44450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44451 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44452 new_path="$unix_path" 44453 fi 44454 44455 if test "x$path" != "x$new_path"; then 44456 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44457 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44458 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44459 fi 44460 44461 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44462 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44463 44464 else 44465 # We're on a posix platform. Hooray! :) 44466 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44467 has_space=`$ECHO "$path" | $GREP " "` 44468 if test "x$has_space" != x; then 44469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44470 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44471 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44472 fi 44473 44474 # Use eval to expand a potential ~ 44475 eval path="$path" 44476 if test ! -f "$path" && test ! -d "$path"; then 44477 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44478 fi 44479 44480 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44481 fi 44482 44483 44484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44485 44486 # Input might be given as Windows format, start by converting to 44487 # unix format. 44488 path="$POTENTIAL_FREETYPE_LIB_PATH" 44489 new_path=`$CYGPATH -u "$path"` 44490 44491 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44492 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44493 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44494 # "foo.exe" is OK but "foo" is an error. 44495 # 44496 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44497 # It is also a way to make sure we got the proper file name for the real test later on. 44498 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44499 if test "x$test_shortpath" = x; then 44500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44501 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44502 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44503 fi 44504 44505 # Call helper function which possibly converts this using DOS-style short mode. 44506 # If so, the updated path is stored in $new_path. 44507 44508 input_path="$new_path" 44509 # Check if we need to convert this using DOS-style short mode. If the path 44510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44511 # take no chances and rewrite it. 44512 # Note: m4 eats our [], so we need to use [ and ] instead. 44513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44514 if test "x$has_forbidden_chars" != x; then 44515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44516 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44517 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44518 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44519 # Going to short mode and back again did indeed matter. Since short mode is 44520 # case insensitive, let's make it lowercase to improve readability. 44521 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44522 # Now convert it back to Unix-stile (cygpath) 44523 input_path=`$CYGPATH -u "$shortmode_path"` 44524 new_path="$input_path" 44525 fi 44526 fi 44527 44528 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44529 if test "x$test_cygdrive_prefix" = x; then 44530 # As a simple fix, exclude /usr/bin since it's not a real path. 44531 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44532 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44533 # a path prefixed by /cygdrive for fixpath to work. 44534 new_path="$CYGWIN_ROOT_PATH$input_path" 44535 fi 44536 fi 44537 44538 44539 if test "x$path" != "x$new_path"; then 44540 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44541 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44542 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44543 fi 44544 44545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44546 44547 path="$POTENTIAL_FREETYPE_LIB_PATH" 44548 has_colon=`$ECHO $path | $GREP ^.:` 44549 new_path="$path" 44550 if test "x$has_colon" = x; then 44551 # Not in mixed or Windows style, start by that. 44552 new_path=`cmd //c echo $path` 44553 fi 44554 44555 44556 input_path="$new_path" 44557 # Check if we need to convert this using DOS-style short mode. If the path 44558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44559 # take no chances and rewrite it. 44560 # Note: m4 eats our [], so we need to use [ and ] instead. 44561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44562 if test "x$has_forbidden_chars" != x; then 44563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44564 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44565 fi 44566 44567 44568 windows_path="$new_path" 44569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44570 unix_path=`$CYGPATH -u "$windows_path"` 44571 new_path="$unix_path" 44572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44573 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44574 new_path="$unix_path" 44575 fi 44576 44577 if test "x$path" != "x$new_path"; then 44578 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44580 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44581 fi 44582 44583 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44584 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44585 44586 else 44587 # We're on a posix platform. Hooray! :) 44588 path="$POTENTIAL_FREETYPE_LIB_PATH" 44589 has_space=`$ECHO "$path" | $GREP " "` 44590 if test "x$has_space" != x; then 44591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44592 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44593 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44594 fi 44595 44596 # Use eval to expand a potential ~ 44597 eval path="$path" 44598 if test ! -f "$path" && test ! -d "$path"; then 44599 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44600 fi 44601 44602 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44603 fi 44604 44605 44606 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44608 $as_echo_n "checking for freetype includes... " >&6; } 44609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44610 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44611 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44613 $as_echo_n "checking for freetype libraries... " >&6; } 44614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44615 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44616 fi 44617 44618 fi 44619 else 44620 FREETYPE_BASE_DIR="$SYSROOT/usr" 44621 44622 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44623 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44624 METHOD="well-known location" 44625 44626 # First check if the files exists. 44627 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44628 # We found an arbitrary include file. That's a good sign. 44629 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44630 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44631 FOUND_FREETYPE=yes 44632 44633 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44634 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44635 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44636 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44637 FOUND_FREETYPE=no 44638 else 44639 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44640 # On Windows, we will need both .lib and .dll file. 44641 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44642 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44643 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44644 FOUND_FREETYPE=no 44645 fi 44646 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44647 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44648 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44649 fi 44650 fi 44651 fi 44652 44653 if test "x$FOUND_FREETYPE" = xyes; then 44654 44655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44656 44657 # Input might be given as Windows format, start by converting to 44658 # unix format. 44659 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44660 new_path=`$CYGPATH -u "$path"` 44661 44662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44665 # "foo.exe" is OK but "foo" is an error. 44666 # 44667 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44668 # It is also a way to make sure we got the proper file name for the real test later on. 44669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44670 if test "x$test_shortpath" = x; then 44671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44672 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44673 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44674 fi 44675 44676 # Call helper function which possibly converts this using DOS-style short mode. 44677 # If so, the updated path is stored in $new_path. 44678 44679 input_path="$new_path" 44680 # Check if we need to convert this using DOS-style short mode. If the path 44681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44682 # take no chances and rewrite it. 44683 # Note: m4 eats our [], so we need to use [ and ] instead. 44684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44685 if test "x$has_forbidden_chars" != x; then 44686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44687 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44688 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44689 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44690 # Going to short mode and back again did indeed matter. Since short mode is 44691 # case insensitive, let's make it lowercase to improve readability. 44692 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44693 # Now convert it back to Unix-stile (cygpath) 44694 input_path=`$CYGPATH -u "$shortmode_path"` 44695 new_path="$input_path" 44696 fi 44697 fi 44698 44699 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44700 if test "x$test_cygdrive_prefix" = x; then 44701 # As a simple fix, exclude /usr/bin since it's not a real path. 44702 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44703 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44704 # a path prefixed by /cygdrive for fixpath to work. 44705 new_path="$CYGWIN_ROOT_PATH$input_path" 44706 fi 44707 fi 44708 44709 44710 if test "x$path" != "x$new_path"; then 44711 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44713 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44714 fi 44715 44716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44717 44718 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44719 has_colon=`$ECHO $path | $GREP ^.:` 44720 new_path="$path" 44721 if test "x$has_colon" = x; then 44722 # Not in mixed or Windows style, start by that. 44723 new_path=`cmd //c echo $path` 44724 fi 44725 44726 44727 input_path="$new_path" 44728 # Check if we need to convert this using DOS-style short mode. If the path 44729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44730 # take no chances and rewrite it. 44731 # Note: m4 eats our [], so we need to use [ and ] instead. 44732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44733 if test "x$has_forbidden_chars" != x; then 44734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44736 fi 44737 44738 44739 windows_path="$new_path" 44740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44741 unix_path=`$CYGPATH -u "$windows_path"` 44742 new_path="$unix_path" 44743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44745 new_path="$unix_path" 44746 fi 44747 44748 if test "x$path" != "x$new_path"; then 44749 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44751 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44752 fi 44753 44754 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44755 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44756 44757 else 44758 # We're on a posix platform. Hooray! :) 44759 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44760 has_space=`$ECHO "$path" | $GREP " "` 44761 if test "x$has_space" != x; then 44762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44763 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44764 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44765 fi 44766 44767 # Use eval to expand a potential ~ 44768 eval path="$path" 44769 if test ! -f "$path" && test ! -d "$path"; then 44770 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44771 fi 44772 44773 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44774 fi 44775 44776 44777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44778 44779 # Input might be given as Windows format, start by converting to 44780 # unix format. 44781 path="$POTENTIAL_FREETYPE_LIB_PATH" 44782 new_path=`$CYGPATH -u "$path"` 44783 44784 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44785 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44786 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44787 # "foo.exe" is OK but "foo" is an error. 44788 # 44789 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44790 # It is also a way to make sure we got the proper file name for the real test later on. 44791 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44792 if test "x$test_shortpath" = x; then 44793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44794 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44795 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44796 fi 44797 44798 # Call helper function which possibly converts this using DOS-style short mode. 44799 # If so, the updated path is stored in $new_path. 44800 44801 input_path="$new_path" 44802 # Check if we need to convert this using DOS-style short mode. If the path 44803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44804 # take no chances and rewrite it. 44805 # Note: m4 eats our [], so we need to use [ and ] instead. 44806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44807 if test "x$has_forbidden_chars" != x; then 44808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44809 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44810 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44811 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44812 # Going to short mode and back again did indeed matter. Since short mode is 44813 # case insensitive, let's make it lowercase to improve readability. 44814 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44815 # Now convert it back to Unix-stile (cygpath) 44816 input_path=`$CYGPATH -u "$shortmode_path"` 44817 new_path="$input_path" 44818 fi 44819 fi 44820 44821 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44822 if test "x$test_cygdrive_prefix" = x; then 44823 # As a simple fix, exclude /usr/bin since it's not a real path. 44824 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44825 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44826 # a path prefixed by /cygdrive for fixpath to work. 44827 new_path="$CYGWIN_ROOT_PATH$input_path" 44828 fi 44829 fi 44830 44831 44832 if test "x$path" != "x$new_path"; then 44833 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44835 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44836 fi 44837 44838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44839 44840 path="$POTENTIAL_FREETYPE_LIB_PATH" 44841 has_colon=`$ECHO $path | $GREP ^.:` 44842 new_path="$path" 44843 if test "x$has_colon" = x; then 44844 # Not in mixed or Windows style, start by that. 44845 new_path=`cmd //c echo $path` 44846 fi 44847 44848 44849 input_path="$new_path" 44850 # Check if we need to convert this using DOS-style short mode. If the path 44851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44852 # take no chances and rewrite it. 44853 # Note: m4 eats our [], so we need to use [ and ] instead. 44854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44855 if test "x$has_forbidden_chars" != x; then 44856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44857 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44858 fi 44859 44860 44861 windows_path="$new_path" 44862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44863 unix_path=`$CYGPATH -u "$windows_path"` 44864 new_path="$unix_path" 44865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44867 new_path="$unix_path" 44868 fi 44869 44870 if test "x$path" != "x$new_path"; then 44871 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44873 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44874 fi 44875 44876 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44877 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44878 44879 else 44880 # We're on a posix platform. Hooray! :) 44881 path="$POTENTIAL_FREETYPE_LIB_PATH" 44882 has_space=`$ECHO "$path" | $GREP " "` 44883 if test "x$has_space" != x; then 44884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44885 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44886 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44887 fi 44888 44889 # Use eval to expand a potential ~ 44890 eval path="$path" 44891 if test ! -f "$path" && test ! -d "$path"; then 44892 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44893 fi 44894 44895 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44896 fi 44897 44898 44899 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44901 $as_echo_n "checking for freetype includes... " >&6; } 44902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44903 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44904 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44906 $as_echo_n "checking for freetype libraries... " >&6; } 44907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44908 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44909 fi 44910 44911 44912 if test "x$FOUND_FREETYPE" != xyes; then 44913 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 44914 44915 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44916 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44917 METHOD="well-known location" 44918 44919 # First check if the files exists. 44920 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44921 # We found an arbitrary include file. That's a good sign. 44922 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44923 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44924 FOUND_FREETYPE=yes 44925 44926 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44927 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44928 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44929 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44930 FOUND_FREETYPE=no 44931 else 44932 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44933 # On Windows, we will need both .lib and .dll file. 44934 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44935 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44936 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44937 FOUND_FREETYPE=no 44938 fi 44939 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44940 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44941 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44942 fi 44943 fi 44944 fi 44945 44946 if test "x$FOUND_FREETYPE" = xyes; then 44947 44948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44949 44950 # Input might be given as Windows format, start by converting to 44951 # unix format. 44952 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44953 new_path=`$CYGPATH -u "$path"` 44954 44955 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44956 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44957 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44958 # "foo.exe" is OK but "foo" is an error. 44959 # 44960 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44961 # It is also a way to make sure we got the proper file name for the real test later on. 44962 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44963 if test "x$test_shortpath" = x; then 44964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44965 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44966 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44967 fi 44968 44969 # Call helper function which possibly converts this using DOS-style short mode. 44970 # If so, the updated path is stored in $new_path. 44971 44972 input_path="$new_path" 44973 # Check if we need to convert this using DOS-style short mode. If the path 44974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44975 # take no chances and rewrite it. 44976 # Note: m4 eats our [], so we need to use [ and ] instead. 44977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44978 if test "x$has_forbidden_chars" != x; then 44979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44980 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44981 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44982 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44983 # Going to short mode and back again did indeed matter. Since short mode is 44984 # case insensitive, let's make it lowercase to improve readability. 44985 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44986 # Now convert it back to Unix-stile (cygpath) 44987 input_path=`$CYGPATH -u "$shortmode_path"` 44988 new_path="$input_path" 44989 fi 44990 fi 44991 44992 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44993 if test "x$test_cygdrive_prefix" = x; then 44994 # As a simple fix, exclude /usr/bin since it's not a real path. 44995 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44996 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44997 # a path prefixed by /cygdrive for fixpath to work. 44998 new_path="$CYGWIN_ROOT_PATH$input_path" 44999 fi 45000 fi 45001 45002 45003 if test "x$path" != "x$new_path"; then 45004 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45005 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45006 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45007 fi 45008 45009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45010 45011 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45012 has_colon=`$ECHO $path | $GREP ^.:` 45013 new_path="$path" 45014 if test "x$has_colon" = x; then 45015 # Not in mixed or Windows style, start by that. 45016 new_path=`cmd //c echo $path` 45017 fi 45018 45019 45020 input_path="$new_path" 45021 # Check if we need to convert this using DOS-style short mode. If the path 45022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45023 # take no chances and rewrite it. 45024 # Note: m4 eats our [], so we need to use [ and ] instead. 45025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45026 if test "x$has_forbidden_chars" != x; then 45027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45028 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45029 fi 45030 45031 45032 windows_path="$new_path" 45033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45034 unix_path=`$CYGPATH -u "$windows_path"` 45035 new_path="$unix_path" 45036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45037 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45038 new_path="$unix_path" 45039 fi 45040 45041 if test "x$path" != "x$new_path"; then 45042 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45043 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45044 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45045 fi 45046 45047 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45048 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45049 45050 else 45051 # We're on a posix platform. Hooray! :) 45052 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45053 has_space=`$ECHO "$path" | $GREP " "` 45054 if test "x$has_space" != x; then 45055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45056 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45057 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45058 fi 45059 45060 # Use eval to expand a potential ~ 45061 eval path="$path" 45062 if test ! -f "$path" && test ! -d "$path"; then 45063 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45064 fi 45065 45066 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45067 fi 45068 45069 45070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45071 45072 # Input might be given as Windows format, start by converting to 45073 # unix format. 45074 path="$POTENTIAL_FREETYPE_LIB_PATH" 45075 new_path=`$CYGPATH -u "$path"` 45076 45077 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45078 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45079 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45080 # "foo.exe" is OK but "foo" is an error. 45081 # 45082 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45083 # It is also a way to make sure we got the proper file name for the real test later on. 45084 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45085 if test "x$test_shortpath" = x; then 45086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45087 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45088 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45089 fi 45090 45091 # Call helper function which possibly converts this using DOS-style short mode. 45092 # If so, the updated path is stored in $new_path. 45093 45094 input_path="$new_path" 45095 # Check if we need to convert this using DOS-style short mode. If the path 45096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45097 # take no chances and rewrite it. 45098 # Note: m4 eats our [], so we need to use [ and ] instead. 45099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45100 if test "x$has_forbidden_chars" != x; then 45101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45102 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45103 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45104 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45105 # Going to short mode and back again did indeed matter. Since short mode is 45106 # case insensitive, let's make it lowercase to improve readability. 45107 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45108 # Now convert it back to Unix-stile (cygpath) 45109 input_path=`$CYGPATH -u "$shortmode_path"` 45110 new_path="$input_path" 45111 fi 45112 fi 45113 45114 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45115 if test "x$test_cygdrive_prefix" = x; then 45116 # As a simple fix, exclude /usr/bin since it's not a real path. 45117 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45118 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45119 # a path prefixed by /cygdrive for fixpath to work. 45120 new_path="$CYGWIN_ROOT_PATH$input_path" 45121 fi 45122 fi 45123 45124 45125 if test "x$path" != "x$new_path"; then 45126 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45127 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45128 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45129 fi 45130 45131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45132 45133 path="$POTENTIAL_FREETYPE_LIB_PATH" 45134 has_colon=`$ECHO $path | $GREP ^.:` 45135 new_path="$path" 45136 if test "x$has_colon" = x; then 45137 # Not in mixed or Windows style, start by that. 45138 new_path=`cmd //c echo $path` 45139 fi 45140 45141 45142 input_path="$new_path" 45143 # Check if we need to convert this using DOS-style short mode. If the path 45144 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45145 # take no chances and rewrite it. 45146 # Note: m4 eats our [], so we need to use [ and ] instead. 45147 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45148 if test "x$has_forbidden_chars" != x; then 45149 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45150 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45151 fi 45152 45153 45154 windows_path="$new_path" 45155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45156 unix_path=`$CYGPATH -u "$windows_path"` 45157 new_path="$unix_path" 45158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45160 new_path="$unix_path" 45161 fi 45162 45163 if test "x$path" != "x$new_path"; then 45164 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45166 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45167 fi 45168 45169 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45170 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45171 45172 else 45173 # We're on a posix platform. Hooray! :) 45174 path="$POTENTIAL_FREETYPE_LIB_PATH" 45175 has_space=`$ECHO "$path" | $GREP " "` 45176 if test "x$has_space" != x; then 45177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45178 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45179 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45180 fi 45181 45182 # Use eval to expand a potential ~ 45183 eval path="$path" 45184 if test ! -f "$path" && test ! -d "$path"; then 45185 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45186 fi 45187 45188 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45189 fi 45190 45191 45192 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45194 $as_echo_n "checking for freetype includes... " >&6; } 45195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45196 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45197 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45199 $as_echo_n "checking for freetype libraries... " >&6; } 45200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45201 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45202 fi 45203 45204 fi 45205 45206 if test "x$FOUND_FREETYPE" != xyes; then 45207 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 45208 45209 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45210 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45211 METHOD="well-known location" 45212 45213 # First check if the files exists. 45214 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45215 # We found an arbitrary include file. That's a good sign. 45216 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45217 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45218 FOUND_FREETYPE=yes 45219 45220 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45221 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45222 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45223 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45224 FOUND_FREETYPE=no 45225 else 45226 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45227 # On Windows, we will need both .lib and .dll file. 45228 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45229 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45230 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45231 FOUND_FREETYPE=no 45232 fi 45233 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45234 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45235 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45236 fi 45237 fi 45238 fi 45239 45240 if test "x$FOUND_FREETYPE" = xyes; then 45241 45242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45243 45244 # Input might be given as Windows format, start by converting to 45245 # unix format. 45246 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45247 new_path=`$CYGPATH -u "$path"` 45248 45249 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45250 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45251 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45252 # "foo.exe" is OK but "foo" is an error. 45253 # 45254 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45255 # It is also a way to make sure we got the proper file name for the real test later on. 45256 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45257 if test "x$test_shortpath" = x; then 45258 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45259 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45260 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45261 fi 45262 45263 # Call helper function which possibly converts this using DOS-style short mode. 45264 # If so, the updated path is stored in $new_path. 45265 45266 input_path="$new_path" 45267 # Check if we need to convert this using DOS-style short mode. If the path 45268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45269 # take no chances and rewrite it. 45270 # Note: m4 eats our [], so we need to use [ and ] instead. 45271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45272 if test "x$has_forbidden_chars" != x; then 45273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45274 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45275 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45276 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45277 # Going to short mode and back again did indeed matter. Since short mode is 45278 # case insensitive, let's make it lowercase to improve readability. 45279 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45280 # Now convert it back to Unix-stile (cygpath) 45281 input_path=`$CYGPATH -u "$shortmode_path"` 45282 new_path="$input_path" 45283 fi 45284 fi 45285 45286 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45287 if test "x$test_cygdrive_prefix" = x; then 45288 # As a simple fix, exclude /usr/bin since it's not a real path. 45289 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45290 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45291 # a path prefixed by /cygdrive for fixpath to work. 45292 new_path="$CYGWIN_ROOT_PATH$input_path" 45293 fi 45294 fi 45295 45296 45297 if test "x$path" != "x$new_path"; then 45298 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45299 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45300 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45301 fi 45302 45303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45304 45305 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45306 has_colon=`$ECHO $path | $GREP ^.:` 45307 new_path="$path" 45308 if test "x$has_colon" = x; then 45309 # Not in mixed or Windows style, start by that. 45310 new_path=`cmd //c echo $path` 45311 fi 45312 45313 45314 input_path="$new_path" 45315 # Check if we need to convert this using DOS-style short mode. If the path 45316 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45317 # take no chances and rewrite it. 45318 # Note: m4 eats our [], so we need to use [ and ] instead. 45319 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45320 if test "x$has_forbidden_chars" != x; then 45321 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45322 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45323 fi 45324 45325 45326 windows_path="$new_path" 45327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45328 unix_path=`$CYGPATH -u "$windows_path"` 45329 new_path="$unix_path" 45330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45332 new_path="$unix_path" 45333 fi 45334 45335 if test "x$path" != "x$new_path"; then 45336 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45338 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45339 fi 45340 45341 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45342 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45343 45344 else 45345 # We're on a posix platform. Hooray! :) 45346 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45347 has_space=`$ECHO "$path" | $GREP " "` 45348 if test "x$has_space" != x; then 45349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45350 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45351 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45352 fi 45353 45354 # Use eval to expand a potential ~ 45355 eval path="$path" 45356 if test ! -f "$path" && test ! -d "$path"; then 45357 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45358 fi 45359 45360 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45361 fi 45362 45363 45364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45365 45366 # Input might be given as Windows format, start by converting to 45367 # unix format. 45368 path="$POTENTIAL_FREETYPE_LIB_PATH" 45369 new_path=`$CYGPATH -u "$path"` 45370 45371 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45372 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45373 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45374 # "foo.exe" is OK but "foo" is an error. 45375 # 45376 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45377 # It is also a way to make sure we got the proper file name for the real test later on. 45378 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45379 if test "x$test_shortpath" = x; then 45380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45381 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45382 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45383 fi 45384 45385 # Call helper function which possibly converts this using DOS-style short mode. 45386 # If so, the updated path is stored in $new_path. 45387 45388 input_path="$new_path" 45389 # Check if we need to convert this using DOS-style short mode. If the path 45390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45391 # take no chances and rewrite it. 45392 # Note: m4 eats our [], so we need to use [ and ] instead. 45393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45394 if test "x$has_forbidden_chars" != x; then 45395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45396 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45397 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45398 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45399 # Going to short mode and back again did indeed matter. Since short mode is 45400 # case insensitive, let's make it lowercase to improve readability. 45401 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45402 # Now convert it back to Unix-stile (cygpath) 45403 input_path=`$CYGPATH -u "$shortmode_path"` 45404 new_path="$input_path" 45405 fi 45406 fi 45407 45408 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45409 if test "x$test_cygdrive_prefix" = x; then 45410 # As a simple fix, exclude /usr/bin since it's not a real path. 45411 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45412 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45413 # a path prefixed by /cygdrive for fixpath to work. 45414 new_path="$CYGWIN_ROOT_PATH$input_path" 45415 fi 45416 fi 45417 45418 45419 if test "x$path" != "x$new_path"; then 45420 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45421 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45422 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45423 fi 45424 45425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45426 45427 path="$POTENTIAL_FREETYPE_LIB_PATH" 45428 has_colon=`$ECHO $path | $GREP ^.:` 45429 new_path="$path" 45430 if test "x$has_colon" = x; then 45431 # Not in mixed or Windows style, start by that. 45432 new_path=`cmd //c echo $path` 45433 fi 45434 45435 45436 input_path="$new_path" 45437 # Check if we need to convert this using DOS-style short mode. If the path 45438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45439 # take no chances and rewrite it. 45440 # Note: m4 eats our [], so we need to use [ and ] instead. 45441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45442 if test "x$has_forbidden_chars" != x; then 45443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45444 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45445 fi 45446 45447 45448 windows_path="$new_path" 45449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45450 unix_path=`$CYGPATH -u "$windows_path"` 45451 new_path="$unix_path" 45452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45454 new_path="$unix_path" 45455 fi 45456 45457 if test "x$path" != "x$new_path"; then 45458 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45459 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45460 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45461 fi 45462 45463 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45464 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45465 45466 else 45467 # We're on a posix platform. Hooray! :) 45468 path="$POTENTIAL_FREETYPE_LIB_PATH" 45469 has_space=`$ECHO "$path" | $GREP " "` 45470 if test "x$has_space" != x; then 45471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45472 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45473 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45474 fi 45475 45476 # Use eval to expand a potential ~ 45477 eval path="$path" 45478 if test ! -f "$path" && test ! -d "$path"; then 45479 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45480 fi 45481 45482 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45483 fi 45484 45485 45486 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45488 $as_echo_n "checking for freetype includes... " >&6; } 45489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45490 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45491 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45493 $as_echo_n "checking for freetype libraries... " >&6; } 45494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45495 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45496 fi 45497 45498 fi 45499 45500 if test "x$FOUND_FREETYPE" != xyes; then 45501 FREETYPE_BASE_DIR="$SYSROOT/usr" 45502 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 45503 45504 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45505 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 45506 METHOD="well-known location" 45507 45508 # First check if the files exists. 45509 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45510 # We found an arbitrary include file. That's a good sign. 45511 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45512 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45513 FOUND_FREETYPE=yes 45514 45515 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45516 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45517 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45518 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45519 FOUND_FREETYPE=no 45520 else 45521 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45522 # On Windows, we will need both .lib and .dll file. 45523 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45524 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45525 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45526 FOUND_FREETYPE=no 45527 fi 45528 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45529 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45530 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45531 fi 45532 fi 45533 fi 45534 45535 if test "x$FOUND_FREETYPE" = xyes; then 45536 45537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45538 45539 # Input might be given as Windows format, start by converting to 45540 # unix format. 45541 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45542 new_path=`$CYGPATH -u "$path"` 45543 45544 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45545 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45546 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45547 # "foo.exe" is OK but "foo" is an error. 45548 # 45549 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45550 # It is also a way to make sure we got the proper file name for the real test later on. 45551 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45552 if test "x$test_shortpath" = x; then 45553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45554 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45555 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45556 fi 45557 45558 # Call helper function which possibly converts this using DOS-style short mode. 45559 # If so, the updated path is stored in $new_path. 45560 45561 input_path="$new_path" 45562 # Check if we need to convert this using DOS-style short mode. If the path 45563 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45564 # take no chances and rewrite it. 45565 # Note: m4 eats our [], so we need to use [ and ] instead. 45566 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45567 if test "x$has_forbidden_chars" != x; then 45568 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45569 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45570 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45571 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45572 # Going to short mode and back again did indeed matter. Since short mode is 45573 # case insensitive, let's make it lowercase to improve readability. 45574 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45575 # Now convert it back to Unix-stile (cygpath) 45576 input_path=`$CYGPATH -u "$shortmode_path"` 45577 new_path="$input_path" 45578 fi 45579 fi 45580 45581 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45582 if test "x$test_cygdrive_prefix" = x; then 45583 # As a simple fix, exclude /usr/bin since it's not a real path. 45584 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45585 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45586 # a path prefixed by /cygdrive for fixpath to work. 45587 new_path="$CYGWIN_ROOT_PATH$input_path" 45588 fi 45589 fi 45590 45591 45592 if test "x$path" != "x$new_path"; then 45593 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45595 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45596 fi 45597 45598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45599 45600 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45601 has_colon=`$ECHO $path | $GREP ^.:` 45602 new_path="$path" 45603 if test "x$has_colon" = x; then 45604 # Not in mixed or Windows style, start by that. 45605 new_path=`cmd //c echo $path` 45606 fi 45607 45608 45609 input_path="$new_path" 45610 # Check if we need to convert this using DOS-style short mode. If the path 45611 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45612 # take no chances and rewrite it. 45613 # Note: m4 eats our [], so we need to use [ and ] instead. 45614 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45615 if test "x$has_forbidden_chars" != x; then 45616 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45617 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45618 fi 45619 45620 45621 windows_path="$new_path" 45622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45623 unix_path=`$CYGPATH -u "$windows_path"` 45624 new_path="$unix_path" 45625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45626 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45627 new_path="$unix_path" 45628 fi 45629 45630 if test "x$path" != "x$new_path"; then 45631 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45632 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45633 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45634 fi 45635 45636 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45637 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45638 45639 else 45640 # We're on a posix platform. Hooray! :) 45641 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45642 has_space=`$ECHO "$path" | $GREP " "` 45643 if test "x$has_space" != x; then 45644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45645 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45646 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45647 fi 45648 45649 # Use eval to expand a potential ~ 45650 eval path="$path" 45651 if test ! -f "$path" && test ! -d "$path"; then 45652 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45653 fi 45654 45655 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45656 fi 45657 45658 45659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45660 45661 # Input might be given as Windows format, start by converting to 45662 # unix format. 45663 path="$POTENTIAL_FREETYPE_LIB_PATH" 45664 new_path=`$CYGPATH -u "$path"` 45665 45666 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45667 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45668 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45669 # "foo.exe" is OK but "foo" is an error. 45670 # 45671 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45672 # It is also a way to make sure we got the proper file name for the real test later on. 45673 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45674 if test "x$test_shortpath" = x; then 45675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45676 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45677 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45678 fi 45679 45680 # Call helper function which possibly converts this using DOS-style short mode. 45681 # If so, the updated path is stored in $new_path. 45682 45683 input_path="$new_path" 45684 # Check if we need to convert this using DOS-style short mode. If the path 45685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45686 # take no chances and rewrite it. 45687 # Note: m4 eats our [], so we need to use [ and ] instead. 45688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45689 if test "x$has_forbidden_chars" != x; then 45690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45691 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45692 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45693 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45694 # Going to short mode and back again did indeed matter. Since short mode is 45695 # case insensitive, let's make it lowercase to improve readability. 45696 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45697 # Now convert it back to Unix-stile (cygpath) 45698 input_path=`$CYGPATH -u "$shortmode_path"` 45699 new_path="$input_path" 45700 fi 45701 fi 45702 45703 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45704 if test "x$test_cygdrive_prefix" = x; then 45705 # As a simple fix, exclude /usr/bin since it's not a real path. 45706 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45707 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45708 # a path prefixed by /cygdrive for fixpath to work. 45709 new_path="$CYGWIN_ROOT_PATH$input_path" 45710 fi 45711 fi 45712 45713 45714 if test "x$path" != "x$new_path"; then 45715 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45716 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45717 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45718 fi 45719 45720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45721 45722 path="$POTENTIAL_FREETYPE_LIB_PATH" 45723 has_colon=`$ECHO $path | $GREP ^.:` 45724 new_path="$path" 45725 if test "x$has_colon" = x; then 45726 # Not in mixed or Windows style, start by that. 45727 new_path=`cmd //c echo $path` 45728 fi 45729 45730 45731 input_path="$new_path" 45732 # Check if we need to convert this using DOS-style short mode. If the path 45733 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45734 # take no chances and rewrite it. 45735 # Note: m4 eats our [], so we need to use [ and ] instead. 45736 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45737 if test "x$has_forbidden_chars" != x; then 45738 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45739 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45740 fi 45741 45742 45743 windows_path="$new_path" 45744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45745 unix_path=`$CYGPATH -u "$windows_path"` 45746 new_path="$unix_path" 45747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45748 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45749 new_path="$unix_path" 45750 fi 45751 45752 if test "x$path" != "x$new_path"; then 45753 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45754 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45755 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45756 fi 45757 45758 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45759 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45760 45761 else 45762 # We're on a posix platform. Hooray! :) 45763 path="$POTENTIAL_FREETYPE_LIB_PATH" 45764 has_space=`$ECHO "$path" | $GREP " "` 45765 if test "x$has_space" != x; then 45766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45767 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45768 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45769 fi 45770 45771 # Use eval to expand a potential ~ 45772 eval path="$path" 45773 if test ! -f "$path" && test ! -d "$path"; then 45774 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45775 fi 45776 45777 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45778 fi 45779 45780 45781 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45783 $as_echo_n "checking for freetype includes... " >&6; } 45784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45785 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45786 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45788 $as_echo_n "checking for freetype libraries... " >&6; } 45789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45790 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45791 fi 45792 45793 else 45794 45795 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45796 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 45797 METHOD="well-known location" 45798 45799 # First check if the files exists. 45800 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45801 # We found an arbitrary include file. That's a good sign. 45802 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45803 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45804 FOUND_FREETYPE=yes 45805 45806 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45807 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45808 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45809 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45810 FOUND_FREETYPE=no 45811 else 45812 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45813 # On Windows, we will need both .lib and .dll file. 45814 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45815 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45816 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45817 FOUND_FREETYPE=no 45818 fi 45819 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45820 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45821 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45822 fi 45823 fi 45824 fi 45825 45826 if test "x$FOUND_FREETYPE" = xyes; then 45827 45828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45829 45830 # Input might be given as Windows format, start by converting to 45831 # unix format. 45832 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45833 new_path=`$CYGPATH -u "$path"` 45834 45835 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45836 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45837 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45838 # "foo.exe" is OK but "foo" is an error. 45839 # 45840 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45841 # It is also a way to make sure we got the proper file name for the real test later on. 45842 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45843 if test "x$test_shortpath" = x; then 45844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45845 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45846 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45847 fi 45848 45849 # Call helper function which possibly converts this using DOS-style short mode. 45850 # If so, the updated path is stored in $new_path. 45851 45852 input_path="$new_path" 45853 # Check if we need to convert this using DOS-style short mode. If the path 45854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45855 # take no chances and rewrite it. 45856 # Note: m4 eats our [], so we need to use [ and ] instead. 45857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45858 if test "x$has_forbidden_chars" != x; then 45859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45860 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45861 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45862 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45863 # Going to short mode and back again did indeed matter. Since short mode is 45864 # case insensitive, let's make it lowercase to improve readability. 45865 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45866 # Now convert it back to Unix-stile (cygpath) 45867 input_path=`$CYGPATH -u "$shortmode_path"` 45868 new_path="$input_path" 45869 fi 45870 fi 45871 45872 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45873 if test "x$test_cygdrive_prefix" = x; then 45874 # As a simple fix, exclude /usr/bin since it's not a real path. 45875 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45876 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45877 # a path prefixed by /cygdrive for fixpath to work. 45878 new_path="$CYGWIN_ROOT_PATH$input_path" 45879 fi 45880 fi 45881 45882 45883 if test "x$path" != "x$new_path"; then 45884 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45885 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45886 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45887 fi 45888 45889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45890 45891 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45892 has_colon=`$ECHO $path | $GREP ^.:` 45893 new_path="$path" 45894 if test "x$has_colon" = x; then 45895 # Not in mixed or Windows style, start by that. 45896 new_path=`cmd //c echo $path` 45897 fi 45898 45899 45900 input_path="$new_path" 45901 # Check if we need to convert this using DOS-style short mode. If the path 45902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45903 # take no chances and rewrite it. 45904 # Note: m4 eats our [], so we need to use [ and ] instead. 45905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45906 if test "x$has_forbidden_chars" != x; then 45907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45908 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45909 fi 45910 45911 45912 windows_path="$new_path" 45913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45914 unix_path=`$CYGPATH -u "$windows_path"` 45915 new_path="$unix_path" 45916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45918 new_path="$unix_path" 45919 fi 45920 45921 if test "x$path" != "x$new_path"; then 45922 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45923 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45924 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45925 fi 45926 45927 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45928 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45929 45930 else 45931 # We're on a posix platform. Hooray! :) 45932 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45933 has_space=`$ECHO "$path" | $GREP " "` 45934 if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5 45938 fi 45939 45940 # Use eval to expand a potential ~ 45941 eval path="$path" 45942 if test ! -f "$path" && test ! -d "$path"; then 45943 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45944 fi 45945 45946 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45947 fi 45948 45949 45950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45951 45952 # Input might be given as Windows format, start by converting to 45953 # unix format. 45954 path="$POTENTIAL_FREETYPE_LIB_PATH" 45955 new_path=`$CYGPATH -u "$path"` 45956 45957 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45958 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45959 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45960 # "foo.exe" is OK but "foo" is an error. 45961 # 45962 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45963 # It is also a way to make sure we got the proper file name for the real test later on. 45964 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45965 if test "x$test_shortpath" = x; then 45966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45967 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45968 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45969 fi 45970 45971 # Call helper function which possibly converts this using DOS-style short mode. 45972 # If so, the updated path is stored in $new_path. 45973 45974 input_path="$new_path" 45975 # Check if we need to convert this using DOS-style short mode. If the path 45976 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45977 # take no chances and rewrite it. 45978 # Note: m4 eats our [], so we need to use [ and ] instead. 45979 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45980 if test "x$has_forbidden_chars" != x; then 45981 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45982 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45983 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45984 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45985 # Going to short mode and back again did indeed matter. Since short mode is 45986 # case insensitive, let's make it lowercase to improve readability. 45987 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45988 # Now convert it back to Unix-stile (cygpath) 45989 input_path=`$CYGPATH -u "$shortmode_path"` 45990 new_path="$input_path" 45991 fi 45992 fi 45993 45994 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45995 if test "x$test_cygdrive_prefix" = x; then 45996 # As a simple fix, exclude /usr/bin since it's not a real path. 45997 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45998 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45999 # a path prefixed by /cygdrive for fixpath to work. 46000 new_path="$CYGWIN_ROOT_PATH$input_path" 46001 fi 46002 fi 46003 46004 46005 if test "x$path" != "x$new_path"; then 46006 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46007 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46008 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46009 fi 46010 46011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46012 46013 path="$POTENTIAL_FREETYPE_LIB_PATH" 46014 has_colon=`$ECHO $path | $GREP ^.:` 46015 new_path="$path" 46016 if test "x$has_colon" = x; then 46017 # Not in mixed or Windows style, start by that. 46018 new_path=`cmd //c echo $path` 46019 fi 46020 46021 46022 input_path="$new_path" 46023 # Check if we need to convert this using DOS-style short mode. If the path 46024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46025 # take no chances and rewrite it. 46026 # Note: m4 eats our [], so we need to use [ and ] instead. 46027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46028 if test "x$has_forbidden_chars" != x; then 46029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46030 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46031 fi 46032 46033 46034 windows_path="$new_path" 46035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46036 unix_path=`$CYGPATH -u "$windows_path"` 46037 new_path="$unix_path" 46038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46040 new_path="$unix_path" 46041 fi 46042 46043 if test "x$path" != "x$new_path"; then 46044 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46045 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46046 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46047 fi 46048 46049 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46050 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46051 46052 else 46053 # We're on a posix platform. Hooray! :) 46054 path="$POTENTIAL_FREETYPE_LIB_PATH" 46055 has_space=`$ECHO "$path" | $GREP " "` 46056 if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5 46060 fi 46061 46062 # Use eval to expand a potential ~ 46063 eval path="$path" 46064 if test ! -f "$path" && test ! -d "$path"; then 46065 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46066 fi 46067 46068 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46069 fi 46070 46071 46072 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46074 $as_echo_n "checking for freetype includes... " >&6; } 46075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46076 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46077 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46079 $as_echo_n "checking for freetype libraries... " >&6; } 46080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46081 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46082 fi 46083 46084 if test "x$FOUND_FREETYPE" != xyes; then 46085 46086 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46087 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 46088 METHOD="well-known location" 46089 46090 # First check if the files exists. 46091 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46092 # We found an arbitrary include file. That's a good sign. 46093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46094 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46095 FOUND_FREETYPE=yes 46096 46097 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46098 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46099 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46100 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46101 FOUND_FREETYPE=no 46102 else 46103 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46104 # On Windows, we will need both .lib and .dll file. 46105 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46106 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46107 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46108 FOUND_FREETYPE=no 46109 fi 46110 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46111 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46112 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46113 fi 46114 fi 46115 fi 46116 46117 if test "x$FOUND_FREETYPE" = xyes; then 46118 46119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46120 46121 # Input might be given as Windows format, start by converting to 46122 # unix format. 46123 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46124 new_path=`$CYGPATH -u "$path"` 46125 46126 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46127 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46128 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46129 # "foo.exe" is OK but "foo" is an error. 46130 # 46131 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46132 # It is also a way to make sure we got the proper file name for the real test later on. 46133 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46134 if test "x$test_shortpath" = x; then 46135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46136 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46137 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46138 fi 46139 46140 # Call helper function which possibly converts this using DOS-style short mode. 46141 # If so, the updated path is stored in $new_path. 46142 46143 input_path="$new_path" 46144 # Check if we need to convert this using DOS-style short mode. If the path 46145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46146 # take no chances and rewrite it. 46147 # Note: m4 eats our [], so we need to use [ and ] instead. 46148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46149 if test "x$has_forbidden_chars" != x; then 46150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46151 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46152 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46153 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46154 # Going to short mode and back again did indeed matter. Since short mode is 46155 # case insensitive, let's make it lowercase to improve readability. 46156 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46157 # Now convert it back to Unix-stile (cygpath) 46158 input_path=`$CYGPATH -u "$shortmode_path"` 46159 new_path="$input_path" 46160 fi 46161 fi 46162 46163 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46164 if test "x$test_cygdrive_prefix" = x; then 46165 # As a simple fix, exclude /usr/bin since it's not a real path. 46166 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46167 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46168 # a path prefixed by /cygdrive for fixpath to work. 46169 new_path="$CYGWIN_ROOT_PATH$input_path" 46170 fi 46171 fi 46172 46173 46174 if test "x$path" != "x$new_path"; then 46175 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46177 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46178 fi 46179 46180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46181 46182 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46183 has_colon=`$ECHO $path | $GREP ^.:` 46184 new_path="$path" 46185 if test "x$has_colon" = x; then 46186 # Not in mixed or Windows style, start by that. 46187 new_path=`cmd //c echo $path` 46188 fi 46189 46190 46191 input_path="$new_path" 46192 # Check if we need to convert this using DOS-style short mode. If the path 46193 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46194 # take no chances and rewrite it. 46195 # Note: m4 eats our [], so we need to use [ and ] instead. 46196 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46197 if test "x$has_forbidden_chars" != x; then 46198 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46199 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46200 fi 46201 46202 46203 windows_path="$new_path" 46204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46205 unix_path=`$CYGPATH -u "$windows_path"` 46206 new_path="$unix_path" 46207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46209 new_path="$unix_path" 46210 fi 46211 46212 if test "x$path" != "x$new_path"; then 46213 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46215 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46216 fi 46217 46218 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46219 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46220 46221 else 46222 # We're on a posix platform. Hooray! :) 46223 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46224 has_space=`$ECHO "$path" | $GREP " "` 46225 if test "x$has_space" != x; then 46226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46227 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46228 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46229 fi 46230 46231 # Use eval to expand a potential ~ 46232 eval path="$path" 46233 if test ! -f "$path" && test ! -d "$path"; then 46234 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46235 fi 46236 46237 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46238 fi 46239 46240 46241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46242 46243 # Input might be given as Windows format, start by converting to 46244 # unix format. 46245 path="$POTENTIAL_FREETYPE_LIB_PATH" 46246 new_path=`$CYGPATH -u "$path"` 46247 46248 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46249 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46250 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46251 # "foo.exe" is OK but "foo" is an error. 46252 # 46253 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46254 # It is also a way to make sure we got the proper file name for the real test later on. 46255 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46256 if test "x$test_shortpath" = x; then 46257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46258 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46259 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46260 fi 46261 46262 # Call helper function which possibly converts this using DOS-style short mode. 46263 # If so, the updated path is stored in $new_path. 46264 46265 input_path="$new_path" 46266 # Check if we need to convert this using DOS-style short mode. If the path 46267 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46268 # take no chances and rewrite it. 46269 # Note: m4 eats our [], so we need to use [ and ] instead. 46270 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46271 if test "x$has_forbidden_chars" != x; then 46272 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46273 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46274 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46275 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46276 # Going to short mode and back again did indeed matter. Since short mode is 46277 # case insensitive, let's make it lowercase to improve readability. 46278 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46279 # Now convert it back to Unix-stile (cygpath) 46280 input_path=`$CYGPATH -u "$shortmode_path"` 46281 new_path="$input_path" 46282 fi 46283 fi 46284 46285 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46286 if test "x$test_cygdrive_prefix" = x; then 46287 # As a simple fix, exclude /usr/bin since it's not a real path. 46288 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46289 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46290 # a path prefixed by /cygdrive for fixpath to work. 46291 new_path="$CYGWIN_ROOT_PATH$input_path" 46292 fi 46293 fi 46294 46295 46296 if test "x$path" != "x$new_path"; then 46297 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46298 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46299 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46300 fi 46301 46302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46303 46304 path="$POTENTIAL_FREETYPE_LIB_PATH" 46305 has_colon=`$ECHO $path | $GREP ^.:` 46306 new_path="$path" 46307 if test "x$has_colon" = x; then 46308 # Not in mixed or Windows style, start by that. 46309 new_path=`cmd //c echo $path` 46310 fi 46311 46312 46313 input_path="$new_path" 46314 # Check if we need to convert this using DOS-style short mode. If the path 46315 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46316 # take no chances and rewrite it. 46317 # Note: m4 eats our [], so we need to use [ and ] instead. 46318 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46319 if test "x$has_forbidden_chars" != x; then 46320 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46321 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46322 fi 46323 46324 46325 windows_path="$new_path" 46326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46327 unix_path=`$CYGPATH -u "$windows_path"` 46328 new_path="$unix_path" 46329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46330 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46331 new_path="$unix_path" 46332 fi 46333 46334 if test "x$path" != "x$new_path"; then 46335 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46337 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46338 fi 46339 46340 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46341 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46342 46343 else 46344 # We're on a posix platform. Hooray! :) 46345 path="$POTENTIAL_FREETYPE_LIB_PATH" 46346 has_space=`$ECHO "$path" | $GREP " "` 46347 if test "x$has_space" != x; then 46348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46349 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46350 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46351 fi 46352 46353 # Use eval to expand a potential ~ 46354 eval path="$path" 46355 if test ! -f "$path" && test ! -d "$path"; then 46356 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46357 fi 46358 46359 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46360 fi 46361 46362 46363 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46365 $as_echo_n "checking for freetype includes... " >&6; } 46366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46367 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46368 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46370 $as_echo_n "checking for freetype libraries... " >&6; } 46371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46372 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46373 fi 46374 46375 fi 46376 fi 46377 fi 46378 fi 46379 fi # end check in well-known locations 46380 46381 if test "x$FOUND_FREETYPE" != xyes; then 46382 46383 # Print a helpful message on how to acquire the necessary build dependency. 46384 # freetype is the help tag: freetype, cups, pulse, alsa etc 46385 MISSING_DEPENDENCY=freetype 46386 46387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46388 cygwin_help $MISSING_DEPENDENCY 46389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46390 msys_help $MISSING_DEPENDENCY 46391 else 46392 PKGHANDLER_COMMAND= 46393 46394 case $PKGHANDLER in 46395 apt-get) 46396 apt_help $MISSING_DEPENDENCY ;; 46397 yum) 46398 yum_help $MISSING_DEPENDENCY ;; 46399 port) 46400 port_help $MISSING_DEPENDENCY ;; 46401 pkgutil) 46402 pkgutil_help $MISSING_DEPENDENCY ;; 46403 pkgadd) 46404 pkgadd_help $MISSING_DEPENDENCY ;; 46405 esac 46406 46407 if test "x$PKGHANDLER_COMMAND" != x; then 46408 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46409 fi 46410 fi 46411 46412 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 46413 fi 46414 fi # end user specified settings 46415 46416 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 46417 if test "x$FREETYPE_CFLAGS" = x; then 46418 46419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46420 46421 # Input might be given as Windows format, start by converting to 46422 # unix format. 46423 path="$FREETYPE_INCLUDE_PATH" 46424 new_path=`$CYGPATH -u "$path"` 46425 46426 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46427 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46428 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46429 # "foo.exe" is OK but "foo" is an error. 46430 # 46431 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46432 # It is also a way to make sure we got the proper file name for the real test later on. 46433 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46434 if test "x$test_shortpath" = x; then 46435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46436 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46437 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 46438 fi 46439 46440 # Call helper function which possibly converts this using DOS-style short mode. 46441 # If so, the updated path is stored in $new_path. 46442 46443 input_path="$new_path" 46444 # Check if we need to convert this using DOS-style short mode. If the path 46445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46446 # take no chances and rewrite it. 46447 # Note: m4 eats our [], so we need to use [ and ] instead. 46448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46449 if test "x$has_forbidden_chars" != x; then 46450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46451 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46452 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46453 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46454 # Going to short mode and back again did indeed matter. Since short mode is 46455 # case insensitive, let's make it lowercase to improve readability. 46456 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46457 # Now convert it back to Unix-stile (cygpath) 46458 input_path=`$CYGPATH -u "$shortmode_path"` 46459 new_path="$input_path" 46460 fi 46461 fi 46462 46463 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46464 if test "x$test_cygdrive_prefix" = x; then 46465 # As a simple fix, exclude /usr/bin since it's not a real path. 46466 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46467 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46468 # a path prefixed by /cygdrive for fixpath to work. 46469 new_path="$CYGWIN_ROOT_PATH$input_path" 46470 fi 46471 fi 46472 46473 46474 if test "x$path" != "x$new_path"; then 46475 FREETYPE_INCLUDE_PATH="$new_path" 46476 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46477 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46478 fi 46479 46480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46481 46482 path="$FREETYPE_INCLUDE_PATH" 46483 has_colon=`$ECHO $path | $GREP ^.:` 46484 new_path="$path" 46485 if test "x$has_colon" = x; then 46486 # Not in mixed or Windows style, start by that. 46487 new_path=`cmd //c echo $path` 46488 fi 46489 46490 46491 input_path="$new_path" 46492 # Check if we need to convert this using DOS-style short mode. If the path 46493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46494 # take no chances and rewrite it. 46495 # Note: m4 eats our [], so we need to use [ and ] instead. 46496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46497 if test "x$has_forbidden_chars" != x; then 46498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46499 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46500 fi 46501 46502 46503 windows_path="$new_path" 46504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46505 unix_path=`$CYGPATH -u "$windows_path"` 46506 new_path="$unix_path" 46507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46509 new_path="$unix_path" 46510 fi 46511 46512 if test "x$path" != "x$new_path"; then 46513 FREETYPE_INCLUDE_PATH="$new_path" 46514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46515 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46516 fi 46517 46518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46520 46521 else 46522 # We're on a posix platform. Hooray! :) 46523 path="$FREETYPE_INCLUDE_PATH" 46524 has_space=`$ECHO "$path" | $GREP " "` 46525 if test "x$has_space" != x; then 46526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46527 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46528 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46529 fi 46530 46531 # Use eval to expand a potential ~ 46532 eval path="$path" 46533 if test ! -f "$path" && test ! -d "$path"; then 46534 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46535 fi 46536 46537 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46538 fi 46539 46540 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 46541 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 46542 else 46543 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 46544 fi 46545 fi 46546 46547 if test "x$FREETYPE_LIBS" = x; then 46548 46549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46550 46551 # Input might be given as Windows format, start by converting to 46552 # unix format. 46553 path="$FREETYPE_LIB_PATH" 46554 new_path=`$CYGPATH -u "$path"` 46555 46556 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46557 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46558 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46559 # "foo.exe" is OK but "foo" is an error. 46560 # 46561 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46562 # It is also a way to make sure we got the proper file name for the real test later on. 46563 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46564 if test "x$test_shortpath" = x; then 46565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46566 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46567 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 46568 fi 46569 46570 # Call helper function which possibly converts this using DOS-style short mode. 46571 # If so, the updated path is stored in $new_path. 46572 46573 input_path="$new_path" 46574 # Check if we need to convert this using DOS-style short mode. If the path 46575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46576 # take no chances and rewrite it. 46577 # Note: m4 eats our [], so we need to use [ and ] instead. 46578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46579 if test "x$has_forbidden_chars" != x; then 46580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46581 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46582 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46583 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46584 # Going to short mode and back again did indeed matter. Since short mode is 46585 # case insensitive, let's make it lowercase to improve readability. 46586 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46587 # Now convert it back to Unix-stile (cygpath) 46588 input_path=`$CYGPATH -u "$shortmode_path"` 46589 new_path="$input_path" 46590 fi 46591 fi 46592 46593 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46594 if test "x$test_cygdrive_prefix" = x; then 46595 # As a simple fix, exclude /usr/bin since it's not a real path. 46596 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46597 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46598 # a path prefixed by /cygdrive for fixpath to work. 46599 new_path="$CYGWIN_ROOT_PATH$input_path" 46600 fi 46601 fi 46602 46603 46604 if test "x$path" != "x$new_path"; then 46605 FREETYPE_LIB_PATH="$new_path" 46606 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46607 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46608 fi 46609 46610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46611 46612 path="$FREETYPE_LIB_PATH" 46613 has_colon=`$ECHO $path | $GREP ^.:` 46614 new_path="$path" 46615 if test "x$has_colon" = x; then 46616 # Not in mixed or Windows style, start by that. 46617 new_path=`cmd //c echo $path` 46618 fi 46619 46620 46621 input_path="$new_path" 46622 # Check if we need to convert this using DOS-style short mode. If the path 46623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46624 # take no chances and rewrite it. 46625 # Note: m4 eats our [], so we need to use [ and ] instead. 46626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46627 if test "x$has_forbidden_chars" != x; then 46628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46629 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46630 fi 46631 46632 46633 windows_path="$new_path" 46634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46635 unix_path=`$CYGPATH -u "$windows_path"` 46636 new_path="$unix_path" 46637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46639 new_path="$unix_path" 46640 fi 46641 46642 if test "x$path" != "x$new_path"; then 46643 FREETYPE_LIB_PATH="$new_path" 46644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46645 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46646 fi 46647 46648 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46649 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46650 46651 else 46652 # We're on a posix platform. Hooray! :) 46653 path="$FREETYPE_LIB_PATH" 46654 has_space=`$ECHO "$path" | $GREP " "` 46655 if test "x$has_space" != x; then 46656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46657 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46658 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46659 fi 46660 46661 # Use eval to expand a potential ~ 46662 eval path="$path" 46663 if test ! -f "$path" && test ! -d "$path"; then 46664 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46665 fi 46666 46667 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46668 fi 46669 46670 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46671 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 46672 else 46673 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 46674 fi 46675 fi 46676 46677 # Try to compile it 46678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 46679 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 46680 ac_ext=cpp 46681 ac_cpp='$CXXCPP $CPPFLAGS' 46682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46685 46686 PREV_CXXCFLAGS="$CXXFLAGS" 46687 PREV_LIBS="$LIBS" 46688 PREV_CXX="$CXX" 46689 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 46690 LIBS="$LIBS $FREETYPE_LIBS" 46691 CXX="$FIXPATH $CXX" 46692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46693 /* end confdefs.h. */ 46694 46695 #include<ft2build.h> 46696 #include FT_FREETYPE_H 46697 int main () { 46698 FT_Init_FreeType(NULL); 46699 return 0; 46700 } 46701 46702 _ACEOF 46703 if ac_fn_cxx_try_link "$LINENO"; then : 46704 46705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46706 $as_echo "yes" >&6; } 46707 46708 else 46709 46710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46711 $as_echo "no" >&6; } 46712 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 46713 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 46714 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 46715 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 46716 46717 46718 # Print a helpful message on how to acquire the necessary build dependency. 46719 # freetype is the help tag: freetype, cups, pulse, alsa etc 46720 MISSING_DEPENDENCY=freetype 46721 46722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46723 cygwin_help $MISSING_DEPENDENCY 46724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46725 msys_help $MISSING_DEPENDENCY 46726 else 46727 PKGHANDLER_COMMAND= 46728 46729 case $PKGHANDLER in 46730 apt-get) 46731 apt_help $MISSING_DEPENDENCY ;; 46732 yum) 46733 yum_help $MISSING_DEPENDENCY ;; 46734 port) 46735 port_help $MISSING_DEPENDENCY ;; 46736 pkgutil) 46737 pkgutil_help $MISSING_DEPENDENCY ;; 46738 pkgadd) 46739 pkgadd_help $MISSING_DEPENDENCY ;; 46740 esac 46741 46742 if test "x$PKGHANDLER_COMMAND" != x; then 46743 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46744 fi 46745 fi 46746 46747 46748 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 46749 46750 46751 fi 46752 rm -f core conftest.err conftest.$ac_objext \ 46753 conftest$ac_exeext conftest.$ac_ext 46754 CXXCFLAGS="$PREV_CXXFLAGS" 46755 LIBS="$PREV_LIBS" 46756 CXX="$PREV_CXX" 46757 ac_ext=cpp 46758 ac_cpp='$CXXCPP $CPPFLAGS' 46759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46762 46763 46764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 46765 $as_echo_n "checking if we should bundle freetype... " >&6; } 46766 if test "x$BUNDLE_FREETYPE" = xyes; then 46767 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 46768 fi 46769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 46770 $as_echo "$BUNDLE_FREETYPE" >&6; } 46771 46772 fi # end freetype needed 46773 46774 46775 46776 46777 46778 46779 46780 ############################################################################### 46781 # 46782 # Check for alsa headers and libraries. Used on Linux/GNU systems. 46783 # 46784 46785 # Check whether --with-alsa was given. 46786 if test "${with_alsa+set}" = set; then : 46787 withval=$with_alsa; 46788 fi 46789 46790 46791 # Check whether --with-alsa-include was given. 46792 if test "${with_alsa_include+set}" = set; then : 46793 withval=$with_alsa_include; 46794 fi 46795 46796 46797 # Check whether --with-alsa-lib was given. 46798 if test "${with_alsa_lib+set}" = set; then : 46799 withval=$with_alsa_lib; 46800 fi 46801 46802 46803 if test "x$ALSA_NOT_NEEDED" = xyes; then 46804 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 46805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 46806 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 46807 fi 46808 ALSA_CFLAGS= 46809 ALSA_LIBS= 46810 else 46811 ALSA_FOUND=no 46812 46813 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 46814 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 46815 fi 46816 46817 if test "x${with_alsa}" != x; then 46818 ALSA_LIBS="-L${with_alsa}/lib -lasound" 46819 ALSA_CFLAGS="-I${with_alsa}/include" 46820 ALSA_FOUND=yes 46821 fi 46822 if test "x${with_alsa_include}" != x; then 46823 ALSA_CFLAGS="-I${with_alsa_include}" 46824 ALSA_FOUND=yes 46825 fi 46826 if test "x${with_alsa_lib}" != x; then 46827 ALSA_LIBS="-L${with_alsa_lib} -lasound" 46828 ALSA_FOUND=yes 46829 fi 46830 if test "x$ALSA_FOUND" = xno; then 46831 46832 46833 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 46834 # Source the builddeps file again, to make sure it uses the latest variables! 46835 . $builddepsfile 46836 # Look for a target and build machine specific resource! 46837 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 46838 if test "x$resource" = x; then 46839 # Ok, lets instead look for a target specific resource 46840 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 46841 fi 46842 if test "x$resource" = x; then 46843 # Ok, lets instead look for a build specific resource 46844 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 46845 fi 46846 if test "x$resource" = x; then 46847 # Ok, lets instead look for a generic resource 46848 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 46849 resource=${builddep_alsa} 46850 fi 46851 if test "x$resource" != x; then 46852 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 46853 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 46854 # If the resource in the builddeps.conf file is an existing directory, 46855 # for example /java/linux/cups 46856 if test -d ${resource}; then 46857 depdir=${resource} 46858 else 46859 46860 # alsa is for example mymodule 46861 # $resource is for example libs/general/libmymod_1_2_3.zip 46862 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 46863 # $with_builddeps_dir is for example /localhome/builddeps 46864 # depdir is the name of the variable into which we store the depdir, eg MYMOD 46865 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 46866 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 46867 filename=`basename $resource` 46868 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 46869 filebase=${filename%%.*} 46870 extension=${filename#*.} 46871 installdir=$with_builddeps_dir/$filebase 46872 if test ! -f $installdir/$filename.unpacked; then 46873 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 46874 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 46875 if test ! -d $installdir; then 46876 mkdir -p $installdir 46877 fi 46878 if test ! -d $installdir; then 46879 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 46880 fi 46881 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 46882 touch $tmpfile 46883 if test ! -f $tmpfile; then 46884 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 46885 fi 46886 46887 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 46888 # $tmpfile is the local file name for the downloaded file. 46889 VALID_TOOL=no 46890 if test "x$BDEPS_FTP" = xwget; then 46891 VALID_TOOL=yes 46892 wget -O $tmpfile $with_builddeps_server/$resource 46893 fi 46894 if test "x$BDEPS_FTP" = xlftp; then 46895 VALID_TOOL=yes 46896 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 46897 fi 46898 if test "x$BDEPS_FTP" = xftp; then 46899 VALID_TOOL=yes 46900 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 46901 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 46902 FTPUSERPWD=${FTPSERVER%%@*} 46903 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 46904 FTPUSER=${userpwd%%:*} 46905 FTPPWD=${userpwd#*@} 46906 FTPSERVER=${FTPSERVER#*@} 46907 else 46908 FTPUSER=ftp 46909 FTPPWD=ftp 46910 fi 46911 # the "pass" command does not work on some 46912 # ftp clients (read ftp.exe) but if it works, 46913 # passive mode is better! 46914 ( \ 46915 echo "user $FTPUSER $FTPPWD" ; \ 46916 echo "pass" ; \ 46917 echo "bin" ; \ 46918 echo "get $FTPPATH $tmpfile" ; \ 46919 ) | ftp -in $FTPSERVER 46920 fi 46921 if test "x$VALID_TOOL" != xyes; then 46922 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 46923 fi 46924 46925 mv $tmpfile $installdir/$filename 46926 if test ! -s $installdir/$filename; then 46927 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 46928 fi 46929 case "$extension" in 46930 zip) echo "Unzipping $installdir/$filename..." 46931 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 46932 ;; 46933 tar.gz) echo "Untaring $installdir/$filename..." 46934 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46935 ;; 46936 tgz) echo "Untaring $installdir/$filename..." 46937 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46938 ;; 46939 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 46940 ;; 46941 esac 46942 fi 46943 if test -f $installdir/$filename.unpacked; then 46944 depdir=$installdir 46945 fi 46946 46947 fi 46948 # Source the builddeps file again, because in the previous command, the depdir 46949 # was updated to point at the current build dependency install directory. 46950 . $builddepsfile 46951 # Now extract variables from the builddeps.conf files. 46952 theroot=${builddep_alsa_ROOT} 46953 thecflags=${builddep_alsa_CFLAGS} 46954 thelibs=${builddep_alsa_LIBS} 46955 if test "x$depdir" = x; then 46956 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 46957 fi 46958 ALSA=$depdir 46959 if test "x$theroot" != x; then 46960 ALSA="$theroot" 46961 fi 46962 if test "x$thecflags" != x; then 46963 ALSA_CFLAGS="$thecflags" 46964 fi 46965 if test "x$thelibs" != x; then 46966 ALSA_LIBS="$thelibs" 46967 fi 46968 ALSA_FOUND=yes 46969 else ALSA_FOUND=no 46970 46971 fi 46972 else ALSA_FOUND=no 46973 46974 fi 46975 46976 fi 46977 # Do not try pkg-config if we have a sysroot set. 46978 if test "x$SYSROOT" = x; then 46979 if test "x$ALSA_FOUND" = xno; then 46980 46981 pkg_failed=no 46982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 46983 $as_echo_n "checking for ALSA... " >&6; } 46984 46985 if test -n "$ALSA_CFLAGS"; then 46986 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 46987 elif test -n "$PKG_CONFIG"; then 46988 if test -n "$PKG_CONFIG" && \ 46989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 46990 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 46991 ac_status=$? 46992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46993 test $ac_status = 0; }; then 46994 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 46995 else 46996 pkg_failed=yes 46997 fi 46998 else 46999 pkg_failed=untried 47000 fi 47001 if test -n "$ALSA_LIBS"; then 47002 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 47003 elif test -n "$PKG_CONFIG"; then 47004 if test -n "$PKG_CONFIG" && \ 47005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 47006 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 47007 ac_status=$? 47008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47009 test $ac_status = 0; }; then 47010 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 47011 else 47012 pkg_failed=yes 47013 fi 47014 else 47015 pkg_failed=untried 47016 fi 47017 47018 47019 47020 if test $pkg_failed = yes; then 47021 47022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47023 _pkg_short_errors_supported=yes 47024 else 47025 _pkg_short_errors_supported=no 47026 fi 47027 if test $_pkg_short_errors_supported = yes; then 47028 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 47029 else 47030 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 47031 fi 47032 # Put the nasty error message in config.log where it belongs 47033 echo "$ALSA_PKG_ERRORS" >&5 47034 47035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47036 $as_echo "no" >&6; } 47037 ALSA_FOUND=no 47038 elif test $pkg_failed = untried; then 47039 ALSA_FOUND=no 47040 else 47041 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 47042 ALSA_LIBS=$pkg_cv_ALSA_LIBS 47043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47044 $as_echo "yes" >&6; } 47045 ALSA_FOUND=yes 47046 fi 47047 fi 47048 fi 47049 if test "x$ALSA_FOUND" = xno; then 47050 for ac_header in alsa/asoundlib.h 47051 do : 47052 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 47053 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 47054 cat >>confdefs.h <<_ACEOF 47055 #define HAVE_ALSA_ASOUNDLIB_H 1 47056 _ACEOF 47057 47058 ALSA_FOUND=yes 47059 ALSA_CFLAGS=-Iignoreme 47060 ALSA_LIBS=-lasound 47061 DEFAULT_ALSA=yes 47062 47063 else 47064 ALSA_FOUND=no 47065 fi 47066 47067 done 47068 47069 fi 47070 if test "x$ALSA_FOUND" = xno; then 47071 47072 # Print a helpful message on how to acquire the necessary build dependency. 47073 # alsa is the help tag: freetype, cups, pulse, alsa etc 47074 MISSING_DEPENDENCY=alsa 47075 47076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47077 cygwin_help $MISSING_DEPENDENCY 47078 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47079 msys_help $MISSING_DEPENDENCY 47080 else 47081 PKGHANDLER_COMMAND= 47082 47083 case $PKGHANDLER in 47084 apt-get) 47085 apt_help $MISSING_DEPENDENCY ;; 47086 yum) 47087 yum_help $MISSING_DEPENDENCY ;; 47088 port) 47089 port_help $MISSING_DEPENDENCY ;; 47090 pkgutil) 47091 pkgutil_help $MISSING_DEPENDENCY ;; 47092 pkgadd) 47093 pkgadd_help $MISSING_DEPENDENCY ;; 47094 esac 47095 47096 if test "x$PKGHANDLER_COMMAND" != x; then 47097 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47098 fi 47099 fi 47100 47101 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 47102 fi 47103 fi 47104 47105 47106 47107 47108 47109 47110 ############################################################################### 47111 # 47112 # Check for the jpeg library 47113 # 47114 47115 USE_EXTERNAL_LIBJPEG=true 47116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 47117 $as_echo_n "checking for main in -ljpeg... " >&6; } 47118 if ${ac_cv_lib_jpeg_main+:} false; then : 47119 $as_echo_n "(cached) " >&6 47120 else 47121 ac_check_lib_save_LIBS=$LIBS 47122 LIBS="-ljpeg $LIBS" 47123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47124 /* end confdefs.h. */ 47125 47126 47127 int 47128 main () 47129 { 47130 return main (); 47131 ; 47132 return 0; 47133 } 47134 _ACEOF 47135 if ac_fn_cxx_try_link "$LINENO"; then : 47136 ac_cv_lib_jpeg_main=yes 47137 else 47138 ac_cv_lib_jpeg_main=no 47139 fi 47140 rm -f core conftest.err conftest.$ac_objext \ 47141 conftest$ac_exeext conftest.$ac_ext 47142 LIBS=$ac_check_lib_save_LIBS 47143 fi 47144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 47145 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 47146 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 47147 cat >>confdefs.h <<_ACEOF 47148 #define HAVE_LIBJPEG 1 47149 _ACEOF 47150 47151 LIBS="-ljpeg $LIBS" 47152 47153 else 47154 USE_EXTERNAL_LIBJPEG=false 47155 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 47156 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 47157 47158 fi 47159 47160 47161 47162 ############################################################################### 47163 # 47164 # Check for the gif library 47165 # 47166 47167 47168 # Check whether --with-giflib was given. 47169 if test "${with_giflib+set}" = set; then : 47170 withval=$with_giflib; 47171 fi 47172 47173 47174 47175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 47176 $as_echo_n "checking for which giflib to use... " >&6; } 47177 47178 # default is bundled 47179 DEFAULT_GIFLIB=bundled 47180 47181 # 47182 # if user didn't specify, use DEFAULT_GIFLIB 47183 # 47184 if test "x${with_giflib}" = "x"; then 47185 with_giflib=${DEFAULT_GIFLIB} 47186 fi 47187 47188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 47189 $as_echo "${with_giflib}" >&6; } 47190 47191 if test "x${with_giflib}" = "xbundled"; then 47192 USE_EXTERNAL_LIBGIF=false 47193 elif test "x${with_giflib}" = "xsystem"; then 47194 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 47195 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 47196 47197 else 47198 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 47199 fi 47200 47201 47202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 47203 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 47204 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 47205 $as_echo_n "(cached) " >&6 47206 else 47207 ac_check_lib_save_LIBS=$LIBS 47208 LIBS="-lgif $LIBS" 47209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47210 /* end confdefs.h. */ 47211 47212 /* Override any GCC internal prototype to avoid an error. 47213 Use char because int might match the return type of a GCC 47214 builtin and then its argument prototype would still apply. */ 47215 #ifdef __cplusplus 47216 extern "C" 47217 #endif 47218 char DGifGetCode (); 47219 int 47220 main () 47221 { 47222 return DGifGetCode (); 47223 ; 47224 return 0; 47225 } 47226 _ACEOF 47227 if ac_fn_cxx_try_link "$LINENO"; then : 47228 ac_cv_lib_gif_DGifGetCode=yes 47229 else 47230 ac_cv_lib_gif_DGifGetCode=no 47231 fi 47232 rm -f core conftest.err conftest.$ac_objext \ 47233 conftest$ac_exeext conftest.$ac_ext 47234 LIBS=$ac_check_lib_save_LIBS 47235 fi 47236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 47237 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 47238 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 47239 cat >>confdefs.h <<_ACEOF 47240 #define HAVE_LIBGIF 1 47241 _ACEOF 47242 47243 LIBS="-lgif $LIBS" 47244 47245 else 47246 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 47247 fi 47248 47249 47250 USE_EXTERNAL_LIBGIF=true 47251 else 47252 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 47253 fi 47254 47255 47256 ############################################################################### 47257 # 47258 # Check for the png library 47259 # 47260 47261 47262 # Check whether --with-libpng was given. 47263 if test "${with_libpng+set}" = set; then : 47264 withval=$with_libpng; 47265 fi 47266 47267 47268 47269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 47270 $as_echo_n "checking for which libpng to use... " >&6; } 47271 47272 # default is bundled 47273 DEFAULT_LIBPNG=bundled 47274 47275 # 47276 # if user didn't specify, use DEFAULT_LIBPNG 47277 # 47278 if test "x${with_libpng}" = "x"; then 47279 with_libpng=${DEFAULT_LIBPNG} 47280 fi 47281 47282 if test "x${with_libpng}" = "xbundled"; then 47283 USE_EXTERNAL_LIBPNG=false 47284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 47285 $as_echo "bundled" >&6; } 47286 elif test "x${with_libpng}" = "xsystem"; then 47287 47288 pkg_failed=no 47289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 47290 $as_echo_n "checking for PNG... " >&6; } 47291 47292 if test -n "$PNG_CFLAGS"; then 47293 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 47294 elif test -n "$PKG_CONFIG"; then 47295 if test -n "$PKG_CONFIG" && \ 47296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 47297 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 47298 ac_status=$? 47299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47300 test $ac_status = 0; }; then 47301 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 47302 else 47303 pkg_failed=yes 47304 fi 47305 else 47306 pkg_failed=untried 47307 fi 47308 if test -n "$PNG_LIBS"; then 47309 pkg_cv_PNG_LIBS="$PNG_LIBS" 47310 elif test -n "$PKG_CONFIG"; then 47311 if test -n "$PKG_CONFIG" && \ 47312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 47313 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 47314 ac_status=$? 47315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47316 test $ac_status = 0; }; then 47317 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 47318 else 47319 pkg_failed=yes 47320 fi 47321 else 47322 pkg_failed=untried 47323 fi 47324 47325 47326 47327 if test $pkg_failed = yes; then 47328 47329 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47330 _pkg_short_errors_supported=yes 47331 else 47332 _pkg_short_errors_supported=no 47333 fi 47334 if test $_pkg_short_errors_supported = yes; then 47335 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 47336 else 47337 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 47338 fi 47339 # Put the nasty error message in config.log where it belongs 47340 echo "$PNG_PKG_ERRORS" >&5 47341 47342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47343 $as_echo "no" >&6; } 47344 LIBPNG_FOUND=no 47345 elif test $pkg_failed = untried; then 47346 LIBPNG_FOUND=no 47347 else 47348 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 47349 PNG_LIBS=$pkg_cv_PNG_LIBS 47350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47351 $as_echo "yes" >&6; } 47352 LIBPNG_FOUND=yes 47353 fi 47354 if test "x${LIBPNG_FOUND}" = "xyes"; then 47355 USE_EXTERNAL_LIBPNG=true 47356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47357 $as_echo "system" >&6; } 47358 else 47359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47360 $as_echo "system not found" >&6; } 47361 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 47362 fi 47363 else 47364 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 47365 fi 47366 47367 47368 ############################################################################### 47369 # 47370 # Check for the zlib library 47371 # 47372 47373 47374 # Check whether --with-zlib was given. 47375 if test "${with_zlib+set}" = set; then : 47376 withval=$with_zlib; 47377 fi 47378 47379 47380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 47381 $as_echo_n "checking for compress in -lz... " >&6; } 47382 if ${ac_cv_lib_z_compress+:} false; then : 47383 $as_echo_n "(cached) " >&6 47384 else 47385 ac_check_lib_save_LIBS=$LIBS 47386 LIBS="-lz $LIBS" 47387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47388 /* end confdefs.h. */ 47389 47390 /* Override any GCC internal prototype to avoid an error. 47391 Use char because int might match the return type of a GCC 47392 builtin and then its argument prototype would still apply. */ 47393 #ifdef __cplusplus 47394 extern "C" 47395 #endif 47396 char compress (); 47397 int 47398 main () 47399 { 47400 return compress (); 47401 ; 47402 return 0; 47403 } 47404 _ACEOF 47405 if ac_fn_cxx_try_link "$LINENO"; then : 47406 ac_cv_lib_z_compress=yes 47407 else 47408 ac_cv_lib_z_compress=no 47409 fi 47410 rm -f core conftest.err conftest.$ac_objext \ 47411 conftest$ac_exeext conftest.$ac_ext 47412 LIBS=$ac_check_lib_save_LIBS 47413 fi 47414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 47415 $as_echo "$ac_cv_lib_z_compress" >&6; } 47416 if test "x$ac_cv_lib_z_compress" = xyes; then : 47417 ZLIB_FOUND=yes 47418 else 47419 ZLIB_FOUND=no 47420 fi 47421 47422 47423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 47424 $as_echo_n "checking for which zlib to use... " >&6; } 47425 47426 DEFAULT_ZLIB=bundled 47427 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47428 # 47429 # On macosx default is system...on others default is 47430 # 47431 DEFAULT_ZLIB=system 47432 fi 47433 47434 if test "x${ZLIB_FOUND}" != "xyes"; then 47435 # 47436 # If we don't find any system...set default to bundled 47437 # 47438 DEFAULT_ZLIB=bundled 47439 fi 47440 47441 # 47442 # If user didn't specify, use DEFAULT_ZLIB 47443 # 47444 if test "x${with_zlib}" = "x"; then 47445 with_zlib=${DEFAULT_ZLIB} 47446 fi 47447 47448 if test "x${with_zlib}" = "xbundled"; then 47449 USE_EXTERNAL_LIBZ=false 47450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 47451 $as_echo "bundled" >&6; } 47452 elif test "x${with_zlib}" = "xsystem"; then 47453 if test "x${ZLIB_FOUND}" = "xyes"; then 47454 USE_EXTERNAL_LIBZ=true 47455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47456 $as_echo "system" >&6; } 47457 else 47458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47459 $as_echo "system not found" >&6; } 47460 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 47461 fi 47462 else 47463 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 47464 fi 47465 47466 47467 47468 ############################################################################### 47469 LIBZIP_CAN_USE_MMAP=true 47470 47471 47472 47473 ############################################################################### 47474 # 47475 # Check if altzone exists in time.h 47476 # 47477 47478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47479 /* end confdefs.h. */ 47480 #include <time.h> 47481 int 47482 main () 47483 { 47484 return (int)altzone; 47485 ; 47486 return 0; 47487 } 47488 _ACEOF 47489 if ac_fn_cxx_try_link "$LINENO"; then : 47490 has_altzone=yes 47491 else 47492 has_altzone=no 47493 fi 47494 rm -f core conftest.err conftest.$ac_objext \ 47495 conftest$ac_exeext conftest.$ac_ext 47496 if test "x$has_altzone" = xyes; then 47497 47498 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 47499 47500 fi 47501 47502 ############################################################################### 47503 # 47504 # Check the maths library 47505 # 47506 47507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 47508 $as_echo_n "checking for cos in -lm... " >&6; } 47509 if ${ac_cv_lib_m_cos+:} false; then : 47510 $as_echo_n "(cached) " >&6 47511 else 47512 ac_check_lib_save_LIBS=$LIBS 47513 LIBS="-lm $LIBS" 47514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47515 /* end confdefs.h. */ 47516 47517 /* Override any GCC internal prototype to avoid an error. 47518 Use char because int might match the return type of a GCC 47519 builtin and then its argument prototype would still apply. */ 47520 #ifdef __cplusplus 47521 extern "C" 47522 #endif 47523 char cos (); 47524 int 47525 main () 47526 { 47527 return cos (); 47528 ; 47529 return 0; 47530 } 47531 _ACEOF 47532 if ac_fn_cxx_try_link "$LINENO"; then : 47533 ac_cv_lib_m_cos=yes 47534 else 47535 ac_cv_lib_m_cos=no 47536 fi 47537 rm -f core conftest.err conftest.$ac_objext \ 47538 conftest$ac_exeext conftest.$ac_ext 47539 LIBS=$ac_check_lib_save_LIBS 47540 fi 47541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 47542 $as_echo "$ac_cv_lib_m_cos" >&6; } 47543 if test "x$ac_cv_lib_m_cos" = xyes; then : 47544 cat >>confdefs.h <<_ACEOF 47545 #define HAVE_LIBM 1 47546 _ACEOF 47547 47548 LIBS="-lm $LIBS" 47549 47550 else 47551 47552 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 47553 $as_echo "$as_me: Maths library was not found" >&6;} 47554 47555 47556 fi 47557 47558 47559 47560 ############################################################################### 47561 # 47562 # Check for libdl.so 47563 47564 save_LIBS="$LIBS" 47565 LIBS="" 47566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 47567 $as_echo_n "checking for dlopen in -ldl... " >&6; } 47568 if ${ac_cv_lib_dl_dlopen+:} false; then : 47569 $as_echo_n "(cached) " >&6 47570 else 47571 ac_check_lib_save_LIBS=$LIBS 47572 LIBS="-ldl $LIBS" 47573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47574 /* end confdefs.h. */ 47575 47576 /* Override any GCC internal prototype to avoid an error. 47577 Use char because int might match the return type of a GCC 47578 builtin and then its argument prototype would still apply. */ 47579 #ifdef __cplusplus 47580 extern "C" 47581 #endif 47582 char dlopen (); 47583 int 47584 main () 47585 { 47586 return dlopen (); 47587 ; 47588 return 0; 47589 } 47590 _ACEOF 47591 if ac_fn_cxx_try_link "$LINENO"; then : 47592 ac_cv_lib_dl_dlopen=yes 47593 else 47594 ac_cv_lib_dl_dlopen=no 47595 fi 47596 rm -f core conftest.err conftest.$ac_objext \ 47597 conftest$ac_exeext conftest.$ac_ext 47598 LIBS=$ac_check_lib_save_LIBS 47599 fi 47600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 47601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 47602 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 47603 cat >>confdefs.h <<_ACEOF 47604 #define HAVE_LIBDL 1 47605 _ACEOF 47606 47607 LIBS="-ldl $LIBS" 47608 47609 fi 47610 47611 LIBDL="$LIBS" 47612 47613 LIBS="$save_LIBS" 47614 47615 47616 ############################################################################### 47617 # 47618 # statically link libstdc++ before C++ ABI is stablized on Linux unless 47619 # dynamic build is configured on command line. 47620 # 47621 47622 # Check whether --with-stdc++lib was given. 47623 if test "${with_stdc__lib+set}" = set; then : 47624 withval=$with_stdc__lib; 47625 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 47626 && test "x$with_stdc__lib" != xdefault; then 47627 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 47628 fi 47629 47630 else 47631 with_stdc__lib=default 47632 47633 fi 47634 47635 47636 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47637 # Test if -lstdc++ works. 47638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 47639 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 47640 ac_ext=cpp 47641 ac_cpp='$CXXCPP $CPPFLAGS' 47642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47645 47646 OLD_CXXFLAGS="$CXXFLAGS" 47647 CXXFLAGS="$CXXFLAGS -lstdc++" 47648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47649 /* end confdefs.h. */ 47650 47651 int 47652 main () 47653 { 47654 return 0; 47655 ; 47656 return 0; 47657 } 47658 _ACEOF 47659 if ac_fn_cxx_try_link "$LINENO"; then : 47660 has_dynamic_libstdcxx=yes 47661 else 47662 has_dynamic_libstdcxx=no 47663 fi 47664 rm -f core conftest.err conftest.$ac_objext \ 47665 conftest$ac_exeext conftest.$ac_ext 47666 CXXFLAGS="$OLD_CXXFLAGS" 47667 ac_ext=cpp 47668 ac_cpp='$CXXCPP $CPPFLAGS' 47669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47672 47673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 47674 $as_echo "$has_dynamic_libstdcxx" >&6; } 47675 47676 # Test if stdc++ can be linked statically. 47677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 47678 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 47679 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 47680 ac_ext=cpp 47681 ac_cpp='$CXXCPP $CPPFLAGS' 47682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47685 47686 OLD_LIBS="$LIBS" 47687 OLD_CXX="$CXX" 47688 LIBS="$STATIC_STDCXX_FLAGS" 47689 CXX="$CC" 47690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47691 /* end confdefs.h. */ 47692 47693 int 47694 main () 47695 { 47696 return 0; 47697 ; 47698 return 0; 47699 } 47700 _ACEOF 47701 if ac_fn_cxx_try_link "$LINENO"; then : 47702 has_static_libstdcxx=yes 47703 else 47704 has_static_libstdcxx=no 47705 fi 47706 rm -f core conftest.err conftest.$ac_objext \ 47707 conftest$ac_exeext conftest.$ac_ext 47708 LIBS="$OLD_LIBS" 47709 CXX="$OLD_CXX" 47710 ac_ext=cpp 47711 ac_cpp='$CXXCPP $CPPFLAGS' 47712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47715 47716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 47717 $as_echo "$has_static_libstdcxx" >&6; } 47718 47719 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 47720 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 47721 fi 47722 47723 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 47724 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 47725 fi 47726 47727 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 47728 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 47729 fi 47730 47731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 47732 $as_echo_n "checking how to link with libstdc++... " >&6; } 47733 # If dynamic was requested, it's available since it would fail above otherwise. 47734 # If dynamic wasn't requested, go with static unless it isn't available. 47735 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47736 LIBCXX="$LIBCXX -lstdc++" 47737 LDCXX="$CXX" 47738 STATIC_CXX_SETTING="STATIC_CXX=false" 47739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 47740 $as_echo "dynamic" >&6; } 47741 else 47742 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 47743 LDCXX="$CC" 47744 STATIC_CXX_SETTING="STATIC_CXX=true" 47745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 47746 $as_echo "static" >&6; } 47747 fi 47748 fi 47749 47750 47751 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47752 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 47753 47754 pkg_failed=no 47755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 47756 $as_echo_n "checking for LIBFFI... " >&6; } 47757 47758 if test -n "$LIBFFI_CFLAGS"; then 47759 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 47760 elif test -n "$PKG_CONFIG"; then 47761 if test -n "$PKG_CONFIG" && \ 47762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47763 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47764 ac_status=$? 47765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47766 test $ac_status = 0; }; then 47767 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 47768 else 47769 pkg_failed=yes 47770 fi 47771 else 47772 pkg_failed=untried 47773 fi 47774 if test -n "$LIBFFI_LIBS"; then 47775 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 47776 elif test -n "$PKG_CONFIG"; then 47777 if test -n "$PKG_CONFIG" && \ 47778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47779 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47780 ac_status=$? 47781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47782 test $ac_status = 0; }; then 47783 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 47784 else 47785 pkg_failed=yes 47786 fi 47787 else 47788 pkg_failed=untried 47789 fi 47790 47791 47792 47793 if test $pkg_failed = yes; then 47794 47795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47796 _pkg_short_errors_supported=yes 47797 else 47798 _pkg_short_errors_supported=no 47799 fi 47800 if test $_pkg_short_errors_supported = yes; then 47801 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 47802 else 47803 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 47804 fi 47805 # Put the nasty error message in config.log where it belongs 47806 echo "$LIBFFI_PKG_ERRORS" >&5 47807 47808 as_fn_error $? "Package requirements (libffi) were not met: 47809 47810 $LIBFFI_PKG_ERRORS 47811 47812 Consider adjusting the PKG_CONFIG_PATH environment variable if you 47813 installed software in a non-standard prefix. 47814 47815 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47816 and LIBFFI_LIBS to avoid the need to call pkg-config. 47817 See the pkg-config man page for more details. 47818 " "$LINENO" 5 47819 elif test $pkg_failed = untried; then 47820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 47822 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 47823 is in your PATH or set the PKG_CONFIG environment variable to the full 47824 path to pkg-config. 47825 47826 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47827 and LIBFFI_LIBS to avoid the need to call pkg-config. 47828 See the pkg-config man page for more details. 47829 47830 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 47831 See \`config.log' for more details" "$LINENO" 5; } 47832 else 47833 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 47834 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 47835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47836 $as_echo "yes" >&6; } 47837 : 47838 fi 47839 47840 fi 47841 47842 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47843 # Extract the first word of "llvm-config", so it can be a program name with args. 47844 set dummy llvm-config; ac_word=$2 47845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47846 $as_echo_n "checking for $ac_word... " >&6; } 47847 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 47848 $as_echo_n "(cached) " >&6 47849 else 47850 if test -n "$LLVM_CONFIG"; then 47851 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 47852 else 47853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47854 for as_dir in $PATH 47855 do 47856 IFS=$as_save_IFS 47857 test -z "$as_dir" && as_dir=. 47858 for ac_exec_ext in '' $ac_executable_extensions; do 47859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47860 ac_cv_prog_LLVM_CONFIG="llvm-config" 47861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47862 break 2 47863 fi 47864 done 47865 done 47866 IFS=$as_save_IFS 47867 47868 fi 47869 fi 47870 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 47871 if test -n "$LLVM_CONFIG"; then 47872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 47873 $as_echo "$LLVM_CONFIG" >&6; } 47874 else 47875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47876 $as_echo "no" >&6; } 47877 fi 47878 47879 47880 47881 if test "x$LLVM_CONFIG" != xllvm-config; then 47882 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 47883 fi 47884 47885 llvm_components="jit mcjit engine nativecodegen native" 47886 unset LLVM_CFLAGS 47887 for flag in $("$LLVM_CONFIG" --cxxflags); do 47888 if echo "${flag}" | grep -q '^-[ID]'; then 47889 if test "${flag}" != "-D_DEBUG" ; then 47890 if test "${LLVM_CFLAGS}" != "" ; then 47891 LLVM_CFLAGS="${LLVM_CFLAGS} " 47892 fi 47893 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 47894 fi 47895 fi 47896 done 47897 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 47898 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 47899 47900 unset LLVM_LDFLAGS 47901 for flag in $("${LLVM_CONFIG}" --ldflags); do 47902 if echo "${flag}" | grep -q '^-L'; then 47903 if test "${LLVM_LDFLAGS}" != ""; then 47904 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 47905 fi 47906 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 47907 fi 47908 done 47909 47910 unset LLVM_LIBS 47911 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 47912 if echo "${flag}" | grep -q '^-l'; then 47913 if test "${LLVM_LIBS}" != ""; then 47914 LLVM_LIBS="${LLVM_LIBS} " 47915 fi 47916 LLVM_LIBS="${LLVM_LIBS}${flag}" 47917 fi 47918 done 47919 47920 47921 47922 47923 fi 47924 47925 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 47926 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 47927 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 47928 fi 47929 47930 # TODO better (platform agnostic) test 47931 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 47932 LIBCXX="-lstdc++" 47933 fi 47934 47935 47936 47937 47938 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 47939 47940 47941 # Check whether --with-msvcr-dll was given. 47942 if test "${with_msvcr_dll+set}" = set; then : 47943 withval=$with_msvcr_dll; 47944 fi 47945 47946 47947 if test "x$with_msvcr_dll" != x; then 47948 # If given explicitely by user, do not probe. If not present, fail directly. 47949 47950 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 47951 METHOD="--with-msvcr-dll" 47952 if test -e "$POSSIBLE_MSVCR_DLL"; then 47953 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47954 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47955 47956 # Need to check if the found msvcr is correct architecture 47957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47958 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47959 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47960 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47961 CORRECT_MSVCR_ARCH=386 47962 else 47963 CORRECT_MSVCR_ARCH=x86-64 47964 fi 47965 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47967 $as_echo "ok" >&6; } 47968 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47970 $as_echo_n "checking for msvcr100.dll... " >&6; } 47971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47972 $as_echo "$MSVCR_DLL" >&6; } 47973 else 47974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47975 $as_echo "incorrect, ignoring" >&6; } 47976 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47977 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47978 fi 47979 fi 47980 47981 if test "x$MSVCR_DLL" = x; then 47982 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 47983 fi 47984 fi 47985 47986 if test "x$MSVCR_DLL" = x; then 47987 # Probe: Using well-known location from Visual Studio 10.0 47988 if test "x$VCINSTALLDIR" != x; then 47989 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 47990 47991 windows_path="$CYGWIN_VC_INSTALL_DIR" 47992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47993 unix_path=`$CYGPATH -u "$windows_path"` 47994 CYGWIN_VC_INSTALL_DIR="$unix_path" 47995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47997 CYGWIN_VC_INSTALL_DIR="$unix_path" 47998 fi 47999 48000 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 48001 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 48002 else 48003 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 48004 fi 48005 48006 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48007 METHOD="well-known location in VCINSTALLDIR" 48008 if test -e "$POSSIBLE_MSVCR_DLL"; then 48009 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 48010 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 48011 48012 # Need to check if the found msvcr is correct architecture 48013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 48014 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 48015 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 48016 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48017 CORRECT_MSVCR_ARCH=386 48018 else 48019 CORRECT_MSVCR_ARCH=x86-64 48020 fi 48021 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 48022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48023 $as_echo "ok" >&6; } 48024 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48026 $as_echo_n "checking for msvcr100.dll... " >&6; } 48027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 48028 $as_echo "$MSVCR_DLL" >&6; } 48029 else 48030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48031 $as_echo "incorrect, ignoring" >&6; } 48032 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 48033 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 48034 fi 48035 fi 48036 48037 fi 48038 fi 48039 48040 if test "x$MSVCR_DLL" = x; then 48041 # Probe: Check in the Boot JDK directory. 48042 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 48043 48044 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48045 METHOD="well-known location in Boot JDK" 48046 if test -e "$POSSIBLE_MSVCR_DLL"; then 48047 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 48048 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 48049 48050 # Need to check if the found msvcr is correct architecture 48051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 48052 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 48053 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 48054 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48055 CORRECT_MSVCR_ARCH=386 48056 else 48057 CORRECT_MSVCR_ARCH=x86-64 48058 fi 48059 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 48060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48061 $as_echo "ok" >&6; } 48062 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48064 $as_echo_n "checking for msvcr100.dll... " >&6; } 48065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 48066 $as_echo "$MSVCR_DLL" >&6; } 48067 else 48068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48069 $as_echo "incorrect, ignoring" >&6; } 48070 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 48071 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 48072 fi 48073 fi 48074 48075 fi 48076 48077 if test "x$MSVCR_DLL" = x; then 48078 # Probe: Look in the Windows system32 directory 48079 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 48080 48081 windows_path="$CYGWIN_SYSTEMROOT" 48082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48083 unix_path=`$CYGPATH -u "$windows_path"` 48084 CYGWIN_SYSTEMROOT="$unix_path" 48085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48087 CYGWIN_SYSTEMROOT="$unix_path" 48088 fi 48089 48090 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 48091 48092 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48093 METHOD="well-known location in SYSTEMROOT" 48094 if test -e "$POSSIBLE_MSVCR_DLL"; then 48095 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 48096 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 48097 48098 # Need to check if the found msvcr is correct architecture 48099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 48100 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 48101 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 48102 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48103 CORRECT_MSVCR_ARCH=386 48104 else 48105 CORRECT_MSVCR_ARCH=x86-64 48106 fi 48107 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 48108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48109 $as_echo "ok" >&6; } 48110 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48112 $as_echo_n "checking for msvcr100.dll... " >&6; } 48113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 48114 $as_echo "$MSVCR_DLL" >&6; } 48115 else 48116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48117 $as_echo "incorrect, ignoring" >&6; } 48118 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 48119 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 48120 fi 48121 fi 48122 48123 fi 48124 48125 if test "x$MSVCR_DLL" = x; then 48126 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 48127 if test "x$VS100COMNTOOLS" != x; then 48128 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 48129 48130 windows_path="$CYGWIN_VS_TOOLS_DIR" 48131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48132 unix_path=`$CYGPATH -u "$windows_path"` 48133 CYGWIN_VS_TOOLS_DIR="$unix_path" 48134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48135 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48136 CYGWIN_VS_TOOLS_DIR="$unix_path" 48137 fi 48138 48139 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 48140 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 48141 else 48142 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 48143 fi 48144 48145 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48146 METHOD="search of VS100COMNTOOLS" 48147 if test -e "$POSSIBLE_MSVCR_DLL"; then 48148 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 48149 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 48150 48151 # Need to check if the found msvcr is correct architecture 48152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 48153 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 48154 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 48155 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48156 CORRECT_MSVCR_ARCH=386 48157 else 48158 CORRECT_MSVCR_ARCH=x86-64 48159 fi 48160 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 48161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48162 $as_echo "ok" >&6; } 48163 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48165 $as_echo_n "checking for msvcr100.dll... " >&6; } 48166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 48167 $as_echo "$MSVCR_DLL" >&6; } 48168 else 48169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48170 $as_echo "incorrect, ignoring" >&6; } 48171 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 48172 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 48173 fi 48174 fi 48175 48176 fi 48177 fi 48178 48179 if test "x$MSVCR_DLL" = x; then 48180 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 48181 # (This was the original behaviour; kept since it might turn up something) 48182 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 48183 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 48184 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 48185 else 48186 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 48187 if test "x$POSSIBLE_MSVCR_DLL" = x; then 48188 # We're grasping at straws now... 48189 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 48190 fi 48191 fi 48192 48193 48194 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48195 METHOD="search of VCINSTALLDIR" 48196 if test -e "$POSSIBLE_MSVCR_DLL"; then 48197 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 48198 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 48199 48200 # Need to check if the found msvcr is correct architecture 48201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 48202 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 48203 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 48204 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48205 CORRECT_MSVCR_ARCH=386 48206 else 48207 CORRECT_MSVCR_ARCH=x86-64 48208 fi 48209 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 48210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48211 $as_echo "ok" >&6; } 48212 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48214 $as_echo_n "checking for msvcr100.dll... " >&6; } 48215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 48216 $as_echo "$MSVCR_DLL" >&6; } 48217 else 48218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48219 $as_echo "incorrect, ignoring" >&6; } 48220 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 48221 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 48222 fi 48223 fi 48224 48225 fi 48226 fi 48227 48228 if test "x$MSVCR_DLL" = x; then 48229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48230 $as_echo_n "checking for msvcr100.dll... " >&6; } 48231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48232 $as_echo "no" >&6; } 48233 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 48234 fi 48235 48236 48237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48238 48239 # Input might be given as Windows format, start by converting to 48240 # unix format. 48241 path="$MSVCR_DLL" 48242 new_path=`$CYGPATH -u "$path"` 48243 48244 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48245 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48246 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48247 # "foo.exe" is OK but "foo" is an error. 48248 # 48249 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48250 # It is also a way to make sure we got the proper file name for the real test later on. 48251 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48252 if test "x$test_shortpath" = x; then 48253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 48254 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 48255 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 48256 fi 48257 48258 # Call helper function which possibly converts this using DOS-style short mode. 48259 # If so, the updated path is stored in $new_path. 48260 48261 input_path="$new_path" 48262 # Check if we need to convert this using DOS-style short mode. If the path 48263 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48264 # take no chances and rewrite it. 48265 # Note: m4 eats our [], so we need to use [ and ] instead. 48266 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48267 if test "x$has_forbidden_chars" != x; then 48268 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48269 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48270 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48271 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48272 # Going to short mode and back again did indeed matter. Since short mode is 48273 # case insensitive, let's make it lowercase to improve readability. 48274 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48275 # Now convert it back to Unix-stile (cygpath) 48276 input_path=`$CYGPATH -u "$shortmode_path"` 48277 new_path="$input_path" 48278 fi 48279 fi 48280 48281 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48282 if test "x$test_cygdrive_prefix" = x; then 48283 # As a simple fix, exclude /usr/bin since it's not a real path. 48284 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48285 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48286 # a path prefixed by /cygdrive for fixpath to work. 48287 new_path="$CYGWIN_ROOT_PATH$input_path" 48288 fi 48289 fi 48290 48291 48292 if test "x$path" != "x$new_path"; then 48293 MSVCR_DLL="$new_path" 48294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 48295 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 48296 fi 48297 48298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48299 48300 path="$MSVCR_DLL" 48301 has_colon=`$ECHO $path | $GREP ^.:` 48302 new_path="$path" 48303 if test "x$has_colon" = x; then 48304 # Not in mixed or Windows style, start by that. 48305 new_path=`cmd //c echo $path` 48306 fi 48307 48308 48309 input_path="$new_path" 48310 # Check if we need to convert this using DOS-style short mode. If the path 48311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48312 # take no chances and rewrite it. 48313 # Note: m4 eats our [], so we need to use [ and ] instead. 48314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48315 if test "x$has_forbidden_chars" != x; then 48316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48317 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48318 fi 48319 48320 48321 windows_path="$new_path" 48322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48323 unix_path=`$CYGPATH -u "$windows_path"` 48324 new_path="$unix_path" 48325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48327 new_path="$unix_path" 48328 fi 48329 48330 if test "x$path" != "x$new_path"; then 48331 MSVCR_DLL="$new_path" 48332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 48333 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 48334 fi 48335 48336 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48337 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48338 48339 else 48340 # We're on a posix platform. Hooray! :) 48341 path="$MSVCR_DLL" 48342 has_space=`$ECHO "$path" | $GREP " "` 48343 if test "x$has_space" != x; then 48344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 48345 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 48346 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48347 fi 48348 48349 # Use eval to expand a potential ~ 48350 eval path="$path" 48351 if test ! -f "$path" && test ! -d "$path"; then 48352 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48353 fi 48354 48355 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 48356 fi 48357 48358 48359 48360 48361 # Check whether --with-dxsdk was given. 48362 if test "${with_dxsdk+set}" = set; then : 48363 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 48364 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 48365 fi 48366 48367 48368 48369 48370 # Check whether --with-dxsdk-lib was given. 48371 if test "${with_dxsdk_lib+set}" = set; then : 48372 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 48373 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 48374 fi 48375 48376 48377 48378 48379 # Check whether --with-dxsdk-include was given. 48380 if test "${with_dxsdk_include+set}" = set; then : 48381 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 48382 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 48383 fi 48384 48385 48386 fi 48387 48388 48389 48390 ############################################################################### 48391 # 48392 # We need to do some final tweaking, when everything else is done. 48393 # 48394 ############################################################################### 48395 48396 48397 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 48398 48399 48400 # The name of the Service Agent jar. 48401 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 48402 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 48403 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 48404 fi 48405 48406 48407 48408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 48409 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 48410 48411 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 48412 ENABLE_INTREE_EC=yes 48413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48414 $as_echo "yes" >&6; } 48415 else 48416 ENABLE_INTREE_EC=no 48417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48418 $as_echo "no" >&6; } 48419 fi 48420 48421 48422 48423 48424 ############################################################################### 48425 # 48426 # Configure parts of the build that only affect the build performance, 48427 # not the result. 48428 # 48429 ############################################################################### 48430 48431 48432 # How many cores do we have on this build system? 48433 48434 # Check whether --with-num-cores was given. 48435 if test "${with_num_cores+set}" = set; then : 48436 withval=$with_num_cores; 48437 fi 48438 48439 if test "x$with_num_cores" = x; then 48440 # The number of cores were not specified, try to probe them. 48441 48442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 48443 $as_echo_n "checking for number of cores... " >&6; } 48444 NUM_CORES=1 48445 FOUND_CORES=no 48446 48447 if test -f /proc/cpuinfo; then 48448 # Looks like a Linux (or cygwin) system 48449 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 48450 FOUND_CORES=yes 48451 elif test -x /usr/sbin/psrinfo; then 48452 # Looks like a Solaris system 48453 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 48454 FOUND_CORES=yes 48455 elif test -x /usr/sbin/system_profiler; then 48456 # Looks like a MacOSX system 48457 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 48458 FOUND_CORES=yes 48459 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 48460 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 48461 FOUND_CORES=yes 48462 elif test -n "$NUMBER_OF_PROCESSORS"; then 48463 # On windows, look in the env 48464 NUM_CORES=$NUMBER_OF_PROCESSORS 48465 FOUND_CORES=yes 48466 fi 48467 48468 if test "x$FOUND_CORES" = xyes; then 48469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 48470 $as_echo "$NUM_CORES" >&6; } 48471 else 48472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 48473 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 48474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 48475 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 48476 fi 48477 48478 else 48479 NUM_CORES=$with_num_cores 48480 fi 48481 48482 48483 48484 # How much memory do we have on this build system? 48485 48486 # Check whether --with-memory-size was given. 48487 if test "${with_memory_size+set}" = set; then : 48488 withval=$with_memory_size; 48489 fi 48490 48491 if test "x$with_memory_size" = x; then 48492 # The memory size was not specified, try to probe it. 48493 48494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 48495 $as_echo_n "checking for memory size... " >&6; } 48496 # Default to 1024 MB 48497 MEMORY_SIZE=1024 48498 FOUND_MEM=no 48499 48500 if test -f /proc/meminfo; then 48501 # Looks like a Linux (or cygwin) system 48502 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 48503 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 48504 FOUND_MEM=yes 48505 elif test -x /usr/sbin/prtconf; then 48506 # Looks like a Solaris or AIX system 48507 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 48508 FOUND_MEM=yes 48509 elif test -x /usr/sbin/system_profiler; then 48510 # Looks like a MacOSX system 48511 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 48512 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 48513 FOUND_MEM=yes 48514 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 48515 # Windows, but without cygwin 48516 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 48517 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 48518 FOUND_MEM=yes 48519 fi 48520 48521 if test "x$FOUND_MEM" = xyes; then 48522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 48523 $as_echo "$MEMORY_SIZE MB" >&6; } 48524 else 48525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 48526 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 48527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 48528 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 48529 fi 48530 48531 else 48532 MEMORY_SIZE=$with_memory_size 48533 fi 48534 48535 48536 48537 # Provide a decent default number of parallel jobs for make depending on 48538 # number of cores, amount of memory and machine architecture. 48539 48540 # Check whether --with-jobs was given. 48541 if test "${with_jobs+set}" = set; then : 48542 withval=$with_jobs; 48543 fi 48544 48545 if test "x$with_jobs" = x; then 48546 # Number of jobs was not specified, calculate. 48547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 48548 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 48549 # Approximate memory in GB, rounding up a bit. 48550 memory_gb=`expr $MEMORY_SIZE / 1100` 48551 # Pick the lowest of memory in gb and number of cores. 48552 if test "$memory_gb" -lt "$NUM_CORES"; then 48553 JOBS="$memory_gb" 48554 else 48555 JOBS="$NUM_CORES" 48556 # On bigger machines, leave some room for other processes to run 48557 if test "$JOBS" -gt "4"; then 48558 JOBS=`expr $JOBS '*' 90 / 100` 48559 fi 48560 fi 48561 # Cap number of jobs to 16 48562 if test "$JOBS" -gt "16"; then 48563 JOBS=16 48564 fi 48565 if test "$JOBS" -eq "0"; then 48566 JOBS=1 48567 fi 48568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 48569 $as_echo "$JOBS" >&6; } 48570 else 48571 JOBS=$with_jobs 48572 fi 48573 48574 48575 48576 # Setup smart javac (after cores and memory have been setup) 48577 48578 48579 # Check whether --with-sjavac-server-java was given. 48580 if test "${with_sjavac_server_java+set}" = set; then : 48581 withval=$with_sjavac_server_java; 48582 fi 48583 48584 48585 if test "x$with_sjavac_server_java" != x; then 48586 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 48587 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 48588 if test "x$FOUND_VERSION" = x; then 48589 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 48590 fi 48591 else 48592 SJAVAC_SERVER_JAVA="" 48593 # Hotspot specific options. 48594 48595 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 48596 $ECHO "Command: $JAVA -verbosegc -version" >&5 48597 OUTPUT=`$JAVA -verbosegc -version 2>&1` 48598 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48599 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48600 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48601 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 48602 JVM_ARG_OK=true 48603 else 48604 $ECHO "Arg failed:" >&5 48605 $ECHO "$OUTPUT" >&5 48606 JVM_ARG_OK=false 48607 fi 48608 48609 # JRockit specific options. 48610 48611 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 48612 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 48613 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 48614 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48615 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48616 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48617 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 48618 JVM_ARG_OK=true 48619 else 48620 $ECHO "Arg failed:" >&5 48621 $ECHO "$OUTPUT" >&5 48622 JVM_ARG_OK=false 48623 fi 48624 48625 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 48626 fi 48627 48628 48629 if test "$MEMORY_SIZE" -gt "2500"; then 48630 48631 $ECHO "Check if jvm arg is ok: -d64" >&5 48632 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 48633 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 48634 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48635 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48636 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48637 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 48638 JVM_ARG_OK=true 48639 else 48640 $ECHO "Arg failed:" >&5 48641 $ECHO "$OUTPUT" >&5 48642 JVM_ARG_OK=false 48643 fi 48644 48645 if test "$JVM_ARG_OK" = true; then 48646 JVM_64BIT=true 48647 JVM_ARG_OK=false 48648 fi 48649 fi 48650 48651 if test "$JVM_64BIT" = true; then 48652 if test "$MEMORY_SIZE" -gt "17000"; then 48653 48654 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 48655 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 48656 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 48657 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48658 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48659 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48660 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 48661 JVM_ARG_OK=true 48662 else 48663 $ECHO "Arg failed:" >&5 48664 $ECHO "$OUTPUT" >&5 48665 JVM_ARG_OK=false 48666 fi 48667 48668 fi 48669 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 48670 48671 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 48672 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 48673 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 48674 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48675 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48676 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48677 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 48678 JVM_ARG_OK=true 48679 else 48680 $ECHO "Arg failed:" >&5 48681 $ECHO "$OUTPUT" >&5 48682 JVM_ARG_OK=false 48683 fi 48684 48685 fi 48686 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 48687 48688 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 48689 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 48690 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 48691 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48692 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48693 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48694 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 48695 JVM_ARG_OK=true 48696 else 48697 $ECHO "Arg failed:" >&5 48698 $ECHO "$OUTPUT" >&5 48699 JVM_ARG_OK=false 48700 fi 48701 48702 fi 48703 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 48704 48705 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 48706 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 48707 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 48708 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48709 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48710 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48711 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 48712 JVM_ARG_OK=true 48713 else 48714 $ECHO "Arg failed:" >&5 48715 $ECHO "$OUTPUT" >&5 48716 JVM_ARG_OK=false 48717 fi 48718 48719 fi 48720 fi 48721 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 48722 48723 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 48724 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 48725 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 48726 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48727 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48728 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48729 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 48730 JVM_ARG_OK=true 48731 else 48732 $ECHO "Arg failed:" >&5 48733 $ECHO "$OUTPUT" >&5 48734 JVM_ARG_OK=false 48735 fi 48736 48737 fi 48738 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 48739 48740 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 48741 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 48742 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 48743 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48744 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48745 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48746 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 48747 JVM_ARG_OK=true 48748 else 48749 $ECHO "Arg failed:" >&5 48750 $ECHO "$OUTPUT" >&5 48751 JVM_ARG_OK=false 48752 fi 48753 48754 fi 48755 if test "$JVM_ARG_OK" = false; then 48756 48757 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 48758 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 48759 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 48760 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48761 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48762 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48763 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 48764 JVM_ARG_OK=true 48765 else 48766 $ECHO "Arg failed:" >&5 48767 $ECHO "$OUTPUT" >&5 48768 JVM_ARG_OK=false 48769 fi 48770 48771 fi 48772 48773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 48774 $as_echo_n "checking whether to use sjavac... " >&6; } 48775 # Check whether --enable-sjavac was given. 48776 if test "${enable_sjavac+set}" = set; then : 48777 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 48778 else 48779 ENABLE_SJAVAC='no' 48780 fi 48781 48782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 48783 $as_echo "$ENABLE_SJAVAC" >&6; } 48784 48785 48786 if test "x$ENABLE_SJAVAC" = xyes; then 48787 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 48788 else 48789 SJAVAC_SERVER_DIR= 48790 fi 48791 48792 48793 48794 # Can the C/C++ compiler use precompiled headers? 48795 48796 48797 ############################################################################### 48798 # 48799 # Can the C/C++ compiler use precompiled headers? 48800 # 48801 # Check whether --enable-precompiled-headers was given. 48802 if test "${enable_precompiled_headers+set}" = set; then : 48803 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 48804 else 48805 ENABLE_PRECOMPH=yes 48806 fi 48807 48808 48809 USE_PRECOMPILED_HEADER=1 48810 if test "x$ENABLE_PRECOMPH" = xno; then 48811 USE_PRECOMPILED_HEADER=0 48812 fi 48813 48814 if test "x$ENABLE_PRECOMPH" = xyes; then 48815 # Check that the compiler actually supports precomp headers. 48816 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 48818 $as_echo_n "checking that precompiled headers work... " >&6; } 48819 echo "int alfa();" > conftest.h 48820 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 48821 if test ! -f conftest.hpp.gch; then 48822 USE_PRECOMPILED_HEADER=0 48823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48824 $as_echo "no" >&6; } 48825 else 48826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48827 $as_echo "yes" >&6; } 48828 fi 48829 rm -f conftest.h conftest.hpp.gch 48830 fi 48831 fi 48832 48833 48834 48835 48836 # Setup use of ccache, if available 48837 48838 # Check whether --enable-ccache was given. 48839 if test "${enable_ccache+set}" = set; then : 48840 enableval=$enable_ccache; 48841 fi 48842 48843 48844 CCACHE= 48845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 48846 $as_echo_n "checking is ccache enabled... " >&6; } 48847 ENABLE_CCACHE=$enable_ccache 48848 if test "x$enable_ccache" = xyes; then 48849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48850 $as_echo "yes" >&6; } 48851 OLD_PATH="$PATH" 48852 if test "x$TOOLCHAIN_PATH" != x; then 48853 PATH=$TOOLCHAIN_PATH:$PATH 48854 fi 48855 48856 48857 48858 # Publish this variable in the help. 48859 48860 48861 if test "x$CCACHE" = x; then 48862 # The variable is not set by user, try to locate tool using the code snippet 48863 for ac_prog in ccache 48864 do 48865 # Extract the first word of "$ac_prog", so it can be a program name with args. 48866 set dummy $ac_prog; ac_word=$2 48867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48868 $as_echo_n "checking for $ac_word... " >&6; } 48869 if ${ac_cv_path_CCACHE+:} false; then : 48870 $as_echo_n "(cached) " >&6 48871 else 48872 case $CCACHE in 48873 [\\/]* | ?:[\\/]*) 48874 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48875 ;; 48876 *) 48877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48878 for as_dir in $PATH 48879 do 48880 IFS=$as_save_IFS 48881 test -z "$as_dir" && as_dir=. 48882 for ac_exec_ext in '' $ac_executable_extensions; do 48883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48884 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48886 break 2 48887 fi 48888 done 48889 done 48890 IFS=$as_save_IFS 48891 48892 ;; 48893 esac 48894 fi 48895 CCACHE=$ac_cv_path_CCACHE 48896 if test -n "$CCACHE"; then 48897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48898 $as_echo "$CCACHE" >&6; } 48899 else 48900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48901 $as_echo "no" >&6; } 48902 fi 48903 48904 48905 test -n "$CCACHE" && break 48906 done 48907 48908 else 48909 # The variable is set, but is it from the command line or the environment? 48910 48911 # Try to remove the string !CCACHE! from our list. 48912 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 48913 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48914 # If it failed, the variable was not from the command line. Ignore it, 48915 # but warn the user (except for BASH, which is always set by the calling BASH). 48916 if test "xCCACHE" != xBASH; then 48917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 48918 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 48919 fi 48920 # Try to locate tool using the code snippet 48921 for ac_prog in ccache 48922 do 48923 # Extract the first word of "$ac_prog", so it can be a program name with args. 48924 set dummy $ac_prog; ac_word=$2 48925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48926 $as_echo_n "checking for $ac_word... " >&6; } 48927 if ${ac_cv_path_CCACHE+:} false; then : 48928 $as_echo_n "(cached) " >&6 48929 else 48930 case $CCACHE in 48931 [\\/]* | ?:[\\/]*) 48932 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48933 ;; 48934 *) 48935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48936 for as_dir in $PATH 48937 do 48938 IFS=$as_save_IFS 48939 test -z "$as_dir" && as_dir=. 48940 for ac_exec_ext in '' $ac_executable_extensions; do 48941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48942 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48944 break 2 48945 fi 48946 done 48947 done 48948 IFS=$as_save_IFS 48949 48950 ;; 48951 esac 48952 fi 48953 CCACHE=$ac_cv_path_CCACHE 48954 if test -n "$CCACHE"; then 48955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48956 $as_echo "$CCACHE" >&6; } 48957 else 48958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48959 $as_echo "no" >&6; } 48960 fi 48961 48962 48963 test -n "$CCACHE" && break 48964 done 48965 48966 else 48967 # If it succeeded, then it was overridden by the user. We will use it 48968 # for the tool. 48969 48970 # First remove it from the list of overridden variables, so we can test 48971 # for unknown variables in the end. 48972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48973 48974 # Check if the provided tool contains a complete path. 48975 tool_specified="$CCACHE" 48976 tool_basename="${tool_specified##*/}" 48977 if test "x$tool_basename" = "x$tool_specified"; then 48978 # A command without a complete path is provided, search $PATH. 48979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 48980 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 48981 # Extract the first word of "$tool_basename", so it can be a program name with args. 48982 set dummy $tool_basename; ac_word=$2 48983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48984 $as_echo_n "checking for $ac_word... " >&6; } 48985 if ${ac_cv_path_CCACHE+:} false; then : 48986 $as_echo_n "(cached) " >&6 48987 else 48988 case $CCACHE in 48989 [\\/]* | ?:[\\/]*) 48990 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48991 ;; 48992 *) 48993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48994 for as_dir in $PATH 48995 do 48996 IFS=$as_save_IFS 48997 test -z "$as_dir" && as_dir=. 48998 for ac_exec_ext in '' $ac_executable_extensions; do 48999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49000 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 49001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49002 break 2 49003 fi 49004 done 49005 done 49006 IFS=$as_save_IFS 49007 49008 ;; 49009 esac 49010 fi 49011 CCACHE=$ac_cv_path_CCACHE 49012 if test -n "$CCACHE"; then 49013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 49014 $as_echo "$CCACHE" >&6; } 49015 else 49016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49017 $as_echo "no" >&6; } 49018 fi 49019 49020 49021 if test "x$CCACHE" = x; then 49022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 49023 fi 49024 else 49025 # Otherwise we believe it is a complete path. Use it as it is. 49026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 49027 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 49028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 49029 $as_echo_n "checking for CCACHE... " >&6; } 49030 if test ! -x "$tool_specified"; then 49031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 49032 $as_echo "not found" >&6; } 49033 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 49034 fi 49035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 49036 $as_echo "$tool_specified" >&6; } 49037 fi 49038 fi 49039 fi 49040 49041 49042 49043 if test "x$CCACHE" = x; then 49044 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 49045 fi 49046 49047 49048 CCACHE_STATUS="enabled" 49049 PATH="$OLD_PATH" 49050 elif test "x$enable_ccache" = xno; then 49051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 49052 $as_echo "no, explicitly disabled" >&6; } 49053 elif test "x$enable_ccache" = x; then 49054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49055 $as_echo "no" >&6; } 49056 else 49057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 49058 $as_echo "unknown" >&6; } 49059 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 49060 fi 49061 49062 49063 49064 # Check whether --with-ccache-dir was given. 49065 if test "${with_ccache_dir+set}" = set; then : 49066 withval=$with_ccache_dir; 49067 fi 49068 49069 49070 if test "x$with_ccache_dir" != x; then 49071 # When using a non home ccache directory, assume the use is to share ccache files 49072 # with other users. Thus change the umask. 49073 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 49074 if test "x$CCACHE" = x; then 49075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 49076 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 49077 fi 49078 fi 49079 49080 if test "x$CCACHE" != x; then 49081 49082 if test "x$CCACHE" != x; then 49083 # Only use ccache if it is 3.1.4 or later, which supports 49084 # precompiled headers. 49085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 49086 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 49087 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 49088 if test "x$HAS_GOOD_CCACHE" = x; then 49089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 49090 $as_echo "no, disabling ccache" >&6; } 49091 CCACHE= 49092 CCACHE_STATUS="disabled" 49093 else 49094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49095 $as_echo "yes" >&6; } 49096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 49097 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 49098 PUSHED_FLAGS="$CXXFLAGS" 49099 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 49100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49101 /* end confdefs.h. */ 49102 49103 int 49104 main () 49105 { 49106 49107 ; 49108 return 0; 49109 } 49110 _ACEOF 49111 if ac_fn_cxx_try_compile "$LINENO"; then : 49112 CC_KNOWS_CCACHE_TRICK=yes 49113 else 49114 CC_KNOWS_CCACHE_TRICK=no 49115 fi 49116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49117 CXXFLAGS="$PUSHED_FLAGS" 49118 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 49119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49120 $as_echo "yes" >&6; } 49121 else 49122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 49123 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 49124 CCACHE= 49125 CCACHE_STATUS="disabled" 49126 fi 49127 fi 49128 fi 49129 49130 if test "x$CCACHE" != x; then 49131 CCACHE_SLOPPINESS=time_macros 49132 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 49133 CCACHE_FLAGS=-fpch-preprocess 49134 49135 if test "x$SET_CCACHE_DIR" != x; then 49136 mkdir -p $CCACHE_DIR > /dev/null 2>&1 49137 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 49138 fi 49139 fi 49140 49141 fi 49142 49143 49144 ############################################################################### 49145 # 49146 # And now the finish... 49147 # 49148 ############################################################################### 49149 49150 # Check for some common pitfalls 49151 49152 if test x"$OPENJDK_BUILD_OS" = xwindows; then 49153 file_to_test="$SRC_ROOT/LICENSE" 49154 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 49155 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 49156 fi 49157 fi 49158 49159 49160 # Did user specify any unknown variables? 49161 49162 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 49163 # Replace the separating ! with spaces before presenting for end user. 49164 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 49165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 49166 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 49167 fi 49168 49169 49170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 49171 $as_echo_n "checking if build directory is on local disk... " >&6; } 49172 49173 # df -l lists only local disks; if the given directory is not found then 49174 # a non-zero exit code is given 49175 if test "x$DF" = x; then 49176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49177 # msys does not have df; use Windows "net use" instead. 49178 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 49179 if test "x$IS_NETWORK_DISK" = x; then 49180 OUTPUT_DIR_IS_LOCAL="yes" 49181 else 49182 OUTPUT_DIR_IS_LOCAL="no" 49183 fi 49184 else 49185 # No df here, say it's local 49186 OUTPUT_DIR_IS_LOCAL="yes" 49187 fi 49188 else 49189 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 49190 OUTPUT_DIR_IS_LOCAL="yes" 49191 else 49192 OUTPUT_DIR_IS_LOCAL="no" 49193 fi 49194 fi 49195 49196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 49197 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 49198 49199 49200 49201 # Check if the user has any old-style ALT_ variables set. 49202 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 49203 49204 # Before generating output files, test if they exist. If they do, this is a reconfigure. 49205 # Since we can't properly handle the dependencies for this, warn the user about the situation 49206 if test -e $OUTPUT_ROOT/spec.gmk; then 49207 IS_RECONFIGURE=yes 49208 else 49209 IS_RECONFIGURE=no 49210 fi 49211 49212 49213 # At the end, call the custom hook. (Dummy macro if no custom sources available) 49214 49215 49216 # We're messing a bit with internal autoconf variables to put the config.status 49217 # in the output directory instead of the current directory. 49218 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 49219 49220 # Create the actual output files. Now the main work of configure is done. 49221 cat >confcache <<\_ACEOF 49222 # This file is a shell script that caches the results of configure 49223 # tests run on this system so they can be shared between configure 49224 # scripts and configure runs, see configure's option --config-cache. 49225 # It is not useful on other systems. If it contains results you don't 49226 # want to keep, you may remove or edit it. 49227 # 49228 # config.status only pays attention to the cache file if you give it 49229 # the --recheck option to rerun configure. 49230 # 49231 # `ac_cv_env_foo' variables (set or unset) will be overridden when 49232 # loading this file, other *unset* `ac_cv_foo' will be assigned the 49233 # following values. 49234 49235 _ACEOF 49236 49237 # The following way of writing the cache mishandles newlines in values, 49238 # but we know of no workaround that is simple, portable, and efficient. 49239 # So, we kill variables containing newlines. 49240 # Ultrix sh set writes to stderr and can't be redirected directly, 49241 # and sets the high bit in the cache file unless we assign to the vars. 49242 ( 49243 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 49244 eval ac_val=\$$ac_var 49245 case $ac_val in #( 49246 *${as_nl}*) 49247 case $ac_var in #( 49248 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 49249 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 49250 esac 49251 case $ac_var in #( 49252 _ | IFS | as_nl) ;; #( 49253 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 49254 *) { eval $ac_var=; unset $ac_var;} ;; 49255 esac ;; 49256 esac 49257 done 49258 49259 (set) 2>&1 | 49260 case $as_nl`(ac_space=' '; set) 2>&1` in #( 49261 *${as_nl}ac_space=\ *) 49262 # `set' does not quote correctly, so add quotes: double-quote 49263 # substitution turns \\\\ into \\, and sed turns \\ into \. 49264 sed -n \ 49265 "s/'/'\\\\''/g; 49266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 49267 ;; #( 49268 *) 49269 # `set' quotes correctly as required by POSIX, so do not add quotes. 49270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 49271 ;; 49272 esac | 49273 sort 49274 ) | 49275 sed ' 49276 /^ac_cv_env_/b end 49277 t clear 49278 :clear 49279 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 49280 t end 49281 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 49282 :end' >>confcache 49283 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 49284 if test -w "$cache_file"; then 49285 if test "x$cache_file" != "x/dev/null"; then 49286 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 49287 $as_echo "$as_me: updating cache $cache_file" >&6;} 49288 if test ! -f "$cache_file" || test -h "$cache_file"; then 49289 cat confcache >"$cache_file" 49290 else 49291 case $cache_file in #( 49292 */* | ?:*) 49293 mv -f confcache "$cache_file"$$ && 49294 mv -f "$cache_file"$$ "$cache_file" ;; #( 49295 *) 49296 mv -f confcache "$cache_file" ;; 49297 esac 49298 fi 49299 fi 49300 else 49301 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 49302 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 49303 fi 49304 fi 49305 rm -f confcache 49306 49307 test "x$prefix" = xNONE && prefix=$ac_default_prefix 49308 # Let make expand exec_prefix. 49309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 49310 49311 DEFS=-DHAVE_CONFIG_H 49312 49313 ac_libobjs= 49314 ac_ltlibobjs= 49315 U= 49316 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 49317 # 1. Remove the extension, and $U if already installed. 49318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 49319 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 49320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 49321 # will be set to the directory where LIBOBJS objects are built. 49322 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 49323 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 49324 done 49325 LIBOBJS=$ac_libobjs 49326 49327 LTLIBOBJS=$ac_ltlibobjs 49328 49329 49330 49331 : "${CONFIG_STATUS=./config.status}" 49332 ac_write_fail=0 49333 ac_clean_files_save=$ac_clean_files 49334 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 49335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 49336 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 49337 as_write_fail=0 49338 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 49339 #! $SHELL 49340 # Generated by $as_me. 49341 # Run this file to recreate the current configuration. 49342 # Compiler output produced by configure, useful for debugging 49343 # configure, is in config.log if it exists. 49344 49345 debug=false 49346 ac_cs_recheck=false 49347 ac_cs_silent=false 49348 49349 SHELL=\${CONFIG_SHELL-$SHELL} 49350 export SHELL 49351 _ASEOF 49352 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 49353 ## -------------------- ## 49354 ## M4sh Initialization. ## 49355 ## -------------------- ## 49356 49357 # Be more Bourne compatible 49358 DUALCASE=1; export DUALCASE # for MKS sh 49359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 49360 emulate sh 49361 NULLCMD=: 49362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 49363 # is contrary to our usage. Disable this feature. 49364 alias -g '${1+"$@"}'='"$@"' 49365 setopt NO_GLOB_SUBST 49366 else 49367 case `(set -o) 2>/dev/null` in #( 49368 *posix*) : 49369 set -o posix ;; #( 49370 *) : 49371 ;; 49372 esac 49373 fi 49374 49375 49376 as_nl=' 49377 ' 49378 export as_nl 49379 # Printing a long string crashes Solaris 7 /usr/bin/printf. 49380 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 49382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49383 # Prefer a ksh shell builtin over an external printf program on Solaris, 49384 # but without wasting forks for bash or zsh. 49385 if test -z "$BASH_VERSION$ZSH_VERSION" \ 49386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49387 as_echo='print -r --' 49388 as_echo_n='print -rn --' 49389 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 49390 as_echo='printf %s\n' 49391 as_echo_n='printf %s' 49392 else 49393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 49394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 49395 as_echo_n='/usr/ucb/echo -n' 49396 else 49397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 49398 as_echo_n_body='eval 49399 arg=$1; 49400 case $arg in #( 49401 *"$as_nl"*) 49402 expr "X$arg" : "X\\(.*\\)$as_nl"; 49403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 49404 esac; 49405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 49406 ' 49407 export as_echo_n_body 49408 as_echo_n='sh -c $as_echo_n_body as_echo' 49409 fi 49410 export as_echo_body 49411 as_echo='sh -c $as_echo_body as_echo' 49412 fi 49413 49414 # The user is always right. 49415 if test "${PATH_SEPARATOR+set}" != set; then 49416 PATH_SEPARATOR=: 49417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 49418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 49419 PATH_SEPARATOR=';' 49420 } 49421 fi 49422 49423 49424 # IFS 49425 # We need space, tab and new line, in precisely that order. Quoting is 49426 # there to prevent editors from complaining about space-tab. 49427 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 49428 # splitting by setting IFS to empty value.) 49429 IFS=" "" $as_nl" 49430 49431 # Find who we are. Look in the path if we contain no directory separator. 49432 as_myself= 49433 case $0 in #(( 49434 *[\\/]* ) as_myself=$0 ;; 49435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49436 for as_dir in $PATH 49437 do 49438 IFS=$as_save_IFS 49439 test -z "$as_dir" && as_dir=. 49440 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 49441 done 49442 IFS=$as_save_IFS 49443 49444 ;; 49445 esac 49446 # We did not find ourselves, most probably we were run as `sh COMMAND' 49447 # in which case we are not to be found in the path. 49448 if test "x$as_myself" = x; then 49449 as_myself=$0 49450 fi 49451 if test ! -f "$as_myself"; then 49452 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 49453 exit 1 49454 fi 49455 49456 # Unset variables that we do not need and which cause bugs (e.g. in 49457 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 49458 # suppresses any "Segmentation fault" message there. '((' could 49459 # trigger a bug in pdksh 5.2.14. 49460 for as_var in BASH_ENV ENV MAIL MAILPATH 49461 do eval test x\${$as_var+set} = xset \ 49462 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 49463 done 49464 PS1='$ ' 49465 PS2='> ' 49466 PS4='+ ' 49467 49468 # NLS nuisances. 49469 LC_ALL=C 49470 export LC_ALL 49471 LANGUAGE=C 49472 export LANGUAGE 49473 49474 # CDPATH. 49475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 49476 49477 49478 # as_fn_error STATUS ERROR [LINENO LOG_FD] 49479 # ---------------------------------------- 49480 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 49481 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 49482 # script with STATUS, using 1 if that was 0. 49483 as_fn_error () 49484 { 49485 as_status=$1; test $as_status -eq 0 && as_status=1 49486 if test "$4"; then 49487 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 49488 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 49489 fi 49490 $as_echo "$as_me: error: $2" >&2 49491 as_fn_exit $as_status 49492 } # as_fn_error 49493 49494 49495 # as_fn_set_status STATUS 49496 # ----------------------- 49497 # Set $? to STATUS, without forking. 49498 as_fn_set_status () 49499 { 49500 return $1 49501 } # as_fn_set_status 49502 49503 # as_fn_exit STATUS 49504 # ----------------- 49505 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 49506 as_fn_exit () 49507 { 49508 set +e 49509 as_fn_set_status $1 49510 exit $1 49511 } # as_fn_exit 49512 49513 # as_fn_unset VAR 49514 # --------------- 49515 # Portably unset VAR. 49516 as_fn_unset () 49517 { 49518 { eval $1=; unset $1;} 49519 } 49520 as_unset=as_fn_unset 49521 # as_fn_append VAR VALUE 49522 # ---------------------- 49523 # Append the text in VALUE to the end of the definition contained in VAR. Take 49524 # advantage of any shell optimizations that allow amortized linear growth over 49525 # repeated appends, instead of the typical quadratic growth present in naive 49526 # implementations. 49527 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 49528 eval 'as_fn_append () 49529 { 49530 eval $1+=\$2 49531 }' 49532 else 49533 as_fn_append () 49534 { 49535 eval $1=\$$1\$2 49536 } 49537 fi # as_fn_append 49538 49539 # as_fn_arith ARG... 49540 # ------------------ 49541 # Perform arithmetic evaluation on the ARGs, and store the result in the 49542 # global $as_val. Take advantage of shells that can avoid forks. The arguments 49543 # must be portable across $(()) and expr. 49544 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 49545 eval 'as_fn_arith () 49546 { 49547 as_val=$(( $* )) 49548 }' 49549 else 49550 as_fn_arith () 49551 { 49552 as_val=`expr "$@" || test $? -eq 1` 49553 } 49554 fi # as_fn_arith 49555 49556 49557 if expr a : '\(a\)' >/dev/null 2>&1 && 49558 test "X`expr 00001 : '.*\(...\)'`" = X001; then 49559 as_expr=expr 49560 else 49561 as_expr=false 49562 fi 49563 49564 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 49565 as_basename=basename 49566 else 49567 as_basename=false 49568 fi 49569 49570 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 49571 as_dirname=dirname 49572 else 49573 as_dirname=false 49574 fi 49575 49576 as_me=`$as_basename -- "$0" || 49577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 49578 X"$0" : 'X\(//\)$' \| \ 49579 X"$0" : 'X\(/\)' \| . 2>/dev/null || 49580 $as_echo X/"$0" | 49581 sed '/^.*\/\([^/][^/]*\)\/*$/{ 49582 s//\1/ 49583 q 49584 } 49585 /^X\/\(\/\/\)$/{ 49586 s//\1/ 49587 q 49588 } 49589 /^X\/\(\/\).*/{ 49590 s//\1/ 49591 q 49592 } 49593 s/.*/./; q'` 49594 49595 # Avoid depending upon Character Ranges. 49596 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 49597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 49598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 49599 as_cr_digits='0123456789' 49600 as_cr_alnum=$as_cr_Letters$as_cr_digits 49601 49602 ECHO_C= ECHO_N= ECHO_T= 49603 case `echo -n x` in #((((( 49604 -n*) 49605 case `echo 'xy\c'` in 49606 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 49607 xy) ECHO_C='\c';; 49608 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 49609 ECHO_T=' ';; 49610 esac;; 49611 *) 49612 ECHO_N='-n';; 49613 esac 49614 49615 rm -f conf$$ conf$$.exe conf$$.file 49616 if test -d conf$$.dir; then 49617 rm -f conf$$.dir/conf$$.file 49618 else 49619 rm -f conf$$.dir 49620 mkdir conf$$.dir 2>/dev/null 49621 fi 49622 if (echo >conf$$.file) 2>/dev/null; then 49623 if ln -s conf$$.file conf$$ 2>/dev/null; then 49624 as_ln_s='ln -s' 49625 # ... but there are two gotchas: 49626 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 49627 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 49628 # In both cases, we have to default to `cp -pR'. 49629 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 49630 as_ln_s='cp -pR' 49631 elif ln conf$$.file conf$$ 2>/dev/null; then 49632 as_ln_s=ln 49633 else 49634 as_ln_s='cp -pR' 49635 fi 49636 else 49637 as_ln_s='cp -pR' 49638 fi 49639 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 49640 rmdir conf$$.dir 2>/dev/null 49641 49642 49643 # as_fn_mkdir_p 49644 # ------------- 49645 # Create "$as_dir" as a directory, including parents if necessary. 49646 as_fn_mkdir_p () 49647 { 49648 49649 case $as_dir in #( 49650 -*) as_dir=./$as_dir;; 49651 esac 49652 test -d "$as_dir" || eval $as_mkdir_p || { 49653 as_dirs= 49654 while :; do 49655 case $as_dir in #( 49656 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 49657 *) as_qdir=$as_dir;; 49658 esac 49659 as_dirs="'$as_qdir' $as_dirs" 49660 as_dir=`$as_dirname -- "$as_dir" || 49661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 49662 X"$as_dir" : 'X\(//\)[^/]' \| \ 49663 X"$as_dir" : 'X\(//\)$' \| \ 49664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 49665 $as_echo X"$as_dir" | 49666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 49667 s//\1/ 49668 q 49669 } 49670 /^X\(\/\/\)[^/].*/{ 49671 s//\1/ 49672 q 49673 } 49674 /^X\(\/\/\)$/{ 49675 s//\1/ 49676 q 49677 } 49678 /^X\(\/\).*/{ 49679 s//\1/ 49680 q 49681 } 49682 s/.*/./; q'` 49683 test -d "$as_dir" && break 49684 done 49685 test -z "$as_dirs" || eval "mkdir $as_dirs" 49686 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 49687 49688 49689 } # as_fn_mkdir_p 49690 if mkdir -p . 2>/dev/null; then 49691 as_mkdir_p='mkdir -p "$as_dir"' 49692 else 49693 test -d ./-p && rmdir ./-p 49694 as_mkdir_p=false 49695 fi 49696 49697 49698 # as_fn_executable_p FILE 49699 # ----------------------- 49700 # Test if FILE is an executable regular file. 49701 as_fn_executable_p () 49702 { 49703 test -f "$1" && test -x "$1" 49704 } # as_fn_executable_p 49705 as_test_x='test -x' 49706 as_executable_p=as_fn_executable_p 49707 49708 # Sed expression to map a string onto a valid CPP name. 49709 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 49710 49711 # Sed expression to map a string onto a valid variable name. 49712 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 49713 49714 49715 exec 6>&1 49716 ## ----------------------------------- ## 49717 ## Main body of $CONFIG_STATUS script. ## 49718 ## ----------------------------------- ## 49719 _ASEOF 49720 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 49721 49722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49723 # Save the log message, to keep $0 and so on meaningful, and to 49724 # report actual input values of CONFIG_FILES etc. instead of their 49725 # values after options handling. 49726 ac_log=" 49727 This file was extended by OpenJDK $as_me jdk9, which was 49728 generated by GNU Autoconf 2.69. Invocation command line was 49729 49730 CONFIG_FILES = $CONFIG_FILES 49731 CONFIG_HEADERS = $CONFIG_HEADERS 49732 CONFIG_LINKS = $CONFIG_LINKS 49733 CONFIG_COMMANDS = $CONFIG_COMMANDS 49734 $ $0 $@ 49735 49736 on `(hostname || uname -n) 2>/dev/null | sed 1q` 49737 " 49738 49739 _ACEOF 49740 49741 case $ac_config_files in *" 49742 "*) set x $ac_config_files; shift; ac_config_files=$*;; 49743 esac 49744 49745 case $ac_config_headers in *" 49746 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 49747 esac 49748 49749 49750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49751 # Files that config.status was made for. 49752 config_files="$ac_config_files" 49753 config_headers="$ac_config_headers" 49754 49755 _ACEOF 49756 49757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49758 ac_cs_usage="\ 49759 \`$as_me' instantiates files and other configuration actions 49760 from templates according to the current configuration. Unless the files 49761 and actions are specified as TAGs, all are instantiated by default. 49762 49763 Usage: $0 [OPTION]... [TAG]... 49764 49765 -h, --help print this help, then exit 49766 -V, --version print version number and configuration settings, then exit 49767 --config print configuration, then exit 49768 -q, --quiet, --silent 49769 do not print progress messages 49770 -d, --debug don't remove temporary files 49771 --recheck update $as_me by reconfiguring in the same conditions 49772 --file=FILE[:TEMPLATE] 49773 instantiate the configuration file FILE 49774 --header=FILE[:TEMPLATE] 49775 instantiate the configuration header FILE 49776 49777 Configuration files: 49778 $config_files 49779 49780 Configuration headers: 49781 $config_headers 49782 49783 Report bugs to <build-dev@openjdk.java.net>. 49784 OpenJDK home page: <http://openjdk.java.net>." 49785 49786 _ACEOF 49787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49788 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 49789 ac_cs_version="\\ 49790 OpenJDK config.status jdk9 49791 configured by $0, generated by GNU Autoconf 2.69, 49792 with options \\"\$ac_cs_config\\" 49793 49794 Copyright (C) 2012 Free Software Foundation, Inc. 49795 This config.status script is free software; the Free Software Foundation 49796 gives unlimited permission to copy, distribute and modify it." 49797 49798 ac_pwd='$ac_pwd' 49799 srcdir='$srcdir' 49800 AWK='$AWK' 49801 test -n "\$AWK" || AWK=awk 49802 _ACEOF 49803 49804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49805 # The default lists apply if the user does not specify any file. 49806 ac_need_defaults=: 49807 while test $# != 0 49808 do 49809 case $1 in 49810 --*=?*) 49811 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 49813 ac_shift=: 49814 ;; 49815 --*=) 49816 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49817 ac_optarg= 49818 ac_shift=: 49819 ;; 49820 *) 49821 ac_option=$1 49822 ac_optarg=$2 49823 ac_shift=shift 49824 ;; 49825 esac 49826 49827 case $ac_option in 49828 # Handling of the options. 49829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 49830 ac_cs_recheck=: ;; 49831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 49832 $as_echo "$ac_cs_version"; exit ;; 49833 --config | --confi | --conf | --con | --co | --c ) 49834 $as_echo "$ac_cs_config"; exit ;; 49835 --debug | --debu | --deb | --de | --d | -d ) 49836 debug=: ;; 49837 --file | --fil | --fi | --f ) 49838 $ac_shift 49839 case $ac_optarg in 49840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49841 '') as_fn_error $? "missing file argument" ;; 49842 esac 49843 as_fn_append CONFIG_FILES " '$ac_optarg'" 49844 ac_need_defaults=false;; 49845 --header | --heade | --head | --hea ) 49846 $ac_shift 49847 case $ac_optarg in 49848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49849 esac 49850 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 49851 ac_need_defaults=false;; 49852 --he | --h) 49853 # Conflict between --help and --header 49854 as_fn_error $? "ambiguous option: \`$1' 49855 Try \`$0 --help' for more information.";; 49856 --help | --hel | -h ) 49857 $as_echo "$ac_cs_usage"; exit ;; 49858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 49859 | -silent | --silent | --silen | --sile | --sil | --si | --s) 49860 ac_cs_silent=: ;; 49861 49862 # This is an error. 49863 -*) as_fn_error $? "unrecognized option: \`$1' 49864 Try \`$0 --help' for more information." ;; 49865 49866 *) as_fn_append ac_config_targets " $1" 49867 ac_need_defaults=false ;; 49868 49869 esac 49870 shift 49871 done 49872 49873 ac_configure_extra_args= 49874 49875 if $ac_cs_silent; then 49876 exec 6>/dev/null 49877 ac_configure_extra_args="$ac_configure_extra_args --silent" 49878 fi 49879 49880 _ACEOF 49881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49882 if \$ac_cs_recheck; then 49883 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 49884 shift 49885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 49886 CONFIG_SHELL='$SHELL' 49887 export CONFIG_SHELL 49888 exec "\$@" 49889 fi 49890 49891 _ACEOF 49892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49893 exec 5>>config.log 49894 { 49895 echo 49896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 49897 ## Running $as_me. ## 49898 _ASBOX 49899 $as_echo "$ac_log" 49900 } >&5 49901 49902 _ACEOF 49903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49904 _ACEOF 49905 49906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49907 49908 # Handling of arguments. 49909 for ac_config_target in $ac_config_targets 49910 do 49911 case $ac_config_target in 49912 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 49913 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 49914 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 49915 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 49916 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 49917 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 49918 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 49919 49920 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 49921 esac 49922 done 49923 49924 49925 # If the user did not use the arguments to specify the items to instantiate, 49926 # then the envvar interface is used. Set only those that are not. 49927 # We use the long form for the default assignment because of an extremely 49928 # bizarre bug on SunOS 4.1.3. 49929 if $ac_need_defaults; then 49930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 49931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 49932 fi 49933 49934 # Have a temporary directory for convenience. Make it in the build tree 49935 # simply because there is no reason against having it here, and in addition, 49936 # creating and moving files from /tmp can sometimes cause problems. 49937 # Hook for its removal unless debugging. 49938 # Note that there is a small window in which the directory will not be cleaned: 49939 # after its creation but before its name has been assigned to `$tmp'. 49940 $debug || 49941 { 49942 tmp= ac_tmp= 49943 trap 'exit_status=$? 49944 : "${ac_tmp:=$tmp}" 49945 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 49946 ' 0 49947 trap 'as_fn_exit 1' 1 2 13 15 49948 } 49949 # Create a (secure) tmp directory for tmp files. 49950 49951 { 49952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 49953 test -d "$tmp" 49954 } || 49955 { 49956 tmp=./conf$$-$RANDOM 49957 (umask 077 && mkdir "$tmp") 49958 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 49959 ac_tmp=$tmp 49960 49961 # Set up the scripts for CONFIG_FILES section. 49962 # No need to generate them if there are no CONFIG_FILES. 49963 # This happens for instance with `./config.status config.h'. 49964 if test -n "$CONFIG_FILES"; then 49965 49966 49967 ac_cr=`echo X | tr X '\015'` 49968 # On cygwin, bash can eat \r inside `` if the user requested igncr. 49969 # But we know of no other shell where ac_cr would be empty at this 49970 # point, so we can use a bashism as a fallback. 49971 if test "x$ac_cr" = x; then 49972 eval ac_cr=\$\'\\r\' 49973 fi 49974 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 49975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 49976 ac_cs_awk_cr='\\r' 49977 else 49978 ac_cs_awk_cr=$ac_cr 49979 fi 49980 49981 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 49982 _ACEOF 49983 49984 49985 { 49986 echo "cat >conf$$subs.awk <<_ACEOF" && 49987 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 49988 echo "_ACEOF" 49989 } >conf$$subs.sh || 49990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49991 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 49992 ac_delim='%!_!# ' 49993 for ac_last_try in false false false false false :; do 49994 . ./conf$$subs.sh || 49995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49996 49997 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 49998 if test $ac_delim_n = $ac_delim_num; then 49999 break 50000 elif $ac_last_try; then 50001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 50002 else 50003 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 50004 fi 50005 done 50006 rm -f conf$$subs.sh 50007 50008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50009 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 50010 _ACEOF 50011 sed -n ' 50012 h 50013 s/^/S["/; s/!.*/"]=/ 50014 p 50015 g 50016 s/^[^!]*!// 50017 :repl 50018 t repl 50019 s/'"$ac_delim"'$// 50020 t delim 50021 :nl 50022 h 50023 s/\(.\{148\}\)..*/\1/ 50024 t more1 50025 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 50026 p 50027 n 50028 b repl 50029 :more1 50030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 50031 p 50032 g 50033 s/.\{148\}// 50034 t nl 50035 :delim 50036 h 50037 s/\(.\{148\}\)..*/\1/ 50038 t more2 50039 s/["\\]/\\&/g; s/^/"/; s/$/"/ 50040 p 50041 b 50042 :more2 50043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 50044 p 50045 g 50046 s/.\{148\}// 50047 t delim 50048 ' <conf$$subs.awk | sed ' 50049 /^[^""]/{ 50050 N 50051 s/\n// 50052 } 50053 ' >>$CONFIG_STATUS || ac_write_fail=1 50054 rm -f conf$$subs.awk 50055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50056 _ACAWK 50057 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 50058 for (key in S) S_is_set[key] = 1 50059 FS = "" 50060 50061 } 50062 { 50063 line = $ 0 50064 nfields = split(line, field, "@") 50065 substed = 0 50066 len = length(field[1]) 50067 for (i = 2; i < nfields; i++) { 50068 key = field[i] 50069 keylen = length(key) 50070 if (S_is_set[key]) { 50071 value = S[key] 50072 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 50073 len += length(value) + length(field[++i]) 50074 substed = 1 50075 } else 50076 len += 1 + keylen 50077 } 50078 50079 print line 50080 } 50081 50082 _ACAWK 50083 _ACEOF 50084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50085 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 50086 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 50087 else 50088 cat 50089 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 50090 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 50091 _ACEOF 50092 50093 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 50094 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 50095 # trailing colons and then remove the whole line if VPATH becomes empty 50096 # (actually we leave an empty line to preserve line numbers). 50097 if test "x$srcdir" = x.; then 50098 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 50099 h 50100 s/// 50101 s/^/:/ 50102 s/[ ]*$/:/ 50103 s/:\$(srcdir):/:/g 50104 s/:\${srcdir}:/:/g 50105 s/:@srcdir@:/:/g 50106 s/^:*// 50107 s/:*$// 50108 x 50109 s/\(=[ ]*\).*/\1/ 50110 G 50111 s/\n// 50112 s/^[^=]*=[ ]*$// 50113 }' 50114 fi 50115 50116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50117 fi # test -n "$CONFIG_FILES" 50118 50119 # Set up the scripts for CONFIG_HEADERS section. 50120 # No need to generate them if there are no CONFIG_HEADERS. 50121 # This happens for instance with `./config.status Makefile'. 50122 if test -n "$CONFIG_HEADERS"; then 50123 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 50124 BEGIN { 50125 _ACEOF 50126 50127 # Transform confdefs.h into an awk script `defines.awk', embedded as 50128 # here-document in config.status, that substitutes the proper values into 50129 # config.h.in to produce config.h. 50130 50131 # Create a delimiter string that does not exist in confdefs.h, to ease 50132 # handling of long lines. 50133 ac_delim='%!_!# ' 50134 for ac_last_try in false false :; do 50135 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 50136 if test -z "$ac_tt"; then 50137 break 50138 elif $ac_last_try; then 50139 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 50140 else 50141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 50142 fi 50143 done 50144 50145 # For the awk script, D is an array of macro values keyed by name, 50146 # likewise P contains macro parameters if any. Preserve backslash 50147 # newline sequences. 50148 50149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 50150 sed -n ' 50151 s/.\{148\}/&'"$ac_delim"'/g 50152 t rset 50153 :rset 50154 s/^[ ]*#[ ]*define[ ][ ]*/ / 50155 t def 50156 d 50157 :def 50158 s/\\$// 50159 t bsnl 50160 s/["\\]/\\&/g 50161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 50162 D["\1"]=" \3"/p 50163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 50164 d 50165 :bsnl 50166 s/["\\]/\\&/g 50167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 50168 D["\1"]=" \3\\\\\\n"\\/p 50169 t cont 50170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 50171 t cont 50172 d 50173 :cont 50174 n 50175 s/.\{148\}/&'"$ac_delim"'/g 50176 t clear 50177 :clear 50178 s/\\$// 50179 t bsnlc 50180 s/["\\]/\\&/g; s/^/"/; s/$/"/p 50181 d 50182 :bsnlc 50183 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 50184 b cont 50185 ' <confdefs.h | sed ' 50186 s/'"$ac_delim"'/"\\\ 50187 "/g' >>$CONFIG_STATUS || ac_write_fail=1 50188 50189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50190 for (key in D) D_is_set[key] = 1 50191 FS = "" 50192 } 50193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 50194 line = \$ 0 50195 split(line, arg, " ") 50196 if (arg[1] == "#") { 50197 defundef = arg[2] 50198 mac1 = arg[3] 50199 } else { 50200 defundef = substr(arg[1], 2) 50201 mac1 = arg[2] 50202 } 50203 split(mac1, mac2, "(") #) 50204 macro = mac2[1] 50205 prefix = substr(line, 1, index(line, defundef) - 1) 50206 if (D_is_set[macro]) { 50207 # Preserve the white space surrounding the "#". 50208 print prefix "define", macro P[macro] D[macro] 50209 next 50210 } else { 50211 # Replace #undef with comments. This is necessary, for example, 50212 # in the case of _POSIX_SOURCE, which is predefined and required 50213 # on some systems where configure will not decide to define it. 50214 if (defundef == "undef") { 50215 print "/*", prefix defundef, macro, "*/" 50216 next 50217 } 50218 } 50219 } 50220 { print } 50221 _ACAWK 50222 _ACEOF 50223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50224 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 50225 fi # test -n "$CONFIG_HEADERS" 50226 50227 50228 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 50229 shift 50230 for ac_tag 50231 do 50232 case $ac_tag in 50233 :[FHLC]) ac_mode=$ac_tag; continue;; 50234 esac 50235 case $ac_mode$ac_tag in 50236 :[FHL]*:*);; 50237 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 50238 :[FH]-) ac_tag=-:-;; 50239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 50240 esac 50241 ac_save_IFS=$IFS 50242 IFS=: 50243 set x $ac_tag 50244 IFS=$ac_save_IFS 50245 shift 50246 ac_file=$1 50247 shift 50248 50249 case $ac_mode in 50250 :L) ac_source=$1;; 50251 :[FH]) 50252 ac_file_inputs= 50253 for ac_f 50254 do 50255 case $ac_f in 50256 -) ac_f="$ac_tmp/stdin";; 50257 *) # Look for the file first in the build tree, then in the source tree 50258 # (if the path is not absolute). The absolute path cannot be DOS-style, 50259 # because $ac_f cannot contain `:'. 50260 test -f "$ac_f" || 50261 case $ac_f in 50262 [\\/$]*) false;; 50263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 50264 esac || 50265 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 50266 esac 50267 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 50268 as_fn_append ac_file_inputs " '$ac_f'" 50269 done 50270 50271 # Let's still pretend it is `configure' which instantiates (i.e., don't 50272 # use $as_me), people would be surprised to read: 50273 # /* config.h. Generated by config.status. */ 50274 configure_input='Generated from '` 50275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 50276 `' by configure.' 50277 if test x"$ac_file" != x-; then 50278 configure_input="$ac_file. $configure_input" 50279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 50280 $as_echo "$as_me: creating $ac_file" >&6;} 50281 fi 50282 # Neutralize special characters interpreted by sed in replacement strings. 50283 case $configure_input in #( 50284 *\&* | *\|* | *\\* ) 50285 ac_sed_conf_input=`$as_echo "$configure_input" | 50286 sed 's/[\\\\&|]/\\\\&/g'`;; #( 50287 *) ac_sed_conf_input=$configure_input;; 50288 esac 50289 50290 case $ac_tag in 50291 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 50292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 50293 esac 50294 ;; 50295 esac 50296 50297 ac_dir=`$as_dirname -- "$ac_file" || 50298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 50299 X"$ac_file" : 'X\(//\)[^/]' \| \ 50300 X"$ac_file" : 'X\(//\)$' \| \ 50301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 50302 $as_echo X"$ac_file" | 50303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 50304 s//\1/ 50305 q 50306 } 50307 /^X\(\/\/\)[^/].*/{ 50308 s//\1/ 50309 q 50310 } 50311 /^X\(\/\/\)$/{ 50312 s//\1/ 50313 q 50314 } 50315 /^X\(\/\).*/{ 50316 s//\1/ 50317 q 50318 } 50319 s/.*/./; q'` 50320 as_dir="$ac_dir"; as_fn_mkdir_p 50321 ac_builddir=. 50322 50323 case "$ac_dir" in 50324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 50325 *) 50326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 50327 # A ".." for each directory in $ac_dir_suffix. 50328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 50329 case $ac_top_builddir_sub in 50330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 50331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 50332 esac ;; 50333 esac 50334 ac_abs_top_builddir=$ac_pwd 50335 ac_abs_builddir=$ac_pwd$ac_dir_suffix 50336 # for backward compatibility: 50337 ac_top_builddir=$ac_top_build_prefix 50338 50339 case $srcdir in 50340 .) # We are building in place. 50341 ac_srcdir=. 50342 ac_top_srcdir=$ac_top_builddir_sub 50343 ac_abs_top_srcdir=$ac_pwd ;; 50344 [\\/]* | ?:[\\/]* ) # Absolute name. 50345 ac_srcdir=$srcdir$ac_dir_suffix; 50346 ac_top_srcdir=$srcdir 50347 ac_abs_top_srcdir=$srcdir ;; 50348 *) # Relative name. 50349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 50350 ac_top_srcdir=$ac_top_build_prefix$srcdir 50351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 50352 esac 50353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 50354 50355 50356 case $ac_mode in 50357 :F) 50358 # 50359 # CONFIG_FILE 50360 # 50361 50362 _ACEOF 50363 50364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50365 # If the template does not know about datarootdir, expand it. 50366 # FIXME: This hack should be removed a few years after 2.60. 50367 ac_datarootdir_hack=; ac_datarootdir_seen= 50368 ac_sed_dataroot=' 50369 /datarootdir/ { 50370 p 50371 q 50372 } 50373 /@datadir@/p 50374 /@docdir@/p 50375 /@infodir@/p 50376 /@localedir@/p 50377 /@mandir@/p' 50378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 50379 *datarootdir*) ac_datarootdir_seen=yes;; 50380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 50381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 50382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 50383 _ACEOF 50384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50385 ac_datarootdir_hack=' 50386 s&@datadir@&$datadir&g 50387 s&@docdir@&$docdir&g 50388 s&@infodir@&$infodir&g 50389 s&@localedir@&$localedir&g 50390 s&@mandir@&$mandir&g 50391 s&\\\${datarootdir}&$datarootdir&g' ;; 50392 esac 50393 _ACEOF 50394 50395 # Neutralize VPATH when `$srcdir' = `.'. 50396 # Shell code in configure.ac might set extrasub. 50397 # FIXME: do we really want to maintain this feature? 50398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50399 ac_sed_extra="$ac_vpsub 50400 $extrasub 50401 _ACEOF 50402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50403 :t 50404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 50405 s|@configure_input@|$ac_sed_conf_input|;t t 50406 s&@top_builddir@&$ac_top_builddir_sub&;t t 50407 s&@top_build_prefix@&$ac_top_build_prefix&;t t 50408 s&@srcdir@&$ac_srcdir&;t t 50409 s&@abs_srcdir@&$ac_abs_srcdir&;t t 50410 s&@top_srcdir@&$ac_top_srcdir&;t t 50411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 50412 s&@builddir@&$ac_builddir&;t t 50413 s&@abs_builddir@&$ac_abs_builddir&;t t 50414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 50415 $ac_datarootdir_hack 50416 " 50417 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 50418 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50419 50420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 50421 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 50422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 50423 "$ac_tmp/out"`; test -z "$ac_out"; } && 50424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 50425 which seems to be undefined. Please make sure it is defined" >&5 50426 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 50427 which seems to be undefined. Please make sure it is defined" >&2;} 50428 50429 rm -f "$ac_tmp/stdin" 50430 case $ac_file in 50431 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 50432 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 50433 esac \ 50434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50435 ;; 50436 :H) 50437 # 50438 # CONFIG_HEADER 50439 # 50440 if test x"$ac_file" != x-; then 50441 { 50442 $as_echo "/* $configure_input */" \ 50443 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 50444 } >"$ac_tmp/config.h" \ 50445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50446 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 50447 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 50448 $as_echo "$as_me: $ac_file is unchanged" >&6;} 50449 else 50450 rm -f "$ac_file" 50451 mv "$ac_tmp/config.h" "$ac_file" \ 50452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50453 fi 50454 else 50455 $as_echo "/* $configure_input */" \ 50456 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 50457 || as_fn_error $? "could not create -" "$LINENO" 5 50458 fi 50459 ;; 50460 50461 50462 esac 50463 50464 done # for ac_tag 50465 50466 50467 as_fn_exit 0 50468 _ACEOF 50469 ac_clean_files=$ac_clean_files_save 50470 50471 test $ac_write_fail = 0 || 50472 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 50473 50474 50475 # configure is writing to config.log, and then calls config.status. 50476 # config.status does its own redirection, appending to config.log. 50477 # Unfortunately, on DOS this fails, as config.log is still kept open 50478 # by configure, so config.status won't be able to write to it; its 50479 # output is simply discarded. So we exec the FD to /dev/null, 50480 # effectively closing config.log, so it can be properly (re)opened and 50481 # appended to by config.status. When coming back to configure, we 50482 # need to make the FD available again. 50483 if test "$no_create" != yes; then 50484 ac_cs_success=: 50485 ac_config_status_args= 50486 test "$silent" = yes && 50487 ac_config_status_args="$ac_config_status_args --quiet" 50488 exec 5>/dev/null 50489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 50490 exec 5>>config.log 50491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 50492 # would make configure fail if this is the last instruction. 50493 $ac_cs_success || as_fn_exit 1 50494 fi 50495 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 50496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 50497 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 50498 fi 50499 50500 50501 # Try to move the config.log file to the output directory. 50502 if test -e ./config.log; then 50503 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 50504 fi 50505 50506 # Make the compare script executable 50507 $CHMOD +x $OUTPUT_ROOT/compare.sh 50508 50509 # Finally output some useful information to the user 50510 50511 # Finally output some useful information to the user 50512 50513 printf "\n" 50514 printf "====================================================\n" 50515 if test "x$no_create" != "xyes"; then 50516 if test "x$IS_RECONFIGURE" != "xyes"; then 50517 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 50518 else 50519 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 50520 fi 50521 else 50522 if test "x$IS_RECONFIGURE" != "xyes"; then 50523 printf "A configuration has been successfully checked but not created\n" 50524 else 50525 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 50526 fi 50527 fi 50528 if test "x$CONFIGURE_COMMAND_LINE" != x; then 50529 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 50530 else 50531 printf "using default settings.\n" 50532 fi 50533 50534 printf "\n" 50535 printf "Configuration summary:\n" 50536 printf "* Debug level: $DEBUG_LEVEL\n" 50537 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 50538 printf "* JDK variant: $JDK_VARIANT\n" 50539 printf "* JVM variants: $with_jvm_variants\n" 50540 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 50541 50542 printf "\n" 50543 printf "Tools summary:\n" 50544 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 50545 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 50546 fi 50547 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 50548 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 50549 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 50550 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 50551 50552 printf "\n" 50553 printf "Build performance summary:\n" 50554 printf "* Cores to use: $JOBS\n" 50555 printf "* Memory limit: $MEMORY_SIZE MB\n" 50556 if test "x$CCACHE_STATUS" != "x"; then 50557 printf "* ccache status: $CCACHE_STATUS\n" 50558 fi 50559 printf "\n" 50560 50561 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 50562 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 50563 printf "will result in longer build times.\n" 50564 printf "\n" 50565 fi 50566 50567 if test "x$FOUND_ALT_VARIABLES" != "x"; then 50568 printf "WARNING: You have old-style ALT_ environment variables set.\n" 50569 printf "These are not respected, and will be ignored. It is recommended\n" 50570 printf "that you clean your environment. The following variables are set:\n" 50571 printf "$FOUND_ALT_VARIABLES\n" 50572 printf "\n" 50573 fi 50574 50575 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 50576 printf "WARNING: Your build output directory is not on a local disk.\n" 50577 printf "This will severely degrade build performance!\n" 50578 printf "It is recommended that you create an output directory on a local disk,\n" 50579 printf "and run the configure script again from that directory.\n" 50580 printf "\n" 50581 fi 50582 50583 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 50584 printf "WARNING: The result of this configuration has overridden an older\n" 50585 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 50586 printf "proper build. Failure to do so might result in strange build problems.\n" 50587 printf "\n" 50588 fi 50589 50590 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 50591 printf "WARNING: The result of this configuration was not saved.\n" 50592 printf "You should run without '--no-create | -n' to create the configuration.\n" 50593 printf "\n" 50594 fi 50595