1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.68 for OpenJDK jdk8. 4 # 5 # Report bugs to <build-dev@openjdk.java.net>. 6 # 7 # 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10 # Foundation, Inc. 11 # 12 # 13 # This configure script is free software; the Free Software Foundation 14 # gives unlimited permission to copy, distribute and modify it. 15 ## -------------------- ## 16 ## M4sh Initialization. ## 17 ## -------------------- ## 18 19 # Be more Bourne compatible 20 DUALCASE=1; export DUALCASE # for MKS sh 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac 35 fi 36 37 38 as_nl=' 39 ' 40 export as_nl 41 # Printing a long string crashes Solaris 7 /usr/bin/printf. 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45 # Prefer a ksh shell builtin over an external printf program on Solaris, 46 # but without wasting forks for bash or zsh. 47 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54 else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74 fi 75 76 # The user is always right. 77 if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83 fi 84 85 86 # IFS 87 # We need space, tab and new line, in precisely that order. Quoting is 88 # there to prevent editors from complaining about space-tab. 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 90 # splitting by setting IFS to empty value.) 91 IFS=" "" $as_nl" 92 93 # Find who we are. Look in the path if we contain no directory separator. 94 as_myself= 95 case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98 for as_dir in $PATH 99 do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104 IFS=$as_save_IFS 105 106 ;; 107 esac 108 # We did not find ourselves, most probably we were run as `sh COMMAND' 109 # in which case we are not to be found in the path. 110 if test "x$as_myself" = x; then 111 as_myself=$0 112 fi 113 if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180 else 181 as_have_required=no 182 fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185 else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187 as_found=false 188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189 do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203 fi 204 fi 205 done;; 206 esac 207 as_found=false 208 done 209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212 fi; } 213 IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232 fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242 $0: build-dev@openjdk.java.net about your system, including 243 $0: any error possibly output before this message. Then 244 $0: install a modern shell, or manually run the script 245 $0: under such a shell if you do have one." 246 fi 247 exit 1 248 fi 249 fi 250 fi 251 SHELL=${CONFIG_SHELL-/bin/sh} 252 export SHELL 253 # Unset more variables known to interfere with behavior of common tools. 254 CLICOLOR_FORCE= GREP_OPTIONS= 255 unset CLICOLOR_FORCE GREP_OPTIONS 256 257 ## --------------------- ## 258 ## M4sh Shell Functions. ## 259 ## --------------------- ## 260 # as_fn_unset VAR 261 # --------------- 262 # Portably unset VAR. 263 as_fn_unset () 264 { 265 { eval $1=; unset $1;} 266 } 267 as_unset=as_fn_unset 268 269 # as_fn_set_status STATUS 270 # ----------------------- 271 # Set $? to STATUS, without forking. 272 as_fn_set_status () 273 { 274 return $1 275 } # as_fn_set_status 276 277 # as_fn_exit STATUS 278 # ----------------- 279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280 as_fn_exit () 281 { 282 set +e 283 as_fn_set_status $1 284 exit $1 285 } # as_fn_exit 286 287 # as_fn_mkdir_p 288 # ------------- 289 # Create "$as_dir" as a directory, including parents if necessary. 290 as_fn_mkdir_p () 291 { 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309 $as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333 } # as_fn_mkdir_p 334 # as_fn_append VAR VALUE 335 # ---------------------- 336 # Append the text in VALUE to the end of the definition contained in VAR. Take 337 # advantage of any shell optimizations that allow amortized linear growth over 338 # repeated appends, instead of the typical quadratic growth present in naive 339 # implementations. 340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345 else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350 fi # as_fn_append 351 352 # as_fn_arith ARG... 353 # ------------------ 354 # Perform arithmetic evaluation on the ARGs, and store the result in the 355 # global $as_val. Take advantage of shells that can avoid forks. The arguments 356 # must be portable across $(()) and expr. 357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362 else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367 fi # as_fn_arith 368 369 370 # as_fn_error STATUS ERROR [LINENO LOG_FD] 371 # ---------------------------------------- 372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374 # script with STATUS, using 1 if that was 0. 375 as_fn_error () 376 { 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384 } # as_fn_error 385 386 if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389 else 390 as_expr=false 391 fi 392 393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395 else 396 as_basename=false 397 fi 398 399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401 else 402 as_dirname=false 403 fi 404 405 as_me=`$as_basename -- "$0" || 406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409 $as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424 # Avoid depending upon Character Ranges. 425 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428 as_cr_digits='0123456789' 429 as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461 } 462 463 ECHO_C= ECHO_N= ECHO_T= 464 case `echo -n x` in #((((( 465 -n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472 *) 473 ECHO_N='-n';; 474 esac 475 476 rm -f conf$$ conf$$.exe conf$$.file 477 if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479 else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482 fi 483 if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497 else 498 as_ln_s='cp -p' 499 fi 500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501 rmdir conf$$.dir 2>/dev/null 502 503 if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505 else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508 fi 509 510 if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512 else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530 fi 531 as_executable_p=$as_test_x 532 533 # Sed expression to map a string onto a valid CPP name. 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536 # Sed expression to map a string onto a valid variable name. 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 test -n "$DJDIR" || exec 7<&0 </dev/null 541 exec 6>&1 542 543 # Name of the host. 544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 545 # so uname gets run too. 546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548 # 549 # Initializations. 550 # 551 ac_default_prefix=/usr/local 552 ac_clean_files= 553 ac_config_libobj_dir=. 554 LIBOBJS= 555 cross_compiling=no 556 subdirs= 557 MFLAGS= 558 MAKEFLAGS= 559 560 # Identity of this package. 561 PACKAGE_NAME='OpenJDK' 562 PACKAGE_TARNAME='openjdk' 563 PACKAGE_VERSION='jdk8' 564 PACKAGE_STRING='OpenJDK jdk8' 565 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 566 PACKAGE_URL='http://openjdk.java.net' 567 568 # Factoring default headers for most tests. 569 ac_includes_default="\ 570 #include <stdio.h> 571 #ifdef HAVE_SYS_TYPES_H 572 # include <sys/types.h> 573 #endif 574 #ifdef HAVE_SYS_STAT_H 575 # include <sys/stat.h> 576 #endif 577 #ifdef STDC_HEADERS 578 # include <stdlib.h> 579 # include <stddef.h> 580 #else 581 # ifdef HAVE_STDLIB_H 582 # include <stdlib.h> 583 # endif 584 #endif 585 #ifdef HAVE_STRING_H 586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 587 # include <memory.h> 588 # endif 589 # include <string.h> 590 #endif 591 #ifdef HAVE_STRINGS_H 592 # include <strings.h> 593 #endif 594 #ifdef HAVE_INTTYPES_H 595 # include <inttypes.h> 596 #endif 597 #ifdef HAVE_STDINT_H 598 # include <stdint.h> 599 #endif 600 #ifdef HAVE_UNISTD_H 601 # include <unistd.h> 602 #endif" 603 604 ac_subst_vars='LTLIBOBJS 605 LIBOBJS 606 CCACHE 607 USE_PRECOMPILED_HEADER 608 SJAVAC_SERVER_DIR 609 ENABLE_SJAVAC 610 SJAVAC_SERVER_CORES 611 SJAVAC_SERVER_JAVA 612 JOBS 613 MEMORY_SIZE 614 NUM_CORES 615 ENABLE_INTREE_EC 616 SALIB_NAME 617 HOTSPOT_MAKE_ARGS 618 FIXPATH 619 LIBCXX 620 LLVM_LIBS 621 LLVM_LDFLAGS 622 LLVM_CFLAGS 623 LLVM_CONFIG 624 LIBFFI_LIBS 625 LIBFFI_CFLAGS 626 STATIC_CXX_SETTING 627 LIBDL 628 LIBM 629 LIBZIP_CAN_USE_MMAP 630 USE_EXTERNAL_LIBZ 631 USE_EXTERNAL_LIBGIF 632 USE_EXTERNAL_LIBJPEG 633 ALSA_LIBS 634 ALSA_CFLAGS 635 FREETYPE2_LIB_PATH 636 USING_SYSTEM_FT_LIB 637 FREETYPE2_LIBS 638 FREETYPE2_CFLAGS 639 CUPS_CFLAGS 640 OPENWIN_HOME 641 X_EXTRA_LIBS 642 X_LIBS 643 X_PRE_LIBS 644 X_CFLAGS 645 XMKMF 646 CXXFLAGS_DEBUG_SYMBOLS 647 CFLAGS_DEBUG_SYMBOLS 648 ZIP_DEBUGINFO_FILES 649 ENABLE_DEBUG_SYMBOLS 650 LDFLAGS_CXX_JDK 651 LDFLAGS_JDKEXE_SUFFIX 652 LDFLAGS_JDKLIB_SUFFIX 653 LDFLAGS_JDKEXE 654 LDFLAGS_JDKLIB 655 CXXFLAGS_JDKEXE 656 CXXFLAGS_JDKLIB 657 CFLAGS_JDKEXE 658 CFLAGS_JDKLIB 659 MACOSX_VERSION_MIN 660 PACKAGE_PATH 661 LEGACY_EXTRA_LDFLAGS 662 LEGACY_EXTRA_CXXFLAGS 663 LEGACY_EXTRA_CFLAGS 664 CXX_FLAG_DEPS 665 C_FLAG_DEPS 666 CXX_O_FLAG_NONE 667 CXX_O_FLAG_NORM 668 CXX_O_FLAG_HI 669 CXX_O_FLAG_HIGHEST 670 C_O_FLAG_NONE 671 C_O_FLAG_NORM 672 C_O_FLAG_HI 673 C_O_FLAG_HIGHEST 674 POST_MCS_CMD 675 POST_STRIP_CMD 676 SET_EXECUTABLE_ORIGIN 677 SET_SHARED_LIBRARY_ORIGIN 678 CXX_FLAG_REORDER 679 C_FLAG_REORDER 680 SET_SHARED_LIBRARY_MAPFILE 681 SET_SHARED_LIBRARY_NAME 682 SHARED_LIBRARY_FLAGS 683 EXE_SUFFIX 684 STATIC_LIBRARY_SUFFIX 685 SHARED_LIBRARY_SUFFIX 686 LIBRARY_PREFIX 687 STATIC_LIBRARY 688 SHARED_LIBRARY 689 OBJ_SUFFIX 690 LIPO 691 ac_ct_OBJDUMP 692 OBJDUMP 693 ac_ct_OBJCOPY 694 OBJCOPY 695 MCS 696 STRIP 697 NM 698 AS 699 CXXCPP 700 CPP 701 COMPILER_TYPE 702 RC_FLAGS 703 DUMPBIN 704 WINAR 705 HOTSPOT_RC 706 HOTSPOT_MT 707 RC 708 MT 709 WINLD 710 HOTSPOT_LD 711 HOTSPOT_CXX 712 ARFLAGS 713 AR 714 LDEXECXX 715 LDCXX 716 LDEXE 717 LD 718 ac_ct_OBJC 719 OBJCFLAGS 720 OBJC 721 ac_ct_CXX 722 CXXFLAGS 723 CXX 724 ac_ct_PROPER_COMPILER_CXX 725 PROPER_COMPILER_CXX 726 POTENTIAL_CXX 727 TOOLS_DIR_CXX 728 OBJEXT 729 EXEEXT 730 ac_ct_CC 731 CPPFLAGS 732 LDFLAGS 733 CFLAGS 734 CC 735 ac_ct_PROPER_COMPILER_CC 736 PROPER_COMPILER_CC 737 POTENTIAL_CC 738 TOOLS_DIR_CC 739 BUILD_LD 740 BUILD_CXX 741 BUILD_CC 742 MSVCR_DLL 743 DXSDK_INCLUDE_PATH 744 DXSDK_LIB_PATH 745 VS_PATH 746 VS_LIB 747 VS_INCLUDE 748 CYGWIN_LINK 749 AR_OUT_OPTION 750 LD_OUT_OPTION 751 EXE_OUT_OPTION 752 CC_OUT_OPTION 753 BUILD_HOTSPOT 754 HOTSPOT_DIST 755 BUILD_OUTPUT 756 OVERRIDE_SRC_ROOT 757 ADD_SRC_ROOT 758 JDK_TOPDIR 759 NASHORN_TOPDIR 760 HOTSPOT_TOPDIR 761 JAXWS_TOPDIR 762 JAXP_TOPDIR 763 CORBA_TOPDIR 764 LANGTOOLS_TOPDIR 765 BOOT_JDK_JVMARGS 766 JAVAC_FLAGS 767 BOOT_JDK_SOURCETARGET 768 BOOT_JDK 769 BOOT_TOOLSJAR 770 BOOT_RTJAR 771 JAVA_CHECK 772 JAVAC_CHECK 773 COOKED_BUILD_NUMBER 774 JDK_VERSION 775 COPYRIGHT_YEAR 776 MACOSX_BUNDLE_ID_BASE 777 MACOSX_BUNDLE_NAME_BASE 778 COMPANY_NAME 779 JDK_RC_PLATFORM_NAME 780 PRODUCT_SUFFIX 781 PRODUCT_NAME 782 LAUNCHER_NAME 783 MILESTONE 784 JDK_BUILD_NUMBER 785 JDK_UPDATE_VERSION 786 JDK_MICRO_VERSION 787 JDK_MINOR_VERSION 788 JDK_MAJOR_VERSION 789 USER_RELEASE_SUFFIX 790 COMPRESS_JARS 791 UNLIMITED_CRYPTO 792 CACERTS_FILE 793 TEST_IN_BUILD 794 BUILD_HEADLESS 795 SUPPORT_HEADFUL 796 SUPPORT_HEADLESS 797 BDEPS_FTP 798 BDEPS_UNZIP 799 OS_VERSION_MICRO 800 OS_VERSION_MINOR 801 OS_VERSION_MAJOR 802 PKG_CONFIG 803 TIME 804 STAT 805 HG 806 READELF 807 OTOOL 808 LDD 809 ZIP 810 UNZIP 811 FIND_DELETE 812 MAKE 813 CHECK_TOOLSDIR_MAKE 814 CHECK_TOOLSDIR_GMAKE 815 CHECK_MAKE 816 CHECK_GMAKE 817 PKGHANDLER 818 OUTPUT_ROOT 819 CONF_NAME 820 SPEC 821 BUILD_VARIANT_RELEASE 822 DEBUG_CLASSFILES 823 FASTDEBUG 824 VARIANT 825 DEBUG_LEVEL 826 MACOSX_UNIVERSAL 827 INCLUDE_SA 828 JVM_VARIANT_ZEROSHARK 829 JVM_VARIANT_ZERO 830 JVM_VARIANT_KERNEL 831 JVM_VARIANT_MINIMAL1 832 JVM_VARIANT_CLIENT 833 JVM_VARIANT_SERVER 834 JVM_VARIANTS 835 JDK_VARIANT 836 SET_OPENJDK 837 BUILD_LOG_WRAPPER 838 BUILD_LOG_PREVIOUS 839 BUILD_LOG 840 SYS_ROOT 841 PATH_SEP 842 SRC_ROOT 843 ZERO_ARCHDEF 844 ZERO_ARCHFLAG 845 DEFINE_CROSS_COMPILE_ARCH 846 LP64 847 OPENJDK_TARGET_OS_API_DIR 848 OPENJDK_TARGET_CPU_JLI_CFLAGS 849 OPENJDK_TARGET_CPU_OSARCH 850 OPENJDK_TARGET_CPU_ISADIR 851 OPENJDK_TARGET_CPU_LIBDIR 852 OPENJDK_TARGET_CPU_LEGACY_LIB 853 OPENJDK_TARGET_CPU_LEGACY 854 REQUIRED_OS_VERSION 855 REQUIRED_OS_NAME 856 COMPILE_TYPE 857 OPENJDK_TARGET_CPU_ENDIAN 858 OPENJDK_TARGET_CPU_BITS 859 OPENJDK_TARGET_CPU_ARCH 860 OPENJDK_TARGET_CPU 861 OPENJDK_TARGET_OS_API 862 OPENJDK_TARGET_OS 863 OPENJDK_BUILD_CPU_ENDIAN 864 OPENJDK_BUILD_CPU_BITS 865 OPENJDK_BUILD_CPU_ARCH 866 OPENJDK_BUILD_CPU 867 OPENJDK_BUILD_OS_API 868 OPENJDK_BUILD_OS 869 OPENJDK_BUILD_AUTOCONF_NAME 870 OPENJDK_TARGET_AUTOCONF_NAME 871 target_os 872 target_vendor 873 target_cpu 874 target 875 host_os 876 host_vendor 877 host_cpu 878 host 879 build_os 880 build_vendor 881 build_cpu 882 build 883 SETFILE 884 DF 885 READLINK 886 CYGPATH 887 NAWK 888 SED 889 FGREP 890 EGREP 891 GREP 892 AWK 893 XARGS 894 WHICH 895 WC 896 UNIQ 897 UNAME 898 TR 899 TOUCH 900 TEE 901 TAR 902 TAIL 903 SORT 904 SH 905 RM 906 THEPWDCMD 907 PRINTF 908 MV 909 MKTEMP 910 MKDIR 911 LS 912 LN 913 HEAD 914 FIND 915 FILE 916 EXPR 917 ECHO 918 DIRNAME 919 DIFF 920 DATE 921 CUT 922 CPIO 923 CP 924 COMM 925 CMP 926 CHMOD 927 CAT 928 BASH 929 BASENAME 930 DATE_WHEN_CONFIGURED 931 CONFIGURE_COMMAND_LINE 932 CUSTOM_MAKE_DIR 933 target_alias 934 host_alias 935 build_alias 936 LIBS 937 ECHO_T 938 ECHO_N 939 ECHO_C 940 DEFS 941 mandir 942 localedir 943 libdir 944 psdir 945 pdfdir 946 dvidir 947 htmldir 948 infodir 949 docdir 950 oldincludedir 951 includedir 952 localstatedir 953 sharedstatedir 954 sysconfdir 955 datadir 956 datarootdir 957 libexecdir 958 sbindir 959 bindir 960 program_transform_name 961 prefix 962 exec_prefix 963 PACKAGE_URL 964 PACKAGE_BUGREPORT 965 PACKAGE_STRING 966 PACKAGE_VERSION 967 PACKAGE_TARNAME 968 PACKAGE_NAME 969 PATH_SEPARATOR 970 SHELL' 971 ac_subst_files='' 972 ac_user_opts=' 973 enable_option_checking 974 with_custom_make_dir 975 with_target_bits 976 with_sys_root 977 with_tools_dir 978 with_devkit 979 enable_openjdk_only 980 with_jdk_variant 981 with_jvm_variants 982 enable_debug 983 with_debug_level 984 with_conf_name 985 with_builddeps_conf 986 with_builddeps_server 987 with_builddeps_dir 988 with_builddeps_group 989 enable_headful 990 enable_hotspot_test_in_build 991 with_cacerts_file 992 enable_unlimited_crypto 993 with_milestone 994 with_build_number 995 with_user_release_suffix 996 with_boot_jdk 997 with_boot_jdk_jvmargs 998 with_add_source_root 999 with_override_source_root 1000 with_adds_and_overrides 1001 with_override_langtools 1002 with_override_corba 1003 with_override_jaxp 1004 with_override_jaxws 1005 with_override_hotspot 1006 with_override_jdk 1007 with_import_hotspot 1008 with_msvcr_dll 1009 with_dxsdk 1010 with_dxsdk_lib 1011 with_dxsdk_include 1012 with_extra_cflags 1013 with_extra_cxxflags 1014 with_extra_ldflags 1015 enable_debug_symbols 1016 enable_zip_debug_info 1017 enable_macosx_runtime_support 1018 with_x 1019 with_cups 1020 with_cups_include 1021 with_freetype 1022 with_alsa 1023 with_alsa_include 1024 with_alsa_lib 1025 with_giflib 1026 with_zlib 1027 with_stdc__lib 1028 with_num_cores 1029 with_memory_size 1030 with_jobs 1031 with_sjavac_server_java 1032 with_sjavac_server_cores 1033 enable_sjavac 1034 enable_precompiled_headers 1035 enable_ccache 1036 with_ccache_dir 1037 ' 1038 ac_precious_vars='build_alias 1039 host_alias 1040 target_alias 1041 PKG_CONFIG 1042 CC 1043 CFLAGS 1044 LDFLAGS 1045 LIBS 1046 CPPFLAGS 1047 CXX 1048 CXXFLAGS 1049 CCC 1050 OBJC 1051 OBJCFLAGS 1052 CPP 1053 CXXCPP 1054 XMKMF 1055 FREETYPE2_CFLAGS 1056 FREETYPE2_LIBS 1057 ALSA_CFLAGS 1058 ALSA_LIBS 1059 LIBFFI_CFLAGS 1060 LIBFFI_LIBS' 1061 1062 1063 # Initialize some variables set by options. 1064 ac_init_help= 1065 ac_init_version=false 1066 ac_unrecognized_opts= 1067 ac_unrecognized_sep= 1068 # The variables have the same names as the options, with 1069 # dashes changed to underlines. 1070 cache_file=/dev/null 1071 exec_prefix=NONE 1072 no_create= 1073 no_recursion= 1074 prefix=NONE 1075 program_prefix=NONE 1076 program_suffix=NONE 1077 program_transform_name=s,x,x, 1078 silent= 1079 site= 1080 srcdir= 1081 verbose= 1082 x_includes=NONE 1083 x_libraries=NONE 1084 1085 # Installation directory options. 1086 # These are left unexpanded so users can "make install exec_prefix=/foo" 1087 # and all the variables that are supposed to be based on exec_prefix 1088 # by default will actually change. 1089 # Use braces instead of parens because sh, perl, etc. also accept them. 1090 # (The list follows the same order as the GNU Coding Standards.) 1091 bindir='${exec_prefix}/bin' 1092 sbindir='${exec_prefix}/sbin' 1093 libexecdir='${exec_prefix}/libexec' 1094 datarootdir='${prefix}/share' 1095 datadir='${datarootdir}' 1096 sysconfdir='${prefix}/etc' 1097 sharedstatedir='${prefix}/com' 1098 localstatedir='${prefix}/var' 1099 includedir='${prefix}/include' 1100 oldincludedir='/usr/include' 1101 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1102 infodir='${datarootdir}/info' 1103 htmldir='${docdir}' 1104 dvidir='${docdir}' 1105 pdfdir='${docdir}' 1106 psdir='${docdir}' 1107 libdir='${exec_prefix}/lib' 1108 localedir='${datarootdir}/locale' 1109 mandir='${datarootdir}/man' 1110 1111 ac_prev= 1112 ac_dashdash= 1113 for ac_option 1114 do 1115 # If the previous option needs an argument, assign it. 1116 if test -n "$ac_prev"; then 1117 eval $ac_prev=\$ac_option 1118 ac_prev= 1119 continue 1120 fi 1121 1122 case $ac_option in 1123 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1124 *=) ac_optarg= ;; 1125 *) ac_optarg=yes ;; 1126 esac 1127 1128 # Accept the important Cygnus configure options, so we can diagnose typos. 1129 1130 case $ac_dashdash$ac_option in 1131 --) 1132 ac_dashdash=yes ;; 1133 1134 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1135 ac_prev=bindir ;; 1136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1137 bindir=$ac_optarg ;; 1138 1139 -build | --build | --buil | --bui | --bu) 1140 ac_prev=build_alias ;; 1141 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1142 build_alias=$ac_optarg ;; 1143 1144 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1146 ac_prev=cache_file ;; 1147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1149 cache_file=$ac_optarg ;; 1150 1151 --config-cache | -C) 1152 cache_file=config.cache ;; 1153 1154 -datadir | --datadir | --datadi | --datad) 1155 ac_prev=datadir ;; 1156 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1157 datadir=$ac_optarg ;; 1158 1159 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1160 | --dataroo | --dataro | --datar) 1161 ac_prev=datarootdir ;; 1162 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1163 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1164 datarootdir=$ac_optarg ;; 1165 1166 -disable-* | --disable-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid feature name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175 "enable_$ac_useropt" 1176 "*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval enable_$ac_useropt=no ;; 1181 1182 -docdir | --docdir | --docdi | --doc | --do) 1183 ac_prev=docdir ;; 1184 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1185 docdir=$ac_optarg ;; 1186 1187 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1188 ac_prev=dvidir ;; 1189 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1190 dvidir=$ac_optarg ;; 1191 1192 -enable-* | --enable-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid feature name: $ac_useropt" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201 "enable_$ac_useropt" 1202 "*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval enable_$ac_useropt=\$ac_optarg ;; 1207 1208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1210 | --exec | --exe | --ex) 1211 ac_prev=exec_prefix ;; 1212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1214 | --exec=* | --exe=* | --ex=*) 1215 exec_prefix=$ac_optarg ;; 1216 1217 -gas | --gas | --ga | --g) 1218 # Obsolete; use --with-gas. 1219 with_gas=yes ;; 1220 1221 -help | --help | --hel | --he | -h) 1222 ac_init_help=long ;; 1223 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1224 ac_init_help=recursive ;; 1225 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1226 ac_init_help=short ;; 1227 1228 -host | --host | --hos | --ho) 1229 ac_prev=host_alias ;; 1230 -host=* | --host=* | --hos=* | --ho=*) 1231 host_alias=$ac_optarg ;; 1232 1233 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1234 ac_prev=htmldir ;; 1235 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1236 | --ht=*) 1237 htmldir=$ac_optarg ;; 1238 1239 -includedir | --includedir | --includedi | --included | --include \ 1240 | --includ | --inclu | --incl | --inc) 1241 ac_prev=includedir ;; 1242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1243 | --includ=* | --inclu=* | --incl=* | --inc=*) 1244 includedir=$ac_optarg ;; 1245 1246 -infodir | --infodir | --infodi | --infod | --info | --inf) 1247 ac_prev=infodir ;; 1248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1249 infodir=$ac_optarg ;; 1250 1251 -libdir | --libdir | --libdi | --libd) 1252 ac_prev=libdir ;; 1253 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1254 libdir=$ac_optarg ;; 1255 1256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1257 | --libexe | --libex | --libe) 1258 ac_prev=libexecdir ;; 1259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1260 | --libexe=* | --libex=* | --libe=*) 1261 libexecdir=$ac_optarg ;; 1262 1263 -localedir | --localedir | --localedi | --localed | --locale) 1264 ac_prev=localedir ;; 1265 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1266 localedir=$ac_optarg ;; 1267 1268 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1269 | --localstate | --localstat | --localsta | --localst | --locals) 1270 ac_prev=localstatedir ;; 1271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1272 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1273 localstatedir=$ac_optarg ;; 1274 1275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1276 ac_prev=mandir ;; 1277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1278 mandir=$ac_optarg ;; 1279 1280 -nfp | --nfp | --nf) 1281 # Obsolete; use --without-fp. 1282 with_fp=no ;; 1283 1284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1285 | --no-cr | --no-c | -n) 1286 no_create=yes ;; 1287 1288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1290 no_recursion=yes ;; 1291 1292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1294 | --oldin | --oldi | --old | --ol | --o) 1295 ac_prev=oldincludedir ;; 1296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1299 oldincludedir=$ac_optarg ;; 1300 1301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1302 ac_prev=prefix ;; 1303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1304 prefix=$ac_optarg ;; 1305 1306 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1307 | --program-pre | --program-pr | --program-p) 1308 ac_prev=program_prefix ;; 1309 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1311 program_prefix=$ac_optarg ;; 1312 1313 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1314 | --program-suf | --program-su | --program-s) 1315 ac_prev=program_suffix ;; 1316 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1318 program_suffix=$ac_optarg ;; 1319 1320 -program-transform-name | --program-transform-name \ 1321 | --program-transform-nam | --program-transform-na \ 1322 | --program-transform-n | --program-transform- \ 1323 | --program-transform | --program-transfor \ 1324 | --program-transfo | --program-transf \ 1325 | --program-trans | --program-tran \ 1326 | --progr-tra | --program-tr | --program-t) 1327 ac_prev=program_transform_name ;; 1328 -program-transform-name=* | --program-transform-name=* \ 1329 | --program-transform-nam=* | --program-transform-na=* \ 1330 | --program-transform-n=* | --program-transform-=* \ 1331 | --program-transform=* | --program-transfor=* \ 1332 | --program-transfo=* | --program-transf=* \ 1333 | --program-trans=* | --program-tran=* \ 1334 | --progr-tra=* | --program-tr=* | --program-t=*) 1335 program_transform_name=$ac_optarg ;; 1336 1337 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1338 ac_prev=pdfdir ;; 1339 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1340 pdfdir=$ac_optarg ;; 1341 1342 -psdir | --psdir | --psdi | --psd | --ps) 1343 ac_prev=psdir ;; 1344 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1345 psdir=$ac_optarg ;; 1346 1347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1348 | -silent | --silent | --silen | --sile | --sil) 1349 silent=yes ;; 1350 1351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1352 ac_prev=sbindir ;; 1353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1354 | --sbi=* | --sb=*) 1355 sbindir=$ac_optarg ;; 1356 1357 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1359 | --sharedst | --shareds | --shared | --share | --shar \ 1360 | --sha | --sh) 1361 ac_prev=sharedstatedir ;; 1362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1365 | --sha=* | --sh=*) 1366 sharedstatedir=$ac_optarg ;; 1367 1368 -site | --site | --sit) 1369 ac_prev=site ;; 1370 -site=* | --site=* | --sit=*) 1371 site=$ac_optarg ;; 1372 1373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1374 ac_prev=srcdir ;; 1375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1376 srcdir=$ac_optarg ;; 1377 1378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1379 | --syscon | --sysco | --sysc | --sys | --sy) 1380 ac_prev=sysconfdir ;; 1381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1383 sysconfdir=$ac_optarg ;; 1384 1385 -target | --target | --targe | --targ | --tar | --ta | --t) 1386 ac_prev=target_alias ;; 1387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1388 target_alias=$ac_optarg ;; 1389 1390 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1391 verbose=yes ;; 1392 1393 -version | --version | --versio | --versi | --vers | -V) 1394 ac_init_version=: ;; 1395 1396 -with-* | --with-*) 1397 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1398 # Reject names that are not valid shell variable names. 1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1400 as_fn_error $? "invalid package name: $ac_useropt" 1401 ac_useropt_orig=$ac_useropt 1402 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1403 case $ac_user_opts in 1404 *" 1405 "with_$ac_useropt" 1406 "*) ;; 1407 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1408 ac_unrecognized_sep=', ';; 1409 esac 1410 eval with_$ac_useropt=\$ac_optarg ;; 1411 1412 -without-* | --without-*) 1413 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1414 # Reject names that are not valid shell variable names. 1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1416 as_fn_error $? "invalid package name: $ac_useropt" 1417 ac_useropt_orig=$ac_useropt 1418 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1419 case $ac_user_opts in 1420 *" 1421 "with_$ac_useropt" 1422 "*) ;; 1423 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1424 ac_unrecognized_sep=', ';; 1425 esac 1426 eval with_$ac_useropt=no ;; 1427 1428 --x) 1429 # Obsolete; use --with-x. 1430 with_x=yes ;; 1431 1432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1433 | --x-incl | --x-inc | --x-in | --x-i) 1434 ac_prev=x_includes ;; 1435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1437 x_includes=$ac_optarg ;; 1438 1439 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1441 ac_prev=x_libraries ;; 1442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1444 x_libraries=$ac_optarg ;; 1445 1446 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1447 Try \`$0 --help' for more information" 1448 ;; 1449 1450 *=*) 1451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1452 # Reject names that are not valid shell variable names. 1453 case $ac_envvar in #( 1454 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1455 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1456 esac 1457 eval $ac_envvar=\$ac_optarg 1458 export $ac_envvar ;; 1459 1460 *) 1461 # FIXME: should be removed in autoconf 3.0. 1462 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1464 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1465 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1466 ;; 1467 1468 esac 1469 done 1470 1471 if test -n "$ac_prev"; then 1472 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1473 as_fn_error $? "missing argument to $ac_option" 1474 fi 1475 1476 if test -n "$ac_unrecognized_opts"; then 1477 case $enable_option_checking in 1478 no) ;; 1479 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1480 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1481 esac 1482 fi 1483 1484 # Check all directory arguments for consistency. 1485 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1486 datadir sysconfdir sharedstatedir localstatedir includedir \ 1487 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1488 libdir localedir mandir 1489 do 1490 eval ac_val=\$$ac_var 1491 # Remove trailing slashes. 1492 case $ac_val in 1493 */ ) 1494 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1495 eval $ac_var=\$ac_val;; 1496 esac 1497 # Be sure to have absolute directory names. 1498 case $ac_val in 1499 [\\/$]* | ?:[\\/]* ) continue;; 1500 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1501 esac 1502 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1503 done 1504 1505 # There might be people who depend on the old broken behavior: `$host' 1506 # used to hold the argument of --host etc. 1507 # FIXME: To remove some day. 1508 build=$build_alias 1509 host=$host_alias 1510 target=$target_alias 1511 1512 # FIXME: To remove some day. 1513 if test "x$host_alias" != x; then 1514 if test "x$build_alias" = x; then 1515 cross_compiling=maybe 1516 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1517 If a cross compiler is detected then cross compile mode will be used" >&2 1518 elif test "x$build_alias" != "x$host_alias"; then 1519 cross_compiling=yes 1520 fi 1521 fi 1522 1523 ac_tool_prefix= 1524 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1525 1526 test "$silent" = yes && exec 6>/dev/null 1527 1528 1529 ac_pwd=`pwd` && test -n "$ac_pwd" && 1530 ac_ls_di=`ls -di .` && 1531 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1532 as_fn_error $? "working directory cannot be determined" 1533 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1534 as_fn_error $? "pwd does not report name of working directory" 1535 1536 1537 # Find the source files, if location was not specified. 1538 if test -z "$srcdir"; then 1539 ac_srcdir_defaulted=yes 1540 # Try the directory containing this script, then the parent directory. 1541 ac_confdir=`$as_dirname -- "$as_myself" || 1542 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1543 X"$as_myself" : 'X\(//\)[^/]' \| \ 1544 X"$as_myself" : 'X\(//\)$' \| \ 1545 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1546 $as_echo X"$as_myself" | 1547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1548 s//\1/ 1549 q 1550 } 1551 /^X\(\/\/\)[^/].*/{ 1552 s//\1/ 1553 q 1554 } 1555 /^X\(\/\/\)$/{ 1556 s//\1/ 1557 q 1558 } 1559 /^X\(\/\).*/{ 1560 s//\1/ 1561 q 1562 } 1563 s/.*/./; q'` 1564 srcdir=$ac_confdir 1565 if test ! -r "$srcdir/$ac_unique_file"; then 1566 srcdir=.. 1567 fi 1568 else 1569 ac_srcdir_defaulted=no 1570 fi 1571 if test ! -r "$srcdir/$ac_unique_file"; then 1572 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1573 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1574 fi 1575 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1576 ac_abs_confdir=`( 1577 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1578 pwd)` 1579 # When building in place, set srcdir=. 1580 if test "$ac_abs_confdir" = "$ac_pwd"; then 1581 srcdir=. 1582 fi 1583 # Remove unnecessary trailing slashes from srcdir. 1584 # Double slashes in file names in object file debugging info 1585 # mess up M-x gdb in Emacs. 1586 case $srcdir in 1587 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1588 esac 1589 for ac_var in $ac_precious_vars; do 1590 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1591 eval ac_env_${ac_var}_value=\$${ac_var} 1592 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1593 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1594 done 1595 1596 # 1597 # Report the --help message. 1598 # 1599 if test "$ac_init_help" = "long"; then 1600 # Omit some internal or obsolete options to make the list less imposing. 1601 # This message is too long to be a string in the A/UX 3.1 sh. 1602 cat <<_ACEOF 1603 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1604 1605 Usage: $0 [OPTION]... [VAR=VALUE]... 1606 1607 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1608 VAR=VALUE. See below for descriptions of some of the useful variables. 1609 1610 Defaults for the options are specified in brackets. 1611 1612 Configuration: 1613 -h, --help display this help and exit 1614 --help=short display options specific to this package 1615 --help=recursive display the short help of all the included packages 1616 -V, --version display version information and exit 1617 -q, --quiet, --silent do not print \`checking ...' messages 1618 --cache-file=FILE cache test results in FILE [disabled] 1619 -C, --config-cache alias for \`--cache-file=config.cache' 1620 -n, --no-create do not create output files 1621 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1622 1623 Installation directories: 1624 --prefix=PREFIX install architecture-independent files in PREFIX 1625 [$ac_default_prefix] 1626 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1627 [PREFIX] 1628 1629 By default, \`make install' will install all the files in 1630 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1631 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1632 for instance \`--prefix=\$HOME'. 1633 1634 For better control, use the options below. 1635 1636 Fine tuning of the installation directories: 1637 --bindir=DIR user executables [EPREFIX/bin] 1638 --sbindir=DIR system admin executables [EPREFIX/sbin] 1639 --libexecdir=DIR program executables [EPREFIX/libexec] 1640 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1641 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1642 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1643 --libdir=DIR object code libraries [EPREFIX/lib] 1644 --includedir=DIR C header files [PREFIX/include] 1645 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1646 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1647 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1648 --infodir=DIR info documentation [DATAROOTDIR/info] 1649 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1650 --mandir=DIR man documentation [DATAROOTDIR/man] 1651 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1652 --htmldir=DIR html documentation [DOCDIR] 1653 --dvidir=DIR dvi documentation [DOCDIR] 1654 --pdfdir=DIR pdf documentation [DOCDIR] 1655 --psdir=DIR ps documentation [DOCDIR] 1656 _ACEOF 1657 1658 cat <<\_ACEOF 1659 1660 X features: 1661 --x-includes=DIR X include files are in DIR 1662 --x-libraries=DIR X library files are in DIR 1663 1664 System types: 1665 --build=BUILD configure for building on BUILD [guessed] 1666 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1667 --target=TARGET configure for building compilers for TARGET [HOST] 1668 _ACEOF 1669 fi 1670 1671 if test -n "$ac_init_help"; then 1672 case $ac_init_help in 1673 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1674 esac 1675 cat <<\_ACEOF 1676 1677 Optional Features: 1678 --disable-option-checking ignore unrecognized --enable/--with options 1679 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1680 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1681 --enable-openjdk-only suppress building custom source even if present 1682 [disabled] 1683 --enable-debug set the debug level to fastdebug (shorthand for 1684 --with-debug-level=fastdebug) [disabled] 1685 --disable-headful disable building headful support (graphical UI 1686 support) [enabled] 1687 --enable-hotspot-test-in-build 1688 run the Queens test after Hotspot build [disabled] 1689 --enable-unlimited-crypto 1690 Enable unlimited crypto policy [disabled] 1691 --disable-debug-symbols disable generation of debug symbols [enabled] 1692 --disable-zip-debug-info 1693 disable zipping of debug-info files [enabled] 1694 --disable-macosx-runtime-support 1695 disable the use of MacOSX Java runtime support 1696 framework [enabled] 1697 --enable-sjavac use sjavac to do fast incremental compiles 1698 [disabled] 1699 --disable-precompiled-headers 1700 disable using precompiled headers when compiling C++ 1701 [enabled] 1702 --disable-ccache disable using ccache to speed up recompilations 1703 [enabled] 1704 1705 Optional Packages: 1706 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1707 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1708 --with-custom-make-dir use this directory for custom build/make files 1709 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1710 support it), e.g. --with-target-bits=32 [guessed] 1711 --with-sys-root pass this sys-root to the compilers and tools (for 1712 cross-compiling) 1713 --with-tools-dir search this directory for compilers and tools (for 1714 cross-compiling) 1715 --with-devkit use this directory as base for tools-dir and 1716 sys-root (for cross-compiling) 1717 --with-jdk-variant JDK variant to build (normal) [normal] 1718 --with-jvm-variants JVM variants (separated by commas) to build (server, 1719 client, minimal1, kernel, zero, zeroshark) [server] 1720 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1721 [release] 1722 --with-conf-name use this as the name of the configuration [generated 1723 from important configuration options] 1724 --with-builddeps-conf use this configuration file for the builddeps 1725 --with-builddeps-server download and use build dependencies from this server 1726 url 1727 --with-builddeps-dir store downloaded build dependencies here 1728 [/localhome/builddeps] 1729 --with-builddeps-group chgrp the downloaded build dependencies to this 1730 group 1731 --with-cacerts-file specify alternative cacerts file 1732 --with-milestone Set milestone value for build [internal] 1733 --with-build-number Set build number value for build [b00] 1734 --with-user-release-suffix 1735 Add a custom string to the version string if build 1736 number isn't set.[username_builddateb00] 1737 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1738 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1739 invocations of the Boot JDK, overriding the default 1740 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1741 -enableassertions" 1742 --with-add-source-root for each and every source directory, look in this 1743 additional source root for the same directory; if it 1744 exists and have files in it, include it in the build 1745 --with-override-source-root 1746 for each and every source directory, look in this 1747 override source root for the same directory; if it 1748 exists, use that directory instead and ignore the 1749 directory in the original source root 1750 --with-adds-and-overrides 1751 use the subdirs 'adds' and 'overrides' in the 1752 specified directory as add-source-root and 1753 override-source-root 1754 --with-override-langtools 1755 use this langtools dir for the build 1756 --with-override-corba use this corba dir for the build 1757 --with-override-jaxp use this jaxp dir for the build 1758 --with-override-jaxws use this jaxws dir for the build 1759 --with-override-hotspot use this hotspot dir for the build 1760 --with-override-jdk use this jdk dir for the build 1761 --with-import-hotspot import hotspot binaries from this jdk image or 1762 hotspot build dist dir instead of building from 1763 source 1764 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1765 only) [probed] 1766 --with-dxsdk the DirectX SDK (Windows only) [probed] 1767 --with-dxsdk-lib the DirectX SDK lib directory (Windows only) 1768 [probed] 1769 --with-dxsdk-include the DirectX SDK include directory (Windows only) 1770 [probed] 1771 --with-extra-cflags extra flags to be used when compiling jdk c-files 1772 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1773 --with-extra-ldflags extra flags to be used when linking jdk 1774 --with-x use the X Window System 1775 --with-cups specify prefix directory for the cups package 1776 (expecting the headers under PATH/include) 1777 --with-cups-include specify directory for the cups include files 1778 --with-freetype specify prefix directory for the freetype2 package 1779 (expecting the libraries under PATH/lib and the 1780 headers under PATH/include) 1781 --with-alsa specify prefix directory for the alsa package 1782 (expecting the libraries under PATH/lib and the 1783 headers under PATH/include) 1784 --with-alsa-include specify directory for the alsa include files 1785 --with-alsa-lib specify directory for the alsa library 1786 --with-giflib use giflib from build system or OpenJDK source 1787 (system, bundled) [bundled] 1788 --with-zlib use zlib from build system or OpenJDK source 1789 (system, bundled) [bundled] 1790 --with-stdc++lib=<static>,<dynamic>,<default> 1791 force linking of the C++ runtime on Linux to either 1792 static or dynamic, default is static with dynamic as 1793 fallback 1794 --with-num-cores number of cores in the build system, e.g. 1795 --with-num-cores=8 [probed] 1796 --with-memory-size memory (in MB) available in the build system, e.g. 1797 --with-memory-size=1024 [probed] 1798 --with-jobs number of parallel jobs to let make run [calculated 1799 based on cores and memory] 1800 --with-sjavac-server-java 1801 use this java binary for running the sjavac 1802 background server [Boot JDK java] 1803 --with-sjavac-server-cores 1804 use at most this number of concurrent threads on the 1805 sjavac server [probed] 1806 --with-ccache-dir where to store ccache files [~/.ccache] 1807 1808 Some influential environment variables: 1809 PKG_CONFIG path to pkg-config utility 1810 CC C compiler command 1811 CFLAGS C compiler flags 1812 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1813 nonstandard directory <lib dir> 1814 LIBS libraries to pass to the linker, e.g. -l<library> 1815 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1816 you have headers in a nonstandard directory <include dir> 1817 CXX C++ compiler command 1818 CXXFLAGS C++ compiler flags 1819 OBJC Objective C compiler command 1820 OBJCFLAGS Objective C compiler flags 1821 CPP C preprocessor 1822 CXXCPP C++ preprocessor 1823 XMKMF Path to xmkmf, Makefile generator for X Window System 1824 FREETYPE2_CFLAGS 1825 C compiler flags for FREETYPE2, overriding pkg-config 1826 FREETYPE2_LIBS 1827 linker flags for FREETYPE2, overriding pkg-config 1828 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 1829 ALSA_LIBS linker flags for ALSA, overriding pkg-config 1830 LIBFFI_CFLAGS 1831 C compiler flags for LIBFFI, overriding pkg-config 1832 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 1833 1834 Use these variables to override the choices made by `configure' or to help 1835 it to find libraries and programs with nonstandard names/locations. 1836 1837 Report bugs to <build-dev@openjdk.java.net>. 1838 OpenJDK home page: <http://openjdk.java.net>. 1839 _ACEOF 1840 ac_status=$? 1841 fi 1842 1843 if test "$ac_init_help" = "recursive"; then 1844 # If there are subdirs, report their specific --help. 1845 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1846 test -d "$ac_dir" || 1847 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1848 continue 1849 ac_builddir=. 1850 1851 case "$ac_dir" in 1852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1853 *) 1854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1855 # A ".." for each directory in $ac_dir_suffix. 1856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1857 case $ac_top_builddir_sub in 1858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1860 esac ;; 1861 esac 1862 ac_abs_top_builddir=$ac_pwd 1863 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1864 # for backward compatibility: 1865 ac_top_builddir=$ac_top_build_prefix 1866 1867 case $srcdir in 1868 .) # We are building in place. 1869 ac_srcdir=. 1870 ac_top_srcdir=$ac_top_builddir_sub 1871 ac_abs_top_srcdir=$ac_pwd ;; 1872 [\\/]* | ?:[\\/]* ) # Absolute name. 1873 ac_srcdir=$srcdir$ac_dir_suffix; 1874 ac_top_srcdir=$srcdir 1875 ac_abs_top_srcdir=$srcdir ;; 1876 *) # Relative name. 1877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1878 ac_top_srcdir=$ac_top_build_prefix$srcdir 1879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1880 esac 1881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1882 1883 cd "$ac_dir" || { ac_status=$?; continue; } 1884 # Check for guested configure. 1885 if test -f "$ac_srcdir/configure.gnu"; then 1886 echo && 1887 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1888 elif test -f "$ac_srcdir/configure"; then 1889 echo && 1890 $SHELL "$ac_srcdir/configure" --help=recursive 1891 else 1892 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1893 fi || ac_status=$? 1894 cd "$ac_pwd" || { ac_status=$?; break; } 1895 done 1896 fi 1897 1898 test -n "$ac_init_help" && exit $ac_status 1899 if $ac_init_version; then 1900 cat <<\_ACEOF 1901 OpenJDK configure jdk8 1902 generated by GNU Autoconf 2.68 1903 1904 Copyright (C) 2010 Free Software Foundation, Inc. 1905 This configure script is free software; the Free Software Foundation 1906 gives unlimited permission to copy, distribute and modify it. 1907 _ACEOF 1908 exit 1909 fi 1910 1911 ## ------------------------ ## 1912 ## Autoconf initialization. ## 1913 ## ------------------------ ## 1914 1915 # ac_fn_c_try_compile LINENO 1916 # -------------------------- 1917 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1918 ac_fn_c_try_compile () 1919 { 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 rm -f conftest.$ac_objext 1922 if { { ac_try="$ac_compile" 1923 case "(($ac_try" in 1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1925 *) ac_try_echo=$ac_try;; 1926 esac 1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1928 $as_echo "$ac_try_echo"; } >&5 1929 (eval "$ac_compile") 2>conftest.err 1930 ac_status=$? 1931 if test -s conftest.err; then 1932 grep -v '^ *+' conftest.err >conftest.er1 1933 cat conftest.er1 >&5 1934 mv -f conftest.er1 conftest.err 1935 fi 1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1937 test $ac_status = 0; } && { 1938 test -z "$ac_c_werror_flag" || 1939 test ! -s conftest.err 1940 } && test -s conftest.$ac_objext; then : 1941 ac_retval=0 1942 else 1943 $as_echo "$as_me: failed program was:" >&5 1944 sed 's/^/| /' conftest.$ac_ext >&5 1945 1946 ac_retval=1 1947 fi 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1949 as_fn_set_status $ac_retval 1950 1951 } # ac_fn_c_try_compile 1952 1953 # ac_fn_cxx_try_compile LINENO 1954 # ---------------------------- 1955 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1956 ac_fn_cxx_try_compile () 1957 { 1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1959 rm -f conftest.$ac_objext 1960 if { { ac_try="$ac_compile" 1961 case "(($ac_try" in 1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1963 *) ac_try_echo=$ac_try;; 1964 esac 1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1966 $as_echo "$ac_try_echo"; } >&5 1967 (eval "$ac_compile") 2>conftest.err 1968 ac_status=$? 1969 if test -s conftest.err; then 1970 grep -v '^ *+' conftest.err >conftest.er1 1971 cat conftest.er1 >&5 1972 mv -f conftest.er1 conftest.err 1973 fi 1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1975 test $ac_status = 0; } && { 1976 test -z "$ac_cxx_werror_flag" || 1977 test ! -s conftest.err 1978 } && test -s conftest.$ac_objext; then : 1979 ac_retval=0 1980 else 1981 $as_echo "$as_me: failed program was:" >&5 1982 sed 's/^/| /' conftest.$ac_ext >&5 1983 1984 ac_retval=1 1985 fi 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 as_fn_set_status $ac_retval 1988 1989 } # ac_fn_cxx_try_compile 1990 1991 # ac_fn_objc_try_compile LINENO 1992 # ----------------------------- 1993 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1994 ac_fn_objc_try_compile () 1995 { 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 rm -f conftest.$ac_objext 1998 if { { ac_try="$ac_compile" 1999 case "(($ac_try" in 2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2001 *) ac_try_echo=$ac_try;; 2002 esac 2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2004 $as_echo "$ac_try_echo"; } >&5 2005 (eval "$ac_compile") 2>conftest.err 2006 ac_status=$? 2007 if test -s conftest.err; then 2008 grep -v '^ *+' conftest.err >conftest.er1 2009 cat conftest.er1 >&5 2010 mv -f conftest.er1 conftest.err 2011 fi 2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2013 test $ac_status = 0; } && { 2014 test -z "$ac_objc_werror_flag" || 2015 test ! -s conftest.err 2016 } && test -s conftest.$ac_objext; then : 2017 ac_retval=0 2018 else 2019 $as_echo "$as_me: failed program was:" >&5 2020 sed 's/^/| /' conftest.$ac_ext >&5 2021 2022 ac_retval=1 2023 fi 2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2025 as_fn_set_status $ac_retval 2026 2027 } # ac_fn_objc_try_compile 2028 2029 # ac_fn_c_try_cpp LINENO 2030 # ---------------------- 2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2032 ac_fn_c_try_cpp () 2033 { 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 if { { ac_try="$ac_cpp conftest.$ac_ext" 2036 case "(($ac_try" in 2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2038 *) ac_try_echo=$ac_try;; 2039 esac 2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2041 $as_echo "$ac_try_echo"; } >&5 2042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2043 ac_status=$? 2044 if test -s conftest.err; then 2045 grep -v '^ *+' conftest.err >conftest.er1 2046 cat conftest.er1 >&5 2047 mv -f conftest.er1 conftest.err 2048 fi 2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2050 test $ac_status = 0; } > conftest.i && { 2051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2052 test ! -s conftest.err 2053 }; then : 2054 ac_retval=0 2055 else 2056 $as_echo "$as_me: failed program was:" >&5 2057 sed 's/^/| /' conftest.$ac_ext >&5 2058 2059 ac_retval=1 2060 fi 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 as_fn_set_status $ac_retval 2063 2064 } # ac_fn_c_try_cpp 2065 2066 # ac_fn_cxx_try_cpp LINENO 2067 # ------------------------ 2068 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2069 ac_fn_cxx_try_cpp () 2070 { 2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2072 if { { ac_try="$ac_cpp conftest.$ac_ext" 2073 case "(($ac_try" in 2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2075 *) ac_try_echo=$ac_try;; 2076 esac 2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2078 $as_echo "$ac_try_echo"; } >&5 2079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2080 ac_status=$? 2081 if test -s conftest.err; then 2082 grep -v '^ *+' conftest.err >conftest.er1 2083 cat conftest.er1 >&5 2084 mv -f conftest.er1 conftest.err 2085 fi 2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2087 test $ac_status = 0; } > conftest.i && { 2088 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2089 test ! -s conftest.err 2090 }; then : 2091 ac_retval=0 2092 else 2093 $as_echo "$as_me: failed program was:" >&5 2094 sed 's/^/| /' conftest.$ac_ext >&5 2095 2096 ac_retval=1 2097 fi 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 as_fn_set_status $ac_retval 2100 2101 } # ac_fn_cxx_try_cpp 2102 2103 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2104 # --------------------------------------------------------- 2105 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2106 # the include files in INCLUDES and setting the cache variable VAR 2107 # accordingly. 2108 ac_fn_cxx_check_header_mongrel () 2109 { 2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2111 if eval \${$3+:} false; then : 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2113 $as_echo_n "checking for $2... " >&6; } 2114 if eval \${$3+:} false; then : 2115 $as_echo_n "(cached) " >&6 2116 fi 2117 eval ac_res=\$$3 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2119 $as_echo "$ac_res" >&6; } 2120 else 2121 # Is the header compilable? 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2123 $as_echo_n "checking $2 usability... " >&6; } 2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2125 /* end confdefs.h. */ 2126 $4 2127 #include <$2> 2128 _ACEOF 2129 if ac_fn_cxx_try_compile "$LINENO"; then : 2130 ac_header_compiler=yes 2131 else 2132 ac_header_compiler=no 2133 fi 2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2136 $as_echo "$ac_header_compiler" >&6; } 2137 2138 # Is the header present? 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2140 $as_echo_n "checking $2 presence... " >&6; } 2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142 /* end confdefs.h. */ 2143 #include <$2> 2144 _ACEOF 2145 if ac_fn_cxx_try_cpp "$LINENO"; then : 2146 ac_header_preproc=yes 2147 else 2148 ac_header_preproc=no 2149 fi 2150 rm -f conftest.err conftest.i conftest.$ac_ext 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2152 $as_echo "$ac_header_preproc" >&6; } 2153 2154 # So? What about this header? 2155 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2156 yes:no: ) 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2158 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2160 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2161 ;; 2162 no:yes:* ) 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2164 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2166 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2168 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2170 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2172 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2173 ( $as_echo "## ----------------------------------------- ## 2174 ## Report this to build-dev@openjdk.java.net ## 2175 ## ----------------------------------------- ##" 2176 ) | sed "s/^/$as_me: WARNING: /" >&2 2177 ;; 2178 esac 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2180 $as_echo_n "checking for $2... " >&6; } 2181 if eval \${$3+:} false; then : 2182 $as_echo_n "(cached) " >&6 2183 else 2184 eval "$3=\$ac_header_compiler" 2185 fi 2186 eval ac_res=\$$3 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2188 $as_echo "$ac_res" >&6; } 2189 fi 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2191 2192 } # ac_fn_cxx_check_header_mongrel 2193 2194 # ac_fn_cxx_try_run LINENO 2195 # ------------------------ 2196 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2197 # that executables *can* be run. 2198 ac_fn_cxx_try_run () 2199 { 2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2201 if { { ac_try="$ac_link" 2202 case "(($ac_try" in 2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2204 *) ac_try_echo=$ac_try;; 2205 esac 2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2207 $as_echo "$ac_try_echo"; } >&5 2208 (eval "$ac_link") 2>&5 2209 ac_status=$? 2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2211 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2212 { { case "(($ac_try" in 2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2214 *) ac_try_echo=$ac_try;; 2215 esac 2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2217 $as_echo "$ac_try_echo"; } >&5 2218 (eval "$ac_try") 2>&5 2219 ac_status=$? 2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2221 test $ac_status = 0; }; }; then : 2222 ac_retval=0 2223 else 2224 $as_echo "$as_me: program exited with status $ac_status" >&5 2225 $as_echo "$as_me: failed program was:" >&5 2226 sed 's/^/| /' conftest.$ac_ext >&5 2227 2228 ac_retval=$ac_status 2229 fi 2230 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2232 as_fn_set_status $ac_retval 2233 2234 } # ac_fn_cxx_try_run 2235 2236 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2237 # --------------------------------------------------------- 2238 # Tests whether HEADER exists and can be compiled using the include files in 2239 # INCLUDES, setting the cache variable VAR accordingly. 2240 ac_fn_cxx_check_header_compile () 2241 { 2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2244 $as_echo_n "checking for $2... " >&6; } 2245 if eval \${$3+:} false; then : 2246 $as_echo_n "(cached) " >&6 2247 else 2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2249 /* end confdefs.h. */ 2250 $4 2251 #include <$2> 2252 _ACEOF 2253 if ac_fn_cxx_try_compile "$LINENO"; then : 2254 eval "$3=yes" 2255 else 2256 eval "$3=no" 2257 fi 2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2259 fi 2260 eval ac_res=\$$3 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2262 $as_echo "$ac_res" >&6; } 2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2264 2265 } # ac_fn_cxx_check_header_compile 2266 2267 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2268 # ---------------------------------------------- 2269 # Tries to find the compile-time value of EXPR in a program that includes 2270 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2271 # computed 2272 ac_fn_cxx_compute_int () 2273 { 2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2275 if test "$cross_compiling" = yes; then 2276 # Depending upon the size, compute the lo and hi bounds. 2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2278 /* end confdefs.h. */ 2279 $4 2280 int 2281 main () 2282 { 2283 static int test_array [1 - 2 * !(($2) >= 0)]; 2284 test_array [0] = 0 2285 2286 ; 2287 return 0; 2288 } 2289 _ACEOF 2290 if ac_fn_cxx_try_compile "$LINENO"; then : 2291 ac_lo=0 ac_mid=0 2292 while :; do 2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2294 /* end confdefs.h. */ 2295 $4 2296 int 2297 main () 2298 { 2299 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2300 test_array [0] = 0 2301 2302 ; 2303 return 0; 2304 } 2305 _ACEOF 2306 if ac_fn_cxx_try_compile "$LINENO"; then : 2307 ac_hi=$ac_mid; break 2308 else 2309 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2310 if test $ac_lo -le $ac_mid; then 2311 ac_lo= ac_hi= 2312 break 2313 fi 2314 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2315 fi 2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2317 done 2318 else 2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2320 /* end confdefs.h. */ 2321 $4 2322 int 2323 main () 2324 { 2325 static int test_array [1 - 2 * !(($2) < 0)]; 2326 test_array [0] = 0 2327 2328 ; 2329 return 0; 2330 } 2331 _ACEOF 2332 if ac_fn_cxx_try_compile "$LINENO"; then : 2333 ac_hi=-1 ac_mid=-1 2334 while :; do 2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2336 /* end confdefs.h. */ 2337 $4 2338 int 2339 main () 2340 { 2341 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2342 test_array [0] = 0 2343 2344 ; 2345 return 0; 2346 } 2347 _ACEOF 2348 if ac_fn_cxx_try_compile "$LINENO"; then : 2349 ac_lo=$ac_mid; break 2350 else 2351 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2352 if test $ac_mid -le $ac_hi; then 2353 ac_lo= ac_hi= 2354 break 2355 fi 2356 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2357 fi 2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2359 done 2360 else 2361 ac_lo= ac_hi= 2362 fi 2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2364 fi 2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2366 # Binary search between lo and hi bounds. 2367 while test "x$ac_lo" != "x$ac_hi"; do 2368 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2370 /* end confdefs.h. */ 2371 $4 2372 int 2373 main () 2374 { 2375 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2376 test_array [0] = 0 2377 2378 ; 2379 return 0; 2380 } 2381 _ACEOF 2382 if ac_fn_cxx_try_compile "$LINENO"; then : 2383 ac_hi=$ac_mid 2384 else 2385 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2386 fi 2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2388 done 2389 case $ac_lo in #(( 2390 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2391 '') ac_retval=1 ;; 2392 esac 2393 else 2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2395 /* end confdefs.h. */ 2396 $4 2397 static long int longval () { return $2; } 2398 static unsigned long int ulongval () { return $2; } 2399 #include <stdio.h> 2400 #include <stdlib.h> 2401 int 2402 main () 2403 { 2404 2405 FILE *f = fopen ("conftest.val", "w"); 2406 if (! f) 2407 return 1; 2408 if (($2) < 0) 2409 { 2410 long int i = longval (); 2411 if (i != ($2)) 2412 return 1; 2413 fprintf (f, "%ld", i); 2414 } 2415 else 2416 { 2417 unsigned long int i = ulongval (); 2418 if (i != ($2)) 2419 return 1; 2420 fprintf (f, "%lu", i); 2421 } 2422 /* Do not output a trailing newline, as this causes \r\n confusion 2423 on some platforms. */ 2424 return ferror (f) || fclose (f) != 0; 2425 2426 ; 2427 return 0; 2428 } 2429 _ACEOF 2430 if ac_fn_cxx_try_run "$LINENO"; then : 2431 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2432 else 2433 ac_retval=1 2434 fi 2435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2436 conftest.$ac_objext conftest.beam conftest.$ac_ext 2437 rm -f conftest.val 2438 2439 fi 2440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2441 as_fn_set_status $ac_retval 2442 2443 } # ac_fn_cxx_compute_int 2444 2445 # ac_fn_cxx_try_link LINENO 2446 # ------------------------- 2447 # Try to link conftest.$ac_ext, and return whether this succeeded. 2448 ac_fn_cxx_try_link () 2449 { 2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2451 rm -f conftest.$ac_objext conftest$ac_exeext 2452 if { { ac_try="$ac_link" 2453 case "(($ac_try" in 2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2455 *) ac_try_echo=$ac_try;; 2456 esac 2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2458 $as_echo "$ac_try_echo"; } >&5 2459 (eval "$ac_link") 2>conftest.err 2460 ac_status=$? 2461 if test -s conftest.err; then 2462 grep -v '^ *+' conftest.err >conftest.er1 2463 cat conftest.er1 >&5 2464 mv -f conftest.er1 conftest.err 2465 fi 2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2467 test $ac_status = 0; } && { 2468 test -z "$ac_cxx_werror_flag" || 2469 test ! -s conftest.err 2470 } && test -s conftest$ac_exeext && { 2471 test "$cross_compiling" = yes || 2472 $as_test_x conftest$ac_exeext 2473 }; then : 2474 ac_retval=0 2475 else 2476 $as_echo "$as_me: failed program was:" >&5 2477 sed 's/^/| /' conftest.$ac_ext >&5 2478 2479 ac_retval=1 2480 fi 2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2483 # interfere with the next link command; also delete a directory that is 2484 # left behind by Apple's compiler. We do this before executing the actions. 2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2487 as_fn_set_status $ac_retval 2488 2489 } # ac_fn_cxx_try_link 2490 2491 # ac_fn_cxx_check_func LINENO FUNC VAR 2492 # ------------------------------------ 2493 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2494 ac_fn_cxx_check_func () 2495 { 2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2498 $as_echo_n "checking for $2... " >&6; } 2499 if eval \${$3+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501 else 2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2503 /* end confdefs.h. */ 2504 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2505 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2506 #define $2 innocuous_$2 2507 2508 /* System header to define __stub macros and hopefully few prototypes, 2509 which can conflict with char $2 (); below. 2510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2511 <limits.h> exists even on freestanding compilers. */ 2512 2513 #ifdef __STDC__ 2514 # include <limits.h> 2515 #else 2516 # include <assert.h> 2517 #endif 2518 2519 #undef $2 2520 2521 /* Override any GCC internal prototype to avoid an error. 2522 Use char because int might match the return type of a GCC 2523 builtin and then its argument prototype would still apply. */ 2524 #ifdef __cplusplus 2525 extern "C" 2526 #endif 2527 char $2 (); 2528 /* The GNU C library defines this for functions which it implements 2529 to always fail with ENOSYS. Some functions are actually named 2530 something starting with __ and the normal name is an alias. */ 2531 #if defined __stub_$2 || defined __stub___$2 2532 choke me 2533 #endif 2534 2535 int 2536 main () 2537 { 2538 return $2 (); 2539 ; 2540 return 0; 2541 } 2542 _ACEOF 2543 if ac_fn_cxx_try_link "$LINENO"; then : 2544 eval "$3=yes" 2545 else 2546 eval "$3=no" 2547 fi 2548 rm -f core conftest.err conftest.$ac_objext \ 2549 conftest$ac_exeext conftest.$ac_ext 2550 fi 2551 eval ac_res=\$$3 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2553 $as_echo "$ac_res" >&6; } 2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2555 2556 } # ac_fn_cxx_check_func 2557 2558 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2559 # ------------------------------------------------------- 2560 # Tests whether HEADER exists and can be compiled using the include files in 2561 # INCLUDES, setting the cache variable VAR accordingly. 2562 ac_fn_c_check_header_compile () 2563 { 2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2566 $as_echo_n "checking for $2... " >&6; } 2567 if eval \${$3+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569 else 2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2571 /* end confdefs.h. */ 2572 $4 2573 #include <$2> 2574 _ACEOF 2575 if ac_fn_c_try_compile "$LINENO"; then : 2576 eval "$3=yes" 2577 else 2578 eval "$3=no" 2579 fi 2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2581 fi 2582 eval ac_res=\$$3 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2584 $as_echo "$ac_res" >&6; } 2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2586 2587 } # ac_fn_c_check_header_compile 2588 cat >config.log <<_ACEOF 2589 This file contains any messages produced by compilers while 2590 running configure, to aid debugging if configure makes a mistake. 2591 2592 It was created by OpenJDK $as_me jdk8, which was 2593 generated by GNU Autoconf 2.68. Invocation command line was 2594 2595 $ $0 $@ 2596 2597 _ACEOF 2598 exec 5>>config.log 2599 { 2600 cat <<_ASUNAME 2601 ## --------- ## 2602 ## Platform. ## 2603 ## --------- ## 2604 2605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2606 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2607 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2608 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2609 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2610 2611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2613 2614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2621 2622 _ASUNAME 2623 2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625 for as_dir in $PATH 2626 do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 $as_echo "PATH: $as_dir" 2630 done 2631 IFS=$as_save_IFS 2632 2633 } >&5 2634 2635 cat >&5 <<_ACEOF 2636 2637 2638 ## ----------- ## 2639 ## Core tests. ## 2640 ## ----------- ## 2641 2642 _ACEOF 2643 2644 2645 # Keep a trace of the command line. 2646 # Strip out --no-create and --no-recursion so they do not pile up. 2647 # Strip out --silent because we don't want to record it for future runs. 2648 # Also quote any args containing shell meta-characters. 2649 # Make two passes to allow for proper duplicate-argument suppression. 2650 ac_configure_args= 2651 ac_configure_args0= 2652 ac_configure_args1= 2653 ac_must_keep_next=false 2654 for ac_pass in 1 2 2655 do 2656 for ac_arg 2657 do 2658 case $ac_arg in 2659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2661 | -silent | --silent | --silen | --sile | --sil) 2662 continue ;; 2663 *\'*) 2664 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2665 esac 2666 case $ac_pass in 2667 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2668 2) 2669 as_fn_append ac_configure_args1 " '$ac_arg'" 2670 if test $ac_must_keep_next = true; then 2671 ac_must_keep_next=false # Got value, back to normal. 2672 else 2673 case $ac_arg in 2674 *=* | --config-cache | -C | -disable-* | --disable-* \ 2675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2677 | -with-* | --with-* | -without-* | --without-* | --x) 2678 case "$ac_configure_args0 " in 2679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2680 esac 2681 ;; 2682 -* ) ac_must_keep_next=true ;; 2683 esac 2684 fi 2685 as_fn_append ac_configure_args " '$ac_arg'" 2686 ;; 2687 esac 2688 done 2689 done 2690 { ac_configure_args0=; unset ac_configure_args0;} 2691 { ac_configure_args1=; unset ac_configure_args1;} 2692 2693 # When interrupted or exit'd, cleanup temporary files, and complete 2694 # config.log. We remove comments because anyway the quotes in there 2695 # would cause problems or look ugly. 2696 # WARNING: Use '\'' to represent an apostrophe within the trap. 2697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2698 trap 'exit_status=$? 2699 # Save into config.log some information that might help in debugging. 2700 { 2701 echo 2702 2703 $as_echo "## ---------------- ## 2704 ## Cache variables. ## 2705 ## ---------------- ##" 2706 echo 2707 # The following way of writing the cache mishandles newlines in values, 2708 ( 2709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2710 eval ac_val=\$$ac_var 2711 case $ac_val in #( 2712 *${as_nl}*) 2713 case $ac_var in #( 2714 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2716 esac 2717 case $ac_var in #( 2718 _ | IFS | as_nl) ;; #( 2719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2720 *) { eval $ac_var=; unset $ac_var;} ;; 2721 esac ;; 2722 esac 2723 done 2724 (set) 2>&1 | 2725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2726 *${as_nl}ac_space=\ *) 2727 sed -n \ 2728 "s/'\''/'\''\\\\'\'''\''/g; 2729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2730 ;; #( 2731 *) 2732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2733 ;; 2734 esac | 2735 sort 2736 ) 2737 echo 2738 2739 $as_echo "## ----------------- ## 2740 ## Output variables. ## 2741 ## ----------------- ##" 2742 echo 2743 for ac_var in $ac_subst_vars 2744 do 2745 eval ac_val=\$$ac_var 2746 case $ac_val in 2747 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2748 esac 2749 $as_echo "$ac_var='\''$ac_val'\''" 2750 done | sort 2751 echo 2752 2753 if test -n "$ac_subst_files"; then 2754 $as_echo "## ------------------- ## 2755 ## File substitutions. ## 2756 ## ------------------- ##" 2757 echo 2758 for ac_var in $ac_subst_files 2759 do 2760 eval ac_val=\$$ac_var 2761 case $ac_val in 2762 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2763 esac 2764 $as_echo "$ac_var='\''$ac_val'\''" 2765 done | sort 2766 echo 2767 fi 2768 2769 if test -s confdefs.h; then 2770 $as_echo "## ----------- ## 2771 ## confdefs.h. ## 2772 ## ----------- ##" 2773 echo 2774 cat confdefs.h 2775 echo 2776 fi 2777 test "$ac_signal" != 0 && 2778 $as_echo "$as_me: caught signal $ac_signal" 2779 $as_echo "$as_me: exit $exit_status" 2780 } >&5 2781 rm -f core *.core core.conftest.* && 2782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2783 exit $exit_status 2784 ' 0 2785 for ac_signal in 1 2 13 15; do 2786 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2787 done 2788 ac_signal=0 2789 2790 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2791 rm -f -r conftest* confdefs.h 2792 2793 $as_echo "/* confdefs.h */" > confdefs.h 2794 2795 # Predefined preprocessor variables. 2796 2797 cat >>confdefs.h <<_ACEOF 2798 #define PACKAGE_NAME "$PACKAGE_NAME" 2799 _ACEOF 2800 2801 cat >>confdefs.h <<_ACEOF 2802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2803 _ACEOF 2804 2805 cat >>confdefs.h <<_ACEOF 2806 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2807 _ACEOF 2808 2809 cat >>confdefs.h <<_ACEOF 2810 #define PACKAGE_STRING "$PACKAGE_STRING" 2811 _ACEOF 2812 2813 cat >>confdefs.h <<_ACEOF 2814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2815 _ACEOF 2816 2817 cat >>confdefs.h <<_ACEOF 2818 #define PACKAGE_URL "$PACKAGE_URL" 2819 _ACEOF 2820 2821 2822 # Let the site file select an alternate cache file if it wants to. 2823 # Prefer an explicitly selected file to automatically selected ones. 2824 ac_site_file1=NONE 2825 ac_site_file2=NONE 2826 if test -n "$CONFIG_SITE"; then 2827 # We do not want a PATH search for config.site. 2828 case $CONFIG_SITE in #(( 2829 -*) ac_site_file1=./$CONFIG_SITE;; 2830 */*) ac_site_file1=$CONFIG_SITE;; 2831 *) ac_site_file1=./$CONFIG_SITE;; 2832 esac 2833 elif test "x$prefix" != xNONE; then 2834 ac_site_file1=$prefix/share/config.site 2835 ac_site_file2=$prefix/etc/config.site 2836 else 2837 ac_site_file1=$ac_default_prefix/share/config.site 2838 ac_site_file2=$ac_default_prefix/etc/config.site 2839 fi 2840 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2841 do 2842 test "x$ac_site_file" = xNONE && continue 2843 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2845 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2846 sed 's/^/| /' "$ac_site_file" >&5 2847 . "$ac_site_file" \ 2848 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2850 as_fn_error $? "failed to load site script $ac_site_file 2851 See \`config.log' for more details" "$LINENO" 5; } 2852 fi 2853 done 2854 2855 if test -r "$cache_file"; then 2856 # Some versions of bash will fail to source /dev/null (special files 2857 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2858 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2860 $as_echo "$as_me: loading cache $cache_file" >&6;} 2861 case $cache_file in 2862 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2863 *) . "./$cache_file";; 2864 esac 2865 fi 2866 else 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2868 $as_echo "$as_me: creating cache $cache_file" >&6;} 2869 >$cache_file 2870 fi 2871 2872 # Check that the precious variables saved in the cache have kept the same 2873 # value. 2874 ac_cache_corrupted=false 2875 for ac_var in $ac_precious_vars; do 2876 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2877 eval ac_new_set=\$ac_env_${ac_var}_set 2878 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2879 eval ac_new_val=\$ac_env_${ac_var}_value 2880 case $ac_old_set,$ac_new_set in 2881 set,) 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2883 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2884 ac_cache_corrupted=: ;; 2885 ,set) 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2887 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2888 ac_cache_corrupted=: ;; 2889 ,);; 2890 *) 2891 if test "x$ac_old_val" != "x$ac_new_val"; then 2892 # differences in whitespace do not lead to failure. 2893 ac_old_val_w=`echo x $ac_old_val` 2894 ac_new_val_w=`echo x $ac_new_val` 2895 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2897 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2898 ac_cache_corrupted=: 2899 else 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2901 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2902 eval $ac_var=\$ac_old_val 2903 fi 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2905 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2907 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2908 fi;; 2909 esac 2910 # Pass precious variables to config.status. 2911 if test "$ac_new_set" = set; then 2912 case $ac_new_val in 2913 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2914 *) ac_arg=$ac_var=$ac_new_val ;; 2915 esac 2916 case " $ac_configure_args " in 2917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2918 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2919 esac 2920 fi 2921 done 2922 if $ac_cache_corrupted; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2926 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2927 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2928 fi 2929 ## -------------------- ## 2930 ## Main body of script. ## 2931 ## -------------------- ## 2932 2933 ac_ext=c 2934 ac_cpp='$CPP $CPPFLAGS' 2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938 2939 2940 2941 ac_aux_dir= 2942 for ac_dir in build-aux "$srcdir"/build-aux; do 2943 if test -f "$ac_dir/install-sh"; then 2944 ac_aux_dir=$ac_dir 2945 ac_install_sh="$ac_aux_dir/install-sh -c" 2946 break 2947 elif test -f "$ac_dir/install.sh"; then 2948 ac_aux_dir=$ac_dir 2949 ac_install_sh="$ac_aux_dir/install.sh -c" 2950 break 2951 elif test -f "$ac_dir/shtool"; then 2952 ac_aux_dir=$ac_dir 2953 ac_install_sh="$ac_aux_dir/shtool install -c" 2954 break 2955 fi 2956 done 2957 if test -z "$ac_aux_dir"; then 2958 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2959 fi 2960 2961 # These three variables are undocumented and unsupported, 2962 # and are intended to be withdrawn in a future Autoconf release. 2963 # They can cause serious problems if a builder's source tree is in a directory 2964 # whose full name contains unusual characters. 2965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2968 2969 2970 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2971 2972 # 2973 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 2974 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2975 # 2976 # This code is free software; you can redistribute it and/or modify it 2977 # under the terms of the GNU General Public License version 2 only, as 2978 # published by the Free Software Foundation. Oracle designates this 2979 # particular file as subject to the "Classpath" exception as provided 2980 # by Oracle in the LICENSE file that accompanied this code. 2981 # 2982 # This code is distributed in the hope that it will be useful, but WITHOUT 2983 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2984 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2985 # version 2 for more details (a copy is included in the LICENSE file that 2986 # accompanied this code). 2987 # 2988 # You should have received a copy of the GNU General Public License version 2989 # 2 along with this work; if not, write to the Free Software Foundation, 2990 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2991 # 2992 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2993 # or visit www.oracle.com if you need additional information or have any 2994 # questions. 2995 # 2996 2997 # 2998 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2999 # 3000 # This program is free software; you can redistribute it and/or modify 3001 # it under the terms of the GNU General Public License as published by 3002 # the Free Software Foundation; either version 2 of the License, or 3003 # (at your option) any later version. 3004 # 3005 # This program is distributed in the hope that it will be useful, but 3006 # WITHOUT ANY WARRANTY; without even the implied warranty of 3007 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3008 # General Public License for more details. 3009 # 3010 # You should have received a copy of the GNU General Public License 3011 # along with this program; if not, write to the Free Software 3012 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3013 # 3014 # As a special exception to the GNU General Public License, if you 3015 # distribute this file as part of a program that contains a 3016 # configuration script generated by Autoconf, you may include it under 3017 # the same distribution terms that you use for the rest of that program. 3018 3019 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3020 # ---------------------------------- 3021 # PKG_PROG_PKG_CONFIG 3022 3023 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3024 # 3025 # Check to see whether a particular set of modules exists. Similar 3026 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3027 # 3028 # 3029 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3030 # this or PKG_CHECK_MODULES is called, or make sure to call 3031 # PKG_CHECK_EXISTS manually 3032 # -------------------------------------------------------------- 3033 3034 3035 3036 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3037 # --------------------------------------------- 3038 # _PKG_CONFIG 3039 3040 # _PKG_SHORT_ERRORS_SUPPORTED 3041 # ----------------------------- 3042 # _PKG_SHORT_ERRORS_SUPPORTED 3043 3044 3045 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3046 # [ACTION-IF-NOT-FOUND]) 3047 # 3048 # 3049 # Note that if there is a possibility the first call to 3050 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3051 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3052 # 3053 # 3054 # -------------------------------------------------------------- 3055 # PKG_CHECK_MODULES 3056 3057 3058 # Include these first... 3059 # 3060 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 3061 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3062 # 3063 # This code is free software; you can redistribute it and/or modify it 3064 # under the terms of the GNU General Public License version 2 only, as 3065 # published by the Free Software Foundation. Oracle designates this 3066 # particular file as subject to the "Classpath" exception as provided 3067 # by Oracle in the LICENSE file that accompanied this code. 3068 # 3069 # This code is distributed in the hope that it will be useful, but WITHOUT 3070 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3071 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3072 # version 2 for more details (a copy is included in the LICENSE file that 3073 # accompanied this code). 3074 # 3075 # You should have received a copy of the GNU General Public License version 3076 # 2 along with this work; if not, write to the Free Software Foundation, 3077 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3078 # 3079 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3080 # or visit www.oracle.com if you need additional information or have any 3081 # questions. 3082 # 3083 3084 3085 3086 # This will make sure the given variable points to a full and proper 3087 # path. This means: 3088 # 1) There will be no spaces in the path. On posix platforms, 3089 # spaces in the path will result in an error. On Windows, 3090 # the path will be rewritten using short-style to be space-free. 3091 # 2) The path will be absolute, and it will be in unix-style (on 3092 # cygwin). 3093 # $1: The name of the variable to fix 3094 3095 3096 # This will make sure the given variable points to a executable 3097 # with a full and proper path. This means: 3098 # 1) There will be no spaces in the path. On posix platforms, 3099 # spaces in the path will result in an error. On Windows, 3100 # the path will be rewritten using short-style to be space-free. 3101 # 2) The path will be absolute, and it will be in unix-style (on 3102 # cygwin). 3103 # Any arguments given to the executable is preserved. 3104 # If the input variable does not have a directory specification, then 3105 # it need to be in the PATH. 3106 # $1: The name of the variable to fix 3107 3108 3109 3110 3111 3112 3113 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3114 # $1: variable to check 3115 # $2: executable name to print in warning (optional) 3116 3117 3118 # Does AC_PATH_PROG followed by BASIC_CHECK_NONEMPTY. 3119 # Arguments as AC_PATH_PROG: 3120 # $1: variable to set 3121 # $2: executable name to look for 3122 3123 3124 # Setup the most fundamental tools that relies on not much else to set up, 3125 # but is used by much of the early bootstrap code. 3126 3127 3128 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3129 3130 3131 3132 3133 3134 3135 3136 #%%% Simple tools %%% 3137 3138 # Check if we have found a usable version of make 3139 # $1: the path to a potential make binary (or empty) 3140 # $2: the description on how we found this 3141 3142 3143 # Goes looking for a usable version of GNU make. 3144 3145 3146 3147 3148 3149 3150 # Check if build directory is on local disk. If not possible to determine, 3151 # we prefer to claim it's local. 3152 # Argument 1: directory to test 3153 # Argument 2: what to do if it is on local disk 3154 # Argument 3: what to do otherwise (remote disk or failure) 3155 3156 3157 # Check that source files have basic read permissions set. This might 3158 # not be the case in cygwin in certain conditions. 3159 3160 3161 3162 3163 # 3164 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3165 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3166 # 3167 # This code is free software; you can redistribute it and/or modify it 3168 # under the terms of the GNU General Public License version 2 only, as 3169 # published by the Free Software Foundation. Oracle designates this 3170 # particular file as subject to the "Classpath" exception as provided 3171 # by Oracle in the LICENSE file that accompanied this code. 3172 # 3173 # This code is distributed in the hope that it will be useful, but WITHOUT 3174 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3175 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3176 # version 2 for more details (a copy is included in the LICENSE file that 3177 # accompanied this code). 3178 # 3179 # You should have received a copy of the GNU General Public License version 3180 # 2 along with this work; if not, write to the Free Software Foundation, 3181 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3182 # 3183 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3184 # or visit www.oracle.com if you need additional information or have any 3185 # questions. 3186 # 3187 3188 3189 3190 3191 3192 # Helper function which possibly converts a path using DOS-style short mode. 3193 # If so, the updated path is stored in $new_path. 3194 # $1: The path to check 3195 3196 3197 # Helper function which possibly converts a path using DOS-style short mode. 3198 # If so, the updated path is stored in $new_path. 3199 # $1: The path to check 3200 3201 3202 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3203 # and could probably be heavily simplified. However, all changes in this 3204 # area tend to need lot of testing in different scenarios, and in lack of 3205 # proper unit testing, cleaning this up has not been deemed worth the effort 3206 # at the moment. 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3217 3218 3219 3220 3221 # 3222 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3223 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3224 # 3225 # This code is free software; you can redistribute it and/or modify it 3226 # under the terms of the GNU General Public License version 2 only, as 3227 # published by the Free Software Foundation. Oracle designates this 3228 # particular file as subject to the "Classpath" exception as provided 3229 # by Oracle in the LICENSE file that accompanied this code. 3230 # 3231 # This code is distributed in the hope that it will be useful, but WITHOUT 3232 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3233 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3234 # version 2 for more details (a copy is included in the LICENSE file that 3235 # accompanied this code). 3236 # 3237 # You should have received a copy of the GNU General Public License version 3238 # 2 along with this work; if not, write to the Free Software Foundation, 3239 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3240 # 3241 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3242 # or visit www.oracle.com if you need additional information or have any 3243 # questions. 3244 # 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 # ... then the rest 3257 # 3258 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3259 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3260 # 3261 # This code is free software; you can redistribute it and/or modify it 3262 # under the terms of the GNU General Public License version 2 only, as 3263 # published by the Free Software Foundation. Oracle designates this 3264 # particular file as subject to the "Classpath" exception as provided 3265 # by Oracle in the LICENSE file that accompanied this code. 3266 # 3267 # This code is distributed in the hope that it will be useful, but WITHOUT 3268 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3269 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3270 # version 2 for more details (a copy is included in the LICENSE file that 3271 # accompanied this code). 3272 # 3273 # You should have received a copy of the GNU General Public License version 3274 # 2 along with this work; if not, write to the Free Software Foundation, 3275 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3276 # 3277 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3278 # or visit www.oracle.com if you need additional information or have any 3279 # questions. 3280 # 3281 3282 # Execute the check given as argument, and verify the result 3283 # If the Boot JDK was previously found, do nothing 3284 # $1 A command line (typically autoconf macro) to execute 3285 3286 3287 # Test: Is bootjdk explicitely set by command line arguments? 3288 3289 3290 # Test: Is bootjdk available from builddeps? 3291 3292 3293 # Test: Is $JAVA_HOME set? 3294 3295 3296 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3297 3298 3299 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3300 3301 3302 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3303 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3304 # $1 = Path to directory containing jdk installations. 3305 # $2 = String to append to the found JDK directory to get the proper JDK home 3306 3307 3308 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3309 # environmental variable as base for where to look. 3310 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3311 3312 3313 # Test: Is there a JDK installed in default, well-known locations? 3314 3315 3316 # Check that a command-line tool in the Boot JDK is correct 3317 # $1 = name of variable to assign 3318 # $2 = name of binary 3319 3320 3321 ############################################################################### 3322 # 3323 # We need a Boot JDK to bootstrap the build. 3324 # 3325 3326 3327 3328 3329 3330 # 3331 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3332 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3333 # 3334 # This code is free software; you can redistribute it and/or modify it 3335 # under the terms of the GNU General Public License version 2 only, as 3336 # published by the Free Software Foundation. Oracle designates this 3337 # particular file as subject to the "Classpath" exception as provided 3338 # by Oracle in the LICENSE file that accompanied this code. 3339 # 3340 # This code is distributed in the hope that it will be useful, but WITHOUT 3341 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3342 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3343 # version 2 for more details (a copy is included in the LICENSE file that 3344 # accompanied this code). 3345 # 3346 # You should have received a copy of the GNU General Public License version 3347 # 2 along with this work; if not, write to the Free Software Foundation, 3348 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3349 # 3350 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3351 # or visit www.oracle.com if you need additional information or have any 3352 # questions. 3353 # 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 # 3375 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3376 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3377 # 3378 # This code is free software; you can redistribute it and/or modify it 3379 # under the terms of the GNU General Public License version 2 only, as 3380 # published by the Free Software Foundation. Oracle designates this 3381 # particular file as subject to the "Classpath" exception as provided 3382 # by Oracle in the LICENSE file that accompanied this code. 3383 # 3384 # This code is distributed in the hope that it will be useful, but WITHOUT 3385 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3386 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3387 # version 2 for more details (a copy is included in the LICENSE file that 3388 # accompanied this code). 3389 # 3390 # You should have received a copy of the GNU General Public License version 3391 # 2 along with this work; if not, write to the Free Software Foundation, 3392 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3393 # 3394 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3395 # or visit www.oracle.com if you need additional information or have any 3396 # questions. 3397 # 3398 3399 3400 3401 3402 3403 cygwin_help() { 3404 case $1 in 3405 unzip) 3406 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip" ;; 3407 zip) 3408 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P zip" ;; 3409 make) 3410 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P make" ;; 3411 * ) 3412 break ;; 3413 esac 3414 } 3415 3416 apt_help() { 3417 case $1 in 3418 devkit) 3419 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3420 openjdk) 3421 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3422 alsa) 3423 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3424 cups) 3425 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3426 freetype2) 3427 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3428 pulse) 3429 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3430 x11) 3431 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;; 3432 ccache) 3433 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3434 * ) 3435 break ;; 3436 esac 3437 } 3438 3439 yum_help() { 3440 case $1 in 3441 devkit) 3442 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3443 openjdk) 3444 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3445 alsa) 3446 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3447 cups) 3448 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3449 freetype2) 3450 PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;; 3451 pulse) 3452 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3453 x11) 3454 PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;; 3455 ccache) 3456 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3457 * ) 3458 break ;; 3459 esac 3460 } 3461 3462 port_help() { 3463 PKGHANDLER_COMMAND="" 3464 } 3465 3466 pkgutil_help() { 3467 PKGHANDLER_COMMAND="" 3468 } 3469 3470 pkgadd_help() { 3471 PKGHANDLER_COMMAND="" 3472 } 3473 3474 3475 3476 # 3477 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 3478 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3479 # 3480 # This code is free software; you can redistribute it and/or modify it 3481 # under the terms of the GNU General Public License version 2 only, as 3482 # published by the Free Software Foundation. Oracle designates this 3483 # particular file as subject to the "Classpath" exception as provided 3484 # by Oracle in the LICENSE file that accompanied this code. 3485 # 3486 # This code is distributed in the hope that it will be useful, but WITHOUT 3487 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3488 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3489 # version 2 for more details (a copy is included in the LICENSE file that 3490 # accompanied this code). 3491 # 3492 # You should have received a copy of the GNU General Public License version 3493 # 2 along with this work; if not, write to the Free Software Foundation, 3494 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3495 # 3496 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3497 # or visit www.oracle.com if you need additional information or have any 3498 # questions. 3499 # 3500 3501 3502 3503 3504 3505 3506 3507 3508 ############################################################################### 3509 # 3510 # Should we build only OpenJDK even if closed sources are present? 3511 # 3512 3513 3514 3515 3516 ############################################################################### 3517 # 3518 # Setup version numbers 3519 # 3520 3521 3522 3523 3524 3525 3526 # Support for customization of the build process. Some build files 3527 # will include counterparts from this location, if they exist. This allows 3528 # for a degree of customization of the build targets and the rules/recipes 3529 # to create them 3530 3531 # Check whether --with-custom-make-dir was given. 3532 if test "${with_custom_make_dir+set}" = set; then : 3533 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3534 fi 3535 3536 3537 3538 # 3539 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3540 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3541 # 3542 # This code is free software; you can redistribute it and/or modify it 3543 # under the terms of the GNU General Public License version 2 only, as 3544 # published by the Free Software Foundation. Oracle designates this 3545 # particular file as subject to the "Classpath" exception as provided 3546 # by Oracle in the LICENSE file that accompanied this code. 3547 # 3548 # This code is distributed in the hope that it will be useful, but WITHOUT 3549 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3550 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3551 # version 2 for more details (a copy is included in the LICENSE file that 3552 # accompanied this code). 3553 # 3554 # You should have received a copy of the GNU General Public License version 3555 # 2 along with this work; if not, write to the Free Software Foundation, 3556 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3557 # 3558 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3559 # or visit www.oracle.com if you need additional information or have any 3560 # questions. 3561 # 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 # 3578 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3579 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3580 # 3581 # This code is free software; you can redistribute it and/or modify it 3582 # under the terms of the GNU General Public License version 2 only, as 3583 # published by the Free Software Foundation. Oracle designates this 3584 # particular file as subject to the "Classpath" exception as provided 3585 # by Oracle in the LICENSE file that accompanied this code. 3586 # 3587 # This code is distributed in the hope that it will be useful, but WITHOUT 3588 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3589 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3590 # version 2 for more details (a copy is included in the LICENSE file that 3591 # accompanied this code). 3592 # 3593 # You should have received a copy of the GNU General Public License version 3594 # 2 along with this work; if not, write to the Free Software Foundation, 3595 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3596 # 3597 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3598 # or visit www.oracle.com if you need additional information or have any 3599 # questions. 3600 # 3601 3602 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3603 # Converts autoconf style CPU name to OpenJDK style, into 3604 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 3605 3606 3607 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3608 # Converts autoconf style OS name to OpenJDK style, into 3609 # VAR_OS and VAR_OS_API. 3610 3611 3612 # Expects $host_os $host_cpu $build_os and $build_cpu 3613 # and $with_target_bits to have been setup! 3614 # 3615 # Translate the standard triplet(quadruplet) definition 3616 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 3617 # OPENJDK_BUILD_OS, etc. 3618 3619 3620 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 3621 # accordingly. Must be done after setting up build and target system, but before 3622 # doing anything else with these values. 3623 3624 3625 # Setup the legacy variables, for controlling the old makefiles. 3626 # 3627 3628 3629 3630 3631 #%%% Build and target systems %%% 3632 3633 3634 3635 3636 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 3637 # Add -mX to various FLAGS variables. 3638 3639 3640 3641 3642 3643 3644 # 3645 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3646 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3647 # 3648 # This code is free software; you can redistribute it and/or modify it 3649 # under the terms of the GNU General Public License version 2 only, as 3650 # published by the Free Software Foundation. Oracle designates this 3651 # particular file as subject to the "Classpath" exception as provided 3652 # by Oracle in the LICENSE file that accompanied this code. 3653 # 3654 # This code is distributed in the hope that it will be useful, but WITHOUT 3655 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3656 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3657 # version 2 for more details (a copy is included in the LICENSE file that 3658 # accompanied this code). 3659 # 3660 # You should have received a copy of the GNU General Public License version 3661 # 2 along with this work; if not, write to the Free Software Foundation, 3662 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3663 # 3664 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3665 # or visit www.oracle.com if you need additional information or have any 3666 # questions. 3667 # 3668 3669 3670 3671 3672 3673 3674 3675 3676 # 3677 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3678 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3679 # 3680 # This code is free software; you can redistribute it and/or modify it 3681 # under the terms of the GNU General Public License version 2 only, as 3682 # published by the Free Software Foundation. Oracle designates this 3683 # particular file as subject to the "Classpath" exception as provided 3684 # by Oracle in the LICENSE file that accompanied this code. 3685 # 3686 # This code is distributed in the hope that it will be useful, but WITHOUT 3687 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3688 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3689 # version 2 for more details (a copy is included in the LICENSE file that 3690 # accompanied this code). 3691 # 3692 # You should have received a copy of the GNU General Public License version 3693 # 2 along with this work; if not, write to the Free Software Foundation, 3694 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3695 # 3696 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3697 # or visit www.oracle.com if you need additional information or have any 3698 # questions. 3699 # 3700 3701 # $1 = compiler to test (CC or CXX) 3702 # $2 = human readable name of compiler (C or C++) 3703 3704 3705 3706 3707 3708 # $1 = compiler to test (CC or CXX) 3709 # $2 = human readable name of compiler (C or C++) 3710 # $3 = list of compiler names to search for 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 # 3724 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3725 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3726 # 3727 # This code is free software; you can redistribute it and/or modify it 3728 # under the terms of the GNU General Public License version 2 only, as 3729 # published by the Free Software Foundation. Oracle designates this 3730 # particular file as subject to the "Classpath" exception as provided 3731 # by Oracle in the LICENSE file that accompanied this code. 3732 # 3733 # This code is distributed in the hope that it will be useful, but WITHOUT 3734 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3735 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3736 # version 2 for more details (a copy is included in the LICENSE file that 3737 # accompanied this code). 3738 # 3739 # You should have received a copy of the GNU General Public License version 3740 # 2 along with this work; if not, write to the Free Software Foundation, 3741 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3742 # 3743 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3744 # or visit www.oracle.com if you need additional information or have any 3745 # questions. 3746 # 3747 3748 3749 3750 3751 3752 3753 3754 # Check if the VS env variables were setup prior to running configure. 3755 # If not, then find vcvarsall.bat and run it automatically, and integrate 3756 # the set env variables into the spec file. 3757 3758 3759 3760 # Setup the DXSDK paths 3761 3762 3763 3764 3765 3766 3767 # This line needs to be here, verbatim, after all includes and the dummy hook 3768 # definitions. It is replaced with custom functionality when building 3769 # custom sources. 3770 #CUSTOM_AUTOCONF_INCLUDE 3771 3772 # Do not change or remove the following line, it is needed for consistency checks: 3773 DATE_WHEN_GENERATED=1364922883 3774 3775 ############################################################################### 3776 # 3777 # Initialization / Boot-strapping 3778 # 3779 # The bootstrapping process needs to solve the "chicken or the egg" problem, 3780 # thus it jumps back and forth, each time gaining something needed later on. 3781 # 3782 ############################################################################### 3783 3784 # Basic initialization that must happen first of all 3785 3786 # Save the original command line. This is passed to us by the wrapper configure script. 3787 3788 DATE_WHEN_CONFIGURED=`LANG=C date` 3789 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 3791 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 3793 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 3794 3795 3796 3797 # Start with tools that do not need have cross compilation support 3798 # and can be expected to be found in the default PATH. These tools are 3799 # used by configure. Nor are these tools expected to be found in the 3800 # devkit from the builddeps server either, since they are 3801 # needed to download the devkit. 3802 3803 # First are all the simple required tools. 3804 3805 for ac_prog in basename 3806 do 3807 # Extract the first word of "$ac_prog", so it can be a program name with args. 3808 set dummy $ac_prog; ac_word=$2 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3810 $as_echo_n "checking for $ac_word... " >&6; } 3811 if ${ac_cv_path_BASENAME+:} false; then : 3812 $as_echo_n "(cached) " >&6 3813 else 3814 case $BASENAME in 3815 [\\/]* | ?:[\\/]*) 3816 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 3817 ;; 3818 *) 3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820 for as_dir in $PATH 3821 do 3822 IFS=$as_save_IFS 3823 test -z "$as_dir" && as_dir=. 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3826 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3828 break 2 3829 fi 3830 done 3831 done 3832 IFS=$as_save_IFS 3833 3834 ;; 3835 esac 3836 fi 3837 BASENAME=$ac_cv_path_BASENAME 3838 if test -n "$BASENAME"; then 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 3840 $as_echo "$BASENAME" >&6; } 3841 else 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3843 $as_echo "no" >&6; } 3844 fi 3845 3846 3847 test -n "$BASENAME" && break 3848 done 3849 3850 3851 if test "x$BASENAME" = x; then 3852 if test "xbasename" = x; then 3853 PROG_NAME=basename 3854 else 3855 PROG_NAME=basename 3856 fi 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 3858 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 3859 as_fn_error $? "Cannot continue" "$LINENO" 5 3860 fi 3861 3862 3863 3864 for ac_prog in bash 3865 do 3866 # Extract the first word of "$ac_prog", so it can be a program name with args. 3867 set dummy $ac_prog; ac_word=$2 3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3869 $as_echo_n "checking for $ac_word... " >&6; } 3870 if ${ac_cv_path_BASH+:} false; then : 3871 $as_echo_n "(cached) " >&6 3872 else 3873 case $BASH in 3874 [\\/]* | ?:[\\/]*) 3875 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 3876 ;; 3877 *) 3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879 for as_dir in $PATH 3880 do 3881 IFS=$as_save_IFS 3882 test -z "$as_dir" && as_dir=. 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3885 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3887 break 2 3888 fi 3889 done 3890 done 3891 IFS=$as_save_IFS 3892 3893 ;; 3894 esac 3895 fi 3896 BASH=$ac_cv_path_BASH 3897 if test -n "$BASH"; then 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 3899 $as_echo "$BASH" >&6; } 3900 else 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3902 $as_echo "no" >&6; } 3903 fi 3904 3905 3906 test -n "$BASH" && break 3907 done 3908 3909 3910 if test "x$BASH" = x; then 3911 if test "xbash" = x; then 3912 PROG_NAME=bash 3913 else 3914 PROG_NAME=bash 3915 fi 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 3917 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 3918 as_fn_error $? "Cannot continue" "$LINENO" 5 3919 fi 3920 3921 3922 3923 for ac_prog in cat 3924 do 3925 # Extract the first word of "$ac_prog", so it can be a program name with args. 3926 set dummy $ac_prog; ac_word=$2 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3928 $as_echo_n "checking for $ac_word... " >&6; } 3929 if ${ac_cv_path_CAT+:} false; then : 3930 $as_echo_n "(cached) " >&6 3931 else 3932 case $CAT in 3933 [\\/]* | ?:[\\/]*) 3934 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 3935 ;; 3936 *) 3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938 for as_dir in $PATH 3939 do 3940 IFS=$as_save_IFS 3941 test -z "$as_dir" && as_dir=. 3942 for ac_exec_ext in '' $ac_executable_extensions; do 3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3944 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3946 break 2 3947 fi 3948 done 3949 done 3950 IFS=$as_save_IFS 3951 3952 ;; 3953 esac 3954 fi 3955 CAT=$ac_cv_path_CAT 3956 if test -n "$CAT"; then 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 3958 $as_echo "$CAT" >&6; } 3959 else 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3961 $as_echo "no" >&6; } 3962 fi 3963 3964 3965 test -n "$CAT" && break 3966 done 3967 3968 3969 if test "x$CAT" = x; then 3970 if test "xcat" = x; then 3971 PROG_NAME=cat 3972 else 3973 PROG_NAME=cat 3974 fi 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 3976 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 3977 as_fn_error $? "Cannot continue" "$LINENO" 5 3978 fi 3979 3980 3981 3982 for ac_prog in chmod 3983 do 3984 # Extract the first word of "$ac_prog", so it can be a program name with args. 3985 set dummy $ac_prog; ac_word=$2 3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3987 $as_echo_n "checking for $ac_word... " >&6; } 3988 if ${ac_cv_path_CHMOD+:} false; then : 3989 $as_echo_n "(cached) " >&6 3990 else 3991 case $CHMOD in 3992 [\\/]* | ?:[\\/]*) 3993 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 3994 ;; 3995 *) 3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3997 for as_dir in $PATH 3998 do 3999 IFS=$as_save_IFS 4000 test -z "$as_dir" && as_dir=. 4001 for ac_exec_ext in '' $ac_executable_extensions; do 4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4003 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4005 break 2 4006 fi 4007 done 4008 done 4009 IFS=$as_save_IFS 4010 4011 ;; 4012 esac 4013 fi 4014 CHMOD=$ac_cv_path_CHMOD 4015 if test -n "$CHMOD"; then 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4017 $as_echo "$CHMOD" >&6; } 4018 else 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4020 $as_echo "no" >&6; } 4021 fi 4022 4023 4024 test -n "$CHMOD" && break 4025 done 4026 4027 4028 if test "x$CHMOD" = x; then 4029 if test "xchmod" = x; then 4030 PROG_NAME=chmod 4031 else 4032 PROG_NAME=chmod 4033 fi 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4035 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4036 as_fn_error $? "Cannot continue" "$LINENO" 5 4037 fi 4038 4039 4040 4041 for ac_prog in cmp 4042 do 4043 # Extract the first word of "$ac_prog", so it can be a program name with args. 4044 set dummy $ac_prog; ac_word=$2 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4046 $as_echo_n "checking for $ac_word... " >&6; } 4047 if ${ac_cv_path_CMP+:} false; then : 4048 $as_echo_n "(cached) " >&6 4049 else 4050 case $CMP in 4051 [\\/]* | ?:[\\/]*) 4052 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 4053 ;; 4054 *) 4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4056 for as_dir in $PATH 4057 do 4058 IFS=$as_save_IFS 4059 test -z "$as_dir" && as_dir=. 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4062 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4064 break 2 4065 fi 4066 done 4067 done 4068 IFS=$as_save_IFS 4069 4070 ;; 4071 esac 4072 fi 4073 CMP=$ac_cv_path_CMP 4074 if test -n "$CMP"; then 4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 4076 $as_echo "$CMP" >&6; } 4077 else 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079 $as_echo "no" >&6; } 4080 fi 4081 4082 4083 test -n "$CMP" && break 4084 done 4085 4086 4087 if test "x$CMP" = x; then 4088 if test "xcmp" = x; then 4089 PROG_NAME=cmp 4090 else 4091 PROG_NAME=cmp 4092 fi 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4094 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4095 as_fn_error $? "Cannot continue" "$LINENO" 5 4096 fi 4097 4098 4099 4100 for ac_prog in comm 4101 do 4102 # Extract the first word of "$ac_prog", so it can be a program name with args. 4103 set dummy $ac_prog; ac_word=$2 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4105 $as_echo_n "checking for $ac_word... " >&6; } 4106 if ${ac_cv_path_COMM+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108 else 4109 case $COMM in 4110 [\\/]* | ?:[\\/]*) 4111 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 4112 ;; 4113 *) 4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4115 for as_dir in $PATH 4116 do 4117 IFS=$as_save_IFS 4118 test -z "$as_dir" && as_dir=. 4119 for ac_exec_ext in '' $ac_executable_extensions; do 4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4121 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4123 break 2 4124 fi 4125 done 4126 done 4127 IFS=$as_save_IFS 4128 4129 ;; 4130 esac 4131 fi 4132 COMM=$ac_cv_path_COMM 4133 if test -n "$COMM"; then 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 4135 $as_echo "$COMM" >&6; } 4136 else 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4138 $as_echo "no" >&6; } 4139 fi 4140 4141 4142 test -n "$COMM" && break 4143 done 4144 4145 4146 if test "x$COMM" = x; then 4147 if test "xcomm" = x; then 4148 PROG_NAME=comm 4149 else 4150 PROG_NAME=comm 4151 fi 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4153 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4154 as_fn_error $? "Cannot continue" "$LINENO" 5 4155 fi 4156 4157 4158 4159 for ac_prog in cp 4160 do 4161 # Extract the first word of "$ac_prog", so it can be a program name with args. 4162 set dummy $ac_prog; ac_word=$2 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4164 $as_echo_n "checking for $ac_word... " >&6; } 4165 if ${ac_cv_path_CP+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167 else 4168 case $CP in 4169 [\\/]* | ?:[\\/]*) 4170 ac_cv_path_CP="$CP" # Let the user override the test with a path. 4171 ;; 4172 *) 4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4174 for as_dir in $PATH 4175 do 4176 IFS=$as_save_IFS 4177 test -z "$as_dir" && as_dir=. 4178 for ac_exec_ext in '' $ac_executable_extensions; do 4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4180 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4182 break 2 4183 fi 4184 done 4185 done 4186 IFS=$as_save_IFS 4187 4188 ;; 4189 esac 4190 fi 4191 CP=$ac_cv_path_CP 4192 if test -n "$CP"; then 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 4194 $as_echo "$CP" >&6; } 4195 else 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197 $as_echo "no" >&6; } 4198 fi 4199 4200 4201 test -n "$CP" && break 4202 done 4203 4204 4205 if test "x$CP" = x; then 4206 if test "xcp" = x; then 4207 PROG_NAME=cp 4208 else 4209 PROG_NAME=cp 4210 fi 4211 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4212 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4213 as_fn_error $? "Cannot continue" "$LINENO" 5 4214 fi 4215 4216 4217 4218 for ac_prog in cpio 4219 do 4220 # Extract the first word of "$ac_prog", so it can be a program name with args. 4221 set dummy $ac_prog; ac_word=$2 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4223 $as_echo_n "checking for $ac_word... " >&6; } 4224 if ${ac_cv_path_CPIO+:} false; then : 4225 $as_echo_n "(cached) " >&6 4226 else 4227 case $CPIO in 4228 [\\/]* | ?:[\\/]*) 4229 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 4230 ;; 4231 *) 4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4233 for as_dir in $PATH 4234 do 4235 IFS=$as_save_IFS 4236 test -z "$as_dir" && as_dir=. 4237 for ac_exec_ext in '' $ac_executable_extensions; do 4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4239 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4241 break 2 4242 fi 4243 done 4244 done 4245 IFS=$as_save_IFS 4246 4247 ;; 4248 esac 4249 fi 4250 CPIO=$ac_cv_path_CPIO 4251 if test -n "$CPIO"; then 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 4253 $as_echo "$CPIO" >&6; } 4254 else 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4256 $as_echo "no" >&6; } 4257 fi 4258 4259 4260 test -n "$CPIO" && break 4261 done 4262 4263 4264 if test "x$CPIO" = x; then 4265 if test "xcpio" = x; then 4266 PROG_NAME=cpio 4267 else 4268 PROG_NAME=cpio 4269 fi 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4271 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4272 as_fn_error $? "Cannot continue" "$LINENO" 5 4273 fi 4274 4275 4276 4277 for ac_prog in cut 4278 do 4279 # Extract the first word of "$ac_prog", so it can be a program name with args. 4280 set dummy $ac_prog; ac_word=$2 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4282 $as_echo_n "checking for $ac_word... " >&6; } 4283 if ${ac_cv_path_CUT+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285 else 4286 case $CUT in 4287 [\\/]* | ?:[\\/]*) 4288 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 4289 ;; 4290 *) 4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4292 for as_dir in $PATH 4293 do 4294 IFS=$as_save_IFS 4295 test -z "$as_dir" && as_dir=. 4296 for ac_exec_ext in '' $ac_executable_extensions; do 4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4298 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4300 break 2 4301 fi 4302 done 4303 done 4304 IFS=$as_save_IFS 4305 4306 ;; 4307 esac 4308 fi 4309 CUT=$ac_cv_path_CUT 4310 if test -n "$CUT"; then 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 4312 $as_echo "$CUT" >&6; } 4313 else 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4315 $as_echo "no" >&6; } 4316 fi 4317 4318 4319 test -n "$CUT" && break 4320 done 4321 4322 4323 if test "x$CUT" = x; then 4324 if test "xcut" = x; then 4325 PROG_NAME=cut 4326 else 4327 PROG_NAME=cut 4328 fi 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4330 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4331 as_fn_error $? "Cannot continue" "$LINENO" 5 4332 fi 4333 4334 4335 4336 for ac_prog in date 4337 do 4338 # Extract the first word of "$ac_prog", so it can be a program name with args. 4339 set dummy $ac_prog; ac_word=$2 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4341 $as_echo_n "checking for $ac_word... " >&6; } 4342 if ${ac_cv_path_DATE+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344 else 4345 case $DATE in 4346 [\\/]* | ?:[\\/]*) 4347 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 4348 ;; 4349 *) 4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351 for as_dir in $PATH 4352 do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4357 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4359 break 2 4360 fi 4361 done 4362 done 4363 IFS=$as_save_IFS 4364 4365 ;; 4366 esac 4367 fi 4368 DATE=$ac_cv_path_DATE 4369 if test -n "$DATE"; then 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 4371 $as_echo "$DATE" >&6; } 4372 else 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4374 $as_echo "no" >&6; } 4375 fi 4376 4377 4378 test -n "$DATE" && break 4379 done 4380 4381 4382 if test "x$DATE" = x; then 4383 if test "xdate" = x; then 4384 PROG_NAME=date 4385 else 4386 PROG_NAME=date 4387 fi 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4389 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4390 as_fn_error $? "Cannot continue" "$LINENO" 5 4391 fi 4392 4393 4394 4395 for ac_prog in gdiff diff 4396 do 4397 # Extract the first word of "$ac_prog", so it can be a program name with args. 4398 set dummy $ac_prog; ac_word=$2 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4400 $as_echo_n "checking for $ac_word... " >&6; } 4401 if ${ac_cv_path_DIFF+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403 else 4404 case $DIFF in 4405 [\\/]* | ?:[\\/]*) 4406 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 4407 ;; 4408 *) 4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4410 for as_dir in $PATH 4411 do 4412 IFS=$as_save_IFS 4413 test -z "$as_dir" && as_dir=. 4414 for ac_exec_ext in '' $ac_executable_extensions; do 4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4416 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4418 break 2 4419 fi 4420 done 4421 done 4422 IFS=$as_save_IFS 4423 4424 ;; 4425 esac 4426 fi 4427 DIFF=$ac_cv_path_DIFF 4428 if test -n "$DIFF"; then 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 4430 $as_echo "$DIFF" >&6; } 4431 else 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4433 $as_echo "no" >&6; } 4434 fi 4435 4436 4437 test -n "$DIFF" && break 4438 done 4439 4440 4441 if test "x$DIFF" = x; then 4442 if test "xgdiff diff" = x; then 4443 PROG_NAME=diff 4444 else 4445 PROG_NAME=gdiff diff 4446 fi 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4448 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4449 as_fn_error $? "Cannot continue" "$LINENO" 5 4450 fi 4451 4452 4453 4454 for ac_prog in dirname 4455 do 4456 # Extract the first word of "$ac_prog", so it can be a program name with args. 4457 set dummy $ac_prog; ac_word=$2 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4459 $as_echo_n "checking for $ac_word... " >&6; } 4460 if ${ac_cv_path_DIRNAME+:} false; then : 4461 $as_echo_n "(cached) " >&6 4462 else 4463 case $DIRNAME in 4464 [\\/]* | ?:[\\/]*) 4465 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 4466 ;; 4467 *) 4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469 for as_dir in $PATH 4470 do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4475 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479 done 4480 done 4481 IFS=$as_save_IFS 4482 4483 ;; 4484 esac 4485 fi 4486 DIRNAME=$ac_cv_path_DIRNAME 4487 if test -n "$DIRNAME"; then 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 4489 $as_echo "$DIRNAME" >&6; } 4490 else 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4492 $as_echo "no" >&6; } 4493 fi 4494 4495 4496 test -n "$DIRNAME" && break 4497 done 4498 4499 4500 if test "x$DIRNAME" = x; then 4501 if test "xdirname" = x; then 4502 PROG_NAME=dirname 4503 else 4504 PROG_NAME=dirname 4505 fi 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4507 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4508 as_fn_error $? "Cannot continue" "$LINENO" 5 4509 fi 4510 4511 4512 4513 for ac_prog in echo 4514 do 4515 # Extract the first word of "$ac_prog", so it can be a program name with args. 4516 set dummy $ac_prog; ac_word=$2 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4518 $as_echo_n "checking for $ac_word... " >&6; } 4519 if ${ac_cv_path_ECHO+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521 else 4522 case $ECHO in 4523 [\\/]* | ?:[\\/]*) 4524 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 4525 ;; 4526 *) 4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528 for as_dir in $PATH 4529 do 4530 IFS=$as_save_IFS 4531 test -z "$as_dir" && as_dir=. 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4534 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4536 break 2 4537 fi 4538 done 4539 done 4540 IFS=$as_save_IFS 4541 4542 ;; 4543 esac 4544 fi 4545 ECHO=$ac_cv_path_ECHO 4546 if test -n "$ECHO"; then 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 4548 $as_echo "$ECHO" >&6; } 4549 else 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4551 $as_echo "no" >&6; } 4552 fi 4553 4554 4555 test -n "$ECHO" && break 4556 done 4557 4558 4559 if test "x$ECHO" = x; then 4560 if test "xecho" = x; then 4561 PROG_NAME=echo 4562 else 4563 PROG_NAME=echo 4564 fi 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4566 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4567 as_fn_error $? "Cannot continue" "$LINENO" 5 4568 fi 4569 4570 4571 4572 for ac_prog in expr 4573 do 4574 # Extract the first word of "$ac_prog", so it can be a program name with args. 4575 set dummy $ac_prog; ac_word=$2 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4577 $as_echo_n "checking for $ac_word... " >&6; } 4578 if ${ac_cv_path_EXPR+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580 else 4581 case $EXPR in 4582 [\\/]* | ?:[\\/]*) 4583 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 4584 ;; 4585 *) 4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587 for as_dir in $PATH 4588 do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4593 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4595 break 2 4596 fi 4597 done 4598 done 4599 IFS=$as_save_IFS 4600 4601 ;; 4602 esac 4603 fi 4604 EXPR=$ac_cv_path_EXPR 4605 if test -n "$EXPR"; then 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 4607 $as_echo "$EXPR" >&6; } 4608 else 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4610 $as_echo "no" >&6; } 4611 fi 4612 4613 4614 test -n "$EXPR" && break 4615 done 4616 4617 4618 if test "x$EXPR" = x; then 4619 if test "xexpr" = x; then 4620 PROG_NAME=expr 4621 else 4622 PROG_NAME=expr 4623 fi 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4625 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4626 as_fn_error $? "Cannot continue" "$LINENO" 5 4627 fi 4628 4629 4630 4631 for ac_prog in file 4632 do 4633 # Extract the first word of "$ac_prog", so it can be a program name with args. 4634 set dummy $ac_prog; ac_word=$2 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4636 $as_echo_n "checking for $ac_word... " >&6; } 4637 if ${ac_cv_path_FILE+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639 else 4640 case $FILE in 4641 [\\/]* | ?:[\\/]*) 4642 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 4643 ;; 4644 *) 4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4646 for as_dir in $PATH 4647 do 4648 IFS=$as_save_IFS 4649 test -z "$as_dir" && as_dir=. 4650 for ac_exec_ext in '' $ac_executable_extensions; do 4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4652 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4654 break 2 4655 fi 4656 done 4657 done 4658 IFS=$as_save_IFS 4659 4660 ;; 4661 esac 4662 fi 4663 FILE=$ac_cv_path_FILE 4664 if test -n "$FILE"; then 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 4666 $as_echo "$FILE" >&6; } 4667 else 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4669 $as_echo "no" >&6; } 4670 fi 4671 4672 4673 test -n "$FILE" && break 4674 done 4675 4676 4677 if test "x$FILE" = x; then 4678 if test "xfile" = x; then 4679 PROG_NAME=file 4680 else 4681 PROG_NAME=file 4682 fi 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4684 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4685 as_fn_error $? "Cannot continue" "$LINENO" 5 4686 fi 4687 4688 4689 4690 for ac_prog in find 4691 do 4692 # Extract the first word of "$ac_prog", so it can be a program name with args. 4693 set dummy $ac_prog; ac_word=$2 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4695 $as_echo_n "checking for $ac_word... " >&6; } 4696 if ${ac_cv_path_FIND+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698 else 4699 case $FIND in 4700 [\\/]* | ?:[\\/]*) 4701 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 4702 ;; 4703 *) 4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4705 for as_dir in $PATH 4706 do 4707 IFS=$as_save_IFS 4708 test -z "$as_dir" && as_dir=. 4709 for ac_exec_ext in '' $ac_executable_extensions; do 4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4711 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4713 break 2 4714 fi 4715 done 4716 done 4717 IFS=$as_save_IFS 4718 4719 ;; 4720 esac 4721 fi 4722 FIND=$ac_cv_path_FIND 4723 if test -n "$FIND"; then 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 4725 $as_echo "$FIND" >&6; } 4726 else 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4728 $as_echo "no" >&6; } 4729 fi 4730 4731 4732 test -n "$FIND" && break 4733 done 4734 4735 4736 if test "x$FIND" = x; then 4737 if test "xfind" = x; then 4738 PROG_NAME=find 4739 else 4740 PROG_NAME=find 4741 fi 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4743 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4744 as_fn_error $? "Cannot continue" "$LINENO" 5 4745 fi 4746 4747 4748 4749 for ac_prog in head 4750 do 4751 # Extract the first word of "$ac_prog", so it can be a program name with args. 4752 set dummy $ac_prog; ac_word=$2 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4754 $as_echo_n "checking for $ac_word... " >&6; } 4755 if ${ac_cv_path_HEAD+:} false; then : 4756 $as_echo_n "(cached) " >&6 4757 else 4758 case $HEAD in 4759 [\\/]* | ?:[\\/]*) 4760 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 4761 ;; 4762 *) 4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764 for as_dir in $PATH 4765 do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_exec_ext in '' $ac_executable_extensions; do 4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4770 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4772 break 2 4773 fi 4774 done 4775 done 4776 IFS=$as_save_IFS 4777 4778 ;; 4779 esac 4780 fi 4781 HEAD=$ac_cv_path_HEAD 4782 if test -n "$HEAD"; then 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 4784 $as_echo "$HEAD" >&6; } 4785 else 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787 $as_echo "no" >&6; } 4788 fi 4789 4790 4791 test -n "$HEAD" && break 4792 done 4793 4794 4795 if test "x$HEAD" = x; then 4796 if test "xhead" = x; then 4797 PROG_NAME=head 4798 else 4799 PROG_NAME=head 4800 fi 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4802 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4803 as_fn_error $? "Cannot continue" "$LINENO" 5 4804 fi 4805 4806 4807 4808 for ac_prog in ln 4809 do 4810 # Extract the first word of "$ac_prog", so it can be a program name with args. 4811 set dummy $ac_prog; ac_word=$2 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4813 $as_echo_n "checking for $ac_word... " >&6; } 4814 if ${ac_cv_path_LN+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816 else 4817 case $LN in 4818 [\\/]* | ?:[\\/]*) 4819 ac_cv_path_LN="$LN" # Let the user override the test with a path. 4820 ;; 4821 *) 4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823 for as_dir in $PATH 4824 do 4825 IFS=$as_save_IFS 4826 test -z "$as_dir" && as_dir=. 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4829 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833 done 4834 done 4835 IFS=$as_save_IFS 4836 4837 ;; 4838 esac 4839 fi 4840 LN=$ac_cv_path_LN 4841 if test -n "$LN"; then 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 4843 $as_echo "$LN" >&6; } 4844 else 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846 $as_echo "no" >&6; } 4847 fi 4848 4849 4850 test -n "$LN" && break 4851 done 4852 4853 4854 if test "x$LN" = x; then 4855 if test "xln" = x; then 4856 PROG_NAME=ln 4857 else 4858 PROG_NAME=ln 4859 fi 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4861 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4862 as_fn_error $? "Cannot continue" "$LINENO" 5 4863 fi 4864 4865 4866 4867 for ac_prog in ls 4868 do 4869 # Extract the first word of "$ac_prog", so it can be a program name with args. 4870 set dummy $ac_prog; ac_word=$2 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4872 $as_echo_n "checking for $ac_word... " >&6; } 4873 if ${ac_cv_path_LS+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875 else 4876 case $LS in 4877 [\\/]* | ?:[\\/]*) 4878 ac_cv_path_LS="$LS" # Let the user override the test with a path. 4879 ;; 4880 *) 4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4882 for as_dir in $PATH 4883 do 4884 IFS=$as_save_IFS 4885 test -z "$as_dir" && as_dir=. 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4888 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4890 break 2 4891 fi 4892 done 4893 done 4894 IFS=$as_save_IFS 4895 4896 ;; 4897 esac 4898 fi 4899 LS=$ac_cv_path_LS 4900 if test -n "$LS"; then 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 4902 $as_echo "$LS" >&6; } 4903 else 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4905 $as_echo "no" >&6; } 4906 fi 4907 4908 4909 test -n "$LS" && break 4910 done 4911 4912 4913 if test "x$LS" = x; then 4914 if test "xls" = x; then 4915 PROG_NAME=ls 4916 else 4917 PROG_NAME=ls 4918 fi 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4920 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4921 as_fn_error $? "Cannot continue" "$LINENO" 5 4922 fi 4923 4924 4925 4926 for ac_prog in mkdir 4927 do 4928 # Extract the first word of "$ac_prog", so it can be a program name with args. 4929 set dummy $ac_prog; ac_word=$2 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4931 $as_echo_n "checking for $ac_word... " >&6; } 4932 if ${ac_cv_path_MKDIR+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934 else 4935 case $MKDIR in 4936 [\\/]* | ?:[\\/]*) 4937 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 4938 ;; 4939 *) 4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941 for as_dir in $PATH 4942 do 4943 IFS=$as_save_IFS 4944 test -z "$as_dir" && as_dir=. 4945 for ac_exec_ext in '' $ac_executable_extensions; do 4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4947 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4949 break 2 4950 fi 4951 done 4952 done 4953 IFS=$as_save_IFS 4954 4955 ;; 4956 esac 4957 fi 4958 MKDIR=$ac_cv_path_MKDIR 4959 if test -n "$MKDIR"; then 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 4961 $as_echo "$MKDIR" >&6; } 4962 else 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4964 $as_echo "no" >&6; } 4965 fi 4966 4967 4968 test -n "$MKDIR" && break 4969 done 4970 4971 4972 if test "x$MKDIR" = x; then 4973 if test "xmkdir" = x; then 4974 PROG_NAME=mkdir 4975 else 4976 PROG_NAME=mkdir 4977 fi 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4979 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4980 as_fn_error $? "Cannot continue" "$LINENO" 5 4981 fi 4982 4983 4984 4985 for ac_prog in mktemp 4986 do 4987 # Extract the first word of "$ac_prog", so it can be a program name with args. 4988 set dummy $ac_prog; ac_word=$2 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4990 $as_echo_n "checking for $ac_word... " >&6; } 4991 if ${ac_cv_path_MKTEMP+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993 else 4994 case $MKTEMP in 4995 [\\/]* | ?:[\\/]*) 4996 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 4997 ;; 4998 *) 4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5000 for as_dir in $PATH 5001 do 5002 IFS=$as_save_IFS 5003 test -z "$as_dir" && as_dir=. 5004 for ac_exec_ext in '' $ac_executable_extensions; do 5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5006 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5008 break 2 5009 fi 5010 done 5011 done 5012 IFS=$as_save_IFS 5013 5014 ;; 5015 esac 5016 fi 5017 MKTEMP=$ac_cv_path_MKTEMP 5018 if test -n "$MKTEMP"; then 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 5020 $as_echo "$MKTEMP" >&6; } 5021 else 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5023 $as_echo "no" >&6; } 5024 fi 5025 5026 5027 test -n "$MKTEMP" && break 5028 done 5029 5030 5031 if test "x$MKTEMP" = x; then 5032 if test "xmktemp" = x; then 5033 PROG_NAME=mktemp 5034 else 5035 PROG_NAME=mktemp 5036 fi 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5038 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5039 as_fn_error $? "Cannot continue" "$LINENO" 5 5040 fi 5041 5042 5043 5044 for ac_prog in mv 5045 do 5046 # Extract the first word of "$ac_prog", so it can be a program name with args. 5047 set dummy $ac_prog; ac_word=$2 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5049 $as_echo_n "checking for $ac_word... " >&6; } 5050 if ${ac_cv_path_MV+:} false; then : 5051 $as_echo_n "(cached) " >&6 5052 else 5053 case $MV in 5054 [\\/]* | ?:[\\/]*) 5055 ac_cv_path_MV="$MV" # Let the user override the test with a path. 5056 ;; 5057 *) 5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5059 for as_dir in $PATH 5060 do 5061 IFS=$as_save_IFS 5062 test -z "$as_dir" && as_dir=. 5063 for ac_exec_ext in '' $ac_executable_extensions; do 5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5065 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5067 break 2 5068 fi 5069 done 5070 done 5071 IFS=$as_save_IFS 5072 5073 ;; 5074 esac 5075 fi 5076 MV=$ac_cv_path_MV 5077 if test -n "$MV"; then 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 5079 $as_echo "$MV" >&6; } 5080 else 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5082 $as_echo "no" >&6; } 5083 fi 5084 5085 5086 test -n "$MV" && break 5087 done 5088 5089 5090 if test "x$MV" = x; then 5091 if test "xmv" = x; then 5092 PROG_NAME=mv 5093 else 5094 PROG_NAME=mv 5095 fi 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5097 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5098 as_fn_error $? "Cannot continue" "$LINENO" 5 5099 fi 5100 5101 5102 5103 for ac_prog in printf 5104 do 5105 # Extract the first word of "$ac_prog", so it can be a program name with args. 5106 set dummy $ac_prog; ac_word=$2 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5108 $as_echo_n "checking for $ac_word... " >&6; } 5109 if ${ac_cv_path_PRINTF+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111 else 5112 case $PRINTF in 5113 [\\/]* | ?:[\\/]*) 5114 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 5115 ;; 5116 *) 5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5118 for as_dir in $PATH 5119 do 5120 IFS=$as_save_IFS 5121 test -z "$as_dir" && as_dir=. 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5124 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5126 break 2 5127 fi 5128 done 5129 done 5130 IFS=$as_save_IFS 5131 5132 ;; 5133 esac 5134 fi 5135 PRINTF=$ac_cv_path_PRINTF 5136 if test -n "$PRINTF"; then 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 5138 $as_echo "$PRINTF" >&6; } 5139 else 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5141 $as_echo "no" >&6; } 5142 fi 5143 5144 5145 test -n "$PRINTF" && break 5146 done 5147 5148 5149 if test "x$PRINTF" = x; then 5150 if test "xprintf" = x; then 5151 PROG_NAME=printf 5152 else 5153 PROG_NAME=printf 5154 fi 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5156 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5157 as_fn_error $? "Cannot continue" "$LINENO" 5 5158 fi 5159 5160 5161 5162 for ac_prog in pwd 5163 do 5164 # Extract the first word of "$ac_prog", so it can be a program name with args. 5165 set dummy $ac_prog; ac_word=$2 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5167 $as_echo_n "checking for $ac_word... " >&6; } 5168 if ${ac_cv_path_THEPWDCMD+:} false; then : 5169 $as_echo_n "(cached) " >&6 5170 else 5171 case $THEPWDCMD in 5172 [\\/]* | ?:[\\/]*) 5173 ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path. 5174 ;; 5175 *) 5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5177 for as_dir in $PATH 5178 do 5179 IFS=$as_save_IFS 5180 test -z "$as_dir" && as_dir=. 5181 for ac_exec_ext in '' $ac_executable_extensions; do 5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5183 ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext" 5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5185 break 2 5186 fi 5187 done 5188 done 5189 IFS=$as_save_IFS 5190 5191 ;; 5192 esac 5193 fi 5194 THEPWDCMD=$ac_cv_path_THEPWDCMD 5195 if test -n "$THEPWDCMD"; then 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THEPWDCMD" >&5 5197 $as_echo "$THEPWDCMD" >&6; } 5198 else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5200 $as_echo "no" >&6; } 5201 fi 5202 5203 5204 test -n "$THEPWDCMD" && break 5205 done 5206 5207 5208 if test "x$THEPWDCMD" = x; then 5209 if test "xpwd" = x; then 5210 PROG_NAME=thepwdcmd 5211 else 5212 PROG_NAME=pwd 5213 fi 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5215 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5216 as_fn_error $? "Cannot continue" "$LINENO" 5 5217 fi 5218 5219 5220 5221 for ac_prog in rm 5222 do 5223 # Extract the first word of "$ac_prog", so it can be a program name with args. 5224 set dummy $ac_prog; ac_word=$2 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5226 $as_echo_n "checking for $ac_word... " >&6; } 5227 if ${ac_cv_path_RM+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229 else 5230 case $RM in 5231 [\\/]* | ?:[\\/]*) 5232 ac_cv_path_RM="$RM" # Let the user override the test with a path. 5233 ;; 5234 *) 5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5236 for as_dir in $PATH 5237 do 5238 IFS=$as_save_IFS 5239 test -z "$as_dir" && as_dir=. 5240 for ac_exec_ext in '' $ac_executable_extensions; do 5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5242 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5244 break 2 5245 fi 5246 done 5247 done 5248 IFS=$as_save_IFS 5249 5250 ;; 5251 esac 5252 fi 5253 RM=$ac_cv_path_RM 5254 if test -n "$RM"; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 5256 $as_echo "$RM" >&6; } 5257 else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259 $as_echo "no" >&6; } 5260 fi 5261 5262 5263 test -n "$RM" && break 5264 done 5265 5266 5267 if test "x$RM" = x; then 5268 if test "xrm" = x; then 5269 PROG_NAME=rm 5270 else 5271 PROG_NAME=rm 5272 fi 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5274 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5275 as_fn_error $? "Cannot continue" "$LINENO" 5 5276 fi 5277 5278 5279 5280 for ac_prog in sh 5281 do 5282 # Extract the first word of "$ac_prog", so it can be a program name with args. 5283 set dummy $ac_prog; ac_word=$2 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5285 $as_echo_n "checking for $ac_word... " >&6; } 5286 if ${ac_cv_path_SH+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288 else 5289 case $SH in 5290 [\\/]* | ?:[\\/]*) 5291 ac_cv_path_SH="$SH" # Let the user override the test with a path. 5292 ;; 5293 *) 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295 for as_dir in $PATH 5296 do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5301 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305 done 5306 done 5307 IFS=$as_save_IFS 5308 5309 ;; 5310 esac 5311 fi 5312 SH=$ac_cv_path_SH 5313 if test -n "$SH"; then 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 5315 $as_echo "$SH" >&6; } 5316 else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5318 $as_echo "no" >&6; } 5319 fi 5320 5321 5322 test -n "$SH" && break 5323 done 5324 5325 5326 if test "x$SH" = x; then 5327 if test "xsh" = x; then 5328 PROG_NAME=sh 5329 else 5330 PROG_NAME=sh 5331 fi 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5333 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5334 as_fn_error $? "Cannot continue" "$LINENO" 5 5335 fi 5336 5337 5338 5339 for ac_prog in sort 5340 do 5341 # Extract the first word of "$ac_prog", so it can be a program name with args. 5342 set dummy $ac_prog; ac_word=$2 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5344 $as_echo_n "checking for $ac_word... " >&6; } 5345 if ${ac_cv_path_SORT+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347 else 5348 case $SORT in 5349 [\\/]* | ?:[\\/]*) 5350 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 5351 ;; 5352 *) 5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354 for as_dir in $PATH 5355 do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5360 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364 done 5365 done 5366 IFS=$as_save_IFS 5367 5368 ;; 5369 esac 5370 fi 5371 SORT=$ac_cv_path_SORT 5372 if test -n "$SORT"; then 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 5374 $as_echo "$SORT" >&6; } 5375 else 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5377 $as_echo "no" >&6; } 5378 fi 5379 5380 5381 test -n "$SORT" && break 5382 done 5383 5384 5385 if test "x$SORT" = x; then 5386 if test "xsort" = x; then 5387 PROG_NAME=sort 5388 else 5389 PROG_NAME=sort 5390 fi 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5392 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5393 as_fn_error $? "Cannot continue" "$LINENO" 5 5394 fi 5395 5396 5397 5398 for ac_prog in tail 5399 do 5400 # Extract the first word of "$ac_prog", so it can be a program name with args. 5401 set dummy $ac_prog; ac_word=$2 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5403 $as_echo_n "checking for $ac_word... " >&6; } 5404 if ${ac_cv_path_TAIL+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406 else 5407 case $TAIL in 5408 [\\/]* | ?:[\\/]*) 5409 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 5410 ;; 5411 *) 5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413 for as_dir in $PATH 5414 do 5415 IFS=$as_save_IFS 5416 test -z "$as_dir" && as_dir=. 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5419 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5421 break 2 5422 fi 5423 done 5424 done 5425 IFS=$as_save_IFS 5426 5427 ;; 5428 esac 5429 fi 5430 TAIL=$ac_cv_path_TAIL 5431 if test -n "$TAIL"; then 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 5433 $as_echo "$TAIL" >&6; } 5434 else 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5436 $as_echo "no" >&6; } 5437 fi 5438 5439 5440 test -n "$TAIL" && break 5441 done 5442 5443 5444 if test "x$TAIL" = x; then 5445 if test "xtail" = x; then 5446 PROG_NAME=tail 5447 else 5448 PROG_NAME=tail 5449 fi 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5451 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5452 as_fn_error $? "Cannot continue" "$LINENO" 5 5453 fi 5454 5455 5456 5457 for ac_prog in tar 5458 do 5459 # Extract the first word of "$ac_prog", so it can be a program name with args. 5460 set dummy $ac_prog; ac_word=$2 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5462 $as_echo_n "checking for $ac_word... " >&6; } 5463 if ${ac_cv_path_TAR+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465 else 5466 case $TAR in 5467 [\\/]* | ?:[\\/]*) 5468 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 5469 ;; 5470 *) 5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5472 for as_dir in $PATH 5473 do 5474 IFS=$as_save_IFS 5475 test -z "$as_dir" && as_dir=. 5476 for ac_exec_ext in '' $ac_executable_extensions; do 5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5478 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5480 break 2 5481 fi 5482 done 5483 done 5484 IFS=$as_save_IFS 5485 5486 ;; 5487 esac 5488 fi 5489 TAR=$ac_cv_path_TAR 5490 if test -n "$TAR"; then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 5492 $as_echo "$TAR" >&6; } 5493 else 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5495 $as_echo "no" >&6; } 5496 fi 5497 5498 5499 test -n "$TAR" && break 5500 done 5501 5502 5503 if test "x$TAR" = x; then 5504 if test "xtar" = x; then 5505 PROG_NAME=tar 5506 else 5507 PROG_NAME=tar 5508 fi 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5510 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5511 as_fn_error $? "Cannot continue" "$LINENO" 5 5512 fi 5513 5514 5515 5516 for ac_prog in tee 5517 do 5518 # Extract the first word of "$ac_prog", so it can be a program name with args. 5519 set dummy $ac_prog; ac_word=$2 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5521 $as_echo_n "checking for $ac_word... " >&6; } 5522 if ${ac_cv_path_TEE+:} false; then : 5523 $as_echo_n "(cached) " >&6 5524 else 5525 case $TEE in 5526 [\\/]* | ?:[\\/]*) 5527 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 5528 ;; 5529 *) 5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5531 for as_dir in $PATH 5532 do 5533 IFS=$as_save_IFS 5534 test -z "$as_dir" && as_dir=. 5535 for ac_exec_ext in '' $ac_executable_extensions; do 5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5537 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5539 break 2 5540 fi 5541 done 5542 done 5543 IFS=$as_save_IFS 5544 5545 ;; 5546 esac 5547 fi 5548 TEE=$ac_cv_path_TEE 5549 if test -n "$TEE"; then 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 5551 $as_echo "$TEE" >&6; } 5552 else 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5554 $as_echo "no" >&6; } 5555 fi 5556 5557 5558 test -n "$TEE" && break 5559 done 5560 5561 5562 if test "x$TEE" = x; then 5563 if test "xtee" = x; then 5564 PROG_NAME=tee 5565 else 5566 PROG_NAME=tee 5567 fi 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5569 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5570 as_fn_error $? "Cannot continue" "$LINENO" 5 5571 fi 5572 5573 5574 5575 for ac_prog in touch 5576 do 5577 # Extract the first word of "$ac_prog", so it can be a program name with args. 5578 set dummy $ac_prog; 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_TOUCH+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583 else 5584 case $TOUCH in 5585 [\\/]* | ?:[\\/]*) 5586 ac_cv_path_TOUCH="$TOUCH" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5596 ac_cv_path_TOUCH="$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 TOUCH=$ac_cv_path_TOUCH 5608 if test -n "$TOUCH"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 5610 $as_echo "$TOUCH" >&6; } 5611 else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613 $as_echo "no" >&6; } 5614 fi 5615 5616 5617 test -n "$TOUCH" && break 5618 done 5619 5620 5621 if test "x$TOUCH" = x; then 5622 if test "xtouch" = x; then 5623 PROG_NAME=touch 5624 else 5625 PROG_NAME=touch 5626 fi 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5628 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5629 as_fn_error $? "Cannot continue" "$LINENO" 5 5630 fi 5631 5632 5633 5634 for ac_prog in tr 5635 do 5636 # Extract the first word of "$ac_prog", so it can be a program name with args. 5637 set dummy $ac_prog; ac_word=$2 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5639 $as_echo_n "checking for $ac_word... " >&6; } 5640 if ${ac_cv_path_TR+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642 else 5643 case $TR in 5644 [\\/]* | ?:[\\/]*) 5645 ac_cv_path_TR="$TR" # Let the user override the test with a path. 5646 ;; 5647 *) 5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5649 for as_dir in $PATH 5650 do 5651 IFS=$as_save_IFS 5652 test -z "$as_dir" && as_dir=. 5653 for ac_exec_ext in '' $ac_executable_extensions; do 5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5655 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5657 break 2 5658 fi 5659 done 5660 done 5661 IFS=$as_save_IFS 5662 5663 ;; 5664 esac 5665 fi 5666 TR=$ac_cv_path_TR 5667 if test -n "$TR"; then 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 5669 $as_echo "$TR" >&6; } 5670 else 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5672 $as_echo "no" >&6; } 5673 fi 5674 5675 5676 test -n "$TR" && break 5677 done 5678 5679 5680 if test "x$TR" = x; then 5681 if test "xtr" = x; then 5682 PROG_NAME=tr 5683 else 5684 PROG_NAME=tr 5685 fi 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5687 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5688 as_fn_error $? "Cannot continue" "$LINENO" 5 5689 fi 5690 5691 5692 5693 for ac_prog in uname 5694 do 5695 # Extract the first word of "$ac_prog", so it can be a program name with args. 5696 set dummy $ac_prog; ac_word=$2 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5698 $as_echo_n "checking for $ac_word... " >&6; } 5699 if ${ac_cv_path_UNAME+:} false; then : 5700 $as_echo_n "(cached) " >&6 5701 else 5702 case $UNAME in 5703 [\\/]* | ?:[\\/]*) 5704 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 5705 ;; 5706 *) 5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708 for as_dir in $PATH 5709 do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for ac_exec_ext in '' $ac_executable_extensions; do 5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5714 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5716 break 2 5717 fi 5718 done 5719 done 5720 IFS=$as_save_IFS 5721 5722 ;; 5723 esac 5724 fi 5725 UNAME=$ac_cv_path_UNAME 5726 if test -n "$UNAME"; then 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 5728 $as_echo "$UNAME" >&6; } 5729 else 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5731 $as_echo "no" >&6; } 5732 fi 5733 5734 5735 test -n "$UNAME" && break 5736 done 5737 5738 5739 if test "x$UNAME" = x; then 5740 if test "xuname" = x; then 5741 PROG_NAME=uname 5742 else 5743 PROG_NAME=uname 5744 fi 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5746 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5747 as_fn_error $? "Cannot continue" "$LINENO" 5 5748 fi 5749 5750 5751 5752 for ac_prog in uniq 5753 do 5754 # Extract the first word of "$ac_prog", so it can be a program name with args. 5755 set dummy $ac_prog; ac_word=$2 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5757 $as_echo_n "checking for $ac_word... " >&6; } 5758 if ${ac_cv_path_UNIQ+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760 else 5761 case $UNIQ in 5762 [\\/]* | ?:[\\/]*) 5763 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 5764 ;; 5765 *) 5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5767 for as_dir in $PATH 5768 do 5769 IFS=$as_save_IFS 5770 test -z "$as_dir" && as_dir=. 5771 for ac_exec_ext in '' $ac_executable_extensions; do 5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5773 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5775 break 2 5776 fi 5777 done 5778 done 5779 IFS=$as_save_IFS 5780 5781 ;; 5782 esac 5783 fi 5784 UNIQ=$ac_cv_path_UNIQ 5785 if test -n "$UNIQ"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 5787 $as_echo "$UNIQ" >&6; } 5788 else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790 $as_echo "no" >&6; } 5791 fi 5792 5793 5794 test -n "$UNIQ" && break 5795 done 5796 5797 5798 if test "x$UNIQ" = x; then 5799 if test "xuniq" = x; then 5800 PROG_NAME=uniq 5801 else 5802 PROG_NAME=uniq 5803 fi 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5805 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5806 as_fn_error $? "Cannot continue" "$LINENO" 5 5807 fi 5808 5809 5810 5811 for ac_prog in wc 5812 do 5813 # Extract the first word of "$ac_prog", so it can be a program name with args. 5814 set dummy $ac_prog; ac_word=$2 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5816 $as_echo_n "checking for $ac_word... " >&6; } 5817 if ${ac_cv_path_WC+:} false; then : 5818 $as_echo_n "(cached) " >&6 5819 else 5820 case $WC in 5821 [\\/]* | ?:[\\/]*) 5822 ac_cv_path_WC="$WC" # Let the user override the test with a path. 5823 ;; 5824 *) 5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5826 for as_dir in $PATH 5827 do 5828 IFS=$as_save_IFS 5829 test -z "$as_dir" && as_dir=. 5830 for ac_exec_ext in '' $ac_executable_extensions; do 5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5832 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5834 break 2 5835 fi 5836 done 5837 done 5838 IFS=$as_save_IFS 5839 5840 ;; 5841 esac 5842 fi 5843 WC=$ac_cv_path_WC 5844 if test -n "$WC"; then 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 5846 $as_echo "$WC" >&6; } 5847 else 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5849 $as_echo "no" >&6; } 5850 fi 5851 5852 5853 test -n "$WC" && break 5854 done 5855 5856 5857 if test "x$WC" = x; then 5858 if test "xwc" = x; then 5859 PROG_NAME=wc 5860 else 5861 PROG_NAME=wc 5862 fi 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5864 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5865 as_fn_error $? "Cannot continue" "$LINENO" 5 5866 fi 5867 5868 5869 5870 for ac_prog in which 5871 do 5872 # Extract the first word of "$ac_prog", so it can be a program name with args. 5873 set dummy $ac_prog; ac_word=$2 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5875 $as_echo_n "checking for $ac_word... " >&6; } 5876 if ${ac_cv_path_WHICH+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878 else 5879 case $WHICH in 5880 [\\/]* | ?:[\\/]*) 5881 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 5882 ;; 5883 *) 5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5885 for as_dir in $PATH 5886 do 5887 IFS=$as_save_IFS 5888 test -z "$as_dir" && as_dir=. 5889 for ac_exec_ext in '' $ac_executable_extensions; do 5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5891 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5893 break 2 5894 fi 5895 done 5896 done 5897 IFS=$as_save_IFS 5898 5899 ;; 5900 esac 5901 fi 5902 WHICH=$ac_cv_path_WHICH 5903 if test -n "$WHICH"; then 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 5905 $as_echo "$WHICH" >&6; } 5906 else 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5908 $as_echo "no" >&6; } 5909 fi 5910 5911 5912 test -n "$WHICH" && break 5913 done 5914 5915 5916 if test "x$WHICH" = x; then 5917 if test "xwhich" = x; then 5918 PROG_NAME=which 5919 else 5920 PROG_NAME=which 5921 fi 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5923 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5924 as_fn_error $? "Cannot continue" "$LINENO" 5 5925 fi 5926 5927 5928 5929 for ac_prog in xargs 5930 do 5931 # Extract the first word of "$ac_prog", so it can be a program name with args. 5932 set dummy $ac_prog; ac_word=$2 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5934 $as_echo_n "checking for $ac_word... " >&6; } 5935 if ${ac_cv_path_XARGS+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937 else 5938 case $XARGS in 5939 [\\/]* | ?:[\\/]*) 5940 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 5941 ;; 5942 *) 5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5944 for as_dir in $PATH 5945 do 5946 IFS=$as_save_IFS 5947 test -z "$as_dir" && as_dir=. 5948 for ac_exec_ext in '' $ac_executable_extensions; do 5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5950 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5952 break 2 5953 fi 5954 done 5955 done 5956 IFS=$as_save_IFS 5957 5958 ;; 5959 esac 5960 fi 5961 XARGS=$ac_cv_path_XARGS 5962 if test -n "$XARGS"; then 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 5964 $as_echo "$XARGS" >&6; } 5965 else 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5967 $as_echo "no" >&6; } 5968 fi 5969 5970 5971 test -n "$XARGS" && break 5972 done 5973 5974 5975 if test "x$XARGS" = x; then 5976 if test "xxargs" = x; then 5977 PROG_NAME=xargs 5978 else 5979 PROG_NAME=xargs 5980 fi 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5982 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5983 as_fn_error $? "Cannot continue" "$LINENO" 5 5984 fi 5985 5986 5987 5988 # Then required tools that require some special treatment. 5989 for ac_prog in gawk mawk nawk awk 5990 do 5991 # Extract the first word of "$ac_prog", so it can be a program name with args. 5992 set dummy $ac_prog; ac_word=$2 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5994 $as_echo_n "checking for $ac_word... " >&6; } 5995 if ${ac_cv_prog_AWK+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997 else 5998 if test -n "$AWK"; then 5999 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6000 else 6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002 for as_dir in $PATH 6003 do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6008 ac_cv_prog_AWK="$ac_prog" 6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012 done 6013 done 6014 IFS=$as_save_IFS 6015 6016 fi 6017 fi 6018 AWK=$ac_cv_prog_AWK 6019 if test -n "$AWK"; then 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6021 $as_echo "$AWK" >&6; } 6022 else 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6024 $as_echo "no" >&6; } 6025 fi 6026 6027 6028 test -n "$AWK" && break 6029 done 6030 6031 6032 if test "x$AWK" = x; then 6033 if test "x" = x; then 6034 PROG_NAME=awk 6035 else 6036 PROG_NAME= 6037 fi 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6039 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6040 as_fn_error $? "Cannot continue" "$LINENO" 5 6041 fi 6042 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6044 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6045 if ${ac_cv_path_GREP+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047 else 6048 if test -z "$GREP"; then 6049 ac_path_GREP_found=false 6050 # Loop through the user's path and test for each of PROGNAME-LIST 6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6053 do 6054 IFS=$as_save_IFS 6055 test -z "$as_dir" && as_dir=. 6056 for ac_prog in grep ggrep; do 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6059 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6060 # Check for GNU ac_path_GREP and select it if it is found. 6061 # Check for GNU $ac_path_GREP 6062 case `"$ac_path_GREP" --version 2>&1` in 6063 *GNU*) 6064 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6065 *) 6066 ac_count=0 6067 $as_echo_n 0123456789 >"conftest.in" 6068 while : 6069 do 6070 cat "conftest.in" "conftest.in" >"conftest.tmp" 6071 mv "conftest.tmp" "conftest.in" 6072 cp "conftest.in" "conftest.nl" 6073 $as_echo 'GREP' >> "conftest.nl" 6074 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6076 as_fn_arith $ac_count + 1 && ac_count=$as_val 6077 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6078 # Best one so far, save it but keep looking for a better one 6079 ac_cv_path_GREP="$ac_path_GREP" 6080 ac_path_GREP_max=$ac_count 6081 fi 6082 # 10*(2^10) chars as input seems more than enough 6083 test $ac_count -gt 10 && break 6084 done 6085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6086 esac 6087 6088 $ac_path_GREP_found && break 3 6089 done 6090 done 6091 done 6092 IFS=$as_save_IFS 6093 if test -z "$ac_cv_path_GREP"; then 6094 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6095 fi 6096 else 6097 ac_cv_path_GREP=$GREP 6098 fi 6099 6100 fi 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6102 $as_echo "$ac_cv_path_GREP" >&6; } 6103 GREP="$ac_cv_path_GREP" 6104 6105 6106 6107 if test "x$GREP" = x; then 6108 if test "x" = x; then 6109 PROG_NAME=grep 6110 else 6111 PROG_NAME= 6112 fi 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6114 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6115 as_fn_error $? "Cannot continue" "$LINENO" 5 6116 fi 6117 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6119 $as_echo_n "checking for egrep... " >&6; } 6120 if ${ac_cv_path_EGREP+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122 else 6123 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6124 then ac_cv_path_EGREP="$GREP -E" 6125 else 6126 if test -z "$EGREP"; then 6127 ac_path_EGREP_found=false 6128 # Loop through the user's path and test for each of PROGNAME-LIST 6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6131 do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_prog in egrep; do 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6137 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6138 # Check for GNU ac_path_EGREP and select it if it is found. 6139 # Check for GNU $ac_path_EGREP 6140 case `"$ac_path_EGREP" --version 2>&1` in 6141 *GNU*) 6142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6143 *) 6144 ac_count=0 6145 $as_echo_n 0123456789 >"conftest.in" 6146 while : 6147 do 6148 cat "conftest.in" "conftest.in" >"conftest.tmp" 6149 mv "conftest.tmp" "conftest.in" 6150 cp "conftest.in" "conftest.nl" 6151 $as_echo 'EGREP' >> "conftest.nl" 6152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6154 as_fn_arith $ac_count + 1 && ac_count=$as_val 6155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6156 # Best one so far, save it but keep looking for a better one 6157 ac_cv_path_EGREP="$ac_path_EGREP" 6158 ac_path_EGREP_max=$ac_count 6159 fi 6160 # 10*(2^10) chars as input seems more than enough 6161 test $ac_count -gt 10 && break 6162 done 6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6164 esac 6165 6166 $ac_path_EGREP_found && break 3 6167 done 6168 done 6169 done 6170 IFS=$as_save_IFS 6171 if test -z "$ac_cv_path_EGREP"; then 6172 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6173 fi 6174 else 6175 ac_cv_path_EGREP=$EGREP 6176 fi 6177 6178 fi 6179 fi 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6181 $as_echo "$ac_cv_path_EGREP" >&6; } 6182 EGREP="$ac_cv_path_EGREP" 6183 6184 6185 6186 if test "x$EGREP" = x; then 6187 if test "x" = x; then 6188 PROG_NAME=egrep 6189 else 6190 PROG_NAME= 6191 fi 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6193 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6194 as_fn_error $? "Cannot continue" "$LINENO" 5 6195 fi 6196 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6198 $as_echo_n "checking for fgrep... " >&6; } 6199 if ${ac_cv_path_FGREP+:} false; then : 6200 $as_echo_n "(cached) " >&6 6201 else 6202 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6203 then ac_cv_path_FGREP="$GREP -F" 6204 else 6205 if test -z "$FGREP"; then 6206 ac_path_FGREP_found=false 6207 # Loop through the user's path and test for each of PROGNAME-LIST 6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6210 do 6211 IFS=$as_save_IFS 6212 test -z "$as_dir" && as_dir=. 6213 for ac_prog in fgrep; do 6214 for ac_exec_ext in '' $ac_executable_extensions; do 6215 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6216 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6217 # Check for GNU ac_path_FGREP and select it if it is found. 6218 # Check for GNU $ac_path_FGREP 6219 case `"$ac_path_FGREP" --version 2>&1` in 6220 *GNU*) 6221 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6222 *) 6223 ac_count=0 6224 $as_echo_n 0123456789 >"conftest.in" 6225 while : 6226 do 6227 cat "conftest.in" "conftest.in" >"conftest.tmp" 6228 mv "conftest.tmp" "conftest.in" 6229 cp "conftest.in" "conftest.nl" 6230 $as_echo 'FGREP' >> "conftest.nl" 6231 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6233 as_fn_arith $ac_count + 1 && ac_count=$as_val 6234 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6235 # Best one so far, save it but keep looking for a better one 6236 ac_cv_path_FGREP="$ac_path_FGREP" 6237 ac_path_FGREP_max=$ac_count 6238 fi 6239 # 10*(2^10) chars as input seems more than enough 6240 test $ac_count -gt 10 && break 6241 done 6242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6243 esac 6244 6245 $ac_path_FGREP_found && break 3 6246 done 6247 done 6248 done 6249 IFS=$as_save_IFS 6250 if test -z "$ac_cv_path_FGREP"; then 6251 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6252 fi 6253 else 6254 ac_cv_path_FGREP=$FGREP 6255 fi 6256 6257 fi 6258 fi 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6260 $as_echo "$ac_cv_path_FGREP" >&6; } 6261 FGREP="$ac_cv_path_FGREP" 6262 6263 6264 6265 if test "x$FGREP" = x; then 6266 if test "x" = x; then 6267 PROG_NAME=fgrep 6268 else 6269 PROG_NAME= 6270 fi 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6272 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6273 as_fn_error $? "Cannot continue" "$LINENO" 5 6274 fi 6275 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6277 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 6278 if ${ac_cv_path_SED+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280 else 6281 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6282 for ac_i in 1 2 3 4 5 6 7; do 6283 ac_script="$ac_script$as_nl$ac_script" 6284 done 6285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6286 { ac_script=; unset ac_script;} 6287 if test -z "$SED"; then 6288 ac_path_SED_found=false 6289 # Loop through the user's path and test for each of PROGNAME-LIST 6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6291 for as_dir in $PATH 6292 do 6293 IFS=$as_save_IFS 6294 test -z "$as_dir" && as_dir=. 6295 for ac_prog in sed gsed; do 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6298 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6299 # Check for GNU ac_path_SED and select it if it is found. 6300 # Check for GNU $ac_path_SED 6301 case `"$ac_path_SED" --version 2>&1` in 6302 *GNU*) 6303 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6304 *) 6305 ac_count=0 6306 $as_echo_n 0123456789 >"conftest.in" 6307 while : 6308 do 6309 cat "conftest.in" "conftest.in" >"conftest.tmp" 6310 mv "conftest.tmp" "conftest.in" 6311 cp "conftest.in" "conftest.nl" 6312 $as_echo '' >> "conftest.nl" 6313 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6315 as_fn_arith $ac_count + 1 && ac_count=$as_val 6316 if test $ac_count -gt ${ac_path_SED_max-0}; then 6317 # Best one so far, save it but keep looking for a better one 6318 ac_cv_path_SED="$ac_path_SED" 6319 ac_path_SED_max=$ac_count 6320 fi 6321 # 10*(2^10) chars as input seems more than enough 6322 test $ac_count -gt 10 && break 6323 done 6324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6325 esac 6326 6327 $ac_path_SED_found && break 3 6328 done 6329 done 6330 done 6331 IFS=$as_save_IFS 6332 if test -z "$ac_cv_path_SED"; then 6333 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6334 fi 6335 else 6336 ac_cv_path_SED=$SED 6337 fi 6338 6339 fi 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6341 $as_echo "$ac_cv_path_SED" >&6; } 6342 SED="$ac_cv_path_SED" 6343 rm -f conftest.sed 6344 6345 6346 if test "x$SED" = x; then 6347 if test "x" = x; then 6348 PROG_NAME=sed 6349 else 6350 PROG_NAME= 6351 fi 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6353 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6354 as_fn_error $? "Cannot continue" "$LINENO" 5 6355 fi 6356 6357 6358 for ac_prog in nawk gawk awk 6359 do 6360 # Extract the first word of "$ac_prog", so it can be a program name with args. 6361 set dummy $ac_prog; ac_word=$2 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6363 $as_echo_n "checking for $ac_word... " >&6; } 6364 if ${ac_cv_path_NAWK+:} false; then : 6365 $as_echo_n "(cached) " >&6 6366 else 6367 case $NAWK in 6368 [\\/]* | ?:[\\/]*) 6369 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 6370 ;; 6371 *) 6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6373 for as_dir in $PATH 6374 do 6375 IFS=$as_save_IFS 6376 test -z "$as_dir" && as_dir=. 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6379 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6381 break 2 6382 fi 6383 done 6384 done 6385 IFS=$as_save_IFS 6386 6387 ;; 6388 esac 6389 fi 6390 NAWK=$ac_cv_path_NAWK 6391 if test -n "$NAWK"; then 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 6393 $as_echo "$NAWK" >&6; } 6394 else 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6396 $as_echo "no" >&6; } 6397 fi 6398 6399 6400 test -n "$NAWK" && break 6401 done 6402 6403 6404 if test "x$NAWK" = x; then 6405 if test "x" = x; then 6406 PROG_NAME=nawk 6407 else 6408 PROG_NAME= 6409 fi 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6411 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6412 as_fn_error $? "Cannot continue" "$LINENO" 5 6413 fi 6414 6415 6416 # Always force rm. 6417 RM="$RM -f" 6418 6419 # These are not required on all platforms 6420 # Extract the first word of "cygpath", so it can be a program name with args. 6421 set dummy cygpath; ac_word=$2 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6423 $as_echo_n "checking for $ac_word... " >&6; } 6424 if ${ac_cv_path_CYGPATH+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426 else 6427 case $CYGPATH in 6428 [\\/]* | ?:[\\/]*) 6429 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 6430 ;; 6431 *) 6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433 for as_dir in $PATH 6434 do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6439 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443 done 6444 done 6445 IFS=$as_save_IFS 6446 6447 ;; 6448 esac 6449 fi 6450 CYGPATH=$ac_cv_path_CYGPATH 6451 if test -n "$CYGPATH"; then 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 6453 $as_echo "$CYGPATH" >&6; } 6454 else 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6456 $as_echo "no" >&6; } 6457 fi 6458 6459 6460 # Extract the first word of "readlink", so it can be a program name with args. 6461 set dummy readlink; ac_word=$2 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6463 $as_echo_n "checking for $ac_word... " >&6; } 6464 if ${ac_cv_path_READLINK+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466 else 6467 case $READLINK in 6468 [\\/]* | ?:[\\/]*) 6469 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 6470 ;; 6471 *) 6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6473 for as_dir in $PATH 6474 do 6475 IFS=$as_save_IFS 6476 test -z "$as_dir" && as_dir=. 6477 for ac_exec_ext in '' $ac_executable_extensions; do 6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6479 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6481 break 2 6482 fi 6483 done 6484 done 6485 IFS=$as_save_IFS 6486 6487 ;; 6488 esac 6489 fi 6490 READLINK=$ac_cv_path_READLINK 6491 if test -n "$READLINK"; then 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 6493 $as_echo "$READLINK" >&6; } 6494 else 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6496 $as_echo "no" >&6; } 6497 fi 6498 6499 6500 # Extract the first word of "df", so it can be a program name with args. 6501 set dummy df; ac_word=$2 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6503 $as_echo_n "checking for $ac_word... " >&6; } 6504 if ${ac_cv_path_DF+:} false; then : 6505 $as_echo_n "(cached) " >&6 6506 else 6507 case $DF in 6508 [\\/]* | ?:[\\/]*) 6509 ac_cv_path_DF="$DF" # Let the user override the test with a path. 6510 ;; 6511 *) 6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6513 for as_dir in $PATH 6514 do 6515 IFS=$as_save_IFS 6516 test -z "$as_dir" && as_dir=. 6517 for ac_exec_ext in '' $ac_executable_extensions; do 6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6519 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6521 break 2 6522 fi 6523 done 6524 done 6525 IFS=$as_save_IFS 6526 6527 ;; 6528 esac 6529 fi 6530 DF=$ac_cv_path_DF 6531 if test -n "$DF"; then 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 6533 $as_echo "$DF" >&6; } 6534 else 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536 $as_echo "no" >&6; } 6537 fi 6538 6539 6540 # Extract the first word of "SetFile", so it can be a program name with args. 6541 set dummy SetFile; ac_word=$2 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6543 $as_echo_n "checking for $ac_word... " >&6; } 6544 if ${ac_cv_path_SETFILE+:} false; then : 6545 $as_echo_n "(cached) " >&6 6546 else 6547 case $SETFILE in 6548 [\\/]* | ?:[\\/]*) 6549 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 6550 ;; 6551 *) 6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6553 for as_dir in $PATH 6554 do 6555 IFS=$as_save_IFS 6556 test -z "$as_dir" && as_dir=. 6557 for ac_exec_ext in '' $ac_executable_extensions; do 6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6559 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6561 break 2 6562 fi 6563 done 6564 done 6565 IFS=$as_save_IFS 6566 6567 ;; 6568 esac 6569 fi 6570 SETFILE=$ac_cv_path_SETFILE 6571 if test -n "$SETFILE"; then 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 6573 $as_echo "$SETFILE" >&6; } 6574 else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6576 $as_echo "no" >&6; } 6577 fi 6578 6579 6580 6581 6582 # Now we can determine OpenJDK build and target platforms. This is required to 6583 # have early on. 6584 # Make sure we can run config.sub. 6585 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6586 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6587 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6589 $as_echo_n "checking build system type... " >&6; } 6590 if ${ac_cv_build+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592 else 6593 ac_build_alias=$build_alias 6594 test "x$ac_build_alias" = x && 6595 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6596 test "x$ac_build_alias" = x && 6597 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6598 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6600 6601 fi 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6603 $as_echo "$ac_cv_build" >&6; } 6604 case $ac_cv_build in 6605 *-*-*) ;; 6606 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6607 esac 6608 build=$ac_cv_build 6609 ac_save_IFS=$IFS; IFS='-' 6610 set x $ac_cv_build 6611 shift 6612 build_cpu=$1 6613 build_vendor=$2 6614 shift; shift 6615 # Remember, the first character of IFS is used to create $*, 6616 # except with old shells: 6617 build_os=$* 6618 IFS=$ac_save_IFS 6619 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6620 6621 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6623 $as_echo_n "checking host system type... " >&6; } 6624 if ${ac_cv_host+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626 else 6627 if test "x$host_alias" = x; then 6628 ac_cv_host=$ac_cv_build 6629 else 6630 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6631 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6632 fi 6633 6634 fi 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6636 $as_echo "$ac_cv_host" >&6; } 6637 case $ac_cv_host in 6638 *-*-*) ;; 6639 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6640 esac 6641 host=$ac_cv_host 6642 ac_save_IFS=$IFS; IFS='-' 6643 set x $ac_cv_host 6644 shift 6645 host_cpu=$1 6646 host_vendor=$2 6647 shift; shift 6648 # Remember, the first character of IFS is used to create $*, 6649 # except with old shells: 6650 host_os=$* 6651 IFS=$ac_save_IFS 6652 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6653 6654 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 6656 $as_echo_n "checking target system type... " >&6; } 6657 if ${ac_cv_target+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659 else 6660 if test "x$target_alias" = x; then 6661 ac_cv_target=$ac_cv_host 6662 else 6663 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 6664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 6665 fi 6666 6667 fi 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 6669 $as_echo "$ac_cv_target" >&6; } 6670 case $ac_cv_target in 6671 *-*-*) ;; 6672 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 6673 esac 6674 target=$ac_cv_target 6675 ac_save_IFS=$IFS; IFS='-' 6676 set x $ac_cv_target 6677 shift 6678 target_cpu=$1 6679 target_vendor=$2 6680 shift; shift 6681 # Remember, the first character of IFS is used to create $*, 6682 # except with old shells: 6683 target_os=$* 6684 IFS=$ac_save_IFS 6685 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 6686 6687 6688 # The aliases save the names the user supplied, while $host etc. 6689 # will get canonicalized. 6690 test -n "$target_alias" && 6691 test "$program_prefix$program_suffix$program_transform_name" = \ 6692 NONENONEs,x,x, && 6693 program_prefix=${target_alias}- 6694 6695 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 6696 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 6697 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 6698 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 6699 # to use the configure naming style. 6700 6701 6702 6703 6704 6705 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 6706 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 6707 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 6708 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 6709 OPENJDK_TARGET_AUTOCONF_NAME="$host" 6710 OPENJDK_BUILD_AUTOCONF_NAME="$build" 6711 6712 6713 6714 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 6715 6716 case "$build_os" in 6717 *linux*) 6718 VAR_OS=linux 6719 VAR_OS_API=posix 6720 VAR_OS_ENV=linux 6721 ;; 6722 *solaris*) 6723 VAR_OS=solaris 6724 VAR_OS_API=posix 6725 VAR_OS_ENV=solaris 6726 ;; 6727 *darwin*) 6728 VAR_OS=macosx 6729 VAR_OS_API=posix 6730 VAR_OS_ENV=macosx 6731 ;; 6732 *bsd*) 6733 VAR_OS=bsd 6734 VAR_OS_API=posix 6735 VAR_OS_ENV=bsd 6736 ;; 6737 *cygwin*) 6738 VAR_OS=windows 6739 VAR_OS_API=winapi 6740 VAR_OS_ENV=windows.cygwin 6741 ;; 6742 *mingw*) 6743 VAR_OS=windows 6744 VAR_OS_API=winapi 6745 VAR_OS_ENV=windows.msys 6746 ;; 6747 *) 6748 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 6749 ;; 6750 esac 6751 6752 6753 # First argument is the cpu name from the trip/quad 6754 case "$build_cpu" in 6755 x86_64) 6756 VAR_CPU=x86_64 6757 VAR_CPU_ARCH=x86 6758 VAR_CPU_BITS=64 6759 VAR_CPU_ENDIAN=little 6760 ;; 6761 i?86) 6762 VAR_CPU=x86 6763 VAR_CPU_ARCH=x86 6764 VAR_CPU_BITS=32 6765 VAR_CPU_ENDIAN=little 6766 ;; 6767 arm*) 6768 VAR_CPU=arm 6769 VAR_CPU_ARCH=arm 6770 VAR_CPU_BITS=32 6771 VAR_CPU_ENDIAN=little 6772 ;; 6773 powerpc) 6774 VAR_CPU=ppc 6775 VAR_CPU_ARCH=ppc 6776 VAR_CPU_BITS=32 6777 VAR_CPU_ENDIAN=big 6778 ;; 6779 powerpc64) 6780 VAR_CPU=ppc64 6781 VAR_CPU_ARCH=ppc 6782 VAR_CPU_BITS=64 6783 VAR_CPU_ENDIAN=big 6784 ;; 6785 sparc) 6786 VAR_CPU=sparc 6787 VAR_CPU_ARCH=sparc 6788 VAR_CPU_BITS=32 6789 VAR_CPU_ENDIAN=big 6790 ;; 6791 sparcv9) 6792 VAR_CPU=sparcv9 6793 VAR_CPU_ARCH=sparc 6794 VAR_CPU_BITS=64 6795 VAR_CPU_ENDIAN=big 6796 ;; 6797 *) 6798 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 6799 ;; 6800 esac 6801 6802 # ..and setup our own variables. (Do this explicitely to facilitate searching) 6803 OPENJDK_BUILD_OS="$VAR_OS" 6804 OPENJDK_BUILD_OS_API="$VAR_OS_API" 6805 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 6806 OPENJDK_BUILD_CPU="$VAR_CPU" 6807 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 6808 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 6809 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 6810 6811 6812 6813 6814 6815 6816 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 6818 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 6820 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 6821 6822 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 6823 6824 case "$host_os" in 6825 *linux*) 6826 VAR_OS=linux 6827 VAR_OS_API=posix 6828 VAR_OS_ENV=linux 6829 ;; 6830 *solaris*) 6831 VAR_OS=solaris 6832 VAR_OS_API=posix 6833 VAR_OS_ENV=solaris 6834 ;; 6835 *darwin*) 6836 VAR_OS=macosx 6837 VAR_OS_API=posix 6838 VAR_OS_ENV=macosx 6839 ;; 6840 *bsd*) 6841 VAR_OS=bsd 6842 VAR_OS_API=posix 6843 VAR_OS_ENV=bsd 6844 ;; 6845 *cygwin*) 6846 VAR_OS=windows 6847 VAR_OS_API=winapi 6848 VAR_OS_ENV=windows.cygwin 6849 ;; 6850 *mingw*) 6851 VAR_OS=windows 6852 VAR_OS_API=winapi 6853 VAR_OS_ENV=windows.msys 6854 ;; 6855 *) 6856 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 6857 ;; 6858 esac 6859 6860 6861 # First argument is the cpu name from the trip/quad 6862 case "$host_cpu" in 6863 x86_64) 6864 VAR_CPU=x86_64 6865 VAR_CPU_ARCH=x86 6866 VAR_CPU_BITS=64 6867 VAR_CPU_ENDIAN=little 6868 ;; 6869 i?86) 6870 VAR_CPU=x86 6871 VAR_CPU_ARCH=x86 6872 VAR_CPU_BITS=32 6873 VAR_CPU_ENDIAN=little 6874 ;; 6875 arm*) 6876 VAR_CPU=arm 6877 VAR_CPU_ARCH=arm 6878 VAR_CPU_BITS=32 6879 VAR_CPU_ENDIAN=little 6880 ;; 6881 powerpc) 6882 VAR_CPU=ppc 6883 VAR_CPU_ARCH=ppc 6884 VAR_CPU_BITS=32 6885 VAR_CPU_ENDIAN=big 6886 ;; 6887 powerpc64) 6888 VAR_CPU=ppc64 6889 VAR_CPU_ARCH=ppc 6890 VAR_CPU_BITS=64 6891 VAR_CPU_ENDIAN=big 6892 ;; 6893 sparc) 6894 VAR_CPU=sparc 6895 VAR_CPU_ARCH=sparc 6896 VAR_CPU_BITS=32 6897 VAR_CPU_ENDIAN=big 6898 ;; 6899 sparcv9) 6900 VAR_CPU=sparcv9 6901 VAR_CPU_ARCH=sparc 6902 VAR_CPU_BITS=64 6903 VAR_CPU_ENDIAN=big 6904 ;; 6905 *) 6906 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 6907 ;; 6908 esac 6909 6910 # ... and setup our own variables. (Do this explicitely to facilitate searching) 6911 OPENJDK_TARGET_OS="$VAR_OS" 6912 OPENJDK_TARGET_OS_API="$VAR_OS_API" 6913 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 6914 OPENJDK_TARGET_CPU="$VAR_CPU" 6915 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 6916 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 6917 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 6918 6919 6920 6921 6922 6923 6924 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 6926 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 6928 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 6929 6930 6931 6932 # Check whether --with-target-bits was given. 6933 if test "${with_target_bits+set}" = set; then : 6934 withval=$with_target_bits; 6935 fi 6936 6937 6938 # We have three types of compiles: 6939 # native == normal compilation, target system == build system 6940 # cross == traditional cross compilation, target system != build system; special toolchain needed 6941 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 6942 # 6943 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 6944 # We're doing a proper cross-compilation 6945 COMPILE_TYPE="cross" 6946 else 6947 COMPILE_TYPE="native" 6948 fi 6949 6950 if test "x$with_target_bits" != x; then 6951 if test "x$COMPILE_TYPE" = "xcross"; then 6952 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 6953 fi 6954 6955 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 6956 # A reduced build is requested 6957 COMPILE_TYPE="reduced" 6958 OPENJDK_TARGET_CPU_BITS=32 6959 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 6960 OPENJDK_TARGET_CPU=x86 6961 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 6962 OPENJDK_TARGET_CPU=sparc 6963 else 6964 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 6965 fi 6966 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 6967 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 6968 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 6970 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 6971 else 6972 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 6973 fi 6974 fi 6975 6976 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 6978 $as_echo_n "checking compilation type... " >&6; } 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 6980 $as_echo "$COMPILE_TYPE" >&6; } 6981 6982 6983 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 6984 REQUIRED_OS_NAME=SunOS 6985 REQUIRED_OS_VERSION=5.10 6986 fi 6987 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 6988 REQUIRED_OS_NAME=Linux 6989 REQUIRED_OS_VERSION=2.6 6990 fi 6991 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 6992 REQUIRED_OS_NAME=Windows 6993 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 6994 REQUIRED_OS_VERSION=5.2 6995 else 6996 REQUIRED_OS_VERSION=5.1 6997 fi 6998 fi 6999 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 7000 REQUIRED_OS_NAME=Darwin 7001 REQUIRED_OS_VERSION=11.2 7002 fi 7003 7004 7005 7006 7007 7008 # Also store the legacy naming of the cpu. 7009 # Ie i586 and amd64 instead of x86 and x86_64 7010 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 7011 if test "x$OPENJDK_TARGET_CPU" = xx86; then 7012 OPENJDK_TARGET_CPU_LEGACY="i586" 7013 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7014 # On all platforms except MacOSX replace x86_64 with amd64. 7015 OPENJDK_TARGET_CPU_LEGACY="amd64" 7016 fi 7017 7018 7019 # And the second legacy naming of the cpu. 7020 # Ie i386 and amd64 instead of x86 and x86_64. 7021 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 7022 if test "x$OPENJDK_TARGET_CPU" = xx86; then 7023 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 7024 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7025 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 7026 fi 7027 7028 7029 # This is the name of the cpu (but using i386 and amd64 instead of 7030 # x86 and x86_64, respectively), preceeded by a /, to be used when 7031 # locating libraries. On macosx, it's empty, though. 7032 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 7033 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 7034 OPENJDK_TARGET_CPU_LIBDIR="" 7035 fi 7036 7037 7038 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 7039 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 7040 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 7041 OPENJDK_TARGET_CPU_ISADIR="" 7042 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 7043 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7044 OPENJDK_TARGET_CPU_ISADIR="/amd64" 7045 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 7046 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 7047 fi 7048 fi 7049 7050 7051 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 7052 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 7053 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 7054 # On linux only, we replace x86 with i386. 7055 OPENJDK_TARGET_CPU_OSARCH="i386" 7056 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7057 # On all platforms except macosx, we replace x86_64 with amd64. 7058 OPENJDK_TARGET_CPU_OSARCH="amd64" 7059 fi 7060 7061 7062 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 7063 if test "x$OPENJDK_TARGET_CPU" = xx86; then 7064 OPENJDK_TARGET_CPU_JLI="i386" 7065 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7066 # On all platforms except macosx, we replace x86_64 with amd64. 7067 OPENJDK_TARGET_CPU_JLI="amd64" 7068 fi 7069 # Now setup the -D flags for building libjli. 7070 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 7071 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 7072 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 7073 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 7074 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 7075 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 7076 fi 7077 fi 7078 7079 7080 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 7081 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 7082 OPENJDK_TARGET_OS_API_DIR="solaris" 7083 fi 7084 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 7085 OPENJDK_TARGET_OS_API_DIR="windows" 7086 fi 7087 7088 7089 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7090 A_LP64="LP64:=" 7091 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 7092 # unpack200.exe 7093 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 7094 ADD_LP64="-D_LP64=1" 7095 fi 7096 fi 7097 LP64=$A_LP64 7098 7099 7100 if test "x$COMPILE_TYPE" = "xcross"; then 7101 # FIXME: ... or should this include reduced builds..? 7102 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 7103 else 7104 DEFINE_CROSS_COMPILE_ARCH="" 7105 fi 7106 7107 7108 # Some Zero and Shark settings. 7109 # ZERO_ARCHFLAG tells the compiler which mode to build for 7110 case "${OPENJDK_TARGET_CPU}" in 7111 s390) 7112 ZERO_ARCHFLAG="-m31" 7113 ;; 7114 *) 7115 ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}" 7116 esac 7117 7118 7119 # ZERO_ARCHDEF is used to enable architecture-specific code 7120 case "${OPENJDK_TARGET_CPU}" in 7121 ppc*) ZERO_ARCHDEF=PPC ;; 7122 s390*) ZERO_ARCHDEF=S390 ;; 7123 sparc*) ZERO_ARCHDEF=SPARC ;; 7124 x86_64*) ZERO_ARCHDEF=AMD64 ;; 7125 x86) ZERO_ARCHDEF=IA32 ;; 7126 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 7127 esac 7128 7129 7130 7131 7132 7133 # Continue setting up basic stuff. Most remaining code require fundamental tools. 7134 7135 # Locate the directory of this script. 7136 SCRIPT="$0" 7137 7138 if test "x$OPENJDK_BUILD_OS" != xwindows; then 7139 # Follow a chain of symbolic links. Use readlink 7140 # where it exists, else fall back to horribly 7141 # complicated shell code. 7142 if test "x$READLINK_TESTED" != yes; then 7143 # On MacOSX there is a readlink tool with a different 7144 # purpose than the GNU readlink tool. Check the found readlink. 7145 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 7146 if test "x$ISGNU" = x; then 7147 # A readlink that we do not know how to use. 7148 # Are there other non-GNU readlinks out there? 7149 READLINK_TESTED=yes 7150 READLINK= 7151 fi 7152 fi 7153 7154 if test "x$READLINK" != x; then 7155 SCRIPT=`$READLINK -f $SCRIPT` 7156 else 7157 # Save the current directory for restoring afterwards 7158 STARTDIR=$PWD 7159 COUNTER=0 7160 sym_link_dir=`$DIRNAME $SCRIPT` 7161 sym_link_file=`$BASENAME $SCRIPT` 7162 # Use the system pwd and not the shell builtin to resolve directory symlinks 7163 cd $sym_link_dir 7164 cd `$THEPWDCMD` 7165 sym_link_dir=`$THEPWDCMD` 7166 # Resolve file symlinks 7167 while test $COUNTER -lt 20; do 7168 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 7169 if test "x$ISLINK" == x; then 7170 # This is not a symbolic link! We are done! 7171 break 7172 fi 7173 # Again resolve directory symlinks since the target of the just found 7174 # link could be in a different directory 7175 cd `$DIRNAME $ISLINK` 7176 sym_link_dir=`$THEPWDCMD` 7177 sym_link_file=`$BASENAME $ISLINK` 7178 let COUNTER=COUNTER+1 7179 done 7180 cd $STARTDIR 7181 SCRIPT=$sym_link_dir/$sym_link_file 7182 fi 7183 fi 7184 7185 AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD` 7186 7187 # Where is the source? It is located two levels above the configure script. 7188 CURDIR="$PWD" 7189 cd "$AUTOCONF_DIR/../.." 7190 SRC_ROOT="`$THEPWDCMD`" 7191 7192 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 7193 PATH_SEP=";" 7194 7195 SRC_ROOT_LENGTH=`$THEPWDCMD|$WC -m` 7196 if test $SRC_ROOT_LENGTH -gt 100; then 7197 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 7198 fi 7199 7200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 7202 $as_echo_n "checking cygwin release... " >&6; } 7203 CYGWIN_VERSION=`$UNAME -r` 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 7205 $as_echo "$CYGWIN_VERSION" >&6; } 7206 WINDOWS_ENV_VENDOR='cygwin' 7207 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 7208 7209 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 7210 if test "x$CYGWIN_VERSION_OK" = x; then 7211 { $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 7212 $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;} 7213 as_fn_error $? "Cannot continue" "$LINENO" 5 7214 fi 7215 if test "x$CYGPATH" = x; then 7216 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 7217 fi 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 7219 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 7220 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 7221 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 7222 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 7223 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 7225 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 7226 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 7227 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 7228 if test "x$test_cygdrive_prefix" = x; then 7229 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 7230 fi 7231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 7233 $as_echo_n "checking msys release... " >&6; } 7234 MSYS_VERSION=`$UNAME -r` 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 7236 $as_echo "$MSYS_VERSION" >&6; } 7237 7238 WINDOWS_ENV_VENDOR='msys' 7239 WINDOWS_ENV_VERSION="$MSYS_VERSION" 7240 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 7242 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 7243 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 7244 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 7245 7246 windows_path="$MSYS_ROOT_PATH" 7247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7248 unix_path=`$CYGPATH -u "$windows_path"` 7249 MSYS_ROOT_PATH="$unix_path" 7250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 7252 MSYS_ROOT_PATH="$unix_path" 7253 fi 7254 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 7256 $as_echo "$MSYS_ROOT_PATH" >&6; } 7257 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 7258 else 7259 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 7260 fi 7261 7262 # Test if windows or unix (cygwin/msys) find is first in path. 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 7264 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 7265 FIND_BINARY_OUTPUT=`find --version 2>&1` 7266 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 7268 $as_echo "unix style" >&6; } 7269 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 7271 $as_echo "Windows" >&6; } 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 7273 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 7274 { $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 7275 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 7276 as_fn_error $? "Cannot continue" "$LINENO" 5 7277 else 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 7279 $as_echo "unknown" >&6; } 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 7281 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 7282 fi 7283 7284 else 7285 PATH_SEP=":" 7286 fi 7287 7288 7289 7290 cd "$CURDIR" 7291 7292 7293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7294 7295 # Input might be given as Windows format, start by converting to 7296 # unix format. 7297 path="$SRC_ROOT" 7298 new_path=`$CYGPATH -u "$path"` 7299 7300 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 7301 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 7302 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 7303 # "foo.exe" is OK but "foo" is an error. 7304 # 7305 # This test is therefore slightly more accurate than "test -f" to check for file precense. 7306 # It is also a way to make sure we got the proper file name for the real test later on. 7307 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 7308 if test "x$test_shortpath" = x; then 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 7310 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} 7311 as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5 7312 fi 7313 7314 # Call helper function which possibly converts this using DOS-style short mode. 7315 # If so, the updated path is stored in $new_path. 7316 7317 input_path="$new_path" 7318 # Check if we need to convert this using DOS-style short mode. If the path 7319 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7320 # take no chances and rewrite it. 7321 # Note: m4 eats our [], so we need to use [ and ] instead. 7322 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 7323 if test "x$has_forbidden_chars" != x; then 7324 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7325 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 7326 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 7327 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 7328 # Going to short mode and back again did indeed matter. Since short mode is 7329 # case insensitive, let's make it lowercase to improve readability. 7330 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7331 # Now convert it back to Unix-stile (cygpath) 7332 input_path=`$CYGPATH -u "$shortmode_path"` 7333 new_path="$input_path" 7334 fi 7335 fi 7336 7337 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 7338 if test "x$test_cygdrive_prefix" = x; then 7339 # As a simple fix, exclude /usr/bin since it's not a real path. 7340 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 7341 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 7342 # a path prefixed by /cygdrive for fixpath to work. 7343 new_path="$CYGWIN_ROOT_PATH$input_path" 7344 fi 7345 fi 7346 7347 7348 if test "x$path" != "x$new_path"; then 7349 SRC_ROOT="$new_path" 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 7351 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} 7352 fi 7353 7354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7355 7356 path="$SRC_ROOT" 7357 has_colon=`$ECHO $path | $GREP ^.:` 7358 new_path="$path" 7359 if test "x$has_colon" = x; then 7360 # Not in mixed or Windows style, start by that. 7361 new_path=`cmd //c echo $path` 7362 fi 7363 7364 7365 input_path="$new_path" 7366 # Check if we need to convert this using DOS-style short mode. If the path 7367 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7368 # take no chances and rewrite it. 7369 # Note: m4 eats our [], so we need to use [ and ] instead. 7370 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 7371 if test "x$has_forbidden_chars" != x; then 7372 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7373 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7374 fi 7375 7376 7377 windows_path="$new_path" 7378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7379 unix_path=`$CYGPATH -u "$windows_path"` 7380 new_path="$unix_path" 7381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 7383 new_path="$unix_path" 7384 fi 7385 7386 if test "x$path" != "x$new_path"; then 7387 SRC_ROOT="$new_path" 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 7389 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} 7390 fi 7391 7392 # Save the first 10 bytes of this path to the storage, so fixpath can work. 7393 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 7394 7395 else 7396 # We're on a posix platform. Hooray! :) 7397 path="$SRC_ROOT" 7398 7399 if test ! -f "$path" && test ! -d "$path"; then 7400 as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 7401 fi 7402 7403 has_space=`$ECHO "$path" | $GREP " "` 7404 if test "x$has_space" != x; then 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 7406 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} 7407 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 7408 fi 7409 fi 7410 7411 7412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7413 7414 # Input might be given as Windows format, start by converting to 7415 # unix format. 7416 path="$CURDIR" 7417 new_path=`$CYGPATH -u "$path"` 7418 7419 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 7420 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 7421 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 7422 # "foo.exe" is OK but "foo" is an error. 7423 # 7424 # This test is therefore slightly more accurate than "test -f" to check for file precense. 7425 # It is also a way to make sure we got the proper file name for the real test later on. 7426 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 7427 if test "x$test_shortpath" = x; then 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 7429 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 7430 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 7431 fi 7432 7433 # Call helper function which possibly converts this using DOS-style short mode. 7434 # If so, the updated path is stored in $new_path. 7435 7436 input_path="$new_path" 7437 # Check if we need to convert this using DOS-style short mode. If the path 7438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7439 # take no chances and rewrite it. 7440 # Note: m4 eats our [], so we need to use [ and ] instead. 7441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 7442 if test "x$has_forbidden_chars" != x; then 7443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7444 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 7445 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 7446 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 7447 # Going to short mode and back again did indeed matter. Since short mode is 7448 # case insensitive, let's make it lowercase to improve readability. 7449 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7450 # Now convert it back to Unix-stile (cygpath) 7451 input_path=`$CYGPATH -u "$shortmode_path"` 7452 new_path="$input_path" 7453 fi 7454 fi 7455 7456 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 7457 if test "x$test_cygdrive_prefix" = x; then 7458 # As a simple fix, exclude /usr/bin since it's not a real path. 7459 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 7460 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 7461 # a path prefixed by /cygdrive for fixpath to work. 7462 new_path="$CYGWIN_ROOT_PATH$input_path" 7463 fi 7464 fi 7465 7466 7467 if test "x$path" != "x$new_path"; then 7468 CURDIR="$new_path" 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 7470 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 7471 fi 7472 7473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7474 7475 path="$CURDIR" 7476 has_colon=`$ECHO $path | $GREP ^.:` 7477 new_path="$path" 7478 if test "x$has_colon" = x; then 7479 # Not in mixed or Windows style, start by that. 7480 new_path=`cmd //c echo $path` 7481 fi 7482 7483 7484 input_path="$new_path" 7485 # Check if we need to convert this using DOS-style short mode. If the path 7486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7487 # take no chances and rewrite it. 7488 # Note: m4 eats our [], so we need to use [ and ] instead. 7489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 7490 if test "x$has_forbidden_chars" != x; then 7491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7492 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7493 fi 7494 7495 7496 windows_path="$new_path" 7497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7498 unix_path=`$CYGPATH -u "$windows_path"` 7499 new_path="$unix_path" 7500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 7502 new_path="$unix_path" 7503 fi 7504 7505 if test "x$path" != "x$new_path"; then 7506 CURDIR="$new_path" 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 7508 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 7509 fi 7510 7511 # Save the first 10 bytes of this path to the storage, so fixpath can work. 7512 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 7513 7514 else 7515 # We're on a posix platform. Hooray! :) 7516 path="$CURDIR" 7517 7518 if test ! -f "$path" && test ! -d "$path"; then 7519 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 7520 fi 7521 7522 has_space=`$ECHO "$path" | $GREP " "` 7523 if test "x$has_space" != x; then 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 7525 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 7526 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 7527 fi 7528 fi 7529 7530 7531 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 7532 # Add extra search paths on solaris for utilities like ar and as etc... 7533 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 7534 fi 7535 7536 # You can force the sys-root if the sys-root encoded into the cross compiler tools 7537 # is not correct. 7538 7539 # Check whether --with-sys-root was given. 7540 if test "${with_sys_root+set}" = set; then : 7541 withval=$with_sys_root; 7542 fi 7543 7544 7545 if test "x$with_sys_root" != x; then 7546 SYS_ROOT=$with_sys_root 7547 else 7548 SYS_ROOT=/ 7549 fi 7550 7551 7552 7553 # Check whether --with-tools-dir was given. 7554 if test "${with_tools_dir+set}" = set; then : 7555 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir 7556 fi 7557 7558 7559 7560 # Check whether --with-devkit was given. 7561 if test "${with_devkit+set}" = set; then : 7562 withval=$with_devkit; 7563 if test "x$with_sys_root" != x; then 7564 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5 7565 fi 7566 if test "x$with_tools_dir" != x; then 7567 as_fn_error $? "Cannot specify both --with-devkit and --with-tools-dir at the same time" "$LINENO" 5 7568 fi 7569 TOOLS_DIR=$with_devkit/bin 7570 SYS_ROOT=$with_devkit/$host_alias/libc 7571 7572 fi 7573 7574 7575 7576 7577 # Setup default logging of stdout and stderr to build.log in the output root. 7578 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 7579 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 7580 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 7581 7582 7583 7584 7585 7586 # Check if it's a pure open build or if custom sources are to be used. 7587 7588 # Check whether --enable-openjdk-only was given. 7589 if test "${enable_openjdk_only+set}" = set; then : 7590 enableval=$enable_openjdk_only; 7591 else 7592 enable_openjdk_only="no" 7593 fi 7594 7595 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 7597 $as_echo_n "checking for presence of closed sources... " >&6; } 7598 if test -d "$SRC_ROOT/jdk/src/closed"; then 7599 CLOSED_SOURCE_PRESENT=yes 7600 else 7601 CLOSED_SOURCE_PRESENT=no 7602 fi 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 7604 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 7605 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 7607 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 7608 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 7610 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 7611 7612 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 7613 OPENJDK=true 7614 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 7616 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 7617 fi 7618 else 7619 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 7620 OPENJDK=true 7621 else 7622 OPENJDK=false 7623 fi 7624 fi 7625 7626 if test "x$OPENJDK" = "xtrue"; then 7627 SET_OPENJDK="OPENJDK=true" 7628 fi 7629 7630 7631 7632 7633 # These are needed to be able to create a configuration name (and thus the output directory) 7634 7635 ############################################################################### 7636 # 7637 # Check which variant of the JDK that we want to build. 7638 # Currently we have: 7639 # normal: standard edition 7640 # but the custom make system may add other variants 7641 # 7642 # Effectively the JDK variant gives a name to a specific set of 7643 # modules to compile into the JDK. In the future, these modules 7644 # might even be Jigsaw modules. 7645 # 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 7647 $as_echo_n "checking which variant of the JDK to build... " >&6; } 7648 7649 # Check whether --with-jdk-variant was given. 7650 if test "${with_jdk_variant+set}" = set; then : 7651 withval=$with_jdk_variant; 7652 fi 7653 7654 7655 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 7656 JDK_VARIANT="normal" 7657 else 7658 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 7659 fi 7660 7661 7662 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 7664 $as_echo "$JDK_VARIANT" >&6; } 7665 7666 7667 7668 ############################################################################### 7669 # 7670 # Check which variants of the JVM that we want to build. 7671 # Currently we have: 7672 # server: normal interpreter and a tiered C1/C2 compiler 7673 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 7674 # minimal1: reduced form of client with optional VM services and features stripped out 7675 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 7676 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 7677 # zero: no machine code interpreter, no compiler 7678 # zeroshark: zero interpreter and shark/llvm compiler backend 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 7680 $as_echo_n "checking which variants of the JVM to build... " >&6; } 7681 7682 # Check whether --with-jvm-variants was given. 7683 if test "${with_jvm_variants+set}" = set; then : 7684 withval=$with_jvm_variants; 7685 fi 7686 7687 7688 if test "x$with_jvm_variants" = x; then 7689 with_jvm_variants="server" 7690 fi 7691 7692 JVM_VARIANTS=",$with_jvm_variants," 7693 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'` 7694 7695 if test "x$TEST_VARIANTS" != "x,"; then 7696 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark" "$LINENO" 5 7697 fi 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 7699 $as_echo "$with_jvm_variants" >&6; } 7700 7701 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 7702 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 7703 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 7704 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 7705 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 7706 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 7707 7708 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 7709 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7710 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 7711 fi 7712 fi 7713 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 7714 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7715 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 7716 fi 7717 fi 7718 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 7719 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7720 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 7721 fi 7722 fi 7723 7724 # Replace the commas with AND for use in the build directory name. 7725 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'` 7726 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/'` 7727 if test "x$COUNT_VARIANTS" != "x,1"; then 7728 BUILDING_MULTIPLE_JVM_VARIANTS=yes 7729 else 7730 BUILDING_MULTIPLE_JVM_VARIANTS=no 7731 fi 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 INCLUDE_SA=true 7742 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 7743 INCLUDE_SA=false 7744 fi 7745 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 7746 INCLUDE_SA=false 7747 fi 7748 7749 7750 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 7751 MACOSX_UNIVERSAL="true" 7752 fi 7753 7754 7755 7756 7757 7758 ############################################################################### 7759 # 7760 # Set the debug level 7761 # release: no debug information, all optimizations, no asserts. 7762 # fastdebug: debug information (-g), all optimizations, all asserts 7763 # slowdebug: debug information (-g), no optimizations, all asserts 7764 # 7765 DEBUG_LEVEL="release" 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 7767 $as_echo_n "checking which debug level to use... " >&6; } 7768 # Check whether --enable-debug was given. 7769 if test "${enable_debug+set}" = set; then : 7770 enableval=$enable_debug; 7771 ENABLE_DEBUG="${enableval}" 7772 DEBUG_LEVEL="fastdebug" 7773 7774 else 7775 ENABLE_DEBUG="no" 7776 fi 7777 7778 7779 7780 # Check whether --with-debug-level was given. 7781 if test "${with_debug_level+set}" = set; then : 7782 withval=$with_debug_level; 7783 DEBUG_LEVEL="${withval}" 7784 if test "x$ENABLE_DEBUG" = xyes; then 7785 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 7786 fi 7787 7788 fi 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 7791 $as_echo "$DEBUG_LEVEL" >&6; } 7792 7793 if test "x$DEBUG_LEVEL" != xrelease && \ 7794 test "x$DEBUG_LEVEL" != xfastdebug && \ 7795 test "x$DEBUG_LEVEL" != xslowdebug; then 7796 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 7797 fi 7798 7799 7800 ############################################################################### 7801 # 7802 # Setup legacy vars/targets and new vars to deal with different debug levels. 7803 # 7804 7805 case $DEBUG_LEVEL in 7806 release ) 7807 VARIANT="OPT" 7808 FASTDEBUG="false" 7809 DEBUG_CLASSFILES="false" 7810 BUILD_VARIANT_RELEASE="" 7811 HOTSPOT_DEBUG_LEVEL="product" 7812 HOTSPOT_EXPORT="product" 7813 ;; 7814 fastdebug ) 7815 VARIANT="DBG" 7816 FASTDEBUG="true" 7817 DEBUG_CLASSFILES="true" 7818 BUILD_VARIANT_RELEASE="-fastdebug" 7819 HOTSPOT_DEBUG_LEVEL="fastdebug" 7820 HOTSPOT_EXPORT="fastdebug" 7821 ;; 7822 slowdebug ) 7823 VARIANT="DBG" 7824 FASTDEBUG="false" 7825 DEBUG_CLASSFILES="true" 7826 BUILD_VARIANT_RELEASE="-debug" 7827 HOTSPOT_DEBUG_LEVEL="jvmg" 7828 HOTSPOT_EXPORT="debug" 7829 ;; 7830 esac 7831 7832 ##### 7833 # Generate the legacy makefile targets for hotspot. 7834 # The hotspot api for selecting the build artifacts, really, needs to be improved. 7835 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 7836 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 7837 # But until then ... 7838 HOTSPOT_TARGET="" 7839 7840 if test "x$JVM_VARIANT_SERVER" = xtrue; then 7841 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 7842 fi 7843 7844 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 7845 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 7846 fi 7847 7848 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 7849 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 7850 fi 7851 7852 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 7853 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 7854 fi 7855 7856 if test "x$JVM_VARIANT_ZERO" = xtrue; then 7857 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 7858 fi 7859 7860 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 7861 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 7862 fi 7863 7864 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 7865 7866 # On Macosx universal binaries are produced, but they only contain 7867 # 64 bit intel. This invalidates control of which jvms are built 7868 # from configure, but only server is valid anyway. Fix this 7869 # when hotspot makefiles are rewritten. 7870 if test "x$MACOSX_UNIVERSAL" = xtrue; then 7871 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 7872 fi 7873 7874 ##### 7875 7876 7877 7878 7879 7880 7881 7882 7883 # With basic setup done, call the custom early hook. 7884 7885 7886 # To properly create a configuration name, we need to have the OpenJDK target 7887 # and options (variants and debug level) parsed. 7888 7889 7890 7891 # Check whether --with-conf-name was given. 7892 if test "${with_conf_name+set}" = set; then : 7893 withval=$with_conf_name; CONF_NAME=${with_conf_name} 7894 fi 7895 7896 7897 # Test from where we are running configure, in or outside of src root. 7898 # To enable comparison of directories, CURDIR needs to be symlink free 7899 # just like SRC_ROOT already is 7900 NOSYM_CURDIR="$CURDIR" 7901 7902 if test "x$OPENJDK_BUILD_OS" != xwindows; then 7903 # Follow a chain of symbolic links. Use readlink 7904 # where it exists, else fall back to horribly 7905 # complicated shell code. 7906 if test "x$READLINK_TESTED" != yes; then 7907 # On MacOSX there is a readlink tool with a different 7908 # purpose than the GNU readlink tool. Check the found readlink. 7909 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 7910 if test "x$ISGNU" = x; then 7911 # A readlink that we do not know how to use. 7912 # Are there other non-GNU readlinks out there? 7913 READLINK_TESTED=yes 7914 READLINK= 7915 fi 7916 fi 7917 7918 if test "x$READLINK" != x; then 7919 NOSYM_CURDIR=`$READLINK -f $NOSYM_CURDIR` 7920 else 7921 # Save the current directory for restoring afterwards 7922 STARTDIR=$PWD 7923 COUNTER=0 7924 sym_link_dir=`$DIRNAME $NOSYM_CURDIR` 7925 sym_link_file=`$BASENAME $NOSYM_CURDIR` 7926 # Use the system pwd and not the shell builtin to resolve directory symlinks 7927 cd $sym_link_dir 7928 cd `$THEPWDCMD` 7929 sym_link_dir=`$THEPWDCMD` 7930 # Resolve file symlinks 7931 while test $COUNTER -lt 20; do 7932 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 7933 if test "x$ISLINK" == x; then 7934 # This is not a symbolic link! We are done! 7935 break 7936 fi 7937 # Again resolve directory symlinks since the target of the just found 7938 # link could be in a different directory 7939 cd `$DIRNAME $ISLINK` 7940 sym_link_dir=`$THEPWDCMD` 7941 sym_link_file=`$BASENAME $ISLINK` 7942 let COUNTER=COUNTER+1 7943 done 7944 cd $STARTDIR 7945 NOSYM_CURDIR=$sym_link_dir/$sym_link_file 7946 fi 7947 fi 7948 7949 if test "x$NOSYM_CURDIR" = "x$SRC_ROOT" || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common" \ 7950 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/autoconf" \ 7951 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/makefiles" ; then 7952 # We are running configure from the src root. 7953 # Create a default ./build/target-variant-debuglevel output root. 7954 if test "x${CONF_NAME}" = x; then 7955 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 7956 fi 7957 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 7958 $MKDIR -p "$OUTPUT_ROOT" 7959 if test ! -d "$OUTPUT_ROOT"; then 7960 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 7961 fi 7962 else 7963 # We are running configure from outside of the src dir. 7964 # Then use the current directory as output dir! 7965 # If configuration is situated in normal build directory, just use the build 7966 # directory name as configuration name, otherwise use the complete path. 7967 if test "x${CONF_NAME}" = x; then 7968 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 7969 fi 7970 OUTPUT_ROOT="$CURDIR" 7971 7972 # WARNING: This might be a bad thing to do. You need to be sure you want to 7973 # have a configuration in this directory. Do some sanity checks! 7974 7975 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 7976 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 7977 # other files 7978 files_present=`$LS $OUTPUT_ROOT` 7979 # Configure has already touched config.log and confdefs.h in the current dir when this check 7980 # is performed. 7981 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 7982 | $TR -d '\n'` 7983 if test "x$filtered_files" != x; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 7985 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 7987 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 7989 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 7991 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 7993 $as_echo "$as_me: seriously mess up just about everything." >&6;} 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 7995 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 7997 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 7998 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 7999 fi 8000 fi 8001 fi 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 8003 $as_echo_n "checking what configuration name to use... " >&6; } 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 8005 $as_echo "$CONF_NAME" >&6; } 8006 8007 8008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8009 8010 # Input might be given as Windows format, start by converting to 8011 # unix format. 8012 path="$OUTPUT_ROOT" 8013 new_path=`$CYGPATH -u "$path"` 8014 8015 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 8016 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 8017 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 8018 # "foo.exe" is OK but "foo" is an error. 8019 # 8020 # This test is therefore slightly more accurate than "test -f" to check for file precense. 8021 # It is also a way to make sure we got the proper file name for the real test later on. 8022 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 8023 if test "x$test_shortpath" = x; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 8025 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 8026 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 8027 fi 8028 8029 # Call helper function which possibly converts this using DOS-style short mode. 8030 # If so, the updated path is stored in $new_path. 8031 8032 input_path="$new_path" 8033 # Check if we need to convert this using DOS-style short mode. If the path 8034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8035 # take no chances and rewrite it. 8036 # Note: m4 eats our [], so we need to use [ and ] instead. 8037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 8038 if test "x$has_forbidden_chars" != x; then 8039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8040 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 8041 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 8042 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 8043 # Going to short mode and back again did indeed matter. Since short mode is 8044 # case insensitive, let's make it lowercase to improve readability. 8045 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8046 # Now convert it back to Unix-stile (cygpath) 8047 input_path=`$CYGPATH -u "$shortmode_path"` 8048 new_path="$input_path" 8049 fi 8050 fi 8051 8052 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 8053 if test "x$test_cygdrive_prefix" = x; then 8054 # As a simple fix, exclude /usr/bin since it's not a real path. 8055 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 8056 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 8057 # a path prefixed by /cygdrive for fixpath to work. 8058 new_path="$CYGWIN_ROOT_PATH$input_path" 8059 fi 8060 fi 8061 8062 8063 if test "x$path" != "x$new_path"; then 8064 OUTPUT_ROOT="$new_path" 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 8066 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 8067 fi 8068 8069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8070 8071 path="$OUTPUT_ROOT" 8072 has_colon=`$ECHO $path | $GREP ^.:` 8073 new_path="$path" 8074 if test "x$has_colon" = x; then 8075 # Not in mixed or Windows style, start by that. 8076 new_path=`cmd //c echo $path` 8077 fi 8078 8079 8080 input_path="$new_path" 8081 # Check if we need to convert this using DOS-style short mode. If the path 8082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8083 # take no chances and rewrite it. 8084 # Note: m4 eats our [], so we need to use [ and ] instead. 8085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 8086 if test "x$has_forbidden_chars" != x; then 8087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8088 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8089 fi 8090 8091 8092 windows_path="$new_path" 8093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8094 unix_path=`$CYGPATH -u "$windows_path"` 8095 new_path="$unix_path" 8096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8098 new_path="$unix_path" 8099 fi 8100 8101 if test "x$path" != "x$new_path"; then 8102 OUTPUT_ROOT="$new_path" 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 8104 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 8105 fi 8106 8107 # Save the first 10 bytes of this path to the storage, so fixpath can work. 8108 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 8109 8110 else 8111 # We're on a posix platform. Hooray! :) 8112 path="$OUTPUT_ROOT" 8113 8114 if test ! -f "$path" && test ! -d "$path"; then 8115 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 8116 fi 8117 8118 has_space=`$ECHO "$path" | $GREP " "` 8119 if test "x$has_space" != x; then 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 8121 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 8122 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 8123 fi 8124 fi 8125 8126 8127 SPEC=$OUTPUT_ROOT/spec.gmk 8128 8129 CONF_NAME=$CONF_NAME 8130 8131 OUTPUT_ROOT=$OUTPUT_ROOT 8132 8133 8134 # Most of the probed defines are put into config.h 8135 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 8136 8137 # The spec.gmk file contains all variables for the make system. 8138 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 8139 8140 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 8141 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 8142 8143 # The bootcycle-spec.gmk file contains support for boot cycle builds. 8144 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 8145 8146 # The compare.sh is used to compare the build output to other builds. 8147 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 8148 8149 # Spec.sh is currently used by compare-objects.sh 8150 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 8151 8152 # The generated Makefile knows where the spec.gmk is and where the source is. 8153 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 8154 # which will look for generated configurations 8155 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 8156 8157 8158 # Save the arguments given to us 8159 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments 8160 8161 8162 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 8163 8164 for ac_prog in apt-get yum port pkgutil pkgadd 8165 do 8166 # Extract the first word of "$ac_prog", so it can be a program name with args. 8167 set dummy $ac_prog; ac_word=$2 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8169 $as_echo_n "checking for $ac_word... " >&6; } 8170 if ${ac_cv_prog_PKGHANDLER+:} false; then : 8171 $as_echo_n "(cached) " >&6 8172 else 8173 if test -n "$PKGHANDLER"; then 8174 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 8175 else 8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8177 for as_dir in $PATH 8178 do 8179 IFS=$as_save_IFS 8180 test -z "$as_dir" && as_dir=. 8181 for ac_exec_ext in '' $ac_executable_extensions; do 8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8183 ac_cv_prog_PKGHANDLER="$ac_prog" 8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8185 break 2 8186 fi 8187 done 8188 done 8189 IFS=$as_save_IFS 8190 8191 fi 8192 fi 8193 PKGHANDLER=$ac_cv_prog_PKGHANDLER 8194 if test -n "$PKGHANDLER"; then 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 8196 $as_echo "$PKGHANDLER" >&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 "$PKGHANDLER" && break 8204 done 8205 8206 8207 8208 # Setup tools that requires more complex handling, or that is not needed by the configure script. 8209 8210 8211 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 8212 if test "x$MAKE" != x; then 8213 # User has supplied a make, test it. 8214 if test ! -f "$MAKE"; then 8215 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 8216 fi 8217 8218 MAKE_CANDIDATE=""$MAKE"" 8219 DESCRIPTION="user supplied MAKE=$MAKE" 8220 if test "x$MAKE_CANDIDATE" != x; then 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 8222 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 8223 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 8224 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 8225 if test "x$IS_GNU_MAKE" = x; then 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 8227 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 8228 else 8229 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 8230 if test "x$IS_MODERN_MAKE" = x; then 8231 { $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 8232 $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;} 8233 else 8234 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 8235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8236 MAKE_EXPECTED_ENV='cygwin' 8237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8238 MAKE_EXPECTED_ENV='msys' 8239 else 8240 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 8241 fi 8242 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 8243 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 8244 else 8245 # Not relevant for non-Windows 8246 IS_MAKE_CORRECT_ENV=true 8247 fi 8248 if test "x$IS_MAKE_CORRECT_ENV" = x; then 8249 { $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 8250 $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;} 8251 else 8252 FOUND_MAKE=$MAKE_CANDIDATE 8253 8254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8255 8256 # First separate the path from the arguments. This will split at the first 8257 # space. 8258 complete="$FOUND_MAKE" 8259 path="${complete%% *}" 8260 tmp="$complete EOL" 8261 arguments="${tmp#* }" 8262 8263 # Input might be given as Windows format, start by converting to 8264 # unix format. 8265 new_path=`$CYGPATH -u "$path"` 8266 8267 # Now try to locate executable using which 8268 new_path=`$WHICH "$new_path" 2> /dev/null` 8269 # bat and cmd files are not always considered executable in cygwin causing which 8270 # to not find them 8271 if test "x$new_path" = x \ 8272 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8273 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8274 new_path=`$CYGPATH -u "$path"` 8275 fi 8276 if test "x$new_path" = x; then 8277 # Oops. Which didn't find the executable. 8278 # The splitting of arguments from the executable at a space might have been incorrect, 8279 # since paths with space are more likely in Windows. Give it another try with the whole 8280 # argument. 8281 path="$complete" 8282 arguments="EOL" 8283 new_path=`$CYGPATH -u "$path"` 8284 new_path=`$WHICH "$new_path" 2> /dev/null` 8285 # bat and cmd files are not always considered executable in cygwin causing which 8286 # to not find them 8287 if test "x$new_path" = x \ 8288 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8289 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8290 new_path=`$CYGPATH -u "$path"` 8291 fi 8292 if test "x$new_path" = x; then 8293 # It's still not found. Now this is an unrecoverable error. 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8295 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8296 has_space=`$ECHO "$complete" | $GREP " "` 8297 if test "x$has_space" != x; then 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8299 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8300 fi 8301 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8302 fi 8303 fi 8304 8305 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 8306 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 8307 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 8308 # "foo.exe" is OK but "foo" is an error. 8309 # 8310 # This test is therefore slightly more accurate than "test -f" to check for file precense. 8311 # It is also a way to make sure we got the proper file name for the real test later on. 8312 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 8313 if test "x$test_shortpath" = x; then 8314 # Short path failed, file does not exist as specified. 8315 # Try adding .exe or .cmd 8316 if test -f "${new_path}.exe"; then 8317 input_to_shortpath="${new_path}.exe" 8318 elif test -f "${new_path}.cmd"; then 8319 input_to_shortpath="${new_path}.cmd" 8320 else 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 8322 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 8324 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 8325 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8326 fi 8327 else 8328 input_to_shortpath="$new_path" 8329 fi 8330 8331 # Call helper function which possibly converts this using DOS-style short mode. 8332 # If so, the updated path is stored in $new_path. 8333 new_path="$input_to_shortpath" 8334 8335 input_path="$input_to_shortpath" 8336 # Check if we need to convert this using DOS-style short mode. If the path 8337 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8338 # take no chances and rewrite it. 8339 # Note: m4 eats our [], so we need to use [ and ] instead. 8340 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 8341 if test "x$has_forbidden_chars" != x; then 8342 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8343 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 8344 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 8345 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 8346 # Going to short mode and back again did indeed matter. Since short mode is 8347 # case insensitive, let's make it lowercase to improve readability. 8348 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8349 # Now convert it back to Unix-stile (cygpath) 8350 input_path=`$CYGPATH -u "$shortmode_path"` 8351 new_path="$input_path" 8352 fi 8353 fi 8354 8355 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 8356 if test "x$test_cygdrive_prefix" = x; then 8357 # As a simple fix, exclude /usr/bin since it's not a real path. 8358 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 8359 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 8360 # a path prefixed by /cygdrive for fixpath to work. 8361 new_path="$CYGWIN_ROOT_PATH$input_path" 8362 fi 8363 fi 8364 8365 # remove trailing .exe if any 8366 new_path="${new_path/%.exe/}" 8367 8368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8369 8370 # First separate the path from the arguments. This will split at the first 8371 # space. 8372 complete="$FOUND_MAKE" 8373 path="${complete%% *}" 8374 tmp="$complete EOL" 8375 arguments="${tmp#* }" 8376 8377 # Input might be given as Windows format, start by converting to 8378 # unix format. 8379 new_path="$path" 8380 8381 windows_path="$new_path" 8382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8383 unix_path=`$CYGPATH -u "$windows_path"` 8384 new_path="$unix_path" 8385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8386 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8387 new_path="$unix_path" 8388 fi 8389 8390 8391 # Now try to locate executable using which 8392 new_path=`$WHICH "$new_path" 2> /dev/null` 8393 8394 if test "x$new_path" = x; then 8395 # Oops. Which didn't find the executable. 8396 # The splitting of arguments from the executable at a space might have been incorrect, 8397 # since paths with space are more likely in Windows. Give it another try with the whole 8398 # argument. 8399 path="$complete" 8400 arguments="EOL" 8401 new_path="$path" 8402 8403 windows_path="$new_path" 8404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8405 unix_path=`$CYGPATH -u "$windows_path"` 8406 new_path="$unix_path" 8407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8408 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8409 new_path="$unix_path" 8410 fi 8411 8412 8413 new_path=`$WHICH "$new_path" 2> /dev/null` 8414 8415 if test "x$new_path" = x; then 8416 # It's still not found. Now this is an unrecoverable error. 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8418 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8419 has_space=`$ECHO "$complete" | $GREP " "` 8420 if test "x$has_space" != x; then 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8422 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8423 fi 8424 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8425 fi 8426 fi 8427 8428 # Now new_path has a complete unix path to the binary 8429 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 8430 # Keep paths in /bin as-is, but remove trailing .exe if any 8431 new_path="${new_path/%.exe/}" 8432 # Do not save /bin paths to all_fixpath_prefixes! 8433 else 8434 # Not in mixed or Windows style, start by that. 8435 new_path=`cmd //c echo $new_path` 8436 8437 input_path="$new_path" 8438 # Check if we need to convert this using DOS-style short mode. If the path 8439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8440 # take no chances and rewrite it. 8441 # Note: m4 eats our [], so we need to use [ and ] instead. 8442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 8443 if test "x$has_forbidden_chars" != x; then 8444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8445 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8446 fi 8447 8448 # Output is in $new_path 8449 8450 windows_path="$new_path" 8451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8452 unix_path=`$CYGPATH -u "$windows_path"` 8453 new_path="$unix_path" 8454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8456 new_path="$unix_path" 8457 fi 8458 8459 # remove trailing .exe if any 8460 new_path="${new_path/%.exe/}" 8461 8462 # Save the first 10 bytes of this path to the storage, so fixpath can work. 8463 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 8464 fi 8465 8466 else 8467 # We're on a posix platform. Hooray! :) 8468 # First separate the path from the arguments. This will split at the first 8469 # space. 8470 complete="$FOUND_MAKE" 8471 path="${complete%% *}" 8472 tmp="$complete EOL" 8473 arguments="${tmp#* }" 8474 8475 # Cannot rely on the command "which" here since it doesn't always work. 8476 is_absolute_path=`$ECHO "$path" | $GREP ^/` 8477 if test -z "$is_absolute_path"; then 8478 # Path to executable is not absolute. Find it. 8479 IFS_save="$IFS" 8480 IFS=: 8481 for p in $PATH; do 8482 if test -f "$p/$path" && test -x "$p/$path"; then 8483 new_path="$p/$path" 8484 break 8485 fi 8486 done 8487 IFS="$IFS_save" 8488 else 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 8490 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 8491 new_path="$path" 8492 fi 8493 8494 if test "x$new_path" = x; then 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8496 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8497 has_space=`$ECHO "$complete" | $GREP " "` 8498 if test "x$has_space" != x; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 8500 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 8501 fi 8502 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8503 fi 8504 fi 8505 8506 # Now join together the path and the arguments once again 8507 if test "x$arguments" != xEOL; then 8508 new_complete="$new_path ${arguments% *}" 8509 else 8510 new_complete="$new_path" 8511 fi 8512 8513 if test "x$complete" != "x$new_complete"; then 8514 FOUND_MAKE="$new_complete" 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 8516 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 8517 fi 8518 8519 fi 8520 fi 8521 fi 8522 fi 8523 8524 if test "x$FOUND_MAKE" = x; then 8525 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 8526 fi 8527 else 8528 # Try our hardest to locate a correct version of GNU make 8529 for ac_prog in gmake 8530 do 8531 # Extract the first word of "$ac_prog", so it can be a program name with args. 8532 set dummy $ac_prog; ac_word=$2 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8534 $as_echo_n "checking for $ac_word... " >&6; } 8535 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537 else 8538 case $CHECK_GMAKE in 8539 [\\/]* | ?:[\\/]*) 8540 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 8541 ;; 8542 *) 8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8544 for as_dir in $PATH 8545 do 8546 IFS=$as_save_IFS 8547 test -z "$as_dir" && as_dir=. 8548 for ac_exec_ext in '' $ac_executable_extensions; do 8549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8550 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8552 break 2 8553 fi 8554 done 8555 done 8556 IFS=$as_save_IFS 8557 8558 ;; 8559 esac 8560 fi 8561 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 8562 if test -n "$CHECK_GMAKE"; then 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 8564 $as_echo "$CHECK_GMAKE" >&6; } 8565 else 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8567 $as_echo "no" >&6; } 8568 fi 8569 8570 8571 test -n "$CHECK_GMAKE" && break 8572 done 8573 8574 8575 MAKE_CANDIDATE=""$CHECK_GMAKE"" 8576 DESCRIPTION="gmake in PATH" 8577 if test "x$MAKE_CANDIDATE" != x; then 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 8579 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 8580 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 8581 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 8582 if test "x$IS_GNU_MAKE" = x; then 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 8584 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 8585 else 8586 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 8587 if test "x$IS_MODERN_MAKE" = x; then 8588 { $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 8589 $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;} 8590 else 8591 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 8592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8593 MAKE_EXPECTED_ENV='cygwin' 8594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8595 MAKE_EXPECTED_ENV='msys' 8596 else 8597 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 8598 fi 8599 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 8600 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 8601 else 8602 # Not relevant for non-Windows 8603 IS_MAKE_CORRECT_ENV=true 8604 fi 8605 if test "x$IS_MAKE_CORRECT_ENV" = x; then 8606 { $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 8607 $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;} 8608 else 8609 FOUND_MAKE=$MAKE_CANDIDATE 8610 8611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8612 8613 # First separate the path from the arguments. This will split at the first 8614 # space. 8615 complete="$FOUND_MAKE" 8616 path="${complete%% *}" 8617 tmp="$complete EOL" 8618 arguments="${tmp#* }" 8619 8620 # Input might be given as Windows format, start by converting to 8621 # unix format. 8622 new_path=`$CYGPATH -u "$path"` 8623 8624 # Now try to locate executable using which 8625 new_path=`$WHICH "$new_path" 2> /dev/null` 8626 # bat and cmd files are not always considered executable in cygwin causing which 8627 # to not find them 8628 if test "x$new_path" = x \ 8629 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8630 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8631 new_path=`$CYGPATH -u "$path"` 8632 fi 8633 if test "x$new_path" = x; then 8634 # Oops. Which didn't find the executable. 8635 # The splitting of arguments from the executable at a space might have been incorrect, 8636 # since paths with space are more likely in Windows. Give it another try with the whole 8637 # argument. 8638 path="$complete" 8639 arguments="EOL" 8640 new_path=`$CYGPATH -u "$path"` 8641 new_path=`$WHICH "$new_path" 2> /dev/null` 8642 # bat and cmd files are not always considered executable in cygwin causing which 8643 # to not find them 8644 if test "x$new_path" = x \ 8645 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8646 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8647 new_path=`$CYGPATH -u "$path"` 8648 fi 8649 if test "x$new_path" = x; then 8650 # It's still not found. Now this is an unrecoverable error. 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8652 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8653 has_space=`$ECHO "$complete" | $GREP " "` 8654 if test "x$has_space" != x; then 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8656 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8657 fi 8658 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8659 fi 8660 fi 8661 8662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 8663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 8664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 8665 # "foo.exe" is OK but "foo" is an error. 8666 # 8667 # This test is therefore slightly more accurate than "test -f" to check for file precense. 8668 # It is also a way to make sure we got the proper file name for the real test later on. 8669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 8670 if test "x$test_shortpath" = x; then 8671 # Short path failed, file does not exist as specified. 8672 # Try adding .exe or .cmd 8673 if test -f "${new_path}.exe"; then 8674 input_to_shortpath="${new_path}.exe" 8675 elif test -f "${new_path}.cmd"; then 8676 input_to_shortpath="${new_path}.cmd" 8677 else 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 8679 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 8681 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 8682 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8683 fi 8684 else 8685 input_to_shortpath="$new_path" 8686 fi 8687 8688 # Call helper function which possibly converts this using DOS-style short mode. 8689 # If so, the updated path is stored in $new_path. 8690 new_path="$input_to_shortpath" 8691 8692 input_path="$input_to_shortpath" 8693 # Check if we need to convert this using DOS-style short mode. If the path 8694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8695 # take no chances and rewrite it. 8696 # Note: m4 eats our [], so we need to use [ and ] instead. 8697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 8698 if test "x$has_forbidden_chars" != x; then 8699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8700 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 8701 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 8702 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 8703 # Going to short mode and back again did indeed matter. Since short mode is 8704 # case insensitive, let's make it lowercase to improve readability. 8705 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8706 # Now convert it back to Unix-stile (cygpath) 8707 input_path=`$CYGPATH -u "$shortmode_path"` 8708 new_path="$input_path" 8709 fi 8710 fi 8711 8712 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 8713 if test "x$test_cygdrive_prefix" = x; then 8714 # As a simple fix, exclude /usr/bin since it's not a real path. 8715 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 8716 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 8717 # a path prefixed by /cygdrive for fixpath to work. 8718 new_path="$CYGWIN_ROOT_PATH$input_path" 8719 fi 8720 fi 8721 8722 # remove trailing .exe if any 8723 new_path="${new_path/%.exe/}" 8724 8725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8726 8727 # First separate the path from the arguments. This will split at the first 8728 # space. 8729 complete="$FOUND_MAKE" 8730 path="${complete%% *}" 8731 tmp="$complete EOL" 8732 arguments="${tmp#* }" 8733 8734 # Input might be given as Windows format, start by converting to 8735 # unix format. 8736 new_path="$path" 8737 8738 windows_path="$new_path" 8739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8740 unix_path=`$CYGPATH -u "$windows_path"` 8741 new_path="$unix_path" 8742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8743 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8744 new_path="$unix_path" 8745 fi 8746 8747 8748 # Now try to locate executable using which 8749 new_path=`$WHICH "$new_path" 2> /dev/null` 8750 8751 if test "x$new_path" = x; then 8752 # Oops. Which didn't find the executable. 8753 # The splitting of arguments from the executable at a space might have been incorrect, 8754 # since paths with space are more likely in Windows. Give it another try with the whole 8755 # argument. 8756 path="$complete" 8757 arguments="EOL" 8758 new_path="$path" 8759 8760 windows_path="$new_path" 8761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8762 unix_path=`$CYGPATH -u "$windows_path"` 8763 new_path="$unix_path" 8764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8766 new_path="$unix_path" 8767 fi 8768 8769 8770 new_path=`$WHICH "$new_path" 2> /dev/null` 8771 8772 if test "x$new_path" = x; then 8773 # It's still not found. Now this is an unrecoverable error. 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8775 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8776 has_space=`$ECHO "$complete" | $GREP " "` 8777 if test "x$has_space" != x; then 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8779 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8780 fi 8781 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8782 fi 8783 fi 8784 8785 # Now new_path has a complete unix path to the binary 8786 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 8787 # Keep paths in /bin as-is, but remove trailing .exe if any 8788 new_path="${new_path/%.exe/}" 8789 # Do not save /bin paths to all_fixpath_prefixes! 8790 else 8791 # Not in mixed or Windows style, start by that. 8792 new_path=`cmd //c echo $new_path` 8793 8794 input_path="$new_path" 8795 # Check if we need to convert this using DOS-style short mode. If the path 8796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8797 # take no chances and rewrite it. 8798 # Note: m4 eats our [], so we need to use [ and ] instead. 8799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 8800 if test "x$has_forbidden_chars" != x; then 8801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8802 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8803 fi 8804 8805 # Output is in $new_path 8806 8807 windows_path="$new_path" 8808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8809 unix_path=`$CYGPATH -u "$windows_path"` 8810 new_path="$unix_path" 8811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8813 new_path="$unix_path" 8814 fi 8815 8816 # remove trailing .exe if any 8817 new_path="${new_path/%.exe/}" 8818 8819 # Save the first 10 bytes of this path to the storage, so fixpath can work. 8820 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 8821 fi 8822 8823 else 8824 # We're on a posix platform. Hooray! :) 8825 # First separate the path from the arguments. This will split at the first 8826 # space. 8827 complete="$FOUND_MAKE" 8828 path="${complete%% *}" 8829 tmp="$complete EOL" 8830 arguments="${tmp#* }" 8831 8832 # Cannot rely on the command "which" here since it doesn't always work. 8833 is_absolute_path=`$ECHO "$path" | $GREP ^/` 8834 if test -z "$is_absolute_path"; then 8835 # Path to executable is not absolute. Find it. 8836 IFS_save="$IFS" 8837 IFS=: 8838 for p in $PATH; do 8839 if test -f "$p/$path" && test -x "$p/$path"; then 8840 new_path="$p/$path" 8841 break 8842 fi 8843 done 8844 IFS="$IFS_save" 8845 else 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 8847 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 8848 new_path="$path" 8849 fi 8850 8851 if test "x$new_path" = x; then 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8853 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8854 has_space=`$ECHO "$complete" | $GREP " "` 8855 if test "x$has_space" != x; then 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 8857 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 8858 fi 8859 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8860 fi 8861 fi 8862 8863 # Now join together the path and the arguments once again 8864 if test "x$arguments" != xEOL; then 8865 new_complete="$new_path ${arguments% *}" 8866 else 8867 new_complete="$new_path" 8868 fi 8869 8870 if test "x$complete" != "x$new_complete"; then 8871 FOUND_MAKE="$new_complete" 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 8873 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 8874 fi 8875 8876 fi 8877 fi 8878 fi 8879 fi 8880 8881 8882 if test "x$FOUND_MAKE" = x; then 8883 for ac_prog in make 8884 do 8885 # Extract the first word of "$ac_prog", so it can be a program name with args. 8886 set dummy $ac_prog; ac_word=$2 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8888 $as_echo_n "checking for $ac_word... " >&6; } 8889 if ${ac_cv_path_CHECK_MAKE+:} false; then : 8890 $as_echo_n "(cached) " >&6 8891 else 8892 case $CHECK_MAKE in 8893 [\\/]* | ?:[\\/]*) 8894 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 8895 ;; 8896 *) 8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8898 for as_dir in $PATH 8899 do 8900 IFS=$as_save_IFS 8901 test -z "$as_dir" && as_dir=. 8902 for ac_exec_ext in '' $ac_executable_extensions; do 8903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8904 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8906 break 2 8907 fi 8908 done 8909 done 8910 IFS=$as_save_IFS 8911 8912 ;; 8913 esac 8914 fi 8915 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 8916 if test -n "$CHECK_MAKE"; then 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 8918 $as_echo "$CHECK_MAKE" >&6; } 8919 else 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8921 $as_echo "no" >&6; } 8922 fi 8923 8924 8925 test -n "$CHECK_MAKE" && break 8926 done 8927 8928 8929 MAKE_CANDIDATE=""$CHECK_MAKE"" 8930 DESCRIPTION="make in PATH" 8931 if test "x$MAKE_CANDIDATE" != x; then 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 8933 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 8934 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 8935 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 8936 if test "x$IS_GNU_MAKE" = x; then 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 8938 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 8939 else 8940 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 8941 if test "x$IS_MODERN_MAKE" = x; then 8942 { $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 8943 $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;} 8944 else 8945 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 8946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8947 MAKE_EXPECTED_ENV='cygwin' 8948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8949 MAKE_EXPECTED_ENV='msys' 8950 else 8951 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 8952 fi 8953 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 8954 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 8955 else 8956 # Not relevant for non-Windows 8957 IS_MAKE_CORRECT_ENV=true 8958 fi 8959 if test "x$IS_MAKE_CORRECT_ENV" = x; then 8960 { $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 8961 $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;} 8962 else 8963 FOUND_MAKE=$MAKE_CANDIDATE 8964 8965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8966 8967 # First separate the path from the arguments. This will split at the first 8968 # space. 8969 complete="$FOUND_MAKE" 8970 path="${complete%% *}" 8971 tmp="$complete EOL" 8972 arguments="${tmp#* }" 8973 8974 # Input might be given as Windows format, start by converting to 8975 # unix format. 8976 new_path=`$CYGPATH -u "$path"` 8977 8978 # Now try to locate executable using which 8979 new_path=`$WHICH "$new_path" 2> /dev/null` 8980 # bat and cmd files are not always considered executable in cygwin causing which 8981 # to not find them 8982 if test "x$new_path" = x \ 8983 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8984 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8985 new_path=`$CYGPATH -u "$path"` 8986 fi 8987 if test "x$new_path" = x; then 8988 # Oops. Which didn't find the executable. 8989 # The splitting of arguments from the executable at a space might have been incorrect, 8990 # since paths with space are more likely in Windows. Give it another try with the whole 8991 # argument. 8992 path="$complete" 8993 arguments="EOL" 8994 new_path=`$CYGPATH -u "$path"` 8995 new_path=`$WHICH "$new_path" 2> /dev/null` 8996 # bat and cmd files are not always considered executable in cygwin causing which 8997 # to not find them 8998 if test "x$new_path" = x \ 8999 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9000 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9001 new_path=`$CYGPATH -u "$path"` 9002 fi 9003 if test "x$new_path" = x; then 9004 # It's still not found. Now this is an unrecoverable error. 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9006 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9007 has_space=`$ECHO "$complete" | $GREP " "` 9008 if test "x$has_space" != x; then 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9010 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9011 fi 9012 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9013 fi 9014 fi 9015 9016 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 9017 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 9018 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 9019 # "foo.exe" is OK but "foo" is an error. 9020 # 9021 # This test is therefore slightly more accurate than "test -f" to check for file precense. 9022 # It is also a way to make sure we got the proper file name for the real test later on. 9023 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 9024 if test "x$test_shortpath" = x; then 9025 # Short path failed, file does not exist as specified. 9026 # Try adding .exe or .cmd 9027 if test -f "${new_path}.exe"; then 9028 input_to_shortpath="${new_path}.exe" 9029 elif test -f "${new_path}.cmd"; then 9030 input_to_shortpath="${new_path}.cmd" 9031 else 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 9033 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 9035 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 9036 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9037 fi 9038 else 9039 input_to_shortpath="$new_path" 9040 fi 9041 9042 # Call helper function which possibly converts this using DOS-style short mode. 9043 # If so, the updated path is stored in $new_path. 9044 new_path="$input_to_shortpath" 9045 9046 input_path="$input_to_shortpath" 9047 # Check if we need to convert this using DOS-style short mode. If the path 9048 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9049 # take no chances and rewrite it. 9050 # Note: m4 eats our [], so we need to use [ and ] instead. 9051 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 9052 if test "x$has_forbidden_chars" != x; then 9053 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9054 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 9055 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 9056 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 9057 # Going to short mode and back again did indeed matter. Since short mode is 9058 # case insensitive, let's make it lowercase to improve readability. 9059 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9060 # Now convert it back to Unix-stile (cygpath) 9061 input_path=`$CYGPATH -u "$shortmode_path"` 9062 new_path="$input_path" 9063 fi 9064 fi 9065 9066 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 9067 if test "x$test_cygdrive_prefix" = x; then 9068 # As a simple fix, exclude /usr/bin since it's not a real path. 9069 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 9070 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 9071 # a path prefixed by /cygdrive for fixpath to work. 9072 new_path="$CYGWIN_ROOT_PATH$input_path" 9073 fi 9074 fi 9075 9076 # remove trailing .exe if any 9077 new_path="${new_path/%.exe/}" 9078 9079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9080 9081 # First separate the path from the arguments. This will split at the first 9082 # space. 9083 complete="$FOUND_MAKE" 9084 path="${complete%% *}" 9085 tmp="$complete EOL" 9086 arguments="${tmp#* }" 9087 9088 # Input might be given as Windows format, start by converting to 9089 # unix format. 9090 new_path="$path" 9091 9092 windows_path="$new_path" 9093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9094 unix_path=`$CYGPATH -u "$windows_path"` 9095 new_path="$unix_path" 9096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9098 new_path="$unix_path" 9099 fi 9100 9101 9102 # Now try to locate executable using which 9103 new_path=`$WHICH "$new_path" 2> /dev/null` 9104 9105 if test "x$new_path" = x; then 9106 # Oops. Which didn't find the executable. 9107 # The splitting of arguments from the executable at a space might have been incorrect, 9108 # since paths with space are more likely in Windows. Give it another try with the whole 9109 # argument. 9110 path="$complete" 9111 arguments="EOL" 9112 new_path="$path" 9113 9114 windows_path="$new_path" 9115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9116 unix_path=`$CYGPATH -u "$windows_path"` 9117 new_path="$unix_path" 9118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9119 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9120 new_path="$unix_path" 9121 fi 9122 9123 9124 new_path=`$WHICH "$new_path" 2> /dev/null` 9125 9126 if test "x$new_path" = x; then 9127 # It's still not found. Now this is an unrecoverable error. 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9129 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9130 has_space=`$ECHO "$complete" | $GREP " "` 9131 if test "x$has_space" != x; then 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9133 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9134 fi 9135 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9136 fi 9137 fi 9138 9139 # Now new_path has a complete unix path to the binary 9140 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 9141 # Keep paths in /bin as-is, but remove trailing .exe if any 9142 new_path="${new_path/%.exe/}" 9143 # Do not save /bin paths to all_fixpath_prefixes! 9144 else 9145 # Not in mixed or Windows style, start by that. 9146 new_path=`cmd //c echo $new_path` 9147 9148 input_path="$new_path" 9149 # Check if we need to convert this using DOS-style short mode. If the path 9150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9151 # take no chances and rewrite it. 9152 # Note: m4 eats our [], so we need to use [ and ] instead. 9153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 9154 if test "x$has_forbidden_chars" != x; then 9155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9156 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9157 fi 9158 9159 # Output is in $new_path 9160 9161 windows_path="$new_path" 9162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9163 unix_path=`$CYGPATH -u "$windows_path"` 9164 new_path="$unix_path" 9165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9167 new_path="$unix_path" 9168 fi 9169 9170 # remove trailing .exe if any 9171 new_path="${new_path/%.exe/}" 9172 9173 # Save the first 10 bytes of this path to the storage, so fixpath can work. 9174 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 9175 fi 9176 9177 else 9178 # We're on a posix platform. Hooray! :) 9179 # First separate the path from the arguments. This will split at the first 9180 # space. 9181 complete="$FOUND_MAKE" 9182 path="${complete%% *}" 9183 tmp="$complete EOL" 9184 arguments="${tmp#* }" 9185 9186 # Cannot rely on the command "which" here since it doesn't always work. 9187 is_absolute_path=`$ECHO "$path" | $GREP ^/` 9188 if test -z "$is_absolute_path"; then 9189 # Path to executable is not absolute. Find it. 9190 IFS_save="$IFS" 9191 IFS=: 9192 for p in $PATH; do 9193 if test -f "$p/$path" && test -x "$p/$path"; then 9194 new_path="$p/$path" 9195 break 9196 fi 9197 done 9198 IFS="$IFS_save" 9199 else 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 9201 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 9202 new_path="$path" 9203 fi 9204 9205 if test "x$new_path" = x; then 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9207 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9208 has_space=`$ECHO "$complete" | $GREP " "` 9209 if test "x$has_space" != x; then 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 9211 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 9212 fi 9213 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9214 fi 9215 fi 9216 9217 # Now join together the path and the arguments once again 9218 if test "x$arguments" != xEOL; then 9219 new_complete="$new_path ${arguments% *}" 9220 else 9221 new_complete="$new_path" 9222 fi 9223 9224 if test "x$complete" != "x$new_complete"; then 9225 FOUND_MAKE="$new_complete" 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 9227 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 9228 fi 9229 9230 fi 9231 fi 9232 fi 9233 fi 9234 9235 fi 9236 9237 if test "x$FOUND_MAKE" = x; then 9238 if test "x$TOOLS_DIR" != x; then 9239 # We have a tools-dir, check that as well before giving up. 9240 OLD_PATH=$PATH 9241 PATH=$TOOLS_DIR:$PATH 9242 for ac_prog in gmake 9243 do 9244 # Extract the first word of "$ac_prog", so it can be a program name with args. 9245 set dummy $ac_prog; 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_CHECK_TOOLSDIR_GMAKE+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250 else 9251 case $CHECK_TOOLSDIR_GMAKE in 9252 [\\/]* | ?:[\\/]*) 9253 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9263 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$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 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 9275 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 9277 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 9278 else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280 $as_echo "no" >&6; } 9281 fi 9282 9283 9284 test -n "$CHECK_TOOLSDIR_GMAKE" && break 9285 done 9286 9287 9288 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 9289 DESCRIPTION="gmake in tools-dir" 9290 if test "x$MAKE_CANDIDATE" != x; then 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 9292 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 9293 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 9294 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 9295 if test "x$IS_GNU_MAKE" = x; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 9297 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 9298 else 9299 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 9300 if test "x$IS_MODERN_MAKE" = x; then 9301 { $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 9302 $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;} 9303 else 9304 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 9305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9306 MAKE_EXPECTED_ENV='cygwin' 9307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9308 MAKE_EXPECTED_ENV='msys' 9309 else 9310 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 9311 fi 9312 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 9313 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 9314 else 9315 # Not relevant for non-Windows 9316 IS_MAKE_CORRECT_ENV=true 9317 fi 9318 if test "x$IS_MAKE_CORRECT_ENV" = x; then 9319 { $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 9320 $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;} 9321 else 9322 FOUND_MAKE=$MAKE_CANDIDATE 9323 9324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9325 9326 # First separate the path from the arguments. This will split at the first 9327 # space. 9328 complete="$FOUND_MAKE" 9329 path="${complete%% *}" 9330 tmp="$complete EOL" 9331 arguments="${tmp#* }" 9332 9333 # Input might be given as Windows format, start by converting to 9334 # unix format. 9335 new_path=`$CYGPATH -u "$path"` 9336 9337 # Now try to locate executable using which 9338 new_path=`$WHICH "$new_path" 2> /dev/null` 9339 # bat and cmd files are not always considered executable in cygwin causing which 9340 # to not find them 9341 if test "x$new_path" = x \ 9342 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9344 new_path=`$CYGPATH -u "$path"` 9345 fi 9346 if test "x$new_path" = x; then 9347 # Oops. Which didn't find the executable. 9348 # The splitting of arguments from the executable at a space might have been incorrect, 9349 # since paths with space are more likely in Windows. Give it another try with the whole 9350 # argument. 9351 path="$complete" 9352 arguments="EOL" 9353 new_path=`$CYGPATH -u "$path"` 9354 new_path=`$WHICH "$new_path" 2> /dev/null` 9355 # bat and cmd files are not always considered executable in cygwin causing which 9356 # to not find them 9357 if test "x$new_path" = x \ 9358 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9360 new_path=`$CYGPATH -u "$path"` 9361 fi 9362 if test "x$new_path" = x; then 9363 # It's still not found. Now this is an unrecoverable error. 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9365 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9366 has_space=`$ECHO "$complete" | $GREP " "` 9367 if test "x$has_space" != x; then 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9369 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9370 fi 9371 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9372 fi 9373 fi 9374 9375 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 9376 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 9377 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 9378 # "foo.exe" is OK but "foo" is an error. 9379 # 9380 # This test is therefore slightly more accurate than "test -f" to check for file precense. 9381 # It is also a way to make sure we got the proper file name for the real test later on. 9382 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 9383 if test "x$test_shortpath" = x; then 9384 # Short path failed, file does not exist as specified. 9385 # Try adding .exe or .cmd 9386 if test -f "${new_path}.exe"; then 9387 input_to_shortpath="${new_path}.exe" 9388 elif test -f "${new_path}.cmd"; then 9389 input_to_shortpath="${new_path}.cmd" 9390 else 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 9392 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 9394 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 9395 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9396 fi 9397 else 9398 input_to_shortpath="$new_path" 9399 fi 9400 9401 # Call helper function which possibly converts this using DOS-style short mode. 9402 # If so, the updated path is stored in $new_path. 9403 new_path="$input_to_shortpath" 9404 9405 input_path="$input_to_shortpath" 9406 # Check if we need to convert this using DOS-style short mode. If the path 9407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9408 # take no chances and rewrite it. 9409 # Note: m4 eats our [], so we need to use [ and ] instead. 9410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 9411 if test "x$has_forbidden_chars" != x; then 9412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9413 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 9414 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 9415 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 9416 # Going to short mode and back again did indeed matter. Since short mode is 9417 # case insensitive, let's make it lowercase to improve readability. 9418 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9419 # Now convert it back to Unix-stile (cygpath) 9420 input_path=`$CYGPATH -u "$shortmode_path"` 9421 new_path="$input_path" 9422 fi 9423 fi 9424 9425 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 9426 if test "x$test_cygdrive_prefix" = x; then 9427 # As a simple fix, exclude /usr/bin since it's not a real path. 9428 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 9429 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 9430 # a path prefixed by /cygdrive for fixpath to work. 9431 new_path="$CYGWIN_ROOT_PATH$input_path" 9432 fi 9433 fi 9434 9435 # remove trailing .exe if any 9436 new_path="${new_path/%.exe/}" 9437 9438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9439 9440 # First separate the path from the arguments. This will split at the first 9441 # space. 9442 complete="$FOUND_MAKE" 9443 path="${complete%% *}" 9444 tmp="$complete EOL" 9445 arguments="${tmp#* }" 9446 9447 # Input might be given as Windows format, start by converting to 9448 # unix format. 9449 new_path="$path" 9450 9451 windows_path="$new_path" 9452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9453 unix_path=`$CYGPATH -u "$windows_path"` 9454 new_path="$unix_path" 9455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9457 new_path="$unix_path" 9458 fi 9459 9460 9461 # Now try to locate executable using which 9462 new_path=`$WHICH "$new_path" 2> /dev/null` 9463 9464 if test "x$new_path" = x; then 9465 # Oops. Which didn't find the executable. 9466 # The splitting of arguments from the executable at a space might have been incorrect, 9467 # since paths with space are more likely in Windows. Give it another try with the whole 9468 # argument. 9469 path="$complete" 9470 arguments="EOL" 9471 new_path="$path" 9472 9473 windows_path="$new_path" 9474 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9475 unix_path=`$CYGPATH -u "$windows_path"` 9476 new_path="$unix_path" 9477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9478 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9479 new_path="$unix_path" 9480 fi 9481 9482 9483 new_path=`$WHICH "$new_path" 2> /dev/null` 9484 9485 if test "x$new_path" = x; then 9486 # It's still not found. Now this is an unrecoverable error. 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9488 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9489 has_space=`$ECHO "$complete" | $GREP " "` 9490 if test "x$has_space" != x; then 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9492 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9493 fi 9494 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9495 fi 9496 fi 9497 9498 # Now new_path has a complete unix path to the binary 9499 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 9500 # Keep paths in /bin as-is, but remove trailing .exe if any 9501 new_path="${new_path/%.exe/}" 9502 # Do not save /bin paths to all_fixpath_prefixes! 9503 else 9504 # Not in mixed or Windows style, start by that. 9505 new_path=`cmd //c echo $new_path` 9506 9507 input_path="$new_path" 9508 # Check if we need to convert this using DOS-style short mode. If the path 9509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9510 # take no chances and rewrite it. 9511 # Note: m4 eats our [], so we need to use [ and ] instead. 9512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 9513 if test "x$has_forbidden_chars" != x; then 9514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9515 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9516 fi 9517 9518 # Output is in $new_path 9519 9520 windows_path="$new_path" 9521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9522 unix_path=`$CYGPATH -u "$windows_path"` 9523 new_path="$unix_path" 9524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9526 new_path="$unix_path" 9527 fi 9528 9529 # remove trailing .exe if any 9530 new_path="${new_path/%.exe/}" 9531 9532 # Save the first 10 bytes of this path to the storage, so fixpath can work. 9533 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 9534 fi 9535 9536 else 9537 # We're on a posix platform. Hooray! :) 9538 # First separate the path from the arguments. This will split at the first 9539 # space. 9540 complete="$FOUND_MAKE" 9541 path="${complete%% *}" 9542 tmp="$complete EOL" 9543 arguments="${tmp#* }" 9544 9545 # Cannot rely on the command "which" here since it doesn't always work. 9546 is_absolute_path=`$ECHO "$path" | $GREP ^/` 9547 if test -z "$is_absolute_path"; then 9548 # Path to executable is not absolute. Find it. 9549 IFS_save="$IFS" 9550 IFS=: 9551 for p in $PATH; do 9552 if test -f "$p/$path" && test -x "$p/$path"; then 9553 new_path="$p/$path" 9554 break 9555 fi 9556 done 9557 IFS="$IFS_save" 9558 else 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 9560 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 9561 new_path="$path" 9562 fi 9563 9564 if test "x$new_path" = x; then 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9566 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9567 has_space=`$ECHO "$complete" | $GREP " "` 9568 if test "x$has_space" != x; then 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 9570 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 9571 fi 9572 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9573 fi 9574 fi 9575 9576 # Now join together the path and the arguments once again 9577 if test "x$arguments" != xEOL; then 9578 new_complete="$new_path ${arguments% *}" 9579 else 9580 new_complete="$new_path" 9581 fi 9582 9583 if test "x$complete" != "x$new_complete"; then 9584 FOUND_MAKE="$new_complete" 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 9586 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 9587 fi 9588 9589 fi 9590 fi 9591 fi 9592 fi 9593 9594 if test "x$FOUND_MAKE" = x; then 9595 for ac_prog in make 9596 do 9597 # Extract the first word of "$ac_prog", so it can be a program name with args. 9598 set dummy $ac_prog; ac_word=$2 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9600 $as_echo_n "checking for $ac_word... " >&6; } 9601 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603 else 9604 case $CHECK_TOOLSDIR_MAKE in 9605 [\\/]* | ?:[\\/]*) 9606 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 9607 ;; 9608 *) 9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9610 for as_dir in $PATH 9611 do 9612 IFS=$as_save_IFS 9613 test -z "$as_dir" && as_dir=. 9614 for ac_exec_ext in '' $ac_executable_extensions; do 9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9616 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9618 break 2 9619 fi 9620 done 9621 done 9622 IFS=$as_save_IFS 9623 9624 ;; 9625 esac 9626 fi 9627 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 9628 if test -n "$CHECK_TOOLSDIR_MAKE"; then 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 9630 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 9631 else 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9633 $as_echo "no" >&6; } 9634 fi 9635 9636 9637 test -n "$CHECK_TOOLSDIR_MAKE" && break 9638 done 9639 9640 9641 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 9642 DESCRIPTION="make in tools-dir" 9643 if test "x$MAKE_CANDIDATE" != x; then 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 9645 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 9646 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 9647 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 9648 if test "x$IS_GNU_MAKE" = x; then 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 9650 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 9651 else 9652 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 9653 if test "x$IS_MODERN_MAKE" = x; then 9654 { $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 9655 $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;} 9656 else 9657 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 9658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9659 MAKE_EXPECTED_ENV='cygwin' 9660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9661 MAKE_EXPECTED_ENV='msys' 9662 else 9663 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 9664 fi 9665 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 9666 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 9667 else 9668 # Not relevant for non-Windows 9669 IS_MAKE_CORRECT_ENV=true 9670 fi 9671 if test "x$IS_MAKE_CORRECT_ENV" = x; then 9672 { $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 9673 $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;} 9674 else 9675 FOUND_MAKE=$MAKE_CANDIDATE 9676 9677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9678 9679 # First separate the path from the arguments. This will split at the first 9680 # space. 9681 complete="$FOUND_MAKE" 9682 path="${complete%% *}" 9683 tmp="$complete EOL" 9684 arguments="${tmp#* }" 9685 9686 # Input might be given as Windows format, start by converting to 9687 # unix format. 9688 new_path=`$CYGPATH -u "$path"` 9689 9690 # Now try to locate executable using which 9691 new_path=`$WHICH "$new_path" 2> /dev/null` 9692 # bat and cmd files are not always considered executable in cygwin causing which 9693 # to not find them 9694 if test "x$new_path" = x \ 9695 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9696 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9697 new_path=`$CYGPATH -u "$path"` 9698 fi 9699 if test "x$new_path" = x; then 9700 # Oops. Which didn't find the executable. 9701 # The splitting of arguments from the executable at a space might have been incorrect, 9702 # since paths with space are more likely in Windows. Give it another try with the whole 9703 # argument. 9704 path="$complete" 9705 arguments="EOL" 9706 new_path=`$CYGPATH -u "$path"` 9707 new_path=`$WHICH "$new_path" 2> /dev/null` 9708 # bat and cmd files are not always considered executable in cygwin causing which 9709 # to not find them 9710 if test "x$new_path" = x \ 9711 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9712 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9713 new_path=`$CYGPATH -u "$path"` 9714 fi 9715 if test "x$new_path" = x; then 9716 # It's still not found. Now this is an unrecoverable error. 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9718 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9719 has_space=`$ECHO "$complete" | $GREP " "` 9720 if test "x$has_space" != x; then 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9722 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9723 fi 9724 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9725 fi 9726 fi 9727 9728 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 9729 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 9730 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 9731 # "foo.exe" is OK but "foo" is an error. 9732 # 9733 # This test is therefore slightly more accurate than "test -f" to check for file precense. 9734 # It is also a way to make sure we got the proper file name for the real test later on. 9735 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 9736 if test "x$test_shortpath" = x; then 9737 # Short path failed, file does not exist as specified. 9738 # Try adding .exe or .cmd 9739 if test -f "${new_path}.exe"; then 9740 input_to_shortpath="${new_path}.exe" 9741 elif test -f "${new_path}.cmd"; then 9742 input_to_shortpath="${new_path}.cmd" 9743 else 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 9745 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 9747 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 9748 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9749 fi 9750 else 9751 input_to_shortpath="$new_path" 9752 fi 9753 9754 # Call helper function which possibly converts this using DOS-style short mode. 9755 # If so, the updated path is stored in $new_path. 9756 new_path="$input_to_shortpath" 9757 9758 input_path="$input_to_shortpath" 9759 # Check if we need to convert this using DOS-style short mode. If the path 9760 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9761 # take no chances and rewrite it. 9762 # Note: m4 eats our [], so we need to use [ and ] instead. 9763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 9764 if test "x$has_forbidden_chars" != x; then 9765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9766 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 9767 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 9768 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 9769 # Going to short mode and back again did indeed matter. Since short mode is 9770 # case insensitive, let's make it lowercase to improve readability. 9771 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9772 # Now convert it back to Unix-stile (cygpath) 9773 input_path=`$CYGPATH -u "$shortmode_path"` 9774 new_path="$input_path" 9775 fi 9776 fi 9777 9778 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 9779 if test "x$test_cygdrive_prefix" = x; then 9780 # As a simple fix, exclude /usr/bin since it's not a real path. 9781 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 9782 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 9783 # a path prefixed by /cygdrive for fixpath to work. 9784 new_path="$CYGWIN_ROOT_PATH$input_path" 9785 fi 9786 fi 9787 9788 # remove trailing .exe if any 9789 new_path="${new_path/%.exe/}" 9790 9791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9792 9793 # First separate the path from the arguments. This will split at the first 9794 # space. 9795 complete="$FOUND_MAKE" 9796 path="${complete%% *}" 9797 tmp="$complete EOL" 9798 arguments="${tmp#* }" 9799 9800 # Input might be given as Windows format, start by converting to 9801 # unix format. 9802 new_path="$path" 9803 9804 windows_path="$new_path" 9805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9806 unix_path=`$CYGPATH -u "$windows_path"` 9807 new_path="$unix_path" 9808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9809 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9810 new_path="$unix_path" 9811 fi 9812 9813 9814 # Now try to locate executable using which 9815 new_path=`$WHICH "$new_path" 2> /dev/null` 9816 9817 if test "x$new_path" = x; then 9818 # Oops. Which didn't find the executable. 9819 # The splitting of arguments from the executable at a space might have been incorrect, 9820 # since paths with space are more likely in Windows. Give it another try with the whole 9821 # argument. 9822 path="$complete" 9823 arguments="EOL" 9824 new_path="$path" 9825 9826 windows_path="$new_path" 9827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9828 unix_path=`$CYGPATH -u "$windows_path"` 9829 new_path="$unix_path" 9830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9832 new_path="$unix_path" 9833 fi 9834 9835 9836 new_path=`$WHICH "$new_path" 2> /dev/null` 9837 9838 if test "x$new_path" = x; then 9839 # It's still not found. Now this is an unrecoverable error. 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9841 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9842 has_space=`$ECHO "$complete" | $GREP " "` 9843 if test "x$has_space" != x; then 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9845 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9846 fi 9847 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9848 fi 9849 fi 9850 9851 # Now new_path has a complete unix path to the binary 9852 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 9853 # Keep paths in /bin as-is, but remove trailing .exe if any 9854 new_path="${new_path/%.exe/}" 9855 # Do not save /bin paths to all_fixpath_prefixes! 9856 else 9857 # Not in mixed or Windows style, start by that. 9858 new_path=`cmd //c echo $new_path` 9859 9860 input_path="$new_path" 9861 # Check if we need to convert this using DOS-style short mode. If the path 9862 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9863 # take no chances and rewrite it. 9864 # Note: m4 eats our [], so we need to use [ and ] instead. 9865 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 9866 if test "x$has_forbidden_chars" != x; then 9867 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9868 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9869 fi 9870 9871 # Output is in $new_path 9872 9873 windows_path="$new_path" 9874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9875 unix_path=`$CYGPATH -u "$windows_path"` 9876 new_path="$unix_path" 9877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9879 new_path="$unix_path" 9880 fi 9881 9882 # remove trailing .exe if any 9883 new_path="${new_path/%.exe/}" 9884 9885 # Save the first 10 bytes of this path to the storage, so fixpath can work. 9886 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 9887 fi 9888 9889 else 9890 # We're on a posix platform. Hooray! :) 9891 # First separate the path from the arguments. This will split at the first 9892 # space. 9893 complete="$FOUND_MAKE" 9894 path="${complete%% *}" 9895 tmp="$complete EOL" 9896 arguments="${tmp#* }" 9897 9898 # Cannot rely on the command "which" here since it doesn't always work. 9899 is_absolute_path=`$ECHO "$path" | $GREP ^/` 9900 if test -z "$is_absolute_path"; then 9901 # Path to executable is not absolute. Find it. 9902 IFS_save="$IFS" 9903 IFS=: 9904 for p in $PATH; do 9905 if test -f "$p/$path" && test -x "$p/$path"; then 9906 new_path="$p/$path" 9907 break 9908 fi 9909 done 9910 IFS="$IFS_save" 9911 else 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 9913 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 9914 new_path="$path" 9915 fi 9916 9917 if test "x$new_path" = x; then 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9919 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9920 has_space=`$ECHO "$complete" | $GREP " "` 9921 if test "x$has_space" != x; then 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 9923 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 9924 fi 9925 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9926 fi 9927 fi 9928 9929 # Now join together the path and the arguments once again 9930 if test "x$arguments" != xEOL; then 9931 new_complete="$new_path ${arguments% *}" 9932 else 9933 new_complete="$new_path" 9934 fi 9935 9936 if test "x$complete" != "x$new_complete"; then 9937 FOUND_MAKE="$new_complete" 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 9939 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 9940 fi 9941 9942 fi 9943 fi 9944 fi 9945 fi 9946 9947 fi 9948 PATH=$OLD_PATH 9949 fi 9950 fi 9951 9952 if test "x$FOUND_MAKE" = x; then 9953 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 9954 fi 9955 fi 9956 9957 MAKE=$FOUND_MAKE 9958 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 9960 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 9961 9962 9963 9964 # Test if find supports -delete 9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 9966 $as_echo_n "checking if find supports -delete... " >&6; } 9967 FIND_DELETE="-delete" 9968 9969 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 9970 9971 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 9972 9973 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 9974 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 9975 # No, it does not. 9976 rm $DELETEDIR/TestIfFindSupportsDelete 9977 FIND_DELETE="-exec rm \{\} \+" 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9979 $as_echo "no" >&6; } 9980 else 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9982 $as_echo "yes" >&6; } 9983 fi 9984 rmdir $DELETEDIR 9985 9986 9987 9988 # These tools might not be installed by default, 9989 # need hint on how to install them. 9990 9991 for ac_prog in unzip 9992 do 9993 # Extract the first word of "$ac_prog", so it can be a program name with args. 9994 set dummy $ac_prog; ac_word=$2 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9996 $as_echo_n "checking for $ac_word... " >&6; } 9997 if ${ac_cv_path_UNZIP+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999 else 10000 case $UNZIP in 10001 [\\/]* | ?:[\\/]*) 10002 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 10003 ;; 10004 *) 10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10006 for as_dir in $PATH 10007 do 10008 IFS=$as_save_IFS 10009 test -z "$as_dir" && as_dir=. 10010 for ac_exec_ext in '' $ac_executable_extensions; do 10011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10012 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10014 break 2 10015 fi 10016 done 10017 done 10018 IFS=$as_save_IFS 10019 10020 ;; 10021 esac 10022 fi 10023 UNZIP=$ac_cv_path_UNZIP 10024 if test -n "$UNZIP"; then 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 10026 $as_echo "$UNZIP" >&6; } 10027 else 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10029 $as_echo "no" >&6; } 10030 fi 10031 10032 10033 test -n "$UNZIP" && break 10034 done 10035 10036 10037 if test "x$UNZIP" = x; then 10038 if test "xunzip" = x; then 10039 PROG_NAME=unzip 10040 else 10041 PROG_NAME=unzip 10042 fi 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 10044 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 10045 as_fn_error $? "Cannot continue" "$LINENO" 5 10046 fi 10047 10048 10049 10050 for ac_prog in zip 10051 do 10052 # Extract the first word of "$ac_prog", so it can be a program name with args. 10053 set dummy $ac_prog; ac_word=$2 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10055 $as_echo_n "checking for $ac_word... " >&6; } 10056 if ${ac_cv_path_ZIP+:} false; then : 10057 $as_echo_n "(cached) " >&6 10058 else 10059 case $ZIP in 10060 [\\/]* | ?:[\\/]*) 10061 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 10062 ;; 10063 *) 10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10065 for as_dir in $PATH 10066 do 10067 IFS=$as_save_IFS 10068 test -z "$as_dir" && as_dir=. 10069 for ac_exec_ext in '' $ac_executable_extensions; do 10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10071 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10073 break 2 10074 fi 10075 done 10076 done 10077 IFS=$as_save_IFS 10078 10079 ;; 10080 esac 10081 fi 10082 ZIP=$ac_cv_path_ZIP 10083 if test -n "$ZIP"; then 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 10085 $as_echo "$ZIP" >&6; } 10086 else 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10088 $as_echo "no" >&6; } 10089 fi 10090 10091 10092 test -n "$ZIP" && break 10093 done 10094 10095 10096 if test "x$ZIP" = x; then 10097 if test "xzip" = x; then 10098 PROG_NAME=zip 10099 else 10100 PROG_NAME=zip 10101 fi 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 10103 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 10104 as_fn_error $? "Cannot continue" "$LINENO" 5 10105 fi 10106 10107 10108 10109 # Non-required basic tools 10110 10111 # Extract the first word of "ldd", so it can be a program name with args. 10112 set dummy ldd; ac_word=$2 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10114 $as_echo_n "checking for $ac_word... " >&6; } 10115 if ${ac_cv_path_LDD+:} false; then : 10116 $as_echo_n "(cached) " >&6 10117 else 10118 case $LDD in 10119 [\\/]* | ?:[\\/]*) 10120 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 10121 ;; 10122 *) 10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10124 for as_dir in $PATH 10125 do 10126 IFS=$as_save_IFS 10127 test -z "$as_dir" && as_dir=. 10128 for ac_exec_ext in '' $ac_executable_extensions; do 10129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10130 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10132 break 2 10133 fi 10134 done 10135 done 10136 IFS=$as_save_IFS 10137 10138 ;; 10139 esac 10140 fi 10141 LDD=$ac_cv_path_LDD 10142 if test -n "$LDD"; then 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 10144 $as_echo "$LDD" >&6; } 10145 else 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10147 $as_echo "no" >&6; } 10148 fi 10149 10150 10151 if test "x$LDD" = "x"; then 10152 # List shared lib dependencies is used for 10153 # debug output and checking for forbidden dependencies. 10154 # We can build without it. 10155 LDD="true" 10156 fi 10157 # Extract the first word of "otool", so it can be a program name with args. 10158 set dummy otool; ac_word=$2 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10160 $as_echo_n "checking for $ac_word... " >&6; } 10161 if ${ac_cv_path_OTOOL+:} false; then : 10162 $as_echo_n "(cached) " >&6 10163 else 10164 case $OTOOL in 10165 [\\/]* | ?:[\\/]*) 10166 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 10167 ;; 10168 *) 10169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10170 for as_dir in $PATH 10171 do 10172 IFS=$as_save_IFS 10173 test -z "$as_dir" && as_dir=. 10174 for ac_exec_ext in '' $ac_executable_extensions; do 10175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10176 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10178 break 2 10179 fi 10180 done 10181 done 10182 IFS=$as_save_IFS 10183 10184 ;; 10185 esac 10186 fi 10187 OTOOL=$ac_cv_path_OTOOL 10188 if test -n "$OTOOL"; then 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10190 $as_echo "$OTOOL" >&6; } 10191 else 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10193 $as_echo "no" >&6; } 10194 fi 10195 10196 10197 if test "x$OTOOL" = "x"; then 10198 OTOOL="true" 10199 fi 10200 for ac_prog in readelf greadelf 10201 do 10202 # Extract the first word of "$ac_prog", so it can be a program name with args. 10203 set dummy $ac_prog; ac_word=$2 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10205 $as_echo_n "checking for $ac_word... " >&6; } 10206 if ${ac_cv_path_READELF+:} false; then : 10207 $as_echo_n "(cached) " >&6 10208 else 10209 case $READELF in 10210 [\\/]* | ?:[\\/]*) 10211 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 10212 ;; 10213 *) 10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10215 for as_dir in $PATH 10216 do 10217 IFS=$as_save_IFS 10218 test -z "$as_dir" && as_dir=. 10219 for ac_exec_ext in '' $ac_executable_extensions; do 10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10221 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10223 break 2 10224 fi 10225 done 10226 done 10227 IFS=$as_save_IFS 10228 10229 ;; 10230 esac 10231 fi 10232 READELF=$ac_cv_path_READELF 10233 if test -n "$READELF"; then 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10235 $as_echo "$READELF" >&6; } 10236 else 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10238 $as_echo "no" >&6; } 10239 fi 10240 10241 10242 test -n "$READELF" && break 10243 done 10244 10245 # Extract the first word of "hg", so it can be a program name with args. 10246 set dummy hg; ac_word=$2 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10248 $as_echo_n "checking for $ac_word... " >&6; } 10249 if ${ac_cv_path_HG+:} false; then : 10250 $as_echo_n "(cached) " >&6 10251 else 10252 case $HG in 10253 [\\/]* | ?:[\\/]*) 10254 ac_cv_path_HG="$HG" # Let the user override the test with a path. 10255 ;; 10256 *) 10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10258 for as_dir in $PATH 10259 do 10260 IFS=$as_save_IFS 10261 test -z "$as_dir" && as_dir=. 10262 for ac_exec_ext in '' $ac_executable_extensions; do 10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10264 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10266 break 2 10267 fi 10268 done 10269 done 10270 IFS=$as_save_IFS 10271 10272 ;; 10273 esac 10274 fi 10275 HG=$ac_cv_path_HG 10276 if test -n "$HG"; then 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 10278 $as_echo "$HG" >&6; } 10279 else 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10281 $as_echo "no" >&6; } 10282 fi 10283 10284 10285 # Extract the first word of "stat", so it can be a program name with args. 10286 set dummy stat; ac_word=$2 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10288 $as_echo_n "checking for $ac_word... " >&6; } 10289 if ${ac_cv_path_STAT+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291 else 10292 case $STAT in 10293 [\\/]* | ?:[\\/]*) 10294 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 10295 ;; 10296 *) 10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10298 for as_dir in $PATH 10299 do 10300 IFS=$as_save_IFS 10301 test -z "$as_dir" && as_dir=. 10302 for ac_exec_ext in '' $ac_executable_extensions; do 10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10304 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10306 break 2 10307 fi 10308 done 10309 done 10310 IFS=$as_save_IFS 10311 10312 ;; 10313 esac 10314 fi 10315 STAT=$ac_cv_path_STAT 10316 if test -n "$STAT"; then 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 10318 $as_echo "$STAT" >&6; } 10319 else 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10321 $as_echo "no" >&6; } 10322 fi 10323 10324 10325 # Extract the first word of "time", so it can be a program name with args. 10326 set dummy time; ac_word=$2 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10328 $as_echo_n "checking for $ac_word... " >&6; } 10329 if ${ac_cv_path_TIME+:} false; then : 10330 $as_echo_n "(cached) " >&6 10331 else 10332 case $TIME in 10333 [\\/]* | ?:[\\/]*) 10334 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 10335 ;; 10336 *) 10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10338 for as_dir in $PATH 10339 do 10340 IFS=$as_save_IFS 10341 test -z "$as_dir" && as_dir=. 10342 for ac_exec_ext in '' $ac_executable_extensions; do 10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10344 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10346 break 2 10347 fi 10348 done 10349 done 10350 IFS=$as_save_IFS 10351 10352 ;; 10353 esac 10354 fi 10355 TIME=$ac_cv_path_TIME 10356 if test -n "$TIME"; then 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 10358 $as_echo "$TIME" >&6; } 10359 else 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10361 $as_echo "no" >&6; } 10362 fi 10363 10364 10365 10366 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 10367 10368 for ac_prog in comm 10369 do 10370 # Extract the first word of "$ac_prog", so it can be a program name with args. 10371 set dummy $ac_prog; ac_word=$2 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10373 $as_echo_n "checking for $ac_word... " >&6; } 10374 if ${ac_cv_path_COMM+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376 else 10377 case $COMM in 10378 [\\/]* | ?:[\\/]*) 10379 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 10380 ;; 10381 *) 10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10383 for as_dir in $PATH 10384 do 10385 IFS=$as_save_IFS 10386 test -z "$as_dir" && as_dir=. 10387 for ac_exec_ext in '' $ac_executable_extensions; do 10388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10389 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 10390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10391 break 2 10392 fi 10393 done 10394 done 10395 IFS=$as_save_IFS 10396 10397 ;; 10398 esac 10399 fi 10400 COMM=$ac_cv_path_COMM 10401 if test -n "$COMM"; then 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 10403 $as_echo "$COMM" >&6; } 10404 else 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10406 $as_echo "no" >&6; } 10407 fi 10408 10409 10410 test -n "$COMM" && break 10411 done 10412 10413 10414 if test "x$COMM" = x; then 10415 if test "xcomm" = x; then 10416 PROG_NAME=comm 10417 else 10418 PROG_NAME=comm 10419 fi 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 10421 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 10422 as_fn_error $? "Cannot continue" "$LINENO" 5 10423 fi 10424 10425 10426 fi 10427 10428 10429 # Check if pkg-config is available. 10430 10431 10432 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10433 if test -n "$ac_tool_prefix"; then 10434 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10435 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10437 $as_echo_n "checking for $ac_word... " >&6; } 10438 if ${ac_cv_path_PKG_CONFIG+:} false; then : 10439 $as_echo_n "(cached) " >&6 10440 else 10441 case $PKG_CONFIG in 10442 [\\/]* | ?:[\\/]*) 10443 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10444 ;; 10445 *) 10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10447 for as_dir in $PATH 10448 do 10449 IFS=$as_save_IFS 10450 test -z "$as_dir" && as_dir=. 10451 for ac_exec_ext in '' $ac_executable_extensions; do 10452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10453 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10455 break 2 10456 fi 10457 done 10458 done 10459 IFS=$as_save_IFS 10460 10461 ;; 10462 esac 10463 fi 10464 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10465 if test -n "$PKG_CONFIG"; then 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10467 $as_echo "$PKG_CONFIG" >&6; } 10468 else 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10470 $as_echo "no" >&6; } 10471 fi 10472 10473 10474 fi 10475 if test -z "$ac_cv_path_PKG_CONFIG"; then 10476 ac_pt_PKG_CONFIG=$PKG_CONFIG 10477 # Extract the first word of "pkg-config", so it can be a program name with args. 10478 set dummy pkg-config; ac_word=$2 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10480 $as_echo_n "checking for $ac_word... " >&6; } 10481 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10482 $as_echo_n "(cached) " >&6 10483 else 10484 case $ac_pt_PKG_CONFIG in 10485 [\\/]* | ?:[\\/]*) 10486 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10487 ;; 10488 *) 10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10490 for as_dir in $PATH 10491 do 10492 IFS=$as_save_IFS 10493 test -z "$as_dir" && as_dir=. 10494 for ac_exec_ext in '' $ac_executable_extensions; do 10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10496 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10498 break 2 10499 fi 10500 done 10501 done 10502 IFS=$as_save_IFS 10503 10504 ;; 10505 esac 10506 fi 10507 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10508 if test -n "$ac_pt_PKG_CONFIG"; then 10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10510 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 10511 else 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10513 $as_echo "no" >&6; } 10514 fi 10515 10516 if test "x$ac_pt_PKG_CONFIG" = x; then 10517 PKG_CONFIG="" 10518 else 10519 case $cross_compiling:$ac_tool_warned in 10520 yes:) 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10523 ac_tool_warned=yes ;; 10524 esac 10525 PKG_CONFIG=$ac_pt_PKG_CONFIG 10526 fi 10527 else 10528 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10529 fi 10530 10531 fi 10532 if test -n "$PKG_CONFIG"; then 10533 _pkg_min_version=0.9.0 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10535 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10536 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10538 $as_echo "yes" >&6; } 10539 else 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10541 $as_echo "no" >&6; } 10542 PKG_CONFIG="" 10543 fi 10544 10545 fi 10546 10547 # After basic tools have been setup, we can check build os specific details. 10548 10549 ############################################################################### 10550 10551 # Note that this is the build platform OS version! 10552 10553 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 10554 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 10555 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 10556 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 10557 10558 10559 10560 10561 10562 # Setup builddeps, for automatic downloading of tools we need. 10563 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 10564 # boot-jdk setup, but we need to have basic tools setup first. 10565 10566 10567 # Check whether --with-builddeps-conf was given. 10568 if test "${with_builddeps_conf+set}" = set; then : 10569 withval=$with_builddeps_conf; 10570 fi 10571 10572 10573 10574 # Check whether --with-builddeps-server was given. 10575 if test "${with_builddeps_server+set}" = set; then : 10576 withval=$with_builddeps_server; 10577 fi 10578 10579 10580 10581 # Check whether --with-builddeps-dir was given. 10582 if test "${with_builddeps_dir+set}" = set; then : 10583 withval=$with_builddeps_dir; 10584 else 10585 with_builddeps_dir=/localhome/builddeps 10586 fi 10587 10588 10589 10590 # Check whether --with-builddeps-group was given. 10591 if test "${with_builddeps_group+set}" = set; then : 10592 withval=$with_builddeps_group; 10593 fi 10594 10595 10596 10597 10598 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 10599 if test "x$with_builddeps_conf" != x; then 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 10601 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 10602 builddepsfile=$with_builddeps_conf 10603 if test -s $builddepsfile; then 10604 . $builddepsfile 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 10606 $as_echo "loaded!" >&6; } 10607 else 10608 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 10609 fi 10610 else 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 10612 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 10613 builddepsfile=`mktemp` 10614 touch $builddepsfile 10615 # Put all found confs into a single file. 10616 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 10617 # Source the file to acquire the variables 10618 if test -s $builddepsfile; then 10619 . $builddepsfile 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 10621 $as_echo "found at least one!" >&6; } 10622 else 10623 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 10624 fi 10625 fi 10626 # Create build and target names that use _ instead of "-" and ".". 10627 # This is necessary to use them in variable names. 10628 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 10629 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 10630 # Extract rewrite information for build and target 10631 eval rewritten_build=\${REWRITE_${build_var}} 10632 if test "x$rewritten_build" = x; then 10633 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 10634 echo Build stays the same $rewritten_build 10635 else 10636 echo Rewriting build for builddeps into $rewritten_build 10637 fi 10638 eval rewritten_target=\${REWRITE_${target_var}} 10639 if test "x$rewritten_target" = x; then 10640 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 10641 echo Target stays the same $rewritten_target 10642 else 10643 echo Rewriting target for builddeps into $rewritten_target 10644 fi 10645 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 10646 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 10647 fi 10648 for ac_prog in 7z unzip 10649 do 10650 # Extract the first word of "$ac_prog", so it can be a program name with args. 10651 set dummy $ac_prog; ac_word=$2 10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10653 $as_echo_n "checking for $ac_word... " >&6; } 10654 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 10655 $as_echo_n "(cached) " >&6 10656 else 10657 if test -n "$BDEPS_UNZIP"; then 10658 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 10659 else 10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10661 for as_dir in $PATH 10662 do 10663 IFS=$as_save_IFS 10664 test -z "$as_dir" && as_dir=. 10665 for ac_exec_ext in '' $ac_executable_extensions; do 10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10667 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10669 break 2 10670 fi 10671 done 10672 done 10673 IFS=$as_save_IFS 10674 10675 fi 10676 fi 10677 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 10678 if test -n "$BDEPS_UNZIP"; then 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 10680 $as_echo "$BDEPS_UNZIP" >&6; } 10681 else 10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10683 $as_echo "no" >&6; } 10684 fi 10685 10686 10687 test -n "$BDEPS_UNZIP" && break 10688 done 10689 10690 if test "x$BDEPS_UNZIP" = x7z; then 10691 BDEPS_UNZIP="7z x" 10692 fi 10693 10694 for ac_prog in wget lftp ftp 10695 do 10696 # Extract the first word of "$ac_prog", so it can be a program name with args. 10697 set dummy $ac_prog; ac_word=$2 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10699 $as_echo_n "checking for $ac_word... " >&6; } 10700 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 10701 $as_echo_n "(cached) " >&6 10702 else 10703 if test -n "$BDEPS_FTP"; then 10704 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 10705 else 10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10707 for as_dir in $PATH 10708 do 10709 IFS=$as_save_IFS 10710 test -z "$as_dir" && as_dir=. 10711 for ac_exec_ext in '' $ac_executable_extensions; do 10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10713 ac_cv_prog_BDEPS_FTP="$ac_prog" 10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10715 break 2 10716 fi 10717 done 10718 done 10719 IFS=$as_save_IFS 10720 10721 fi 10722 fi 10723 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 10724 if test -n "$BDEPS_FTP"; then 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 10726 $as_echo "$BDEPS_FTP" >&6; } 10727 else 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10729 $as_echo "no" >&6; } 10730 fi 10731 10732 10733 test -n "$BDEPS_FTP" && break 10734 done 10735 10736 10737 10738 ############################################################################### 10739 # 10740 # Determine OpenJDK variants, options and version numbers. 10741 # 10742 ############################################################################### 10743 10744 # We need build & target for this. 10745 10746 10747 ############################################################################### 10748 # 10749 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 10750 # We always build headless support. 10751 # 10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 10753 $as_echo_n "checking headful support... " >&6; } 10754 # Check whether --enable-headful was given. 10755 if test "${enable_headful+set}" = set; then : 10756 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 10757 else 10758 SUPPORT_HEADFUL=yes 10759 fi 10760 10761 10762 SUPPORT_HEADLESS=yes 10763 BUILD_HEADLESS="BUILD_HEADLESS:=true" 10764 10765 if test "x$SUPPORT_HEADFUL" = xyes; then 10766 # We are building both headful and headless. 10767 headful_msg="inlude support for both headful and headless" 10768 fi 10769 10770 if test "x$SUPPORT_HEADFUL" = xno; then 10771 # Thus we are building headless only. 10772 BUILD_HEADLESS="BUILD_HEADLESS:=true" 10773 headful_msg="headless only" 10774 fi 10775 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 10777 $as_echo "$headful_msg" >&6; } 10778 10779 10780 10781 10782 10783 # Control wether Hotspot runs Queens test after build. 10784 # Check whether --enable-hotspot-test-in-build was given. 10785 if test "${enable_hotspot_test_in_build+set}" = set; then : 10786 enableval=$enable_hotspot_test_in_build; 10787 else 10788 enable_hotspot_test_in_build=no 10789 fi 10790 10791 if test "x$enable_hotspot_test_in_build" = "xyes"; then 10792 TEST_IN_BUILD=true 10793 else 10794 TEST_IN_BUILD=false 10795 fi 10796 10797 10798 ############################################################################### 10799 # 10800 # Choose cacerts source file 10801 # 10802 10803 # Check whether --with-cacerts-file was given. 10804 if test "${with_cacerts_file+set}" = set; then : 10805 withval=$with_cacerts_file; 10806 fi 10807 10808 if test "x$with_cacerts_file" != x; then 10809 CACERTS_FILE=$with_cacerts_file 10810 else 10811 if test "x$OPENJDK" = "xtrue"; then 10812 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 10813 else 10814 CACERTS_FILE=${SRC_ROOT}/jdk/src/closed/share/lib/security/cacerts.internal 10815 fi 10816 fi 10817 10818 10819 ############################################################################### 10820 # 10821 # Enable or disable unlimited crypto 10822 # 10823 # Check whether --enable-unlimited-crypto was given. 10824 if test "${enable_unlimited_crypto+set}" = set; then : 10825 enableval=$enable_unlimited_crypto; 10826 else 10827 enable_unlimited_crypto=no 10828 fi 10829 10830 if test "x$enable_unlimited_crypto" = "xyes"; then 10831 UNLIMITED_CRYPTO=true 10832 else 10833 UNLIMITED_CRYPTO=false 10834 fi 10835 10836 10837 ############################################################################### 10838 # 10839 # Enable or disable the elliptic curve crypto implementation 10840 # 10841 10842 10843 ############################################################################### 10844 # 10845 # Compress jars 10846 # 10847 COMPRESS_JARS=false 10848 10849 10850 10851 10852 # Source the version numbers 10853 . $AUTOCONF_DIR/version-numbers 10854 10855 # Get the settings from parameters 10856 10857 # Check whether --with-milestone was given. 10858 if test "${with_milestone+set}" = set; then : 10859 withval=$with_milestone; 10860 fi 10861 10862 if test "x$with_milestone" = xyes; then 10863 as_fn_error $? "Milestone must have a value" "$LINENO" 5 10864 elif test "x$with_milestone" != x; then 10865 MILESTONE="$with_milestone" 10866 fi 10867 if test "x$MILESTONE" = x; then 10868 MILESTONE=internal 10869 fi 10870 10871 10872 # Check whether --with-build-number was given. 10873 if test "${with_build_number+set}" = set; then : 10874 withval=$with_build_number; 10875 fi 10876 10877 if test "x$with_build_number" = xyes; then 10878 as_fn_error $? "Build number must have a value" "$LINENO" 5 10879 elif test "x$with_build_number" != x; then 10880 JDK_BUILD_NUMBER="$with_build_number" 10881 fi 10882 if test "x$JDK_BUILD_NUMBER" = x; then 10883 JDK_BUILD_NUMBER=b00 10884 fi 10885 10886 10887 # Check whether --with-user-release-suffix was given. 10888 if test "${with_user_release_suffix+set}" = set; then : 10889 withval=$with_user_release_suffix; 10890 fi 10891 10892 if test "x$with_user_release_suffix" = xyes; then 10893 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 10894 elif test "x$with_user_release_suffix" != x; then 10895 USER_RELEASE_SUFFIX="$with_user_release_suffix" 10896 else 10897 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 10898 # Avoid [:alnum:] since it depends on the locale. 10899 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'` 10900 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 10901 fi 10902 10903 10904 # Now set the JDK version, milestone, build number etc. 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 COPYRIGHT_YEAR=`date +'%Y'` 10920 10921 10922 if test "x$JDK_UPDATE_VERSION" != x; then 10923 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 10924 else 10925 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 10926 fi 10927 10928 10929 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 10930 10931 10932 10933 ############################################################################### 10934 # 10935 # Setup BootJDK, used to bootstrap the build. 10936 # 10937 ############################################################################### 10938 10939 10940 BOOT_JDK_FOUND=no 10941 10942 # Check whether --with-boot-jdk was given. 10943 if test "${with_boot_jdk+set}" = set; then : 10944 withval=$with_boot_jdk; 10945 fi 10946 10947 10948 # We look for the Boot JDK through various means, going from more certain to 10949 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 10950 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 10951 # must check if this is indeed valid; otherwise we'll continue looking. 10952 10953 # Test: Is bootjdk explicitely set by command line arguments? 10954 10955 if test "x$BOOT_JDK_FOUND" = xno; then 10956 # Now execute the test 10957 10958 if test "x$with_boot_jdk" != x; then 10959 BOOT_JDK=$with_boot_jdk 10960 BOOT_JDK_FOUND=maybe 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 10962 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 10963 fi 10964 10965 10966 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 10967 if test "x$BOOT_JDK_FOUND" = xmaybe; then 10968 # Do we have a bin/java? 10969 if test ! -x "$BOOT_JDK/bin/java"; then 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 10971 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 10972 BOOT_JDK_FOUND=no 10973 else 10974 # Do we have a bin/javac? 10975 if test ! -x "$BOOT_JDK/bin/javac"; then 10976 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 10977 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 10979 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 10980 BOOT_JDK_FOUND=no 10981 else 10982 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 10983 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 10985 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 10986 BOOT_JDK_FOUND=no 10987 else 10988 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 10989 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 10990 10991 # Extra M4 quote needed to protect [] in grep expression. 10992 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 10993 if test "x$FOUND_VERSION_78" = x; then 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 10995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 10997 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 10998 BOOT_JDK_FOUND=no 10999 else 11000 # We're done! :-) 11001 BOOT_JDK_FOUND=yes 11002 11003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11004 11005 # Input might be given as Windows format, start by converting to 11006 # unix format. 11007 path="$BOOT_JDK" 11008 new_path=`$CYGPATH -u "$path"` 11009 11010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11013 # "foo.exe" is OK but "foo" is an error. 11014 # 11015 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11016 # It is also a way to make sure we got the proper file name for the real test later on. 11017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11018 if test "x$test_shortpath" = x; then 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11020 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11021 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11022 fi 11023 11024 # Call helper function which possibly converts this using DOS-style short mode. 11025 # If so, the updated path is stored in $new_path. 11026 11027 input_path="$new_path" 11028 # Check if we need to convert this using DOS-style short mode. If the path 11029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11030 # take no chances and rewrite it. 11031 # Note: m4 eats our [], so we need to use [ and ] instead. 11032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11033 if test "x$has_forbidden_chars" != x; then 11034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11038 # Going to short mode and back again did indeed matter. Since short mode is 11039 # case insensitive, let's make it lowercase to improve readability. 11040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11041 # Now convert it back to Unix-stile (cygpath) 11042 input_path=`$CYGPATH -u "$shortmode_path"` 11043 new_path="$input_path" 11044 fi 11045 fi 11046 11047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11048 if test "x$test_cygdrive_prefix" = x; then 11049 # As a simple fix, exclude /usr/bin since it's not a real path. 11050 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11052 # a path prefixed by /cygdrive for fixpath to work. 11053 new_path="$CYGWIN_ROOT_PATH$input_path" 11054 fi 11055 fi 11056 11057 11058 if test "x$path" != "x$new_path"; then 11059 BOOT_JDK="$new_path" 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11061 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11062 fi 11063 11064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11065 11066 path="$BOOT_JDK" 11067 has_colon=`$ECHO $path | $GREP ^.:` 11068 new_path="$path" 11069 if test "x$has_colon" = x; then 11070 # Not in mixed or Windows style, start by that. 11071 new_path=`cmd //c echo $path` 11072 fi 11073 11074 11075 input_path="$new_path" 11076 # Check if we need to convert this using DOS-style short mode. If the path 11077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11078 # take no chances and rewrite it. 11079 # Note: m4 eats our [], so we need to use [ and ] instead. 11080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11081 if test "x$has_forbidden_chars" != x; then 11082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11084 fi 11085 11086 11087 windows_path="$new_path" 11088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11089 unix_path=`$CYGPATH -u "$windows_path"` 11090 new_path="$unix_path" 11091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11093 new_path="$unix_path" 11094 fi 11095 11096 if test "x$path" != "x$new_path"; then 11097 BOOT_JDK="$new_path" 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11099 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11100 fi 11101 11102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11104 11105 else 11106 # We're on a posix platform. Hooray! :) 11107 path="$BOOT_JDK" 11108 11109 if test ! -f "$path" && test ! -d "$path"; then 11110 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11111 fi 11112 11113 has_space=`$ECHO "$path" | $GREP " "` 11114 if test "x$has_space" != x; then 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11116 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11117 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11118 fi 11119 fi 11120 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11122 $as_echo_n "checking for Boot JDK... " >&6; } 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11124 $as_echo "$BOOT_JDK" >&6; } 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11126 $as_echo_n "checking Boot JDK version... " >&6; } 11127 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11129 $as_echo "$BOOT_JDK_VERSION" >&6; } 11130 fi # end check jdk version 11131 fi # end check rt.jar 11132 fi # end check javac 11133 fi # end check java 11134 fi # end check boot jdk found 11135 fi 11136 11137 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 11138 # Having specified an argument which is incorrect will produce an instant failure; 11139 # we should not go on looking 11140 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 11141 fi 11142 11143 # Test: Is bootjdk available from builddeps? 11144 11145 if test "x$BOOT_JDK_FOUND" = xno; then 11146 # Now execute the test 11147 11148 11149 11150 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 11151 # Source the builddeps file again, to make sure it uses the latest variables! 11152 . $builddepsfile 11153 # Look for a target and build machine specific resource! 11154 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 11155 if test "x$resource" = x; then 11156 # Ok, lets instead look for a target specific resource 11157 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 11158 fi 11159 if test "x$resource" = x; then 11160 # Ok, lets instead look for a build specific resource 11161 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 11162 fi 11163 if test "x$resource" = x; then 11164 # Ok, lets instead look for a generic resource 11165 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 11166 resource=${builddep_bootjdk} 11167 fi 11168 if test "x$resource" != x; then 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 11170 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 11171 # If the resource in the builddeps.conf file is an existing directory, 11172 # for example /java/linux/cups 11173 if test -d ${resource}; then 11174 depdir=${resource} 11175 else 11176 11177 # bootjdk is for example mymodule 11178 # $resource is for example libs/general/libmymod_1_2_3.zip 11179 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 11180 # $with_builddeps_dir is for example /localhome/builddeps 11181 # depdir is the name of the variable into which we store the depdir, eg MYMOD 11182 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 11183 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 11184 filename=`basename $resource` 11185 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 11186 filebase=${filename%%.*} 11187 extension=${filename#*.} 11188 installdir=$with_builddeps_dir/$filebase 11189 if test ! -f $installdir/$filename.unpacked; then 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 11191 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 11192 if test ! -d $installdir; then 11193 mkdir -p $installdir 11194 fi 11195 if test ! -d $installdir; then 11196 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 11197 fi 11198 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 11199 touch $tmpfile 11200 if test ! -f $tmpfile; then 11201 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 11202 fi 11203 11204 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 11205 # $tmpfile is the local file name for the downloaded file. 11206 VALID_TOOL=no 11207 if test "x$BDEPS_FTP" = xwget; then 11208 VALID_TOOL=yes 11209 wget -O $tmpfile $with_builddeps_server/$resource 11210 fi 11211 if test "x$BDEPS_FTP" = xlftp; then 11212 VALID_TOOL=yes 11213 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 11214 fi 11215 if test "x$BDEPS_FTP" = xftp; then 11216 VALID_TOOL=yes 11217 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 11218 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 11219 FTPUSERPWD=${FTPSERVER%%@*} 11220 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 11221 FTPUSER=${userpwd%%:*} 11222 FTPPWD=${userpwd#*@} 11223 FTPSERVER=${FTPSERVER#*@} 11224 else 11225 FTPUSER=ftp 11226 FTPPWD=ftp 11227 fi 11228 # the "pass" command does not work on some 11229 # ftp clients (read ftp.exe) but if it works, 11230 # passive mode is better! 11231 (\ 11232 echo "user $FTPUSER $FTPPWD" ;\ 11233 echo "pass" ;\ 11234 echo "bin" ;\ 11235 echo "get $FTPPATH $tmpfile" ;\ 11236 ) | ftp -in $FTPSERVER 11237 fi 11238 if test "x$VALID_TOOL" != xyes; then 11239 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 11240 fi 11241 11242 mv $tmpfile $installdir/$filename 11243 if test ! -s $installdir/$filename; then 11244 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 11245 fi 11246 case "$extension" in 11247 zip) echo "Unzipping $installdir/$filename..." 11248 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 11249 ;; 11250 tar.gz) echo "Untaring $installdir/$filename..." 11251 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 11252 ;; 11253 tgz) echo "Untaring $installdir/$filename..." 11254 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 11255 ;; 11256 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 11257 ;; 11258 esac 11259 fi 11260 if test -f $installdir/$filename.unpacked; then 11261 depdir=$installdir 11262 fi 11263 11264 fi 11265 # Source the builddeps file again, because in the previous command, the depdir 11266 # was updated to point at the current build dependency install directory. 11267 . $builddepsfile 11268 # Now extract variables from the builddeps.conf files. 11269 theroot=${builddep_bootjdk_ROOT} 11270 thecflags=${builddep_bootjdk_CFLAGS} 11271 thelibs=${builddep_bootjdk_LIBS} 11272 if test "x$depdir" = x; then 11273 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 11274 fi 11275 BOOT_JDK=$depdir 11276 if test "x$theroot" != x; then 11277 BOOT_JDK="$theroot" 11278 fi 11279 if test "x$thecflags" != x; then 11280 BOOT_JDK_CFLAGS="$thecflags" 11281 fi 11282 if test "x$thelibs" != x; then 11283 BOOT_JDK_LIBS="$thelibs" 11284 fi 11285 BOOT_JDK_FOUND=maybe 11286 else BOOT_JDK_FOUND=no 11287 11288 fi 11289 else BOOT_JDK_FOUND=no 11290 11291 fi 11292 11293 11294 11295 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 11296 if test "x$BOOT_JDK_FOUND" = xmaybe; then 11297 # Do we have a bin/java? 11298 if test ! -x "$BOOT_JDK/bin/java"; then 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 11300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 11301 BOOT_JDK_FOUND=no 11302 else 11303 # Do we have a bin/javac? 11304 if test ! -x "$BOOT_JDK/bin/javac"; then 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 11306 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 11308 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 11309 BOOT_JDK_FOUND=no 11310 else 11311 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 11312 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 11314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 11315 BOOT_JDK_FOUND=no 11316 else 11317 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 11318 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 11319 11320 # Extra M4 quote needed to protect [] in grep expression. 11321 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11322 if test "x$FOUND_VERSION_78" = x; then 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 11324 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 11326 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 11327 BOOT_JDK_FOUND=no 11328 else 11329 # We're done! :-) 11330 BOOT_JDK_FOUND=yes 11331 11332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11333 11334 # Input might be given as Windows format, start by converting to 11335 # unix format. 11336 path="$BOOT_JDK" 11337 new_path=`$CYGPATH -u "$path"` 11338 11339 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11340 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11341 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11342 # "foo.exe" is OK but "foo" is an error. 11343 # 11344 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11345 # It is also a way to make sure we got the proper file name for the real test later on. 11346 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11347 if test "x$test_shortpath" = x; then 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11349 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11350 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11351 fi 11352 11353 # Call helper function which possibly converts this using DOS-style short mode. 11354 # If so, the updated path is stored in $new_path. 11355 11356 input_path="$new_path" 11357 # Check if we need to convert this using DOS-style short mode. If the path 11358 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11359 # take no chances and rewrite it. 11360 # Note: m4 eats our [], so we need to use [ and ] instead. 11361 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11362 if test "x$has_forbidden_chars" != x; then 11363 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11364 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11365 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11366 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11367 # Going to short mode and back again did indeed matter. Since short mode is 11368 # case insensitive, let's make it lowercase to improve readability. 11369 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11370 # Now convert it back to Unix-stile (cygpath) 11371 input_path=`$CYGPATH -u "$shortmode_path"` 11372 new_path="$input_path" 11373 fi 11374 fi 11375 11376 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11377 if test "x$test_cygdrive_prefix" = x; then 11378 # As a simple fix, exclude /usr/bin since it's not a real path. 11379 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11380 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11381 # a path prefixed by /cygdrive for fixpath to work. 11382 new_path="$CYGWIN_ROOT_PATH$input_path" 11383 fi 11384 fi 11385 11386 11387 if test "x$path" != "x$new_path"; then 11388 BOOT_JDK="$new_path" 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11390 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11391 fi 11392 11393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11394 11395 path="$BOOT_JDK" 11396 has_colon=`$ECHO $path | $GREP ^.:` 11397 new_path="$path" 11398 if test "x$has_colon" = x; then 11399 # Not in mixed or Windows style, start by that. 11400 new_path=`cmd //c echo $path` 11401 fi 11402 11403 11404 input_path="$new_path" 11405 # Check if we need to convert this using DOS-style short mode. If the path 11406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11407 # take no chances and rewrite it. 11408 # Note: m4 eats our [], so we need to use [ and ] instead. 11409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11410 if test "x$has_forbidden_chars" != x; then 11411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11412 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11413 fi 11414 11415 11416 windows_path="$new_path" 11417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11418 unix_path=`$CYGPATH -u "$windows_path"` 11419 new_path="$unix_path" 11420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11422 new_path="$unix_path" 11423 fi 11424 11425 if test "x$path" != "x$new_path"; then 11426 BOOT_JDK="$new_path" 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11428 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11429 fi 11430 11431 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11432 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11433 11434 else 11435 # We're on a posix platform. Hooray! :) 11436 path="$BOOT_JDK" 11437 11438 if test ! -f "$path" && test ! -d "$path"; then 11439 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11440 fi 11441 11442 has_space=`$ECHO "$path" | $GREP " "` 11443 if test "x$has_space" != x; then 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11445 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11446 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11447 fi 11448 fi 11449 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11451 $as_echo_n "checking for Boot JDK... " >&6; } 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11453 $as_echo "$BOOT_JDK" >&6; } 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11455 $as_echo_n "checking Boot JDK version... " >&6; } 11456 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11458 $as_echo "$BOOT_JDK_VERSION" >&6; } 11459 fi # end check jdk version 11460 fi # end check rt.jar 11461 fi # end check javac 11462 fi # end check java 11463 fi # end check boot jdk found 11464 fi 11465 11466 11467 # Test: Is $JAVA_HOME set? 11468 11469 if test "x$BOOT_JDK_FOUND" = xno; then 11470 # Now execute the test 11471 11472 if test "x$JAVA_HOME" != x; then 11473 JAVA_HOME_PROCESSED="$JAVA_HOME" 11474 11475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11476 11477 # Input might be given as Windows format, start by converting to 11478 # unix format. 11479 path="$JAVA_HOME_PROCESSED" 11480 new_path=`$CYGPATH -u "$path"` 11481 11482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11485 # "foo.exe" is OK but "foo" is an error. 11486 # 11487 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11488 # It is also a way to make sure we got the proper file name for the real test later on. 11489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11490 if test "x$test_shortpath" = x; then 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 11492 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 11493 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 11494 fi 11495 11496 # Call helper function which possibly converts this using DOS-style short mode. 11497 # If so, the updated path is stored in $new_path. 11498 11499 input_path="$new_path" 11500 # Check if we need to convert this using DOS-style short mode. If the path 11501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11502 # take no chances and rewrite it. 11503 # Note: m4 eats our [], so we need to use [ and ] instead. 11504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11505 if test "x$has_forbidden_chars" != x; then 11506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11507 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11508 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11509 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11510 # Going to short mode and back again did indeed matter. Since short mode is 11511 # case insensitive, let's make it lowercase to improve readability. 11512 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11513 # Now convert it back to Unix-stile (cygpath) 11514 input_path=`$CYGPATH -u "$shortmode_path"` 11515 new_path="$input_path" 11516 fi 11517 fi 11518 11519 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11520 if test "x$test_cygdrive_prefix" = x; then 11521 # As a simple fix, exclude /usr/bin since it's not a real path. 11522 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11523 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11524 # a path prefixed by /cygdrive for fixpath to work. 11525 new_path="$CYGWIN_ROOT_PATH$input_path" 11526 fi 11527 fi 11528 11529 11530 if test "x$path" != "x$new_path"; then 11531 JAVA_HOME_PROCESSED="$new_path" 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 11533 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 11534 fi 11535 11536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11537 11538 path="$JAVA_HOME_PROCESSED" 11539 has_colon=`$ECHO $path | $GREP ^.:` 11540 new_path="$path" 11541 if test "x$has_colon" = x; then 11542 # Not in mixed or Windows style, start by that. 11543 new_path=`cmd //c echo $path` 11544 fi 11545 11546 11547 input_path="$new_path" 11548 # Check if we need to convert this using DOS-style short mode. If the path 11549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11550 # take no chances and rewrite it. 11551 # Note: m4 eats our [], so we need to use [ and ] instead. 11552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11553 if test "x$has_forbidden_chars" != x; then 11554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11556 fi 11557 11558 11559 windows_path="$new_path" 11560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11561 unix_path=`$CYGPATH -u "$windows_path"` 11562 new_path="$unix_path" 11563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11565 new_path="$unix_path" 11566 fi 11567 11568 if test "x$path" != "x$new_path"; then 11569 JAVA_HOME_PROCESSED="$new_path" 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 11571 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 11572 fi 11573 11574 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11575 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11576 11577 else 11578 # We're on a posix platform. Hooray! :) 11579 path="$JAVA_HOME_PROCESSED" 11580 11581 if test ! -f "$path" && test ! -d "$path"; then 11582 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 11583 fi 11584 11585 has_space=`$ECHO "$path" | $GREP " "` 11586 if test "x$has_space" != x; then 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 11588 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 11589 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11590 fi 11591 fi 11592 11593 if test ! -d "$JAVA_HOME_PROCESSED"; then 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 11595 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 11596 else 11597 # Aha, the user has set a JAVA_HOME 11598 # let us use that as the Boot JDK. 11599 BOOT_JDK="$JAVA_HOME_PROCESSED" 11600 BOOT_JDK_FOUND=maybe 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 11602 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 11603 fi 11604 fi 11605 11606 11607 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 11608 if test "x$BOOT_JDK_FOUND" = xmaybe; then 11609 # Do we have a bin/java? 11610 if test ! -x "$BOOT_JDK/bin/java"; then 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 11612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 11613 BOOT_JDK_FOUND=no 11614 else 11615 # Do we have a bin/javac? 11616 if test ! -x "$BOOT_JDK/bin/javac"; then 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 11618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 11620 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 11621 BOOT_JDK_FOUND=no 11622 else 11623 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 11624 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 11626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 11627 BOOT_JDK_FOUND=no 11628 else 11629 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 11630 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 11631 11632 # Extra M4 quote needed to protect [] in grep expression. 11633 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11634 if test "x$FOUND_VERSION_78" = x; then 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 11636 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 11638 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 11639 BOOT_JDK_FOUND=no 11640 else 11641 # We're done! :-) 11642 BOOT_JDK_FOUND=yes 11643 11644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11645 11646 # Input might be given as Windows format, start by converting to 11647 # unix format. 11648 path="$BOOT_JDK" 11649 new_path=`$CYGPATH -u "$path"` 11650 11651 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11652 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11653 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11654 # "foo.exe" is OK but "foo" is an error. 11655 # 11656 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11657 # It is also a way to make sure we got the proper file name for the real test later on. 11658 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11659 if test "x$test_shortpath" = x; then 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11661 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11662 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11663 fi 11664 11665 # Call helper function which possibly converts this using DOS-style short mode. 11666 # If so, the updated path is stored in $new_path. 11667 11668 input_path="$new_path" 11669 # Check if we need to convert this using DOS-style short mode. If the path 11670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11671 # take no chances and rewrite it. 11672 # Note: m4 eats our [], so we need to use [ and ] instead. 11673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11674 if test "x$has_forbidden_chars" != x; then 11675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11676 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11677 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11678 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11679 # Going to short mode and back again did indeed matter. Since short mode is 11680 # case insensitive, let's make it lowercase to improve readability. 11681 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11682 # Now convert it back to Unix-stile (cygpath) 11683 input_path=`$CYGPATH -u "$shortmode_path"` 11684 new_path="$input_path" 11685 fi 11686 fi 11687 11688 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11689 if test "x$test_cygdrive_prefix" = x; then 11690 # As a simple fix, exclude /usr/bin since it's not a real path. 11691 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11692 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11693 # a path prefixed by /cygdrive for fixpath to work. 11694 new_path="$CYGWIN_ROOT_PATH$input_path" 11695 fi 11696 fi 11697 11698 11699 if test "x$path" != "x$new_path"; then 11700 BOOT_JDK="$new_path" 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11702 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11703 fi 11704 11705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11706 11707 path="$BOOT_JDK" 11708 has_colon=`$ECHO $path | $GREP ^.:` 11709 new_path="$path" 11710 if test "x$has_colon" = x; then 11711 # Not in mixed or Windows style, start by that. 11712 new_path=`cmd //c echo $path` 11713 fi 11714 11715 11716 input_path="$new_path" 11717 # Check if we need to convert this using DOS-style short mode. If the path 11718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11719 # take no chances and rewrite it. 11720 # Note: m4 eats our [], so we need to use [ and ] instead. 11721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11722 if test "x$has_forbidden_chars" != x; then 11723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11725 fi 11726 11727 11728 windows_path="$new_path" 11729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11730 unix_path=`$CYGPATH -u "$windows_path"` 11731 new_path="$unix_path" 11732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11734 new_path="$unix_path" 11735 fi 11736 11737 if test "x$path" != "x$new_path"; then 11738 BOOT_JDK="$new_path" 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11740 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11741 fi 11742 11743 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11744 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11745 11746 else 11747 # We're on a posix platform. Hooray! :) 11748 path="$BOOT_JDK" 11749 11750 if test ! -f "$path" && test ! -d "$path"; then 11751 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11752 fi 11753 11754 has_space=`$ECHO "$path" | $GREP " "` 11755 if test "x$has_space" != x; then 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11757 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11758 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11759 fi 11760 fi 11761 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11763 $as_echo_n "checking for Boot JDK... " >&6; } 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11765 $as_echo "$BOOT_JDK" >&6; } 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11767 $as_echo_n "checking Boot JDK version... " >&6; } 11768 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11770 $as_echo "$BOOT_JDK_VERSION" >&6; } 11771 fi # end check jdk version 11772 fi # end check rt.jar 11773 fi # end check javac 11774 fi # end check java 11775 fi # end check boot jdk found 11776 fi 11777 11778 11779 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 11780 11781 if test "x$BOOT_JDK_FOUND" = xno; then 11782 # Now execute the test 11783 11784 if test -x /usr/libexec/java_home; then 11785 BOOT_JDK=`/usr/libexec/java_home` 11786 BOOT_JDK_FOUND=maybe 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 11788 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 11789 fi 11790 11791 11792 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 11793 if test "x$BOOT_JDK_FOUND" = xmaybe; then 11794 # Do we have a bin/java? 11795 if test ! -x "$BOOT_JDK/bin/java"; then 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 11797 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 11798 BOOT_JDK_FOUND=no 11799 else 11800 # Do we have a bin/javac? 11801 if test ! -x "$BOOT_JDK/bin/javac"; then 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 11803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 11805 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 11806 BOOT_JDK_FOUND=no 11807 else 11808 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 11809 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 11811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 11812 BOOT_JDK_FOUND=no 11813 else 11814 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 11815 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 11816 11817 # Extra M4 quote needed to protect [] in grep expression. 11818 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11819 if test "x$FOUND_VERSION_78" = x; then 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 11821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 11823 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 11824 BOOT_JDK_FOUND=no 11825 else 11826 # We're done! :-) 11827 BOOT_JDK_FOUND=yes 11828 11829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11830 11831 # Input might be given as Windows format, start by converting to 11832 # unix format. 11833 path="$BOOT_JDK" 11834 new_path=`$CYGPATH -u "$path"` 11835 11836 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11837 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11838 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11839 # "foo.exe" is OK but "foo" is an error. 11840 # 11841 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11842 # It is also a way to make sure we got the proper file name for the real test later on. 11843 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11844 if test "x$test_shortpath" = x; then 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11846 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11847 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11848 fi 11849 11850 # Call helper function which possibly converts this using DOS-style short mode. 11851 # If so, the updated path is stored in $new_path. 11852 11853 input_path="$new_path" 11854 # Check if we need to convert this using DOS-style short mode. If the path 11855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11856 # take no chances and rewrite it. 11857 # Note: m4 eats our [], so we need to use [ and ] instead. 11858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11859 if test "x$has_forbidden_chars" != x; then 11860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11861 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11862 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11863 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11864 # Going to short mode and back again did indeed matter. Since short mode is 11865 # case insensitive, let's make it lowercase to improve readability. 11866 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11867 # Now convert it back to Unix-stile (cygpath) 11868 input_path=`$CYGPATH -u "$shortmode_path"` 11869 new_path="$input_path" 11870 fi 11871 fi 11872 11873 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11874 if test "x$test_cygdrive_prefix" = x; then 11875 # As a simple fix, exclude /usr/bin since it's not a real path. 11876 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11877 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11878 # a path prefixed by /cygdrive for fixpath to work. 11879 new_path="$CYGWIN_ROOT_PATH$input_path" 11880 fi 11881 fi 11882 11883 11884 if test "x$path" != "x$new_path"; then 11885 BOOT_JDK="$new_path" 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11887 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11888 fi 11889 11890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11891 11892 path="$BOOT_JDK" 11893 has_colon=`$ECHO $path | $GREP ^.:` 11894 new_path="$path" 11895 if test "x$has_colon" = x; then 11896 # Not in mixed or Windows style, start by that. 11897 new_path=`cmd //c echo $path` 11898 fi 11899 11900 11901 input_path="$new_path" 11902 # Check if we need to convert this using DOS-style short mode. If the path 11903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11904 # take no chances and rewrite it. 11905 # Note: m4 eats our [], so we need to use [ and ] instead. 11906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11907 if test "x$has_forbidden_chars" != x; then 11908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11909 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11910 fi 11911 11912 11913 windows_path="$new_path" 11914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11915 unix_path=`$CYGPATH -u "$windows_path"` 11916 new_path="$unix_path" 11917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11919 new_path="$unix_path" 11920 fi 11921 11922 if test "x$path" != "x$new_path"; then 11923 BOOT_JDK="$new_path" 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11925 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11926 fi 11927 11928 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11929 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11930 11931 else 11932 # We're on a posix platform. Hooray! :) 11933 path="$BOOT_JDK" 11934 11935 if test ! -f "$path" && test ! -d "$path"; then 11936 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11937 fi 11938 11939 has_space=`$ECHO "$path" | $GREP " "` 11940 if test "x$has_space" != x; then 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11942 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11943 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11944 fi 11945 fi 11946 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11948 $as_echo_n "checking for Boot JDK... " >&6; } 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11950 $as_echo "$BOOT_JDK" >&6; } 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11952 $as_echo_n "checking Boot JDK version... " >&6; } 11953 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11955 $as_echo "$BOOT_JDK_VERSION" >&6; } 11956 fi # end check jdk version 11957 fi # end check rt.jar 11958 fi # end check javac 11959 fi # end check java 11960 fi # end check boot jdk found 11961 fi 11962 11963 11964 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 11965 11966 if test "x$BOOT_JDK_FOUND" = xno; then 11967 # Now execute the test 11968 11969 # Extract the first word of "javac", so it can be a program name with args. 11970 set dummy javac; ac_word=$2 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11972 $as_echo_n "checking for $ac_word... " >&6; } 11973 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975 else 11976 case $JAVAC_CHECK in 11977 [\\/]* | ?:[\\/]*) 11978 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 11979 ;; 11980 *) 11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11982 for as_dir in $PATH 11983 do 11984 IFS=$as_save_IFS 11985 test -z "$as_dir" && as_dir=. 11986 for ac_exec_ext in '' $ac_executable_extensions; do 11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11988 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11990 break 2 11991 fi 11992 done 11993 done 11994 IFS=$as_save_IFS 11995 11996 ;; 11997 esac 11998 fi 11999 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 12000 if test -n "$JAVAC_CHECK"; then 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 12002 $as_echo "$JAVAC_CHECK" >&6; } 12003 else 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12005 $as_echo "no" >&6; } 12006 fi 12007 12008 12009 # Extract the first word of "java", so it can be a program name with args. 12010 set dummy java; ac_word=$2 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12012 $as_echo_n "checking for $ac_word... " >&6; } 12013 if ${ac_cv_path_JAVA_CHECK+:} false; then : 12014 $as_echo_n "(cached) " >&6 12015 else 12016 case $JAVA_CHECK in 12017 [\\/]* | ?:[\\/]*) 12018 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 12019 ;; 12020 *) 12021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12022 for as_dir in $PATH 12023 do 12024 IFS=$as_save_IFS 12025 test -z "$as_dir" && as_dir=. 12026 for ac_exec_ext in '' $ac_executable_extensions; do 12027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12028 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12030 break 2 12031 fi 12032 done 12033 done 12034 IFS=$as_save_IFS 12035 12036 ;; 12037 esac 12038 fi 12039 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 12040 if test -n "$JAVA_CHECK"; then 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 12042 $as_echo "$JAVA_CHECK" >&6; } 12043 else 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12045 $as_echo "no" >&6; } 12046 fi 12047 12048 12049 BINARY="$JAVAC_CHECK" 12050 if test "x$JAVAC_CHECK" = x; then 12051 BINARY="$JAVA_CHECK" 12052 fi 12053 if test "x$BINARY" != x; then 12054 # So there is a java(c) binary, it might be part of a JDK. 12055 # Lets find the JDK/JRE directory by following symbolic links. 12056 # Linux/GNU systems often have links from /usr/bin/java to 12057 # /etc/alternatives/java to the real JDK binary. 12058 12059 if test "x$OPENJDK_BUILD_OS" != xwindows; then 12060 # Follow a chain of symbolic links. Use readlink 12061 # where it exists, else fall back to horribly 12062 # complicated shell code. 12063 if test "x$READLINK_TESTED" != yes; then 12064 # On MacOSX there is a readlink tool with a different 12065 # purpose than the GNU readlink tool. Check the found readlink. 12066 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 12067 if test "x$ISGNU" = x; then 12068 # A readlink that we do not know how to use. 12069 # Are there other non-GNU readlinks out there? 12070 READLINK_TESTED=yes 12071 READLINK= 12072 fi 12073 fi 12074 12075 if test "x$READLINK" != x; then 12076 BINARY=`$READLINK -f $BINARY` 12077 else 12078 # Save the current directory for restoring afterwards 12079 STARTDIR=$PWD 12080 COUNTER=0 12081 sym_link_dir=`$DIRNAME $BINARY` 12082 sym_link_file=`$BASENAME $BINARY` 12083 # Use the system pwd and not the shell builtin to resolve directory symlinks 12084 cd $sym_link_dir 12085 cd `$THEPWDCMD` 12086 sym_link_dir=`$THEPWDCMD` 12087 # Resolve file symlinks 12088 while test $COUNTER -lt 20; do 12089 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 12090 if test "x$ISLINK" == x; then 12091 # This is not a symbolic link! We are done! 12092 break 12093 fi 12094 # Again resolve directory symlinks since the target of the just found 12095 # link could be in a different directory 12096 cd `$DIRNAME $ISLINK` 12097 sym_link_dir=`$THEPWDCMD` 12098 sym_link_file=`$BASENAME $ISLINK` 12099 let COUNTER=COUNTER+1 12100 done 12101 cd $STARTDIR 12102 BINARY=$sym_link_dir/$sym_link_file 12103 fi 12104 fi 12105 12106 BOOT_JDK=`dirname "$BINARY"` 12107 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 12108 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 12109 # Looks like we found ourselves an JDK 12110 BOOT_JDK_FOUND=maybe 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 12112 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 12113 fi 12114 fi 12115 12116 12117 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12118 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12119 # Do we have a bin/java? 12120 if test ! -x "$BOOT_JDK/bin/java"; then 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12123 BOOT_JDK_FOUND=no 12124 else 12125 # Do we have a bin/javac? 12126 if test ! -x "$BOOT_JDK/bin/javac"; then 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12130 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12131 BOOT_JDK_FOUND=no 12132 else 12133 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12134 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12137 BOOT_JDK_FOUND=no 12138 else 12139 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12140 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12141 12142 # Extra M4 quote needed to protect [] in grep expression. 12143 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12144 if test "x$FOUND_VERSION_78" = x; then 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12146 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12148 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12149 BOOT_JDK_FOUND=no 12150 else 12151 # We're done! :-) 12152 BOOT_JDK_FOUND=yes 12153 12154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12155 12156 # Input might be given as Windows format, start by converting to 12157 # unix format. 12158 path="$BOOT_JDK" 12159 new_path=`$CYGPATH -u "$path"` 12160 12161 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12162 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12163 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12164 # "foo.exe" is OK but "foo" is an error. 12165 # 12166 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12167 # It is also a way to make sure we got the proper file name for the real test later on. 12168 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12169 if test "x$test_shortpath" = x; then 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12171 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12172 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12173 fi 12174 12175 # Call helper function which possibly converts this using DOS-style short mode. 12176 # If so, the updated path is stored in $new_path. 12177 12178 input_path="$new_path" 12179 # Check if we need to convert this using DOS-style short mode. If the path 12180 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12181 # take no chances and rewrite it. 12182 # Note: m4 eats our [], so we need to use [ and ] instead. 12183 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12184 if test "x$has_forbidden_chars" != x; then 12185 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12186 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12187 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12188 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12189 # Going to short mode and back again did indeed matter. Since short mode is 12190 # case insensitive, let's make it lowercase to improve readability. 12191 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12192 # Now convert it back to Unix-stile (cygpath) 12193 input_path=`$CYGPATH -u "$shortmode_path"` 12194 new_path="$input_path" 12195 fi 12196 fi 12197 12198 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12199 if test "x$test_cygdrive_prefix" = x; then 12200 # As a simple fix, exclude /usr/bin since it's not a real path. 12201 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12202 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12203 # a path prefixed by /cygdrive for fixpath to work. 12204 new_path="$CYGWIN_ROOT_PATH$input_path" 12205 fi 12206 fi 12207 12208 12209 if test "x$path" != "x$new_path"; then 12210 BOOT_JDK="$new_path" 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12212 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12213 fi 12214 12215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12216 12217 path="$BOOT_JDK" 12218 has_colon=`$ECHO $path | $GREP ^.:` 12219 new_path="$path" 12220 if test "x$has_colon" = x; then 12221 # Not in mixed or Windows style, start by that. 12222 new_path=`cmd //c echo $path` 12223 fi 12224 12225 12226 input_path="$new_path" 12227 # Check if we need to convert this using DOS-style short mode. If the path 12228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12229 # take no chances and rewrite it. 12230 # Note: m4 eats our [], so we need to use [ and ] instead. 12231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12232 if test "x$has_forbidden_chars" != x; then 12233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12234 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12235 fi 12236 12237 12238 windows_path="$new_path" 12239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12240 unix_path=`$CYGPATH -u "$windows_path"` 12241 new_path="$unix_path" 12242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12244 new_path="$unix_path" 12245 fi 12246 12247 if test "x$path" != "x$new_path"; then 12248 BOOT_JDK="$new_path" 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12250 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12251 fi 12252 12253 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12254 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12255 12256 else 12257 # We're on a posix platform. Hooray! :) 12258 path="$BOOT_JDK" 12259 12260 if test ! -f "$path" && test ! -d "$path"; then 12261 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12262 fi 12263 12264 has_space=`$ECHO "$path" | $GREP " "` 12265 if test "x$has_space" != x; then 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12267 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12268 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12269 fi 12270 fi 12271 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12273 $as_echo_n "checking for Boot JDK... " >&6; } 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12275 $as_echo "$BOOT_JDK" >&6; } 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12277 $as_echo_n "checking Boot JDK version... " >&6; } 12278 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12280 $as_echo "$BOOT_JDK_VERSION" >&6; } 12281 fi # end check jdk version 12282 fi # end check rt.jar 12283 fi # end check javac 12284 fi # end check java 12285 fi # end check boot jdk found 12286 fi 12287 12288 12289 # Test: Is there a JDK installed in default, well-known locations? 12290 12291 if test "x$BOOT_JDK_FOUND" = xno; then 12292 # Now execute the test 12293 12294 if test "x$OPENJDK_TARGET_OS" = xwindows; then 12295 12296 if test "x$BOOT_JDK_FOUND" = xno; then 12297 # Now execute the test 12298 12299 if test "x$ProgramW6432" != x; then 12300 VIRTUAL_DIR="$ProgramW6432/Java" 12301 12302 windows_path="$VIRTUAL_DIR" 12303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12304 unix_path=`$CYGPATH -u "$windows_path"` 12305 VIRTUAL_DIR="$unix_path" 12306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12308 VIRTUAL_DIR="$unix_path" 12309 fi 12310 12311 12312 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 12313 BOOT_JDK_SUFFIX="" 12314 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 12315 if test "x$ALL_JDKS_FOUND" != x; then 12316 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 12317 12318 if test "x$BOOT_JDK_FOUND" = xno; then 12319 # Now execute the test 12320 12321 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 12322 if test -d "$BOOT_JDK"; then 12323 BOOT_JDK_FOUND=maybe 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 12325 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 12326 fi 12327 12328 12329 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12330 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12331 # Do we have a bin/java? 12332 if test ! -x "$BOOT_JDK/bin/java"; then 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12335 BOOT_JDK_FOUND=no 12336 else 12337 # Do we have a bin/javac? 12338 if test ! -x "$BOOT_JDK/bin/javac"; then 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12340 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12342 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12343 BOOT_JDK_FOUND=no 12344 else 12345 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12346 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12348 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12349 BOOT_JDK_FOUND=no 12350 else 12351 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12352 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12353 12354 # Extra M4 quote needed to protect [] in grep expression. 12355 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12356 if test "x$FOUND_VERSION_78" = x; then 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12358 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12360 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12361 BOOT_JDK_FOUND=no 12362 else 12363 # We're done! :-) 12364 BOOT_JDK_FOUND=yes 12365 12366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12367 12368 # Input might be given as Windows format, start by converting to 12369 # unix format. 12370 path="$BOOT_JDK" 12371 new_path=`$CYGPATH -u "$path"` 12372 12373 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12374 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12375 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12376 # "foo.exe" is OK but "foo" is an error. 12377 # 12378 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12379 # It is also a way to make sure we got the proper file name for the real test later on. 12380 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12381 if test "x$test_shortpath" = x; then 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12383 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12384 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12385 fi 12386 12387 # Call helper function which possibly converts this using DOS-style short mode. 12388 # If so, the updated path is stored in $new_path. 12389 12390 input_path="$new_path" 12391 # Check if we need to convert this using DOS-style short mode. If the path 12392 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12393 # take no chances and rewrite it. 12394 # Note: m4 eats our [], so we need to use [ and ] instead. 12395 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12396 if test "x$has_forbidden_chars" != x; then 12397 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12398 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12399 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12400 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12401 # Going to short mode and back again did indeed matter. Since short mode is 12402 # case insensitive, let's make it lowercase to improve readability. 12403 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12404 # Now convert it back to Unix-stile (cygpath) 12405 input_path=`$CYGPATH -u "$shortmode_path"` 12406 new_path="$input_path" 12407 fi 12408 fi 12409 12410 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12411 if test "x$test_cygdrive_prefix" = x; then 12412 # As a simple fix, exclude /usr/bin since it's not a real path. 12413 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12414 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12415 # a path prefixed by /cygdrive for fixpath to work. 12416 new_path="$CYGWIN_ROOT_PATH$input_path" 12417 fi 12418 fi 12419 12420 12421 if test "x$path" != "x$new_path"; then 12422 BOOT_JDK="$new_path" 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12424 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12425 fi 12426 12427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12428 12429 path="$BOOT_JDK" 12430 has_colon=`$ECHO $path | $GREP ^.:` 12431 new_path="$path" 12432 if test "x$has_colon" = x; then 12433 # Not in mixed or Windows style, start by that. 12434 new_path=`cmd //c echo $path` 12435 fi 12436 12437 12438 input_path="$new_path" 12439 # Check if we need to convert this using DOS-style short mode. If the path 12440 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12441 # take no chances and rewrite it. 12442 # Note: m4 eats our [], so we need to use [ and ] instead. 12443 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12444 if test "x$has_forbidden_chars" != x; then 12445 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12446 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12447 fi 12448 12449 12450 windows_path="$new_path" 12451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12452 unix_path=`$CYGPATH -u "$windows_path"` 12453 new_path="$unix_path" 12454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12456 new_path="$unix_path" 12457 fi 12458 12459 if test "x$path" != "x$new_path"; then 12460 BOOT_JDK="$new_path" 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12462 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12463 fi 12464 12465 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12466 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12467 12468 else 12469 # We're on a posix platform. Hooray! :) 12470 path="$BOOT_JDK" 12471 12472 if test ! -f "$path" && test ! -d "$path"; then 12473 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12474 fi 12475 12476 has_space=`$ECHO "$path" | $GREP " "` 12477 if test "x$has_space" != x; then 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12479 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12480 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12481 fi 12482 fi 12483 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12485 $as_echo_n "checking for Boot JDK... " >&6; } 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12487 $as_echo "$BOOT_JDK" >&6; } 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12489 $as_echo_n "checking Boot JDK version... " >&6; } 12490 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12492 $as_echo "$BOOT_JDK_VERSION" >&6; } 12493 fi # end check jdk version 12494 fi # end check rt.jar 12495 fi # end check javac 12496 fi # end check java 12497 fi # end check boot jdk found 12498 fi 12499 12500 done 12501 fi 12502 12503 fi 12504 12505 12506 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12507 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12508 # Do we have a bin/java? 12509 if test ! -x "$BOOT_JDK/bin/java"; then 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12511 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12512 BOOT_JDK_FOUND=no 12513 else 12514 # Do we have a bin/javac? 12515 if test ! -x "$BOOT_JDK/bin/javac"; then 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12517 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12519 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12520 BOOT_JDK_FOUND=no 12521 else 12522 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12523 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12525 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12526 BOOT_JDK_FOUND=no 12527 else 12528 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12529 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12530 12531 # Extra M4 quote needed to protect [] in grep expression. 12532 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12533 if test "x$FOUND_VERSION_78" = x; then 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12535 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12537 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12538 BOOT_JDK_FOUND=no 12539 else 12540 # We're done! :-) 12541 BOOT_JDK_FOUND=yes 12542 12543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12544 12545 # Input might be given as Windows format, start by converting to 12546 # unix format. 12547 path="$BOOT_JDK" 12548 new_path=`$CYGPATH -u "$path"` 12549 12550 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12551 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12552 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12553 # "foo.exe" is OK but "foo" is an error. 12554 # 12555 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12556 # It is also a way to make sure we got the proper file name for the real test later on. 12557 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12558 if test "x$test_shortpath" = x; then 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12560 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12561 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12562 fi 12563 12564 # Call helper function which possibly converts this using DOS-style short mode. 12565 # If so, the updated path is stored in $new_path. 12566 12567 input_path="$new_path" 12568 # Check if we need to convert this using DOS-style short mode. If the path 12569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12570 # take no chances and rewrite it. 12571 # Note: m4 eats our [], so we need to use [ and ] instead. 12572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12573 if test "x$has_forbidden_chars" != x; then 12574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12575 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12576 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12577 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12578 # Going to short mode and back again did indeed matter. Since short mode is 12579 # case insensitive, let's make it lowercase to improve readability. 12580 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12581 # Now convert it back to Unix-stile (cygpath) 12582 input_path=`$CYGPATH -u "$shortmode_path"` 12583 new_path="$input_path" 12584 fi 12585 fi 12586 12587 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12588 if test "x$test_cygdrive_prefix" = x; then 12589 # As a simple fix, exclude /usr/bin since it's not a real path. 12590 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12591 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12592 # a path prefixed by /cygdrive for fixpath to work. 12593 new_path="$CYGWIN_ROOT_PATH$input_path" 12594 fi 12595 fi 12596 12597 12598 if test "x$path" != "x$new_path"; then 12599 BOOT_JDK="$new_path" 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12601 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12602 fi 12603 12604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12605 12606 path="$BOOT_JDK" 12607 has_colon=`$ECHO $path | $GREP ^.:` 12608 new_path="$path" 12609 if test "x$has_colon" = x; then 12610 # Not in mixed or Windows style, start by that. 12611 new_path=`cmd //c echo $path` 12612 fi 12613 12614 12615 input_path="$new_path" 12616 # Check if we need to convert this using DOS-style short mode. If the path 12617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12618 # take no chances and rewrite it. 12619 # Note: m4 eats our [], so we need to use [ and ] instead. 12620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12621 if test "x$has_forbidden_chars" != x; then 12622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12623 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12624 fi 12625 12626 12627 windows_path="$new_path" 12628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12629 unix_path=`$CYGPATH -u "$windows_path"` 12630 new_path="$unix_path" 12631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12633 new_path="$unix_path" 12634 fi 12635 12636 if test "x$path" != "x$new_path"; then 12637 BOOT_JDK="$new_path" 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12639 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12640 fi 12641 12642 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12643 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12644 12645 else 12646 # We're on a posix platform. Hooray! :) 12647 path="$BOOT_JDK" 12648 12649 if test ! -f "$path" && test ! -d "$path"; then 12650 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12651 fi 12652 12653 has_space=`$ECHO "$path" | $GREP " "` 12654 if test "x$has_space" != x; then 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12657 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12658 fi 12659 fi 12660 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12662 $as_echo_n "checking for Boot JDK... " >&6; } 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12664 $as_echo "$BOOT_JDK" >&6; } 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12666 $as_echo_n "checking Boot JDK version... " >&6; } 12667 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12669 $as_echo "$BOOT_JDK_VERSION" >&6; } 12670 fi # end check jdk version 12671 fi # end check rt.jar 12672 fi # end check javac 12673 fi # end check java 12674 fi # end check boot jdk found 12675 fi 12676 12677 12678 if test "x$BOOT_JDK_FOUND" = xno; then 12679 # Now execute the test 12680 12681 if test "x$PROGRAMW6432" != x; then 12682 VIRTUAL_DIR="$PROGRAMW6432/Java" 12683 12684 windows_path="$VIRTUAL_DIR" 12685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12686 unix_path=`$CYGPATH -u "$windows_path"` 12687 VIRTUAL_DIR="$unix_path" 12688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12690 VIRTUAL_DIR="$unix_path" 12691 fi 12692 12693 12694 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 12695 BOOT_JDK_SUFFIX="" 12696 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 12697 if test "x$ALL_JDKS_FOUND" != x; then 12698 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 12699 12700 if test "x$BOOT_JDK_FOUND" = xno; then 12701 # Now execute the test 12702 12703 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 12704 if test -d "$BOOT_JDK"; then 12705 BOOT_JDK_FOUND=maybe 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 12707 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 12708 fi 12709 12710 12711 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12712 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12713 # Do we have a bin/java? 12714 if test ! -x "$BOOT_JDK/bin/java"; then 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12716 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12717 BOOT_JDK_FOUND=no 12718 else 12719 # Do we have a bin/javac? 12720 if test ! -x "$BOOT_JDK/bin/javac"; then 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12722 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12724 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12725 BOOT_JDK_FOUND=no 12726 else 12727 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12728 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12731 BOOT_JDK_FOUND=no 12732 else 12733 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12734 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12735 12736 # Extra M4 quote needed to protect [] in grep expression. 12737 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12738 if test "x$FOUND_VERSION_78" = x; then 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12742 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12743 BOOT_JDK_FOUND=no 12744 else 12745 # We're done! :-) 12746 BOOT_JDK_FOUND=yes 12747 12748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12749 12750 # Input might be given as Windows format, start by converting to 12751 # unix format. 12752 path="$BOOT_JDK" 12753 new_path=`$CYGPATH -u "$path"` 12754 12755 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12756 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12757 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12758 # "foo.exe" is OK but "foo" is an error. 12759 # 12760 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12761 # It is also a way to make sure we got the proper file name for the real test later on. 12762 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12763 if test "x$test_shortpath" = x; then 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12765 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12766 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12767 fi 12768 12769 # Call helper function which possibly converts this using DOS-style short mode. 12770 # If so, the updated path is stored in $new_path. 12771 12772 input_path="$new_path" 12773 # Check if we need to convert this using DOS-style short mode. If the path 12774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12775 # take no chances and rewrite it. 12776 # Note: m4 eats our [], so we need to use [ and ] instead. 12777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12778 if test "x$has_forbidden_chars" != x; then 12779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12780 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12781 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12782 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12783 # Going to short mode and back again did indeed matter. Since short mode is 12784 # case insensitive, let's make it lowercase to improve readability. 12785 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12786 # Now convert it back to Unix-stile (cygpath) 12787 input_path=`$CYGPATH -u "$shortmode_path"` 12788 new_path="$input_path" 12789 fi 12790 fi 12791 12792 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12793 if test "x$test_cygdrive_prefix" = x; then 12794 # As a simple fix, exclude /usr/bin since it's not a real path. 12795 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12796 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12797 # a path prefixed by /cygdrive for fixpath to work. 12798 new_path="$CYGWIN_ROOT_PATH$input_path" 12799 fi 12800 fi 12801 12802 12803 if test "x$path" != "x$new_path"; then 12804 BOOT_JDK="$new_path" 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12806 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12807 fi 12808 12809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12810 12811 path="$BOOT_JDK" 12812 has_colon=`$ECHO $path | $GREP ^.:` 12813 new_path="$path" 12814 if test "x$has_colon" = x; then 12815 # Not in mixed or Windows style, start by that. 12816 new_path=`cmd //c echo $path` 12817 fi 12818 12819 12820 input_path="$new_path" 12821 # Check if we need to convert this using DOS-style short mode. If the path 12822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12823 # take no chances and rewrite it. 12824 # Note: m4 eats our [], so we need to use [ and ] instead. 12825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12826 if test "x$has_forbidden_chars" != x; then 12827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12828 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12829 fi 12830 12831 12832 windows_path="$new_path" 12833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12834 unix_path=`$CYGPATH -u "$windows_path"` 12835 new_path="$unix_path" 12836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12837 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12838 new_path="$unix_path" 12839 fi 12840 12841 if test "x$path" != "x$new_path"; then 12842 BOOT_JDK="$new_path" 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12844 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12845 fi 12846 12847 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12848 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12849 12850 else 12851 # We're on a posix platform. Hooray! :) 12852 path="$BOOT_JDK" 12853 12854 if test ! -f "$path" && test ! -d "$path"; then 12855 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12856 fi 12857 12858 has_space=`$ECHO "$path" | $GREP " "` 12859 if test "x$has_space" != x; then 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12862 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12863 fi 12864 fi 12865 12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12867 $as_echo_n "checking for Boot JDK... " >&6; } 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12869 $as_echo "$BOOT_JDK" >&6; } 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12871 $as_echo_n "checking Boot JDK version... " >&6; } 12872 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12874 $as_echo "$BOOT_JDK_VERSION" >&6; } 12875 fi # end check jdk version 12876 fi # end check rt.jar 12877 fi # end check javac 12878 fi # end check java 12879 fi # end check boot jdk found 12880 fi 12881 12882 done 12883 fi 12884 12885 fi 12886 12887 12888 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12889 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12890 # Do we have a bin/java? 12891 if test ! -x "$BOOT_JDK/bin/java"; then 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12893 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12894 BOOT_JDK_FOUND=no 12895 else 12896 # Do we have a bin/javac? 12897 if test ! -x "$BOOT_JDK/bin/javac"; then 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12899 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12901 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12902 BOOT_JDK_FOUND=no 12903 else 12904 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12905 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12907 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12908 BOOT_JDK_FOUND=no 12909 else 12910 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12911 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12912 12913 # Extra M4 quote needed to protect [] in grep expression. 12914 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12915 if test "x$FOUND_VERSION_78" = x; then 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12917 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12919 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12920 BOOT_JDK_FOUND=no 12921 else 12922 # We're done! :-) 12923 BOOT_JDK_FOUND=yes 12924 12925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12926 12927 # Input might be given as Windows format, start by converting to 12928 # unix format. 12929 path="$BOOT_JDK" 12930 new_path=`$CYGPATH -u "$path"` 12931 12932 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12933 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12934 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12935 # "foo.exe" is OK but "foo" is an error. 12936 # 12937 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12938 # It is also a way to make sure we got the proper file name for the real test later on. 12939 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12940 if test "x$test_shortpath" = x; then 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12942 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12943 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12944 fi 12945 12946 # Call helper function which possibly converts this using DOS-style short mode. 12947 # If so, the updated path is stored in $new_path. 12948 12949 input_path="$new_path" 12950 # Check if we need to convert this using DOS-style short mode. If the path 12951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12952 # take no chances and rewrite it. 12953 # Note: m4 eats our [], so we need to use [ and ] instead. 12954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12955 if test "x$has_forbidden_chars" != x; then 12956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12957 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12958 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12959 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12960 # Going to short mode and back again did indeed matter. Since short mode is 12961 # case insensitive, let's make it lowercase to improve readability. 12962 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12963 # Now convert it back to Unix-stile (cygpath) 12964 input_path=`$CYGPATH -u "$shortmode_path"` 12965 new_path="$input_path" 12966 fi 12967 fi 12968 12969 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12970 if test "x$test_cygdrive_prefix" = x; then 12971 # As a simple fix, exclude /usr/bin since it's not a real path. 12972 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12973 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12974 # a path prefixed by /cygdrive for fixpath to work. 12975 new_path="$CYGWIN_ROOT_PATH$input_path" 12976 fi 12977 fi 12978 12979 12980 if test "x$path" != "x$new_path"; then 12981 BOOT_JDK="$new_path" 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12983 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12984 fi 12985 12986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12987 12988 path="$BOOT_JDK" 12989 has_colon=`$ECHO $path | $GREP ^.:` 12990 new_path="$path" 12991 if test "x$has_colon" = x; then 12992 # Not in mixed or Windows style, start by that. 12993 new_path=`cmd //c echo $path` 12994 fi 12995 12996 12997 input_path="$new_path" 12998 # Check if we need to convert this using DOS-style short mode. If the path 12999 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13000 # take no chances and rewrite it. 13001 # Note: m4 eats our [], so we need to use [ and ] instead. 13002 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13003 if test "x$has_forbidden_chars" != x; then 13004 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13005 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13006 fi 13007 13008 13009 windows_path="$new_path" 13010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13011 unix_path=`$CYGPATH -u "$windows_path"` 13012 new_path="$unix_path" 13013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13015 new_path="$unix_path" 13016 fi 13017 13018 if test "x$path" != "x$new_path"; then 13019 BOOT_JDK="$new_path" 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13021 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13022 fi 13023 13024 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13025 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13026 13027 else 13028 # We're on a posix platform. Hooray! :) 13029 path="$BOOT_JDK" 13030 13031 if test ! -f "$path" && test ! -d "$path"; then 13032 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13033 fi 13034 13035 has_space=`$ECHO "$path" | $GREP " "` 13036 if test "x$has_space" != x; then 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13038 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13039 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13040 fi 13041 fi 13042 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13044 $as_echo_n "checking for Boot JDK... " >&6; } 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13046 $as_echo "$BOOT_JDK" >&6; } 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13048 $as_echo_n "checking Boot JDK version... " >&6; } 13049 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13051 $as_echo "$BOOT_JDK_VERSION" >&6; } 13052 fi # end check jdk version 13053 fi # end check rt.jar 13054 fi # end check javac 13055 fi # end check java 13056 fi # end check boot jdk found 13057 fi 13058 13059 13060 if test "x$BOOT_JDK_FOUND" = xno; then 13061 # Now execute the test 13062 13063 if test "x$PROGRAMFILES" != x; then 13064 VIRTUAL_DIR="$PROGRAMFILES/Java" 13065 13066 windows_path="$VIRTUAL_DIR" 13067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13068 unix_path=`$CYGPATH -u "$windows_path"` 13069 VIRTUAL_DIR="$unix_path" 13070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13072 VIRTUAL_DIR="$unix_path" 13073 fi 13074 13075 13076 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 13077 BOOT_JDK_SUFFIX="" 13078 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 13079 if test "x$ALL_JDKS_FOUND" != x; then 13080 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 13081 13082 if test "x$BOOT_JDK_FOUND" = xno; then 13083 # Now execute the test 13084 13085 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 13086 if test -d "$BOOT_JDK"; then 13087 BOOT_JDK_FOUND=maybe 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 13089 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 13090 fi 13091 13092 13093 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13094 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13095 # Do we have a bin/java? 13096 if test ! -x "$BOOT_JDK/bin/java"; then 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13098 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13099 BOOT_JDK_FOUND=no 13100 else 13101 # Do we have a bin/javac? 13102 if test ! -x "$BOOT_JDK/bin/javac"; then 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13104 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13106 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13107 BOOT_JDK_FOUND=no 13108 else 13109 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13110 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13113 BOOT_JDK_FOUND=no 13114 else 13115 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13116 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13117 13118 # Extra M4 quote needed to protect [] in grep expression. 13119 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13120 if test "x$FOUND_VERSION_78" = x; then 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13124 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13125 BOOT_JDK_FOUND=no 13126 else 13127 # We're done! :-) 13128 BOOT_JDK_FOUND=yes 13129 13130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13131 13132 # Input might be given as Windows format, start by converting to 13133 # unix format. 13134 path="$BOOT_JDK" 13135 new_path=`$CYGPATH -u "$path"` 13136 13137 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13138 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13139 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13140 # "foo.exe" is OK but "foo" is an error. 13141 # 13142 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13143 # It is also a way to make sure we got the proper file name for the real test later on. 13144 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13145 if test "x$test_shortpath" = x; then 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13147 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13148 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13149 fi 13150 13151 # Call helper function which possibly converts this using DOS-style short mode. 13152 # If so, the updated path is stored in $new_path. 13153 13154 input_path="$new_path" 13155 # Check if we need to convert this using DOS-style short mode. If the path 13156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13157 # take no chances and rewrite it. 13158 # Note: m4 eats our [], so we need to use [ and ] instead. 13159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13160 if test "x$has_forbidden_chars" != x; then 13161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13162 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13163 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13164 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13165 # Going to short mode and back again did indeed matter. Since short mode is 13166 # case insensitive, let's make it lowercase to improve readability. 13167 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13168 # Now convert it back to Unix-stile (cygpath) 13169 input_path=`$CYGPATH -u "$shortmode_path"` 13170 new_path="$input_path" 13171 fi 13172 fi 13173 13174 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13175 if test "x$test_cygdrive_prefix" = x; then 13176 # As a simple fix, exclude /usr/bin since it's not a real path. 13177 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13178 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13179 # a path prefixed by /cygdrive for fixpath to work. 13180 new_path="$CYGWIN_ROOT_PATH$input_path" 13181 fi 13182 fi 13183 13184 13185 if test "x$path" != "x$new_path"; then 13186 BOOT_JDK="$new_path" 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13188 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13189 fi 13190 13191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13192 13193 path="$BOOT_JDK" 13194 has_colon=`$ECHO $path | $GREP ^.:` 13195 new_path="$path" 13196 if test "x$has_colon" = x; then 13197 # Not in mixed or Windows style, start by that. 13198 new_path=`cmd //c echo $path` 13199 fi 13200 13201 13202 input_path="$new_path" 13203 # Check if we need to convert this using DOS-style short mode. If the path 13204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13205 # take no chances and rewrite it. 13206 # Note: m4 eats our [], so we need to use [ and ] instead. 13207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13208 if test "x$has_forbidden_chars" != x; then 13209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13210 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13211 fi 13212 13213 13214 windows_path="$new_path" 13215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13216 unix_path=`$CYGPATH -u "$windows_path"` 13217 new_path="$unix_path" 13218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13220 new_path="$unix_path" 13221 fi 13222 13223 if test "x$path" != "x$new_path"; then 13224 BOOT_JDK="$new_path" 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13226 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13227 fi 13228 13229 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13230 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13231 13232 else 13233 # We're on a posix platform. Hooray! :) 13234 path="$BOOT_JDK" 13235 13236 if test ! -f "$path" && test ! -d "$path"; then 13237 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13238 fi 13239 13240 has_space=`$ECHO "$path" | $GREP " "` 13241 if test "x$has_space" != x; then 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13243 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13244 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13245 fi 13246 fi 13247 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13249 $as_echo_n "checking for Boot JDK... " >&6; } 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13251 $as_echo "$BOOT_JDK" >&6; } 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13253 $as_echo_n "checking Boot JDK version... " >&6; } 13254 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13256 $as_echo "$BOOT_JDK_VERSION" >&6; } 13257 fi # end check jdk version 13258 fi # end check rt.jar 13259 fi # end check javac 13260 fi # end check java 13261 fi # end check boot jdk found 13262 fi 13263 13264 done 13265 fi 13266 13267 fi 13268 13269 13270 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13271 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13272 # Do we have a bin/java? 13273 if test ! -x "$BOOT_JDK/bin/java"; then 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13275 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13276 BOOT_JDK_FOUND=no 13277 else 13278 # Do we have a bin/javac? 13279 if test ! -x "$BOOT_JDK/bin/javac"; then 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13281 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13283 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13284 BOOT_JDK_FOUND=no 13285 else 13286 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13287 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13289 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13290 BOOT_JDK_FOUND=no 13291 else 13292 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13293 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13294 13295 # Extra M4 quote needed to protect [] in grep expression. 13296 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13297 if test "x$FOUND_VERSION_78" = x; then 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13299 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13301 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13302 BOOT_JDK_FOUND=no 13303 else 13304 # We're done! :-) 13305 BOOT_JDK_FOUND=yes 13306 13307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13308 13309 # Input might be given as Windows format, start by converting to 13310 # unix format. 13311 path="$BOOT_JDK" 13312 new_path=`$CYGPATH -u "$path"` 13313 13314 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13315 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13316 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13317 # "foo.exe" is OK but "foo" is an error. 13318 # 13319 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13320 # It is also a way to make sure we got the proper file name for the real test later on. 13321 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13322 if test "x$test_shortpath" = x; then 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13324 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13325 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13326 fi 13327 13328 # Call helper function which possibly converts this using DOS-style short mode. 13329 # If so, the updated path is stored in $new_path. 13330 13331 input_path="$new_path" 13332 # Check if we need to convert this using DOS-style short mode. If the path 13333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13334 # take no chances and rewrite it. 13335 # Note: m4 eats our [], so we need to use [ and ] instead. 13336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13337 if test "x$has_forbidden_chars" != x; then 13338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13339 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13340 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13341 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13342 # Going to short mode and back again did indeed matter. Since short mode is 13343 # case insensitive, let's make it lowercase to improve readability. 13344 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13345 # Now convert it back to Unix-stile (cygpath) 13346 input_path=`$CYGPATH -u "$shortmode_path"` 13347 new_path="$input_path" 13348 fi 13349 fi 13350 13351 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13352 if test "x$test_cygdrive_prefix" = x; then 13353 # As a simple fix, exclude /usr/bin since it's not a real path. 13354 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13355 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13356 # a path prefixed by /cygdrive for fixpath to work. 13357 new_path="$CYGWIN_ROOT_PATH$input_path" 13358 fi 13359 fi 13360 13361 13362 if test "x$path" != "x$new_path"; then 13363 BOOT_JDK="$new_path" 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13365 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13366 fi 13367 13368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13369 13370 path="$BOOT_JDK" 13371 has_colon=`$ECHO $path | $GREP ^.:` 13372 new_path="$path" 13373 if test "x$has_colon" = x; then 13374 # Not in mixed or Windows style, start by that. 13375 new_path=`cmd //c echo $path` 13376 fi 13377 13378 13379 input_path="$new_path" 13380 # Check if we need to convert this using DOS-style short mode. If the path 13381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13382 # take no chances and rewrite it. 13383 # Note: m4 eats our [], so we need to use [ and ] instead. 13384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13385 if test "x$has_forbidden_chars" != x; then 13386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13387 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13388 fi 13389 13390 13391 windows_path="$new_path" 13392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13393 unix_path=`$CYGPATH -u "$windows_path"` 13394 new_path="$unix_path" 13395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13397 new_path="$unix_path" 13398 fi 13399 13400 if test "x$path" != "x$new_path"; then 13401 BOOT_JDK="$new_path" 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13403 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13404 fi 13405 13406 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13407 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13408 13409 else 13410 # We're on a posix platform. Hooray! :) 13411 path="$BOOT_JDK" 13412 13413 if test ! -f "$path" && test ! -d "$path"; then 13414 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13415 fi 13416 13417 has_space=`$ECHO "$path" | $GREP " "` 13418 if test "x$has_space" != x; then 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13420 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13421 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13422 fi 13423 fi 13424 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13426 $as_echo_n "checking for Boot JDK... " >&6; } 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13428 $as_echo "$BOOT_JDK" >&6; } 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13430 $as_echo_n "checking Boot JDK version... " >&6; } 13431 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13433 $as_echo "$BOOT_JDK_VERSION" >&6; } 13434 fi # end check jdk version 13435 fi # end check rt.jar 13436 fi # end check javac 13437 fi # end check java 13438 fi # end check boot jdk found 13439 fi 13440 13441 13442 if test "x$BOOT_JDK_FOUND" = xno; then 13443 # Now execute the test 13444 13445 if test "x$ProgramFiles" != x; then 13446 VIRTUAL_DIR="$ProgramFiles/Java" 13447 13448 windows_path="$VIRTUAL_DIR" 13449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13450 unix_path=`$CYGPATH -u "$windows_path"` 13451 VIRTUAL_DIR="$unix_path" 13452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13454 VIRTUAL_DIR="$unix_path" 13455 fi 13456 13457 13458 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 13459 BOOT_JDK_SUFFIX="" 13460 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 13461 if test "x$ALL_JDKS_FOUND" != x; then 13462 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 13463 13464 if test "x$BOOT_JDK_FOUND" = xno; then 13465 # Now execute the test 13466 13467 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 13468 if test -d "$BOOT_JDK"; then 13469 BOOT_JDK_FOUND=maybe 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 13471 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 13472 fi 13473 13474 13475 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13476 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13477 # Do we have a bin/java? 13478 if test ! -x "$BOOT_JDK/bin/java"; then 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13480 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13481 BOOT_JDK_FOUND=no 13482 else 13483 # Do we have a bin/javac? 13484 if test ! -x "$BOOT_JDK/bin/javac"; then 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13486 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13488 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13489 BOOT_JDK_FOUND=no 13490 else 13491 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13492 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13495 BOOT_JDK_FOUND=no 13496 else 13497 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13498 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13499 13500 # Extra M4 quote needed to protect [] in grep expression. 13501 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13502 if test "x$FOUND_VERSION_78" = x; then 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13506 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13507 BOOT_JDK_FOUND=no 13508 else 13509 # We're done! :-) 13510 BOOT_JDK_FOUND=yes 13511 13512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13513 13514 # Input might be given as Windows format, start by converting to 13515 # unix format. 13516 path="$BOOT_JDK" 13517 new_path=`$CYGPATH -u "$path"` 13518 13519 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13520 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13521 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13522 # "foo.exe" is OK but "foo" is an error. 13523 # 13524 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13525 # It is also a way to make sure we got the proper file name for the real test later on. 13526 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13527 if test "x$test_shortpath" = x; then 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13529 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13530 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13531 fi 13532 13533 # Call helper function which possibly converts this using DOS-style short mode. 13534 # If so, the updated path is stored in $new_path. 13535 13536 input_path="$new_path" 13537 # Check if we need to convert this using DOS-style short mode. If the path 13538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13539 # take no chances and rewrite it. 13540 # Note: m4 eats our [], so we need to use [ and ] instead. 13541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13542 if test "x$has_forbidden_chars" != x; then 13543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13544 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13545 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13546 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13547 # Going to short mode and back again did indeed matter. Since short mode is 13548 # case insensitive, let's make it lowercase to improve readability. 13549 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13550 # Now convert it back to Unix-stile (cygpath) 13551 input_path=`$CYGPATH -u "$shortmode_path"` 13552 new_path="$input_path" 13553 fi 13554 fi 13555 13556 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13557 if test "x$test_cygdrive_prefix" = x; then 13558 # As a simple fix, exclude /usr/bin since it's not a real path. 13559 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13560 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13561 # a path prefixed by /cygdrive for fixpath to work. 13562 new_path="$CYGWIN_ROOT_PATH$input_path" 13563 fi 13564 fi 13565 13566 13567 if test "x$path" != "x$new_path"; then 13568 BOOT_JDK="$new_path" 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13570 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13571 fi 13572 13573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13574 13575 path="$BOOT_JDK" 13576 has_colon=`$ECHO $path | $GREP ^.:` 13577 new_path="$path" 13578 if test "x$has_colon" = x; then 13579 # Not in mixed or Windows style, start by that. 13580 new_path=`cmd //c echo $path` 13581 fi 13582 13583 13584 input_path="$new_path" 13585 # Check if we need to convert this using DOS-style short mode. If the path 13586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13587 # take no chances and rewrite it. 13588 # Note: m4 eats our [], so we need to use [ and ] instead. 13589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13590 if test "x$has_forbidden_chars" != x; then 13591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13592 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13593 fi 13594 13595 13596 windows_path="$new_path" 13597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13598 unix_path=`$CYGPATH -u "$windows_path"` 13599 new_path="$unix_path" 13600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13602 new_path="$unix_path" 13603 fi 13604 13605 if test "x$path" != "x$new_path"; then 13606 BOOT_JDK="$new_path" 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13608 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13609 fi 13610 13611 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13612 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13613 13614 else 13615 # We're on a posix platform. Hooray! :) 13616 path="$BOOT_JDK" 13617 13618 if test ! -f "$path" && test ! -d "$path"; then 13619 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13620 fi 13621 13622 has_space=`$ECHO "$path" | $GREP " "` 13623 if test "x$has_space" != x; then 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13625 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13626 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13627 fi 13628 fi 13629 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13631 $as_echo_n "checking for Boot JDK... " >&6; } 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13633 $as_echo "$BOOT_JDK" >&6; } 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13635 $as_echo_n "checking Boot JDK version... " >&6; } 13636 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13638 $as_echo "$BOOT_JDK_VERSION" >&6; } 13639 fi # end check jdk version 13640 fi # end check rt.jar 13641 fi # end check javac 13642 fi # end check java 13643 fi # end check boot jdk found 13644 fi 13645 13646 done 13647 fi 13648 13649 fi 13650 13651 13652 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13653 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13654 # Do we have a bin/java? 13655 if test ! -x "$BOOT_JDK/bin/java"; then 13656 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13657 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13658 BOOT_JDK_FOUND=no 13659 else 13660 # Do we have a bin/javac? 13661 if test ! -x "$BOOT_JDK/bin/javac"; then 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13665 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13666 BOOT_JDK_FOUND=no 13667 else 13668 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13669 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13671 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13672 BOOT_JDK_FOUND=no 13673 else 13674 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13675 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13676 13677 # Extra M4 quote needed to protect [] in grep expression. 13678 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13679 if test "x$FOUND_VERSION_78" = x; then 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13683 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13684 BOOT_JDK_FOUND=no 13685 else 13686 # We're done! :-) 13687 BOOT_JDK_FOUND=yes 13688 13689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13690 13691 # Input might be given as Windows format, start by converting to 13692 # unix format. 13693 path="$BOOT_JDK" 13694 new_path=`$CYGPATH -u "$path"` 13695 13696 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13697 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13698 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13699 # "foo.exe" is OK but "foo" is an error. 13700 # 13701 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13702 # It is also a way to make sure we got the proper file name for the real test later on. 13703 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13704 if test "x$test_shortpath" = x; then 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13706 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13707 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13708 fi 13709 13710 # Call helper function which possibly converts this using DOS-style short mode. 13711 # If so, the updated path is stored in $new_path. 13712 13713 input_path="$new_path" 13714 # Check if we need to convert this using DOS-style short mode. If the path 13715 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13716 # take no chances and rewrite it. 13717 # Note: m4 eats our [], so we need to use [ and ] instead. 13718 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13719 if test "x$has_forbidden_chars" != x; then 13720 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13721 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13722 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13723 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13724 # Going to short mode and back again did indeed matter. Since short mode is 13725 # case insensitive, let's make it lowercase to improve readability. 13726 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13727 # Now convert it back to Unix-stile (cygpath) 13728 input_path=`$CYGPATH -u "$shortmode_path"` 13729 new_path="$input_path" 13730 fi 13731 fi 13732 13733 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13734 if test "x$test_cygdrive_prefix" = x; then 13735 # As a simple fix, exclude /usr/bin since it's not a real path. 13736 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13737 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13738 # a path prefixed by /cygdrive for fixpath to work. 13739 new_path="$CYGWIN_ROOT_PATH$input_path" 13740 fi 13741 fi 13742 13743 13744 if test "x$path" != "x$new_path"; then 13745 BOOT_JDK="$new_path" 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13747 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13748 fi 13749 13750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13751 13752 path="$BOOT_JDK" 13753 has_colon=`$ECHO $path | $GREP ^.:` 13754 new_path="$path" 13755 if test "x$has_colon" = x; then 13756 # Not in mixed or Windows style, start by that. 13757 new_path=`cmd //c echo $path` 13758 fi 13759 13760 13761 input_path="$new_path" 13762 # Check if we need to convert this using DOS-style short mode. If the path 13763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13764 # take no chances and rewrite it. 13765 # Note: m4 eats our [], so we need to use [ and ] instead. 13766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13767 if test "x$has_forbidden_chars" != x; then 13768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13769 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13770 fi 13771 13772 13773 windows_path="$new_path" 13774 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13775 unix_path=`$CYGPATH -u "$windows_path"` 13776 new_path="$unix_path" 13777 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13778 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13779 new_path="$unix_path" 13780 fi 13781 13782 if test "x$path" != "x$new_path"; then 13783 BOOT_JDK="$new_path" 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13785 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13786 fi 13787 13788 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13789 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13790 13791 else 13792 # We're on a posix platform. Hooray! :) 13793 path="$BOOT_JDK" 13794 13795 if test ! -f "$path" && test ! -d "$path"; then 13796 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13797 fi 13798 13799 has_space=`$ECHO "$path" | $GREP " "` 13800 if test "x$has_space" != x; then 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13802 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13803 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13804 fi 13805 fi 13806 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13808 $as_echo_n "checking for Boot JDK... " >&6; } 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13810 $as_echo "$BOOT_JDK" >&6; } 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13812 $as_echo_n "checking Boot JDK version... " >&6; } 13813 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13815 $as_echo "$BOOT_JDK_VERSION" >&6; } 13816 fi # end check jdk version 13817 fi # end check rt.jar 13818 fi # end check javac 13819 fi # end check java 13820 fi # end check boot jdk found 13821 fi 13822 13823 13824 if test "x$BOOT_JDK_FOUND" = xno; then 13825 # Now execute the test 13826 13827 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 13828 BOOT_JDK_SUFFIX="" 13829 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 13830 if test "x$ALL_JDKS_FOUND" != x; then 13831 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 13832 13833 if test "x$BOOT_JDK_FOUND" = xno; then 13834 # Now execute the test 13835 13836 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 13837 if test -d "$BOOT_JDK"; then 13838 BOOT_JDK_FOUND=maybe 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 13840 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 13841 fi 13842 13843 13844 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13845 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13846 # Do we have a bin/java? 13847 if test ! -x "$BOOT_JDK/bin/java"; then 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13849 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13850 BOOT_JDK_FOUND=no 13851 else 13852 # Do we have a bin/javac? 13853 if test ! -x "$BOOT_JDK/bin/javac"; then 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13855 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13857 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13858 BOOT_JDK_FOUND=no 13859 else 13860 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13861 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13863 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13864 BOOT_JDK_FOUND=no 13865 else 13866 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13867 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13868 13869 # Extra M4 quote needed to protect [] in grep expression. 13870 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13871 if test "x$FOUND_VERSION_78" = x; then 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13873 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13875 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13876 BOOT_JDK_FOUND=no 13877 else 13878 # We're done! :-) 13879 BOOT_JDK_FOUND=yes 13880 13881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13882 13883 # Input might be given as Windows format, start by converting to 13884 # unix format. 13885 path="$BOOT_JDK" 13886 new_path=`$CYGPATH -u "$path"` 13887 13888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13891 # "foo.exe" is OK but "foo" is an error. 13892 # 13893 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13894 # It is also a way to make sure we got the proper file name for the real test later on. 13895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13896 if test "x$test_shortpath" = x; then 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13898 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13899 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13900 fi 13901 13902 # Call helper function which possibly converts this using DOS-style short mode. 13903 # If so, the updated path is stored in $new_path. 13904 13905 input_path="$new_path" 13906 # Check if we need to convert this using DOS-style short mode. If the path 13907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13908 # take no chances and rewrite it. 13909 # Note: m4 eats our [], so we need to use [ and ] instead. 13910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13911 if test "x$has_forbidden_chars" != x; then 13912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13916 # Going to short mode and back again did indeed matter. Since short mode is 13917 # case insensitive, let's make it lowercase to improve readability. 13918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13919 # Now convert it back to Unix-stile (cygpath) 13920 input_path=`$CYGPATH -u "$shortmode_path"` 13921 new_path="$input_path" 13922 fi 13923 fi 13924 13925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13926 if test "x$test_cygdrive_prefix" = x; then 13927 # As a simple fix, exclude /usr/bin since it's not a real path. 13928 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13930 # a path prefixed by /cygdrive for fixpath to work. 13931 new_path="$CYGWIN_ROOT_PATH$input_path" 13932 fi 13933 fi 13934 13935 13936 if test "x$path" != "x$new_path"; then 13937 BOOT_JDK="$new_path" 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13939 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13940 fi 13941 13942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13943 13944 path="$BOOT_JDK" 13945 has_colon=`$ECHO $path | $GREP ^.:` 13946 new_path="$path" 13947 if test "x$has_colon" = x; then 13948 # Not in mixed or Windows style, start by that. 13949 new_path=`cmd //c echo $path` 13950 fi 13951 13952 13953 input_path="$new_path" 13954 # Check if we need to convert this using DOS-style short mode. If the path 13955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13956 # take no chances and rewrite it. 13957 # Note: m4 eats our [], so we need to use [ and ] instead. 13958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13959 if test "x$has_forbidden_chars" != x; then 13960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13962 fi 13963 13964 13965 windows_path="$new_path" 13966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13967 unix_path=`$CYGPATH -u "$windows_path"` 13968 new_path="$unix_path" 13969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13971 new_path="$unix_path" 13972 fi 13973 13974 if test "x$path" != "x$new_path"; then 13975 BOOT_JDK="$new_path" 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13977 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13978 fi 13979 13980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13982 13983 else 13984 # We're on a posix platform. Hooray! :) 13985 path="$BOOT_JDK" 13986 13987 if test ! -f "$path" && test ! -d "$path"; then 13988 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13989 fi 13990 13991 has_space=`$ECHO "$path" | $GREP " "` 13992 if test "x$has_space" != x; then 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13994 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13995 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13996 fi 13997 fi 13998 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14000 $as_echo_n "checking for Boot JDK... " >&6; } 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14002 $as_echo "$BOOT_JDK" >&6; } 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14004 $as_echo_n "checking Boot JDK version... " >&6; } 14005 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14007 $as_echo "$BOOT_JDK_VERSION" >&6; } 14008 fi # end check jdk version 14009 fi # end check rt.jar 14010 fi # end check javac 14011 fi # end check java 14012 fi # end check boot jdk found 14013 fi 14014 14015 done 14016 fi 14017 14018 14019 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14020 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14021 # Do we have a bin/java? 14022 if test ! -x "$BOOT_JDK/bin/java"; then 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14025 BOOT_JDK_FOUND=no 14026 else 14027 # Do we have a bin/javac? 14028 if test ! -x "$BOOT_JDK/bin/javac"; then 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14031 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14032 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14033 BOOT_JDK_FOUND=no 14034 else 14035 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14036 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14039 BOOT_JDK_FOUND=no 14040 else 14041 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14042 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14043 14044 # Extra M4 quote needed to protect [] in grep expression. 14045 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14046 if test "x$FOUND_VERSION_78" = x; then 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14048 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14050 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14051 BOOT_JDK_FOUND=no 14052 else 14053 # We're done! :-) 14054 BOOT_JDK_FOUND=yes 14055 14056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14057 14058 # Input might be given as Windows format, start by converting to 14059 # unix format. 14060 path="$BOOT_JDK" 14061 new_path=`$CYGPATH -u "$path"` 14062 14063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14066 # "foo.exe" is OK but "foo" is an error. 14067 # 14068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14069 # It is also a way to make sure we got the proper file name for the real test later on. 14070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14071 if test "x$test_shortpath" = x; then 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14074 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14075 fi 14076 14077 # Call helper function which possibly converts this using DOS-style short mode. 14078 # If so, the updated path is stored in $new_path. 14079 14080 input_path="$new_path" 14081 # Check if we need to convert this using DOS-style short mode. If the path 14082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14083 # take no chances and rewrite it. 14084 # Note: m4 eats our [], so we need to use [ and ] instead. 14085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14086 if test "x$has_forbidden_chars" != x; then 14087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14091 # Going to short mode and back again did indeed matter. Since short mode is 14092 # case insensitive, let's make it lowercase to improve readability. 14093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14094 # Now convert it back to Unix-stile (cygpath) 14095 input_path=`$CYGPATH -u "$shortmode_path"` 14096 new_path="$input_path" 14097 fi 14098 fi 14099 14100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14101 if test "x$test_cygdrive_prefix" = x; then 14102 # As a simple fix, exclude /usr/bin since it's not a real path. 14103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14105 # a path prefixed by /cygdrive for fixpath to work. 14106 new_path="$CYGWIN_ROOT_PATH$input_path" 14107 fi 14108 fi 14109 14110 14111 if test "x$path" != "x$new_path"; then 14112 BOOT_JDK="$new_path" 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14114 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14115 fi 14116 14117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14118 14119 path="$BOOT_JDK" 14120 has_colon=`$ECHO $path | $GREP ^.:` 14121 new_path="$path" 14122 if test "x$has_colon" = x; then 14123 # Not in mixed or Windows style, start by that. 14124 new_path=`cmd //c echo $path` 14125 fi 14126 14127 14128 input_path="$new_path" 14129 # Check if we need to convert this using DOS-style short mode. If the path 14130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14131 # take no chances and rewrite it. 14132 # Note: m4 eats our [], so we need to use [ and ] instead. 14133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14134 if test "x$has_forbidden_chars" != x; then 14135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14137 fi 14138 14139 14140 windows_path="$new_path" 14141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14142 unix_path=`$CYGPATH -u "$windows_path"` 14143 new_path="$unix_path" 14144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14146 new_path="$unix_path" 14147 fi 14148 14149 if test "x$path" != "x$new_path"; then 14150 BOOT_JDK="$new_path" 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14153 fi 14154 14155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14157 14158 else 14159 # We're on a posix platform. Hooray! :) 14160 path="$BOOT_JDK" 14161 14162 if test ! -f "$path" && test ! -d "$path"; then 14163 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14164 fi 14165 14166 has_space=`$ECHO "$path" | $GREP " "` 14167 if test "x$has_space" != x; then 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14169 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14170 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14171 fi 14172 fi 14173 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14175 $as_echo_n "checking for Boot JDK... " >&6; } 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14177 $as_echo "$BOOT_JDK" >&6; } 14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14179 $as_echo_n "checking Boot JDK version... " >&6; } 14180 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14182 $as_echo "$BOOT_JDK_VERSION" >&6; } 14183 fi # end check jdk version 14184 fi # end check rt.jar 14185 fi # end check javac 14186 fi # end check java 14187 fi # end check boot jdk found 14188 fi 14189 14190 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 14191 14192 if test "x$BOOT_JDK_FOUND" = xno; then 14193 # Now execute the test 14194 14195 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 14196 BOOT_JDK_SUFFIX="/Contents/Home" 14197 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 14198 if test "x$ALL_JDKS_FOUND" != x; then 14199 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 14200 14201 if test "x$BOOT_JDK_FOUND" = xno; then 14202 # Now execute the test 14203 14204 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 14205 if test -d "$BOOT_JDK"; then 14206 BOOT_JDK_FOUND=maybe 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 14208 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 14209 fi 14210 14211 14212 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14213 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14214 # Do we have a bin/java? 14215 if test ! -x "$BOOT_JDK/bin/java"; then 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14218 BOOT_JDK_FOUND=no 14219 else 14220 # Do we have a bin/javac? 14221 if test ! -x "$BOOT_JDK/bin/javac"; then 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14225 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14226 BOOT_JDK_FOUND=no 14227 else 14228 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14229 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14232 BOOT_JDK_FOUND=no 14233 else 14234 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14235 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14236 14237 # Extra M4 quote needed to protect [] in grep expression. 14238 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14239 if test "x$FOUND_VERSION_78" = x; then 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14243 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14244 BOOT_JDK_FOUND=no 14245 else 14246 # We're done! :-) 14247 BOOT_JDK_FOUND=yes 14248 14249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14250 14251 # Input might be given as Windows format, start by converting to 14252 # unix format. 14253 path="$BOOT_JDK" 14254 new_path=`$CYGPATH -u "$path"` 14255 14256 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14257 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14258 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14259 # "foo.exe" is OK but "foo" is an error. 14260 # 14261 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14262 # It is also a way to make sure we got the proper file name for the real test later on. 14263 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14264 if test "x$test_shortpath" = x; then 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14267 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14268 fi 14269 14270 # Call helper function which possibly converts this using DOS-style short mode. 14271 # If so, the updated path is stored in $new_path. 14272 14273 input_path="$new_path" 14274 # Check if we need to convert this using DOS-style short mode. If the path 14275 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14276 # take no chances and rewrite it. 14277 # Note: m4 eats our [], so we need to use [ and ] instead. 14278 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14279 if test "x$has_forbidden_chars" != x; then 14280 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14281 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14282 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14283 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14284 # Going to short mode and back again did indeed matter. Since short mode is 14285 # case insensitive, let's make it lowercase to improve readability. 14286 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14287 # Now convert it back to Unix-stile (cygpath) 14288 input_path=`$CYGPATH -u "$shortmode_path"` 14289 new_path="$input_path" 14290 fi 14291 fi 14292 14293 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14294 if test "x$test_cygdrive_prefix" = x; then 14295 # As a simple fix, exclude /usr/bin since it's not a real path. 14296 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14297 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14298 # a path prefixed by /cygdrive for fixpath to work. 14299 new_path="$CYGWIN_ROOT_PATH$input_path" 14300 fi 14301 fi 14302 14303 14304 if test "x$path" != "x$new_path"; then 14305 BOOT_JDK="$new_path" 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14308 fi 14309 14310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14311 14312 path="$BOOT_JDK" 14313 has_colon=`$ECHO $path | $GREP ^.:` 14314 new_path="$path" 14315 if test "x$has_colon" = x; then 14316 # Not in mixed or Windows style, start by that. 14317 new_path=`cmd //c echo $path` 14318 fi 14319 14320 14321 input_path="$new_path" 14322 # Check if we need to convert this using DOS-style short mode. If the path 14323 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14324 # take no chances and rewrite it. 14325 # Note: m4 eats our [], so we need to use [ and ] instead. 14326 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14327 if test "x$has_forbidden_chars" != x; then 14328 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14329 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14330 fi 14331 14332 14333 windows_path="$new_path" 14334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14335 unix_path=`$CYGPATH -u "$windows_path"` 14336 new_path="$unix_path" 14337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14339 new_path="$unix_path" 14340 fi 14341 14342 if test "x$path" != "x$new_path"; then 14343 BOOT_JDK="$new_path" 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14345 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14346 fi 14347 14348 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14349 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14350 14351 else 14352 # We're on a posix platform. Hooray! :) 14353 path="$BOOT_JDK" 14354 14355 if test ! -f "$path" && test ! -d "$path"; then 14356 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14357 fi 14358 14359 has_space=`$ECHO "$path" | $GREP " "` 14360 if test "x$has_space" != x; then 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14362 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14363 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14364 fi 14365 fi 14366 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14368 $as_echo_n "checking for Boot JDK... " >&6; } 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14370 $as_echo "$BOOT_JDK" >&6; } 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14372 $as_echo_n "checking Boot JDK version... " >&6; } 14373 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14375 $as_echo "$BOOT_JDK_VERSION" >&6; } 14376 fi # end check jdk version 14377 fi # end check rt.jar 14378 fi # end check javac 14379 fi # end check java 14380 fi # end check boot jdk found 14381 fi 14382 14383 done 14384 fi 14385 14386 14387 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14388 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14389 # Do we have a bin/java? 14390 if test ! -x "$BOOT_JDK/bin/java"; then 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14393 BOOT_JDK_FOUND=no 14394 else 14395 # Do we have a bin/javac? 14396 if test ! -x "$BOOT_JDK/bin/javac"; then 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14400 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14401 BOOT_JDK_FOUND=no 14402 else 14403 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14404 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14406 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14407 BOOT_JDK_FOUND=no 14408 else 14409 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14410 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14411 14412 # Extra M4 quote needed to protect [] in grep expression. 14413 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14414 if test "x$FOUND_VERSION_78" = x; then 14415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14418 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14419 BOOT_JDK_FOUND=no 14420 else 14421 # We're done! :-) 14422 BOOT_JDK_FOUND=yes 14423 14424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14425 14426 # Input might be given as Windows format, start by converting to 14427 # unix format. 14428 path="$BOOT_JDK" 14429 new_path=`$CYGPATH -u "$path"` 14430 14431 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14432 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14433 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14434 # "foo.exe" is OK but "foo" is an error. 14435 # 14436 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14437 # It is also a way to make sure we got the proper file name for the real test later on. 14438 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14439 if test "x$test_shortpath" = x; then 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14441 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14442 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14443 fi 14444 14445 # Call helper function which possibly converts this using DOS-style short mode. 14446 # If so, the updated path is stored in $new_path. 14447 14448 input_path="$new_path" 14449 # Check if we need to convert this using DOS-style short mode. If the path 14450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14451 # take no chances and rewrite it. 14452 # Note: m4 eats our [], so we need to use [ and ] instead. 14453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14454 if test "x$has_forbidden_chars" != x; then 14455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14456 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14457 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14458 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14459 # Going to short mode and back again did indeed matter. Since short mode is 14460 # case insensitive, let's make it lowercase to improve readability. 14461 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14462 # Now convert it back to Unix-stile (cygpath) 14463 input_path=`$CYGPATH -u "$shortmode_path"` 14464 new_path="$input_path" 14465 fi 14466 fi 14467 14468 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14469 if test "x$test_cygdrive_prefix" = x; then 14470 # As a simple fix, exclude /usr/bin since it's not a real path. 14471 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14472 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14473 # a path prefixed by /cygdrive for fixpath to work. 14474 new_path="$CYGWIN_ROOT_PATH$input_path" 14475 fi 14476 fi 14477 14478 14479 if test "x$path" != "x$new_path"; then 14480 BOOT_JDK="$new_path" 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14482 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14483 fi 14484 14485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14486 14487 path="$BOOT_JDK" 14488 has_colon=`$ECHO $path | $GREP ^.:` 14489 new_path="$path" 14490 if test "x$has_colon" = x; then 14491 # Not in mixed or Windows style, start by that. 14492 new_path=`cmd //c echo $path` 14493 fi 14494 14495 14496 input_path="$new_path" 14497 # Check if we need to convert this using DOS-style short mode. If the path 14498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14499 # take no chances and rewrite it. 14500 # Note: m4 eats our [], so we need to use [ and ] instead. 14501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14502 if test "x$has_forbidden_chars" != x; then 14503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14504 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14505 fi 14506 14507 14508 windows_path="$new_path" 14509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14510 unix_path=`$CYGPATH -u "$windows_path"` 14511 new_path="$unix_path" 14512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14514 new_path="$unix_path" 14515 fi 14516 14517 if test "x$path" != "x$new_path"; then 14518 BOOT_JDK="$new_path" 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14520 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14521 fi 14522 14523 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14524 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14525 14526 else 14527 # We're on a posix platform. Hooray! :) 14528 path="$BOOT_JDK" 14529 14530 if test ! -f "$path" && test ! -d "$path"; then 14531 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14532 fi 14533 14534 has_space=`$ECHO "$path" | $GREP " "` 14535 if test "x$has_space" != x; then 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14537 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14538 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14539 fi 14540 fi 14541 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14543 $as_echo_n "checking for Boot JDK... " >&6; } 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14545 $as_echo "$BOOT_JDK" >&6; } 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14547 $as_echo_n "checking Boot JDK version... " >&6; } 14548 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14550 $as_echo "$BOOT_JDK_VERSION" >&6; } 14551 fi # end check jdk version 14552 fi # end check rt.jar 14553 fi # end check javac 14554 fi # end check java 14555 fi # end check boot jdk found 14556 fi 14557 14558 14559 if test "x$BOOT_JDK_FOUND" = xno; then 14560 # Now execute the test 14561 14562 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 14563 BOOT_JDK_SUFFIX="/Contents/Home" 14564 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 14565 if test "x$ALL_JDKS_FOUND" != x; then 14566 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 14567 14568 if test "x$BOOT_JDK_FOUND" = xno; then 14569 # Now execute the test 14570 14571 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 14572 if test -d "$BOOT_JDK"; then 14573 BOOT_JDK_FOUND=maybe 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 14575 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 14576 fi 14577 14578 14579 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14580 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14581 # Do we have a bin/java? 14582 if test ! -x "$BOOT_JDK/bin/java"; then 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14584 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14585 BOOT_JDK_FOUND=no 14586 else 14587 # Do we have a bin/javac? 14588 if test ! -x "$BOOT_JDK/bin/javac"; then 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14590 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14592 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14593 BOOT_JDK_FOUND=no 14594 else 14595 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14596 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14599 BOOT_JDK_FOUND=no 14600 else 14601 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14602 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14603 14604 # Extra M4 quote needed to protect [] in grep expression. 14605 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14606 if test "x$FOUND_VERSION_78" = x; then 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14608 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14610 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14611 BOOT_JDK_FOUND=no 14612 else 14613 # We're done! :-) 14614 BOOT_JDK_FOUND=yes 14615 14616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14617 14618 # Input might be given as Windows format, start by converting to 14619 # unix format. 14620 path="$BOOT_JDK" 14621 new_path=`$CYGPATH -u "$path"` 14622 14623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14626 # "foo.exe" is OK but "foo" is an error. 14627 # 14628 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14629 # It is also a way to make sure we got the proper file name for the real test later on. 14630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14631 if test "x$test_shortpath" = x; then 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14633 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14634 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14635 fi 14636 14637 # Call helper function which possibly converts this using DOS-style short mode. 14638 # If so, the updated path is stored in $new_path. 14639 14640 input_path="$new_path" 14641 # Check if we need to convert this using DOS-style short mode. If the path 14642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14643 # take no chances and rewrite it. 14644 # Note: m4 eats our [], so we need to use [ and ] instead. 14645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14646 if test "x$has_forbidden_chars" != x; then 14647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14648 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14649 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14650 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14651 # Going to short mode and back again did indeed matter. Since short mode is 14652 # case insensitive, let's make it lowercase to improve readability. 14653 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14654 # Now convert it back to Unix-stile (cygpath) 14655 input_path=`$CYGPATH -u "$shortmode_path"` 14656 new_path="$input_path" 14657 fi 14658 fi 14659 14660 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14661 if test "x$test_cygdrive_prefix" = x; then 14662 # As a simple fix, exclude /usr/bin since it's not a real path. 14663 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14664 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14665 # a path prefixed by /cygdrive for fixpath to work. 14666 new_path="$CYGWIN_ROOT_PATH$input_path" 14667 fi 14668 fi 14669 14670 14671 if test "x$path" != "x$new_path"; then 14672 BOOT_JDK="$new_path" 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14674 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14675 fi 14676 14677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14678 14679 path="$BOOT_JDK" 14680 has_colon=`$ECHO $path | $GREP ^.:` 14681 new_path="$path" 14682 if test "x$has_colon" = x; then 14683 # Not in mixed or Windows style, start by that. 14684 new_path=`cmd //c echo $path` 14685 fi 14686 14687 14688 input_path="$new_path" 14689 # Check if we need to convert this using DOS-style short mode. If the path 14690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14691 # take no chances and rewrite it. 14692 # Note: m4 eats our [], so we need to use [ and ] instead. 14693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14694 if test "x$has_forbidden_chars" != x; then 14695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14696 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14697 fi 14698 14699 14700 windows_path="$new_path" 14701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14702 unix_path=`$CYGPATH -u "$windows_path"` 14703 new_path="$unix_path" 14704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14705 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14706 new_path="$unix_path" 14707 fi 14708 14709 if test "x$path" != "x$new_path"; then 14710 BOOT_JDK="$new_path" 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14712 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14713 fi 14714 14715 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14716 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14717 14718 else 14719 # We're on a posix platform. Hooray! :) 14720 path="$BOOT_JDK" 14721 14722 if test ! -f "$path" && test ! -d "$path"; then 14723 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14724 fi 14725 14726 has_space=`$ECHO "$path" | $GREP " "` 14727 if test "x$has_space" != x; then 14728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14729 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14730 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14731 fi 14732 fi 14733 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14735 $as_echo_n "checking for Boot JDK... " >&6; } 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14737 $as_echo "$BOOT_JDK" >&6; } 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14739 $as_echo_n "checking Boot JDK version... " >&6; } 14740 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14742 $as_echo "$BOOT_JDK_VERSION" >&6; } 14743 fi # end check jdk version 14744 fi # end check rt.jar 14745 fi # end check javac 14746 fi # end check java 14747 fi # end check boot jdk found 14748 fi 14749 14750 done 14751 fi 14752 14753 14754 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14755 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14756 # Do we have a bin/java? 14757 if test ! -x "$BOOT_JDK/bin/java"; then 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14759 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14760 BOOT_JDK_FOUND=no 14761 else 14762 # Do we have a bin/javac? 14763 if test ! -x "$BOOT_JDK/bin/javac"; then 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14767 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14768 BOOT_JDK_FOUND=no 14769 else 14770 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14771 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14773 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14774 BOOT_JDK_FOUND=no 14775 else 14776 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14777 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14778 14779 # Extra M4 quote needed to protect [] in grep expression. 14780 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14781 if test "x$FOUND_VERSION_78" = x; then 14782 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14785 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14786 BOOT_JDK_FOUND=no 14787 else 14788 # We're done! :-) 14789 BOOT_JDK_FOUND=yes 14790 14791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14792 14793 # Input might be given as Windows format, start by converting to 14794 # unix format. 14795 path="$BOOT_JDK" 14796 new_path=`$CYGPATH -u "$path"` 14797 14798 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14799 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14800 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14801 # "foo.exe" is OK but "foo" is an error. 14802 # 14803 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14804 # It is also a way to make sure we got the proper file name for the real test later on. 14805 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14806 if test "x$test_shortpath" = x; then 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14808 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14809 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14810 fi 14811 14812 # Call helper function which possibly converts this using DOS-style short mode. 14813 # If so, the updated path is stored in $new_path. 14814 14815 input_path="$new_path" 14816 # Check if we need to convert this using DOS-style short mode. If the path 14817 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14818 # take no chances and rewrite it. 14819 # Note: m4 eats our [], so we need to use [ and ] instead. 14820 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14821 if test "x$has_forbidden_chars" != x; then 14822 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14823 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14824 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14825 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14826 # Going to short mode and back again did indeed matter. Since short mode is 14827 # case insensitive, let's make it lowercase to improve readability. 14828 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14829 # Now convert it back to Unix-stile (cygpath) 14830 input_path=`$CYGPATH -u "$shortmode_path"` 14831 new_path="$input_path" 14832 fi 14833 fi 14834 14835 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14836 if test "x$test_cygdrive_prefix" = x; then 14837 # As a simple fix, exclude /usr/bin since it's not a real path. 14838 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14839 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14840 # a path prefixed by /cygdrive for fixpath to work. 14841 new_path="$CYGWIN_ROOT_PATH$input_path" 14842 fi 14843 fi 14844 14845 14846 if test "x$path" != "x$new_path"; then 14847 BOOT_JDK="$new_path" 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14849 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14850 fi 14851 14852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14853 14854 path="$BOOT_JDK" 14855 has_colon=`$ECHO $path | $GREP ^.:` 14856 new_path="$path" 14857 if test "x$has_colon" = x; then 14858 # Not in mixed or Windows style, start by that. 14859 new_path=`cmd //c echo $path` 14860 fi 14861 14862 14863 input_path="$new_path" 14864 # Check if we need to convert this using DOS-style short mode. If the path 14865 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14866 # take no chances and rewrite it. 14867 # Note: m4 eats our [], so we need to use [ and ] instead. 14868 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14869 if test "x$has_forbidden_chars" != x; then 14870 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14871 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14872 fi 14873 14874 14875 windows_path="$new_path" 14876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14877 unix_path=`$CYGPATH -u "$windows_path"` 14878 new_path="$unix_path" 14879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14881 new_path="$unix_path" 14882 fi 14883 14884 if test "x$path" != "x$new_path"; then 14885 BOOT_JDK="$new_path" 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14887 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14888 fi 14889 14890 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14891 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14892 14893 else 14894 # We're on a posix platform. Hooray! :) 14895 path="$BOOT_JDK" 14896 14897 if test ! -f "$path" && test ! -d "$path"; then 14898 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14899 fi 14900 14901 has_space=`$ECHO "$path" | $GREP " "` 14902 if test "x$has_space" != x; then 14903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14904 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14905 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14906 fi 14907 fi 14908 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14910 $as_echo_n "checking for Boot JDK... " >&6; } 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14912 $as_echo "$BOOT_JDK" >&6; } 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14914 $as_echo_n "checking Boot JDK version... " >&6; } 14915 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14917 $as_echo "$BOOT_JDK_VERSION" >&6; } 14918 fi # end check jdk version 14919 fi # end check rt.jar 14920 fi # end check javac 14921 fi # end check java 14922 fi # end check boot jdk found 14923 fi 14924 14925 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 14926 14927 if test "x$BOOT_JDK_FOUND" = xno; then 14928 # Now execute the test 14929 14930 BOOT_JDK_PREFIX="/usr/lib/jvm" 14931 BOOT_JDK_SUFFIX="" 14932 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 14933 if test "x$ALL_JDKS_FOUND" != x; then 14934 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 14935 14936 if test "x$BOOT_JDK_FOUND" = xno; then 14937 # Now execute the test 14938 14939 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 14940 if test -d "$BOOT_JDK"; then 14941 BOOT_JDK_FOUND=maybe 14942 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 14943 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 14944 fi 14945 14946 14947 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14948 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14949 # Do we have a bin/java? 14950 if test ! -x "$BOOT_JDK/bin/java"; then 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14952 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14953 BOOT_JDK_FOUND=no 14954 else 14955 # Do we have a bin/javac? 14956 if test ! -x "$BOOT_JDK/bin/javac"; then 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14958 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14960 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14961 BOOT_JDK_FOUND=no 14962 else 14963 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14964 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14965 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14966 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14967 BOOT_JDK_FOUND=no 14968 else 14969 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14970 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14971 14972 # Extra M4 quote needed to protect [] in grep expression. 14973 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14974 if test "x$FOUND_VERSION_78" = x; then 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14976 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14978 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14979 BOOT_JDK_FOUND=no 14980 else 14981 # We're done! :-) 14982 BOOT_JDK_FOUND=yes 14983 14984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14985 14986 # Input might be given as Windows format, start by converting to 14987 # unix format. 14988 path="$BOOT_JDK" 14989 new_path=`$CYGPATH -u "$path"` 14990 14991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14994 # "foo.exe" is OK but "foo" is an error. 14995 # 14996 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14997 # It is also a way to make sure we got the proper file name for the real test later on. 14998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14999 if test "x$test_shortpath" = x; then 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15001 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15002 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 15003 fi 15004 15005 # Call helper function which possibly converts this using DOS-style short mode. 15006 # If so, the updated path is stored in $new_path. 15007 15008 input_path="$new_path" 15009 # Check if we need to convert this using DOS-style short mode. If the path 15010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15011 # take no chances and rewrite it. 15012 # Note: m4 eats our [], so we need to use [ and ] instead. 15013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15014 if test "x$has_forbidden_chars" != x; then 15015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15016 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15017 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15018 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15019 # Going to short mode and back again did indeed matter. Since short mode is 15020 # case insensitive, let's make it lowercase to improve readability. 15021 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15022 # Now convert it back to Unix-stile (cygpath) 15023 input_path=`$CYGPATH -u "$shortmode_path"` 15024 new_path="$input_path" 15025 fi 15026 fi 15027 15028 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15029 if test "x$test_cygdrive_prefix" = x; then 15030 # As a simple fix, exclude /usr/bin since it's not a real path. 15031 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15032 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15033 # a path prefixed by /cygdrive for fixpath to work. 15034 new_path="$CYGWIN_ROOT_PATH$input_path" 15035 fi 15036 fi 15037 15038 15039 if test "x$path" != "x$new_path"; then 15040 BOOT_JDK="$new_path" 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15042 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15043 fi 15044 15045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15046 15047 path="$BOOT_JDK" 15048 has_colon=`$ECHO $path | $GREP ^.:` 15049 new_path="$path" 15050 if test "x$has_colon" = x; then 15051 # Not in mixed or Windows style, start by that. 15052 new_path=`cmd //c echo $path` 15053 fi 15054 15055 15056 input_path="$new_path" 15057 # Check if we need to convert this using DOS-style short mode. If the path 15058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15059 # take no chances and rewrite it. 15060 # Note: m4 eats our [], so we need to use [ and ] instead. 15061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15062 if test "x$has_forbidden_chars" != x; then 15063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15064 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15065 fi 15066 15067 15068 windows_path="$new_path" 15069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15070 unix_path=`$CYGPATH -u "$windows_path"` 15071 new_path="$unix_path" 15072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15074 new_path="$unix_path" 15075 fi 15076 15077 if test "x$path" != "x$new_path"; then 15078 BOOT_JDK="$new_path" 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15080 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15081 fi 15082 15083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15085 15086 else 15087 # We're on a posix platform. Hooray! :) 15088 path="$BOOT_JDK" 15089 15090 if test ! -f "$path" && test ! -d "$path"; then 15091 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 15092 fi 15093 15094 has_space=`$ECHO "$path" | $GREP " "` 15095 if test "x$has_space" != x; then 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15097 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15098 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15099 fi 15100 fi 15101 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 15103 $as_echo_n "checking for Boot JDK... " >&6; } 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 15105 $as_echo "$BOOT_JDK" >&6; } 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 15107 $as_echo_n "checking Boot JDK version... " >&6; } 15108 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 15110 $as_echo "$BOOT_JDK_VERSION" >&6; } 15111 fi # end check jdk version 15112 fi # end check rt.jar 15113 fi # end check javac 15114 fi # end check java 15115 fi # end check boot jdk found 15116 fi 15117 15118 done 15119 fi 15120 15121 15122 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 15123 if test "x$BOOT_JDK_FOUND" = xmaybe; then 15124 # Do we have a bin/java? 15125 if test ! -x "$BOOT_JDK/bin/java"; then 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 15127 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 15128 BOOT_JDK_FOUND=no 15129 else 15130 # Do we have a bin/javac? 15131 if test ! -x "$BOOT_JDK/bin/javac"; then 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 15133 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 15135 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 15136 BOOT_JDK_FOUND=no 15137 else 15138 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 15139 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 15141 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 15142 BOOT_JDK_FOUND=no 15143 else 15144 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 15145 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 15146 15147 # Extra M4 quote needed to protect [] in grep expression. 15148 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 15149 if test "x$FOUND_VERSION_78" = x; then 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 15151 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 15153 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 15154 BOOT_JDK_FOUND=no 15155 else 15156 # We're done! :-) 15157 BOOT_JDK_FOUND=yes 15158 15159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15160 15161 # Input might be given as Windows format, start by converting to 15162 # unix format. 15163 path="$BOOT_JDK" 15164 new_path=`$CYGPATH -u "$path"` 15165 15166 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15167 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15168 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15169 # "foo.exe" is OK but "foo" is an error. 15170 # 15171 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15172 # It is also a way to make sure we got the proper file name for the real test later on. 15173 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15174 if test "x$test_shortpath" = x; then 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15176 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15177 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 15178 fi 15179 15180 # Call helper function which possibly converts this using DOS-style short mode. 15181 # If so, the updated path is stored in $new_path. 15182 15183 input_path="$new_path" 15184 # Check if we need to convert this using DOS-style short mode. If the path 15185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15186 # take no chances and rewrite it. 15187 # Note: m4 eats our [], so we need to use [ and ] instead. 15188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15189 if test "x$has_forbidden_chars" != x; then 15190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15191 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15192 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15193 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15194 # Going to short mode and back again did indeed matter. Since short mode is 15195 # case insensitive, let's make it lowercase to improve readability. 15196 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15197 # Now convert it back to Unix-stile (cygpath) 15198 input_path=`$CYGPATH -u "$shortmode_path"` 15199 new_path="$input_path" 15200 fi 15201 fi 15202 15203 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15204 if test "x$test_cygdrive_prefix" = x; then 15205 # As a simple fix, exclude /usr/bin since it's not a real path. 15206 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15207 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15208 # a path prefixed by /cygdrive for fixpath to work. 15209 new_path="$CYGWIN_ROOT_PATH$input_path" 15210 fi 15211 fi 15212 15213 15214 if test "x$path" != "x$new_path"; then 15215 BOOT_JDK="$new_path" 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15217 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15218 fi 15219 15220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15221 15222 path="$BOOT_JDK" 15223 has_colon=`$ECHO $path | $GREP ^.:` 15224 new_path="$path" 15225 if test "x$has_colon" = x; then 15226 # Not in mixed or Windows style, start by that. 15227 new_path=`cmd //c echo $path` 15228 fi 15229 15230 15231 input_path="$new_path" 15232 # Check if we need to convert this using DOS-style short mode. If the path 15233 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15234 # take no chances and rewrite it. 15235 # Note: m4 eats our [], so we need to use [ and ] instead. 15236 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15237 if test "x$has_forbidden_chars" != x; then 15238 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15239 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15240 fi 15241 15242 15243 windows_path="$new_path" 15244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15245 unix_path=`$CYGPATH -u "$windows_path"` 15246 new_path="$unix_path" 15247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15248 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15249 new_path="$unix_path" 15250 fi 15251 15252 if test "x$path" != "x$new_path"; then 15253 BOOT_JDK="$new_path" 15254 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15255 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15256 fi 15257 15258 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15259 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15260 15261 else 15262 # We're on a posix platform. Hooray! :) 15263 path="$BOOT_JDK" 15264 15265 if test ! -f "$path" && test ! -d "$path"; then 15266 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 15267 fi 15268 15269 has_space=`$ECHO "$path" | $GREP " "` 15270 if test "x$has_space" != x; then 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15272 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15273 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15274 fi 15275 fi 15276 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 15278 $as_echo_n "checking for Boot JDK... " >&6; } 15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 15280 $as_echo "$BOOT_JDK" >&6; } 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 15282 $as_echo_n "checking Boot JDK version... " >&6; } 15283 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 15285 $as_echo "$BOOT_JDK_VERSION" >&6; } 15286 fi # end check jdk version 15287 fi # end check rt.jar 15288 fi # end check javac 15289 fi # end check java 15290 fi # end check boot jdk found 15291 fi 15292 15293 fi 15294 15295 15296 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 15297 if test "x$BOOT_JDK_FOUND" = xmaybe; then 15298 # Do we have a bin/java? 15299 if test ! -x "$BOOT_JDK/bin/java"; then 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 15301 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 15302 BOOT_JDK_FOUND=no 15303 else 15304 # Do we have a bin/javac? 15305 if test ! -x "$BOOT_JDK/bin/javac"; then 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 15307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 15309 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 15310 BOOT_JDK_FOUND=no 15311 else 15312 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 15313 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 15315 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 15316 BOOT_JDK_FOUND=no 15317 else 15318 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 15319 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 15320 15321 # Extra M4 quote needed to protect [] in grep expression. 15322 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 15323 if test "x$FOUND_VERSION_78" = x; then 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 15325 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 15327 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 15328 BOOT_JDK_FOUND=no 15329 else 15330 # We're done! :-) 15331 BOOT_JDK_FOUND=yes 15332 15333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15334 15335 # Input might be given as Windows format, start by converting to 15336 # unix format. 15337 path="$BOOT_JDK" 15338 new_path=`$CYGPATH -u "$path"` 15339 15340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15343 # "foo.exe" is OK but "foo" is an error. 15344 # 15345 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15346 # It is also a way to make sure we got the proper file name for the real test later on. 15347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15348 if test "x$test_shortpath" = x; then 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15350 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15351 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 15352 fi 15353 15354 # Call helper function which possibly converts this using DOS-style short mode. 15355 # If so, the updated path is stored in $new_path. 15356 15357 input_path="$new_path" 15358 # Check if we need to convert this using DOS-style short mode. If the path 15359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15360 # take no chances and rewrite it. 15361 # Note: m4 eats our [], so we need to use [ and ] instead. 15362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15363 if test "x$has_forbidden_chars" != x; then 15364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15368 # Going to short mode and back again did indeed matter. Since short mode is 15369 # case insensitive, let's make it lowercase to improve readability. 15370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15371 # Now convert it back to Unix-stile (cygpath) 15372 input_path=`$CYGPATH -u "$shortmode_path"` 15373 new_path="$input_path" 15374 fi 15375 fi 15376 15377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15378 if test "x$test_cygdrive_prefix" = x; then 15379 # As a simple fix, exclude /usr/bin since it's not a real path. 15380 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15382 # a path prefixed by /cygdrive for fixpath to work. 15383 new_path="$CYGWIN_ROOT_PATH$input_path" 15384 fi 15385 fi 15386 15387 15388 if test "x$path" != "x$new_path"; then 15389 BOOT_JDK="$new_path" 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15391 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15392 fi 15393 15394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15395 15396 path="$BOOT_JDK" 15397 has_colon=`$ECHO $path | $GREP ^.:` 15398 new_path="$path" 15399 if test "x$has_colon" = x; then 15400 # Not in mixed or Windows style, start by that. 15401 new_path=`cmd //c echo $path` 15402 fi 15403 15404 15405 input_path="$new_path" 15406 # Check if we need to convert this using DOS-style short mode. If the path 15407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15408 # take no chances and rewrite it. 15409 # Note: m4 eats our [], so we need to use [ and ] instead. 15410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15411 if test "x$has_forbidden_chars" != x; then 15412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15414 fi 15415 15416 15417 windows_path="$new_path" 15418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15419 unix_path=`$CYGPATH -u "$windows_path"` 15420 new_path="$unix_path" 15421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15423 new_path="$unix_path" 15424 fi 15425 15426 if test "x$path" != "x$new_path"; then 15427 BOOT_JDK="$new_path" 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15429 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15430 fi 15431 15432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15434 15435 else 15436 # We're on a posix platform. Hooray! :) 15437 path="$BOOT_JDK" 15438 15439 if test ! -f "$path" && test ! -d "$path"; then 15440 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 15441 fi 15442 15443 has_space=`$ECHO "$path" | $GREP " "` 15444 if test "x$has_space" != x; then 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15446 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15447 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15448 fi 15449 fi 15450 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 15452 $as_echo_n "checking for Boot JDK... " >&6; } 15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 15454 $as_echo "$BOOT_JDK" >&6; } 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 15456 $as_echo_n "checking Boot JDK version... " >&6; } 15457 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 15459 $as_echo "$BOOT_JDK_VERSION" >&6; } 15460 fi # end check jdk version 15461 fi # end check rt.jar 15462 fi # end check javac 15463 fi # end check java 15464 fi # end check boot jdk found 15465 fi 15466 15467 15468 # If we haven't found anything yet, we've truly lost. Give up. 15469 if test "x$BOOT_JDK_FOUND" = xno; then 15470 15471 # Print a helpful message on how to acquire the necessary build dependency. 15472 # openjdk is the help tag: freetyp2, cups, pulse, alsa etc 15473 MISSING_DEPENDENCY=openjdk 15474 PKGHANDLER_COMMAND= 15475 15476 case $PKGHANDLER in 15477 apt-get) 15478 apt_help $MISSING_DEPENDENCY ;; 15479 yum) 15480 yum_help $MISSING_DEPENDENCY ;; 15481 port) 15482 port_help $MISSING_DEPENDENCY ;; 15483 pkgutil) 15484 pkgutil_help $MISSING_DEPENDENCY ;; 15485 pkgadd) 15486 pkgadd_help $MISSING_DEPENDENCY ;; 15487 * ) 15488 break ;; 15489 esac 15490 15491 if test "x$PKGHANDLER_COMMAND" != x; then 15492 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 15493 fi 15494 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 15496 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 15498 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15499 as_fn_error $? "Cannot continue" "$LINENO" 5 15500 fi 15501 15502 # Setup proper paths for what we found 15503 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 15504 if test ! -f "$BOOT_RTJAR"; then 15505 # On MacOSX it is called classes.jar 15506 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 15507 if test -f "$BOOT_RTJAR"; then 15508 # Remove the .. 15509 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 15510 fi 15511 fi 15512 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 15513 BOOT_JDK="$BOOT_JDK" 15514 15515 15516 15517 15518 # Setup tools from the Boot JDK. 15519 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 15521 $as_echo_n "checking for java in Boot JDK... " >&6; } 15522 JAVA=$BOOT_JDK/bin/java 15523 if test ! -x $JAVA; then 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15525 $as_echo "not found" >&6; } 15526 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15527 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15528 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 15529 fi 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15531 $as_echo "ok" >&6; } 15532 15533 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 15535 $as_echo_n "checking for javac in Boot JDK... " >&6; } 15536 JAVAC=$BOOT_JDK/bin/javac 15537 if test ! -x $JAVAC; then 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15539 $as_echo "not found" >&6; } 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15541 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15542 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 15543 fi 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15545 $as_echo "ok" >&6; } 15546 15547 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 15549 $as_echo_n "checking for javah in Boot JDK... " >&6; } 15550 JAVAH=$BOOT_JDK/bin/javah 15551 if test ! -x $JAVAH; then 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15553 $as_echo "not found" >&6; } 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15555 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15556 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 15557 fi 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15559 $as_echo "ok" >&6; } 15560 15561 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 15563 $as_echo_n "checking for javap in Boot JDK... " >&6; } 15564 JAVAP=$BOOT_JDK/bin/javap 15565 if test ! -x $JAVAP; then 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15567 $as_echo "not found" >&6; } 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15569 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15570 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 15571 fi 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15573 $as_echo "ok" >&6; } 15574 15575 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 15577 $as_echo_n "checking for jar in Boot JDK... " >&6; } 15578 JAR=$BOOT_JDK/bin/jar 15579 if test ! -x $JAR; then 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15581 $as_echo "not found" >&6; } 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15583 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15584 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 15585 fi 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15587 $as_echo "ok" >&6; } 15588 15589 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 15591 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 15592 RMIC=$BOOT_JDK/bin/rmic 15593 if test ! -x $RMIC; then 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15595 $as_echo "not found" >&6; } 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15597 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15598 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 15599 fi 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15601 $as_echo "ok" >&6; } 15602 15603 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 15605 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 15606 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 15607 if test ! -x $NATIVE2ASCII; then 15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15609 $as_echo "not found" >&6; } 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15611 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15612 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 15613 fi 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15615 $as_echo "ok" >&6; } 15616 15617 15618 # Finally, set some other options... 15619 15620 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 15621 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 15622 15623 15624 15625 15626 ############################################################################## 15627 # 15628 # Specify options for anything that is run with the Boot JDK. 15629 # 15630 15631 # Check whether --with-boot-jdk-jvmargs was given. 15632 if test "${with_boot_jdk_jvmargs+set}" = set; then : 15633 withval=$with_boot_jdk_jvmargs; 15634 fi 15635 15636 15637 if test "x$with_boot_jdk_jvmargs" = x; then 15638 # Not all JVM:s accept the same arguments on the command line. 15639 # OpenJDK specific increase in thread stack for JDK build, 15640 # well more specifically, when running javac. 15641 if test "x$BUILD_NUM_BITS" = x32; then 15642 STACK_SIZE=768 15643 else 15644 # Running Javac on a JVM on a 64-bit machine, the stack takes more space 15645 # since 64-bit pointers are pushed on the stach. Apparently, we need 15646 # to increase the stack space when javacing the JDK.... 15647 STACK_SIZE=1536 15648 fi 15649 15650 # Minimum amount of heap memory. 15651 15652 # Test if -Xms64M is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 15653 # If so, then append -Xms64M to boot_jdk_jvmargs 15654 FOUND_WARN=`$JAVA -Xms64M -version 2>&1 | grep -i warn` 15655 FOUND_VERSION=`$JAVA -Xms64M -version 2>&1 | grep " version \""` 15656 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15657 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M" 15658 fi 15659 15660 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15661 # Why does macosx need more heap? Its the huge JDK batch. 15662 15663 # Test if -Xmx1600M is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 15664 # If so, then append -Xmx1600M to boot_jdk_jvmargs 15665 FOUND_WARN=`$JAVA -Xmx1600M -version 2>&1 | grep -i warn` 15666 FOUND_VERSION=`$JAVA -Xmx1600M -version 2>&1 | grep " version \""` 15667 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15668 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M" 15669 fi 15670 15671 else 15672 15673 # Test if -Xmx1100M is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 15674 # If so, then append -Xmx1100M to boot_jdk_jvmargs 15675 FOUND_WARN=`$JAVA -Xmx1100M -version 2>&1 | grep -i warn` 15676 FOUND_VERSION=`$JAVA -Xmx1100M -version 2>&1 | grep " version \""` 15677 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15678 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M" 15679 fi 15680 15681 fi 15682 # When is adding -client something that speeds up the JVM? 15683 # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA]) 15684 15685 # Test if -XX:PermSize=32m is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 15686 # If so, then append -XX:PermSize=32m to boot_jdk_jvmargs 15687 FOUND_WARN=`$JAVA -XX:PermSize=32m -version 2>&1 | grep -i warn` 15688 FOUND_VERSION=`$JAVA -XX:PermSize=32m -version 2>&1 | grep " version \""` 15689 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15690 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:PermSize=32m" 15691 fi 15692 15693 15694 # Test if -XX:MaxPermSize=160m is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 15695 # If so, then append -XX:MaxPermSize=160m to boot_jdk_jvmargs 15696 FOUND_WARN=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep -i warn` 15697 FOUND_VERSION=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep " version \""` 15698 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15699 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:MaxPermSize=160m" 15700 fi 15701 15702 15703 # Test if -XX:ThreadStackSize=$STACK_SIZE is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 15704 # If so, then append -XX:ThreadStackSize=$STACK_SIZE to boot_jdk_jvmargs 15705 FOUND_WARN=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep -i warn` 15706 FOUND_VERSION=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep " version \""` 15707 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15708 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE" 15709 fi 15710 15711 # Disable special log output when a debug build is used as Boot JDK... 15712 15713 # Test if -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 15714 # If so, then append -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput to boot_jdk_jvmargs 15715 FOUND_WARN=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep -i warn` 15716 FOUND_VERSION=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep " version \""` 15717 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15718 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 15719 fi 15720 15721 fi 15722 15723 BOOT_JDK_JVMARGS=$boot_jdk_jvmargs 15724 15725 15726 15727 ############################################################################### 15728 # 15729 # Configure the sources to use. We can add or override individual directories. 15730 # 15731 ############################################################################### 15732 15733 15734 15735 # Where are the sources. Any of these can be overridden 15736 # using --with-override-corba and the likes. 15737 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 15738 CORBA_TOPDIR="$SRC_ROOT/corba" 15739 JAXP_TOPDIR="$SRC_ROOT/jaxp" 15740 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 15741 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 15742 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 15743 JDK_TOPDIR="$SRC_ROOT/jdk" 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 ############################################################################### 15755 # 15756 # Pickup additional source for a component from outside of the source root 15757 # or override source for a component. 15758 # 15759 15760 # Check whether --with-add-source-root was given. 15761 if test "${with_add_source_root+set}" = set; then : 15762 withval=$with_add_source_root; 15763 fi 15764 15765 15766 15767 # Check whether --with-override-source-root was given. 15768 if test "${with_override_source_root+set}" = set; then : 15769 withval=$with_override_source_root; 15770 fi 15771 15772 15773 15774 # Check whether --with-adds-and-overrides was given. 15775 if test "${with_adds_and_overrides+set}" = set; then : 15776 withval=$with_adds_and_overrides; 15777 fi 15778 15779 15780 if test "x$with_adds_and_overrides" != x; then 15781 with_add_source_root="$with_adds_and_overrides/adds" 15782 with_override_source_root="$with_adds_and_overrides/overrides" 15783 fi 15784 15785 if test "x$with_add_source_root" != x; then 15786 if ! test -d $with_add_source_root; then 15787 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 15788 fi 15789 CURDIR="$PWD" 15790 cd "$with_add_source_root" 15791 ADD_SRC_ROOT="`pwd`" 15792 cd "$CURDIR" 15793 # Verify that the addon source root does not have any root makefiles. 15794 # If it does, then it is usually an error, prevent this. 15795 if test -f $with_add_source_root/langtools/makefiles/Makefile || \ 15796 test -f $with_add_source_root/langtools/make/Makefile; then 15797 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 15798 fi 15799 if test -f $with_add_source_root/corba/makefiles/Makefile || \ 15800 test -f $with_add_source_root/corba/make/Makefile; then 15801 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 15802 fi 15803 if test -f $with_add_source_root/jaxp/makefiles/Makefile || \ 15804 test -f $with_add_source_root/jaxp/make/Makefile; then 15805 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 15806 fi 15807 if test -f $with_add_source_root/jaxws/makefiles/Makefile || \ 15808 test -f $with_add_source_root/jaxws/make/Makefile; then 15809 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 15810 fi 15811 if test -f $with_add_source_root/hotspot/makefiles/Makefile || \ 15812 test -f $with_add_source_root/hotspot/make/Makefile; then 15813 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 15814 fi 15815 if test -f $with_add_source_root/jdk/makefiles/Makefile || \ 15816 test -f $with_add_source_root/jdk/make/Makefile; then 15817 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 15818 fi 15819 fi 15820 15821 15822 if test "x$with_override_source_root" != x; then 15823 if ! test -d $with_override_source_root; then 15824 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 15825 fi 15826 CURDIR="$PWD" 15827 cd "$with_override_source_root" 15828 OVERRIDE_SRC_ROOT="`pwd`" 15829 cd "$CURDIR" 15830 if test -f $with_override_source_root/langtools/makefiles/Makefile || \ 15831 test -f $with_override_source_root/langtools/make/Makefile; then 15832 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 15833 fi 15834 if test -f $with_override_source_root/corba/makefiles/Makefile || \ 15835 test -f $with_override_source_root/corba/make/Makefile; then 15836 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 15837 fi 15838 if test -f $with_override_source_root/jaxp/makefiles/Makefile || \ 15839 test -f $with_override_source_root/jaxp/make/Makefile; then 15840 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 15841 fi 15842 if test -f $with_override_source_root/jaxws/makefiles/Makefile || \ 15843 test -f $with_override_source_root/jaxws/make/Makefile; then 15844 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 15845 fi 15846 if test -f $with_override_source_root/hotspot/makefiles/Makefile || \ 15847 test -f $with_override_source_root/hotspot/make/Makefile; then 15848 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 15849 fi 15850 if test -f $with_override_source_root/jdk/makefiles/Makefile || \ 15851 test -f $with_override_source_root/jdk/make/Makefile; then 15852 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 15853 fi 15854 fi 15855 15856 15857 ############################################################################### 15858 # 15859 # Override a repo completely, this is used for example when you have 3 small 15860 # development sandboxes of the langtools sources and want to avoid having 3 full 15861 # OpenJDK sources checked out on disk. 15862 # 15863 # Assuming that the 3 langtools sandboxes are located here: 15864 # /home/fredrik/sandbox1/langtools 15865 # /home/fredrik/sandbox2/langtools 15866 # /home/fredrik/sandbox3/langtools 15867 # 15868 # From the source root you create build subdirs manually: 15869 # mkdir -p build1 build2 build3 15870 # in each build directory run: 15871 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 15872 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 15873 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 15874 # 15875 15876 15877 # Check whether --with-override-langtools was given. 15878 if test "${with_override_langtools+set}" = set; then : 15879 withval=$with_override_langtools; 15880 fi 15881 15882 15883 15884 # Check whether --with-override-corba was given. 15885 if test "${with_override_corba+set}" = set; then : 15886 withval=$with_override_corba; 15887 fi 15888 15889 15890 15891 # Check whether --with-override-jaxp was given. 15892 if test "${with_override_jaxp+set}" = set; then : 15893 withval=$with_override_jaxp; 15894 fi 15895 15896 15897 15898 # Check whether --with-override-jaxws was given. 15899 if test "${with_override_jaxws+set}" = set; then : 15900 withval=$with_override_jaxws; 15901 fi 15902 15903 15904 15905 # Check whether --with-override-hotspot was given. 15906 if test "${with_override_hotspot+set}" = set; then : 15907 withval=$with_override_hotspot; 15908 fi 15909 15910 15911 15912 # Check whether --with-override-jdk was given. 15913 if test "${with_override_jdk+set}" = set; then : 15914 withval=$with_override_jdk; 15915 fi 15916 15917 15918 if test "x$with_override_langtools" != x; then 15919 CURDIR="$PWD" 15920 cd "$with_override_langtools" 15921 LANGTOOLS_TOPDIR="`pwd`" 15922 cd "$CURDIR" 15923 if ! test -f $LANGTOOLS_TOPDIR/makefiles/Makefile; then 15924 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 15925 fi 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 15927 $as_echo_n "checking if langtools should be overridden... " >&6; } 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 15929 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 15930 fi 15931 if test "x$with_override_corba" != x; then 15932 CURDIR="$PWD" 15933 cd "$with_override_corba" 15934 CORBA_TOPDIR="`pwd`" 15935 cd "$CURDIR" 15936 if ! test -f $CORBA_TOPDIR/makefiles/Makefile; then 15937 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 15938 fi 15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 15940 $as_echo_n "checking if corba should be overridden... " >&6; } 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 15942 $as_echo "yes with $CORBA_TOPDIR" >&6; } 15943 fi 15944 if test "x$with_override_jaxp" != x; then 15945 CURDIR="$PWD" 15946 cd "$with_override_jaxp" 15947 JAXP_TOPDIR="`pwd`" 15948 cd "$CURDIR" 15949 if ! test -f $JAXP_TOPDIR/makefiles/Makefile; then 15950 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 15951 fi 15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 15953 $as_echo_n "checking if jaxp should be overridden... " >&6; } 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 15955 $as_echo "yes with $JAXP_TOPDIR" >&6; } 15956 fi 15957 if test "x$with_override_jaxws" != x; then 15958 CURDIR="$PWD" 15959 cd "$with_override_jaxws" 15960 JAXWS_TOPDIR="`pwd`" 15961 cd "$CURDIR" 15962 if ! test -f $JAXWS_TOPDIR/makefiles/Makefile; then 15963 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 15964 fi 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 15966 $as_echo_n "checking if jaxws should be overridden... " >&6; } 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 15968 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 15969 fi 15970 if test "x$with_override_hotspot" != x; then 15971 CURDIR="$PWD" 15972 cd "$with_override_hotspot" 15973 HOTSPOT_TOPDIR="`pwd`" 15974 cd "$CURDIR" 15975 if ! test -f $HOTSPOT_TOPDIR/make/Makefile && \ 15976 ! test -f $HOTSPOT_TOPDIR/makefiles/Makefile; then 15977 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 15978 fi 15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 15980 $as_echo_n "checking if hotspot should be overridden... " >&6; } 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 15982 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 15983 fi 15984 if test "x$with_override_nashorn" != x; then 15985 CURDIR="$PWD" 15986 cd "$with_override_nashorn" 15987 NASHORN_TOPDIR="`pwd`" 15988 cd "$CURDIR" 15989 if ! test -f $NASHORN_TOPDIR/makefiles/BuildNashorn.gmk; then 15990 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 15991 fi 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 15993 $as_echo_n "checking if nashorn should be overridden... " >&6; } 15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 15995 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 15996 fi 15997 if test "x$with_override_jdk" != x; then 15998 CURDIR="$PWD" 15999 cd "$with_override_jdk" 16000 JDK_TOPDIR="`pwd`" 16001 cd "$CURDIR" 16002 if ! test -f $JDK_TOPDIR/makefiles/Makefile; then 16003 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 16004 fi 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 16006 $as_echo_n "checking if JDK should be overridden... " >&6; } 16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 16008 $as_echo "yes with $JDK_TOPDIR" >&6; } 16009 fi 16010 16011 16012 16013 BUILD_OUTPUT="$OUTPUT_ROOT" 16014 16015 16016 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 16017 BUILD_HOTSPOT=true 16018 16019 16020 16021 # Check whether --with-import-hotspot was given. 16022 if test "${with_import_hotspot+set}" = set; then : 16023 withval=$with_import_hotspot; 16024 fi 16025 16026 if test "x$with_import_hotspot" != x; then 16027 CURDIR="$PWD" 16028 cd "$with_import_hotspot" 16029 HOTSPOT_DIST="`pwd`" 16030 cd "$CURDIR" 16031 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 16032 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 16033 fi 16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 16035 $as_echo_n "checking if hotspot should be imported... " >&6; } 16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 16037 $as_echo "yes from $HOTSPOT_DIST" >&6; } 16038 BUILD_HOTSPOT=false 16039 fi 16040 16041 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 16042 16043 16044 ############################################################################### 16045 # 16046 # Setup the toolchain (compilers etc), i.e. the tools that need to be 16047 # cross-compilation aware. 16048 # 16049 ############################################################################### 16050 16051 16052 ############################################################################### 16053 # 16054 # Configure the development tool paths and potential sysroot. 16055 # 16056 ac_ext=cpp 16057 ac_cpp='$CXXCPP $CPPFLAGS' 16058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16061 16062 16063 # The option used to specify the target .o,.a or .so file. 16064 # When compiling, how to specify the to be created object file. 16065 CC_OUT_OPTION='-o$(SPACE)' 16066 # When linking, how to specify the to be created executable. 16067 EXE_OUT_OPTION='-o$(SPACE)' 16068 # When linking, how to specify the to be created dynamically linkable library. 16069 LD_OUT_OPTION='-o$(SPACE)' 16070 # When archiving, how to specify the to be create static archive for object files. 16071 AR_OUT_OPTION='rcs$(SPACE)' 16072 16073 16074 16075 16076 16077 # Locate the actual tools 16078 16079 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16080 16081 # Store path to cygwin link.exe to help excluding it when searching for 16082 # VS linker. This must be done before changing the PATH when looking for VS. 16083 # Extract the first word of "link", so it can be a program name with args. 16084 set dummy link; ac_word=$2 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16086 $as_echo_n "checking for $ac_word... " >&6; } 16087 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 16088 $as_echo_n "(cached) " >&6 16089 else 16090 case $CYGWIN_LINK in 16091 [\\/]* | ?:[\\/]*) 16092 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 16093 ;; 16094 *) 16095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16096 for as_dir in $PATH 16097 do 16098 IFS=$as_save_IFS 16099 test -z "$as_dir" && as_dir=. 16100 for ac_exec_ext in '' $ac_executable_extensions; do 16101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16102 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 16103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16104 break 2 16105 fi 16106 done 16107 done 16108 IFS=$as_save_IFS 16109 16110 ;; 16111 esac 16112 fi 16113 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 16114 if test -n "$CYGWIN_LINK"; then 16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 16116 $as_echo "$CYGWIN_LINK" >&6; } 16117 else 16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16119 $as_echo "no" >&6; } 16120 fi 16121 16122 16123 if test "x$CYGWIN_LINK" != x; then 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 16125 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 16126 "$CYGWIN_LINK" --version > /dev/null 16127 if test $? -eq 0 ; then 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16129 $as_echo "yes" >&6; } 16130 else 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16132 $as_echo "no" >&6; } 16133 # This might be the VS linker. Don't exclude it later on. 16134 CYGWIN_LINK="" 16135 fi 16136 fi 16137 16138 # First-hand choice is to locate and run the vsvars bat file. 16139 16140 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16141 VCVARSFILE="vc/bin/vcvars32.bat" 16142 else 16143 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 16144 fi 16145 16146 VS_ENV_CMD="" 16147 VS_ENV_ARGS="" 16148 if test "x$with_toolsdir" != x; then 16149 16150 if test "x$VS_ENV_CMD" = x; then 16151 VS100BASE="$with_toolsdir/../.." 16152 METHOD="--with-tools-dir" 16153 16154 windows_path="$VS100BASE" 16155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16156 unix_path=`$CYGPATH -u "$windows_path"` 16157 VS100BASE="$unix_path" 16158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16160 VS100BASE="$unix_path" 16161 fi 16162 16163 if test -d "$VS100BASE"; then 16164 if test -f "$VS100BASE/$VCVARSFILE"; then 16165 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16166 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16167 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16168 else 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16170 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16172 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16173 fi 16174 fi 16175 fi 16176 16177 fi 16178 16179 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 16180 # Having specified an argument which is incorrect will produce an instant failure; 16181 # we should not go on looking 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 16183 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 16185 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 16186 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 16187 fi 16188 16189 if test "x$ProgramW6432" != x; then 16190 16191 if test "x$VS_ENV_CMD" = x; then 16192 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 16193 METHOD="well-known name" 16194 16195 windows_path="$WIN_SDK_BASE" 16196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16197 unix_path=`$CYGPATH -u "$windows_path"` 16198 WIN_SDK_BASE="$unix_path" 16199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16201 WIN_SDK_BASE="$unix_path" 16202 fi 16203 16204 if test -d "$WIN_SDK_BASE"; then 16205 # There have been cases of partial or broken SDK installations. A missing 16206 # lib dir is not going to work. 16207 if test ! -d "$WIN_SDK_BASE/../lib"; then 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16209 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16210 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16211 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16212 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16213 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16214 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16215 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16216 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16217 VS_ENV_ARGS="/x86" 16218 else 16219 VS_ENV_ARGS="/x64" 16220 fi 16221 else 16222 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16223 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16225 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16226 fi 16227 fi 16228 fi 16229 16230 fi 16231 if test "x$PROGRAMW6432" != x; then 16232 16233 if test "x$VS_ENV_CMD" = x; then 16234 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 16235 METHOD="well-known name" 16236 16237 windows_path="$WIN_SDK_BASE" 16238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16239 unix_path=`$CYGPATH -u "$windows_path"` 16240 WIN_SDK_BASE="$unix_path" 16241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16243 WIN_SDK_BASE="$unix_path" 16244 fi 16245 16246 if test -d "$WIN_SDK_BASE"; then 16247 # There have been cases of partial or broken SDK installations. A missing 16248 # lib dir is not going to work. 16249 if test ! -d "$WIN_SDK_BASE/../lib"; then 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16251 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16253 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16254 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16256 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16257 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16258 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16259 VS_ENV_ARGS="/x86" 16260 else 16261 VS_ENV_ARGS="/x64" 16262 fi 16263 else 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16265 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16267 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16268 fi 16269 fi 16270 fi 16271 16272 fi 16273 if test "x$PROGRAMFILES" != x; then 16274 16275 if test "x$VS_ENV_CMD" = x; then 16276 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 16277 METHOD="well-known name" 16278 16279 windows_path="$WIN_SDK_BASE" 16280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16281 unix_path=`$CYGPATH -u "$windows_path"` 16282 WIN_SDK_BASE="$unix_path" 16283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16285 WIN_SDK_BASE="$unix_path" 16286 fi 16287 16288 if test -d "$WIN_SDK_BASE"; then 16289 # There have been cases of partial or broken SDK installations. A missing 16290 # lib dir is not going to work. 16291 if test ! -d "$WIN_SDK_BASE/../lib"; then 16292 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16293 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16295 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16296 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16298 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16299 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16300 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16301 VS_ENV_ARGS="/x86" 16302 else 16303 VS_ENV_ARGS="/x64" 16304 fi 16305 else 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16307 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16309 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16310 fi 16311 fi 16312 fi 16313 16314 fi 16315 16316 if test "x$VS_ENV_CMD" = x; then 16317 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 16318 METHOD="well-known name" 16319 16320 windows_path="$WIN_SDK_BASE" 16321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16322 unix_path=`$CYGPATH -u "$windows_path"` 16323 WIN_SDK_BASE="$unix_path" 16324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16326 WIN_SDK_BASE="$unix_path" 16327 fi 16328 16329 if test -d "$WIN_SDK_BASE"; then 16330 # There have been cases of partial or broken SDK installations. A missing 16331 # lib dir is not going to work. 16332 if test ! -d "$WIN_SDK_BASE/../lib"; then 16333 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16334 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16335 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16336 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16337 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16338 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16339 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16340 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16341 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16342 VS_ENV_ARGS="/x86" 16343 else 16344 VS_ENV_ARGS="/x64" 16345 fi 16346 else 16347 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16348 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16349 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16350 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16351 fi 16352 fi 16353 fi 16354 16355 16356 if test "x$VS_ENV_CMD" = x; then 16357 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 16358 METHOD="well-known name" 16359 16360 windows_path="$WIN_SDK_BASE" 16361 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16362 unix_path=`$CYGPATH -u "$windows_path"` 16363 WIN_SDK_BASE="$unix_path" 16364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16365 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16366 WIN_SDK_BASE="$unix_path" 16367 fi 16368 16369 if test -d "$WIN_SDK_BASE"; then 16370 # There have been cases of partial or broken SDK installations. A missing 16371 # lib dir is not going to work. 16372 if test ! -d "$WIN_SDK_BASE/../lib"; then 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16374 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16375 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16376 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16377 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16379 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16380 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16381 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16382 VS_ENV_ARGS="/x86" 16383 else 16384 VS_ENV_ARGS="/x64" 16385 fi 16386 else 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16388 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16390 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16391 fi 16392 fi 16393 fi 16394 16395 16396 if test "x$VS100COMNTOOLS" != x; then 16397 16398 if test "x$VS_ENV_CMD" = x; then 16399 VS100BASE="$VS100COMNTOOLS/../.." 16400 METHOD="VS100COMNTOOLS variable" 16401 16402 windows_path="$VS100BASE" 16403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16404 unix_path=`$CYGPATH -u "$windows_path"` 16405 VS100BASE="$unix_path" 16406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16408 VS100BASE="$unix_path" 16409 fi 16410 16411 if test -d "$VS100BASE"; then 16412 if test -f "$VS100BASE/$VCVARSFILE"; then 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16414 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16415 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16416 else 16417 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16418 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16420 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16421 fi 16422 fi 16423 fi 16424 16425 fi 16426 if test "x$PROGRAMFILES" != x; then 16427 16428 if test "x$VS_ENV_CMD" = x; then 16429 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 16430 METHOD="well-known name" 16431 16432 windows_path="$VS100BASE" 16433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16434 unix_path=`$CYGPATH -u "$windows_path"` 16435 VS100BASE="$unix_path" 16436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16438 VS100BASE="$unix_path" 16439 fi 16440 16441 if test -d "$VS100BASE"; then 16442 if test -f "$VS100BASE/$VCVARSFILE"; then 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16444 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16445 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16446 else 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16448 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16450 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16451 fi 16452 fi 16453 fi 16454 16455 fi 16456 16457 if test "x$VS_ENV_CMD" = x; then 16458 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 16459 METHOD="well-known name" 16460 16461 windows_path="$VS100BASE" 16462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16463 unix_path=`$CYGPATH -u "$windows_path"` 16464 VS100BASE="$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 VS100BASE="$unix_path" 16468 fi 16469 16470 if test -d "$VS100BASE"; then 16471 if test -f "$VS100BASE/$VCVARSFILE"; then 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16473 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16474 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16475 else 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16477 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16478 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16479 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16480 fi 16481 fi 16482 fi 16483 16484 16485 if test "x$VS_ENV_CMD" = x; then 16486 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 16487 METHOD="well-known name" 16488 16489 windows_path="$VS100BASE" 16490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16491 unix_path=`$CYGPATH -u "$windows_path"` 16492 VS100BASE="$unix_path" 16493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16494 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16495 VS100BASE="$unix_path" 16496 fi 16497 16498 if test -d "$VS100BASE"; then 16499 if test -f "$VS100BASE/$VCVARSFILE"; then 16500 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16501 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16502 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16503 else 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16505 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16507 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16508 fi 16509 fi 16510 fi 16511 16512 16513 if test "x$VS_ENV_CMD" != x; then 16514 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 16515 16516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16517 16518 # First separate the path from the arguments. This will split at the first 16519 # space. 16520 complete="$VS_ENV_CMD" 16521 path="${complete%% *}" 16522 tmp="$complete EOL" 16523 arguments="${tmp#* }" 16524 16525 # Input might be given as Windows format, start by converting to 16526 # unix format. 16527 new_path=`$CYGPATH -u "$path"` 16528 16529 # Now try to locate executable using which 16530 new_path=`$WHICH "$new_path" 2> /dev/null` 16531 # bat and cmd files are not always considered executable in cygwin causing which 16532 # to not find them 16533 if test "x$new_path" = x \ 16534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16536 new_path=`$CYGPATH -u "$path"` 16537 fi 16538 if test "x$new_path" = x; then 16539 # Oops. Which didn't find the executable. 16540 # The splitting of arguments from the executable at a space might have been incorrect, 16541 # since paths with space are more likely in Windows. Give it another try with the whole 16542 # argument. 16543 path="$complete" 16544 arguments="EOL" 16545 new_path=`$CYGPATH -u "$path"` 16546 new_path=`$WHICH "$new_path" 2> /dev/null` 16547 # bat and cmd files are not always considered executable in cygwin causing which 16548 # to not find them 16549 if test "x$new_path" = x \ 16550 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16551 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16552 new_path=`$CYGPATH -u "$path"` 16553 fi 16554 if test "x$new_path" = x; then 16555 # It's still not found. Now this is an unrecoverable error. 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 16557 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 16558 has_space=`$ECHO "$complete" | $GREP " "` 16559 if test "x$has_space" != x; then 16560 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16561 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16562 fi 16563 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 16564 fi 16565 fi 16566 16567 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16568 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16569 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16570 # "foo.exe" is OK but "foo" is an error. 16571 # 16572 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16573 # It is also a way to make sure we got the proper file name for the real test later on. 16574 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16575 if test "x$test_shortpath" = x; then 16576 # Short path failed, file does not exist as specified. 16577 # Try adding .exe or .cmd 16578 if test -f "${new_path}.exe"; then 16579 input_to_shortpath="${new_path}.exe" 16580 elif test -f "${new_path}.cmd"; then 16581 input_to_shortpath="${new_path}.cmd" 16582 else 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 16584 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16586 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16587 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 16588 fi 16589 else 16590 input_to_shortpath="$new_path" 16591 fi 16592 16593 # Call helper function which possibly converts this using DOS-style short mode. 16594 # If so, the updated path is stored in $new_path. 16595 new_path="$input_to_shortpath" 16596 16597 input_path="$input_to_shortpath" 16598 # Check if we need to convert this using DOS-style short mode. If the path 16599 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16600 # take no chances and rewrite it. 16601 # Note: m4 eats our [], so we need to use [ and ] instead. 16602 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16603 if test "x$has_forbidden_chars" != x; then 16604 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16605 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16606 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16607 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16608 # Going to short mode and back again did indeed matter. Since short mode is 16609 # case insensitive, let's make it lowercase to improve readability. 16610 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16611 # Now convert it back to Unix-stile (cygpath) 16612 input_path=`$CYGPATH -u "$shortmode_path"` 16613 new_path="$input_path" 16614 fi 16615 fi 16616 16617 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16618 if test "x$test_cygdrive_prefix" = x; then 16619 # As a simple fix, exclude /usr/bin since it's not a real path. 16620 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16621 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16622 # a path prefixed by /cygdrive for fixpath to work. 16623 new_path="$CYGWIN_ROOT_PATH$input_path" 16624 fi 16625 fi 16626 16627 # remove trailing .exe if any 16628 new_path="${new_path/%.exe/}" 16629 16630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16631 16632 # First separate the path from the arguments. This will split at the first 16633 # space. 16634 complete="$VS_ENV_CMD" 16635 path="${complete%% *}" 16636 tmp="$complete EOL" 16637 arguments="${tmp#* }" 16638 16639 # Input might be given as Windows format, start by converting to 16640 # unix format. 16641 new_path="$path" 16642 16643 windows_path="$new_path" 16644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16645 unix_path=`$CYGPATH -u "$windows_path"` 16646 new_path="$unix_path" 16647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16649 new_path="$unix_path" 16650 fi 16651 16652 16653 # Now try to locate executable using which 16654 new_path=`$WHICH "$new_path" 2> /dev/null` 16655 16656 if test "x$new_path" = x; then 16657 # Oops. Which didn't find the executable. 16658 # The splitting of arguments from the executable at a space might have been incorrect, 16659 # since paths with space are more likely in Windows. Give it another try with the whole 16660 # argument. 16661 path="$complete" 16662 arguments="EOL" 16663 new_path="$path" 16664 16665 windows_path="$new_path" 16666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16667 unix_path=`$CYGPATH -u "$windows_path"` 16668 new_path="$unix_path" 16669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16671 new_path="$unix_path" 16672 fi 16673 16674 16675 new_path=`$WHICH "$new_path" 2> /dev/null` 16676 16677 if test "x$new_path" = x; then 16678 # It's still not found. Now this is an unrecoverable error. 16679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 16680 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 16681 has_space=`$ECHO "$complete" | $GREP " "` 16682 if test "x$has_space" != x; then 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16684 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16685 fi 16686 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 16687 fi 16688 fi 16689 16690 # Now new_path has a complete unix path to the binary 16691 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16692 # Keep paths in /bin as-is, but remove trailing .exe if any 16693 new_path="${new_path/%.exe/}" 16694 # Do not save /bin paths to all_fixpath_prefixes! 16695 else 16696 # Not in mixed or Windows style, start by that. 16697 new_path=`cmd //c echo $new_path` 16698 16699 input_path="$new_path" 16700 # Check if we need to convert this using DOS-style short mode. If the path 16701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16702 # take no chances and rewrite it. 16703 # Note: m4 eats our [], so we need to use [ and ] instead. 16704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16705 if test "x$has_forbidden_chars" != x; then 16706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16707 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16708 fi 16709 16710 # Output is in $new_path 16711 16712 windows_path="$new_path" 16713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16714 unix_path=`$CYGPATH -u "$windows_path"` 16715 new_path="$unix_path" 16716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16718 new_path="$unix_path" 16719 fi 16720 16721 # remove trailing .exe if any 16722 new_path="${new_path/%.exe/}" 16723 16724 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16725 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16726 fi 16727 16728 else 16729 # We're on a posix platform. Hooray! :) 16730 # First separate the path from the arguments. This will split at the first 16731 # space. 16732 complete="$VS_ENV_CMD" 16733 path="${complete%% *}" 16734 tmp="$complete EOL" 16735 arguments="${tmp#* }" 16736 16737 # Cannot rely on the command "which" here since it doesn't always work. 16738 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16739 if test -z "$is_absolute_path"; then 16740 # Path to executable is not absolute. Find it. 16741 IFS_save="$IFS" 16742 IFS=: 16743 for p in $PATH; do 16744 if test -f "$p/$path" && test -x "$p/$path"; then 16745 new_path="$p/$path" 16746 break 16747 fi 16748 done 16749 IFS="$IFS_save" 16750 else 16751 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&5 16752 $as_echo "$as_me: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&6;} 16753 new_path="$path" 16754 fi 16755 16756 if test "x$new_path" = x; then 16757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 16758 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 16759 has_space=`$ECHO "$complete" | $GREP " "` 16760 if test "x$has_space" != x; then 16761 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16762 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16763 fi 16764 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 16765 fi 16766 fi 16767 16768 # Now join together the path and the arguments once again 16769 if test "x$arguments" != xEOL; then 16770 new_complete="$new_path ${arguments% *}" 16771 else 16772 new_complete="$new_path" 16773 fi 16774 16775 if test "x$complete" != "x$new_complete"; then 16776 VS_ENV_CMD="$new_complete" 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 16778 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 16779 fi 16780 16781 16782 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 16784 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 16785 cd $OUTPUT_ROOT 16786 # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted 16787 # to autoconf standards. 16788 16789 #---- 16790 16791 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment) 16792 # but calculate the difference in Cygwin environment before/after running it and then 16793 # apply the diff. 16794 16795 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 16796 _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"` 16797 _dosvs10varsall=`cygpath -a -w -s $_vs10varsall` 16798 _dosbash=`cygpath -a -w -s \`which bash\`.*` 16799 else 16800 _dosvs10varsall=`cmd //c echo $VS_ENV_CMD` 16801 _dosbash=`cmd //c echo \`which bash\`` 16802 fi 16803 16804 # generate the set of exported vars before/after the vs10 setup 16805 $ECHO "@echo off" > localdevenvtmp.bat 16806 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat 16807 $ECHO "call $_dosvs10varsall $VS_ENV_ARGS" >> localdevenvtmp.bat 16808 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat 16809 16810 # Now execute the newly created bat file. 16811 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys 16812 cmd /c localdevenvtmp.bat | cat 16813 16814 # apply the diff (less some non-vs10 vars named by "!") 16815 $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort 16816 $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort 16817 $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh 16818 16819 # cleanup 16820 $RM localdevenvtmp* 16821 #---- 16822 cd $CURDIR 16823 if test ! -s $OUTPUT_ROOT/localdevenv.sh; then 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16825 $as_echo "no" >&6; } 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 16827 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 16829 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 16831 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 16832 as_fn_error $? "Cannot continue" "$LINENO" 5 16833 fi 16834 16835 # Now set all paths and other env variables. This will allow the rest of 16836 # the configure script to find and run the compiler in the proper way. 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 16838 $as_echo "$as_me: Setting extracted environment variables" >&6;} 16839 . $OUTPUT_ROOT/localdevenv.sh 16840 else 16841 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 16842 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 16843 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 16844 fi 16845 16846 # At this point, we should have corrent variables in the environment, or we can't continue. 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 16848 $as_echo_n "checking for Visual Studio variables... " >&6; } 16849 16850 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 16851 if test "x$INCLUDE" = x || test "x$LIB" = x; then 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 16853 $as_echo "present but broken" >&6; } 16854 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 16855 else 16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16857 $as_echo "ok" >&6; } 16858 # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk. 16859 VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'` 16860 VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'` 16861 VS_PATH="$PATH" 16862 16863 16864 16865 fi 16866 else 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 16868 $as_echo "not found" >&6; } 16869 16870 if test "x$VS_ENV_CMD" = x; then 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 16872 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 16873 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 16874 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 16875 else 16876 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 16877 $as_echo "$as_me: Running the extraction script failed." >&6;} 16878 fi 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 16880 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 16882 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 16883 as_fn_error $? "Cannot continue" "$LINENO" 5 16884 fi 16885 16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 16887 $as_echo_n "checking for msvcr100.dll... " >&6; } 16888 16889 # Check whether --with-msvcr-dll was given. 16890 if test "${with_msvcr_dll+set}" = set; then : 16891 withval=$with_msvcr_dll; 16892 fi 16893 16894 if test "x$with_msvcr_dll" != x; then 16895 MSVCR_DLL="$with_msvcr_dll" 16896 else 16897 if test "x$VCINSTALLDIR" != x; then 16898 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16899 MSVCR_DLL=`find "$VCINSTALLDIR" -name msvcr100.dll | grep x64 | head --lines 1` 16900 else 16901 MSVCR_DLL=`find "$VCINSTALLDIR" -name msvcr100.dll | grep x86 | grep -v ia64 | grep -v x64 | head --lines 1` 16902 if test "x$MSVCR_DLL" = x; then 16903 MSVCR_DLL=`find "$VCINSTALLDIR" -name msvcr100.dll | head --lines 1` 16904 fi 16905 fi 16906 if test "x$MSVCR_DLL" != x; then 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: msvcr100.dll found in VCINSTALLDIR: $VCINSTALLDIR" >&5 16908 $as_echo "$as_me: msvcr100.dll found in VCINSTALLDIR: $VCINSTALLDIR" >&6;} 16909 else 16910 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: msvcr100.dll not found in VCINSTALLDIR: $VCINSTALLDIR" >&5 16911 $as_echo "$as_me: Warning: msvcr100.dll not found in VCINSTALLDIR: $VCINSTALLDIR" >&6;} 16912 fi 16913 fi 16914 if test "x$MSVCR_DLL" = x; then 16915 if test -f "$SYSTEMROOT/system32/msvcr100.dll"; then 16916 { $as_echo "$as_me:${as_lineno-$LINENO}: msvcr100.dll found in $SYSTEMROOT/system32" >&5 16917 $as_echo "$as_me: msvcr100.dll found in $SYSTEMROOT/system32" >&6;} 16918 MSVCR_DLL="$SYSTEMROOT/system32/msvcr100.dll" 16919 fi 16920 fi 16921 fi 16922 if test "x$MSVCR_DLL" = x; then 16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16924 $as_echo "no" >&6; } 16925 as_fn_error $? "Could not find msvcr100.dll !" "$LINENO" 5 16926 fi 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 16928 $as_echo "$MSVCR_DLL" >&6; } 16929 16930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16931 16932 # Input might be given as Windows format, start by converting to 16933 # unix format. 16934 path="$MSVCR_DLL" 16935 new_path=`$CYGPATH -u "$path"` 16936 16937 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16938 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16939 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16940 # "foo.exe" is OK but "foo" is an error. 16941 # 16942 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16943 # It is also a way to make sure we got the proper file name for the real test later on. 16944 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16945 if test "x$test_shortpath" = x; then 16946 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 16947 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 16948 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 16949 fi 16950 16951 # Call helper function which possibly converts this using DOS-style short mode. 16952 # If so, the updated path is stored in $new_path. 16953 16954 input_path="$new_path" 16955 # Check if we need to convert this using DOS-style short mode. If the path 16956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16957 # take no chances and rewrite it. 16958 # Note: m4 eats our [], so we need to use [ and ] instead. 16959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16960 if test "x$has_forbidden_chars" != x; then 16961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16962 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16963 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16964 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16965 # Going to short mode and back again did indeed matter. Since short mode is 16966 # case insensitive, let's make it lowercase to improve readability. 16967 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16968 # Now convert it back to Unix-stile (cygpath) 16969 input_path=`$CYGPATH -u "$shortmode_path"` 16970 new_path="$input_path" 16971 fi 16972 fi 16973 16974 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16975 if test "x$test_cygdrive_prefix" = x; then 16976 # As a simple fix, exclude /usr/bin since it's not a real path. 16977 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16978 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16979 # a path prefixed by /cygdrive for fixpath to work. 16980 new_path="$CYGWIN_ROOT_PATH$input_path" 16981 fi 16982 fi 16983 16984 16985 if test "x$path" != "x$new_path"; then 16986 MSVCR_DLL="$new_path" 16987 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 16988 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 16989 fi 16990 16991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16992 16993 path="$MSVCR_DLL" 16994 has_colon=`$ECHO $path | $GREP ^.:` 16995 new_path="$path" 16996 if test "x$has_colon" = x; then 16997 # Not in mixed or Windows style, start by that. 16998 new_path=`cmd //c echo $path` 16999 fi 17000 17001 17002 input_path="$new_path" 17003 # Check if we need to convert this using DOS-style short mode. If the path 17004 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17005 # take no chances and rewrite it. 17006 # Note: m4 eats our [], so we need to use [ and ] instead. 17007 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17008 if test "x$has_forbidden_chars" != x; then 17009 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17010 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17011 fi 17012 17013 17014 windows_path="$new_path" 17015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17016 unix_path=`$CYGPATH -u "$windows_path"` 17017 new_path="$unix_path" 17018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17020 new_path="$unix_path" 17021 fi 17022 17023 if test "x$path" != "x$new_path"; then 17024 MSVCR_DLL="$new_path" 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 17026 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 17027 fi 17028 17029 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17030 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17031 17032 else 17033 # We're on a posix platform. Hooray! :) 17034 path="$MSVCR_DLL" 17035 17036 if test ! -f "$path" && test ! -d "$path"; then 17037 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 17038 fi 17039 17040 has_space=`$ECHO "$path" | $GREP " "` 17041 if test "x$has_space" != x; then 17042 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 17043 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 17044 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17045 fi 17046 fi 17047 17048 17049 17050 17051 # Check whether --with-dxsdk was given. 17052 if test "${with_dxsdk+set}" = set; then : 17053 withval=$with_dxsdk; 17054 fi 17055 17056 17057 # Check whether --with-dxsdk-lib was given. 17058 if test "${with_dxsdk_lib+set}" = set; then : 17059 withval=$with_dxsdk_lib; 17060 fi 17061 17062 17063 # Check whether --with-dxsdk-include was given. 17064 if test "${with_dxsdk_include+set}" = set; then : 17065 withval=$with_dxsdk_include; 17066 fi 17067 17068 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK" >&5 17070 $as_echo_n "checking for DirectX SDK... " >&6; } 17071 17072 if test "x$with_dxsdk" != x; then 17073 dxsdk_path="$with_dxsdk" 17074 elif test "x$DXSDK_DIR" != x; then 17075 dxsdk_path="$DXSDK_DIR" 17076 elif test -d "C:/DXSDK"; then 17077 dxsdk_path="C:/DXSDK" 17078 else 17079 as_fn_error $? "Could not find the DirectX SDK" "$LINENO" 5 17080 fi 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dxsdk_path" >&5 17082 $as_echo "$dxsdk_path" >&6; } 17083 17084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17085 17086 # Input might be given as Windows format, start by converting to 17087 # unix format. 17088 path="$dxsdk_path" 17089 new_path=`$CYGPATH -u "$path"` 17090 17091 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17092 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17093 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17094 # "foo.exe" is OK but "foo" is an error. 17095 # 17096 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17097 # It is also a way to make sure we got the proper file name for the real test later on. 17098 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17099 if test "x$test_shortpath" = x; then 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&5 17101 $as_echo "$as_me: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&6;} 17102 as_fn_error $? "Cannot locate the the path of dxsdk_path" "$LINENO" 5 17103 fi 17104 17105 # Call helper function which possibly converts this using DOS-style short mode. 17106 # If so, the updated path is stored in $new_path. 17107 17108 input_path="$new_path" 17109 # Check if we need to convert this using DOS-style short mode. If the path 17110 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17111 # take no chances and rewrite it. 17112 # Note: m4 eats our [], so we need to use [ and ] instead. 17113 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17114 if test "x$has_forbidden_chars" != x; then 17115 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17116 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17117 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17118 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17119 # Going to short mode and back again did indeed matter. Since short mode is 17120 # case insensitive, let's make it lowercase to improve readability. 17121 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17122 # Now convert it back to Unix-stile (cygpath) 17123 input_path=`$CYGPATH -u "$shortmode_path"` 17124 new_path="$input_path" 17125 fi 17126 fi 17127 17128 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17129 if test "x$test_cygdrive_prefix" = x; then 17130 # As a simple fix, exclude /usr/bin since it's not a real path. 17131 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17132 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17133 # a path prefixed by /cygdrive for fixpath to work. 17134 new_path="$CYGWIN_ROOT_PATH$input_path" 17135 fi 17136 fi 17137 17138 17139 if test "x$path" != "x$new_path"; then 17140 dxsdk_path="$new_path" 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting dxsdk_path to \"$new_path\"" >&5 17142 $as_echo "$as_me: Rewriting dxsdk_path to \"$new_path\"" >&6;} 17143 fi 17144 17145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17146 17147 path="$dxsdk_path" 17148 has_colon=`$ECHO $path | $GREP ^.:` 17149 new_path="$path" 17150 if test "x$has_colon" = x; then 17151 # Not in mixed or Windows style, start by that. 17152 new_path=`cmd //c echo $path` 17153 fi 17154 17155 17156 input_path="$new_path" 17157 # Check if we need to convert this using DOS-style short mode. If the path 17158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17159 # take no chances and rewrite it. 17160 # Note: m4 eats our [], so we need to use [ and ] instead. 17161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17162 if test "x$has_forbidden_chars" != x; then 17163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17164 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17165 fi 17166 17167 17168 windows_path="$new_path" 17169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17170 unix_path=`$CYGPATH -u "$windows_path"` 17171 new_path="$unix_path" 17172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17174 new_path="$unix_path" 17175 fi 17176 17177 if test "x$path" != "x$new_path"; then 17178 dxsdk_path="$new_path" 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting dxsdk_path to \"$new_path\"" >&5 17180 $as_echo "$as_me: Rewriting dxsdk_path to \"$new_path\"" >&6;} 17181 fi 17182 17183 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17184 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17185 17186 else 17187 # We're on a posix platform. Hooray! :) 17188 path="$dxsdk_path" 17189 17190 if test ! -f "$path" && test ! -d "$path"; then 17191 as_fn_error $? "The path of dxsdk_path, which resolves as \"$path\", is not found." "$LINENO" 5 17192 fi 17193 17194 has_space=`$ECHO "$path" | $GREP " "` 17195 if test "x$has_space" != x; then 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&5 17197 $as_echo "$as_me: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&6;} 17198 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17199 fi 17200 fi 17201 17202 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK lib dir" >&5 17204 $as_echo_n "checking for DirectX SDK lib dir... " >&6; } 17205 if test "x$with_dxsdk_lib" != x; then 17206 DXSDK_LIB_PATH="$with_dxsdk_lib" 17207 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 17208 DXSDK_LIB_PATH="$dxsdk_path/Lib/x64" 17209 else 17210 DXSDK_LIB_PATH="$dxsdk_path/Lib" 17211 fi 17212 # dsound.lib is linked to in jsoundds 17213 if test ! -f "$DXSDK_LIB_PATH/dsound.lib"; then 17214 as_fn_error $? "Invalid DirectX SDK lib dir" "$LINENO" 5 17215 fi 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DXSDK_LIB_PATH" >&5 17217 $as_echo "$DXSDK_LIB_PATH" >&6; } 17218 17219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17220 17221 # Input might be given as Windows format, start by converting to 17222 # unix format. 17223 path="$DXSDK_LIB_PATH" 17224 new_path=`$CYGPATH -u "$path"` 17225 17226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17229 # "foo.exe" is OK but "foo" is an error. 17230 # 17231 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17232 # It is also a way to make sure we got the proper file name for the real test later on. 17233 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17234 if test "x$test_shortpath" = x; then 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&5 17236 $as_echo "$as_me: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 17237 as_fn_error $? "Cannot locate the the path of DXSDK_LIB_PATH" "$LINENO" 5 17238 fi 17239 17240 # Call helper function which possibly converts this using DOS-style short mode. 17241 # If so, the updated path is stored in $new_path. 17242 17243 input_path="$new_path" 17244 # Check if we need to convert this using DOS-style short mode. If the path 17245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17246 # take no chances and rewrite it. 17247 # Note: m4 eats our [], so we need to use [ and ] instead. 17248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17249 if test "x$has_forbidden_chars" != x; then 17250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17251 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17252 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17253 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17254 # Going to short mode and back again did indeed matter. Since short mode is 17255 # case insensitive, let's make it lowercase to improve readability. 17256 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17257 # Now convert it back to Unix-stile (cygpath) 17258 input_path=`$CYGPATH -u "$shortmode_path"` 17259 new_path="$input_path" 17260 fi 17261 fi 17262 17263 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17264 if test "x$test_cygdrive_prefix" = x; then 17265 # As a simple fix, exclude /usr/bin since it's not a real path. 17266 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17267 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17268 # a path prefixed by /cygdrive for fixpath to work. 17269 new_path="$CYGWIN_ROOT_PATH$input_path" 17270 fi 17271 fi 17272 17273 17274 if test "x$path" != "x$new_path"; then 17275 DXSDK_LIB_PATH="$new_path" 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&5 17277 $as_echo "$as_me: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&6;} 17278 fi 17279 17280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17281 17282 path="$DXSDK_LIB_PATH" 17283 has_colon=`$ECHO $path | $GREP ^.:` 17284 new_path="$path" 17285 if test "x$has_colon" = x; then 17286 # Not in mixed or Windows style, start by that. 17287 new_path=`cmd //c echo $path` 17288 fi 17289 17290 17291 input_path="$new_path" 17292 # Check if we need to convert this using DOS-style short mode. If the path 17293 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17294 # take no chances and rewrite it. 17295 # Note: m4 eats our [], so we need to use [ and ] instead. 17296 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17297 if test "x$has_forbidden_chars" != x; then 17298 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17299 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17300 fi 17301 17302 17303 windows_path="$new_path" 17304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17305 unix_path=`$CYGPATH -u "$windows_path"` 17306 new_path="$unix_path" 17307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17309 new_path="$unix_path" 17310 fi 17311 17312 if test "x$path" != "x$new_path"; then 17313 DXSDK_LIB_PATH="$new_path" 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&5 17315 $as_echo "$as_me: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&6;} 17316 fi 17317 17318 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17319 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17320 17321 else 17322 # We're on a posix platform. Hooray! :) 17323 path="$DXSDK_LIB_PATH" 17324 17325 if test ! -f "$path" && test ! -d "$path"; then 17326 as_fn_error $? "The path of DXSDK_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 17327 fi 17328 17329 has_space=`$ECHO "$path" | $GREP " "` 17330 if test "x$has_space" != x; then 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&5 17332 $as_echo "$as_me: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 17333 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17334 fi 17335 fi 17336 17337 17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK include dir" >&5 17339 $as_echo_n "checking for DirectX SDK include dir... " >&6; } 17340 if test "x$with_dxsdk_include" != x; then 17341 DXSDK_INCLUDE_PATH="$with_dxsdk_include" 17342 else 17343 DXSDK_INCLUDE_PATH="$dxsdk_path/Include" 17344 fi 17345 # dsound.h is included in jsoundds 17346 if test ! -f "$DXSDK_INCLUDE_PATH/dsound.h"; then 17347 as_fn_error $? "Invalid DirectX SDK lib dir" "$LINENO" 5 17348 fi 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DXSDK_INCLUDE_PATH" >&5 17350 $as_echo "$DXSDK_INCLUDE_PATH" >&6; } 17351 17352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17353 17354 # Input might be given as Windows format, start by converting to 17355 # unix format. 17356 path="$DXSDK_INCLUDE_PATH" 17357 new_path=`$CYGPATH -u "$path"` 17358 17359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17362 # "foo.exe" is OK but "foo" is an error. 17363 # 17364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17365 # It is also a way to make sure we got the proper file name for the real test later on. 17366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17367 if test "x$test_shortpath" = x; then 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 17369 $as_echo "$as_me: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 17370 as_fn_error $? "Cannot locate the the path of DXSDK_INCLUDE_PATH" "$LINENO" 5 17371 fi 17372 17373 # Call helper function which possibly converts this using DOS-style short mode. 17374 # If so, the updated path is stored in $new_path. 17375 17376 input_path="$new_path" 17377 # Check if we need to convert this using DOS-style short mode. If the path 17378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17379 # take no chances and rewrite it. 17380 # Note: m4 eats our [], so we need to use [ and ] instead. 17381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17382 if test "x$has_forbidden_chars" != x; then 17383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17387 # Going to short mode and back again did indeed matter. Since short mode is 17388 # case insensitive, let's make it lowercase to improve readability. 17389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17390 # Now convert it back to Unix-stile (cygpath) 17391 input_path=`$CYGPATH -u "$shortmode_path"` 17392 new_path="$input_path" 17393 fi 17394 fi 17395 17396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17397 if test "x$test_cygdrive_prefix" = x; then 17398 # As a simple fix, exclude /usr/bin since it's not a real path. 17399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17401 # a path prefixed by /cygdrive for fixpath to work. 17402 new_path="$CYGWIN_ROOT_PATH$input_path" 17403 fi 17404 fi 17405 17406 17407 if test "x$path" != "x$new_path"; then 17408 DXSDK_INCLUDE_PATH="$new_path" 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&5 17410 $as_echo "$as_me: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&6;} 17411 fi 17412 17413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17414 17415 path="$DXSDK_INCLUDE_PATH" 17416 has_colon=`$ECHO $path | $GREP ^.:` 17417 new_path="$path" 17418 if test "x$has_colon" = x; then 17419 # Not in mixed or Windows style, start by that. 17420 new_path=`cmd //c echo $path` 17421 fi 17422 17423 17424 input_path="$new_path" 17425 # Check if we need to convert this using DOS-style short mode. If the path 17426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17427 # take no chances and rewrite it. 17428 # Note: m4 eats our [], so we need to use [ and ] instead. 17429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17430 if test "x$has_forbidden_chars" != x; then 17431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17433 fi 17434 17435 17436 windows_path="$new_path" 17437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17438 unix_path=`$CYGPATH -u "$windows_path"` 17439 new_path="$unix_path" 17440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17442 new_path="$unix_path" 17443 fi 17444 17445 if test "x$path" != "x$new_path"; then 17446 DXSDK_INCLUDE_PATH="$new_path" 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&5 17448 $as_echo "$as_me: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&6;} 17449 fi 17450 17451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17453 17454 else 17455 # We're on a posix platform. Hooray! :) 17456 path="$DXSDK_INCLUDE_PATH" 17457 17458 if test ! -f "$path" && test ! -d "$path"; then 17459 as_fn_error $? "The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 17460 fi 17461 17462 has_space=`$ECHO "$path" | $GREP " "` 17463 if test "x$has_space" != x; then 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 17465 $as_echo "$as_me: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 17466 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17467 fi 17468 fi 17469 17470 17471 17472 17473 LDFLAGS_JDK="$LDFLAGS_JDK -libpath:$DXSDK_LIB_PATH" 17474 17475 fi 17476 17477 17478 17479 # If --build AND --host is set, then the configure script will find any 17480 # cross compilation tools in the PATH. Cross compilation tools 17481 # follows the cross compilation standard where they are prefixed with ${host}. 17482 # For example the binary i686-sun-solaris2.10-gcc 17483 # will cross compile for i686-sun-solaris2.10 17484 # If neither of build and host is not set, then build=host and the 17485 # default compiler found in the path will be used. 17486 # Setting only --host, does not seem to be really supported. 17487 # Please set both --build and --host if you want to cross compile. 17488 17489 if test "x$COMPILE_TYPE" = "xcross"; then 17490 # Now we to find a C/C++ compiler that can build executables for the build 17491 # platform. We can't use the AC_PROG_CC macro, since it can only be used 17492 # once. Also, we need to do this before adding a tools dir to the path, 17493 # otherwise we might pick up cross-compilers which don't use standard naming. 17494 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have 17495 # to wait until they are properly discovered. 17496 for ac_prog in cl cc gcc 17497 do 17498 # Extract the first word of "$ac_prog", so it can be a program name with args. 17499 set dummy $ac_prog; ac_word=$2 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17501 $as_echo_n "checking for $ac_word... " >&6; } 17502 if ${ac_cv_path_BUILD_CC+:} false; then : 17503 $as_echo_n "(cached) " >&6 17504 else 17505 case $BUILD_CC in 17506 [\\/]* | ?:[\\/]*) 17507 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 17508 ;; 17509 *) 17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17511 for as_dir in $PATH 17512 do 17513 IFS=$as_save_IFS 17514 test -z "$as_dir" && as_dir=. 17515 for ac_exec_ext in '' $ac_executable_extensions; do 17516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17517 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 17518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17519 break 2 17520 fi 17521 done 17522 done 17523 IFS=$as_save_IFS 17524 17525 ;; 17526 esac 17527 fi 17528 BUILD_CC=$ac_cv_path_BUILD_CC 17529 if test -n "$BUILD_CC"; then 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 17531 $as_echo "$BUILD_CC" >&6; } 17532 else 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17534 $as_echo "no" >&6; } 17535 fi 17536 17537 17538 test -n "$BUILD_CC" && break 17539 done 17540 17541 17542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17543 17544 # First separate the path from the arguments. This will split at the first 17545 # space. 17546 complete="$BUILD_CC" 17547 path="${complete%% *}" 17548 tmp="$complete EOL" 17549 arguments="${tmp#* }" 17550 17551 # Input might be given as Windows format, start by converting to 17552 # unix format. 17553 new_path=`$CYGPATH -u "$path"` 17554 17555 # Now try to locate executable using which 17556 new_path=`$WHICH "$new_path" 2> /dev/null` 17557 # bat and cmd files are not always considered executable in cygwin causing which 17558 # to not find them 17559 if test "x$new_path" = x \ 17560 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17561 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17562 new_path=`$CYGPATH -u "$path"` 17563 fi 17564 if test "x$new_path" = x; then 17565 # Oops. Which didn't find the executable. 17566 # The splitting of arguments from the executable at a space might have been incorrect, 17567 # since paths with space are more likely in Windows. Give it another try with the whole 17568 # argument. 17569 path="$complete" 17570 arguments="EOL" 17571 new_path=`$CYGPATH -u "$path"` 17572 new_path=`$WHICH "$new_path" 2> /dev/null` 17573 # bat and cmd files are not always considered executable in cygwin causing which 17574 # to not find them 17575 if test "x$new_path" = x \ 17576 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17577 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17578 new_path=`$CYGPATH -u "$path"` 17579 fi 17580 if test "x$new_path" = x; then 17581 # It's still not found. Now this is an unrecoverable error. 17582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 17583 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 17584 has_space=`$ECHO "$complete" | $GREP " "` 17585 if test "x$has_space" != x; then 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17587 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17588 fi 17589 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 17590 fi 17591 fi 17592 17593 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17594 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17595 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17596 # "foo.exe" is OK but "foo" is an error. 17597 # 17598 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17599 # It is also a way to make sure we got the proper file name for the real test later on. 17600 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17601 if test "x$test_shortpath" = x; then 17602 # Short path failed, file does not exist as specified. 17603 # Try adding .exe or .cmd 17604 if test -f "${new_path}.exe"; then 17605 input_to_shortpath="${new_path}.exe" 17606 elif test -f "${new_path}.cmd"; then 17607 input_to_shortpath="${new_path}.cmd" 17608 else 17609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 17610 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17612 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17613 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 17614 fi 17615 else 17616 input_to_shortpath="$new_path" 17617 fi 17618 17619 # Call helper function which possibly converts this using DOS-style short mode. 17620 # If so, the updated path is stored in $new_path. 17621 new_path="$input_to_shortpath" 17622 17623 input_path="$input_to_shortpath" 17624 # Check if we need to convert this using DOS-style short mode. If the path 17625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17626 # take no chances and rewrite it. 17627 # Note: m4 eats our [], so we need to use [ and ] instead. 17628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17629 if test "x$has_forbidden_chars" != x; then 17630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17631 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17632 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17633 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17634 # Going to short mode and back again did indeed matter. Since short mode is 17635 # case insensitive, let's make it lowercase to improve readability. 17636 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17637 # Now convert it back to Unix-stile (cygpath) 17638 input_path=`$CYGPATH -u "$shortmode_path"` 17639 new_path="$input_path" 17640 fi 17641 fi 17642 17643 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17644 if test "x$test_cygdrive_prefix" = x; then 17645 # As a simple fix, exclude /usr/bin since it's not a real path. 17646 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17647 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17648 # a path prefixed by /cygdrive for fixpath to work. 17649 new_path="$CYGWIN_ROOT_PATH$input_path" 17650 fi 17651 fi 17652 17653 # remove trailing .exe if any 17654 new_path="${new_path/%.exe/}" 17655 17656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17657 17658 # First separate the path from the arguments. This will split at the first 17659 # space. 17660 complete="$BUILD_CC" 17661 path="${complete%% *}" 17662 tmp="$complete EOL" 17663 arguments="${tmp#* }" 17664 17665 # Input might be given as Windows format, start by converting to 17666 # unix format. 17667 new_path="$path" 17668 17669 windows_path="$new_path" 17670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17671 unix_path=`$CYGPATH -u "$windows_path"` 17672 new_path="$unix_path" 17673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17675 new_path="$unix_path" 17676 fi 17677 17678 17679 # Now try to locate executable using which 17680 new_path=`$WHICH "$new_path" 2> /dev/null` 17681 17682 if test "x$new_path" = x; then 17683 # Oops. Which didn't find the executable. 17684 # The splitting of arguments from the executable at a space might have been incorrect, 17685 # since paths with space are more likely in Windows. Give it another try with the whole 17686 # argument. 17687 path="$complete" 17688 arguments="EOL" 17689 new_path="$path" 17690 17691 windows_path="$new_path" 17692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17693 unix_path=`$CYGPATH -u "$windows_path"` 17694 new_path="$unix_path" 17695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17697 new_path="$unix_path" 17698 fi 17699 17700 17701 new_path=`$WHICH "$new_path" 2> /dev/null` 17702 17703 if test "x$new_path" = x; then 17704 # It's still not found. Now this is an unrecoverable error. 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 17706 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 17707 has_space=`$ECHO "$complete" | $GREP " "` 17708 if test "x$has_space" != x; then 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17710 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17711 fi 17712 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 17713 fi 17714 fi 17715 17716 # Now new_path has a complete unix path to the binary 17717 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17718 # Keep paths in /bin as-is, but remove trailing .exe if any 17719 new_path="${new_path/%.exe/}" 17720 # Do not save /bin paths to all_fixpath_prefixes! 17721 else 17722 # Not in mixed or Windows style, start by that. 17723 new_path=`cmd //c echo $new_path` 17724 17725 input_path="$new_path" 17726 # Check if we need to convert this using DOS-style short mode. If the path 17727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17728 # take no chances and rewrite it. 17729 # Note: m4 eats our [], so we need to use [ and ] instead. 17730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17731 if test "x$has_forbidden_chars" != x; then 17732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17733 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17734 fi 17735 17736 # Output is in $new_path 17737 17738 windows_path="$new_path" 17739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17740 unix_path=`$CYGPATH -u "$windows_path"` 17741 new_path="$unix_path" 17742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17743 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17744 new_path="$unix_path" 17745 fi 17746 17747 # remove trailing .exe if any 17748 new_path="${new_path/%.exe/}" 17749 17750 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17751 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17752 fi 17753 17754 else 17755 # We're on a posix platform. Hooray! :) 17756 # First separate the path from the arguments. This will split at the first 17757 # space. 17758 complete="$BUILD_CC" 17759 path="${complete%% *}" 17760 tmp="$complete EOL" 17761 arguments="${tmp#* }" 17762 17763 # Cannot rely on the command "which" here since it doesn't always work. 17764 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17765 if test -z "$is_absolute_path"; then 17766 # Path to executable is not absolute. Find it. 17767 IFS_save="$IFS" 17768 IFS=: 17769 for p in $PATH; do 17770 if test -f "$p/$path" && test -x "$p/$path"; then 17771 new_path="$p/$path" 17772 break 17773 fi 17774 done 17775 IFS="$IFS_save" 17776 else 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CC (as $path) failed, using $path directly." >&5 17778 $as_echo "$as_me: Resolving BUILD_CC (as $path) failed, using $path directly." >&6;} 17779 new_path="$path" 17780 fi 17781 17782 if test "x$new_path" = x; then 17783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 17784 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 17785 has_space=`$ECHO "$complete" | $GREP " "` 17786 if test "x$has_space" != x; then 17787 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17788 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17789 fi 17790 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 17791 fi 17792 fi 17793 17794 # Now join together the path and the arguments once again 17795 if test "x$arguments" != xEOL; then 17796 new_complete="$new_path ${arguments% *}" 17797 else 17798 new_complete="$new_path" 17799 fi 17800 17801 if test "x$complete" != "x$new_complete"; then 17802 BUILD_CC="$new_complete" 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 17804 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 17805 fi 17806 17807 for ac_prog in cl CC g++ 17808 do 17809 # Extract the first word of "$ac_prog", so it can be a program name with args. 17810 set dummy $ac_prog; ac_word=$2 17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17812 $as_echo_n "checking for $ac_word... " >&6; } 17813 if ${ac_cv_path_BUILD_CXX+:} false; then : 17814 $as_echo_n "(cached) " >&6 17815 else 17816 case $BUILD_CXX in 17817 [\\/]* | ?:[\\/]*) 17818 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 17819 ;; 17820 *) 17821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17822 for as_dir in $PATH 17823 do 17824 IFS=$as_save_IFS 17825 test -z "$as_dir" && as_dir=. 17826 for ac_exec_ext in '' $ac_executable_extensions; do 17827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17828 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 17829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17830 break 2 17831 fi 17832 done 17833 done 17834 IFS=$as_save_IFS 17835 17836 ;; 17837 esac 17838 fi 17839 BUILD_CXX=$ac_cv_path_BUILD_CXX 17840 if test -n "$BUILD_CXX"; then 17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 17842 $as_echo "$BUILD_CXX" >&6; } 17843 else 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17845 $as_echo "no" >&6; } 17846 fi 17847 17848 17849 test -n "$BUILD_CXX" && break 17850 done 17851 17852 17853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17854 17855 # First separate the path from the arguments. This will split at the first 17856 # space. 17857 complete="$BUILD_CXX" 17858 path="${complete%% *}" 17859 tmp="$complete EOL" 17860 arguments="${tmp#* }" 17861 17862 # Input might be given as Windows format, start by converting to 17863 # unix format. 17864 new_path=`$CYGPATH -u "$path"` 17865 17866 # Now try to locate executable using which 17867 new_path=`$WHICH "$new_path" 2> /dev/null` 17868 # bat and cmd files are not always considered executable in cygwin causing which 17869 # to not find them 17870 if test "x$new_path" = x \ 17871 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17872 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17873 new_path=`$CYGPATH -u "$path"` 17874 fi 17875 if test "x$new_path" = x; then 17876 # Oops. Which didn't find the executable. 17877 # The splitting of arguments from the executable at a space might have been incorrect, 17878 # since paths with space are more likely in Windows. Give it another try with the whole 17879 # argument. 17880 path="$complete" 17881 arguments="EOL" 17882 new_path=`$CYGPATH -u "$path"` 17883 new_path=`$WHICH "$new_path" 2> /dev/null` 17884 # bat and cmd files are not always considered executable in cygwin causing which 17885 # to not find them 17886 if test "x$new_path" = x \ 17887 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17888 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17889 new_path=`$CYGPATH -u "$path"` 17890 fi 17891 if test "x$new_path" = x; then 17892 # It's still not found. Now this is an unrecoverable error. 17893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 17894 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 17895 has_space=`$ECHO "$complete" | $GREP " "` 17896 if test "x$has_space" != x; then 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17898 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17899 fi 17900 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 17901 fi 17902 fi 17903 17904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17907 # "foo.exe" is OK but "foo" is an error. 17908 # 17909 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17910 # It is also a way to make sure we got the proper file name for the real test later on. 17911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17912 if test "x$test_shortpath" = x; then 17913 # Short path failed, file does not exist as specified. 17914 # Try adding .exe or .cmd 17915 if test -f "${new_path}.exe"; then 17916 input_to_shortpath="${new_path}.exe" 17917 elif test -f "${new_path}.cmd"; then 17918 input_to_shortpath="${new_path}.cmd" 17919 else 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 17921 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17923 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17924 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 17925 fi 17926 else 17927 input_to_shortpath="$new_path" 17928 fi 17929 17930 # Call helper function which possibly converts this using DOS-style short mode. 17931 # If so, the updated path is stored in $new_path. 17932 new_path="$input_to_shortpath" 17933 17934 input_path="$input_to_shortpath" 17935 # Check if we need to convert this using DOS-style short mode. If the path 17936 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17937 # take no chances and rewrite it. 17938 # Note: m4 eats our [], so we need to use [ and ] instead. 17939 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17940 if test "x$has_forbidden_chars" != x; then 17941 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17942 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17943 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17944 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17945 # Going to short mode and back again did indeed matter. Since short mode is 17946 # case insensitive, let's make it lowercase to improve readability. 17947 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17948 # Now convert it back to Unix-stile (cygpath) 17949 input_path=`$CYGPATH -u "$shortmode_path"` 17950 new_path="$input_path" 17951 fi 17952 fi 17953 17954 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17955 if test "x$test_cygdrive_prefix" = x; then 17956 # As a simple fix, exclude /usr/bin since it's not a real path. 17957 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17958 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17959 # a path prefixed by /cygdrive for fixpath to work. 17960 new_path="$CYGWIN_ROOT_PATH$input_path" 17961 fi 17962 fi 17963 17964 # remove trailing .exe if any 17965 new_path="${new_path/%.exe/}" 17966 17967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17968 17969 # First separate the path from the arguments. This will split at the first 17970 # space. 17971 complete="$BUILD_CXX" 17972 path="${complete%% *}" 17973 tmp="$complete EOL" 17974 arguments="${tmp#* }" 17975 17976 # Input might be given as Windows format, start by converting to 17977 # unix format. 17978 new_path="$path" 17979 17980 windows_path="$new_path" 17981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17982 unix_path=`$CYGPATH -u "$windows_path"` 17983 new_path="$unix_path" 17984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17986 new_path="$unix_path" 17987 fi 17988 17989 17990 # Now try to locate executable using which 17991 new_path=`$WHICH "$new_path" 2> /dev/null` 17992 17993 if test "x$new_path" = x; then 17994 # Oops. Which didn't find the executable. 17995 # The splitting of arguments from the executable at a space might have been incorrect, 17996 # since paths with space are more likely in Windows. Give it another try with the whole 17997 # argument. 17998 path="$complete" 17999 arguments="EOL" 18000 new_path="$path" 18001 18002 windows_path="$new_path" 18003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18004 unix_path=`$CYGPATH -u "$windows_path"` 18005 new_path="$unix_path" 18006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18008 new_path="$unix_path" 18009 fi 18010 18011 18012 new_path=`$WHICH "$new_path" 2> /dev/null` 18013 18014 if test "x$new_path" = x; then 18015 # It's still not found. Now this is an unrecoverable error. 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 18017 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 18018 has_space=`$ECHO "$complete" | $GREP " "` 18019 if test "x$has_space" != x; then 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18021 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18022 fi 18023 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 18024 fi 18025 fi 18026 18027 # Now new_path has a complete unix path to the binary 18028 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18029 # Keep paths in /bin as-is, but remove trailing .exe if any 18030 new_path="${new_path/%.exe/}" 18031 # Do not save /bin paths to all_fixpath_prefixes! 18032 else 18033 # Not in mixed or Windows style, start by that. 18034 new_path=`cmd //c echo $new_path` 18035 18036 input_path="$new_path" 18037 # Check if we need to convert this using DOS-style short mode. If the path 18038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18039 # take no chances and rewrite it. 18040 # Note: m4 eats our [], so we need to use [ and ] instead. 18041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18042 if test "x$has_forbidden_chars" != x; then 18043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18044 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18045 fi 18046 18047 # Output is in $new_path 18048 18049 windows_path="$new_path" 18050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18051 unix_path=`$CYGPATH -u "$windows_path"` 18052 new_path="$unix_path" 18053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18055 new_path="$unix_path" 18056 fi 18057 18058 # remove trailing .exe if any 18059 new_path="${new_path/%.exe/}" 18060 18061 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18062 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18063 fi 18064 18065 else 18066 # We're on a posix platform. Hooray! :) 18067 # First separate the path from the arguments. This will split at the first 18068 # space. 18069 complete="$BUILD_CXX" 18070 path="${complete%% *}" 18071 tmp="$complete EOL" 18072 arguments="${tmp#* }" 18073 18074 # Cannot rely on the command "which" here since it doesn't always work. 18075 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18076 if test -z "$is_absolute_path"; then 18077 # Path to executable is not absolute. Find it. 18078 IFS_save="$IFS" 18079 IFS=: 18080 for p in $PATH; do 18081 if test -f "$p/$path" && test -x "$p/$path"; then 18082 new_path="$p/$path" 18083 break 18084 fi 18085 done 18086 IFS="$IFS_save" 18087 else 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CXX (as $path) failed, using $path directly." >&5 18089 $as_echo "$as_me: Resolving BUILD_CXX (as $path) failed, using $path directly." >&6;} 18090 new_path="$path" 18091 fi 18092 18093 if test "x$new_path" = x; then 18094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 18095 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 18096 has_space=`$ECHO "$complete" | $GREP " "` 18097 if test "x$has_space" != x; then 18098 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18099 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18100 fi 18101 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 18102 fi 18103 fi 18104 18105 # Now join together the path and the arguments once again 18106 if test "x$arguments" != xEOL; then 18107 new_complete="$new_path ${arguments% *}" 18108 else 18109 new_complete="$new_path" 18110 fi 18111 18112 if test "x$complete" != "x$new_complete"; then 18113 BUILD_CXX="$new_complete" 18114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 18115 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 18116 fi 18117 18118 # Extract the first word of "ld", so it can be a program name with args. 18119 set dummy ld; ac_word=$2 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18121 $as_echo_n "checking for $ac_word... " >&6; } 18122 if ${ac_cv_path_BUILD_LD+:} false; then : 18123 $as_echo_n "(cached) " >&6 18124 else 18125 case $BUILD_LD in 18126 [\\/]* | ?:[\\/]*) 18127 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 18128 ;; 18129 *) 18130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18131 for as_dir in $PATH 18132 do 18133 IFS=$as_save_IFS 18134 test -z "$as_dir" && as_dir=. 18135 for ac_exec_ext in '' $ac_executable_extensions; do 18136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18137 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 18138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18139 break 2 18140 fi 18141 done 18142 done 18143 IFS=$as_save_IFS 18144 18145 ;; 18146 esac 18147 fi 18148 BUILD_LD=$ac_cv_path_BUILD_LD 18149 if test -n "$BUILD_LD"; then 18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 18151 $as_echo "$BUILD_LD" >&6; } 18152 else 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18154 $as_echo "no" >&6; } 18155 fi 18156 18157 18158 18159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18160 18161 # First separate the path from the arguments. This will split at the first 18162 # space. 18163 complete="$BUILD_LD" 18164 path="${complete%% *}" 18165 tmp="$complete EOL" 18166 arguments="${tmp#* }" 18167 18168 # Input might be given as Windows format, start by converting to 18169 # unix format. 18170 new_path=`$CYGPATH -u "$path"` 18171 18172 # Now try to locate executable using which 18173 new_path=`$WHICH "$new_path" 2> /dev/null` 18174 # bat and cmd files are not always considered executable in cygwin causing which 18175 # to not find them 18176 if test "x$new_path" = x \ 18177 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18178 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18179 new_path=`$CYGPATH -u "$path"` 18180 fi 18181 if test "x$new_path" = x; then 18182 # Oops. Which didn't find the executable. 18183 # The splitting of arguments from the executable at a space might have been incorrect, 18184 # since paths with space are more likely in Windows. Give it another try with the whole 18185 # argument. 18186 path="$complete" 18187 arguments="EOL" 18188 new_path=`$CYGPATH -u "$path"` 18189 new_path=`$WHICH "$new_path" 2> /dev/null` 18190 # bat and cmd files are not always considered executable in cygwin causing which 18191 # to not find them 18192 if test "x$new_path" = x \ 18193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18195 new_path=`$CYGPATH -u "$path"` 18196 fi 18197 if test "x$new_path" = x; then 18198 # It's still not found. Now this is an unrecoverable error. 18199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 18200 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 18201 has_space=`$ECHO "$complete" | $GREP " "` 18202 if test "x$has_space" != x; then 18203 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18204 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18205 fi 18206 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18207 fi 18208 fi 18209 18210 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18211 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18212 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18213 # "foo.exe" is OK but "foo" is an error. 18214 # 18215 # This test is therefore slightly more accurate than "test -f" to check for file precense. 18216 # It is also a way to make sure we got the proper file name for the real test later on. 18217 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18218 if test "x$test_shortpath" = x; then 18219 # Short path failed, file does not exist as specified. 18220 # Try adding .exe or .cmd 18221 if test -f "${new_path}.exe"; then 18222 input_to_shortpath="${new_path}.exe" 18223 elif test -f "${new_path}.cmd"; then 18224 input_to_shortpath="${new_path}.cmd" 18225 else 18226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 18227 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18229 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18230 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18231 fi 18232 else 18233 input_to_shortpath="$new_path" 18234 fi 18235 18236 # Call helper function which possibly converts this using DOS-style short mode. 18237 # If so, the updated path is stored in $new_path. 18238 new_path="$input_to_shortpath" 18239 18240 input_path="$input_to_shortpath" 18241 # Check if we need to convert this using DOS-style short mode. If the path 18242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18243 # take no chances and rewrite it. 18244 # Note: m4 eats our [], so we need to use [ and ] instead. 18245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18246 if test "x$has_forbidden_chars" != x; then 18247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18251 # Going to short mode and back again did indeed matter. Since short mode is 18252 # case insensitive, let's make it lowercase to improve readability. 18253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18254 # Now convert it back to Unix-stile (cygpath) 18255 input_path=`$CYGPATH -u "$shortmode_path"` 18256 new_path="$input_path" 18257 fi 18258 fi 18259 18260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18261 if test "x$test_cygdrive_prefix" = x; then 18262 # As a simple fix, exclude /usr/bin since it's not a real path. 18263 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18265 # a path prefixed by /cygdrive for fixpath to work. 18266 new_path="$CYGWIN_ROOT_PATH$input_path" 18267 fi 18268 fi 18269 18270 # remove trailing .exe if any 18271 new_path="${new_path/%.exe/}" 18272 18273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18274 18275 # First separate the path from the arguments. This will split at the first 18276 # space. 18277 complete="$BUILD_LD" 18278 path="${complete%% *}" 18279 tmp="$complete EOL" 18280 arguments="${tmp#* }" 18281 18282 # Input might be given as Windows format, start by converting to 18283 # unix format. 18284 new_path="$path" 18285 18286 windows_path="$new_path" 18287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18288 unix_path=`$CYGPATH -u "$windows_path"` 18289 new_path="$unix_path" 18290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18291 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18292 new_path="$unix_path" 18293 fi 18294 18295 18296 # Now try to locate executable using which 18297 new_path=`$WHICH "$new_path" 2> /dev/null` 18298 18299 if test "x$new_path" = x; then 18300 # Oops. Which didn't find the executable. 18301 # The splitting of arguments from the executable at a space might have been incorrect, 18302 # since paths with space are more likely in Windows. Give it another try with the whole 18303 # argument. 18304 path="$complete" 18305 arguments="EOL" 18306 new_path="$path" 18307 18308 windows_path="$new_path" 18309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18310 unix_path=`$CYGPATH -u "$windows_path"` 18311 new_path="$unix_path" 18312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18313 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18314 new_path="$unix_path" 18315 fi 18316 18317 18318 new_path=`$WHICH "$new_path" 2> /dev/null` 18319 18320 if test "x$new_path" = x; then 18321 # It's still not found. Now this is an unrecoverable error. 18322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 18323 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 18324 has_space=`$ECHO "$complete" | $GREP " "` 18325 if test "x$has_space" != x; then 18326 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18327 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18328 fi 18329 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18330 fi 18331 fi 18332 18333 # Now new_path has a complete unix path to the binary 18334 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18335 # Keep paths in /bin as-is, but remove trailing .exe if any 18336 new_path="${new_path/%.exe/}" 18337 # Do not save /bin paths to all_fixpath_prefixes! 18338 else 18339 # Not in mixed or Windows style, start by that. 18340 new_path=`cmd //c echo $new_path` 18341 18342 input_path="$new_path" 18343 # Check if we need to convert this using DOS-style short mode. If the path 18344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18345 # take no chances and rewrite it. 18346 # Note: m4 eats our [], so we need to use [ and ] instead. 18347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18348 if test "x$has_forbidden_chars" != x; then 18349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18350 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18351 fi 18352 18353 # Output is in $new_path 18354 18355 windows_path="$new_path" 18356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18357 unix_path=`$CYGPATH -u "$windows_path"` 18358 new_path="$unix_path" 18359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18361 new_path="$unix_path" 18362 fi 18363 18364 # remove trailing .exe if any 18365 new_path="${new_path/%.exe/}" 18366 18367 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18368 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18369 fi 18370 18371 else 18372 # We're on a posix platform. Hooray! :) 18373 # First separate the path from the arguments. This will split at the first 18374 # space. 18375 complete="$BUILD_LD" 18376 path="${complete%% *}" 18377 tmp="$complete EOL" 18378 arguments="${tmp#* }" 18379 18380 # Cannot rely on the command "which" here since it doesn't always work. 18381 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18382 if test -z "$is_absolute_path"; then 18383 # Path to executable is not absolute. Find it. 18384 IFS_save="$IFS" 18385 IFS=: 18386 for p in $PATH; do 18387 if test -f "$p/$path" && test -x "$p/$path"; then 18388 new_path="$p/$path" 18389 break 18390 fi 18391 done 18392 IFS="$IFS_save" 18393 else 18394 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_LD (as $path) failed, using $path directly." >&5 18395 $as_echo "$as_me: Resolving BUILD_LD (as $path) failed, using $path directly." >&6;} 18396 new_path="$path" 18397 fi 18398 18399 if test "x$new_path" = x; then 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 18401 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 18402 has_space=`$ECHO "$complete" | $GREP " "` 18403 if test "x$has_space" != x; then 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18405 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18406 fi 18407 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18408 fi 18409 fi 18410 18411 # Now join together the path and the arguments once again 18412 if test "x$arguments" != xEOL; then 18413 new_complete="$new_path ${arguments% *}" 18414 else 18415 new_complete="$new_path" 18416 fi 18417 18418 if test "x$complete" != "x$new_complete"; then 18419 BUILD_LD="$new_complete" 18420 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 18421 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 18422 fi 18423 18424 fi 18425 18426 18427 18428 18429 # If a devkit is found on the builddeps server, then prepend its path to the 18430 # PATH variable. If there are cross compilers available in the devkit, these 18431 # will be found by AC_PROG_CC et al. 18432 DEVKIT= 18433 18434 18435 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 18436 # Source the builddeps file again, to make sure it uses the latest variables! 18437 . $builddepsfile 18438 # Look for a target and build machine specific resource! 18439 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 18440 if test "x$resource" = x; then 18441 # Ok, lets instead look for a target specific resource 18442 eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}} 18443 fi 18444 if test "x$resource" = x; then 18445 # Ok, lets instead look for a build specific resource 18446 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}} 18447 fi 18448 if test "x$resource" = x; then 18449 # Ok, lets instead look for a generic resource 18450 # (The devkit comes from M4 and not the shell, thus no need for eval here.) 18451 resource=${builddep_devkit} 18452 fi 18453 if test "x$resource" != x; then 18454 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5 18455 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;} 18456 # If the resource in the builddeps.conf file is an existing directory, 18457 # for example /java/linux/cups 18458 if test -d ${resource}; then 18459 depdir=${resource} 18460 else 18461 18462 # devkit is for example mymodule 18463 # $resource is for example libs/general/libmymod_1_2_3.zip 18464 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 18465 # $with_builddeps_dir is for example /localhome/builddeps 18466 # depdir is the name of the variable into which we store the depdir, eg MYMOD 18467 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 18468 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 18469 filename=`basename $resource` 18470 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 18471 filebase=${filename%%.*} 18472 extension=${filename#*.} 18473 installdir=$with_builddeps_dir/$filebase 18474 if test ! -f $installdir/$filename.unpacked; then 18475 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5 18476 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;} 18477 if test ! -d $installdir; then 18478 mkdir -p $installdir 18479 fi 18480 if test ! -d $installdir; then 18481 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 18482 fi 18483 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX` 18484 touch $tmpfile 18485 if test ! -f $tmpfile; then 18486 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 18487 fi 18488 18489 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 18490 # $tmpfile is the local file name for the downloaded file. 18491 VALID_TOOL=no 18492 if test "x$BDEPS_FTP" = xwget; then 18493 VALID_TOOL=yes 18494 wget -O $tmpfile $with_builddeps_server/$resource 18495 fi 18496 if test "x$BDEPS_FTP" = xlftp; then 18497 VALID_TOOL=yes 18498 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 18499 fi 18500 if test "x$BDEPS_FTP" = xftp; then 18501 VALID_TOOL=yes 18502 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 18503 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 18504 FTPUSERPWD=${FTPSERVER%%@*} 18505 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 18506 FTPUSER=${userpwd%%:*} 18507 FTPPWD=${userpwd#*@} 18508 FTPSERVER=${FTPSERVER#*@} 18509 else 18510 FTPUSER=ftp 18511 FTPPWD=ftp 18512 fi 18513 # the "pass" command does not work on some 18514 # ftp clients (read ftp.exe) but if it works, 18515 # passive mode is better! 18516 (\ 18517 echo "user $FTPUSER $FTPPWD" ;\ 18518 echo "pass" ;\ 18519 echo "bin" ;\ 18520 echo "get $FTPPATH $tmpfile" ;\ 18521 ) | ftp -in $FTPSERVER 18522 fi 18523 if test "x$VALID_TOOL" != xyes; then 18524 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 18525 fi 18526 18527 mv $tmpfile $installdir/$filename 18528 if test ! -s $installdir/$filename; then 18529 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 18530 fi 18531 case "$extension" in 18532 zip) echo "Unzipping $installdir/$filename..." 18533 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 18534 ;; 18535 tar.gz) echo "Untaring $installdir/$filename..." 18536 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 18537 ;; 18538 tgz) echo "Untaring $installdir/$filename..." 18539 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 18540 ;; 18541 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 18542 ;; 18543 esac 18544 fi 18545 if test -f $installdir/$filename.unpacked; then 18546 depdir=$installdir 18547 fi 18548 18549 fi 18550 # Source the builddeps file again, because in the previous command, the depdir 18551 # was updated to point at the current build dependency install directory. 18552 . $builddepsfile 18553 # Now extract variables from the builddeps.conf files. 18554 theroot=${builddep_devkit_ROOT} 18555 thecflags=${builddep_devkit_CFLAGS} 18556 thelibs=${builddep_devkit_LIBS} 18557 if test "x$depdir" = x; then 18558 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5 18559 fi 18560 DEVKIT=$depdir 18561 if test "x$theroot" != x; then 18562 DEVKIT="$theroot" 18563 fi 18564 if test "x$thecflags" != x; then 18565 DEVKIT_CFLAGS="$thecflags" 18566 fi 18567 if test "x$thelibs" != x; then 18568 DEVKIT_LIBS="$thelibs" 18569 fi 18570 # Found devkit 18571 PATH="$DEVKIT/bin:$PATH" 18572 SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root" 18573 if test "x$x_includes" = "xNONE"; then 18574 x_includes="$SYS_ROOT/usr/include/X11" 18575 fi 18576 if test "x$x_libraries" = "xNONE"; then 18577 x_libraries="$SYS_ROOT/usr/lib" 18578 fi 18579 18580 18581 fi 18582 18583 fi 18584 18585 18586 if test "x$SYS_ROOT" != "x/" ; then 18587 CFLAGS="--sysroot=$SYS_ROOT $CFLAGS" 18588 CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS" 18589 OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS" 18590 OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS" 18591 CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS" 18592 LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS" 18593 fi 18594 18595 # Store the CFLAGS etal passed to the configure script. 18596 ORG_CFLAGS="$CFLAGS" 18597 ORG_CXXFLAGS="$CXXFLAGS" 18598 ORG_OBJCFLAGS="$OBJCFLAGS" 18599 18600 # autoconf magic only relies on PATH, so update it if tools dir is specified 18601 OLD_PATH="$PATH" 18602 if test "x$TOOLS_DIR" != x; then 18603 PATH=$TOOLS_DIR:$PATH 18604 fi 18605 18606 18607 ### Locate C compiler (CC) 18608 18609 # On windows, only cl.exe is supported. 18610 # On Solaris, cc is preferred to gcc. 18611 # Elsewhere, gcc is preferred to cc. 18612 18613 if test "x$CC" != x; then 18614 COMPILER_CHECK_LIST="$CC" 18615 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18616 COMPILER_CHECK_LIST="cl" 18617 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 18618 COMPILER_CHECK_LIST="cc gcc" 18619 else 18620 COMPILER_CHECK_LIST="gcc cc" 18621 fi 18622 18623 18624 COMPILER_NAME=C 18625 18626 CC= 18627 # If TOOLS_DIR is set, check for all compiler names in there first 18628 # before checking the rest of the PATH. 18629 if test -n "$TOOLS_DIR"; then 18630 PATH_save="$PATH" 18631 PATH="$TOOLS_DIR" 18632 for ac_prog in $COMPILER_CHECK_LIST 18633 do 18634 # Extract the first word of "$ac_prog", so it can be a program name with args. 18635 set dummy $ac_prog; ac_word=$2 18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18637 $as_echo_n "checking for $ac_word... " >&6; } 18638 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then : 18639 $as_echo_n "(cached) " >&6 18640 else 18641 case $TOOLS_DIR_CC in 18642 [\\/]* | ?:[\\/]*) 18643 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path. 18644 ;; 18645 *) 18646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18647 for as_dir in $PATH 18648 do 18649 IFS=$as_save_IFS 18650 test -z "$as_dir" && as_dir=. 18651 for ac_exec_ext in '' $ac_executable_extensions; do 18652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18653 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext" 18654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18655 break 2 18656 fi 18657 done 18658 done 18659 IFS=$as_save_IFS 18660 18661 ;; 18662 esac 18663 fi 18664 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC 18665 if test -n "$TOOLS_DIR_CC"; then 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5 18667 $as_echo "$TOOLS_DIR_CC" >&6; } 18668 else 18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18670 $as_echo "no" >&6; } 18671 fi 18672 18673 18674 test -n "$TOOLS_DIR_CC" && break 18675 done 18676 18677 CC=$TOOLS_DIR_CC 18678 PATH="$PATH_save" 18679 fi 18680 18681 # AC_PATH_PROGS can't be run multiple times with the same variable, 18682 # so create a new name for this run. 18683 if test "x$CC" = x; then 18684 for ac_prog in $COMPILER_CHECK_LIST 18685 do 18686 # Extract the first word of "$ac_prog", so it can be a program name with args. 18687 set dummy $ac_prog; ac_word=$2 18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18689 $as_echo_n "checking for $ac_word... " >&6; } 18690 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 18691 $as_echo_n "(cached) " >&6 18692 else 18693 case $POTENTIAL_CC in 18694 [\\/]* | ?:[\\/]*) 18695 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 18696 ;; 18697 *) 18698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18699 for as_dir in $PATH 18700 do 18701 IFS=$as_save_IFS 18702 test -z "$as_dir" && as_dir=. 18703 for ac_exec_ext in '' $ac_executable_extensions; do 18704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18705 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 18706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18707 break 2 18708 fi 18709 done 18710 done 18711 IFS=$as_save_IFS 18712 18713 ;; 18714 esac 18715 fi 18716 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 18717 if test -n "$POTENTIAL_CC"; then 18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 18719 $as_echo "$POTENTIAL_CC" >&6; } 18720 else 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18722 $as_echo "no" >&6; } 18723 fi 18724 18725 18726 test -n "$POTENTIAL_CC" && break 18727 done 18728 18729 CC=$POTENTIAL_CC 18730 fi 18731 18732 if test "x$CC" = x; then 18733 18734 # Print a helpful message on how to acquire the necessary build dependency. 18735 # devkit is the help tag: freetyp2, cups, pulse, alsa etc 18736 MISSING_DEPENDENCY=devkit 18737 PKGHANDLER_COMMAND= 18738 18739 case $PKGHANDLER in 18740 apt-get) 18741 apt_help $MISSING_DEPENDENCY ;; 18742 yum) 18743 yum_help $MISSING_DEPENDENCY ;; 18744 port) 18745 port_help $MISSING_DEPENDENCY ;; 18746 pkgutil) 18747 pkgutil_help $MISSING_DEPENDENCY ;; 18748 pkgadd) 18749 pkgadd_help $MISSING_DEPENDENCY ;; 18750 * ) 18751 break ;; 18752 esac 18753 18754 if test "x$PKGHANDLER_COMMAND" != x; then 18755 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 18756 fi 18757 18758 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 18759 fi 18760 18761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18762 18763 # First separate the path from the arguments. This will split at the first 18764 # space. 18765 complete="$CC" 18766 path="${complete%% *}" 18767 tmp="$complete EOL" 18768 arguments="${tmp#* }" 18769 18770 # Input might be given as Windows format, start by converting to 18771 # unix format. 18772 new_path=`$CYGPATH -u "$path"` 18773 18774 # Now try to locate executable using which 18775 new_path=`$WHICH "$new_path" 2> /dev/null` 18776 # bat and cmd files are not always considered executable in cygwin causing which 18777 # to not find them 18778 if test "x$new_path" = x \ 18779 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18780 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18781 new_path=`$CYGPATH -u "$path"` 18782 fi 18783 if test "x$new_path" = x; then 18784 # Oops. Which didn't find the executable. 18785 # The splitting of arguments from the executable at a space might have been incorrect, 18786 # since paths with space are more likely in Windows. Give it another try with the whole 18787 # argument. 18788 path="$complete" 18789 arguments="EOL" 18790 new_path=`$CYGPATH -u "$path"` 18791 new_path=`$WHICH "$new_path" 2> /dev/null` 18792 # bat and cmd files are not always considered executable in cygwin causing which 18793 # to not find them 18794 if test "x$new_path" = x \ 18795 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18796 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18797 new_path=`$CYGPATH -u "$path"` 18798 fi 18799 if test "x$new_path" = x; then 18800 # It's still not found. Now this is an unrecoverable error. 18801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 18802 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 18803 has_space=`$ECHO "$complete" | $GREP " "` 18804 if test "x$has_space" != x; then 18805 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18806 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18807 fi 18808 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 18809 fi 18810 fi 18811 18812 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18813 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18814 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18815 # "foo.exe" is OK but "foo" is an error. 18816 # 18817 # This test is therefore slightly more accurate than "test -f" to check for file precense. 18818 # It is also a way to make sure we got the proper file name for the real test later on. 18819 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18820 if test "x$test_shortpath" = x; then 18821 # Short path failed, file does not exist as specified. 18822 # Try adding .exe or .cmd 18823 if test -f "${new_path}.exe"; then 18824 input_to_shortpath="${new_path}.exe" 18825 elif test -f "${new_path}.cmd"; then 18826 input_to_shortpath="${new_path}.cmd" 18827 else 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 18829 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18831 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18832 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 18833 fi 18834 else 18835 input_to_shortpath="$new_path" 18836 fi 18837 18838 # Call helper function which possibly converts this using DOS-style short mode. 18839 # If so, the updated path is stored in $new_path. 18840 new_path="$input_to_shortpath" 18841 18842 input_path="$input_to_shortpath" 18843 # Check if we need to convert this using DOS-style short mode. If the path 18844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18845 # take no chances and rewrite it. 18846 # Note: m4 eats our [], so we need to use [ and ] instead. 18847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18848 if test "x$has_forbidden_chars" != x; then 18849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18850 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18851 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18852 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18853 # Going to short mode and back again did indeed matter. Since short mode is 18854 # case insensitive, let's make it lowercase to improve readability. 18855 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18856 # Now convert it back to Unix-stile (cygpath) 18857 input_path=`$CYGPATH -u "$shortmode_path"` 18858 new_path="$input_path" 18859 fi 18860 fi 18861 18862 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18863 if test "x$test_cygdrive_prefix" = x; then 18864 # As a simple fix, exclude /usr/bin since it's not a real path. 18865 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18866 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18867 # a path prefixed by /cygdrive for fixpath to work. 18868 new_path="$CYGWIN_ROOT_PATH$input_path" 18869 fi 18870 fi 18871 18872 # remove trailing .exe if any 18873 new_path="${new_path/%.exe/}" 18874 18875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18876 18877 # First separate the path from the arguments. This will split at the first 18878 # space. 18879 complete="$CC" 18880 path="${complete%% *}" 18881 tmp="$complete EOL" 18882 arguments="${tmp#* }" 18883 18884 # Input might be given as Windows format, start by converting to 18885 # unix format. 18886 new_path="$path" 18887 18888 windows_path="$new_path" 18889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18890 unix_path=`$CYGPATH -u "$windows_path"` 18891 new_path="$unix_path" 18892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18894 new_path="$unix_path" 18895 fi 18896 18897 18898 # Now try to locate executable using which 18899 new_path=`$WHICH "$new_path" 2> /dev/null` 18900 18901 if test "x$new_path" = x; then 18902 # Oops. Which didn't find the executable. 18903 # The splitting of arguments from the executable at a space might have been incorrect, 18904 # since paths with space are more likely in Windows. Give it another try with the whole 18905 # argument. 18906 path="$complete" 18907 arguments="EOL" 18908 new_path="$path" 18909 18910 windows_path="$new_path" 18911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18912 unix_path=`$CYGPATH -u "$windows_path"` 18913 new_path="$unix_path" 18914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18916 new_path="$unix_path" 18917 fi 18918 18919 18920 new_path=`$WHICH "$new_path" 2> /dev/null` 18921 18922 if test "x$new_path" = x; then 18923 # It's still not found. Now this is an unrecoverable error. 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 18925 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 18926 has_space=`$ECHO "$complete" | $GREP " "` 18927 if test "x$has_space" != x; then 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18929 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18930 fi 18931 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 18932 fi 18933 fi 18934 18935 # Now new_path has a complete unix path to the binary 18936 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18937 # Keep paths in /bin as-is, but remove trailing .exe if any 18938 new_path="${new_path/%.exe/}" 18939 # Do not save /bin paths to all_fixpath_prefixes! 18940 else 18941 # Not in mixed or Windows style, start by that. 18942 new_path=`cmd //c echo $new_path` 18943 18944 input_path="$new_path" 18945 # Check if we need to convert this using DOS-style short mode. If the path 18946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18947 # take no chances and rewrite it. 18948 # Note: m4 eats our [], so we need to use [ and ] instead. 18949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18950 if test "x$has_forbidden_chars" != x; then 18951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18952 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18953 fi 18954 18955 # Output is in $new_path 18956 18957 windows_path="$new_path" 18958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18959 unix_path=`$CYGPATH -u "$windows_path"` 18960 new_path="$unix_path" 18961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18963 new_path="$unix_path" 18964 fi 18965 18966 # remove trailing .exe if any 18967 new_path="${new_path/%.exe/}" 18968 18969 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18970 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18971 fi 18972 18973 else 18974 # We're on a posix platform. Hooray! :) 18975 # First separate the path from the arguments. This will split at the first 18976 # space. 18977 complete="$CC" 18978 path="${complete%% *}" 18979 tmp="$complete EOL" 18980 arguments="${tmp#* }" 18981 18982 # Cannot rely on the command "which" here since it doesn't always work. 18983 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18984 if test -z "$is_absolute_path"; then 18985 # Path to executable is not absolute. Find it. 18986 IFS_save="$IFS" 18987 IFS=: 18988 for p in $PATH; do 18989 if test -f "$p/$path" && test -x "$p/$path"; then 18990 new_path="$p/$path" 18991 break 18992 fi 18993 done 18994 IFS="$IFS_save" 18995 else 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CC (as $path) failed, using $path directly." >&5 18997 $as_echo "$as_me: Resolving CC (as $path) failed, using $path directly." >&6;} 18998 new_path="$path" 18999 fi 19000 19001 if test "x$new_path" = x; then 19002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 19003 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 19004 has_space=`$ECHO "$complete" | $GREP " "` 19005 if test "x$has_space" != x; then 19006 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19007 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19008 fi 19009 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 19010 fi 19011 fi 19012 19013 # Now join together the path and the arguments once again 19014 if test "x$arguments" != xEOL; then 19015 new_complete="$new_path ${arguments% *}" 19016 else 19017 new_complete="$new_path" 19018 fi 19019 19020 if test "x$complete" != "x$new_complete"; then 19021 CC="$new_complete" 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 19023 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 19024 fi 19025 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 19027 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 19028 TEST_COMPILER="$CC" 19029 19030 if test "x$OPENJDK_BUILD_OS" != xwindows; then 19031 # Follow a chain of symbolic links. Use readlink 19032 # where it exists, else fall back to horribly 19033 # complicated shell code. 19034 if test "x$READLINK_TESTED" != yes; then 19035 # On MacOSX there is a readlink tool with a different 19036 # purpose than the GNU readlink tool. Check the found readlink. 19037 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 19038 if test "x$ISGNU" = x; then 19039 # A readlink that we do not know how to use. 19040 # Are there other non-GNU readlinks out there? 19041 READLINK_TESTED=yes 19042 READLINK= 19043 fi 19044 fi 19045 19046 if test "x$READLINK" != x; then 19047 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 19048 else 19049 # Save the current directory for restoring afterwards 19050 STARTDIR=$PWD 19051 COUNTER=0 19052 sym_link_dir=`$DIRNAME $TEST_COMPILER` 19053 sym_link_file=`$BASENAME $TEST_COMPILER` 19054 # Use the system pwd and not the shell builtin to resolve directory symlinks 19055 cd $sym_link_dir 19056 cd `$THEPWDCMD` 19057 sym_link_dir=`$THEPWDCMD` 19058 # Resolve file symlinks 19059 while test $COUNTER -lt 20; do 19060 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 19061 if test "x$ISLINK" == x; then 19062 # This is not a symbolic link! We are done! 19063 break 19064 fi 19065 # Again resolve directory symlinks since the target of the just found 19066 # link could be in a different directory 19067 cd `$DIRNAME $ISLINK` 19068 sym_link_dir=`$THEPWDCMD` 19069 sym_link_file=`$BASENAME $ISLINK` 19070 let COUNTER=COUNTER+1 19071 done 19072 cd $STARTDIR 19073 TEST_COMPILER=$sym_link_dir/$sym_link_file 19074 fi 19075 fi 19076 19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 19078 $as_echo "$TEST_COMPILER" >&6; } 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 19080 $as_echo_n "checking if CC is disguised ccache... " >&6; } 19081 19082 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 19083 if test "x$COMPILER_BASENAME" = "xccache"; then 19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 19085 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 19086 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 19087 # We want to control ccache invocation ourselves, so ignore this cc and try 19088 # searching again. 19089 19090 # Remove the path to the fake ccache cc from the PATH 19091 RETRY_COMPILER_SAVED_PATH="$PATH" 19092 COMPILER_DIRNAME=`$DIRNAME $CC` 19093 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 19094 19095 # Try again looking for our compiler 19096 if test -n "$ac_tool_prefix"; then 19097 for ac_prog in $COMPILER_CHECK_LIST 19098 do 19099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19102 $as_echo_n "checking for $ac_word... " >&6; } 19103 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 19104 $as_echo_n "(cached) " >&6 19105 else 19106 if test -n "$PROPER_COMPILER_CC"; then 19107 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 19108 else 19109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19110 for as_dir in $PATH 19111 do 19112 IFS=$as_save_IFS 19113 test -z "$as_dir" && as_dir=. 19114 for ac_exec_ext in '' $ac_executable_extensions; do 19115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19116 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 19117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19118 break 2 19119 fi 19120 done 19121 done 19122 IFS=$as_save_IFS 19123 19124 fi 19125 fi 19126 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 19127 if test -n "$PROPER_COMPILER_CC"; then 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 19129 $as_echo "$PROPER_COMPILER_CC" >&6; } 19130 else 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19132 $as_echo "no" >&6; } 19133 fi 19134 19135 19136 test -n "$PROPER_COMPILER_CC" && break 19137 done 19138 fi 19139 if test -z "$PROPER_COMPILER_CC"; then 19140 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 19141 for ac_prog in $COMPILER_CHECK_LIST 19142 do 19143 # Extract the first word of "$ac_prog", so it can be a program name with args. 19144 set dummy $ac_prog; ac_word=$2 19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19146 $as_echo_n "checking for $ac_word... " >&6; } 19147 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 19148 $as_echo_n "(cached) " >&6 19149 else 19150 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 19151 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 19152 else 19153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19154 for as_dir in $PATH 19155 do 19156 IFS=$as_save_IFS 19157 test -z "$as_dir" && as_dir=. 19158 for ac_exec_ext in '' $ac_executable_extensions; do 19159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19160 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 19161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19162 break 2 19163 fi 19164 done 19165 done 19166 IFS=$as_save_IFS 19167 19168 fi 19169 fi 19170 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 19171 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 19173 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 19174 else 19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19176 $as_echo "no" >&6; } 19177 fi 19178 19179 19180 test -n "$ac_ct_PROPER_COMPILER_CC" && break 19181 done 19182 19183 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 19184 PROPER_COMPILER_CC="" 19185 else 19186 case $cross_compiling:$ac_tool_warned in 19187 yes:) 19188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19190 ac_tool_warned=yes ;; 19191 esac 19192 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 19193 fi 19194 fi 19195 19196 19197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19198 19199 # First separate the path from the arguments. This will split at the first 19200 # space. 19201 complete="$PROPER_COMPILER_CC" 19202 path="${complete%% *}" 19203 tmp="$complete EOL" 19204 arguments="${tmp#* }" 19205 19206 # Input might be given as Windows format, start by converting to 19207 # unix format. 19208 new_path=`$CYGPATH -u "$path"` 19209 19210 # Now try to locate executable using which 19211 new_path=`$WHICH "$new_path" 2> /dev/null` 19212 # bat and cmd files are not always considered executable in cygwin causing which 19213 # to not find them 19214 if test "x$new_path" = x \ 19215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19217 new_path=`$CYGPATH -u "$path"` 19218 fi 19219 if test "x$new_path" = x; then 19220 # Oops. Which didn't find the executable. 19221 # The splitting of arguments from the executable at a space might have been incorrect, 19222 # since paths with space are more likely in Windows. Give it another try with the whole 19223 # argument. 19224 path="$complete" 19225 arguments="EOL" 19226 new_path=`$CYGPATH -u "$path"` 19227 new_path=`$WHICH "$new_path" 2> /dev/null` 19228 # bat and cmd files are not always considered executable in cygwin causing which 19229 # to not find them 19230 if test "x$new_path" = x \ 19231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19233 new_path=`$CYGPATH -u "$path"` 19234 fi 19235 if test "x$new_path" = x; then 19236 # It's still not found. Now this is an unrecoverable error. 19237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 19238 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 19239 has_space=`$ECHO "$complete" | $GREP " "` 19240 if test "x$has_space" != x; then 19241 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19242 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19243 fi 19244 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19245 fi 19246 fi 19247 19248 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19249 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19250 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19251 # "foo.exe" is OK but "foo" is an error. 19252 # 19253 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19254 # It is also a way to make sure we got the proper file name for the real test later on. 19255 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19256 if test "x$test_shortpath" = x; then 19257 # Short path failed, file does not exist as specified. 19258 # Try adding .exe or .cmd 19259 if test -f "${new_path}.exe"; then 19260 input_to_shortpath="${new_path}.exe" 19261 elif test -f "${new_path}.cmd"; then 19262 input_to_shortpath="${new_path}.cmd" 19263 else 19264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 19265 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19267 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19268 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19269 fi 19270 else 19271 input_to_shortpath="$new_path" 19272 fi 19273 19274 # Call helper function which possibly converts this using DOS-style short mode. 19275 # If so, the updated path is stored in $new_path. 19276 new_path="$input_to_shortpath" 19277 19278 input_path="$input_to_shortpath" 19279 # Check if we need to convert this using DOS-style short mode. If the path 19280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19281 # take no chances and rewrite it. 19282 # Note: m4 eats our [], so we need to use [ and ] instead. 19283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19284 if test "x$has_forbidden_chars" != x; then 19285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19289 # Going to short mode and back again did indeed matter. Since short mode is 19290 # case insensitive, let's make it lowercase to improve readability. 19291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19292 # Now convert it back to Unix-stile (cygpath) 19293 input_path=`$CYGPATH -u "$shortmode_path"` 19294 new_path="$input_path" 19295 fi 19296 fi 19297 19298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19299 if test "x$test_cygdrive_prefix" = x; then 19300 # As a simple fix, exclude /usr/bin since it's not a real path. 19301 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19303 # a path prefixed by /cygdrive for fixpath to work. 19304 new_path="$CYGWIN_ROOT_PATH$input_path" 19305 fi 19306 fi 19307 19308 # remove trailing .exe if any 19309 new_path="${new_path/%.exe/}" 19310 19311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19312 19313 # First separate the path from the arguments. This will split at the first 19314 # space. 19315 complete="$PROPER_COMPILER_CC" 19316 path="${complete%% *}" 19317 tmp="$complete EOL" 19318 arguments="${tmp#* }" 19319 19320 # Input might be given as Windows format, start by converting to 19321 # unix format. 19322 new_path="$path" 19323 19324 windows_path="$new_path" 19325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19326 unix_path=`$CYGPATH -u "$windows_path"` 19327 new_path="$unix_path" 19328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19330 new_path="$unix_path" 19331 fi 19332 19333 19334 # Now try to locate executable using which 19335 new_path=`$WHICH "$new_path" 2> /dev/null` 19336 19337 if test "x$new_path" = x; then 19338 # Oops. Which didn't find the executable. 19339 # The splitting of arguments from the executable at a space might have been incorrect, 19340 # since paths with space are more likely in Windows. Give it another try with the whole 19341 # argument. 19342 path="$complete" 19343 arguments="EOL" 19344 new_path="$path" 19345 19346 windows_path="$new_path" 19347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19348 unix_path=`$CYGPATH -u "$windows_path"` 19349 new_path="$unix_path" 19350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19352 new_path="$unix_path" 19353 fi 19354 19355 19356 new_path=`$WHICH "$new_path" 2> /dev/null` 19357 19358 if test "x$new_path" = x; then 19359 # It's still not found. Now this is an unrecoverable error. 19360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 19361 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 19362 has_space=`$ECHO "$complete" | $GREP " "` 19363 if test "x$has_space" != x; then 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19365 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19366 fi 19367 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19368 fi 19369 fi 19370 19371 # Now new_path has a complete unix path to the binary 19372 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19373 # Keep paths in /bin as-is, but remove trailing .exe if any 19374 new_path="${new_path/%.exe/}" 19375 # Do not save /bin paths to all_fixpath_prefixes! 19376 else 19377 # Not in mixed or Windows style, start by that. 19378 new_path=`cmd //c echo $new_path` 19379 19380 input_path="$new_path" 19381 # Check if we need to convert this using DOS-style short mode. If the path 19382 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19383 # take no chances and rewrite it. 19384 # Note: m4 eats our [], so we need to use [ and ] instead. 19385 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19386 if test "x$has_forbidden_chars" != x; then 19387 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19388 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19389 fi 19390 19391 # Output is in $new_path 19392 19393 windows_path="$new_path" 19394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19395 unix_path=`$CYGPATH -u "$windows_path"` 19396 new_path="$unix_path" 19397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19399 new_path="$unix_path" 19400 fi 19401 19402 # remove trailing .exe if any 19403 new_path="${new_path/%.exe/}" 19404 19405 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19406 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19407 fi 19408 19409 else 19410 # We're on a posix platform. Hooray! :) 19411 # First separate the path from the arguments. This will split at the first 19412 # space. 19413 complete="$PROPER_COMPILER_CC" 19414 path="${complete%% *}" 19415 tmp="$complete EOL" 19416 arguments="${tmp#* }" 19417 19418 # Cannot rely on the command "which" here since it doesn't always work. 19419 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19420 if test -z "$is_absolute_path"; then 19421 # Path to executable is not absolute. Find it. 19422 IFS_save="$IFS" 19423 IFS=: 19424 for p in $PATH; do 19425 if test -f "$p/$path" && test -x "$p/$path"; then 19426 new_path="$p/$path" 19427 break 19428 fi 19429 done 19430 IFS="$IFS_save" 19431 else 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&5 19433 $as_echo "$as_me: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&6;} 19434 new_path="$path" 19435 fi 19436 19437 if test "x$new_path" = x; then 19438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 19439 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 19440 has_space=`$ECHO "$complete" | $GREP " "` 19441 if test "x$has_space" != x; then 19442 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19443 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19444 fi 19445 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19446 fi 19447 fi 19448 19449 # Now join together the path and the arguments once again 19450 if test "x$arguments" != xEOL; then 19451 new_complete="$new_path ${arguments% *}" 19452 else 19453 new_complete="$new_path" 19454 fi 19455 19456 if test "x$complete" != "x$new_complete"; then 19457 PROPER_COMPILER_CC="$new_complete" 19458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 19459 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 19460 fi 19461 19462 PATH="$RETRY_COMPILER_SAVED_PATH" 19463 19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 19465 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 19466 19467 if test "x$OPENJDK_BUILD_OS" != xwindows; then 19468 # Follow a chain of symbolic links. Use readlink 19469 # where it exists, else fall back to horribly 19470 # complicated shell code. 19471 if test "x$READLINK_TESTED" != yes; then 19472 # On MacOSX there is a readlink tool with a different 19473 # purpose than the GNU readlink tool. Check the found readlink. 19474 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 19475 if test "x$ISGNU" = x; then 19476 # A readlink that we do not know how to use. 19477 # Are there other non-GNU readlinks out there? 19478 READLINK_TESTED=yes 19479 READLINK= 19480 fi 19481 fi 19482 19483 if test "x$READLINK" != x; then 19484 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 19485 else 19486 # Save the current directory for restoring afterwards 19487 STARTDIR=$PWD 19488 COUNTER=0 19489 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 19490 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 19491 # Use the system pwd and not the shell builtin to resolve directory symlinks 19492 cd $sym_link_dir 19493 cd `$THEPWDCMD` 19494 sym_link_dir=`$THEPWDCMD` 19495 # Resolve file symlinks 19496 while test $COUNTER -lt 20; do 19497 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 19498 if test "x$ISLINK" == x; then 19499 # This is not a symbolic link! We are done! 19500 break 19501 fi 19502 # Again resolve directory symlinks since the target of the just found 19503 # link could be in a different directory 19504 cd `$DIRNAME $ISLINK` 19505 sym_link_dir=`$THEPWDCMD` 19506 sym_link_file=`$BASENAME $ISLINK` 19507 let COUNTER=COUNTER+1 19508 done 19509 cd $STARTDIR 19510 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 19511 fi 19512 fi 19513 19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 19515 $as_echo "$PROPER_COMPILER_CC" >&6; } 19516 CC="$PROPER_COMPILER_CC" 19517 else 19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 19519 $as_echo "no, keeping CC" >&6; } 19520 CC="$TEST_COMPILER" 19521 fi 19522 19523 COMPILER=$CC 19524 COMPILER_NAME=$COMPILER_NAME 19525 19526 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 19527 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work 19528 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1` 19529 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 19530 if test $? -ne 0; then 19531 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 19532 19533 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5 19534 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;} 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5 19536 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;} 19537 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5 19538 else 19539 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"` 19540 COMPILER_VENDOR="Sun Studio" 19541 fi 19542 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 19543 # First line typically looks something like: 19544 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 19545 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1` 19546 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"` 19547 COMPILER_VENDOR="Microsoft CL.EXE" 19548 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"` 19549 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 19550 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 19551 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 19552 fi 19553 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 19554 if test "x$COMPILER_CPU_TEST" != "xx64"; then 19555 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 19556 fi 19557 fi 19558 else 19559 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 19560 # Check that this is likely to be GCC. 19561 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null 19562 if test $? -ne 0; then 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 19564 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} 19565 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 19566 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} 19567 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 19568 fi 19569 19570 # First line typically looks something like: 19571 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 19572 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` 19573 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` 19574 fi 19575 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) 19576 CC_VERSION="$COMPILER_VERSION" 19577 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) 19578 CC_VENDOR="$COMPILER_VENDOR" 19579 19580 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5 19581 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;} 19582 19583 19584 # Now that we have resolved CC ourself, let autoconf have its go at it 19585 ac_ext=c 19586 ac_cpp='$CPP $CPPFLAGS' 19587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19589 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19590 if test -n "$ac_tool_prefix"; then 19591 for ac_prog in $CC 19592 do 19593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19596 $as_echo_n "checking for $ac_word... " >&6; } 19597 if ${ac_cv_prog_CC+:} false; then : 19598 $as_echo_n "(cached) " >&6 19599 else 19600 if test -n "$CC"; then 19601 ac_cv_prog_CC="$CC" # Let the user override the test. 19602 else 19603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19604 for as_dir in $PATH 19605 do 19606 IFS=$as_save_IFS 19607 test -z "$as_dir" && as_dir=. 19608 for ac_exec_ext in '' $ac_executable_extensions; do 19609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19612 break 2 19613 fi 19614 done 19615 done 19616 IFS=$as_save_IFS 19617 19618 fi 19619 fi 19620 CC=$ac_cv_prog_CC 19621 if test -n "$CC"; then 19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 19623 $as_echo "$CC" >&6; } 19624 else 19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19626 $as_echo "no" >&6; } 19627 fi 19628 19629 19630 test -n "$CC" && break 19631 done 19632 fi 19633 if test -z "$CC"; then 19634 ac_ct_CC=$CC 19635 for ac_prog in $CC 19636 do 19637 # Extract the first word of "$ac_prog", so it can be a program name with args. 19638 set dummy $ac_prog; ac_word=$2 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19640 $as_echo_n "checking for $ac_word... " >&6; } 19641 if ${ac_cv_prog_ac_ct_CC+:} false; then : 19642 $as_echo_n "(cached) " >&6 19643 else 19644 if test -n "$ac_ct_CC"; then 19645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19646 else 19647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19648 for as_dir in $PATH 19649 do 19650 IFS=$as_save_IFS 19651 test -z "$as_dir" && as_dir=. 19652 for ac_exec_ext in '' $ac_executable_extensions; do 19653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19654 ac_cv_prog_ac_ct_CC="$ac_prog" 19655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19656 break 2 19657 fi 19658 done 19659 done 19660 IFS=$as_save_IFS 19661 19662 fi 19663 fi 19664 ac_ct_CC=$ac_cv_prog_ac_ct_CC 19665 if test -n "$ac_ct_CC"; then 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 19667 $as_echo "$ac_ct_CC" >&6; } 19668 else 19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19670 $as_echo "no" >&6; } 19671 fi 19672 19673 19674 test -n "$ac_ct_CC" && break 19675 done 19676 19677 if test "x$ac_ct_CC" = x; then 19678 CC="" 19679 else 19680 case $cross_compiling:$ac_tool_warned in 19681 yes:) 19682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19684 ac_tool_warned=yes ;; 19685 esac 19686 CC=$ac_ct_CC 19687 fi 19688 fi 19689 19690 19691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19693 as_fn_error $? "no acceptable C compiler found in \$PATH 19694 See \`config.log' for more details" "$LINENO" 5; } 19695 19696 # Provide some information about the compiler. 19697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 19698 set X $ac_compile 19699 ac_compiler=$2 19700 for ac_option in --version -v -V -qversion; do 19701 { { ac_try="$ac_compiler $ac_option >&5" 19702 case "(($ac_try" in 19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19704 *) ac_try_echo=$ac_try;; 19705 esac 19706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19707 $as_echo "$ac_try_echo"; } >&5 19708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 19709 ac_status=$? 19710 if test -s conftest.err; then 19711 sed '10a\ 19712 ... rest of stderr output deleted ... 19713 10q' conftest.err >conftest.er1 19714 cat conftest.er1 >&5 19715 fi 19716 rm -f conftest.er1 conftest.err 19717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19718 test $ac_status = 0; } 19719 done 19720 19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19722 /* end confdefs.h. */ 19723 19724 int 19725 main () 19726 { 19727 19728 ; 19729 return 0; 19730 } 19731 _ACEOF 19732 ac_clean_files_save=$ac_clean_files 19733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 19734 # Try to create an executable without -o first, disregard a.out. 19735 # It will help us diagnose broken compilers, and finding out an intuition 19736 # of exeext. 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 19738 $as_echo_n "checking whether the C compiler works... " >&6; } 19739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 19740 19741 # The possible output files: 19742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 19743 19744 ac_rmfiles= 19745 for ac_file in $ac_files 19746 do 19747 case $ac_file in 19748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 19749 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 19750 esac 19751 done 19752 rm -f $ac_rmfiles 19753 19754 if { { ac_try="$ac_link_default" 19755 case "(($ac_try" in 19756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19757 *) ac_try_echo=$ac_try;; 19758 esac 19759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19760 $as_echo "$ac_try_echo"; } >&5 19761 (eval "$ac_link_default") 2>&5 19762 ac_status=$? 19763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19764 test $ac_status = 0; }; then : 19765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 19766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 19767 # in a Makefile. We should not override ac_cv_exeext if it was cached, 19768 # so that the user can short-circuit this test for compilers unknown to 19769 # Autoconf. 19770 for ac_file in $ac_files '' 19771 do 19772 test -f "$ac_file" || continue 19773 case $ac_file in 19774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 19775 ;; 19776 [ab].out ) 19777 # We found the default executable, but exeext='' is most 19778 # certainly right. 19779 break;; 19780 *.* ) 19781 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 19782 then :; else 19783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 19784 fi 19785 # We set ac_cv_exeext here because the later test for it is not 19786 # safe: cross compilers may not add the suffix if given an `-o' 19787 # argument, so we may need to know it at that point already. 19788 # Even if this section looks crufty: it has the advantage of 19789 # actually working. 19790 break;; 19791 * ) 19792 break;; 19793 esac 19794 done 19795 test "$ac_cv_exeext" = no && ac_cv_exeext= 19796 19797 else 19798 ac_file='' 19799 fi 19800 if test -z "$ac_file"; then : 19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19802 $as_echo "no" >&6; } 19803 $as_echo "$as_me: failed program was:" >&5 19804 sed 's/^/| /' conftest.$ac_ext >&5 19805 19806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19808 as_fn_error 77 "C compiler cannot create executables 19809 See \`config.log' for more details" "$LINENO" 5; } 19810 else 19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19812 $as_echo "yes" >&6; } 19813 fi 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 19815 $as_echo_n "checking for C compiler default output file name... " >&6; } 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 19817 $as_echo "$ac_file" >&6; } 19818 ac_exeext=$ac_cv_exeext 19819 19820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 19821 ac_clean_files=$ac_clean_files_save 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 19823 $as_echo_n "checking for suffix of executables... " >&6; } 19824 if { { ac_try="$ac_link" 19825 case "(($ac_try" in 19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19827 *) ac_try_echo=$ac_try;; 19828 esac 19829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19830 $as_echo "$ac_try_echo"; } >&5 19831 (eval "$ac_link") 2>&5 19832 ac_status=$? 19833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19834 test $ac_status = 0; }; then : 19835 # If both `conftest.exe' and `conftest' are `present' (well, observable) 19836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 19837 # work properly (i.e., refer to `conftest.exe'), while it won't with 19838 # `rm'. 19839 for ac_file in conftest.exe conftest conftest.*; do 19840 test -f "$ac_file" || continue 19841 case $ac_file in 19842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 19843 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 19844 break;; 19845 * ) break;; 19846 esac 19847 done 19848 else 19849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19851 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 19852 See \`config.log' for more details" "$LINENO" 5; } 19853 fi 19854 rm -f conftest conftest$ac_cv_exeext 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 19856 $as_echo "$ac_cv_exeext" >&6; } 19857 19858 rm -f conftest.$ac_ext 19859 EXEEXT=$ac_cv_exeext 19860 ac_exeext=$EXEEXT 19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19862 /* end confdefs.h. */ 19863 #include <stdio.h> 19864 int 19865 main () 19866 { 19867 FILE *f = fopen ("conftest.out", "w"); 19868 return ferror (f) || fclose (f) != 0; 19869 19870 ; 19871 return 0; 19872 } 19873 _ACEOF 19874 ac_clean_files="$ac_clean_files conftest.out" 19875 # Check that the compiler produces executables we can run. If not, either 19876 # the compiler is broken, or we cross compile. 19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 19878 $as_echo_n "checking whether we are cross compiling... " >&6; } 19879 if test "$cross_compiling" != yes; then 19880 { { ac_try="$ac_link" 19881 case "(($ac_try" in 19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19883 *) ac_try_echo=$ac_try;; 19884 esac 19885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19886 $as_echo "$ac_try_echo"; } >&5 19887 (eval "$ac_link") 2>&5 19888 ac_status=$? 19889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19890 test $ac_status = 0; } 19891 if { ac_try='./conftest$ac_cv_exeext' 19892 { { case "(($ac_try" in 19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19894 *) ac_try_echo=$ac_try;; 19895 esac 19896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19897 $as_echo "$ac_try_echo"; } >&5 19898 (eval "$ac_try") 2>&5 19899 ac_status=$? 19900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19901 test $ac_status = 0; }; }; then 19902 cross_compiling=no 19903 else 19904 if test "$cross_compiling" = maybe; then 19905 cross_compiling=yes 19906 else 19907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19909 as_fn_error $? "cannot run C compiled programs. 19910 If you meant to cross compile, use \`--host'. 19911 See \`config.log' for more details" "$LINENO" 5; } 19912 fi 19913 fi 19914 fi 19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 19916 $as_echo "$cross_compiling" >&6; } 19917 19918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 19919 ac_clean_files=$ac_clean_files_save 19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 19921 $as_echo_n "checking for suffix of object files... " >&6; } 19922 if ${ac_cv_objext+:} false; then : 19923 $as_echo_n "(cached) " >&6 19924 else 19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19926 /* end confdefs.h. */ 19927 19928 int 19929 main () 19930 { 19931 19932 ; 19933 return 0; 19934 } 19935 _ACEOF 19936 rm -f conftest.o conftest.obj 19937 if { { ac_try="$ac_compile" 19938 case "(($ac_try" in 19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19940 *) ac_try_echo=$ac_try;; 19941 esac 19942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19943 $as_echo "$ac_try_echo"; } >&5 19944 (eval "$ac_compile") 2>&5 19945 ac_status=$? 19946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19947 test $ac_status = 0; }; then : 19948 for ac_file in conftest.o conftest.obj conftest.*; do 19949 test -f "$ac_file" || continue; 19950 case $ac_file in 19951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 19952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 19953 break;; 19954 esac 19955 done 19956 else 19957 $as_echo "$as_me: failed program was:" >&5 19958 sed 's/^/| /' conftest.$ac_ext >&5 19959 19960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19962 as_fn_error $? "cannot compute suffix of object files: cannot compile 19963 See \`config.log' for more details" "$LINENO" 5; } 19964 fi 19965 rm -f conftest.$ac_cv_objext conftest.$ac_ext 19966 fi 19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 19968 $as_echo "$ac_cv_objext" >&6; } 19969 OBJEXT=$ac_cv_objext 19970 ac_objext=$OBJEXT 19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 19972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 19973 if ${ac_cv_c_compiler_gnu+:} false; then : 19974 $as_echo_n "(cached) " >&6 19975 else 19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19977 /* end confdefs.h. */ 19978 19979 int 19980 main () 19981 { 19982 #ifndef __GNUC__ 19983 choke me 19984 #endif 19985 19986 ; 19987 return 0; 19988 } 19989 _ACEOF 19990 if ac_fn_c_try_compile "$LINENO"; then : 19991 ac_compiler_gnu=yes 19992 else 19993 ac_compiler_gnu=no 19994 fi 19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19996 ac_cv_c_compiler_gnu=$ac_compiler_gnu 19997 19998 fi 19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 20000 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 20001 if test $ac_compiler_gnu = yes; then 20002 GCC=yes 20003 else 20004 GCC= 20005 fi 20006 ac_test_CFLAGS=${CFLAGS+set} 20007 ac_save_CFLAGS=$CFLAGS 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 20009 $as_echo_n "checking whether $CC accepts -g... " >&6; } 20010 if ${ac_cv_prog_cc_g+:} false; then : 20011 $as_echo_n "(cached) " >&6 20012 else 20013 ac_save_c_werror_flag=$ac_c_werror_flag 20014 ac_c_werror_flag=yes 20015 ac_cv_prog_cc_g=no 20016 CFLAGS="-g" 20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20018 /* end confdefs.h. */ 20019 20020 int 20021 main () 20022 { 20023 20024 ; 20025 return 0; 20026 } 20027 _ACEOF 20028 if ac_fn_c_try_compile "$LINENO"; then : 20029 ac_cv_prog_cc_g=yes 20030 else 20031 CFLAGS="" 20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20033 /* end confdefs.h. */ 20034 20035 int 20036 main () 20037 { 20038 20039 ; 20040 return 0; 20041 } 20042 _ACEOF 20043 if ac_fn_c_try_compile "$LINENO"; then : 20044 20045 else 20046 ac_c_werror_flag=$ac_save_c_werror_flag 20047 CFLAGS="-g" 20048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20049 /* end confdefs.h. */ 20050 20051 int 20052 main () 20053 { 20054 20055 ; 20056 return 0; 20057 } 20058 _ACEOF 20059 if ac_fn_c_try_compile "$LINENO"; then : 20060 ac_cv_prog_cc_g=yes 20061 fi 20062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20063 fi 20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20065 fi 20066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20067 ac_c_werror_flag=$ac_save_c_werror_flag 20068 fi 20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 20070 $as_echo "$ac_cv_prog_cc_g" >&6; } 20071 if test "$ac_test_CFLAGS" = set; then 20072 CFLAGS=$ac_save_CFLAGS 20073 elif test $ac_cv_prog_cc_g = yes; then 20074 if test "$GCC" = yes; then 20075 CFLAGS="-g -O2" 20076 else 20077 CFLAGS="-g" 20078 fi 20079 else 20080 if test "$GCC" = yes; then 20081 CFLAGS="-O2" 20082 else 20083 CFLAGS= 20084 fi 20085 fi 20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 20087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20088 if ${ac_cv_prog_cc_c89+:} false; then : 20089 $as_echo_n "(cached) " >&6 20090 else 20091 ac_cv_prog_cc_c89=no 20092 ac_save_CC=$CC 20093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20094 /* end confdefs.h. */ 20095 #include <stdarg.h> 20096 #include <stdio.h> 20097 #include <sys/types.h> 20098 #include <sys/stat.h> 20099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20100 struct buf { int x; }; 20101 FILE * (*rcsopen) (struct buf *, struct stat *, int); 20102 static char *e (p, i) 20103 char **p; 20104 int i; 20105 { 20106 return p[i]; 20107 } 20108 static char *f (char * (*g) (char **, int), char **p, ...) 20109 { 20110 char *s; 20111 va_list v; 20112 va_start (v,p); 20113 s = g (p, va_arg (v,int)); 20114 va_end (v); 20115 return s; 20116 } 20117 20118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20119 function prototypes and stuff, but not '\xHH' hex character constants. 20120 These don't provoke an error unfortunately, instead are silently treated 20121 as 'x'. The following induces an error, until -std is added to get 20122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20123 array size at least. It's necessary to write '\x00'==0 to get something 20124 that's true only with -std. */ 20125 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20126 20127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20128 inside strings and character constants. */ 20129 #define FOO(x) 'x' 20130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20131 20132 int test (int i, double x); 20133 struct s1 {int (*f) (int a);}; 20134 struct s2 {int (*f) (double a);}; 20135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20136 int argc; 20137 char **argv; 20138 int 20139 main () 20140 { 20141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20142 ; 20143 return 0; 20144 } 20145 _ACEOF 20146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20148 do 20149 CC="$ac_save_CC $ac_arg" 20150 if ac_fn_c_try_compile "$LINENO"; then : 20151 ac_cv_prog_cc_c89=$ac_arg 20152 fi 20153 rm -f core conftest.err conftest.$ac_objext 20154 test "x$ac_cv_prog_cc_c89" != "xno" && break 20155 done 20156 rm -f conftest.$ac_ext 20157 CC=$ac_save_CC 20158 20159 fi 20160 # AC_CACHE_VAL 20161 case "x$ac_cv_prog_cc_c89" in 20162 x) 20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 20164 $as_echo "none needed" >&6; } ;; 20165 xno) 20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 20167 $as_echo "unsupported" >&6; } ;; 20168 *) 20169 CC="$CC $ac_cv_prog_cc_c89" 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 20171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20172 esac 20173 if test "x$ac_cv_prog_cc_c89" != xno; then : 20174 20175 fi 20176 20177 ac_ext=cpp 20178 ac_cpp='$CXXCPP $CPPFLAGS' 20179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20182 20183 20184 ### Locate C++ compiler (CXX) 20185 20186 if test "x$CXX" != x; then 20187 COMPILER_CHECK_LIST="$CXX" 20188 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then 20189 COMPILER_CHECK_LIST="cl" 20190 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 20191 COMPILER_CHECK_LIST="CC g++" 20192 else 20193 COMPILER_CHECK_LIST="g++ CC" 20194 fi 20195 20196 20197 COMPILER_NAME=C++ 20198 20199 CXX= 20200 # If TOOLS_DIR is set, check for all compiler names in there first 20201 # before checking the rest of the PATH. 20202 if test -n "$TOOLS_DIR"; then 20203 PATH_save="$PATH" 20204 PATH="$TOOLS_DIR" 20205 for ac_prog in $COMPILER_CHECK_LIST 20206 do 20207 # Extract the first word of "$ac_prog", so it can be a program name with args. 20208 set dummy $ac_prog; ac_word=$2 20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20210 $as_echo_n "checking for $ac_word... " >&6; } 20211 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then : 20212 $as_echo_n "(cached) " >&6 20213 else 20214 case $TOOLS_DIR_CXX in 20215 [\\/]* | ?:[\\/]*) 20216 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path. 20217 ;; 20218 *) 20219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20220 for as_dir in $PATH 20221 do 20222 IFS=$as_save_IFS 20223 test -z "$as_dir" && as_dir=. 20224 for ac_exec_ext in '' $ac_executable_extensions; do 20225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20226 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext" 20227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20228 break 2 20229 fi 20230 done 20231 done 20232 IFS=$as_save_IFS 20233 20234 ;; 20235 esac 20236 fi 20237 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX 20238 if test -n "$TOOLS_DIR_CXX"; then 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5 20240 $as_echo "$TOOLS_DIR_CXX" >&6; } 20241 else 20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20243 $as_echo "no" >&6; } 20244 fi 20245 20246 20247 test -n "$TOOLS_DIR_CXX" && break 20248 done 20249 20250 CXX=$TOOLS_DIR_CXX 20251 PATH="$PATH_save" 20252 fi 20253 20254 # AC_PATH_PROGS can't be run multiple times with the same variable, 20255 # so create a new name for this run. 20256 if test "x$CXX" = x; then 20257 for ac_prog in $COMPILER_CHECK_LIST 20258 do 20259 # Extract the first word of "$ac_prog", so it can be a program name with args. 20260 set dummy $ac_prog; ac_word=$2 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20262 $as_echo_n "checking for $ac_word... " >&6; } 20263 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 20264 $as_echo_n "(cached) " >&6 20265 else 20266 case $POTENTIAL_CXX in 20267 [\\/]* | ?:[\\/]*) 20268 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 20269 ;; 20270 *) 20271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20272 for as_dir in $PATH 20273 do 20274 IFS=$as_save_IFS 20275 test -z "$as_dir" && as_dir=. 20276 for ac_exec_ext in '' $ac_executable_extensions; do 20277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20278 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 20279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20280 break 2 20281 fi 20282 done 20283 done 20284 IFS=$as_save_IFS 20285 20286 ;; 20287 esac 20288 fi 20289 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 20290 if test -n "$POTENTIAL_CXX"; then 20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 20292 $as_echo "$POTENTIAL_CXX" >&6; } 20293 else 20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20295 $as_echo "no" >&6; } 20296 fi 20297 20298 20299 test -n "$POTENTIAL_CXX" && break 20300 done 20301 20302 CXX=$POTENTIAL_CXX 20303 fi 20304 20305 if test "x$CXX" = x; then 20306 20307 # Print a helpful message on how to acquire the necessary build dependency. 20308 # devkit is the help tag: freetyp2, cups, pulse, alsa etc 20309 MISSING_DEPENDENCY=devkit 20310 PKGHANDLER_COMMAND= 20311 20312 case $PKGHANDLER in 20313 apt-get) 20314 apt_help $MISSING_DEPENDENCY ;; 20315 yum) 20316 yum_help $MISSING_DEPENDENCY ;; 20317 port) 20318 port_help $MISSING_DEPENDENCY ;; 20319 pkgutil) 20320 pkgutil_help $MISSING_DEPENDENCY ;; 20321 pkgadd) 20322 pkgadd_help $MISSING_DEPENDENCY ;; 20323 * ) 20324 break ;; 20325 esac 20326 20327 if test "x$PKGHANDLER_COMMAND" != x; then 20328 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 20329 fi 20330 20331 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 20332 fi 20333 20334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20335 20336 # First separate the path from the arguments. This will split at the first 20337 # space. 20338 complete="$CXX" 20339 path="${complete%% *}" 20340 tmp="$complete EOL" 20341 arguments="${tmp#* }" 20342 20343 # Input might be given as Windows format, start by converting to 20344 # unix format. 20345 new_path=`$CYGPATH -u "$path"` 20346 20347 # Now try to locate executable using which 20348 new_path=`$WHICH "$new_path" 2> /dev/null` 20349 # bat and cmd files are not always considered executable in cygwin causing which 20350 # to not find them 20351 if test "x$new_path" = x \ 20352 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20353 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20354 new_path=`$CYGPATH -u "$path"` 20355 fi 20356 if test "x$new_path" = x; then 20357 # Oops. Which didn't find the executable. 20358 # The splitting of arguments from the executable at a space might have been incorrect, 20359 # since paths with space are more likely in Windows. Give it another try with the whole 20360 # argument. 20361 path="$complete" 20362 arguments="EOL" 20363 new_path=`$CYGPATH -u "$path"` 20364 new_path=`$WHICH "$new_path" 2> /dev/null` 20365 # bat and cmd files are not always considered executable in cygwin causing which 20366 # to not find them 20367 if test "x$new_path" = x \ 20368 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20369 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20370 new_path=`$CYGPATH -u "$path"` 20371 fi 20372 if test "x$new_path" = x; then 20373 # It's still not found. Now this is an unrecoverable error. 20374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 20375 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 20376 has_space=`$ECHO "$complete" | $GREP " "` 20377 if test "x$has_space" != x; then 20378 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20379 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20380 fi 20381 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20382 fi 20383 fi 20384 20385 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20386 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20387 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20388 # "foo.exe" is OK but "foo" is an error. 20389 # 20390 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20391 # It is also a way to make sure we got the proper file name for the real test later on. 20392 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20393 if test "x$test_shortpath" = x; then 20394 # Short path failed, file does not exist as specified. 20395 # Try adding .exe or .cmd 20396 if test -f "${new_path}.exe"; then 20397 input_to_shortpath="${new_path}.exe" 20398 elif test -f "${new_path}.cmd"; then 20399 input_to_shortpath="${new_path}.cmd" 20400 else 20401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 20402 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20404 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20405 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20406 fi 20407 else 20408 input_to_shortpath="$new_path" 20409 fi 20410 20411 # Call helper function which possibly converts this using DOS-style short mode. 20412 # If so, the updated path is stored in $new_path. 20413 new_path="$input_to_shortpath" 20414 20415 input_path="$input_to_shortpath" 20416 # Check if we need to convert this using DOS-style short mode. If the path 20417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20418 # take no chances and rewrite it. 20419 # Note: m4 eats our [], so we need to use [ and ] instead. 20420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20421 if test "x$has_forbidden_chars" != x; then 20422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20423 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20424 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20425 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20426 # Going to short mode and back again did indeed matter. Since short mode is 20427 # case insensitive, let's make it lowercase to improve readability. 20428 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20429 # Now convert it back to Unix-stile (cygpath) 20430 input_path=`$CYGPATH -u "$shortmode_path"` 20431 new_path="$input_path" 20432 fi 20433 fi 20434 20435 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20436 if test "x$test_cygdrive_prefix" = x; then 20437 # As a simple fix, exclude /usr/bin since it's not a real path. 20438 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20439 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20440 # a path prefixed by /cygdrive for fixpath to work. 20441 new_path="$CYGWIN_ROOT_PATH$input_path" 20442 fi 20443 fi 20444 20445 # remove trailing .exe if any 20446 new_path="${new_path/%.exe/}" 20447 20448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20449 20450 # First separate the path from the arguments. This will split at the first 20451 # space. 20452 complete="$CXX" 20453 path="${complete%% *}" 20454 tmp="$complete EOL" 20455 arguments="${tmp#* }" 20456 20457 # Input might be given as Windows format, start by converting to 20458 # unix format. 20459 new_path="$path" 20460 20461 windows_path="$new_path" 20462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20463 unix_path=`$CYGPATH -u "$windows_path"` 20464 new_path="$unix_path" 20465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20467 new_path="$unix_path" 20468 fi 20469 20470 20471 # Now try to locate executable using which 20472 new_path=`$WHICH "$new_path" 2> /dev/null` 20473 20474 if test "x$new_path" = x; then 20475 # Oops. Which didn't find the executable. 20476 # The splitting of arguments from the executable at a space might have been incorrect, 20477 # since paths with space are more likely in Windows. Give it another try with the whole 20478 # argument. 20479 path="$complete" 20480 arguments="EOL" 20481 new_path="$path" 20482 20483 windows_path="$new_path" 20484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20485 unix_path=`$CYGPATH -u "$windows_path"` 20486 new_path="$unix_path" 20487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20489 new_path="$unix_path" 20490 fi 20491 20492 20493 new_path=`$WHICH "$new_path" 2> /dev/null` 20494 20495 if test "x$new_path" = x; then 20496 # It's still not found. Now this is an unrecoverable error. 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 20498 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 20499 has_space=`$ECHO "$complete" | $GREP " "` 20500 if test "x$has_space" != x; then 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20502 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20503 fi 20504 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20505 fi 20506 fi 20507 20508 # Now new_path has a complete unix path to the binary 20509 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20510 # Keep paths in /bin as-is, but remove trailing .exe if any 20511 new_path="${new_path/%.exe/}" 20512 # Do not save /bin paths to all_fixpath_prefixes! 20513 else 20514 # Not in mixed or Windows style, start by that. 20515 new_path=`cmd //c echo $new_path` 20516 20517 input_path="$new_path" 20518 # Check if we need to convert this using DOS-style short mode. If the path 20519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20520 # take no chances and rewrite it. 20521 # Note: m4 eats our [], so we need to use [ and ] instead. 20522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20523 if test "x$has_forbidden_chars" != x; then 20524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20526 fi 20527 20528 # Output is in $new_path 20529 20530 windows_path="$new_path" 20531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20532 unix_path=`$CYGPATH -u "$windows_path"` 20533 new_path="$unix_path" 20534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20536 new_path="$unix_path" 20537 fi 20538 20539 # remove trailing .exe if any 20540 new_path="${new_path/%.exe/}" 20541 20542 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20543 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20544 fi 20545 20546 else 20547 # We're on a posix platform. Hooray! :) 20548 # First separate the path from the arguments. This will split at the first 20549 # space. 20550 complete="$CXX" 20551 path="${complete%% *}" 20552 tmp="$complete EOL" 20553 arguments="${tmp#* }" 20554 20555 # Cannot rely on the command "which" here since it doesn't always work. 20556 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20557 if test -z "$is_absolute_path"; then 20558 # Path to executable is not absolute. Find it. 20559 IFS_save="$IFS" 20560 IFS=: 20561 for p in $PATH; do 20562 if test -f "$p/$path" && test -x "$p/$path"; then 20563 new_path="$p/$path" 20564 break 20565 fi 20566 done 20567 IFS="$IFS_save" 20568 else 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXX (as $path) failed, using $path directly." >&5 20570 $as_echo "$as_me: Resolving CXX (as $path) failed, using $path directly." >&6;} 20571 new_path="$path" 20572 fi 20573 20574 if test "x$new_path" = x; then 20575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 20576 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 20577 has_space=`$ECHO "$complete" | $GREP " "` 20578 if test "x$has_space" != x; then 20579 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20580 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20581 fi 20582 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20583 fi 20584 fi 20585 20586 # Now join together the path and the arguments once again 20587 if test "x$arguments" != xEOL; then 20588 new_complete="$new_path ${arguments% *}" 20589 else 20590 new_complete="$new_path" 20591 fi 20592 20593 if test "x$complete" != "x$new_complete"; then 20594 CXX="$new_complete" 20595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 20596 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 20597 fi 20598 20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 20600 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 20601 TEST_COMPILER="$CXX" 20602 20603 if test "x$OPENJDK_BUILD_OS" != xwindows; then 20604 # Follow a chain of symbolic links. Use readlink 20605 # where it exists, else fall back to horribly 20606 # complicated shell code. 20607 if test "x$READLINK_TESTED" != yes; then 20608 # On MacOSX there is a readlink tool with a different 20609 # purpose than the GNU readlink tool. Check the found readlink. 20610 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 20611 if test "x$ISGNU" = x; then 20612 # A readlink that we do not know how to use. 20613 # Are there other non-GNU readlinks out there? 20614 READLINK_TESTED=yes 20615 READLINK= 20616 fi 20617 fi 20618 20619 if test "x$READLINK" != x; then 20620 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 20621 else 20622 # Save the current directory for restoring afterwards 20623 STARTDIR=$PWD 20624 COUNTER=0 20625 sym_link_dir=`$DIRNAME $TEST_COMPILER` 20626 sym_link_file=`$BASENAME $TEST_COMPILER` 20627 # Use the system pwd and not the shell builtin to resolve directory symlinks 20628 cd $sym_link_dir 20629 cd `$THEPWDCMD` 20630 sym_link_dir=`$THEPWDCMD` 20631 # Resolve file symlinks 20632 while test $COUNTER -lt 20; do 20633 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 20634 if test "x$ISLINK" == x; then 20635 # This is not a symbolic link! We are done! 20636 break 20637 fi 20638 # Again resolve directory symlinks since the target of the just found 20639 # link could be in a different directory 20640 cd `$DIRNAME $ISLINK` 20641 sym_link_dir=`$THEPWDCMD` 20642 sym_link_file=`$BASENAME $ISLINK` 20643 let COUNTER=COUNTER+1 20644 done 20645 cd $STARTDIR 20646 TEST_COMPILER=$sym_link_dir/$sym_link_file 20647 fi 20648 fi 20649 20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 20651 $as_echo "$TEST_COMPILER" >&6; } 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 20653 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 20654 20655 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 20656 if test "x$COMPILER_BASENAME" = "xccache"; then 20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 20658 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 20659 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 20660 # We want to control ccache invocation ourselves, so ignore this cc and try 20661 # searching again. 20662 20663 # Remove the path to the fake ccache cc from the PATH 20664 RETRY_COMPILER_SAVED_PATH="$PATH" 20665 COMPILER_DIRNAME=`$DIRNAME $CXX` 20666 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 20667 20668 # Try again looking for our compiler 20669 if test -n "$ac_tool_prefix"; then 20670 for ac_prog in $COMPILER_CHECK_LIST 20671 do 20672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20675 $as_echo_n "checking for $ac_word... " >&6; } 20676 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 20677 $as_echo_n "(cached) " >&6 20678 else 20679 if test -n "$PROPER_COMPILER_CXX"; then 20680 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 20681 else 20682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20683 for as_dir in $PATH 20684 do 20685 IFS=$as_save_IFS 20686 test -z "$as_dir" && as_dir=. 20687 for ac_exec_ext in '' $ac_executable_extensions; do 20688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20689 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 20690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20691 break 2 20692 fi 20693 done 20694 done 20695 IFS=$as_save_IFS 20696 20697 fi 20698 fi 20699 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 20700 if test -n "$PROPER_COMPILER_CXX"; then 20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 20702 $as_echo "$PROPER_COMPILER_CXX" >&6; } 20703 else 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20705 $as_echo "no" >&6; } 20706 fi 20707 20708 20709 test -n "$PROPER_COMPILER_CXX" && break 20710 done 20711 fi 20712 if test -z "$PROPER_COMPILER_CXX"; then 20713 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 20714 for ac_prog in $COMPILER_CHECK_LIST 20715 do 20716 # Extract the first word of "$ac_prog", so it can be a program name with args. 20717 set dummy $ac_prog; ac_word=$2 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20719 $as_echo_n "checking for $ac_word... " >&6; } 20720 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 20721 $as_echo_n "(cached) " >&6 20722 else 20723 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 20724 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 20725 else 20726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20727 for as_dir in $PATH 20728 do 20729 IFS=$as_save_IFS 20730 test -z "$as_dir" && as_dir=. 20731 for ac_exec_ext in '' $ac_executable_extensions; do 20732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20733 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 20734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20735 break 2 20736 fi 20737 done 20738 done 20739 IFS=$as_save_IFS 20740 20741 fi 20742 fi 20743 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 20744 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 20746 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 20747 else 20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20749 $as_echo "no" >&6; } 20750 fi 20751 20752 20753 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 20754 done 20755 20756 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 20757 PROPER_COMPILER_CXX="" 20758 else 20759 case $cross_compiling:$ac_tool_warned in 20760 yes:) 20761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20763 ac_tool_warned=yes ;; 20764 esac 20765 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 20766 fi 20767 fi 20768 20769 20770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20771 20772 # First separate the path from the arguments. This will split at the first 20773 # space. 20774 complete="$PROPER_COMPILER_CXX" 20775 path="${complete%% *}" 20776 tmp="$complete EOL" 20777 arguments="${tmp#* }" 20778 20779 # Input might be given as Windows format, start by converting to 20780 # unix format. 20781 new_path=`$CYGPATH -u "$path"` 20782 20783 # Now try to locate executable using which 20784 new_path=`$WHICH "$new_path" 2> /dev/null` 20785 # bat and cmd files are not always considered executable in cygwin causing which 20786 # to not find them 20787 if test "x$new_path" = x \ 20788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20790 new_path=`$CYGPATH -u "$path"` 20791 fi 20792 if test "x$new_path" = x; then 20793 # Oops. Which didn't find the executable. 20794 # The splitting of arguments from the executable at a space might have been incorrect, 20795 # since paths with space are more likely in Windows. Give it another try with the whole 20796 # argument. 20797 path="$complete" 20798 arguments="EOL" 20799 new_path=`$CYGPATH -u "$path"` 20800 new_path=`$WHICH "$new_path" 2> /dev/null` 20801 # bat and cmd files are not always considered executable in cygwin causing which 20802 # to not find them 20803 if test "x$new_path" = x \ 20804 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20805 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20806 new_path=`$CYGPATH -u "$path"` 20807 fi 20808 if test "x$new_path" = x; then 20809 # It's still not found. Now this is an unrecoverable error. 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 20811 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 20812 has_space=`$ECHO "$complete" | $GREP " "` 20813 if test "x$has_space" != x; then 20814 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20815 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20816 fi 20817 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 20818 fi 20819 fi 20820 20821 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20822 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20823 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20824 # "foo.exe" is OK but "foo" is an error. 20825 # 20826 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20827 # It is also a way to make sure we got the proper file name for the real test later on. 20828 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20829 if test "x$test_shortpath" = x; then 20830 # Short path failed, file does not exist as specified. 20831 # Try adding .exe or .cmd 20832 if test -f "${new_path}.exe"; then 20833 input_to_shortpath="${new_path}.exe" 20834 elif test -f "${new_path}.cmd"; then 20835 input_to_shortpath="${new_path}.cmd" 20836 else 20837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 20838 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20840 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20841 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 20842 fi 20843 else 20844 input_to_shortpath="$new_path" 20845 fi 20846 20847 # Call helper function which possibly converts this using DOS-style short mode. 20848 # If so, the updated path is stored in $new_path. 20849 new_path="$input_to_shortpath" 20850 20851 input_path="$input_to_shortpath" 20852 # Check if we need to convert this using DOS-style short mode. If the path 20853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20854 # take no chances and rewrite it. 20855 # Note: m4 eats our [], so we need to use [ and ] instead. 20856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20857 if test "x$has_forbidden_chars" != x; then 20858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20859 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20860 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20861 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20862 # Going to short mode and back again did indeed matter. Since short mode is 20863 # case insensitive, let's make it lowercase to improve readability. 20864 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20865 # Now convert it back to Unix-stile (cygpath) 20866 input_path=`$CYGPATH -u "$shortmode_path"` 20867 new_path="$input_path" 20868 fi 20869 fi 20870 20871 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20872 if test "x$test_cygdrive_prefix" = x; then 20873 # As a simple fix, exclude /usr/bin since it's not a real path. 20874 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20875 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20876 # a path prefixed by /cygdrive for fixpath to work. 20877 new_path="$CYGWIN_ROOT_PATH$input_path" 20878 fi 20879 fi 20880 20881 # remove trailing .exe if any 20882 new_path="${new_path/%.exe/}" 20883 20884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20885 20886 # First separate the path from the arguments. This will split at the first 20887 # space. 20888 complete="$PROPER_COMPILER_CXX" 20889 path="${complete%% *}" 20890 tmp="$complete EOL" 20891 arguments="${tmp#* }" 20892 20893 # Input might be given as Windows format, start by converting to 20894 # unix format. 20895 new_path="$path" 20896 20897 windows_path="$new_path" 20898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20899 unix_path=`$CYGPATH -u "$windows_path"` 20900 new_path="$unix_path" 20901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20903 new_path="$unix_path" 20904 fi 20905 20906 20907 # Now try to locate executable using which 20908 new_path=`$WHICH "$new_path" 2> /dev/null` 20909 20910 if test "x$new_path" = x; then 20911 # Oops. Which didn't find the executable. 20912 # The splitting of arguments from the executable at a space might have been incorrect, 20913 # since paths with space are more likely in Windows. Give it another try with the whole 20914 # argument. 20915 path="$complete" 20916 arguments="EOL" 20917 new_path="$path" 20918 20919 windows_path="$new_path" 20920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20921 unix_path=`$CYGPATH -u "$windows_path"` 20922 new_path="$unix_path" 20923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20925 new_path="$unix_path" 20926 fi 20927 20928 20929 new_path=`$WHICH "$new_path" 2> /dev/null` 20930 20931 if test "x$new_path" = x; then 20932 # It's still not found. Now this is an unrecoverable error. 20933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 20934 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 20935 has_space=`$ECHO "$complete" | $GREP " "` 20936 if test "x$has_space" != x; then 20937 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20938 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20939 fi 20940 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 20941 fi 20942 fi 20943 20944 # Now new_path has a complete unix path to the binary 20945 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20946 # Keep paths in /bin as-is, but remove trailing .exe if any 20947 new_path="${new_path/%.exe/}" 20948 # Do not save /bin paths to all_fixpath_prefixes! 20949 else 20950 # Not in mixed or Windows style, start by that. 20951 new_path=`cmd //c echo $new_path` 20952 20953 input_path="$new_path" 20954 # Check if we need to convert this using DOS-style short mode. If the path 20955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20956 # take no chances and rewrite it. 20957 # Note: m4 eats our [], so we need to use [ and ] instead. 20958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20959 if test "x$has_forbidden_chars" != x; then 20960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20962 fi 20963 20964 # Output is in $new_path 20965 20966 windows_path="$new_path" 20967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20968 unix_path=`$CYGPATH -u "$windows_path"` 20969 new_path="$unix_path" 20970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20972 new_path="$unix_path" 20973 fi 20974 20975 # remove trailing .exe if any 20976 new_path="${new_path/%.exe/}" 20977 20978 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20979 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20980 fi 20981 20982 else 20983 # We're on a posix platform. Hooray! :) 20984 # First separate the path from the arguments. This will split at the first 20985 # space. 20986 complete="$PROPER_COMPILER_CXX" 20987 path="${complete%% *}" 20988 tmp="$complete EOL" 20989 arguments="${tmp#* }" 20990 20991 # Cannot rely on the command "which" here since it doesn't always work. 20992 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20993 if test -z "$is_absolute_path"; then 20994 # Path to executable is not absolute. Find it. 20995 IFS_save="$IFS" 20996 IFS=: 20997 for p in $PATH; do 20998 if test -f "$p/$path" && test -x "$p/$path"; then 20999 new_path="$p/$path" 21000 break 21001 fi 21002 done 21003 IFS="$IFS_save" 21004 else 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&5 21006 $as_echo "$as_me: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&6;} 21007 new_path="$path" 21008 fi 21009 21010 if test "x$new_path" = x; then 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 21012 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 21013 has_space=`$ECHO "$complete" | $GREP " "` 21014 if test "x$has_space" != x; then 21015 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21016 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21017 fi 21018 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 21019 fi 21020 fi 21021 21022 # Now join together the path and the arguments once again 21023 if test "x$arguments" != xEOL; then 21024 new_complete="$new_path ${arguments% *}" 21025 else 21026 new_complete="$new_path" 21027 fi 21028 21029 if test "x$complete" != "x$new_complete"; then 21030 PROPER_COMPILER_CXX="$new_complete" 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 21032 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 21033 fi 21034 21035 PATH="$RETRY_COMPILER_SAVED_PATH" 21036 21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 21038 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 21039 21040 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21041 # Follow a chain of symbolic links. Use readlink 21042 # where it exists, else fall back to horribly 21043 # complicated shell code. 21044 if test "x$READLINK_TESTED" != yes; then 21045 # On MacOSX there is a readlink tool with a different 21046 # purpose than the GNU readlink tool. Check the found readlink. 21047 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21048 if test "x$ISGNU" = x; then 21049 # A readlink that we do not know how to use. 21050 # Are there other non-GNU readlinks out there? 21051 READLINK_TESTED=yes 21052 READLINK= 21053 fi 21054 fi 21055 21056 if test "x$READLINK" != x; then 21057 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 21058 else 21059 # Save the current directory for restoring afterwards 21060 STARTDIR=$PWD 21061 COUNTER=0 21062 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 21063 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 21064 # Use the system pwd and not the shell builtin to resolve directory symlinks 21065 cd $sym_link_dir 21066 cd `$THEPWDCMD` 21067 sym_link_dir=`$THEPWDCMD` 21068 # Resolve file symlinks 21069 while test $COUNTER -lt 20; do 21070 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21071 if test "x$ISLINK" == x; then 21072 # This is not a symbolic link! We are done! 21073 break 21074 fi 21075 # Again resolve directory symlinks since the target of the just found 21076 # link could be in a different directory 21077 cd `$DIRNAME $ISLINK` 21078 sym_link_dir=`$THEPWDCMD` 21079 sym_link_file=`$BASENAME $ISLINK` 21080 let COUNTER=COUNTER+1 21081 done 21082 cd $STARTDIR 21083 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 21084 fi 21085 fi 21086 21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 21088 $as_echo "$PROPER_COMPILER_CXX" >&6; } 21089 CXX="$PROPER_COMPILER_CXX" 21090 else 21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 21092 $as_echo "no, keeping CXX" >&6; } 21093 CXX="$TEST_COMPILER" 21094 fi 21095 21096 COMPILER=$CXX 21097 COMPILER_NAME=$COMPILER_NAME 21098 21099 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 21100 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work 21101 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1` 21102 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 21103 if test $? -ne 0; then 21104 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 21105 21106 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5 21107 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;} 21108 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5 21109 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;} 21110 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5 21111 else 21112 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"` 21113 COMPILER_VENDOR="Sun Studio" 21114 fi 21115 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 21116 # First line typically looks something like: 21117 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 21118 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1` 21119 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"` 21120 COMPILER_VENDOR="Microsoft CL.EXE" 21121 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"` 21122 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 21123 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 21124 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 21125 fi 21126 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 21127 if test "x$COMPILER_CPU_TEST" != "xx64"; then 21128 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 21129 fi 21130 fi 21131 else 21132 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 21133 # Check that this is likely to be GCC. 21134 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null 21135 if test $? -ne 0; then 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 21137 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} 21138 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 21139 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} 21140 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 21141 fi 21142 21143 # First line typically looks something like: 21144 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 21145 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` 21146 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` 21147 fi 21148 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) 21149 CXX_VERSION="$COMPILER_VERSION" 21150 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) 21151 CXX_VENDOR="$COMPILER_VENDOR" 21152 21153 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5 21154 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;} 21155 21156 21157 # Now that we have resolved CXX ourself, let autoconf have its go at it 21158 ac_ext=cpp 21159 ac_cpp='$CXXCPP $CPPFLAGS' 21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21163 if test -z "$CXX"; then 21164 if test -n "$CCC"; then 21165 CXX=$CCC 21166 else 21167 if test -n "$ac_tool_prefix"; then 21168 for ac_prog in $CXX 21169 do 21170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 21171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21173 $as_echo_n "checking for $ac_word... " >&6; } 21174 if ${ac_cv_prog_CXX+:} false; then : 21175 $as_echo_n "(cached) " >&6 21176 else 21177 if test -n "$CXX"; then 21178 ac_cv_prog_CXX="$CXX" # Let the user override the test. 21179 else 21180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21181 for as_dir in $PATH 21182 do 21183 IFS=$as_save_IFS 21184 test -z "$as_dir" && as_dir=. 21185 for ac_exec_ext in '' $ac_executable_extensions; do 21186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21187 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 21188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21189 break 2 21190 fi 21191 done 21192 done 21193 IFS=$as_save_IFS 21194 21195 fi 21196 fi 21197 CXX=$ac_cv_prog_CXX 21198 if test -n "$CXX"; then 21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 21200 $as_echo "$CXX" >&6; } 21201 else 21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21203 $as_echo "no" >&6; } 21204 fi 21205 21206 21207 test -n "$CXX" && break 21208 done 21209 fi 21210 if test -z "$CXX"; then 21211 ac_ct_CXX=$CXX 21212 for ac_prog in $CXX 21213 do 21214 # Extract the first word of "$ac_prog", so it can be a program name with args. 21215 set dummy $ac_prog; ac_word=$2 21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21217 $as_echo_n "checking for $ac_word... " >&6; } 21218 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 21219 $as_echo_n "(cached) " >&6 21220 else 21221 if test -n "$ac_ct_CXX"; then 21222 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 21223 else 21224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21225 for as_dir in $PATH 21226 do 21227 IFS=$as_save_IFS 21228 test -z "$as_dir" && as_dir=. 21229 for ac_exec_ext in '' $ac_executable_extensions; do 21230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21231 ac_cv_prog_ac_ct_CXX="$ac_prog" 21232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21233 break 2 21234 fi 21235 done 21236 done 21237 IFS=$as_save_IFS 21238 21239 fi 21240 fi 21241 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 21242 if test -n "$ac_ct_CXX"; then 21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 21244 $as_echo "$ac_ct_CXX" >&6; } 21245 else 21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21247 $as_echo "no" >&6; } 21248 fi 21249 21250 21251 test -n "$ac_ct_CXX" && break 21252 done 21253 21254 if test "x$ac_ct_CXX" = x; then 21255 CXX="g++" 21256 else 21257 case $cross_compiling:$ac_tool_warned in 21258 yes:) 21259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21261 ac_tool_warned=yes ;; 21262 esac 21263 CXX=$ac_ct_CXX 21264 fi 21265 fi 21266 21267 fi 21268 fi 21269 # Provide some information about the compiler. 21270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 21271 set X $ac_compile 21272 ac_compiler=$2 21273 for ac_option in --version -v -V -qversion; do 21274 { { ac_try="$ac_compiler $ac_option >&5" 21275 case "(($ac_try" in 21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21277 *) ac_try_echo=$ac_try;; 21278 esac 21279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21280 $as_echo "$ac_try_echo"; } >&5 21281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 21282 ac_status=$? 21283 if test -s conftest.err; then 21284 sed '10a\ 21285 ... rest of stderr output deleted ... 21286 10q' conftest.err >conftest.er1 21287 cat conftest.er1 >&5 21288 fi 21289 rm -f conftest.er1 conftest.err 21290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21291 test $ac_status = 0; } 21292 done 21293 21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 21295 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 21296 if ${ac_cv_cxx_compiler_gnu+:} false; then : 21297 $as_echo_n "(cached) " >&6 21298 else 21299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21300 /* end confdefs.h. */ 21301 21302 int 21303 main () 21304 { 21305 #ifndef __GNUC__ 21306 choke me 21307 #endif 21308 21309 ; 21310 return 0; 21311 } 21312 _ACEOF 21313 if ac_fn_cxx_try_compile "$LINENO"; then : 21314 ac_compiler_gnu=yes 21315 else 21316 ac_compiler_gnu=no 21317 fi 21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21319 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 21320 21321 fi 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 21323 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 21324 if test $ac_compiler_gnu = yes; then 21325 GXX=yes 21326 else 21327 GXX= 21328 fi 21329 ac_test_CXXFLAGS=${CXXFLAGS+set} 21330 ac_save_CXXFLAGS=$CXXFLAGS 21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 21332 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 21333 if ${ac_cv_prog_cxx_g+:} false; then : 21334 $as_echo_n "(cached) " >&6 21335 else 21336 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 21337 ac_cxx_werror_flag=yes 21338 ac_cv_prog_cxx_g=no 21339 CXXFLAGS="-g" 21340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21341 /* end confdefs.h. */ 21342 21343 int 21344 main () 21345 { 21346 21347 ; 21348 return 0; 21349 } 21350 _ACEOF 21351 if ac_fn_cxx_try_compile "$LINENO"; then : 21352 ac_cv_prog_cxx_g=yes 21353 else 21354 CXXFLAGS="" 21355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21356 /* end confdefs.h. */ 21357 21358 int 21359 main () 21360 { 21361 21362 ; 21363 return 0; 21364 } 21365 _ACEOF 21366 if ac_fn_cxx_try_compile "$LINENO"; then : 21367 21368 else 21369 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 21370 CXXFLAGS="-g" 21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21372 /* end confdefs.h. */ 21373 21374 int 21375 main () 21376 { 21377 21378 ; 21379 return 0; 21380 } 21381 _ACEOF 21382 if ac_fn_cxx_try_compile "$LINENO"; then : 21383 ac_cv_prog_cxx_g=yes 21384 fi 21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21386 fi 21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21388 fi 21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21390 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 21391 fi 21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 21393 $as_echo "$ac_cv_prog_cxx_g" >&6; } 21394 if test "$ac_test_CXXFLAGS" = set; then 21395 CXXFLAGS=$ac_save_CXXFLAGS 21396 elif test $ac_cv_prog_cxx_g = yes; then 21397 if test "$GXX" = yes; then 21398 CXXFLAGS="-g -O2" 21399 else 21400 CXXFLAGS="-g" 21401 fi 21402 else 21403 if test "$GXX" = yes; then 21404 CXXFLAGS="-O2" 21405 else 21406 CXXFLAGS= 21407 fi 21408 fi 21409 ac_ext=cpp 21410 ac_cpp='$CXXCPP $CPPFLAGS' 21411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21414 21415 21416 ### Locate other tools 21417 21418 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 21419 ac_ext=m 21420 ac_cpp='$OBJCPP $CPPFLAGS' 21421 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21422 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21423 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 21424 if test -n "$ac_tool_prefix"; then 21425 for ac_prog in gcc objcc objc cc CC 21426 do 21427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 21428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21430 $as_echo_n "checking for $ac_word... " >&6; } 21431 if ${ac_cv_prog_OBJC+:} false; then : 21432 $as_echo_n "(cached) " >&6 21433 else 21434 if test -n "$OBJC"; then 21435 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 21436 else 21437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21438 for as_dir in $PATH 21439 do 21440 IFS=$as_save_IFS 21441 test -z "$as_dir" && as_dir=. 21442 for ac_exec_ext in '' $ac_executable_extensions; do 21443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21444 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 21445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21446 break 2 21447 fi 21448 done 21449 done 21450 IFS=$as_save_IFS 21451 21452 fi 21453 fi 21454 OBJC=$ac_cv_prog_OBJC 21455 if test -n "$OBJC"; then 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 21457 $as_echo "$OBJC" >&6; } 21458 else 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21460 $as_echo "no" >&6; } 21461 fi 21462 21463 21464 test -n "$OBJC" && break 21465 done 21466 fi 21467 if test -z "$OBJC"; then 21468 ac_ct_OBJC=$OBJC 21469 for ac_prog in gcc objcc objc cc CC 21470 do 21471 # Extract the first word of "$ac_prog", so it can be a program name with args. 21472 set dummy $ac_prog; ac_word=$2 21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21474 $as_echo_n "checking for $ac_word... " >&6; } 21475 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 21476 $as_echo_n "(cached) " >&6 21477 else 21478 if test -n "$ac_ct_OBJC"; then 21479 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 21480 else 21481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21482 for as_dir in $PATH 21483 do 21484 IFS=$as_save_IFS 21485 test -z "$as_dir" && as_dir=. 21486 for ac_exec_ext in '' $ac_executable_extensions; do 21487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21488 ac_cv_prog_ac_ct_OBJC="$ac_prog" 21489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21490 break 2 21491 fi 21492 done 21493 done 21494 IFS=$as_save_IFS 21495 21496 fi 21497 fi 21498 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 21499 if test -n "$ac_ct_OBJC"; then 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 21501 $as_echo "$ac_ct_OBJC" >&6; } 21502 else 21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21504 $as_echo "no" >&6; } 21505 fi 21506 21507 21508 test -n "$ac_ct_OBJC" && break 21509 done 21510 21511 if test "x$ac_ct_OBJC" = x; then 21512 OBJC="gcc" 21513 else 21514 case $cross_compiling:$ac_tool_warned in 21515 yes:) 21516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21518 ac_tool_warned=yes ;; 21519 esac 21520 OBJC=$ac_ct_OBJC 21521 fi 21522 fi 21523 21524 # Provide some information about the compiler. 21525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 21526 set X $ac_compile 21527 ac_compiler=$2 21528 for ac_option in --version -v -V -qversion; do 21529 { { ac_try="$ac_compiler $ac_option >&5" 21530 case "(($ac_try" in 21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21532 *) ac_try_echo=$ac_try;; 21533 esac 21534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21535 $as_echo "$ac_try_echo"; } >&5 21536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 21537 ac_status=$? 21538 if test -s conftest.err; then 21539 sed '10a\ 21540 ... rest of stderr output deleted ... 21541 10q' conftest.err >conftest.er1 21542 cat conftest.er1 >&5 21543 fi 21544 rm -f conftest.er1 conftest.err 21545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21546 test $ac_status = 0; } 21547 done 21548 21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 21550 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 21551 if ${ac_cv_objc_compiler_gnu+:} false; then : 21552 $as_echo_n "(cached) " >&6 21553 else 21554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21555 /* end confdefs.h. */ 21556 21557 int 21558 main () 21559 { 21560 #ifndef __GNUC__ 21561 choke me 21562 #endif 21563 21564 ; 21565 return 0; 21566 } 21567 _ACEOF 21568 if ac_fn_objc_try_compile "$LINENO"; then : 21569 ac_compiler_gnu=yes 21570 else 21571 ac_compiler_gnu=no 21572 fi 21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21574 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 21575 21576 fi 21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 21578 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 21579 if test $ac_compiler_gnu = yes; then 21580 GOBJC=yes 21581 else 21582 GOBJC= 21583 fi 21584 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 21585 ac_save_OBJCFLAGS=$OBJCFLAGS 21586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 21587 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 21588 if ${ac_cv_prog_objc_g+:} false; then : 21589 $as_echo_n "(cached) " >&6 21590 else 21591 ac_save_objc_werror_flag=$ac_objc_werror_flag 21592 ac_objc_werror_flag=yes 21593 ac_cv_prog_objc_g=no 21594 OBJCFLAGS="-g" 21595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21596 /* end confdefs.h. */ 21597 21598 int 21599 main () 21600 { 21601 21602 ; 21603 return 0; 21604 } 21605 _ACEOF 21606 if ac_fn_objc_try_compile "$LINENO"; then : 21607 ac_cv_prog_objc_g=yes 21608 else 21609 OBJCFLAGS="" 21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21611 /* end confdefs.h. */ 21612 21613 int 21614 main () 21615 { 21616 21617 ; 21618 return 0; 21619 } 21620 _ACEOF 21621 if ac_fn_objc_try_compile "$LINENO"; then : 21622 21623 else 21624 ac_objc_werror_flag=$ac_save_objc_werror_flag 21625 OBJCFLAGS="-g" 21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21627 /* end confdefs.h. */ 21628 21629 int 21630 main () 21631 { 21632 21633 ; 21634 return 0; 21635 } 21636 _ACEOF 21637 if ac_fn_objc_try_compile "$LINENO"; then : 21638 ac_cv_prog_objc_g=yes 21639 fi 21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21641 fi 21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21643 fi 21644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21645 ac_objc_werror_flag=$ac_save_objc_werror_flag 21646 fi 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 21648 $as_echo "$ac_cv_prog_objc_g" >&6; } 21649 if test "$ac_test_OBJCFLAGS" = set; then 21650 OBJCFLAGS=$ac_save_OBJCFLAGS 21651 elif test $ac_cv_prog_objc_g = yes; then 21652 if test "$GOBJC" = yes; then 21653 OBJCFLAGS="-g -O2" 21654 else 21655 OBJCFLAGS="-g" 21656 fi 21657 else 21658 if test "$GOBJC" = yes; then 21659 OBJCFLAGS="-O2" 21660 else 21661 OBJCFLAGS= 21662 fi 21663 fi 21664 ac_ext=cpp 21665 ac_cpp='$CXXCPP $CPPFLAGS' 21666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21669 21670 21671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21672 21673 # First separate the path from the arguments. This will split at the first 21674 # space. 21675 complete="$OBJC" 21676 path="${complete%% *}" 21677 tmp="$complete EOL" 21678 arguments="${tmp#* }" 21679 21680 # Input might be given as Windows format, start by converting to 21681 # unix format. 21682 new_path=`$CYGPATH -u "$path"` 21683 21684 # Now try to locate executable using which 21685 new_path=`$WHICH "$new_path" 2> /dev/null` 21686 # bat and cmd files are not always considered executable in cygwin causing which 21687 # to not find them 21688 if test "x$new_path" = x \ 21689 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21690 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21691 new_path=`$CYGPATH -u "$path"` 21692 fi 21693 if test "x$new_path" = x; then 21694 # Oops. Which didn't find the executable. 21695 # The splitting of arguments from the executable at a space might have been incorrect, 21696 # since paths with space are more likely in Windows. Give it another try with the whole 21697 # argument. 21698 path="$complete" 21699 arguments="EOL" 21700 new_path=`$CYGPATH -u "$path"` 21701 new_path=`$WHICH "$new_path" 2> /dev/null` 21702 # bat and cmd files are not always considered executable in cygwin causing which 21703 # to not find them 21704 if test "x$new_path" = x \ 21705 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21706 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21707 new_path=`$CYGPATH -u "$path"` 21708 fi 21709 if test "x$new_path" = x; then 21710 # It's still not found. Now this is an unrecoverable error. 21711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 21712 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 21713 has_space=`$ECHO "$complete" | $GREP " "` 21714 if test "x$has_space" != x; then 21715 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21716 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21717 fi 21718 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 21719 fi 21720 fi 21721 21722 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21723 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21724 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21725 # "foo.exe" is OK but "foo" is an error. 21726 # 21727 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21728 # It is also a way to make sure we got the proper file name for the real test later on. 21729 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21730 if test "x$test_shortpath" = x; then 21731 # Short path failed, file does not exist as specified. 21732 # Try adding .exe or .cmd 21733 if test -f "${new_path}.exe"; then 21734 input_to_shortpath="${new_path}.exe" 21735 elif test -f "${new_path}.cmd"; then 21736 input_to_shortpath="${new_path}.cmd" 21737 else 21738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 21739 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 21740 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21741 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21742 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 21743 fi 21744 else 21745 input_to_shortpath="$new_path" 21746 fi 21747 21748 # Call helper function which possibly converts this using DOS-style short mode. 21749 # If so, the updated path is stored in $new_path. 21750 new_path="$input_to_shortpath" 21751 21752 input_path="$input_to_shortpath" 21753 # Check if we need to convert this using DOS-style short mode. If the path 21754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21755 # take no chances and rewrite it. 21756 # Note: m4 eats our [], so we need to use [ and ] instead. 21757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21758 if test "x$has_forbidden_chars" != x; then 21759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21760 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21761 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21762 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21763 # Going to short mode and back again did indeed matter. Since short mode is 21764 # case insensitive, let's make it lowercase to improve readability. 21765 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21766 # Now convert it back to Unix-stile (cygpath) 21767 input_path=`$CYGPATH -u "$shortmode_path"` 21768 new_path="$input_path" 21769 fi 21770 fi 21771 21772 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21773 if test "x$test_cygdrive_prefix" = x; then 21774 # As a simple fix, exclude /usr/bin since it's not a real path. 21775 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21776 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21777 # a path prefixed by /cygdrive for fixpath to work. 21778 new_path="$CYGWIN_ROOT_PATH$input_path" 21779 fi 21780 fi 21781 21782 # remove trailing .exe if any 21783 new_path="${new_path/%.exe/}" 21784 21785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21786 21787 # First separate the path from the arguments. This will split at the first 21788 # space. 21789 complete="$OBJC" 21790 path="${complete%% *}" 21791 tmp="$complete EOL" 21792 arguments="${tmp#* }" 21793 21794 # Input might be given as Windows format, start by converting to 21795 # unix format. 21796 new_path="$path" 21797 21798 windows_path="$new_path" 21799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21800 unix_path=`$CYGPATH -u "$windows_path"` 21801 new_path="$unix_path" 21802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21804 new_path="$unix_path" 21805 fi 21806 21807 21808 # Now try to locate executable using which 21809 new_path=`$WHICH "$new_path" 2> /dev/null` 21810 21811 if test "x$new_path" = x; then 21812 # Oops. Which didn't find the executable. 21813 # The splitting of arguments from the executable at a space might have been incorrect, 21814 # since paths with space are more likely in Windows. Give it another try with the whole 21815 # argument. 21816 path="$complete" 21817 arguments="EOL" 21818 new_path="$path" 21819 21820 windows_path="$new_path" 21821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21822 unix_path=`$CYGPATH -u "$windows_path"` 21823 new_path="$unix_path" 21824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21826 new_path="$unix_path" 21827 fi 21828 21829 21830 new_path=`$WHICH "$new_path" 2> /dev/null` 21831 21832 if test "x$new_path" = x; then 21833 # It's still not found. Now this is an unrecoverable error. 21834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 21835 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 21836 has_space=`$ECHO "$complete" | $GREP " "` 21837 if test "x$has_space" != x; then 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21839 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21840 fi 21841 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 21842 fi 21843 fi 21844 21845 # Now new_path has a complete unix path to the binary 21846 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21847 # Keep paths in /bin as-is, but remove trailing .exe if any 21848 new_path="${new_path/%.exe/}" 21849 # Do not save /bin paths to all_fixpath_prefixes! 21850 else 21851 # Not in mixed or Windows style, start by that. 21852 new_path=`cmd //c echo $new_path` 21853 21854 input_path="$new_path" 21855 # Check if we need to convert this using DOS-style short mode. If the path 21856 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21857 # take no chances and rewrite it. 21858 # Note: m4 eats our [], so we need to use [ and ] instead. 21859 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21860 if test "x$has_forbidden_chars" != x; then 21861 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21862 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21863 fi 21864 21865 # Output is in $new_path 21866 21867 windows_path="$new_path" 21868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21869 unix_path=`$CYGPATH -u "$windows_path"` 21870 new_path="$unix_path" 21871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21873 new_path="$unix_path" 21874 fi 21875 21876 # remove trailing .exe if any 21877 new_path="${new_path/%.exe/}" 21878 21879 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21880 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21881 fi 21882 21883 else 21884 # We're on a posix platform. Hooray! :) 21885 # First separate the path from the arguments. This will split at the first 21886 # space. 21887 complete="$OBJC" 21888 path="${complete%% *}" 21889 tmp="$complete EOL" 21890 arguments="${tmp#* }" 21891 21892 # Cannot rely on the command "which" here since it doesn't always work. 21893 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21894 if test -z "$is_absolute_path"; then 21895 # Path to executable is not absolute. Find it. 21896 IFS_save="$IFS" 21897 IFS=: 21898 for p in $PATH; do 21899 if test -f "$p/$path" && test -x "$p/$path"; then 21900 new_path="$p/$path" 21901 break 21902 fi 21903 done 21904 IFS="$IFS_save" 21905 else 21906 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJC (as $path) failed, using $path directly." >&5 21907 $as_echo "$as_me: Resolving OBJC (as $path) failed, using $path directly." >&6;} 21908 new_path="$path" 21909 fi 21910 21911 if test "x$new_path" = x; then 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 21913 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 21914 has_space=`$ECHO "$complete" | $GREP " "` 21915 if test "x$has_space" != x; then 21916 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21917 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21918 fi 21919 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 21920 fi 21921 fi 21922 21923 # Now join together the path and the arguments once again 21924 if test "x$arguments" != xEOL; then 21925 new_complete="$new_path ${arguments% *}" 21926 else 21927 new_complete="$new_path" 21928 fi 21929 21930 if test "x$complete" != "x$new_complete"; then 21931 OBJC="$new_complete" 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 21933 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 21934 fi 21935 21936 else 21937 OBJC= 21938 fi 21939 21940 # Restore the flags to the user specified values. 21941 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 21942 CFLAGS="$ORG_CFLAGS" 21943 CXXFLAGS="$ORG_CXXFLAGS" 21944 OBJCFLAGS="$ORG_OBJCFLAGS" 21945 21946 LD="$CC" 21947 LDEXE="$CC" 21948 LDCXX="$CXX" 21949 LDEXECXX="$CXX" 21950 21951 # LDEXE is the linker to use, when creating executables. 21952 21953 # Linking C++ libraries. 21954 21955 # Linking C++ executables. 21956 21957 21958 if test "x$OPENJDK_TARGET_OS" != xwindows; then 21959 if test -n "$ac_tool_prefix"; then 21960 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 21961 set dummy ${ac_tool_prefix}ar; ac_word=$2 21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21963 $as_echo_n "checking for $ac_word... " >&6; } 21964 if ${ac_cv_prog_AR+:} false; then : 21965 $as_echo_n "(cached) " >&6 21966 else 21967 if test -n "$AR"; then 21968 ac_cv_prog_AR="$AR" # Let the user override the test. 21969 else 21970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21971 for as_dir in $PATH 21972 do 21973 IFS=$as_save_IFS 21974 test -z "$as_dir" && as_dir=. 21975 for ac_exec_ext in '' $ac_executable_extensions; do 21976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21977 ac_cv_prog_AR="${ac_tool_prefix}ar" 21978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21979 break 2 21980 fi 21981 done 21982 done 21983 IFS=$as_save_IFS 21984 21985 fi 21986 fi 21987 AR=$ac_cv_prog_AR 21988 if test -n "$AR"; then 21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 21990 $as_echo "$AR" >&6; } 21991 else 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21993 $as_echo "no" >&6; } 21994 fi 21995 21996 21997 fi 21998 if test -z "$ac_cv_prog_AR"; then 21999 ac_ct_AR=$AR 22000 # Extract the first word of "ar", so it can be a program name with args. 22001 set dummy ar; ac_word=$2 22002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22003 $as_echo_n "checking for $ac_word... " >&6; } 22004 if ${ac_cv_prog_ac_ct_AR+:} false; then : 22005 $as_echo_n "(cached) " >&6 22006 else 22007 if test -n "$ac_ct_AR"; then 22008 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 22009 else 22010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22011 for as_dir in $PATH 22012 do 22013 IFS=$as_save_IFS 22014 test -z "$as_dir" && as_dir=. 22015 for ac_exec_ext in '' $ac_executable_extensions; do 22016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22017 ac_cv_prog_ac_ct_AR="ar" 22018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22019 break 2 22020 fi 22021 done 22022 done 22023 IFS=$as_save_IFS 22024 22025 fi 22026 fi 22027 ac_ct_AR=$ac_cv_prog_ac_ct_AR 22028 if test -n "$ac_ct_AR"; then 22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 22030 $as_echo "$ac_ct_AR" >&6; } 22031 else 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22033 $as_echo "no" >&6; } 22034 fi 22035 22036 if test "x$ac_ct_AR" = x; then 22037 AR="" 22038 else 22039 case $cross_compiling:$ac_tool_warned in 22040 yes:) 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22043 ac_tool_warned=yes ;; 22044 esac 22045 AR=$ac_ct_AR 22046 fi 22047 else 22048 AR="$ac_cv_prog_AR" 22049 fi 22050 22051 22052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22053 22054 # First separate the path from the arguments. This will split at the first 22055 # space. 22056 complete="$AR" 22057 path="${complete%% *}" 22058 tmp="$complete EOL" 22059 arguments="${tmp#* }" 22060 22061 # Input might be given as Windows format, start by converting to 22062 # unix format. 22063 new_path=`$CYGPATH -u "$path"` 22064 22065 # Now try to locate executable using which 22066 new_path=`$WHICH "$new_path" 2> /dev/null` 22067 # bat and cmd files are not always considered executable in cygwin causing which 22068 # to not find them 22069 if test "x$new_path" = x \ 22070 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22071 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22072 new_path=`$CYGPATH -u "$path"` 22073 fi 22074 if test "x$new_path" = x; then 22075 # Oops. Which didn't find the executable. 22076 # The splitting of arguments from the executable at a space might have been incorrect, 22077 # since paths with space are more likely in Windows. Give it another try with the whole 22078 # argument. 22079 path="$complete" 22080 arguments="EOL" 22081 new_path=`$CYGPATH -u "$path"` 22082 new_path=`$WHICH "$new_path" 2> /dev/null` 22083 # bat and cmd files are not always considered executable in cygwin causing which 22084 # to not find them 22085 if test "x$new_path" = x \ 22086 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22087 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22088 new_path=`$CYGPATH -u "$path"` 22089 fi 22090 if test "x$new_path" = x; then 22091 # It's still not found. Now this is an unrecoverable error. 22092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 22093 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 22094 has_space=`$ECHO "$complete" | $GREP " "` 22095 if test "x$has_space" != x; then 22096 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22097 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22098 fi 22099 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22100 fi 22101 fi 22102 22103 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22104 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22105 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22106 # "foo.exe" is OK but "foo" is an error. 22107 # 22108 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22109 # It is also a way to make sure we got the proper file name for the real test later on. 22110 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22111 if test "x$test_shortpath" = x; then 22112 # Short path failed, file does not exist as specified. 22113 # Try adding .exe or .cmd 22114 if test -f "${new_path}.exe"; then 22115 input_to_shortpath="${new_path}.exe" 22116 elif test -f "${new_path}.cmd"; then 22117 input_to_shortpath="${new_path}.cmd" 22118 else 22119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 22120 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 22121 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 22122 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 22123 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22124 fi 22125 else 22126 input_to_shortpath="$new_path" 22127 fi 22128 22129 # Call helper function which possibly converts this using DOS-style short mode. 22130 # If so, the updated path is stored in $new_path. 22131 new_path="$input_to_shortpath" 22132 22133 input_path="$input_to_shortpath" 22134 # Check if we need to convert this using DOS-style short mode. If the path 22135 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22136 # take no chances and rewrite it. 22137 # Note: m4 eats our [], so we need to use [ and ] instead. 22138 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22139 if test "x$has_forbidden_chars" != x; then 22140 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22141 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22142 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22143 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22144 # Going to short mode and back again did indeed matter. Since short mode is 22145 # case insensitive, let's make it lowercase to improve readability. 22146 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22147 # Now convert it back to Unix-stile (cygpath) 22148 input_path=`$CYGPATH -u "$shortmode_path"` 22149 new_path="$input_path" 22150 fi 22151 fi 22152 22153 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22154 if test "x$test_cygdrive_prefix" = x; then 22155 # As a simple fix, exclude /usr/bin since it's not a real path. 22156 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 22157 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22158 # a path prefixed by /cygdrive for fixpath to work. 22159 new_path="$CYGWIN_ROOT_PATH$input_path" 22160 fi 22161 fi 22162 22163 # remove trailing .exe if any 22164 new_path="${new_path/%.exe/}" 22165 22166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22167 22168 # First separate the path from the arguments. This will split at the first 22169 # space. 22170 complete="$AR" 22171 path="${complete%% *}" 22172 tmp="$complete EOL" 22173 arguments="${tmp#* }" 22174 22175 # Input might be given as Windows format, start by converting to 22176 # unix format. 22177 new_path="$path" 22178 22179 windows_path="$new_path" 22180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22181 unix_path=`$CYGPATH -u "$windows_path"` 22182 new_path="$unix_path" 22183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22185 new_path="$unix_path" 22186 fi 22187 22188 22189 # Now try to locate executable using which 22190 new_path=`$WHICH "$new_path" 2> /dev/null` 22191 22192 if test "x$new_path" = x; then 22193 # Oops. Which didn't find the executable. 22194 # The splitting of arguments from the executable at a space might have been incorrect, 22195 # since paths with space are more likely in Windows. Give it another try with the whole 22196 # argument. 22197 path="$complete" 22198 arguments="EOL" 22199 new_path="$path" 22200 22201 windows_path="$new_path" 22202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22203 unix_path=`$CYGPATH -u "$windows_path"` 22204 new_path="$unix_path" 22205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22206 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22207 new_path="$unix_path" 22208 fi 22209 22210 22211 new_path=`$WHICH "$new_path" 2> /dev/null` 22212 22213 if test "x$new_path" = x; then 22214 # It's still not found. Now this is an unrecoverable error. 22215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 22216 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 22217 has_space=`$ECHO "$complete" | $GREP " "` 22218 if test "x$has_space" != x; then 22219 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22220 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22221 fi 22222 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22223 fi 22224 fi 22225 22226 # Now new_path has a complete unix path to the binary 22227 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 22228 # Keep paths in /bin as-is, but remove trailing .exe if any 22229 new_path="${new_path/%.exe/}" 22230 # Do not save /bin paths to all_fixpath_prefixes! 22231 else 22232 # Not in mixed or Windows style, start by that. 22233 new_path=`cmd //c echo $new_path` 22234 22235 input_path="$new_path" 22236 # Check if we need to convert this using DOS-style short mode. If the path 22237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22238 # take no chances and rewrite it. 22239 # Note: m4 eats our [], so we need to use [ and ] instead. 22240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22241 if test "x$has_forbidden_chars" != x; then 22242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22243 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22244 fi 22245 22246 # Output is in $new_path 22247 22248 windows_path="$new_path" 22249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22250 unix_path=`$CYGPATH -u "$windows_path"` 22251 new_path="$unix_path" 22252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22254 new_path="$unix_path" 22255 fi 22256 22257 # remove trailing .exe if any 22258 new_path="${new_path/%.exe/}" 22259 22260 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22261 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22262 fi 22263 22264 else 22265 # We're on a posix platform. Hooray! :) 22266 # First separate the path from the arguments. This will split at the first 22267 # space. 22268 complete="$AR" 22269 path="${complete%% *}" 22270 tmp="$complete EOL" 22271 arguments="${tmp#* }" 22272 22273 # Cannot rely on the command "which" here since it doesn't always work. 22274 is_absolute_path=`$ECHO "$path" | $GREP ^/` 22275 if test -z "$is_absolute_path"; then 22276 # Path to executable is not absolute. Find it. 22277 IFS_save="$IFS" 22278 IFS=: 22279 for p in $PATH; do 22280 if test -f "$p/$path" && test -x "$p/$path"; then 22281 new_path="$p/$path" 22282 break 22283 fi 22284 done 22285 IFS="$IFS_save" 22286 else 22287 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AR (as $path) failed, using $path directly." >&5 22288 $as_echo "$as_me: Resolving AR (as $path) failed, using $path directly." >&6;} 22289 new_path="$path" 22290 fi 22291 22292 if test "x$new_path" = x; then 22293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 22294 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 22295 has_space=`$ECHO "$complete" | $GREP " "` 22296 if test "x$has_space" != x; then 22297 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 22298 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 22299 fi 22300 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22301 fi 22302 fi 22303 22304 # Now join together the path and the arguments once again 22305 if test "x$arguments" != xEOL; then 22306 new_complete="$new_path ${arguments% *}" 22307 else 22308 new_complete="$new_path" 22309 fi 22310 22311 if test "x$complete" != "x$new_complete"; then 22312 AR="$new_complete" 22313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 22314 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 22315 fi 22316 22317 fi 22318 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 22319 ARFLAGS="-r" 22320 else 22321 ARFLAGS="" 22322 fi 22323 22324 22325 # For hotspot, we need these in Windows mixed path; other platforms keep them the same 22326 HOTSPOT_CXX="$CXX" 22327 HOTSPOT_LD="$LD" 22328 22329 22330 22331 COMPILER_NAME=gcc 22332 COMPILER_TYPE=CC 22333 if test "x$OPENJDK_TARGET_OS" = xwindows; then : 22334 22335 # For now, assume that we are always compiling using cl.exe. 22336 CC_OUT_OPTION=-Fo 22337 EXE_OUT_OPTION=-out: 22338 LD_OUT_OPTION=-out: 22339 AR_OUT_OPTION=-out: 22340 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin 22341 # program for something completely different. 22342 # Extract the first word of "link", so it can be a program name with args. 22343 set dummy link; ac_word=$2 22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22345 $as_echo_n "checking for $ac_word... " >&6; } 22346 if ${ac_cv_prog_WINLD+:} false; then : 22347 $as_echo_n "(cached) " >&6 22348 else 22349 if test -n "$WINLD"; then 22350 ac_cv_prog_WINLD="$WINLD" # Let the user override the test. 22351 else 22352 ac_prog_rejected=no 22353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22354 for as_dir in $PATH 22355 do 22356 IFS=$as_save_IFS 22357 test -z "$as_dir" && as_dir=. 22358 for ac_exec_ext in '' $ac_executable_extensions; do 22359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22360 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 22361 ac_prog_rejected=yes 22362 continue 22363 fi 22364 ac_cv_prog_WINLD="link" 22365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22366 break 2 22367 fi 22368 done 22369 done 22370 IFS=$as_save_IFS 22371 22372 if test $ac_prog_rejected = yes; then 22373 # We found a bogon in the path, so make sure we never use it. 22374 set dummy $ac_cv_prog_WINLD 22375 shift 22376 if test $# != 0; then 22377 # We chose a different compiler from the bogus one. 22378 # However, it has the same basename, so the bogon will be chosen 22379 # first if we set WINLD to just the basename; use the full file name. 22380 shift 22381 ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@" 22382 fi 22383 fi 22384 fi 22385 fi 22386 WINLD=$ac_cv_prog_WINLD 22387 if test -n "$WINLD"; then 22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5 22389 $as_echo "$WINLD" >&6; } 22390 else 22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22392 $as_echo "no" >&6; } 22393 fi 22394 22395 22396 # Since we must ignore the first found link, WINLD will contain 22397 # the full path to the link.exe program. 22398 22399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22400 22401 # First separate the path from the arguments. This will split at the first 22402 # space. 22403 complete="$WINLD" 22404 path="${complete%% *}" 22405 tmp="$complete EOL" 22406 arguments="${tmp#* }" 22407 22408 # Input might be given as Windows format, start by converting to 22409 # unix format. 22410 new_path=`$CYGPATH -u "$path"` 22411 22412 # Now try to locate executable using which 22413 new_path=`$WHICH "$new_path" 2> /dev/null` 22414 # bat and cmd files are not always considered executable in cygwin causing which 22415 # to not find them 22416 if test "x$new_path" = x \ 22417 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22418 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22419 new_path=`$CYGPATH -u "$path"` 22420 fi 22421 if test "x$new_path" = x; then 22422 # Oops. Which didn't find the executable. 22423 # The splitting of arguments from the executable at a space might have been incorrect, 22424 # since paths with space are more likely in Windows. Give it another try with the whole 22425 # argument. 22426 path="$complete" 22427 arguments="EOL" 22428 new_path=`$CYGPATH -u "$path"` 22429 new_path=`$WHICH "$new_path" 2> /dev/null` 22430 # bat and cmd files are not always considered executable in cygwin causing which 22431 # to not find them 22432 if test "x$new_path" = x \ 22433 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22434 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22435 new_path=`$CYGPATH -u "$path"` 22436 fi 22437 if test "x$new_path" = x; then 22438 # It's still not found. Now this is an unrecoverable error. 22439 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 22440 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 22441 has_space=`$ECHO "$complete" | $GREP " "` 22442 if test "x$has_space" != x; then 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22444 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22445 fi 22446 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22447 fi 22448 fi 22449 22450 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22451 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22452 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22453 # "foo.exe" is OK but "foo" is an error. 22454 # 22455 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22456 # It is also a way to make sure we got the proper file name for the real test later on. 22457 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22458 if test "x$test_shortpath" = x; then 22459 # Short path failed, file does not exist as specified. 22460 # Try adding .exe or .cmd 22461 if test -f "${new_path}.exe"; then 22462 input_to_shortpath="${new_path}.exe" 22463 elif test -f "${new_path}.cmd"; then 22464 input_to_shortpath="${new_path}.cmd" 22465 else 22466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$new_path\", is invalid." >&5 22467 $as_echo "$as_me: The path of WINLD, which resolves as \"$new_path\", is invalid." >&6;} 22468 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 22469 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 22470 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22471 fi 22472 else 22473 input_to_shortpath="$new_path" 22474 fi 22475 22476 # Call helper function which possibly converts this using DOS-style short mode. 22477 # If so, the updated path is stored in $new_path. 22478 new_path="$input_to_shortpath" 22479 22480 input_path="$input_to_shortpath" 22481 # Check if we need to convert this using DOS-style short mode. If the path 22482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22483 # take no chances and rewrite it. 22484 # Note: m4 eats our [], so we need to use [ and ] instead. 22485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22486 if test "x$has_forbidden_chars" != x; then 22487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22488 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22489 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22490 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22491 # Going to short mode and back again did indeed matter. Since short mode is 22492 # case insensitive, let's make it lowercase to improve readability. 22493 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22494 # Now convert it back to Unix-stile (cygpath) 22495 input_path=`$CYGPATH -u "$shortmode_path"` 22496 new_path="$input_path" 22497 fi 22498 fi 22499 22500 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22501 if test "x$test_cygdrive_prefix" = x; then 22502 # As a simple fix, exclude /usr/bin since it's not a real path. 22503 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 22504 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22505 # a path prefixed by /cygdrive for fixpath to work. 22506 new_path="$CYGWIN_ROOT_PATH$input_path" 22507 fi 22508 fi 22509 22510 # remove trailing .exe if any 22511 new_path="${new_path/%.exe/}" 22512 22513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22514 22515 # First separate the path from the arguments. This will split at the first 22516 # space. 22517 complete="$WINLD" 22518 path="${complete%% *}" 22519 tmp="$complete EOL" 22520 arguments="${tmp#* }" 22521 22522 # Input might be given as Windows format, start by converting to 22523 # unix format. 22524 new_path="$path" 22525 22526 windows_path="$new_path" 22527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22528 unix_path=`$CYGPATH -u "$windows_path"` 22529 new_path="$unix_path" 22530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22532 new_path="$unix_path" 22533 fi 22534 22535 22536 # Now try to locate executable using which 22537 new_path=`$WHICH "$new_path" 2> /dev/null` 22538 22539 if test "x$new_path" = x; then 22540 # Oops. Which didn't find the executable. 22541 # The splitting of arguments from the executable at a space might have been incorrect, 22542 # since paths with space are more likely in Windows. Give it another try with the whole 22543 # argument. 22544 path="$complete" 22545 arguments="EOL" 22546 new_path="$path" 22547 22548 windows_path="$new_path" 22549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22550 unix_path=`$CYGPATH -u "$windows_path"` 22551 new_path="$unix_path" 22552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22553 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22554 new_path="$unix_path" 22555 fi 22556 22557 22558 new_path=`$WHICH "$new_path" 2> /dev/null` 22559 22560 if test "x$new_path" = x; then 22561 # It's still not found. Now this is an unrecoverable error. 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 22563 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 22564 has_space=`$ECHO "$complete" | $GREP " "` 22565 if test "x$has_space" != x; then 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22567 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22568 fi 22569 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22570 fi 22571 fi 22572 22573 # Now new_path has a complete unix path to the binary 22574 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 22575 # Keep paths in /bin as-is, but remove trailing .exe if any 22576 new_path="${new_path/%.exe/}" 22577 # Do not save /bin paths to all_fixpath_prefixes! 22578 else 22579 # Not in mixed or Windows style, start by that. 22580 new_path=`cmd //c echo $new_path` 22581 22582 input_path="$new_path" 22583 # Check if we need to convert this using DOS-style short mode. If the path 22584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22585 # take no chances and rewrite it. 22586 # Note: m4 eats our [], so we need to use [ and ] instead. 22587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22588 if test "x$has_forbidden_chars" != x; then 22589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22590 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22591 fi 22592 22593 # Output is in $new_path 22594 22595 windows_path="$new_path" 22596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22597 unix_path=`$CYGPATH -u "$windows_path"` 22598 new_path="$unix_path" 22599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22601 new_path="$unix_path" 22602 fi 22603 22604 # remove trailing .exe if any 22605 new_path="${new_path/%.exe/}" 22606 22607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22609 fi 22610 22611 else 22612 # We're on a posix platform. Hooray! :) 22613 # First separate the path from the arguments. This will split at the first 22614 # space. 22615 complete="$WINLD" 22616 path="${complete%% *}" 22617 tmp="$complete EOL" 22618 arguments="${tmp#* }" 22619 22620 # Cannot rely on the command "which" here since it doesn't always work. 22621 is_absolute_path=`$ECHO "$path" | $GREP ^/` 22622 if test -z "$is_absolute_path"; then 22623 # Path to executable is not absolute. Find it. 22624 IFS_save="$IFS" 22625 IFS=: 22626 for p in $PATH; do 22627 if test -f "$p/$path" && test -x "$p/$path"; then 22628 new_path="$p/$path" 22629 break 22630 fi 22631 done 22632 IFS="$IFS_save" 22633 else 22634 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINLD (as $path) failed, using $path directly." >&5 22635 $as_echo "$as_me: Resolving WINLD (as $path) failed, using $path directly." >&6;} 22636 new_path="$path" 22637 fi 22638 22639 if test "x$new_path" = x; then 22640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 22641 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 22642 has_space=`$ECHO "$complete" | $GREP " "` 22643 if test "x$has_space" != x; then 22644 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 22645 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 22646 fi 22647 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22648 fi 22649 fi 22650 22651 # Now join together the path and the arguments once again 22652 if test "x$arguments" != xEOL; then 22653 new_complete="$new_path ${arguments% *}" 22654 else 22655 new_complete="$new_path" 22656 fi 22657 22658 if test "x$complete" != "x$new_complete"; then 22659 WINLD="$new_complete" 22660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINLD to \"$new_complete\"" >&5 22661 $as_echo "$as_me: Rewriting WINLD to \"$new_complete\"" >&6;} 22662 fi 22663 22664 printf "Windows linker was found at $WINLD\n" 22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 22666 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 22667 "$WINLD" --version > /dev/null 22668 if test $? -eq 0 ; then 22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22670 $as_echo "no" >&6; } 22671 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 22672 else 22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22674 $as_echo "yes" >&6; } 22675 fi 22676 LD="$WINLD" 22677 LDEXE="$WINLD" 22678 LDCXX="$WINLD" 22679 LDEXECXX="$WINLD" 22680 22681 # Extract the first word of "mt", so it can be a program name with args. 22682 set dummy mt; ac_word=$2 22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22684 $as_echo_n "checking for $ac_word... " >&6; } 22685 if ${ac_cv_prog_MT+:} false; then : 22686 $as_echo_n "(cached) " >&6 22687 else 22688 if test -n "$MT"; then 22689 ac_cv_prog_MT="$MT" # Let the user override the test. 22690 else 22691 ac_prog_rejected=no 22692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22693 for as_dir in $PATH 22694 do 22695 IFS=$as_save_IFS 22696 test -z "$as_dir" && as_dir=. 22697 for ac_exec_ext in '' $ac_executable_extensions; do 22698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 22700 ac_prog_rejected=yes 22701 continue 22702 fi 22703 ac_cv_prog_MT="mt" 22704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22705 break 2 22706 fi 22707 done 22708 done 22709 IFS=$as_save_IFS 22710 22711 if test $ac_prog_rejected = yes; then 22712 # We found a bogon in the path, so make sure we never use it. 22713 set dummy $ac_cv_prog_MT 22714 shift 22715 if test $# != 0; then 22716 # We chose a different compiler from the bogus one. 22717 # However, it has the same basename, so the bogon will be chosen 22718 # first if we set MT to just the basename; use the full file name. 22719 shift 22720 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 22721 fi 22722 fi 22723 fi 22724 fi 22725 MT=$ac_cv_prog_MT 22726 if test -n "$MT"; then 22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 22728 $as_echo "$MT" >&6; } 22729 else 22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22731 $as_echo "no" >&6; } 22732 fi 22733 22734 22735 22736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22737 22738 # First separate the path from the arguments. This will split at the first 22739 # space. 22740 complete="$MT" 22741 path="${complete%% *}" 22742 tmp="$complete EOL" 22743 arguments="${tmp#* }" 22744 22745 # Input might be given as Windows format, start by converting to 22746 # unix format. 22747 new_path=`$CYGPATH -u "$path"` 22748 22749 # Now try to locate executable using which 22750 new_path=`$WHICH "$new_path" 2> /dev/null` 22751 # bat and cmd files are not always considered executable in cygwin causing which 22752 # to not find them 22753 if test "x$new_path" = x \ 22754 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22755 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22756 new_path=`$CYGPATH -u "$path"` 22757 fi 22758 if test "x$new_path" = x; then 22759 # Oops. Which didn't find the executable. 22760 # The splitting of arguments from the executable at a space might have been incorrect, 22761 # since paths with space are more likely in Windows. Give it another try with the whole 22762 # argument. 22763 path="$complete" 22764 arguments="EOL" 22765 new_path=`$CYGPATH -u "$path"` 22766 new_path=`$WHICH "$new_path" 2> /dev/null` 22767 # bat and cmd files are not always considered executable in cygwin causing which 22768 # to not find them 22769 if test "x$new_path" = x \ 22770 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22771 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22772 new_path=`$CYGPATH -u "$path"` 22773 fi 22774 if test "x$new_path" = x; then 22775 # It's still not found. Now this is an unrecoverable error. 22776 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 22777 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 22778 has_space=`$ECHO "$complete" | $GREP " "` 22779 if test "x$has_space" != x; then 22780 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22781 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22782 fi 22783 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 22784 fi 22785 fi 22786 22787 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22788 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22789 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22790 # "foo.exe" is OK but "foo" is an error. 22791 # 22792 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22793 # It is also a way to make sure we got the proper file name for the real test later on. 22794 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22795 if test "x$test_shortpath" = x; then 22796 # Short path failed, file does not exist as specified. 22797 # Try adding .exe or .cmd 22798 if test -f "${new_path}.exe"; then 22799 input_to_shortpath="${new_path}.exe" 22800 elif test -f "${new_path}.cmd"; then 22801 input_to_shortpath="${new_path}.cmd" 22802 else 22803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 22804 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 22806 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 22807 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 22808 fi 22809 else 22810 input_to_shortpath="$new_path" 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 new_path="$input_to_shortpath" 22816 22817 input_path="$input_to_shortpath" 22818 # Check if we need to convert this using DOS-style short mode. If the path 22819 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22820 # take no chances and rewrite it. 22821 # Note: m4 eats our [], so we need to use [ and ] instead. 22822 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22823 if test "x$has_forbidden_chars" != x; then 22824 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22825 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22826 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22827 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22828 # Going to short mode and back again did indeed matter. Since short mode is 22829 # case insensitive, let's make it lowercase to improve readability. 22830 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22831 # Now convert it back to Unix-stile (cygpath) 22832 input_path=`$CYGPATH -u "$shortmode_path"` 22833 new_path="$input_path" 22834 fi 22835 fi 22836 22837 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22838 if test "x$test_cygdrive_prefix" = x; then 22839 # As a simple fix, exclude /usr/bin since it's not a real path. 22840 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 22841 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22842 # a path prefixed by /cygdrive for fixpath to work. 22843 new_path="$CYGWIN_ROOT_PATH$input_path" 22844 fi 22845 fi 22846 22847 # remove trailing .exe if any 22848 new_path="${new_path/%.exe/}" 22849 22850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22851 22852 # First separate the path from the arguments. This will split at the first 22853 # space. 22854 complete="$MT" 22855 path="${complete%% *}" 22856 tmp="$complete EOL" 22857 arguments="${tmp#* }" 22858 22859 # Input might be given as Windows format, start by converting to 22860 # unix format. 22861 new_path="$path" 22862 22863 windows_path="$new_path" 22864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22865 unix_path=`$CYGPATH -u "$windows_path"` 22866 new_path="$unix_path" 22867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22869 new_path="$unix_path" 22870 fi 22871 22872 22873 # Now try to locate executable using which 22874 new_path=`$WHICH "$new_path" 2> /dev/null` 22875 22876 if test "x$new_path" = x; then 22877 # Oops. Which didn't find the executable. 22878 # The splitting of arguments from the executable at a space might have been incorrect, 22879 # since paths with space are more likely in Windows. Give it another try with the whole 22880 # argument. 22881 path="$complete" 22882 arguments="EOL" 22883 new_path="$path" 22884 22885 windows_path="$new_path" 22886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22887 unix_path=`$CYGPATH -u "$windows_path"` 22888 new_path="$unix_path" 22889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22891 new_path="$unix_path" 22892 fi 22893 22894 22895 new_path=`$WHICH "$new_path" 2> /dev/null` 22896 22897 if test "x$new_path" = x; then 22898 # It's still not found. Now this is an unrecoverable error. 22899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 22900 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 22901 has_space=`$ECHO "$complete" | $GREP " "` 22902 if test "x$has_space" != x; then 22903 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22904 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22905 fi 22906 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 22907 fi 22908 fi 22909 22910 # Now new_path has a complete unix path to the binary 22911 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 22912 # Keep paths in /bin as-is, but remove trailing .exe if any 22913 new_path="${new_path/%.exe/}" 22914 # Do not save /bin paths to all_fixpath_prefixes! 22915 else 22916 # Not in mixed or Windows style, start by that. 22917 new_path=`cmd //c echo $new_path` 22918 22919 input_path="$new_path" 22920 # Check if we need to convert this using DOS-style short mode. If the path 22921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22922 # take no chances and rewrite it. 22923 # Note: m4 eats our [], so we need to use [ and ] instead. 22924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22925 if test "x$has_forbidden_chars" != x; then 22926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22927 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22928 fi 22929 22930 # Output is in $new_path 22931 22932 windows_path="$new_path" 22933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22934 unix_path=`$CYGPATH -u "$windows_path"` 22935 new_path="$unix_path" 22936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22938 new_path="$unix_path" 22939 fi 22940 22941 # remove trailing .exe if any 22942 new_path="${new_path/%.exe/}" 22943 22944 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22945 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22946 fi 22947 22948 else 22949 # We're on a posix platform. Hooray! :) 22950 # First separate the path from the arguments. This will split at the first 22951 # space. 22952 complete="$MT" 22953 path="${complete%% *}" 22954 tmp="$complete EOL" 22955 arguments="${tmp#* }" 22956 22957 # Cannot rely on the command "which" here since it doesn't always work. 22958 is_absolute_path=`$ECHO "$path" | $GREP ^/` 22959 if test -z "$is_absolute_path"; then 22960 # Path to executable is not absolute. Find it. 22961 IFS_save="$IFS" 22962 IFS=: 22963 for p in $PATH; do 22964 if test -f "$p/$path" && test -x "$p/$path"; then 22965 new_path="$p/$path" 22966 break 22967 fi 22968 done 22969 IFS="$IFS_save" 22970 else 22971 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MT (as $path) failed, using $path directly." >&5 22972 $as_echo "$as_me: Resolving MT (as $path) failed, using $path directly." >&6;} 22973 new_path="$path" 22974 fi 22975 22976 if test "x$new_path" = x; then 22977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 22978 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 22979 has_space=`$ECHO "$complete" | $GREP " "` 22980 if test "x$has_space" != x; then 22981 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 22982 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 22983 fi 22984 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 22985 fi 22986 fi 22987 22988 # Now join together the path and the arguments once again 22989 if test "x$arguments" != xEOL; then 22990 new_complete="$new_path ${arguments% *}" 22991 else 22992 new_complete="$new_path" 22993 fi 22994 22995 if test "x$complete" != "x$new_complete"; then 22996 MT="$new_complete" 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 22998 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 22999 fi 23000 23001 # The resource compiler 23002 # Extract the first word of "rc", so it can be a program name with args. 23003 set dummy rc; ac_word=$2 23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23005 $as_echo_n "checking for $ac_word... " >&6; } 23006 if ${ac_cv_prog_RC+:} false; then : 23007 $as_echo_n "(cached) " >&6 23008 else 23009 if test -n "$RC"; then 23010 ac_cv_prog_RC="$RC" # Let the user override the test. 23011 else 23012 ac_prog_rejected=no 23013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23014 for as_dir in $PATH 23015 do 23016 IFS=$as_save_IFS 23017 test -z "$as_dir" && as_dir=. 23018 for ac_exec_ext in '' $ac_executable_extensions; do 23019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 23021 ac_prog_rejected=yes 23022 continue 23023 fi 23024 ac_cv_prog_RC="rc" 23025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23026 break 2 23027 fi 23028 done 23029 done 23030 IFS=$as_save_IFS 23031 23032 if test $ac_prog_rejected = yes; then 23033 # We found a bogon in the path, so make sure we never use it. 23034 set dummy $ac_cv_prog_RC 23035 shift 23036 if test $# != 0; then 23037 # We chose a different compiler from the bogus one. 23038 # However, it has the same basename, so the bogon will be chosen 23039 # first if we set RC to just the basename; use the full file name. 23040 shift 23041 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 23042 fi 23043 fi 23044 fi 23045 fi 23046 RC=$ac_cv_prog_RC 23047 if test -n "$RC"; then 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 23049 $as_echo "$RC" >&6; } 23050 else 23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23052 $as_echo "no" >&6; } 23053 fi 23054 23055 23056 23057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23058 23059 # First separate the path from the arguments. This will split at the first 23060 # space. 23061 complete="$RC" 23062 path="${complete%% *}" 23063 tmp="$complete EOL" 23064 arguments="${tmp#* }" 23065 23066 # Input might be given as Windows format, start by converting to 23067 # unix format. 23068 new_path=`$CYGPATH -u "$path"` 23069 23070 # Now try to locate executable using which 23071 new_path=`$WHICH "$new_path" 2> /dev/null` 23072 # bat and cmd files are not always considered executable in cygwin causing which 23073 # to not find them 23074 if test "x$new_path" = x \ 23075 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23076 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23077 new_path=`$CYGPATH -u "$path"` 23078 fi 23079 if test "x$new_path" = x; then 23080 # Oops. Which didn't find the executable. 23081 # The splitting of arguments from the executable at a space might have been incorrect, 23082 # since paths with space are more likely in Windows. Give it another try with the whole 23083 # argument. 23084 path="$complete" 23085 arguments="EOL" 23086 new_path=`$CYGPATH -u "$path"` 23087 new_path=`$WHICH "$new_path" 2> /dev/null` 23088 # bat and cmd files are not always considered executable in cygwin causing which 23089 # to not find them 23090 if test "x$new_path" = x \ 23091 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23092 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23093 new_path=`$CYGPATH -u "$path"` 23094 fi 23095 if test "x$new_path" = x; then 23096 # It's still not found. Now this is an unrecoverable error. 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 23098 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 23099 has_space=`$ECHO "$complete" | $GREP " "` 23100 if test "x$has_space" != x; then 23101 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23102 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23103 fi 23104 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23105 fi 23106 fi 23107 23108 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23109 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23110 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23111 # "foo.exe" is OK but "foo" is an error. 23112 # 23113 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23114 # It is also a way to make sure we got the proper file name for the real test later on. 23115 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23116 if test "x$test_shortpath" = x; then 23117 # Short path failed, file does not exist as specified. 23118 # Try adding .exe or .cmd 23119 if test -f "${new_path}.exe"; then 23120 input_to_shortpath="${new_path}.exe" 23121 elif test -f "${new_path}.cmd"; then 23122 input_to_shortpath="${new_path}.cmd" 23123 else 23124 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 23125 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 23126 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 23127 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 23128 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23129 fi 23130 else 23131 input_to_shortpath="$new_path" 23132 fi 23133 23134 # Call helper function which possibly converts this using DOS-style short mode. 23135 # If so, the updated path is stored in $new_path. 23136 new_path="$input_to_shortpath" 23137 23138 input_path="$input_to_shortpath" 23139 # Check if we need to convert this using DOS-style short mode. If the path 23140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23141 # take no chances and rewrite it. 23142 # Note: m4 eats our [], so we need to use [ and ] instead. 23143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23144 if test "x$has_forbidden_chars" != x; then 23145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23146 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23147 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23148 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23149 # Going to short mode and back again did indeed matter. Since short mode is 23150 # case insensitive, let's make it lowercase to improve readability. 23151 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23152 # Now convert it back to Unix-stile (cygpath) 23153 input_path=`$CYGPATH -u "$shortmode_path"` 23154 new_path="$input_path" 23155 fi 23156 fi 23157 23158 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23159 if test "x$test_cygdrive_prefix" = x; then 23160 # As a simple fix, exclude /usr/bin since it's not a real path. 23161 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 23162 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23163 # a path prefixed by /cygdrive for fixpath to work. 23164 new_path="$CYGWIN_ROOT_PATH$input_path" 23165 fi 23166 fi 23167 23168 # remove trailing .exe if any 23169 new_path="${new_path/%.exe/}" 23170 23171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23172 23173 # First separate the path from the arguments. This will split at the first 23174 # space. 23175 complete="$RC" 23176 path="${complete%% *}" 23177 tmp="$complete EOL" 23178 arguments="${tmp#* }" 23179 23180 # Input might be given as Windows format, start by converting to 23181 # unix format. 23182 new_path="$path" 23183 23184 windows_path="$new_path" 23185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23186 unix_path=`$CYGPATH -u "$windows_path"` 23187 new_path="$unix_path" 23188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23189 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23190 new_path="$unix_path" 23191 fi 23192 23193 23194 # Now try to locate executable using which 23195 new_path=`$WHICH "$new_path" 2> /dev/null` 23196 23197 if test "x$new_path" = x; then 23198 # Oops. Which didn't find the executable. 23199 # The splitting of arguments from the executable at a space might have been incorrect, 23200 # since paths with space are more likely in Windows. Give it another try with the whole 23201 # argument. 23202 path="$complete" 23203 arguments="EOL" 23204 new_path="$path" 23205 23206 windows_path="$new_path" 23207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23208 unix_path=`$CYGPATH -u "$windows_path"` 23209 new_path="$unix_path" 23210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23212 new_path="$unix_path" 23213 fi 23214 23215 23216 new_path=`$WHICH "$new_path" 2> /dev/null` 23217 23218 if test "x$new_path" = x; then 23219 # It's still not found. Now this is an unrecoverable error. 23220 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 23221 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 23222 has_space=`$ECHO "$complete" | $GREP " "` 23223 if test "x$has_space" != x; then 23224 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23225 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23226 fi 23227 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23228 fi 23229 fi 23230 23231 # Now new_path has a complete unix path to the binary 23232 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 23233 # Keep paths in /bin as-is, but remove trailing .exe if any 23234 new_path="${new_path/%.exe/}" 23235 # Do not save /bin paths to all_fixpath_prefixes! 23236 else 23237 # Not in mixed or Windows style, start by that. 23238 new_path=`cmd //c echo $new_path` 23239 23240 input_path="$new_path" 23241 # Check if we need to convert this using DOS-style short mode. If the path 23242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23243 # take no chances and rewrite it. 23244 # Note: m4 eats our [], so we need to use [ and ] instead. 23245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23246 if test "x$has_forbidden_chars" != x; then 23247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23248 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23249 fi 23250 23251 # Output is in $new_path 23252 23253 windows_path="$new_path" 23254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23255 unix_path=`$CYGPATH -u "$windows_path"` 23256 new_path="$unix_path" 23257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23258 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23259 new_path="$unix_path" 23260 fi 23261 23262 # remove trailing .exe if any 23263 new_path="${new_path/%.exe/}" 23264 23265 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23266 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23267 fi 23268 23269 else 23270 # We're on a posix platform. Hooray! :) 23271 # First separate the path from the arguments. This will split at the first 23272 # space. 23273 complete="$RC" 23274 path="${complete%% *}" 23275 tmp="$complete EOL" 23276 arguments="${tmp#* }" 23277 23278 # Cannot rely on the command "which" here since it doesn't always work. 23279 is_absolute_path=`$ECHO "$path" | $GREP ^/` 23280 if test -z "$is_absolute_path"; then 23281 # Path to executable is not absolute. Find it. 23282 IFS_save="$IFS" 23283 IFS=: 23284 for p in $PATH; do 23285 if test -f "$p/$path" && test -x "$p/$path"; then 23286 new_path="$p/$path" 23287 break 23288 fi 23289 done 23290 IFS="$IFS_save" 23291 else 23292 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving RC (as $path) failed, using $path directly." >&5 23293 $as_echo "$as_me: Resolving RC (as $path) failed, using $path directly." >&6;} 23294 new_path="$path" 23295 fi 23296 23297 if test "x$new_path" = x; then 23298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 23299 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 23300 has_space=`$ECHO "$complete" | $GREP " "` 23301 if test "x$has_space" != x; then 23302 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 23303 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 23304 fi 23305 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23306 fi 23307 fi 23308 23309 # Now join together the path and the arguments once again 23310 if test "x$arguments" != xEOL; then 23311 new_complete="$new_path ${arguments% *}" 23312 else 23313 new_complete="$new_path" 23314 fi 23315 23316 if test "x$complete" != "x$new_complete"; then 23317 RC="$new_complete" 23318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 23319 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 23320 fi 23321 23322 23323 # For hotspot, we need these in Windows mixed path, 23324 # so rewrite them all. Need added .exe suffix. 23325 HOTSPOT_CXX="$CXX.exe" 23326 HOTSPOT_LD="$LD.exe" 23327 HOTSPOT_MT="$MT.exe" 23328 HOTSPOT_RC="$RC.exe" 23329 23330 unix_path="$HOTSPOT_CXX" 23331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23332 windows_path=`$CYGPATH -m "$unix_path"` 23333 HOTSPOT_CXX="$windows_path" 23334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23335 windows_path=`cmd //c echo $unix_path` 23336 HOTSPOT_CXX="$windows_path" 23337 fi 23338 23339 23340 unix_path="$HOTSPOT_LD" 23341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23342 windows_path=`$CYGPATH -m "$unix_path"` 23343 HOTSPOT_LD="$windows_path" 23344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23345 windows_path=`cmd //c echo $unix_path` 23346 HOTSPOT_LD="$windows_path" 23347 fi 23348 23349 23350 unix_path="$HOTSPOT_MT" 23351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23352 windows_path=`$CYGPATH -m "$unix_path"` 23353 HOTSPOT_MT="$windows_path" 23354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23355 windows_path=`cmd //c echo $unix_path` 23356 HOTSPOT_MT="$windows_path" 23357 fi 23358 23359 23360 unix_path="$HOTSPOT_RC" 23361 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23362 windows_path=`$CYGPATH -m "$unix_path"` 23363 HOTSPOT_RC="$windows_path" 23364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23365 windows_path=`cmd //c echo $unix_path` 23366 HOTSPOT_RC="$windows_path" 23367 fi 23368 23369 23370 23371 23372 RC_FLAGS="-nologo -l 0x409 -r" 23373 if test "x$VARIANT" = xOPT; then : 23374 23375 RC_FLAGS="$RC_FLAGS -d NDEBUG" 23376 23377 fi 23378 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION 23379 if test "x$JDK_UPDATE_VERSION" = x; then : 23380 23381 JDK_UPDATE_VERSION_NOTNULL=0 23382 23383 fi 23384 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\"" 23385 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\"" 23386 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\"" 23387 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\"" 23388 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\"" 23389 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\"" 23390 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\"" 23391 23392 # lib.exe is used to create static libraries. 23393 # Extract the first word of "lib", so it can be a program name with args. 23394 set dummy lib; ac_word=$2 23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23396 $as_echo_n "checking for $ac_word... " >&6; } 23397 if ${ac_cv_prog_WINAR+:} false; then : 23398 $as_echo_n "(cached) " >&6 23399 else 23400 if test -n "$WINAR"; then 23401 ac_cv_prog_WINAR="$WINAR" # Let the user override the test. 23402 else 23403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23404 for as_dir in $PATH 23405 do 23406 IFS=$as_save_IFS 23407 test -z "$as_dir" && as_dir=. 23408 for ac_exec_ext in '' $ac_executable_extensions; do 23409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23410 ac_cv_prog_WINAR="lib" 23411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23412 break 2 23413 fi 23414 done 23415 done 23416 IFS=$as_save_IFS 23417 23418 fi 23419 fi 23420 WINAR=$ac_cv_prog_WINAR 23421 if test -n "$WINAR"; then 23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5 23423 $as_echo "$WINAR" >&6; } 23424 else 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23426 $as_echo "no" >&6; } 23427 fi 23428 23429 23430 23431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23432 23433 # First separate the path from the arguments. This will split at the first 23434 # space. 23435 complete="$WINAR" 23436 path="${complete%% *}" 23437 tmp="$complete EOL" 23438 arguments="${tmp#* }" 23439 23440 # Input might be given as Windows format, start by converting to 23441 # unix format. 23442 new_path=`$CYGPATH -u "$path"` 23443 23444 # Now try to locate executable using which 23445 new_path=`$WHICH "$new_path" 2> /dev/null` 23446 # bat and cmd files are not always considered executable in cygwin causing which 23447 # to not find them 23448 if test "x$new_path" = x \ 23449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23451 new_path=`$CYGPATH -u "$path"` 23452 fi 23453 if test "x$new_path" = x; then 23454 # Oops. Which didn't find the executable. 23455 # The splitting of arguments from the executable at a space might have been incorrect, 23456 # since paths with space are more likely in Windows. Give it another try with the whole 23457 # argument. 23458 path="$complete" 23459 arguments="EOL" 23460 new_path=`$CYGPATH -u "$path"` 23461 new_path=`$WHICH "$new_path" 2> /dev/null` 23462 # bat and cmd files are not always considered executable in cygwin causing which 23463 # to not find them 23464 if test "x$new_path" = x \ 23465 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23466 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23467 new_path=`$CYGPATH -u "$path"` 23468 fi 23469 if test "x$new_path" = x; then 23470 # It's still not found. Now this is an unrecoverable error. 23471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 23472 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 23473 has_space=`$ECHO "$complete" | $GREP " "` 23474 if test "x$has_space" != x; then 23475 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23476 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23477 fi 23478 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 23479 fi 23480 fi 23481 23482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23485 # "foo.exe" is OK but "foo" is an error. 23486 # 23487 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23488 # It is also a way to make sure we got the proper file name for the real test later on. 23489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23490 if test "x$test_shortpath" = x; then 23491 # Short path failed, file does not exist as specified. 23492 # Try adding .exe or .cmd 23493 if test -f "${new_path}.exe"; then 23494 input_to_shortpath="${new_path}.exe" 23495 elif test -f "${new_path}.cmd"; then 23496 input_to_shortpath="${new_path}.cmd" 23497 else 23498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$new_path\", is invalid." >&5 23499 $as_echo "$as_me: The path of WINAR, which resolves as \"$new_path\", is invalid." >&6;} 23500 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 23501 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 23502 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 23503 fi 23504 else 23505 input_to_shortpath="$new_path" 23506 fi 23507 23508 # Call helper function which possibly converts this using DOS-style short mode. 23509 # If so, the updated path is stored in $new_path. 23510 new_path="$input_to_shortpath" 23511 23512 input_path="$input_to_shortpath" 23513 # Check if we need to convert this using DOS-style short mode. If the path 23514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23515 # take no chances and rewrite it. 23516 # Note: m4 eats our [], so we need to use [ and ] instead. 23517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23518 if test "x$has_forbidden_chars" != x; then 23519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23520 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23521 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23522 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23523 # Going to short mode and back again did indeed matter. Since short mode is 23524 # case insensitive, let's make it lowercase to improve readability. 23525 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23526 # Now convert it back to Unix-stile (cygpath) 23527 input_path=`$CYGPATH -u "$shortmode_path"` 23528 new_path="$input_path" 23529 fi 23530 fi 23531 23532 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23533 if test "x$test_cygdrive_prefix" = x; then 23534 # As a simple fix, exclude /usr/bin since it's not a real path. 23535 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 23536 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23537 # a path prefixed by /cygdrive for fixpath to work. 23538 new_path="$CYGWIN_ROOT_PATH$input_path" 23539 fi 23540 fi 23541 23542 # remove trailing .exe if any 23543 new_path="${new_path/%.exe/}" 23544 23545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23546 23547 # First separate the path from the arguments. This will split at the first 23548 # space. 23549 complete="$WINAR" 23550 path="${complete%% *}" 23551 tmp="$complete EOL" 23552 arguments="${tmp#* }" 23553 23554 # Input might be given as Windows format, start by converting to 23555 # unix format. 23556 new_path="$path" 23557 23558 windows_path="$new_path" 23559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23560 unix_path=`$CYGPATH -u "$windows_path"` 23561 new_path="$unix_path" 23562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23563 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23564 new_path="$unix_path" 23565 fi 23566 23567 23568 # Now try to locate executable using which 23569 new_path=`$WHICH "$new_path" 2> /dev/null` 23570 23571 if test "x$new_path" = x; then 23572 # Oops. Which didn't find the executable. 23573 # The splitting of arguments from the executable at a space might have been incorrect, 23574 # since paths with space are more likely in Windows. Give it another try with the whole 23575 # argument. 23576 path="$complete" 23577 arguments="EOL" 23578 new_path="$path" 23579 23580 windows_path="$new_path" 23581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23582 unix_path=`$CYGPATH -u "$windows_path"` 23583 new_path="$unix_path" 23584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23586 new_path="$unix_path" 23587 fi 23588 23589 23590 new_path=`$WHICH "$new_path" 2> /dev/null` 23591 23592 if test "x$new_path" = x; then 23593 # It's still not found. Now this is an unrecoverable error. 23594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 23595 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 23596 has_space=`$ECHO "$complete" | $GREP " "` 23597 if test "x$has_space" != x; then 23598 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23599 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23600 fi 23601 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 23602 fi 23603 fi 23604 23605 # Now new_path has a complete unix path to the binary 23606 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 23607 # Keep paths in /bin as-is, but remove trailing .exe if any 23608 new_path="${new_path/%.exe/}" 23609 # Do not save /bin paths to all_fixpath_prefixes! 23610 else 23611 # Not in mixed or Windows style, start by that. 23612 new_path=`cmd //c echo $new_path` 23613 23614 input_path="$new_path" 23615 # Check if we need to convert this using DOS-style short mode. If the path 23616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23617 # take no chances and rewrite it. 23618 # Note: m4 eats our [], so we need to use [ and ] instead. 23619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23620 if test "x$has_forbidden_chars" != x; then 23621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23622 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23623 fi 23624 23625 # Output is in $new_path 23626 23627 windows_path="$new_path" 23628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23629 unix_path=`$CYGPATH -u "$windows_path"` 23630 new_path="$unix_path" 23631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23633 new_path="$unix_path" 23634 fi 23635 23636 # remove trailing .exe if any 23637 new_path="${new_path/%.exe/}" 23638 23639 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23640 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23641 fi 23642 23643 else 23644 # We're on a posix platform. Hooray! :) 23645 # First separate the path from the arguments. This will split at the first 23646 # space. 23647 complete="$WINAR" 23648 path="${complete%% *}" 23649 tmp="$complete EOL" 23650 arguments="${tmp#* }" 23651 23652 # Cannot rely on the command "which" here since it doesn't always work. 23653 is_absolute_path=`$ECHO "$path" | $GREP ^/` 23654 if test -z "$is_absolute_path"; then 23655 # Path to executable is not absolute. Find it. 23656 IFS_save="$IFS" 23657 IFS=: 23658 for p in $PATH; do 23659 if test -f "$p/$path" && test -x "$p/$path"; then 23660 new_path="$p/$path" 23661 break 23662 fi 23663 done 23664 IFS="$IFS_save" 23665 else 23666 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINAR (as $path) failed, using $path directly." >&5 23667 $as_echo "$as_me: Resolving WINAR (as $path) failed, using $path directly." >&6;} 23668 new_path="$path" 23669 fi 23670 23671 if test "x$new_path" = x; then 23672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 23673 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 23674 has_space=`$ECHO "$complete" | $GREP " "` 23675 if test "x$has_space" != x; then 23676 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 23677 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 23678 fi 23679 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 23680 fi 23681 fi 23682 23683 # Now join together the path and the arguments once again 23684 if test "x$arguments" != xEOL; then 23685 new_complete="$new_path ${arguments% *}" 23686 else 23687 new_complete="$new_path" 23688 fi 23689 23690 if test "x$complete" != "x$new_complete"; then 23691 WINAR="$new_complete" 23692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5 23693 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;} 23694 fi 23695 23696 AR="$WINAR" 23697 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 23698 23699 # Extract the first word of "dumpbin", so it can be a program name with args. 23700 set dummy dumpbin; ac_word=$2 23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23702 $as_echo_n "checking for $ac_word... " >&6; } 23703 if ${ac_cv_prog_DUMPBIN+:} false; then : 23704 $as_echo_n "(cached) " >&6 23705 else 23706 if test -n "$DUMPBIN"; then 23707 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 23708 else 23709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23710 for as_dir in $PATH 23711 do 23712 IFS=$as_save_IFS 23713 test -z "$as_dir" && as_dir=. 23714 for ac_exec_ext in '' $ac_executable_extensions; do 23715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23716 ac_cv_prog_DUMPBIN="dumpbin" 23717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23718 break 2 23719 fi 23720 done 23721 done 23722 IFS=$as_save_IFS 23723 23724 fi 23725 fi 23726 DUMPBIN=$ac_cv_prog_DUMPBIN 23727 if test -n "$DUMPBIN"; then 23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 23729 $as_echo "$DUMPBIN" >&6; } 23730 else 23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23732 $as_echo "no" >&6; } 23733 fi 23734 23735 23736 23737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23738 23739 # First separate the path from the arguments. This will split at the first 23740 # space. 23741 complete="$DUMPBIN" 23742 path="${complete%% *}" 23743 tmp="$complete EOL" 23744 arguments="${tmp#* }" 23745 23746 # Input might be given as Windows format, start by converting to 23747 # unix format. 23748 new_path=`$CYGPATH -u "$path"` 23749 23750 # Now try to locate executable using which 23751 new_path=`$WHICH "$new_path" 2> /dev/null` 23752 # bat and cmd files are not always considered executable in cygwin causing which 23753 # to not find them 23754 if test "x$new_path" = x \ 23755 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23756 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23757 new_path=`$CYGPATH -u "$path"` 23758 fi 23759 if test "x$new_path" = x; then 23760 # Oops. Which didn't find the executable. 23761 # The splitting of arguments from the executable at a space might have been incorrect, 23762 # since paths with space are more likely in Windows. Give it another try with the whole 23763 # argument. 23764 path="$complete" 23765 arguments="EOL" 23766 new_path=`$CYGPATH -u "$path"` 23767 new_path=`$WHICH "$new_path" 2> /dev/null` 23768 # bat and cmd files are not always considered executable in cygwin causing which 23769 # to not find them 23770 if test "x$new_path" = x \ 23771 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23772 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23773 new_path=`$CYGPATH -u "$path"` 23774 fi 23775 if test "x$new_path" = x; then 23776 # It's still not found. Now this is an unrecoverable error. 23777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 23778 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 23779 has_space=`$ECHO "$complete" | $GREP " "` 23780 if test "x$has_space" != x; then 23781 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23782 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23783 fi 23784 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 23785 fi 23786 fi 23787 23788 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23789 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23790 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23791 # "foo.exe" is OK but "foo" is an error. 23792 # 23793 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23794 # It is also a way to make sure we got the proper file name for the real test later on. 23795 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23796 if test "x$test_shortpath" = x; then 23797 # Short path failed, file does not exist as specified. 23798 # Try adding .exe or .cmd 23799 if test -f "${new_path}.exe"; then 23800 input_to_shortpath="${new_path}.exe" 23801 elif test -f "${new_path}.cmd"; then 23802 input_to_shortpath="${new_path}.cmd" 23803 else 23804 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 23805 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 23806 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 23807 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 23808 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 23809 fi 23810 else 23811 input_to_shortpath="$new_path" 23812 fi 23813 23814 # Call helper function which possibly converts this using DOS-style short mode. 23815 # If so, the updated path is stored in $new_path. 23816 new_path="$input_to_shortpath" 23817 23818 input_path="$input_to_shortpath" 23819 # Check if we need to convert this using DOS-style short mode. If the path 23820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23821 # take no chances and rewrite it. 23822 # Note: m4 eats our [], so we need to use [ and ] instead. 23823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23824 if test "x$has_forbidden_chars" != x; then 23825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23826 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23827 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23828 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23829 # Going to short mode and back again did indeed matter. Since short mode is 23830 # case insensitive, let's make it lowercase to improve readability. 23831 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23832 # Now convert it back to Unix-stile (cygpath) 23833 input_path=`$CYGPATH -u "$shortmode_path"` 23834 new_path="$input_path" 23835 fi 23836 fi 23837 23838 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23839 if test "x$test_cygdrive_prefix" = x; then 23840 # As a simple fix, exclude /usr/bin since it's not a real path. 23841 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 23842 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23843 # a path prefixed by /cygdrive for fixpath to work. 23844 new_path="$CYGWIN_ROOT_PATH$input_path" 23845 fi 23846 fi 23847 23848 # remove trailing .exe if any 23849 new_path="${new_path/%.exe/}" 23850 23851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23852 23853 # First separate the path from the arguments. This will split at the first 23854 # space. 23855 complete="$DUMPBIN" 23856 path="${complete%% *}" 23857 tmp="$complete EOL" 23858 arguments="${tmp#* }" 23859 23860 # Input might be given as Windows format, start by converting to 23861 # unix format. 23862 new_path="$path" 23863 23864 windows_path="$new_path" 23865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23866 unix_path=`$CYGPATH -u "$windows_path"` 23867 new_path="$unix_path" 23868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23870 new_path="$unix_path" 23871 fi 23872 23873 23874 # Now try to locate executable using which 23875 new_path=`$WHICH "$new_path" 2> /dev/null` 23876 23877 if test "x$new_path" = x; then 23878 # Oops. Which didn't find the executable. 23879 # The splitting of arguments from the executable at a space might have been incorrect, 23880 # since paths with space are more likely in Windows. Give it another try with the whole 23881 # argument. 23882 path="$complete" 23883 arguments="EOL" 23884 new_path="$path" 23885 23886 windows_path="$new_path" 23887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23888 unix_path=`$CYGPATH -u "$windows_path"` 23889 new_path="$unix_path" 23890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23892 new_path="$unix_path" 23893 fi 23894 23895 23896 new_path=`$WHICH "$new_path" 2> /dev/null` 23897 23898 if test "x$new_path" = x; then 23899 # It's still not found. Now this is an unrecoverable error. 23900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 23901 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 23902 has_space=`$ECHO "$complete" | $GREP " "` 23903 if test "x$has_space" != x; then 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23905 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23906 fi 23907 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 23908 fi 23909 fi 23910 23911 # Now new_path has a complete unix path to the binary 23912 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 23913 # Keep paths in /bin as-is, but remove trailing .exe if any 23914 new_path="${new_path/%.exe/}" 23915 # Do not save /bin paths to all_fixpath_prefixes! 23916 else 23917 # Not in mixed or Windows style, start by that. 23918 new_path=`cmd //c echo $new_path` 23919 23920 input_path="$new_path" 23921 # Check if we need to convert this using DOS-style short mode. If the path 23922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23923 # take no chances and rewrite it. 23924 # Note: m4 eats our [], so we need to use [ and ] instead. 23925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23926 if test "x$has_forbidden_chars" != x; then 23927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23929 fi 23930 23931 # Output is in $new_path 23932 23933 windows_path="$new_path" 23934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23935 unix_path=`$CYGPATH -u "$windows_path"` 23936 new_path="$unix_path" 23937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23939 new_path="$unix_path" 23940 fi 23941 23942 # remove trailing .exe if any 23943 new_path="${new_path/%.exe/}" 23944 23945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23947 fi 23948 23949 else 23950 # We're on a posix platform. Hooray! :) 23951 # First separate the path from the arguments. This will split at the first 23952 # space. 23953 complete="$DUMPBIN" 23954 path="${complete%% *}" 23955 tmp="$complete EOL" 23956 arguments="${tmp#* }" 23957 23958 # Cannot rely on the command "which" here since it doesn't always work. 23959 is_absolute_path=`$ECHO "$path" | $GREP ^/` 23960 if test -z "$is_absolute_path"; then 23961 # Path to executable is not absolute. Find it. 23962 IFS_save="$IFS" 23963 IFS=: 23964 for p in $PATH; do 23965 if test -f "$p/$path" && test -x "$p/$path"; then 23966 new_path="$p/$path" 23967 break 23968 fi 23969 done 23970 IFS="$IFS_save" 23971 else 23972 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving DUMPBIN (as $path) failed, using $path directly." >&5 23973 $as_echo "$as_me: Resolving DUMPBIN (as $path) failed, using $path directly." >&6;} 23974 new_path="$path" 23975 fi 23976 23977 if test "x$new_path" = x; then 23978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 23979 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 23980 has_space=`$ECHO "$complete" | $GREP " "` 23981 if test "x$has_space" != x; then 23982 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 23983 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 23984 fi 23985 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 23986 fi 23987 fi 23988 23989 # Now join together the path and the arguments once again 23990 if test "x$arguments" != xEOL; then 23991 new_complete="$new_path ${arguments% *}" 23992 else 23993 new_complete="$new_path" 23994 fi 23995 23996 if test "x$complete" != "x$new_complete"; then 23997 DUMPBIN="$new_complete" 23998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 23999 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 24000 fi 24001 24002 24003 COMPILER_TYPE=CL 24004 CCXXFLAGS="$CCXXFLAGS -nologo" 24005 24006 fi 24007 24008 24009 24010 ac_ext=c 24011 ac_cpp='$CPP $CPPFLAGS' 24012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24014 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 24016 $as_echo_n "checking how to run the C preprocessor... " >&6; } 24017 # On Suns, sometimes $CPP names a directory. 24018 if test -n "$CPP" && test -d "$CPP"; then 24019 CPP= 24020 fi 24021 if test -z "$CPP"; then 24022 if ${ac_cv_prog_CPP+:} false; then : 24023 $as_echo_n "(cached) " >&6 24024 else 24025 # Double quotes because CPP needs to be expanded 24026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 24027 do 24028 ac_preproc_ok=false 24029 for ac_c_preproc_warn_flag in '' yes 24030 do 24031 # Use a header file that comes with gcc, so configuring glibc 24032 # with a fresh cross-compiler works. 24033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24034 # <limits.h> exists even on freestanding compilers. 24035 # On the NeXT, cc -E runs the code through the compiler's parser, 24036 # not just through cpp. "Syntax error" is here to catch this case. 24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24038 /* end confdefs.h. */ 24039 #ifdef __STDC__ 24040 # include <limits.h> 24041 #else 24042 # include <assert.h> 24043 #endif 24044 Syntax error 24045 _ACEOF 24046 if ac_fn_c_try_cpp "$LINENO"; then : 24047 24048 else 24049 # Broken: fails on valid input. 24050 continue 24051 fi 24052 rm -f conftest.err conftest.i conftest.$ac_ext 24053 24054 # OK, works on sane cases. Now check whether nonexistent headers 24055 # can be detected and how. 24056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24057 /* end confdefs.h. */ 24058 #include <ac_nonexistent.h> 24059 _ACEOF 24060 if ac_fn_c_try_cpp "$LINENO"; then : 24061 # Broken: success on invalid input. 24062 continue 24063 else 24064 # Passes both tests. 24065 ac_preproc_ok=: 24066 break 24067 fi 24068 rm -f conftest.err conftest.i conftest.$ac_ext 24069 24070 done 24071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24072 rm -f conftest.i conftest.err conftest.$ac_ext 24073 if $ac_preproc_ok; then : 24074 break 24075 fi 24076 24077 done 24078 ac_cv_prog_CPP=$CPP 24079 24080 fi 24081 CPP=$ac_cv_prog_CPP 24082 else 24083 ac_cv_prog_CPP=$CPP 24084 fi 24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 24086 $as_echo "$CPP" >&6; } 24087 ac_preproc_ok=false 24088 for ac_c_preproc_warn_flag in '' yes 24089 do 24090 # Use a header file that comes with gcc, so configuring glibc 24091 # with a fresh cross-compiler works. 24092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24093 # <limits.h> exists even on freestanding compilers. 24094 # On the NeXT, cc -E runs the code through the compiler's parser, 24095 # not just through cpp. "Syntax error" is here to catch this case. 24096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24097 /* end confdefs.h. */ 24098 #ifdef __STDC__ 24099 # include <limits.h> 24100 #else 24101 # include <assert.h> 24102 #endif 24103 Syntax error 24104 _ACEOF 24105 if ac_fn_c_try_cpp "$LINENO"; then : 24106 24107 else 24108 # Broken: fails on valid input. 24109 continue 24110 fi 24111 rm -f conftest.err conftest.i conftest.$ac_ext 24112 24113 # OK, works on sane cases. Now check whether nonexistent headers 24114 # can be detected and how. 24115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24116 /* end confdefs.h. */ 24117 #include <ac_nonexistent.h> 24118 _ACEOF 24119 if ac_fn_c_try_cpp "$LINENO"; then : 24120 # Broken: success on invalid input. 24121 continue 24122 else 24123 # Passes both tests. 24124 ac_preproc_ok=: 24125 break 24126 fi 24127 rm -f conftest.err conftest.i conftest.$ac_ext 24128 24129 done 24130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24131 rm -f conftest.i conftest.err conftest.$ac_ext 24132 if $ac_preproc_ok; then : 24133 24134 else 24135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24137 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 24138 See \`config.log' for more details" "$LINENO" 5; } 24139 fi 24140 24141 ac_ext=cpp 24142 ac_cpp='$CXXCPP $CPPFLAGS' 24143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24146 24147 24148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24149 24150 # First separate the path from the arguments. This will split at the first 24151 # space. 24152 complete="$CPP" 24153 path="${complete%% *}" 24154 tmp="$complete EOL" 24155 arguments="${tmp#* }" 24156 24157 # Input might be given as Windows format, start by converting to 24158 # unix format. 24159 new_path=`$CYGPATH -u "$path"` 24160 24161 # Now try to locate executable using which 24162 new_path=`$WHICH "$new_path" 2> /dev/null` 24163 # bat and cmd files are not always considered executable in cygwin causing which 24164 # to not find them 24165 if test "x$new_path" = x \ 24166 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24167 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24168 new_path=`$CYGPATH -u "$path"` 24169 fi 24170 if test "x$new_path" = x; then 24171 # Oops. Which didn't find the executable. 24172 # The splitting of arguments from the executable at a space might have been incorrect, 24173 # since paths with space are more likely in Windows. Give it another try with the whole 24174 # argument. 24175 path="$complete" 24176 arguments="EOL" 24177 new_path=`$CYGPATH -u "$path"` 24178 new_path=`$WHICH "$new_path" 2> /dev/null` 24179 # bat and cmd files are not always considered executable in cygwin causing which 24180 # to not find them 24181 if test "x$new_path" = x \ 24182 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24183 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24184 new_path=`$CYGPATH -u "$path"` 24185 fi 24186 if test "x$new_path" = x; then 24187 # It's still not found. Now this is an unrecoverable error. 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 24189 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 24190 has_space=`$ECHO "$complete" | $GREP " "` 24191 if test "x$has_space" != x; then 24192 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24193 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24194 fi 24195 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24196 fi 24197 fi 24198 24199 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24200 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24201 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24202 # "foo.exe" is OK but "foo" is an error. 24203 # 24204 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24205 # It is also a way to make sure we got the proper file name for the real test later on. 24206 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24207 if test "x$test_shortpath" = x; then 24208 # Short path failed, file does not exist as specified. 24209 # Try adding .exe or .cmd 24210 if test -f "${new_path}.exe"; then 24211 input_to_shortpath="${new_path}.exe" 24212 elif test -f "${new_path}.cmd"; then 24213 input_to_shortpath="${new_path}.cmd" 24214 else 24215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 24216 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 24217 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 24218 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 24219 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24220 fi 24221 else 24222 input_to_shortpath="$new_path" 24223 fi 24224 24225 # Call helper function which possibly converts this using DOS-style short mode. 24226 # If so, the updated path is stored in $new_path. 24227 new_path="$input_to_shortpath" 24228 24229 input_path="$input_to_shortpath" 24230 # Check if we need to convert this using DOS-style short mode. If the path 24231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24232 # take no chances and rewrite it. 24233 # Note: m4 eats our [], so we need to use [ and ] instead. 24234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24235 if test "x$has_forbidden_chars" != x; then 24236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24237 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24238 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24239 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24240 # Going to short mode and back again did indeed matter. Since short mode is 24241 # case insensitive, let's make it lowercase to improve readability. 24242 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24243 # Now convert it back to Unix-stile (cygpath) 24244 input_path=`$CYGPATH -u "$shortmode_path"` 24245 new_path="$input_path" 24246 fi 24247 fi 24248 24249 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24250 if test "x$test_cygdrive_prefix" = x; then 24251 # As a simple fix, exclude /usr/bin since it's not a real path. 24252 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 24253 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24254 # a path prefixed by /cygdrive for fixpath to work. 24255 new_path="$CYGWIN_ROOT_PATH$input_path" 24256 fi 24257 fi 24258 24259 # remove trailing .exe if any 24260 new_path="${new_path/%.exe/}" 24261 24262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24263 24264 # First separate the path from the arguments. This will split at the first 24265 # space. 24266 complete="$CPP" 24267 path="${complete%% *}" 24268 tmp="$complete EOL" 24269 arguments="${tmp#* }" 24270 24271 # Input might be given as Windows format, start by converting to 24272 # unix format. 24273 new_path="$path" 24274 24275 windows_path="$new_path" 24276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24277 unix_path=`$CYGPATH -u "$windows_path"` 24278 new_path="$unix_path" 24279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24280 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24281 new_path="$unix_path" 24282 fi 24283 24284 24285 # Now try to locate executable using which 24286 new_path=`$WHICH "$new_path" 2> /dev/null` 24287 24288 if test "x$new_path" = x; then 24289 # Oops. Which didn't find the executable. 24290 # The splitting of arguments from the executable at a space might have been incorrect, 24291 # since paths with space are more likely in Windows. Give it another try with the whole 24292 # argument. 24293 path="$complete" 24294 arguments="EOL" 24295 new_path="$path" 24296 24297 windows_path="$new_path" 24298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24299 unix_path=`$CYGPATH -u "$windows_path"` 24300 new_path="$unix_path" 24301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24303 new_path="$unix_path" 24304 fi 24305 24306 24307 new_path=`$WHICH "$new_path" 2> /dev/null` 24308 24309 if test "x$new_path" = x; then 24310 # It's still not found. Now this is an unrecoverable error. 24311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 24312 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 24313 has_space=`$ECHO "$complete" | $GREP " "` 24314 if test "x$has_space" != x; then 24315 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24317 fi 24318 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24319 fi 24320 fi 24321 24322 # Now new_path has a complete unix path to the binary 24323 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 24324 # Keep paths in /bin as-is, but remove trailing .exe if any 24325 new_path="${new_path/%.exe/}" 24326 # Do not save /bin paths to all_fixpath_prefixes! 24327 else 24328 # Not in mixed or Windows style, start by that. 24329 new_path=`cmd //c echo $new_path` 24330 24331 input_path="$new_path" 24332 # Check if we need to convert this using DOS-style short mode. If the path 24333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24334 # take no chances and rewrite it. 24335 # Note: m4 eats our [], so we need to use [ and ] instead. 24336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24337 if test "x$has_forbidden_chars" != x; then 24338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24339 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24340 fi 24341 24342 # Output is in $new_path 24343 24344 windows_path="$new_path" 24345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24346 unix_path=`$CYGPATH -u "$windows_path"` 24347 new_path="$unix_path" 24348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24350 new_path="$unix_path" 24351 fi 24352 24353 # remove trailing .exe if any 24354 new_path="${new_path/%.exe/}" 24355 24356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24358 fi 24359 24360 else 24361 # We're on a posix platform. Hooray! :) 24362 # First separate the path from the arguments. This will split at the first 24363 # space. 24364 complete="$CPP" 24365 path="${complete%% *}" 24366 tmp="$complete EOL" 24367 arguments="${tmp#* }" 24368 24369 # Cannot rely on the command "which" here since it doesn't always work. 24370 is_absolute_path=`$ECHO "$path" | $GREP ^/` 24371 if test -z "$is_absolute_path"; then 24372 # Path to executable is not absolute. Find it. 24373 IFS_save="$IFS" 24374 IFS=: 24375 for p in $PATH; do 24376 if test -f "$p/$path" && test -x "$p/$path"; then 24377 new_path="$p/$path" 24378 break 24379 fi 24380 done 24381 IFS="$IFS_save" 24382 else 24383 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CPP (as $path) failed, using $path directly." >&5 24384 $as_echo "$as_me: Resolving CPP (as $path) failed, using $path directly." >&6;} 24385 new_path="$path" 24386 fi 24387 24388 if test "x$new_path" = x; then 24389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 24390 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 24391 has_space=`$ECHO "$complete" | $GREP " "` 24392 if test "x$has_space" != x; then 24393 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 24394 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 24395 fi 24396 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24397 fi 24398 fi 24399 24400 # Now join together the path and the arguments once again 24401 if test "x$arguments" != xEOL; then 24402 new_complete="$new_path ${arguments% *}" 24403 else 24404 new_complete="$new_path" 24405 fi 24406 24407 if test "x$complete" != "x$new_complete"; then 24408 CPP="$new_complete" 24409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 24410 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 24411 fi 24412 24413 24414 ac_ext=cpp 24415 ac_cpp='$CXXCPP $CPPFLAGS' 24416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 24420 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 24421 if test -z "$CXXCPP"; then 24422 if ${ac_cv_prog_CXXCPP+:} false; then : 24423 $as_echo_n "(cached) " >&6 24424 else 24425 # Double quotes because CXXCPP needs to be expanded 24426 for CXXCPP in "$CXX -E" "/lib/cpp" 24427 do 24428 ac_preproc_ok=false 24429 for ac_cxx_preproc_warn_flag in '' yes 24430 do 24431 # Use a header file that comes with gcc, so configuring glibc 24432 # with a fresh cross-compiler works. 24433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24434 # <limits.h> exists even on freestanding compilers. 24435 # On the NeXT, cc -E runs the code through the compiler's parser, 24436 # not just through cpp. "Syntax error" is here to catch this case. 24437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24438 /* end confdefs.h. */ 24439 #ifdef __STDC__ 24440 # include <limits.h> 24441 #else 24442 # include <assert.h> 24443 #endif 24444 Syntax error 24445 _ACEOF 24446 if ac_fn_cxx_try_cpp "$LINENO"; then : 24447 24448 else 24449 # Broken: fails on valid input. 24450 continue 24451 fi 24452 rm -f conftest.err conftest.i conftest.$ac_ext 24453 24454 # OK, works on sane cases. Now check whether nonexistent headers 24455 # can be detected and how. 24456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24457 /* end confdefs.h. */ 24458 #include <ac_nonexistent.h> 24459 _ACEOF 24460 if ac_fn_cxx_try_cpp "$LINENO"; then : 24461 # Broken: success on invalid input. 24462 continue 24463 else 24464 # Passes both tests. 24465 ac_preproc_ok=: 24466 break 24467 fi 24468 rm -f conftest.err conftest.i conftest.$ac_ext 24469 24470 done 24471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24472 rm -f conftest.i conftest.err conftest.$ac_ext 24473 if $ac_preproc_ok; then : 24474 break 24475 fi 24476 24477 done 24478 ac_cv_prog_CXXCPP=$CXXCPP 24479 24480 fi 24481 CXXCPP=$ac_cv_prog_CXXCPP 24482 else 24483 ac_cv_prog_CXXCPP=$CXXCPP 24484 fi 24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 24486 $as_echo "$CXXCPP" >&6; } 24487 ac_preproc_ok=false 24488 for ac_cxx_preproc_warn_flag in '' yes 24489 do 24490 # Use a header file that comes with gcc, so configuring glibc 24491 # with a fresh cross-compiler works. 24492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24493 # <limits.h> exists even on freestanding compilers. 24494 # On the NeXT, cc -E runs the code through the compiler's parser, 24495 # not just through cpp. "Syntax error" is here to catch this case. 24496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24497 /* end confdefs.h. */ 24498 #ifdef __STDC__ 24499 # include <limits.h> 24500 #else 24501 # include <assert.h> 24502 #endif 24503 Syntax error 24504 _ACEOF 24505 if ac_fn_cxx_try_cpp "$LINENO"; then : 24506 24507 else 24508 # Broken: fails on valid input. 24509 continue 24510 fi 24511 rm -f conftest.err conftest.i conftest.$ac_ext 24512 24513 # OK, works on sane cases. Now check whether nonexistent headers 24514 # can be detected and how. 24515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24516 /* end confdefs.h. */ 24517 #include <ac_nonexistent.h> 24518 _ACEOF 24519 if ac_fn_cxx_try_cpp "$LINENO"; then : 24520 # Broken: success on invalid input. 24521 continue 24522 else 24523 # Passes both tests. 24524 ac_preproc_ok=: 24525 break 24526 fi 24527 rm -f conftest.err conftest.i conftest.$ac_ext 24528 24529 done 24530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24531 rm -f conftest.i conftest.err conftest.$ac_ext 24532 if $ac_preproc_ok; then : 24533 24534 else 24535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24537 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 24538 See \`config.log' for more details" "$LINENO" 5; } 24539 fi 24540 24541 ac_ext=cpp 24542 ac_cpp='$CXXCPP $CPPFLAGS' 24543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24546 24547 24548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24549 24550 # First separate the path from the arguments. This will split at the first 24551 # space. 24552 complete="$CXXCPP" 24553 path="${complete%% *}" 24554 tmp="$complete EOL" 24555 arguments="${tmp#* }" 24556 24557 # Input might be given as Windows format, start by converting to 24558 # unix format. 24559 new_path=`$CYGPATH -u "$path"` 24560 24561 # Now try to locate executable using which 24562 new_path=`$WHICH "$new_path" 2> /dev/null` 24563 # bat and cmd files are not always considered executable in cygwin causing which 24564 # to not find them 24565 if test "x$new_path" = x \ 24566 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24567 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24568 new_path=`$CYGPATH -u "$path"` 24569 fi 24570 if test "x$new_path" = x; then 24571 # Oops. Which didn't find the executable. 24572 # The splitting of arguments from the executable at a space might have been incorrect, 24573 # since paths with space are more likely in Windows. Give it another try with the whole 24574 # argument. 24575 path="$complete" 24576 arguments="EOL" 24577 new_path=`$CYGPATH -u "$path"` 24578 new_path=`$WHICH "$new_path" 2> /dev/null` 24579 # bat and cmd files are not always considered executable in cygwin causing which 24580 # to not find them 24581 if test "x$new_path" = x \ 24582 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24583 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24584 new_path=`$CYGPATH -u "$path"` 24585 fi 24586 if test "x$new_path" = x; then 24587 # It's still not found. Now this is an unrecoverable error. 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 24589 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 24590 has_space=`$ECHO "$complete" | $GREP " "` 24591 if test "x$has_space" != x; then 24592 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24593 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24594 fi 24595 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 24596 fi 24597 fi 24598 24599 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24600 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24601 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24602 # "foo.exe" is OK but "foo" is an error. 24603 # 24604 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24605 # It is also a way to make sure we got the proper file name for the real test later on. 24606 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24607 if test "x$test_shortpath" = x; then 24608 # Short path failed, file does not exist as specified. 24609 # Try adding .exe or .cmd 24610 if test -f "${new_path}.exe"; then 24611 input_to_shortpath="${new_path}.exe" 24612 elif test -f "${new_path}.cmd"; then 24613 input_to_shortpath="${new_path}.cmd" 24614 else 24615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 24616 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 24617 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 24618 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 24619 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 24620 fi 24621 else 24622 input_to_shortpath="$new_path" 24623 fi 24624 24625 # Call helper function which possibly converts this using DOS-style short mode. 24626 # If so, the updated path is stored in $new_path. 24627 new_path="$input_to_shortpath" 24628 24629 input_path="$input_to_shortpath" 24630 # Check if we need to convert this using DOS-style short mode. If the path 24631 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24632 # take no chances and rewrite it. 24633 # Note: m4 eats our [], so we need to use [ and ] instead. 24634 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24635 if test "x$has_forbidden_chars" != x; then 24636 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24637 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24638 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24639 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24640 # Going to short mode and back again did indeed matter. Since short mode is 24641 # case insensitive, let's make it lowercase to improve readability. 24642 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24643 # Now convert it back to Unix-stile (cygpath) 24644 input_path=`$CYGPATH -u "$shortmode_path"` 24645 new_path="$input_path" 24646 fi 24647 fi 24648 24649 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24650 if test "x$test_cygdrive_prefix" = x; then 24651 # As a simple fix, exclude /usr/bin since it's not a real path. 24652 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 24653 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24654 # a path prefixed by /cygdrive for fixpath to work. 24655 new_path="$CYGWIN_ROOT_PATH$input_path" 24656 fi 24657 fi 24658 24659 # remove trailing .exe if any 24660 new_path="${new_path/%.exe/}" 24661 24662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24663 24664 # First separate the path from the arguments. This will split at the first 24665 # space. 24666 complete="$CXXCPP" 24667 path="${complete%% *}" 24668 tmp="$complete EOL" 24669 arguments="${tmp#* }" 24670 24671 # Input might be given as Windows format, start by converting to 24672 # unix format. 24673 new_path="$path" 24674 24675 windows_path="$new_path" 24676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24677 unix_path=`$CYGPATH -u "$windows_path"` 24678 new_path="$unix_path" 24679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24681 new_path="$unix_path" 24682 fi 24683 24684 24685 # Now try to locate executable using which 24686 new_path=`$WHICH "$new_path" 2> /dev/null` 24687 24688 if test "x$new_path" = x; then 24689 # Oops. Which didn't find the executable. 24690 # The splitting of arguments from the executable at a space might have been incorrect, 24691 # since paths with space are more likely in Windows. Give it another try with the whole 24692 # argument. 24693 path="$complete" 24694 arguments="EOL" 24695 new_path="$path" 24696 24697 windows_path="$new_path" 24698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24699 unix_path=`$CYGPATH -u "$windows_path"` 24700 new_path="$unix_path" 24701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24703 new_path="$unix_path" 24704 fi 24705 24706 24707 new_path=`$WHICH "$new_path" 2> /dev/null` 24708 24709 if test "x$new_path" = x; then 24710 # It's still not found. Now this is an unrecoverable error. 24711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 24712 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 24713 has_space=`$ECHO "$complete" | $GREP " "` 24714 if test "x$has_space" != x; then 24715 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24716 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24717 fi 24718 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 24719 fi 24720 fi 24721 24722 # Now new_path has a complete unix path to the binary 24723 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 24724 # Keep paths in /bin as-is, but remove trailing .exe if any 24725 new_path="${new_path/%.exe/}" 24726 # Do not save /bin paths to all_fixpath_prefixes! 24727 else 24728 # Not in mixed or Windows style, start by that. 24729 new_path=`cmd //c echo $new_path` 24730 24731 input_path="$new_path" 24732 # Check if we need to convert this using DOS-style short mode. If the path 24733 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24734 # take no chances and rewrite it. 24735 # Note: m4 eats our [], so we need to use [ and ] instead. 24736 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24737 if test "x$has_forbidden_chars" != x; then 24738 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24739 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24740 fi 24741 24742 # Output is in $new_path 24743 24744 windows_path="$new_path" 24745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24746 unix_path=`$CYGPATH -u "$windows_path"` 24747 new_path="$unix_path" 24748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24750 new_path="$unix_path" 24751 fi 24752 24753 # remove trailing .exe if any 24754 new_path="${new_path/%.exe/}" 24755 24756 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24757 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24758 fi 24759 24760 else 24761 # We're on a posix platform. Hooray! :) 24762 # First separate the path from the arguments. This will split at the first 24763 # space. 24764 complete="$CXXCPP" 24765 path="${complete%% *}" 24766 tmp="$complete EOL" 24767 arguments="${tmp#* }" 24768 24769 # Cannot rely on the command "which" here since it doesn't always work. 24770 is_absolute_path=`$ECHO "$path" | $GREP ^/` 24771 if test -z "$is_absolute_path"; then 24772 # Path to executable is not absolute. Find it. 24773 IFS_save="$IFS" 24774 IFS=: 24775 for p in $PATH; do 24776 if test -f "$p/$path" && test -x "$p/$path"; then 24777 new_path="$p/$path" 24778 break 24779 fi 24780 done 24781 IFS="$IFS_save" 24782 else 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXXCPP (as $path) failed, using $path directly." >&5 24784 $as_echo "$as_me: Resolving CXXCPP (as $path) failed, using $path directly." >&6;} 24785 new_path="$path" 24786 fi 24787 24788 if test "x$new_path" = x; then 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 24790 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 24791 has_space=`$ECHO "$complete" | $GREP " "` 24792 if test "x$has_space" != x; then 24793 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 24794 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 24795 fi 24796 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 24797 fi 24798 fi 24799 24800 # Now join together the path and the arguments once again 24801 if test "x$arguments" != xEOL; then 24802 new_complete="$new_path ${arguments% *}" 24803 else 24804 new_complete="$new_path" 24805 fi 24806 24807 if test "x$complete" != "x$new_complete"; then 24808 CXXCPP="$new_complete" 24809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 24810 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 24811 fi 24812 24813 24814 if test "x$COMPILE_TYPE" != "xcross"; then 24815 # If we are not cross compiling, use the same compilers for 24816 # building the build platform executables. The cross-compilation 24817 # case needed to be done earlier, but this can only be done after 24818 # the native tools have been localized. 24819 BUILD_CC="$CC" 24820 BUILD_CXX="$CXX" 24821 BUILD_LD="$LD" 24822 fi 24823 24824 # for solaris we really need solaris tools, and not gnu equivalent 24825 # these seems to normally reside in /usr/ccs/bin so add that to path before 24826 # starting to probe 24827 # 24828 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH 24829 # so that it can be overriden --with-tools-dir 24830 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 24831 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}" 24832 fi 24833 24834 # Find the right assembler. 24835 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 24836 # Extract the first word of "as", so it can be a program name with args. 24837 set dummy as; ac_word=$2 24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24839 $as_echo_n "checking for $ac_word... " >&6; } 24840 if ${ac_cv_path_AS+:} false; then : 24841 $as_echo_n "(cached) " >&6 24842 else 24843 case $AS in 24844 [\\/]* | ?:[\\/]*) 24845 ac_cv_path_AS="$AS" # Let the user override the test with a path. 24846 ;; 24847 *) 24848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24849 for as_dir in $PATH 24850 do 24851 IFS=$as_save_IFS 24852 test -z "$as_dir" && as_dir=. 24853 for ac_exec_ext in '' $ac_executable_extensions; do 24854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24855 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 24856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24857 break 2 24858 fi 24859 done 24860 done 24861 IFS=$as_save_IFS 24862 24863 ;; 24864 esac 24865 fi 24866 AS=$ac_cv_path_AS 24867 if test -n "$AS"; then 24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 24869 $as_echo "$AS" >&6; } 24870 else 24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24872 $as_echo "no" >&6; } 24873 fi 24874 24875 24876 24877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24878 24879 # First separate the path from the arguments. This will split at the first 24880 # space. 24881 complete="$AS" 24882 path="${complete%% *}" 24883 tmp="$complete EOL" 24884 arguments="${tmp#* }" 24885 24886 # Input might be given as Windows format, start by converting to 24887 # unix format. 24888 new_path=`$CYGPATH -u "$path"` 24889 24890 # Now try to locate executable using which 24891 new_path=`$WHICH "$new_path" 2> /dev/null` 24892 # bat and cmd files are not always considered executable in cygwin causing which 24893 # to not find them 24894 if test "x$new_path" = x \ 24895 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24896 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24897 new_path=`$CYGPATH -u "$path"` 24898 fi 24899 if test "x$new_path" = x; then 24900 # Oops. Which didn't find the executable. 24901 # The splitting of arguments from the executable at a space might have been incorrect, 24902 # since paths with space are more likely in Windows. Give it another try with the whole 24903 # argument. 24904 path="$complete" 24905 arguments="EOL" 24906 new_path=`$CYGPATH -u "$path"` 24907 new_path=`$WHICH "$new_path" 2> /dev/null` 24908 # bat and cmd files are not always considered executable in cygwin causing which 24909 # to not find them 24910 if test "x$new_path" = x \ 24911 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24912 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24913 new_path=`$CYGPATH -u "$path"` 24914 fi 24915 if test "x$new_path" = x; then 24916 # It's still not found. Now this is an unrecoverable error. 24917 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 24918 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 24919 has_space=`$ECHO "$complete" | $GREP " "` 24920 if test "x$has_space" != x; then 24921 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24922 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24923 fi 24924 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 24925 fi 24926 fi 24927 24928 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24929 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24930 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24931 # "foo.exe" is OK but "foo" is an error. 24932 # 24933 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24934 # It is also a way to make sure we got the proper file name for the real test later on. 24935 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24936 if test "x$test_shortpath" = x; then 24937 # Short path failed, file does not exist as specified. 24938 # Try adding .exe or .cmd 24939 if test -f "${new_path}.exe"; then 24940 input_to_shortpath="${new_path}.exe" 24941 elif test -f "${new_path}.cmd"; then 24942 input_to_shortpath="${new_path}.cmd" 24943 else 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 24945 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 24946 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 24947 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 24948 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 24949 fi 24950 else 24951 input_to_shortpath="$new_path" 24952 fi 24953 24954 # Call helper function which possibly converts this using DOS-style short mode. 24955 # If so, the updated path is stored in $new_path. 24956 new_path="$input_to_shortpath" 24957 24958 input_path="$input_to_shortpath" 24959 # Check if we need to convert this using DOS-style short mode. If the path 24960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24961 # take no chances and rewrite it. 24962 # Note: m4 eats our [], so we need to use [ and ] instead. 24963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24964 if test "x$has_forbidden_chars" != x; then 24965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24966 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24967 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24968 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24969 # Going to short mode and back again did indeed matter. Since short mode is 24970 # case insensitive, let's make it lowercase to improve readability. 24971 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24972 # Now convert it back to Unix-stile (cygpath) 24973 input_path=`$CYGPATH -u "$shortmode_path"` 24974 new_path="$input_path" 24975 fi 24976 fi 24977 24978 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24979 if test "x$test_cygdrive_prefix" = x; then 24980 # As a simple fix, exclude /usr/bin since it's not a real path. 24981 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 24982 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24983 # a path prefixed by /cygdrive for fixpath to work. 24984 new_path="$CYGWIN_ROOT_PATH$input_path" 24985 fi 24986 fi 24987 24988 # remove trailing .exe if any 24989 new_path="${new_path/%.exe/}" 24990 24991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24992 24993 # First separate the path from the arguments. This will split at the first 24994 # space. 24995 complete="$AS" 24996 path="${complete%% *}" 24997 tmp="$complete EOL" 24998 arguments="${tmp#* }" 24999 25000 # Input might be given as Windows format, start by converting to 25001 # unix format. 25002 new_path="$path" 25003 25004 windows_path="$new_path" 25005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25006 unix_path=`$CYGPATH -u "$windows_path"` 25007 new_path="$unix_path" 25008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25010 new_path="$unix_path" 25011 fi 25012 25013 25014 # Now try to locate executable using which 25015 new_path=`$WHICH "$new_path" 2> /dev/null` 25016 25017 if test "x$new_path" = x; then 25018 # Oops. Which didn't find the executable. 25019 # The splitting of arguments from the executable at a space might have been incorrect, 25020 # since paths with space are more likely in Windows. Give it another try with the whole 25021 # argument. 25022 path="$complete" 25023 arguments="EOL" 25024 new_path="$path" 25025 25026 windows_path="$new_path" 25027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25028 unix_path=`$CYGPATH -u "$windows_path"` 25029 new_path="$unix_path" 25030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25032 new_path="$unix_path" 25033 fi 25034 25035 25036 new_path=`$WHICH "$new_path" 2> /dev/null` 25037 25038 if test "x$new_path" = x; then 25039 # It's still not found. Now this is an unrecoverable error. 25040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 25041 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 25042 has_space=`$ECHO "$complete" | $GREP " "` 25043 if test "x$has_space" != x; then 25044 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25045 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25046 fi 25047 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 25048 fi 25049 fi 25050 25051 # Now new_path has a complete unix path to the binary 25052 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25053 # Keep paths in /bin as-is, but remove trailing .exe if any 25054 new_path="${new_path/%.exe/}" 25055 # Do not save /bin paths to all_fixpath_prefixes! 25056 else 25057 # Not in mixed or Windows style, start by that. 25058 new_path=`cmd //c echo $new_path` 25059 25060 input_path="$new_path" 25061 # Check if we need to convert this using DOS-style short mode. If the path 25062 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25063 # take no chances and rewrite it. 25064 # Note: m4 eats our [], so we need to use [ and ] instead. 25065 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25066 if test "x$has_forbidden_chars" != x; then 25067 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25068 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25069 fi 25070 25071 # Output is in $new_path 25072 25073 windows_path="$new_path" 25074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25075 unix_path=`$CYGPATH -u "$windows_path"` 25076 new_path="$unix_path" 25077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25079 new_path="$unix_path" 25080 fi 25081 25082 # remove trailing .exe if any 25083 new_path="${new_path/%.exe/}" 25084 25085 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25086 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25087 fi 25088 25089 else 25090 # We're on a posix platform. Hooray! :) 25091 # First separate the path from the arguments. This will split at the first 25092 # space. 25093 complete="$AS" 25094 path="${complete%% *}" 25095 tmp="$complete EOL" 25096 arguments="${tmp#* }" 25097 25098 # Cannot rely on the command "which" here since it doesn't always work. 25099 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25100 if test -z "$is_absolute_path"; then 25101 # Path to executable is not absolute. Find it. 25102 IFS_save="$IFS" 25103 IFS=: 25104 for p in $PATH; do 25105 if test -f "$p/$path" && test -x "$p/$path"; then 25106 new_path="$p/$path" 25107 break 25108 fi 25109 done 25110 IFS="$IFS_save" 25111 else 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AS (as $path) failed, using $path directly." >&5 25113 $as_echo "$as_me: Resolving AS (as $path) failed, using $path directly." >&6;} 25114 new_path="$path" 25115 fi 25116 25117 if test "x$new_path" = x; then 25118 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 25119 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 25120 has_space=`$ECHO "$complete" | $GREP " "` 25121 if test "x$has_space" != x; then 25122 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25123 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25124 fi 25125 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 25126 fi 25127 fi 25128 25129 # Now join together the path and the arguments once again 25130 if test "x$arguments" != xEOL; then 25131 new_complete="$new_path ${arguments% *}" 25132 else 25133 new_complete="$new_path" 25134 fi 25135 25136 if test "x$complete" != "x$new_complete"; then 25137 AS="$new_complete" 25138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 25139 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 25140 fi 25141 25142 else 25143 AS="$CC -c" 25144 fi 25145 25146 25147 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 25148 for ac_prog in gnm nm 25149 do 25150 # Extract the first word of "$ac_prog", so it can be a program name with args. 25151 set dummy $ac_prog; ac_word=$2 25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25153 $as_echo_n "checking for $ac_word... " >&6; } 25154 if ${ac_cv_path_NM+:} false; then : 25155 $as_echo_n "(cached) " >&6 25156 else 25157 case $NM in 25158 [\\/]* | ?:[\\/]*) 25159 ac_cv_path_NM="$NM" # Let the user override the test with a path. 25160 ;; 25161 *) 25162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25163 for as_dir in $PATH 25164 do 25165 IFS=$as_save_IFS 25166 test -z "$as_dir" && as_dir=. 25167 for ac_exec_ext in '' $ac_executable_extensions; do 25168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25169 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 25170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25171 break 2 25172 fi 25173 done 25174 done 25175 IFS=$as_save_IFS 25176 25177 ;; 25178 esac 25179 fi 25180 NM=$ac_cv_path_NM 25181 if test -n "$NM"; then 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 25183 $as_echo "$NM" >&6; } 25184 else 25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25186 $as_echo "no" >&6; } 25187 fi 25188 25189 25190 test -n "$NM" && break 25191 done 25192 25193 25194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25195 25196 # First separate the path from the arguments. This will split at the first 25197 # space. 25198 complete="$NM" 25199 path="${complete%% *}" 25200 tmp="$complete EOL" 25201 arguments="${tmp#* }" 25202 25203 # Input might be given as Windows format, start by converting to 25204 # unix format. 25205 new_path=`$CYGPATH -u "$path"` 25206 25207 # Now try to locate executable using which 25208 new_path=`$WHICH "$new_path" 2> /dev/null` 25209 # bat and cmd files are not always considered executable in cygwin causing which 25210 # to not find them 25211 if test "x$new_path" = x \ 25212 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25213 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25214 new_path=`$CYGPATH -u "$path"` 25215 fi 25216 if test "x$new_path" = x; then 25217 # Oops. Which didn't find the executable. 25218 # The splitting of arguments from the executable at a space might have been incorrect, 25219 # since paths with space are more likely in Windows. Give it another try with the whole 25220 # argument. 25221 path="$complete" 25222 arguments="EOL" 25223 new_path=`$CYGPATH -u "$path"` 25224 new_path=`$WHICH "$new_path" 2> /dev/null` 25225 # bat and cmd files are not always considered executable in cygwin causing which 25226 # to not find them 25227 if test "x$new_path" = x \ 25228 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25229 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25230 new_path=`$CYGPATH -u "$path"` 25231 fi 25232 if test "x$new_path" = x; then 25233 # It's still not found. Now this is an unrecoverable error. 25234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 25235 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 25236 has_space=`$ECHO "$complete" | $GREP " "` 25237 if test "x$has_space" != x; then 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25239 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25240 fi 25241 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25242 fi 25243 fi 25244 25245 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25246 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25247 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25248 # "foo.exe" is OK but "foo" is an error. 25249 # 25250 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25251 # It is also a way to make sure we got the proper file name for the real test later on. 25252 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25253 if test "x$test_shortpath" = x; then 25254 # Short path failed, file does not exist as specified. 25255 # Try adding .exe or .cmd 25256 if test -f "${new_path}.exe"; then 25257 input_to_shortpath="${new_path}.exe" 25258 elif test -f "${new_path}.cmd"; then 25259 input_to_shortpath="${new_path}.cmd" 25260 else 25261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 25262 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 25263 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25264 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25265 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25266 fi 25267 else 25268 input_to_shortpath="$new_path" 25269 fi 25270 25271 # Call helper function which possibly converts this using DOS-style short mode. 25272 # If so, the updated path is stored in $new_path. 25273 new_path="$input_to_shortpath" 25274 25275 input_path="$input_to_shortpath" 25276 # Check if we need to convert this using DOS-style short mode. If the path 25277 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25278 # take no chances and rewrite it. 25279 # Note: m4 eats our [], so we need to use [ and ] instead. 25280 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25281 if test "x$has_forbidden_chars" != x; then 25282 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25283 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25284 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25285 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25286 # Going to short mode and back again did indeed matter. Since short mode is 25287 # case insensitive, let's make it lowercase to improve readability. 25288 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25289 # Now convert it back to Unix-stile (cygpath) 25290 input_path=`$CYGPATH -u "$shortmode_path"` 25291 new_path="$input_path" 25292 fi 25293 fi 25294 25295 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25296 if test "x$test_cygdrive_prefix" = x; then 25297 # As a simple fix, exclude /usr/bin since it's not a real path. 25298 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25299 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25300 # a path prefixed by /cygdrive for fixpath to work. 25301 new_path="$CYGWIN_ROOT_PATH$input_path" 25302 fi 25303 fi 25304 25305 # remove trailing .exe if any 25306 new_path="${new_path/%.exe/}" 25307 25308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25309 25310 # First separate the path from the arguments. This will split at the first 25311 # space. 25312 complete="$NM" 25313 path="${complete%% *}" 25314 tmp="$complete EOL" 25315 arguments="${tmp#* }" 25316 25317 # Input might be given as Windows format, start by converting to 25318 # unix format. 25319 new_path="$path" 25320 25321 windows_path="$new_path" 25322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25323 unix_path=`$CYGPATH -u "$windows_path"` 25324 new_path="$unix_path" 25325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25327 new_path="$unix_path" 25328 fi 25329 25330 25331 # Now try to locate executable using which 25332 new_path=`$WHICH "$new_path" 2> /dev/null` 25333 25334 if test "x$new_path" = x; then 25335 # Oops. Which didn't find the executable. 25336 # The splitting of arguments from the executable at a space might have been incorrect, 25337 # since paths with space are more likely in Windows. Give it another try with the whole 25338 # argument. 25339 path="$complete" 25340 arguments="EOL" 25341 new_path="$path" 25342 25343 windows_path="$new_path" 25344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25345 unix_path=`$CYGPATH -u "$windows_path"` 25346 new_path="$unix_path" 25347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25349 new_path="$unix_path" 25350 fi 25351 25352 25353 new_path=`$WHICH "$new_path" 2> /dev/null` 25354 25355 if test "x$new_path" = x; then 25356 # It's still not found. Now this is an unrecoverable error. 25357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 25358 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 25359 has_space=`$ECHO "$complete" | $GREP " "` 25360 if test "x$has_space" != x; then 25361 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25362 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25363 fi 25364 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25365 fi 25366 fi 25367 25368 # Now new_path has a complete unix path to the binary 25369 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25370 # Keep paths in /bin as-is, but remove trailing .exe if any 25371 new_path="${new_path/%.exe/}" 25372 # Do not save /bin paths to all_fixpath_prefixes! 25373 else 25374 # Not in mixed or Windows style, start by that. 25375 new_path=`cmd //c echo $new_path` 25376 25377 input_path="$new_path" 25378 # Check if we need to convert this using DOS-style short mode. If the path 25379 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25380 # take no chances and rewrite it. 25381 # Note: m4 eats our [], so we need to use [ and ] instead. 25382 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25383 if test "x$has_forbidden_chars" != x; then 25384 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25385 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25386 fi 25387 25388 # Output is in $new_path 25389 25390 windows_path="$new_path" 25391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25392 unix_path=`$CYGPATH -u "$windows_path"` 25393 new_path="$unix_path" 25394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25396 new_path="$unix_path" 25397 fi 25398 25399 # remove trailing .exe if any 25400 new_path="${new_path/%.exe/}" 25401 25402 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25403 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25404 fi 25405 25406 else 25407 # We're on a posix platform. Hooray! :) 25408 # First separate the path from the arguments. This will split at the first 25409 # space. 25410 complete="$NM" 25411 path="${complete%% *}" 25412 tmp="$complete EOL" 25413 arguments="${tmp#* }" 25414 25415 # Cannot rely on the command "which" here since it doesn't always work. 25416 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25417 if test -z "$is_absolute_path"; then 25418 # Path to executable is not absolute. Find it. 25419 IFS_save="$IFS" 25420 IFS=: 25421 for p in $PATH; do 25422 if test -f "$p/$path" && test -x "$p/$path"; then 25423 new_path="$p/$path" 25424 break 25425 fi 25426 done 25427 IFS="$IFS_save" 25428 else 25429 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5 25430 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;} 25431 new_path="$path" 25432 fi 25433 25434 if test "x$new_path" = x; then 25435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 25436 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 25437 has_space=`$ECHO "$complete" | $GREP " "` 25438 if test "x$has_space" != x; then 25439 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25440 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25441 fi 25442 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25443 fi 25444 fi 25445 25446 # Now join together the path and the arguments once again 25447 if test "x$arguments" != xEOL; then 25448 new_complete="$new_path ${arguments% *}" 25449 else 25450 new_complete="$new_path" 25451 fi 25452 25453 if test "x$complete" != "x$new_complete"; then 25454 NM="$new_complete" 25455 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 25456 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 25457 fi 25458 25459 # Extract the first word of "strip", so it can be a program name with args. 25460 set dummy strip; ac_word=$2 25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25462 $as_echo_n "checking for $ac_word... " >&6; } 25463 if ${ac_cv_path_STRIP+:} false; then : 25464 $as_echo_n "(cached) " >&6 25465 else 25466 case $STRIP in 25467 [\\/]* | ?:[\\/]*) 25468 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 25469 ;; 25470 *) 25471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25472 for as_dir in $PATH 25473 do 25474 IFS=$as_save_IFS 25475 test -z "$as_dir" && as_dir=. 25476 for ac_exec_ext in '' $ac_executable_extensions; do 25477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25478 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 25479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25480 break 2 25481 fi 25482 done 25483 done 25484 IFS=$as_save_IFS 25485 25486 ;; 25487 esac 25488 fi 25489 STRIP=$ac_cv_path_STRIP 25490 if test -n "$STRIP"; then 25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 25492 $as_echo "$STRIP" >&6; } 25493 else 25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25495 $as_echo "no" >&6; } 25496 fi 25497 25498 25499 25500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25501 25502 # First separate the path from the arguments. This will split at the first 25503 # space. 25504 complete="$STRIP" 25505 path="${complete%% *}" 25506 tmp="$complete EOL" 25507 arguments="${tmp#* }" 25508 25509 # Input might be given as Windows format, start by converting to 25510 # unix format. 25511 new_path=`$CYGPATH -u "$path"` 25512 25513 # Now try to locate executable using which 25514 new_path=`$WHICH "$new_path" 2> /dev/null` 25515 # bat and cmd files are not always considered executable in cygwin causing which 25516 # to not find them 25517 if test "x$new_path" = x \ 25518 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25519 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25520 new_path=`$CYGPATH -u "$path"` 25521 fi 25522 if test "x$new_path" = x; then 25523 # Oops. Which didn't find the executable. 25524 # The splitting of arguments from the executable at a space might have been incorrect, 25525 # since paths with space are more likely in Windows. Give it another try with the whole 25526 # argument. 25527 path="$complete" 25528 arguments="EOL" 25529 new_path=`$CYGPATH -u "$path"` 25530 new_path=`$WHICH "$new_path" 2> /dev/null` 25531 # bat and cmd files are not always considered executable in cygwin causing which 25532 # to not find them 25533 if test "x$new_path" = x \ 25534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25536 new_path=`$CYGPATH -u "$path"` 25537 fi 25538 if test "x$new_path" = x; then 25539 # It's still not found. Now this is an unrecoverable error. 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 25541 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 25542 has_space=`$ECHO "$complete" | $GREP " "` 25543 if test "x$has_space" != x; then 25544 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25545 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25546 fi 25547 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 25548 fi 25549 fi 25550 25551 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25552 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25553 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25554 # "foo.exe" is OK but "foo" is an error. 25555 # 25556 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25557 # It is also a way to make sure we got the proper file name for the real test later on. 25558 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25559 if test "x$test_shortpath" = x; then 25560 # Short path failed, file does not exist as specified. 25561 # Try adding .exe or .cmd 25562 if test -f "${new_path}.exe"; then 25563 input_to_shortpath="${new_path}.exe" 25564 elif test -f "${new_path}.cmd"; then 25565 input_to_shortpath="${new_path}.cmd" 25566 else 25567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 25568 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 25569 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25570 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25571 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 25572 fi 25573 else 25574 input_to_shortpath="$new_path" 25575 fi 25576 25577 # Call helper function which possibly converts this using DOS-style short mode. 25578 # If so, the updated path is stored in $new_path. 25579 new_path="$input_to_shortpath" 25580 25581 input_path="$input_to_shortpath" 25582 # Check if we need to convert this using DOS-style short mode. If the path 25583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25584 # take no chances and rewrite it. 25585 # Note: m4 eats our [], so we need to use [ and ] instead. 25586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25587 if test "x$has_forbidden_chars" != x; then 25588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25589 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25590 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25591 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25592 # Going to short mode and back again did indeed matter. Since short mode is 25593 # case insensitive, let's make it lowercase to improve readability. 25594 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25595 # Now convert it back to Unix-stile (cygpath) 25596 input_path=`$CYGPATH -u "$shortmode_path"` 25597 new_path="$input_path" 25598 fi 25599 fi 25600 25601 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25602 if test "x$test_cygdrive_prefix" = x; then 25603 # As a simple fix, exclude /usr/bin since it's not a real path. 25604 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25605 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25606 # a path prefixed by /cygdrive for fixpath to work. 25607 new_path="$CYGWIN_ROOT_PATH$input_path" 25608 fi 25609 fi 25610 25611 # remove trailing .exe if any 25612 new_path="${new_path/%.exe/}" 25613 25614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25615 25616 # First separate the path from the arguments. This will split at the first 25617 # space. 25618 complete="$STRIP" 25619 path="${complete%% *}" 25620 tmp="$complete EOL" 25621 arguments="${tmp#* }" 25622 25623 # Input might be given as Windows format, start by converting to 25624 # unix format. 25625 new_path="$path" 25626 25627 windows_path="$new_path" 25628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25629 unix_path=`$CYGPATH -u "$windows_path"` 25630 new_path="$unix_path" 25631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25633 new_path="$unix_path" 25634 fi 25635 25636 25637 # Now try to locate executable using which 25638 new_path=`$WHICH "$new_path" 2> /dev/null` 25639 25640 if test "x$new_path" = x; then 25641 # Oops. Which didn't find the executable. 25642 # The splitting of arguments from the executable at a space might have been incorrect, 25643 # since paths with space are more likely in Windows. Give it another try with the whole 25644 # argument. 25645 path="$complete" 25646 arguments="EOL" 25647 new_path="$path" 25648 25649 windows_path="$new_path" 25650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25651 unix_path=`$CYGPATH -u "$windows_path"` 25652 new_path="$unix_path" 25653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25654 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25655 new_path="$unix_path" 25656 fi 25657 25658 25659 new_path=`$WHICH "$new_path" 2> /dev/null` 25660 25661 if test "x$new_path" = x; then 25662 # It's still not found. Now this is an unrecoverable error. 25663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 25664 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 25665 has_space=`$ECHO "$complete" | $GREP " "` 25666 if test "x$has_space" != x; then 25667 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25668 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25669 fi 25670 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 25671 fi 25672 fi 25673 25674 # Now new_path has a complete unix path to the binary 25675 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25676 # Keep paths in /bin as-is, but remove trailing .exe if any 25677 new_path="${new_path/%.exe/}" 25678 # Do not save /bin paths to all_fixpath_prefixes! 25679 else 25680 # Not in mixed or Windows style, start by that. 25681 new_path=`cmd //c echo $new_path` 25682 25683 input_path="$new_path" 25684 # Check if we need to convert this using DOS-style short mode. If the path 25685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25686 # take no chances and rewrite it. 25687 # Note: m4 eats our [], so we need to use [ and ] instead. 25688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25689 if test "x$has_forbidden_chars" != x; then 25690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25691 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25692 fi 25693 25694 # Output is in $new_path 25695 25696 windows_path="$new_path" 25697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25698 unix_path=`$CYGPATH -u "$windows_path"` 25699 new_path="$unix_path" 25700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25702 new_path="$unix_path" 25703 fi 25704 25705 # remove trailing .exe if any 25706 new_path="${new_path/%.exe/}" 25707 25708 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25709 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25710 fi 25711 25712 else 25713 # We're on a posix platform. Hooray! :) 25714 # First separate the path from the arguments. This will split at the first 25715 # space. 25716 complete="$STRIP" 25717 path="${complete%% *}" 25718 tmp="$complete EOL" 25719 arguments="${tmp#* }" 25720 25721 # Cannot rely on the command "which" here since it doesn't always work. 25722 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25723 if test -z "$is_absolute_path"; then 25724 # Path to executable is not absolute. Find it. 25725 IFS_save="$IFS" 25726 IFS=: 25727 for p in $PATH; do 25728 if test -f "$p/$path" && test -x "$p/$path"; then 25729 new_path="$p/$path" 25730 break 25731 fi 25732 done 25733 IFS="$IFS_save" 25734 else 25735 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5 25736 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;} 25737 new_path="$path" 25738 fi 25739 25740 if test "x$new_path" = x; then 25741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 25742 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 25743 has_space=`$ECHO "$complete" | $GREP " "` 25744 if test "x$has_space" != x; then 25745 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25746 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25747 fi 25748 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 25749 fi 25750 fi 25751 25752 # Now join together the path and the arguments once again 25753 if test "x$arguments" != xEOL; then 25754 new_complete="$new_path ${arguments% *}" 25755 else 25756 new_complete="$new_path" 25757 fi 25758 25759 if test "x$complete" != "x$new_complete"; then 25760 STRIP="$new_complete" 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 25762 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 25763 fi 25764 25765 # Extract the first word of "mcs", so it can be a program name with args. 25766 set dummy mcs; ac_word=$2 25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25768 $as_echo_n "checking for $ac_word... " >&6; } 25769 if ${ac_cv_path_MCS+:} false; then : 25770 $as_echo_n "(cached) " >&6 25771 else 25772 case $MCS in 25773 [\\/]* | ?:[\\/]*) 25774 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 25775 ;; 25776 *) 25777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25778 for as_dir in $PATH 25779 do 25780 IFS=$as_save_IFS 25781 test -z "$as_dir" && as_dir=. 25782 for ac_exec_ext in '' $ac_executable_extensions; do 25783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25784 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 25785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25786 break 2 25787 fi 25788 done 25789 done 25790 IFS=$as_save_IFS 25791 25792 ;; 25793 esac 25794 fi 25795 MCS=$ac_cv_path_MCS 25796 if test -n "$MCS"; then 25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 25798 $as_echo "$MCS" >&6; } 25799 else 25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25801 $as_echo "no" >&6; } 25802 fi 25803 25804 25805 25806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25807 25808 # First separate the path from the arguments. This will split at the first 25809 # space. 25810 complete="$MCS" 25811 path="${complete%% *}" 25812 tmp="$complete EOL" 25813 arguments="${tmp#* }" 25814 25815 # Input might be given as Windows format, start by converting to 25816 # unix format. 25817 new_path=`$CYGPATH -u "$path"` 25818 25819 # Now try to locate executable using which 25820 new_path=`$WHICH "$new_path" 2> /dev/null` 25821 # bat and cmd files are not always considered executable in cygwin causing which 25822 # to not find them 25823 if test "x$new_path" = x \ 25824 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25825 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25826 new_path=`$CYGPATH -u "$path"` 25827 fi 25828 if test "x$new_path" = x; then 25829 # Oops. Which didn't find the executable. 25830 # The splitting of arguments from the executable at a space might have been incorrect, 25831 # since paths with space are more likely in Windows. Give it another try with the whole 25832 # argument. 25833 path="$complete" 25834 arguments="EOL" 25835 new_path=`$CYGPATH -u "$path"` 25836 new_path=`$WHICH "$new_path" 2> /dev/null` 25837 # bat and cmd files are not always considered executable in cygwin causing which 25838 # to not find them 25839 if test "x$new_path" = x \ 25840 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25841 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25842 new_path=`$CYGPATH -u "$path"` 25843 fi 25844 if test "x$new_path" = x; then 25845 # It's still not found. Now this is an unrecoverable error. 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 25847 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 25848 has_space=`$ECHO "$complete" | $GREP " "` 25849 if test "x$has_space" != x; then 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25851 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25852 fi 25853 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 25854 fi 25855 fi 25856 25857 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25858 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25859 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25860 # "foo.exe" is OK but "foo" is an error. 25861 # 25862 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25863 # It is also a way to make sure we got the proper file name for the real test later on. 25864 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25865 if test "x$test_shortpath" = x; then 25866 # Short path failed, file does not exist as specified. 25867 # Try adding .exe or .cmd 25868 if test -f "${new_path}.exe"; then 25869 input_to_shortpath="${new_path}.exe" 25870 elif test -f "${new_path}.cmd"; then 25871 input_to_shortpath="${new_path}.cmd" 25872 else 25873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 25874 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 25875 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25876 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25877 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 25878 fi 25879 else 25880 input_to_shortpath="$new_path" 25881 fi 25882 25883 # Call helper function which possibly converts this using DOS-style short mode. 25884 # If so, the updated path is stored in $new_path. 25885 new_path="$input_to_shortpath" 25886 25887 input_path="$input_to_shortpath" 25888 # Check if we need to convert this using DOS-style short mode. If the path 25889 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25890 # take no chances and rewrite it. 25891 # Note: m4 eats our [], so we need to use [ and ] instead. 25892 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25893 if test "x$has_forbidden_chars" != x; then 25894 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25895 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25896 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25897 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25898 # Going to short mode and back again did indeed matter. Since short mode is 25899 # case insensitive, let's make it lowercase to improve readability. 25900 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25901 # Now convert it back to Unix-stile (cygpath) 25902 input_path=`$CYGPATH -u "$shortmode_path"` 25903 new_path="$input_path" 25904 fi 25905 fi 25906 25907 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25908 if test "x$test_cygdrive_prefix" = x; then 25909 # As a simple fix, exclude /usr/bin since it's not a real path. 25910 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25911 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25912 # a path prefixed by /cygdrive for fixpath to work. 25913 new_path="$CYGWIN_ROOT_PATH$input_path" 25914 fi 25915 fi 25916 25917 # remove trailing .exe if any 25918 new_path="${new_path/%.exe/}" 25919 25920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25921 25922 # First separate the path from the arguments. This will split at the first 25923 # space. 25924 complete="$MCS" 25925 path="${complete%% *}" 25926 tmp="$complete EOL" 25927 arguments="${tmp#* }" 25928 25929 # Input might be given as Windows format, start by converting to 25930 # unix format. 25931 new_path="$path" 25932 25933 windows_path="$new_path" 25934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25935 unix_path=`$CYGPATH -u "$windows_path"` 25936 new_path="$unix_path" 25937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25939 new_path="$unix_path" 25940 fi 25941 25942 25943 # Now try to locate executable using which 25944 new_path=`$WHICH "$new_path" 2> /dev/null` 25945 25946 if test "x$new_path" = x; then 25947 # Oops. Which didn't find the executable. 25948 # The splitting of arguments from the executable at a space might have been incorrect, 25949 # since paths with space are more likely in Windows. Give it another try with the whole 25950 # argument. 25951 path="$complete" 25952 arguments="EOL" 25953 new_path="$path" 25954 25955 windows_path="$new_path" 25956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25957 unix_path=`$CYGPATH -u "$windows_path"` 25958 new_path="$unix_path" 25959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25961 new_path="$unix_path" 25962 fi 25963 25964 25965 new_path=`$WHICH "$new_path" 2> /dev/null` 25966 25967 if test "x$new_path" = x; then 25968 # It's still not found. Now this is an unrecoverable error. 25969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 25970 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 25971 has_space=`$ECHO "$complete" | $GREP " "` 25972 if test "x$has_space" != x; then 25973 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25974 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25975 fi 25976 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 25977 fi 25978 fi 25979 25980 # Now new_path has a complete unix path to the binary 25981 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25982 # Keep paths in /bin as-is, but remove trailing .exe if any 25983 new_path="${new_path/%.exe/}" 25984 # Do not save /bin paths to all_fixpath_prefixes! 25985 else 25986 # Not in mixed or Windows style, start by that. 25987 new_path=`cmd //c echo $new_path` 25988 25989 input_path="$new_path" 25990 # Check if we need to convert this using DOS-style short mode. If the path 25991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25992 # take no chances and rewrite it. 25993 # Note: m4 eats our [], so we need to use [ and ] instead. 25994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25995 if test "x$has_forbidden_chars" != x; then 25996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25997 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25998 fi 25999 26000 # Output is in $new_path 26001 26002 windows_path="$new_path" 26003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26004 unix_path=`$CYGPATH -u "$windows_path"` 26005 new_path="$unix_path" 26006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26008 new_path="$unix_path" 26009 fi 26010 26011 # remove trailing .exe if any 26012 new_path="${new_path/%.exe/}" 26013 26014 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26015 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26016 fi 26017 26018 else 26019 # We're on a posix platform. Hooray! :) 26020 # First separate the path from the arguments. This will split at the first 26021 # space. 26022 complete="$MCS" 26023 path="${complete%% *}" 26024 tmp="$complete EOL" 26025 arguments="${tmp#* }" 26026 26027 # Cannot rely on the command "which" here since it doesn't always work. 26028 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26029 if test -z "$is_absolute_path"; then 26030 # Path to executable is not absolute. Find it. 26031 IFS_save="$IFS" 26032 IFS=: 26033 for p in $PATH; do 26034 if test -f "$p/$path" && test -x "$p/$path"; then 26035 new_path="$p/$path" 26036 break 26037 fi 26038 done 26039 IFS="$IFS_save" 26040 else 26041 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MCS (as $path) failed, using $path directly." >&5 26042 $as_echo "$as_me: Resolving MCS (as $path) failed, using $path directly." >&6;} 26043 new_path="$path" 26044 fi 26045 26046 if test "x$new_path" = x; then 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 26048 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 26049 has_space=`$ECHO "$complete" | $GREP " "` 26050 if test "x$has_space" != x; then 26051 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26052 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26053 fi 26054 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 26055 fi 26056 fi 26057 26058 # Now join together the path and the arguments once again 26059 if test "x$arguments" != xEOL; then 26060 new_complete="$new_path ${arguments% *}" 26061 else 26062 new_complete="$new_path" 26063 fi 26064 26065 if test "x$complete" != "x$new_complete"; then 26066 MCS="$new_complete" 26067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 26068 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 26069 fi 26070 26071 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 26072 if test -n "$ac_tool_prefix"; then 26073 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 26074 set dummy ${ac_tool_prefix}nm; ac_word=$2 26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26076 $as_echo_n "checking for $ac_word... " >&6; } 26077 if ${ac_cv_prog_NM+:} false; then : 26078 $as_echo_n "(cached) " >&6 26079 else 26080 if test -n "$NM"; then 26081 ac_cv_prog_NM="$NM" # Let the user override the test. 26082 else 26083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26084 for as_dir in $PATH 26085 do 26086 IFS=$as_save_IFS 26087 test -z "$as_dir" && as_dir=. 26088 for ac_exec_ext in '' $ac_executable_extensions; do 26089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26090 ac_cv_prog_NM="${ac_tool_prefix}nm" 26091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26092 break 2 26093 fi 26094 done 26095 done 26096 IFS=$as_save_IFS 26097 26098 fi 26099 fi 26100 NM=$ac_cv_prog_NM 26101 if test -n "$NM"; then 26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 26103 $as_echo "$NM" >&6; } 26104 else 26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26106 $as_echo "no" >&6; } 26107 fi 26108 26109 26110 fi 26111 if test -z "$ac_cv_prog_NM"; then 26112 ac_ct_NM=$NM 26113 # Extract the first word of "nm", so it can be a program name with args. 26114 set dummy nm; ac_word=$2 26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26116 $as_echo_n "checking for $ac_word... " >&6; } 26117 if ${ac_cv_prog_ac_ct_NM+:} false; then : 26118 $as_echo_n "(cached) " >&6 26119 else 26120 if test -n "$ac_ct_NM"; then 26121 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 26122 else 26123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26124 for as_dir in $PATH 26125 do 26126 IFS=$as_save_IFS 26127 test -z "$as_dir" && as_dir=. 26128 for ac_exec_ext in '' $ac_executable_extensions; do 26129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26130 ac_cv_prog_ac_ct_NM="nm" 26131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26132 break 2 26133 fi 26134 done 26135 done 26136 IFS=$as_save_IFS 26137 26138 fi 26139 fi 26140 ac_ct_NM=$ac_cv_prog_ac_ct_NM 26141 if test -n "$ac_ct_NM"; then 26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 26143 $as_echo "$ac_ct_NM" >&6; } 26144 else 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26146 $as_echo "no" >&6; } 26147 fi 26148 26149 if test "x$ac_ct_NM" = x; then 26150 NM="" 26151 else 26152 case $cross_compiling:$ac_tool_warned in 26153 yes:) 26154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26156 ac_tool_warned=yes ;; 26157 esac 26158 NM=$ac_ct_NM 26159 fi 26160 else 26161 NM="$ac_cv_prog_NM" 26162 fi 26163 26164 26165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26166 26167 # First separate the path from the arguments. This will split at the first 26168 # space. 26169 complete="$NM" 26170 path="${complete%% *}" 26171 tmp="$complete EOL" 26172 arguments="${tmp#* }" 26173 26174 # Input might be given as Windows format, start by converting to 26175 # unix format. 26176 new_path=`$CYGPATH -u "$path"` 26177 26178 # Now try to locate executable using which 26179 new_path=`$WHICH "$new_path" 2> /dev/null` 26180 # bat and cmd files are not always considered executable in cygwin causing which 26181 # to not find them 26182 if test "x$new_path" = x \ 26183 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26184 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26185 new_path=`$CYGPATH -u "$path"` 26186 fi 26187 if test "x$new_path" = x; then 26188 # Oops. Which didn't find the executable. 26189 # The splitting of arguments from the executable at a space might have been incorrect, 26190 # since paths with space are more likely in Windows. Give it another try with the whole 26191 # argument. 26192 path="$complete" 26193 arguments="EOL" 26194 new_path=`$CYGPATH -u "$path"` 26195 new_path=`$WHICH "$new_path" 2> /dev/null` 26196 # bat and cmd files are not always considered executable in cygwin causing which 26197 # to not find them 26198 if test "x$new_path" = x \ 26199 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26200 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26201 new_path=`$CYGPATH -u "$path"` 26202 fi 26203 if test "x$new_path" = x; then 26204 # It's still not found. Now this is an unrecoverable error. 26205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 26206 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 26207 has_space=`$ECHO "$complete" | $GREP " "` 26208 if test "x$has_space" != x; then 26209 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26211 fi 26212 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 26213 fi 26214 fi 26215 26216 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26217 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26218 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26219 # "foo.exe" is OK but "foo" is an error. 26220 # 26221 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26222 # It is also a way to make sure we got the proper file name for the real test later on. 26223 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26224 if test "x$test_shortpath" = x; then 26225 # Short path failed, file does not exist as specified. 26226 # Try adding .exe or .cmd 26227 if test -f "${new_path}.exe"; then 26228 input_to_shortpath="${new_path}.exe" 26229 elif test -f "${new_path}.cmd"; then 26230 input_to_shortpath="${new_path}.cmd" 26231 else 26232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 26233 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 26234 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26235 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26236 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 26237 fi 26238 else 26239 input_to_shortpath="$new_path" 26240 fi 26241 26242 # Call helper function which possibly converts this using DOS-style short mode. 26243 # If so, the updated path is stored in $new_path. 26244 new_path="$input_to_shortpath" 26245 26246 input_path="$input_to_shortpath" 26247 # Check if we need to convert this using DOS-style short mode. If the path 26248 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26249 # take no chances and rewrite it. 26250 # Note: m4 eats our [], so we need to use [ and ] instead. 26251 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26252 if test "x$has_forbidden_chars" != x; then 26253 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26254 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26255 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26256 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26257 # Going to short mode and back again did indeed matter. Since short mode is 26258 # case insensitive, let's make it lowercase to improve readability. 26259 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26260 # Now convert it back to Unix-stile (cygpath) 26261 input_path=`$CYGPATH -u "$shortmode_path"` 26262 new_path="$input_path" 26263 fi 26264 fi 26265 26266 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26267 if test "x$test_cygdrive_prefix" = x; then 26268 # As a simple fix, exclude /usr/bin since it's not a real path. 26269 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26270 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26271 # a path prefixed by /cygdrive for fixpath to work. 26272 new_path="$CYGWIN_ROOT_PATH$input_path" 26273 fi 26274 fi 26275 26276 # remove trailing .exe if any 26277 new_path="${new_path/%.exe/}" 26278 26279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26280 26281 # First separate the path from the arguments. This will split at the first 26282 # space. 26283 complete="$NM" 26284 path="${complete%% *}" 26285 tmp="$complete EOL" 26286 arguments="${tmp#* }" 26287 26288 # Input might be given as Windows format, start by converting to 26289 # unix format. 26290 new_path="$path" 26291 26292 windows_path="$new_path" 26293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26294 unix_path=`$CYGPATH -u "$windows_path"` 26295 new_path="$unix_path" 26296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26297 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26298 new_path="$unix_path" 26299 fi 26300 26301 26302 # Now try to locate executable using which 26303 new_path=`$WHICH "$new_path" 2> /dev/null` 26304 26305 if test "x$new_path" = x; then 26306 # Oops. Which didn't find the executable. 26307 # The splitting of arguments from the executable at a space might have been incorrect, 26308 # since paths with space are more likely in Windows. Give it another try with the whole 26309 # argument. 26310 path="$complete" 26311 arguments="EOL" 26312 new_path="$path" 26313 26314 windows_path="$new_path" 26315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26316 unix_path=`$CYGPATH -u "$windows_path"` 26317 new_path="$unix_path" 26318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26320 new_path="$unix_path" 26321 fi 26322 26323 26324 new_path=`$WHICH "$new_path" 2> /dev/null` 26325 26326 if test "x$new_path" = x; then 26327 # It's still not found. Now this is an unrecoverable error. 26328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 26329 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 26330 has_space=`$ECHO "$complete" | $GREP " "` 26331 if test "x$has_space" != x; then 26332 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26333 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26334 fi 26335 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 26336 fi 26337 fi 26338 26339 # Now new_path has a complete unix path to the binary 26340 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26341 # Keep paths in /bin as-is, but remove trailing .exe if any 26342 new_path="${new_path/%.exe/}" 26343 # Do not save /bin paths to all_fixpath_prefixes! 26344 else 26345 # Not in mixed or Windows style, start by that. 26346 new_path=`cmd //c echo $new_path` 26347 26348 input_path="$new_path" 26349 # Check if we need to convert this using DOS-style short mode. If the path 26350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26351 # take no chances and rewrite it. 26352 # Note: m4 eats our [], so we need to use [ and ] instead. 26353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26354 if test "x$has_forbidden_chars" != x; then 26355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26356 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26357 fi 26358 26359 # Output is in $new_path 26360 26361 windows_path="$new_path" 26362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26363 unix_path=`$CYGPATH -u "$windows_path"` 26364 new_path="$unix_path" 26365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26367 new_path="$unix_path" 26368 fi 26369 26370 # remove trailing .exe if any 26371 new_path="${new_path/%.exe/}" 26372 26373 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26374 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26375 fi 26376 26377 else 26378 # We're on a posix platform. Hooray! :) 26379 # First separate the path from the arguments. This will split at the first 26380 # space. 26381 complete="$NM" 26382 path="${complete%% *}" 26383 tmp="$complete EOL" 26384 arguments="${tmp#* }" 26385 26386 # Cannot rely on the command "which" here since it doesn't always work. 26387 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26388 if test -z "$is_absolute_path"; then 26389 # Path to executable is not absolute. Find it. 26390 IFS_save="$IFS" 26391 IFS=: 26392 for p in $PATH; do 26393 if test -f "$p/$path" && test -x "$p/$path"; then 26394 new_path="$p/$path" 26395 break 26396 fi 26397 done 26398 IFS="$IFS_save" 26399 else 26400 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5 26401 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;} 26402 new_path="$path" 26403 fi 26404 26405 if test "x$new_path" = x; then 26406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 26407 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 26408 has_space=`$ECHO "$complete" | $GREP " "` 26409 if test "x$has_space" != x; then 26410 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26411 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26412 fi 26413 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 26414 fi 26415 fi 26416 26417 # Now join together the path and the arguments once again 26418 if test "x$arguments" != xEOL; then 26419 new_complete="$new_path ${arguments% *}" 26420 else 26421 new_complete="$new_path" 26422 fi 26423 26424 if test "x$complete" != "x$new_complete"; then 26425 NM="$new_complete" 26426 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 26427 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 26428 fi 26429 26430 if test -n "$ac_tool_prefix"; then 26431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 26432 set dummy ${ac_tool_prefix}strip; ac_word=$2 26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26434 $as_echo_n "checking for $ac_word... " >&6; } 26435 if ${ac_cv_prog_STRIP+:} false; then : 26436 $as_echo_n "(cached) " >&6 26437 else 26438 if test -n "$STRIP"; then 26439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 26440 else 26441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26442 for as_dir in $PATH 26443 do 26444 IFS=$as_save_IFS 26445 test -z "$as_dir" && as_dir=. 26446 for ac_exec_ext in '' $ac_executable_extensions; do 26447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26448 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 26449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26450 break 2 26451 fi 26452 done 26453 done 26454 IFS=$as_save_IFS 26455 26456 fi 26457 fi 26458 STRIP=$ac_cv_prog_STRIP 26459 if test -n "$STRIP"; then 26460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 26461 $as_echo "$STRIP" >&6; } 26462 else 26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26464 $as_echo "no" >&6; } 26465 fi 26466 26467 26468 fi 26469 if test -z "$ac_cv_prog_STRIP"; then 26470 ac_ct_STRIP=$STRIP 26471 # Extract the first word of "strip", so it can be a program name with args. 26472 set dummy strip; ac_word=$2 26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26474 $as_echo_n "checking for $ac_word... " >&6; } 26475 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 26476 $as_echo_n "(cached) " >&6 26477 else 26478 if test -n "$ac_ct_STRIP"; then 26479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 26480 else 26481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26482 for as_dir in $PATH 26483 do 26484 IFS=$as_save_IFS 26485 test -z "$as_dir" && as_dir=. 26486 for ac_exec_ext in '' $ac_executable_extensions; do 26487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26488 ac_cv_prog_ac_ct_STRIP="strip" 26489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26490 break 2 26491 fi 26492 done 26493 done 26494 IFS=$as_save_IFS 26495 26496 fi 26497 fi 26498 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 26499 if test -n "$ac_ct_STRIP"; then 26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 26501 $as_echo "$ac_ct_STRIP" >&6; } 26502 else 26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26504 $as_echo "no" >&6; } 26505 fi 26506 26507 if test "x$ac_ct_STRIP" = x; then 26508 STRIP="" 26509 else 26510 case $cross_compiling:$ac_tool_warned in 26511 yes:) 26512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26514 ac_tool_warned=yes ;; 26515 esac 26516 STRIP=$ac_ct_STRIP 26517 fi 26518 else 26519 STRIP="$ac_cv_prog_STRIP" 26520 fi 26521 26522 26523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26524 26525 # First separate the path from the arguments. This will split at the first 26526 # space. 26527 complete="$STRIP" 26528 path="${complete%% *}" 26529 tmp="$complete EOL" 26530 arguments="${tmp#* }" 26531 26532 # Input might be given as Windows format, start by converting to 26533 # unix format. 26534 new_path=`$CYGPATH -u "$path"` 26535 26536 # Now try to locate executable using which 26537 new_path=`$WHICH "$new_path" 2> /dev/null` 26538 # bat and cmd files are not always considered executable in cygwin causing which 26539 # to not find them 26540 if test "x$new_path" = x \ 26541 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26542 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26543 new_path=`$CYGPATH -u "$path"` 26544 fi 26545 if test "x$new_path" = x; then 26546 # Oops. Which didn't find the executable. 26547 # The splitting of arguments from the executable at a space might have been incorrect, 26548 # since paths with space are more likely in Windows. Give it another try with the whole 26549 # argument. 26550 path="$complete" 26551 arguments="EOL" 26552 new_path=`$CYGPATH -u "$path"` 26553 new_path=`$WHICH "$new_path" 2> /dev/null` 26554 # bat and cmd files are not always considered executable in cygwin causing which 26555 # to not find them 26556 if test "x$new_path" = x \ 26557 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26558 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26559 new_path=`$CYGPATH -u "$path"` 26560 fi 26561 if test "x$new_path" = x; then 26562 # It's still not found. Now this is an unrecoverable error. 26563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 26564 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 26565 has_space=`$ECHO "$complete" | $GREP " "` 26566 if test "x$has_space" != x; then 26567 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26568 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26569 fi 26570 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26571 fi 26572 fi 26573 26574 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26575 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26576 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26577 # "foo.exe" is OK but "foo" is an error. 26578 # 26579 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26580 # It is also a way to make sure we got the proper file name for the real test later on. 26581 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26582 if test "x$test_shortpath" = x; then 26583 # Short path failed, file does not exist as specified. 26584 # Try adding .exe or .cmd 26585 if test -f "${new_path}.exe"; then 26586 input_to_shortpath="${new_path}.exe" 26587 elif test -f "${new_path}.cmd"; then 26588 input_to_shortpath="${new_path}.cmd" 26589 else 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 26591 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 26592 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26593 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26594 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26595 fi 26596 else 26597 input_to_shortpath="$new_path" 26598 fi 26599 26600 # Call helper function which possibly converts this using DOS-style short mode. 26601 # If so, the updated path is stored in $new_path. 26602 new_path="$input_to_shortpath" 26603 26604 input_path="$input_to_shortpath" 26605 # Check if we need to convert this using DOS-style short mode. If the path 26606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26607 # take no chances and rewrite it. 26608 # Note: m4 eats our [], so we need to use [ and ] instead. 26609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26610 if test "x$has_forbidden_chars" != x; then 26611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26612 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26613 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26614 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26615 # Going to short mode and back again did indeed matter. Since short mode is 26616 # case insensitive, let's make it lowercase to improve readability. 26617 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26618 # Now convert it back to Unix-stile (cygpath) 26619 input_path=`$CYGPATH -u "$shortmode_path"` 26620 new_path="$input_path" 26621 fi 26622 fi 26623 26624 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26625 if test "x$test_cygdrive_prefix" = x; then 26626 # As a simple fix, exclude /usr/bin since it's not a real path. 26627 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26628 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26629 # a path prefixed by /cygdrive for fixpath to work. 26630 new_path="$CYGWIN_ROOT_PATH$input_path" 26631 fi 26632 fi 26633 26634 # remove trailing .exe if any 26635 new_path="${new_path/%.exe/}" 26636 26637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26638 26639 # First separate the path from the arguments. This will split at the first 26640 # space. 26641 complete="$STRIP" 26642 path="${complete%% *}" 26643 tmp="$complete EOL" 26644 arguments="${tmp#* }" 26645 26646 # Input might be given as Windows format, start by converting to 26647 # unix format. 26648 new_path="$path" 26649 26650 windows_path="$new_path" 26651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26652 unix_path=`$CYGPATH -u "$windows_path"` 26653 new_path="$unix_path" 26654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26656 new_path="$unix_path" 26657 fi 26658 26659 26660 # Now try to locate executable using which 26661 new_path=`$WHICH "$new_path" 2> /dev/null` 26662 26663 if test "x$new_path" = x; then 26664 # Oops. Which didn't find the executable. 26665 # The splitting of arguments from the executable at a space might have been incorrect, 26666 # since paths with space are more likely in Windows. Give it another try with the whole 26667 # argument. 26668 path="$complete" 26669 arguments="EOL" 26670 new_path="$path" 26671 26672 windows_path="$new_path" 26673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26674 unix_path=`$CYGPATH -u "$windows_path"` 26675 new_path="$unix_path" 26676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26678 new_path="$unix_path" 26679 fi 26680 26681 26682 new_path=`$WHICH "$new_path" 2> /dev/null` 26683 26684 if test "x$new_path" = x; then 26685 # It's still not found. Now this is an unrecoverable error. 26686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 26687 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 26688 has_space=`$ECHO "$complete" | $GREP " "` 26689 if test "x$has_space" != x; then 26690 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26691 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26692 fi 26693 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26694 fi 26695 fi 26696 26697 # Now new_path has a complete unix path to the binary 26698 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26699 # Keep paths in /bin as-is, but remove trailing .exe if any 26700 new_path="${new_path/%.exe/}" 26701 # Do not save /bin paths to all_fixpath_prefixes! 26702 else 26703 # Not in mixed or Windows style, start by that. 26704 new_path=`cmd //c echo $new_path` 26705 26706 input_path="$new_path" 26707 # Check if we need to convert this using DOS-style short mode. If the path 26708 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26709 # take no chances and rewrite it. 26710 # Note: m4 eats our [], so we need to use [ and ] instead. 26711 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26712 if test "x$has_forbidden_chars" != x; then 26713 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26714 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26715 fi 26716 26717 # Output is in $new_path 26718 26719 windows_path="$new_path" 26720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26721 unix_path=`$CYGPATH -u "$windows_path"` 26722 new_path="$unix_path" 26723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26725 new_path="$unix_path" 26726 fi 26727 26728 # remove trailing .exe if any 26729 new_path="${new_path/%.exe/}" 26730 26731 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26732 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26733 fi 26734 26735 else 26736 # We're on a posix platform. Hooray! :) 26737 # First separate the path from the arguments. This will split at the first 26738 # space. 26739 complete="$STRIP" 26740 path="${complete%% *}" 26741 tmp="$complete EOL" 26742 arguments="${tmp#* }" 26743 26744 # Cannot rely on the command "which" here since it doesn't always work. 26745 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26746 if test -z "$is_absolute_path"; then 26747 # Path to executable is not absolute. Find it. 26748 IFS_save="$IFS" 26749 IFS=: 26750 for p in $PATH; do 26751 if test -f "$p/$path" && test -x "$p/$path"; then 26752 new_path="$p/$path" 26753 break 26754 fi 26755 done 26756 IFS="$IFS_save" 26757 else 26758 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5 26759 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;} 26760 new_path="$path" 26761 fi 26762 26763 if test "x$new_path" = x; then 26764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 26765 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 26766 has_space=`$ECHO "$complete" | $GREP " "` 26767 if test "x$has_space" != x; then 26768 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26769 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26770 fi 26771 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26772 fi 26773 fi 26774 26775 # Now join together the path and the arguments once again 26776 if test "x$arguments" != xEOL; then 26777 new_complete="$new_path ${arguments% *}" 26778 else 26779 new_complete="$new_path" 26780 fi 26781 26782 if test "x$complete" != "x$new_complete"; then 26783 STRIP="$new_complete" 26784 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 26785 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 26786 fi 26787 26788 fi 26789 26790 # objcopy is used for moving debug symbols to separate files when 26791 # full debug symbols are enabled. 26792 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 26793 if test -n "$ac_tool_prefix"; then 26794 for ac_prog in gobjcopy objcopy 26795 do 26796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 26797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26799 $as_echo_n "checking for $ac_word... " >&6; } 26800 if ${ac_cv_prog_OBJCOPY+:} false; then : 26801 $as_echo_n "(cached) " >&6 26802 else 26803 if test -n "$OBJCOPY"; then 26804 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 26805 else 26806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26807 for as_dir in $PATH 26808 do 26809 IFS=$as_save_IFS 26810 test -z "$as_dir" && as_dir=. 26811 for ac_exec_ext in '' $ac_executable_extensions; do 26812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26813 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 26814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26815 break 2 26816 fi 26817 done 26818 done 26819 IFS=$as_save_IFS 26820 26821 fi 26822 fi 26823 OBJCOPY=$ac_cv_prog_OBJCOPY 26824 if test -n "$OBJCOPY"; then 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 26826 $as_echo "$OBJCOPY" >&6; } 26827 else 26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26829 $as_echo "no" >&6; } 26830 fi 26831 26832 26833 test -n "$OBJCOPY" && break 26834 done 26835 fi 26836 if test -z "$OBJCOPY"; then 26837 ac_ct_OBJCOPY=$OBJCOPY 26838 for ac_prog in gobjcopy objcopy 26839 do 26840 # Extract the first word of "$ac_prog", so it can be a program name with args. 26841 set dummy $ac_prog; ac_word=$2 26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26843 $as_echo_n "checking for $ac_word... " >&6; } 26844 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 26845 $as_echo_n "(cached) " >&6 26846 else 26847 if test -n "$ac_ct_OBJCOPY"; then 26848 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 26849 else 26850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26851 for as_dir in $PATH 26852 do 26853 IFS=$as_save_IFS 26854 test -z "$as_dir" && as_dir=. 26855 for ac_exec_ext in '' $ac_executable_extensions; do 26856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26857 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 26858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26859 break 2 26860 fi 26861 done 26862 done 26863 IFS=$as_save_IFS 26864 26865 fi 26866 fi 26867 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 26868 if test -n "$ac_ct_OBJCOPY"; then 26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 26870 $as_echo "$ac_ct_OBJCOPY" >&6; } 26871 else 26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26873 $as_echo "no" >&6; } 26874 fi 26875 26876 26877 test -n "$ac_ct_OBJCOPY" && break 26878 done 26879 26880 if test "x$ac_ct_OBJCOPY" = x; then 26881 OBJCOPY="" 26882 else 26883 case $cross_compiling:$ac_tool_warned in 26884 yes:) 26885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26887 ac_tool_warned=yes ;; 26888 esac 26889 OBJCOPY=$ac_ct_OBJCOPY 26890 fi 26891 fi 26892 26893 # Only call fixup if objcopy was found. 26894 if test -n "$OBJCOPY"; then 26895 26896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26897 26898 # First separate the path from the arguments. This will split at the first 26899 # space. 26900 complete="$OBJCOPY" 26901 path="${complete%% *}" 26902 tmp="$complete EOL" 26903 arguments="${tmp#* }" 26904 26905 # Input might be given as Windows format, start by converting to 26906 # unix format. 26907 new_path=`$CYGPATH -u "$path"` 26908 26909 # Now try to locate executable using which 26910 new_path=`$WHICH "$new_path" 2> /dev/null` 26911 # bat and cmd files are not always considered executable in cygwin causing which 26912 # to not find them 26913 if test "x$new_path" = x \ 26914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26916 new_path=`$CYGPATH -u "$path"` 26917 fi 26918 if test "x$new_path" = x; then 26919 # Oops. Which didn't find the executable. 26920 # The splitting of arguments from the executable at a space might have been incorrect, 26921 # since paths with space are more likely in Windows. Give it another try with the whole 26922 # argument. 26923 path="$complete" 26924 arguments="EOL" 26925 new_path=`$CYGPATH -u "$path"` 26926 new_path=`$WHICH "$new_path" 2> /dev/null` 26927 # bat and cmd files are not always considered executable in cygwin causing which 26928 # to not find them 26929 if test "x$new_path" = x \ 26930 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26931 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26932 new_path=`$CYGPATH -u "$path"` 26933 fi 26934 if test "x$new_path" = x; then 26935 # It's still not found. Now this is an unrecoverable error. 26936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 26937 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 26938 has_space=`$ECHO "$complete" | $GREP " "` 26939 if test "x$has_space" != x; then 26940 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26941 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26942 fi 26943 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 26944 fi 26945 fi 26946 26947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26950 # "foo.exe" is OK but "foo" is an error. 26951 # 26952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26953 # It is also a way to make sure we got the proper file name for the real test later on. 26954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26955 if test "x$test_shortpath" = x; then 26956 # Short path failed, file does not exist as specified. 26957 # Try adding .exe or .cmd 26958 if test -f "${new_path}.exe"; then 26959 input_to_shortpath="${new_path}.exe" 26960 elif test -f "${new_path}.cmd"; then 26961 input_to_shortpath="${new_path}.cmd" 26962 else 26963 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 26964 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 26965 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26966 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26967 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 26968 fi 26969 else 26970 input_to_shortpath="$new_path" 26971 fi 26972 26973 # Call helper function which possibly converts this using DOS-style short mode. 26974 # If so, the updated path is stored in $new_path. 26975 new_path="$input_to_shortpath" 26976 26977 input_path="$input_to_shortpath" 26978 # Check if we need to convert this using DOS-style short mode. If the path 26979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26980 # take no chances and rewrite it. 26981 # Note: m4 eats our [], so we need to use [ and ] instead. 26982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26983 if test "x$has_forbidden_chars" != x; then 26984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26985 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26986 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26987 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26988 # Going to short mode and back again did indeed matter. Since short mode is 26989 # case insensitive, let's make it lowercase to improve readability. 26990 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26991 # Now convert it back to Unix-stile (cygpath) 26992 input_path=`$CYGPATH -u "$shortmode_path"` 26993 new_path="$input_path" 26994 fi 26995 fi 26996 26997 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26998 if test "x$test_cygdrive_prefix" = x; then 26999 # As a simple fix, exclude /usr/bin since it's not a real path. 27000 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27001 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27002 # a path prefixed by /cygdrive for fixpath to work. 27003 new_path="$CYGWIN_ROOT_PATH$input_path" 27004 fi 27005 fi 27006 27007 # remove trailing .exe if any 27008 new_path="${new_path/%.exe/}" 27009 27010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27011 27012 # First separate the path from the arguments. This will split at the first 27013 # space. 27014 complete="$OBJCOPY" 27015 path="${complete%% *}" 27016 tmp="$complete EOL" 27017 arguments="${tmp#* }" 27018 27019 # Input might be given as Windows format, start by converting to 27020 # unix format. 27021 new_path="$path" 27022 27023 windows_path="$new_path" 27024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27025 unix_path=`$CYGPATH -u "$windows_path"` 27026 new_path="$unix_path" 27027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27028 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27029 new_path="$unix_path" 27030 fi 27031 27032 27033 # Now try to locate executable using which 27034 new_path=`$WHICH "$new_path" 2> /dev/null` 27035 27036 if test "x$new_path" = x; then 27037 # Oops. Which didn't find the executable. 27038 # The splitting of arguments from the executable at a space might have been incorrect, 27039 # since paths with space are more likely in Windows. Give it another try with the whole 27040 # argument. 27041 path="$complete" 27042 arguments="EOL" 27043 new_path="$path" 27044 27045 windows_path="$new_path" 27046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27047 unix_path=`$CYGPATH -u "$windows_path"` 27048 new_path="$unix_path" 27049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27051 new_path="$unix_path" 27052 fi 27053 27054 27055 new_path=`$WHICH "$new_path" 2> /dev/null` 27056 27057 if test "x$new_path" = x; then 27058 # It's still not found. Now this is an unrecoverable error. 27059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 27060 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 27061 has_space=`$ECHO "$complete" | $GREP " "` 27062 if test "x$has_space" != x; then 27063 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27064 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27065 fi 27066 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 27067 fi 27068 fi 27069 27070 # Now new_path has a complete unix path to the binary 27071 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27072 # Keep paths in /bin as-is, but remove trailing .exe if any 27073 new_path="${new_path/%.exe/}" 27074 # Do not save /bin paths to all_fixpath_prefixes! 27075 else 27076 # Not in mixed or Windows style, start by that. 27077 new_path=`cmd //c echo $new_path` 27078 27079 input_path="$new_path" 27080 # Check if we need to convert this using DOS-style short mode. If the path 27081 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27082 # take no chances and rewrite it. 27083 # Note: m4 eats our [], so we need to use [ and ] instead. 27084 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27085 if test "x$has_forbidden_chars" != x; then 27086 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27087 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27088 fi 27089 27090 # Output is in $new_path 27091 27092 windows_path="$new_path" 27093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27094 unix_path=`$CYGPATH -u "$windows_path"` 27095 new_path="$unix_path" 27096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27098 new_path="$unix_path" 27099 fi 27100 27101 # remove trailing .exe if any 27102 new_path="${new_path/%.exe/}" 27103 27104 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27105 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27106 fi 27107 27108 else 27109 # We're on a posix platform. Hooray! :) 27110 # First separate the path from the arguments. This will split at the first 27111 # space. 27112 complete="$OBJCOPY" 27113 path="${complete%% *}" 27114 tmp="$complete EOL" 27115 arguments="${tmp#* }" 27116 27117 # Cannot rely on the command "which" here since it doesn't always work. 27118 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27119 if test -z "$is_absolute_path"; then 27120 # Path to executable is not absolute. Find it. 27121 IFS_save="$IFS" 27122 IFS=: 27123 for p in $PATH; do 27124 if test -f "$p/$path" && test -x "$p/$path"; then 27125 new_path="$p/$path" 27126 break 27127 fi 27128 done 27129 IFS="$IFS_save" 27130 else 27131 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJCOPY (as $path) failed, using $path directly." >&5 27132 $as_echo "$as_me: Resolving OBJCOPY (as $path) failed, using $path directly." >&6;} 27133 new_path="$path" 27134 fi 27135 27136 if test "x$new_path" = x; then 27137 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 27138 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 27139 has_space=`$ECHO "$complete" | $GREP " "` 27140 if test "x$has_space" != x; then 27141 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27142 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27143 fi 27144 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 27145 fi 27146 fi 27147 27148 # Now join together the path and the arguments once again 27149 if test "x$arguments" != xEOL; then 27150 new_complete="$new_path ${arguments% *}" 27151 else 27152 new_complete="$new_path" 27153 fi 27154 27155 if test "x$complete" != "x$new_complete"; then 27156 OBJCOPY="$new_complete" 27157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 27158 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 27159 fi 27160 27161 fi 27162 fi 27163 27164 if test -n "$ac_tool_prefix"; then 27165 for ac_prog in gobjdump objdump 27166 do 27167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27170 $as_echo_n "checking for $ac_word... " >&6; } 27171 if ${ac_cv_prog_OBJDUMP+:} false; then : 27172 $as_echo_n "(cached) " >&6 27173 else 27174 if test -n "$OBJDUMP"; then 27175 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 27176 else 27177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27178 for as_dir in $PATH 27179 do 27180 IFS=$as_save_IFS 27181 test -z "$as_dir" && as_dir=. 27182 for ac_exec_ext in '' $ac_executable_extensions; do 27183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27184 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 27185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27186 break 2 27187 fi 27188 done 27189 done 27190 IFS=$as_save_IFS 27191 27192 fi 27193 fi 27194 OBJDUMP=$ac_cv_prog_OBJDUMP 27195 if test -n "$OBJDUMP"; then 27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 27197 $as_echo "$OBJDUMP" >&6; } 27198 else 27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27200 $as_echo "no" >&6; } 27201 fi 27202 27203 27204 test -n "$OBJDUMP" && break 27205 done 27206 fi 27207 if test -z "$OBJDUMP"; then 27208 ac_ct_OBJDUMP=$OBJDUMP 27209 for ac_prog in gobjdump objdump 27210 do 27211 # Extract the first word of "$ac_prog", so it can be a program name with args. 27212 set dummy $ac_prog; ac_word=$2 27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27214 $as_echo_n "checking for $ac_word... " >&6; } 27215 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 27216 $as_echo_n "(cached) " >&6 27217 else 27218 if test -n "$ac_ct_OBJDUMP"; then 27219 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 27220 else 27221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27222 for as_dir in $PATH 27223 do 27224 IFS=$as_save_IFS 27225 test -z "$as_dir" && as_dir=. 27226 for ac_exec_ext in '' $ac_executable_extensions; do 27227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27228 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 27229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27230 break 2 27231 fi 27232 done 27233 done 27234 IFS=$as_save_IFS 27235 27236 fi 27237 fi 27238 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 27239 if test -n "$ac_ct_OBJDUMP"; then 27240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 27241 $as_echo "$ac_ct_OBJDUMP" >&6; } 27242 else 27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27244 $as_echo "no" >&6; } 27245 fi 27246 27247 27248 test -n "$ac_ct_OBJDUMP" && break 27249 done 27250 27251 if test "x$ac_ct_OBJDUMP" = x; then 27252 OBJDUMP="" 27253 else 27254 case $cross_compiling:$ac_tool_warned in 27255 yes:) 27256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27258 ac_tool_warned=yes ;; 27259 esac 27260 OBJDUMP=$ac_ct_OBJDUMP 27261 fi 27262 fi 27263 27264 if test "x$OBJDUMP" != x; then 27265 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing. 27266 27267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27268 27269 # First separate the path from the arguments. This will split at the first 27270 # space. 27271 complete="$OBJDUMP" 27272 path="${complete%% *}" 27273 tmp="$complete EOL" 27274 arguments="${tmp#* }" 27275 27276 # Input might be given as Windows format, start by converting to 27277 # unix format. 27278 new_path=`$CYGPATH -u "$path"` 27279 27280 # Now try to locate executable using which 27281 new_path=`$WHICH "$new_path" 2> /dev/null` 27282 # bat and cmd files are not always considered executable in cygwin causing which 27283 # to not find them 27284 if test "x$new_path" = x \ 27285 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27286 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27287 new_path=`$CYGPATH -u "$path"` 27288 fi 27289 if test "x$new_path" = x; then 27290 # Oops. Which didn't find the executable. 27291 # The splitting of arguments from the executable at a space might have been incorrect, 27292 # since paths with space are more likely in Windows. Give it another try with the whole 27293 # argument. 27294 path="$complete" 27295 arguments="EOL" 27296 new_path=`$CYGPATH -u "$path"` 27297 new_path=`$WHICH "$new_path" 2> /dev/null` 27298 # bat and cmd files are not always considered executable in cygwin causing which 27299 # to not find them 27300 if test "x$new_path" = x \ 27301 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27302 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27303 new_path=`$CYGPATH -u "$path"` 27304 fi 27305 if test "x$new_path" = x; then 27306 # It's still not found. Now this is an unrecoverable error. 27307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 27308 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 27309 has_space=`$ECHO "$complete" | $GREP " "` 27310 if test "x$has_space" != x; then 27311 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27312 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27313 fi 27314 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 27315 fi 27316 fi 27317 27318 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27319 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27320 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27321 # "foo.exe" is OK but "foo" is an error. 27322 # 27323 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27324 # It is also a way to make sure we got the proper file name for the real test later on. 27325 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27326 if test "x$test_shortpath" = x; then 27327 # Short path failed, file does not exist as specified. 27328 # Try adding .exe or .cmd 27329 if test -f "${new_path}.exe"; then 27330 input_to_shortpath="${new_path}.exe" 27331 elif test -f "${new_path}.cmd"; then 27332 input_to_shortpath="${new_path}.cmd" 27333 else 27334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 27335 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 27336 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27337 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27338 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 27339 fi 27340 else 27341 input_to_shortpath="$new_path" 27342 fi 27343 27344 # Call helper function which possibly converts this using DOS-style short mode. 27345 # If so, the updated path is stored in $new_path. 27346 new_path="$input_to_shortpath" 27347 27348 input_path="$input_to_shortpath" 27349 # Check if we need to convert this using DOS-style short mode. If the path 27350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27351 # take no chances and rewrite it. 27352 # Note: m4 eats our [], so we need to use [ and ] instead. 27353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27354 if test "x$has_forbidden_chars" != x; then 27355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27356 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27357 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27358 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27359 # Going to short mode and back again did indeed matter. Since short mode is 27360 # case insensitive, let's make it lowercase to improve readability. 27361 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27362 # Now convert it back to Unix-stile (cygpath) 27363 input_path=`$CYGPATH -u "$shortmode_path"` 27364 new_path="$input_path" 27365 fi 27366 fi 27367 27368 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27369 if test "x$test_cygdrive_prefix" = x; then 27370 # As a simple fix, exclude /usr/bin since it's not a real path. 27371 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27372 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27373 # a path prefixed by /cygdrive for fixpath to work. 27374 new_path="$CYGWIN_ROOT_PATH$input_path" 27375 fi 27376 fi 27377 27378 # remove trailing .exe if any 27379 new_path="${new_path/%.exe/}" 27380 27381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27382 27383 # First separate the path from the arguments. This will split at the first 27384 # space. 27385 complete="$OBJDUMP" 27386 path="${complete%% *}" 27387 tmp="$complete EOL" 27388 arguments="${tmp#* }" 27389 27390 # Input might be given as Windows format, start by converting to 27391 # unix format. 27392 new_path="$path" 27393 27394 windows_path="$new_path" 27395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27396 unix_path=`$CYGPATH -u "$windows_path"` 27397 new_path="$unix_path" 27398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27400 new_path="$unix_path" 27401 fi 27402 27403 27404 # Now try to locate executable using which 27405 new_path=`$WHICH "$new_path" 2> /dev/null` 27406 27407 if test "x$new_path" = x; then 27408 # Oops. Which didn't find the executable. 27409 # The splitting of arguments from the executable at a space might have been incorrect, 27410 # since paths with space are more likely in Windows. Give it another try with the whole 27411 # argument. 27412 path="$complete" 27413 arguments="EOL" 27414 new_path="$path" 27415 27416 windows_path="$new_path" 27417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27418 unix_path=`$CYGPATH -u "$windows_path"` 27419 new_path="$unix_path" 27420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27422 new_path="$unix_path" 27423 fi 27424 27425 27426 new_path=`$WHICH "$new_path" 2> /dev/null` 27427 27428 if test "x$new_path" = x; then 27429 # It's still not found. Now this is an unrecoverable error. 27430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 27431 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 27432 has_space=`$ECHO "$complete" | $GREP " "` 27433 if test "x$has_space" != x; then 27434 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27435 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27436 fi 27437 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 27438 fi 27439 fi 27440 27441 # Now new_path has a complete unix path to the binary 27442 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27443 # Keep paths in /bin as-is, but remove trailing .exe if any 27444 new_path="${new_path/%.exe/}" 27445 # Do not save /bin paths to all_fixpath_prefixes! 27446 else 27447 # Not in mixed or Windows style, start by that. 27448 new_path=`cmd //c echo $new_path` 27449 27450 input_path="$new_path" 27451 # Check if we need to convert this using DOS-style short mode. If the path 27452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27453 # take no chances and rewrite it. 27454 # Note: m4 eats our [], so we need to use [ and ] instead. 27455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27456 if test "x$has_forbidden_chars" != x; then 27457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27458 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27459 fi 27460 27461 # Output is in $new_path 27462 27463 windows_path="$new_path" 27464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27465 unix_path=`$CYGPATH -u "$windows_path"` 27466 new_path="$unix_path" 27467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27469 new_path="$unix_path" 27470 fi 27471 27472 # remove trailing .exe if any 27473 new_path="${new_path/%.exe/}" 27474 27475 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27476 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27477 fi 27478 27479 else 27480 # We're on a posix platform. Hooray! :) 27481 # First separate the path from the arguments. This will split at the first 27482 # space. 27483 complete="$OBJDUMP" 27484 path="${complete%% *}" 27485 tmp="$complete EOL" 27486 arguments="${tmp#* }" 27487 27488 # Cannot rely on the command "which" here since it doesn't always work. 27489 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27490 if test -z "$is_absolute_path"; then 27491 # Path to executable is not absolute. Find it. 27492 IFS_save="$IFS" 27493 IFS=: 27494 for p in $PATH; do 27495 if test -f "$p/$path" && test -x "$p/$path"; then 27496 new_path="$p/$path" 27497 break 27498 fi 27499 done 27500 IFS="$IFS_save" 27501 else 27502 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJDUMP (as $path) failed, using $path directly." >&5 27503 $as_echo "$as_me: Resolving OBJDUMP (as $path) failed, using $path directly." >&6;} 27504 new_path="$path" 27505 fi 27506 27507 if test "x$new_path" = x; then 27508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 27509 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 27510 has_space=`$ECHO "$complete" | $GREP " "` 27511 if test "x$has_space" != x; then 27512 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27513 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27514 fi 27515 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 27516 fi 27517 fi 27518 27519 # Now join together the path and the arguments once again 27520 if test "x$arguments" != xEOL; then 27521 new_complete="$new_path ${arguments% *}" 27522 else 27523 new_complete="$new_path" 27524 fi 27525 27526 if test "x$complete" != "x$new_complete"; then 27527 OBJDUMP="$new_complete" 27528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 27529 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 27530 fi 27531 27532 fi 27533 27534 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 27535 # Extract the first word of "lipo", so it can be a program name with args. 27536 set dummy lipo; ac_word=$2 27537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27538 $as_echo_n "checking for $ac_word... " >&6; } 27539 if ${ac_cv_path_LIPO+:} false; then : 27540 $as_echo_n "(cached) " >&6 27541 else 27542 case $LIPO in 27543 [\\/]* | ?:[\\/]*) 27544 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 27545 ;; 27546 *) 27547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27548 for as_dir in $PATH 27549 do 27550 IFS=$as_save_IFS 27551 test -z "$as_dir" && as_dir=. 27552 for ac_exec_ext in '' $ac_executable_extensions; do 27553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27554 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 27555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27556 break 2 27557 fi 27558 done 27559 done 27560 IFS=$as_save_IFS 27561 27562 ;; 27563 esac 27564 fi 27565 LIPO=$ac_cv_path_LIPO 27566 if test -n "$LIPO"; then 27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 27568 $as_echo "$LIPO" >&6; } 27569 else 27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27571 $as_echo "no" >&6; } 27572 fi 27573 27574 27575 27576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27577 27578 # First separate the path from the arguments. This will split at the first 27579 # space. 27580 complete="$LIPO" 27581 path="${complete%% *}" 27582 tmp="$complete EOL" 27583 arguments="${tmp#* }" 27584 27585 # Input might be given as Windows format, start by converting to 27586 # unix format. 27587 new_path=`$CYGPATH -u "$path"` 27588 27589 # Now try to locate executable using which 27590 new_path=`$WHICH "$new_path" 2> /dev/null` 27591 # bat and cmd files are not always considered executable in cygwin causing which 27592 # to not find them 27593 if test "x$new_path" = x \ 27594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27596 new_path=`$CYGPATH -u "$path"` 27597 fi 27598 if test "x$new_path" = x; then 27599 # Oops. Which didn't find the executable. 27600 # The splitting of arguments from the executable at a space might have been incorrect, 27601 # since paths with space are more likely in Windows. Give it another try with the whole 27602 # argument. 27603 path="$complete" 27604 arguments="EOL" 27605 new_path=`$CYGPATH -u "$path"` 27606 new_path=`$WHICH "$new_path" 2> /dev/null` 27607 # bat and cmd files are not always considered executable in cygwin causing which 27608 # to not find them 27609 if test "x$new_path" = x \ 27610 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27611 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27612 new_path=`$CYGPATH -u "$path"` 27613 fi 27614 if test "x$new_path" = x; then 27615 # It's still not found. Now this is an unrecoverable error. 27616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 27617 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 27618 has_space=`$ECHO "$complete" | $GREP " "` 27619 if test "x$has_space" != x; then 27620 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27621 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27622 fi 27623 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 27624 fi 27625 fi 27626 27627 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27628 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27629 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27630 # "foo.exe" is OK but "foo" is an error. 27631 # 27632 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27633 # It is also a way to make sure we got the proper file name for the real test later on. 27634 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27635 if test "x$test_shortpath" = x; then 27636 # Short path failed, file does not exist as specified. 27637 # Try adding .exe or .cmd 27638 if test -f "${new_path}.exe"; then 27639 input_to_shortpath="${new_path}.exe" 27640 elif test -f "${new_path}.cmd"; then 27641 input_to_shortpath="${new_path}.cmd" 27642 else 27643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 27644 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 27645 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27646 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27647 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 27648 fi 27649 else 27650 input_to_shortpath="$new_path" 27651 fi 27652 27653 # Call helper function which possibly converts this using DOS-style short mode. 27654 # If so, the updated path is stored in $new_path. 27655 new_path="$input_to_shortpath" 27656 27657 input_path="$input_to_shortpath" 27658 # Check if we need to convert this using DOS-style short mode. If the path 27659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27660 # take no chances and rewrite it. 27661 # Note: m4 eats our [], so we need to use [ and ] instead. 27662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27663 if test "x$has_forbidden_chars" != x; then 27664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27665 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27666 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27667 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27668 # Going to short mode and back again did indeed matter. Since short mode is 27669 # case insensitive, let's make it lowercase to improve readability. 27670 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27671 # Now convert it back to Unix-stile (cygpath) 27672 input_path=`$CYGPATH -u "$shortmode_path"` 27673 new_path="$input_path" 27674 fi 27675 fi 27676 27677 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27678 if test "x$test_cygdrive_prefix" = x; then 27679 # As a simple fix, exclude /usr/bin since it's not a real path. 27680 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27681 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27682 # a path prefixed by /cygdrive for fixpath to work. 27683 new_path="$CYGWIN_ROOT_PATH$input_path" 27684 fi 27685 fi 27686 27687 # remove trailing .exe if any 27688 new_path="${new_path/%.exe/}" 27689 27690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27691 27692 # First separate the path from the arguments. This will split at the first 27693 # space. 27694 complete="$LIPO" 27695 path="${complete%% *}" 27696 tmp="$complete EOL" 27697 arguments="${tmp#* }" 27698 27699 # Input might be given as Windows format, start by converting to 27700 # unix format. 27701 new_path="$path" 27702 27703 windows_path="$new_path" 27704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27705 unix_path=`$CYGPATH -u "$windows_path"` 27706 new_path="$unix_path" 27707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27709 new_path="$unix_path" 27710 fi 27711 27712 27713 # Now try to locate executable using which 27714 new_path=`$WHICH "$new_path" 2> /dev/null` 27715 27716 if test "x$new_path" = x; then 27717 # Oops. Which didn't find the executable. 27718 # The splitting of arguments from the executable at a space might have been incorrect, 27719 # since paths with space are more likely in Windows. Give it another try with the whole 27720 # argument. 27721 path="$complete" 27722 arguments="EOL" 27723 new_path="$path" 27724 27725 windows_path="$new_path" 27726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27727 unix_path=`$CYGPATH -u "$windows_path"` 27728 new_path="$unix_path" 27729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27731 new_path="$unix_path" 27732 fi 27733 27734 27735 new_path=`$WHICH "$new_path" 2> /dev/null` 27736 27737 if test "x$new_path" = x; then 27738 # It's still not found. Now this is an unrecoverable error. 27739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 27740 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 27741 has_space=`$ECHO "$complete" | $GREP " "` 27742 if test "x$has_space" != x; then 27743 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27744 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27745 fi 27746 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 27747 fi 27748 fi 27749 27750 # Now new_path has a complete unix path to the binary 27751 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27752 # Keep paths in /bin as-is, but remove trailing .exe if any 27753 new_path="${new_path/%.exe/}" 27754 # Do not save /bin paths to all_fixpath_prefixes! 27755 else 27756 # Not in mixed or Windows style, start by that. 27757 new_path=`cmd //c echo $new_path` 27758 27759 input_path="$new_path" 27760 # Check if we need to convert this using DOS-style short mode. If the path 27761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27762 # take no chances and rewrite it. 27763 # Note: m4 eats our [], so we need to use [ and ] instead. 27764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27765 if test "x$has_forbidden_chars" != x; then 27766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27767 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27768 fi 27769 27770 # Output is in $new_path 27771 27772 windows_path="$new_path" 27773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27774 unix_path=`$CYGPATH -u "$windows_path"` 27775 new_path="$unix_path" 27776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27778 new_path="$unix_path" 27779 fi 27780 27781 # remove trailing .exe if any 27782 new_path="${new_path/%.exe/}" 27783 27784 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27785 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27786 fi 27787 27788 else 27789 # We're on a posix platform. Hooray! :) 27790 # First separate the path from the arguments. This will split at the first 27791 # space. 27792 complete="$LIPO" 27793 path="${complete%% *}" 27794 tmp="$complete EOL" 27795 arguments="${tmp#* }" 27796 27797 # Cannot rely on the command "which" here since it doesn't always work. 27798 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27799 if test -z "$is_absolute_path"; then 27800 # Path to executable is not absolute. Find it. 27801 IFS_save="$IFS" 27802 IFS=: 27803 for p in $PATH; do 27804 if test -f "$p/$path" && test -x "$p/$path"; then 27805 new_path="$p/$path" 27806 break 27807 fi 27808 done 27809 IFS="$IFS_save" 27810 else 27811 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving LIPO (as $path) failed, using $path directly." >&5 27812 $as_echo "$as_me: Resolving LIPO (as $path) failed, using $path directly." >&6;} 27813 new_path="$path" 27814 fi 27815 27816 if test "x$new_path" = x; then 27817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 27818 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 27819 has_space=`$ECHO "$complete" | $GREP " "` 27820 if test "x$has_space" != x; then 27821 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27822 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27823 fi 27824 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 27825 fi 27826 fi 27827 27828 # Now join together the path and the arguments once again 27829 if test "x$arguments" != xEOL; then 27830 new_complete="$new_path ${arguments% *}" 27831 else 27832 new_complete="$new_path" 27833 fi 27834 27835 if test "x$complete" != "x$new_complete"; then 27836 LIPO="$new_complete" 27837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 27838 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 27839 fi 27840 27841 fi 27842 27843 # Restore old path without tools dir 27844 PATH="$OLD_PATH" 27845 27846 27847 # FIXME: Currently we must test this after paths but before flags. Fix! 27848 27849 # And we can test some aspects on the target using configure macros. 27850 27851 27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 27853 $as_echo_n "checking for ANSI C header files... " >&6; } 27854 if ${ac_cv_header_stdc+:} false; then : 27855 $as_echo_n "(cached) " >&6 27856 else 27857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27858 /* end confdefs.h. */ 27859 #include <stdlib.h> 27860 #include <stdarg.h> 27861 #include <string.h> 27862 #include <float.h> 27863 27864 int 27865 main () 27866 { 27867 27868 ; 27869 return 0; 27870 } 27871 _ACEOF 27872 if ac_fn_cxx_try_compile "$LINENO"; then : 27873 ac_cv_header_stdc=yes 27874 else 27875 ac_cv_header_stdc=no 27876 fi 27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27878 27879 if test $ac_cv_header_stdc = yes; then 27880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 27881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27882 /* end confdefs.h. */ 27883 #include <string.h> 27884 27885 _ACEOF 27886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27887 $EGREP "memchr" >/dev/null 2>&1; then : 27888 27889 else 27890 ac_cv_header_stdc=no 27891 fi 27892 rm -f conftest* 27893 27894 fi 27895 27896 if test $ac_cv_header_stdc = yes; then 27897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 27898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27899 /* end confdefs.h. */ 27900 #include <stdlib.h> 27901 27902 _ACEOF 27903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27904 $EGREP "free" >/dev/null 2>&1; then : 27905 27906 else 27907 ac_cv_header_stdc=no 27908 fi 27909 rm -f conftest* 27910 27911 fi 27912 27913 if test $ac_cv_header_stdc = yes; then 27914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 27915 if test "$cross_compiling" = yes; then : 27916 : 27917 else 27918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27919 /* end confdefs.h. */ 27920 #include <ctype.h> 27921 #include <stdlib.h> 27922 #if ((' ' & 0x0FF) == 0x020) 27923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 27924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 27925 #else 27926 # define ISLOWER(c) \ 27927 (('a' <= (c) && (c) <= 'i') \ 27928 || ('j' <= (c) && (c) <= 'r') \ 27929 || ('s' <= (c) && (c) <= 'z')) 27930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 27931 #endif 27932 27933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 27934 int 27935 main () 27936 { 27937 int i; 27938 for (i = 0; i < 256; i++) 27939 if (XOR (islower (i), ISLOWER (i)) 27940 || toupper (i) != TOUPPER (i)) 27941 return 2; 27942 return 0; 27943 } 27944 _ACEOF 27945 if ac_fn_cxx_try_run "$LINENO"; then : 27946 27947 else 27948 ac_cv_header_stdc=no 27949 fi 27950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27951 conftest.$ac_objext conftest.beam conftest.$ac_ext 27952 fi 27953 27954 fi 27955 fi 27956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 27957 $as_echo "$ac_cv_header_stdc" >&6; } 27958 if test $ac_cv_header_stdc = yes; then 27959 27960 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 27961 27962 fi 27963 27964 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 27965 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 27966 inttypes.h stdint.h unistd.h 27967 do : 27968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27969 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 27970 " 27971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27972 cat >>confdefs.h <<_ACEOF 27973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27974 _ACEOF 27975 27976 fi 27977 27978 done 27979 27980 27981 27982 ############################################################################### 27983 # 27984 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 27985 # (The JVM can use 32 or 64 bit Java pointers but that decision 27986 # is made at runtime.) 27987 # 27988 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 27989 # Always specify -m flags on Solaris 27990 27991 # keep track of c/cxx flags that we added outselves... 27992 # to prevent emitting warning... 27993 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 27994 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 27995 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 27996 27997 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 27998 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 27999 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 28000 28001 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 28002 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 28003 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 28004 28005 elif test "x$COMPILE_TYPE" = xreduced; then 28006 if test "x$OPENJDK_TARGET_OS" != xwindows; then 28007 # Specify -m if running reduced on other Posix platforms 28008 28009 # keep track of c/cxx flags that we added outselves... 28010 # to prevent emitting warning... 28011 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28012 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28013 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28014 28015 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 28016 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 28017 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 28018 28019 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 28020 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 28021 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 28022 28023 fi 28024 fi 28025 28026 # Make compilation sanity check 28027 for ac_header in stdio.h 28028 do : 28029 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 28030 if test "x$ac_cv_header_stdio_h" = xyes; then : 28031 cat >>confdefs.h <<_ACEOF 28032 #define HAVE_STDIO_H 1 28033 _ACEOF 28034 28035 else 28036 28037 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 28038 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 28039 if test "x$COMPILE_TYPE" = xreduced; then 28040 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 28041 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 28042 elif test "x$COMPILE_TYPE" = xcross; then 28043 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 28044 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 28045 fi 28046 as_fn_error $? "Cannot continue." "$LINENO" 5 28047 28048 fi 28049 28050 done 28051 28052 28053 # The cast to long int works around a bug in the HP C Compiler 28054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28056 # This bug is HP SR number 8606223364. 28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 28058 $as_echo_n "checking size of int *... " >&6; } 28059 if ${ac_cv_sizeof_int_p+:} false; then : 28060 $as_echo_n "(cached) " >&6 28061 else 28062 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 28063 28064 else 28065 if test "$ac_cv_type_int_p" = yes; then 28066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28068 as_fn_error 77 "cannot compute sizeof (int *) 28069 See \`config.log' for more details" "$LINENO" 5; } 28070 else 28071 ac_cv_sizeof_int_p=0 28072 fi 28073 fi 28074 28075 fi 28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 28077 $as_echo "$ac_cv_sizeof_int_p" >&6; } 28078 28079 28080 28081 cat >>confdefs.h <<_ACEOF 28082 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 28083 _ACEOF 28084 28085 28086 28087 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then 28088 # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html 28089 SIZEOF_INT_P="$ac_cv_sizeof_int_p" 28090 fi 28091 28092 if test "x$SIZEOF_INT_P" = x; then 28093 # The test failed, lets stick to the assumed value. 28094 { $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 28095 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 28096 else 28097 TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P` 28098 28099 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 28100 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 28101 fi 28102 fi 28103 28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 28105 $as_echo_n "checking for target address size... " >&6; } 28106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 28107 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 28108 28109 28110 ############################################################################### 28111 # 28112 # Is the target little of big endian? 28113 # 28114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 28115 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 28116 if ${ac_cv_c_bigendian+:} false; then : 28117 $as_echo_n "(cached) " >&6 28118 else 28119 ac_cv_c_bigendian=unknown 28120 # See if we're dealing with a universal compiler. 28121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28122 /* end confdefs.h. */ 28123 #ifndef __APPLE_CC__ 28124 not a universal capable compiler 28125 #endif 28126 typedef int dummy; 28127 28128 _ACEOF 28129 if ac_fn_cxx_try_compile "$LINENO"; then : 28130 28131 # Check for potential -arch flags. It is not universal unless 28132 # there are at least two -arch flags with different values. 28133 ac_arch= 28134 ac_prev= 28135 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 28136 if test -n "$ac_prev"; then 28137 case $ac_word in 28138 i?86 | x86_64 | ppc | ppc64) 28139 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 28140 ac_arch=$ac_word 28141 else 28142 ac_cv_c_bigendian=universal 28143 break 28144 fi 28145 ;; 28146 esac 28147 ac_prev= 28148 elif test "x$ac_word" = "x-arch"; then 28149 ac_prev=arch 28150 fi 28151 done 28152 fi 28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28154 if test $ac_cv_c_bigendian = unknown; then 28155 # See if sys/param.h defines the BYTE_ORDER macro. 28156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28157 /* end confdefs.h. */ 28158 #include <sys/types.h> 28159 #include <sys/param.h> 28160 28161 int 28162 main () 28163 { 28164 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 28165 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 28166 && LITTLE_ENDIAN) 28167 bogus endian macros 28168 #endif 28169 28170 ; 28171 return 0; 28172 } 28173 _ACEOF 28174 if ac_fn_cxx_try_compile "$LINENO"; then : 28175 # It does; now see whether it defined to BIG_ENDIAN or not. 28176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28177 /* end confdefs.h. */ 28178 #include <sys/types.h> 28179 #include <sys/param.h> 28180 28181 int 28182 main () 28183 { 28184 #if BYTE_ORDER != BIG_ENDIAN 28185 not big endian 28186 #endif 28187 28188 ; 28189 return 0; 28190 } 28191 _ACEOF 28192 if ac_fn_cxx_try_compile "$LINENO"; then : 28193 ac_cv_c_bigendian=yes 28194 else 28195 ac_cv_c_bigendian=no 28196 fi 28197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28198 fi 28199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28200 fi 28201 if test $ac_cv_c_bigendian = unknown; then 28202 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 28203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28204 /* end confdefs.h. */ 28205 #include <limits.h> 28206 28207 int 28208 main () 28209 { 28210 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 28211 bogus endian macros 28212 #endif 28213 28214 ; 28215 return 0; 28216 } 28217 _ACEOF 28218 if ac_fn_cxx_try_compile "$LINENO"; then : 28219 # It does; now see whether it defined to _BIG_ENDIAN or not. 28220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28221 /* end confdefs.h. */ 28222 #include <limits.h> 28223 28224 int 28225 main () 28226 { 28227 #ifndef _BIG_ENDIAN 28228 not big endian 28229 #endif 28230 28231 ; 28232 return 0; 28233 } 28234 _ACEOF 28235 if ac_fn_cxx_try_compile "$LINENO"; then : 28236 ac_cv_c_bigendian=yes 28237 else 28238 ac_cv_c_bigendian=no 28239 fi 28240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28241 fi 28242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28243 fi 28244 if test $ac_cv_c_bigendian = unknown; then 28245 # Compile a test program. 28246 if test "$cross_compiling" = yes; then : 28247 # Try to guess by grepping values from an object file. 28248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28249 /* end confdefs.h. */ 28250 short int ascii_mm[] = 28251 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 28252 short int ascii_ii[] = 28253 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 28254 int use_ascii (int i) { 28255 return ascii_mm[i] + ascii_ii[i]; 28256 } 28257 short int ebcdic_ii[] = 28258 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 28259 short int ebcdic_mm[] = 28260 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 28261 int use_ebcdic (int i) { 28262 return ebcdic_mm[i] + ebcdic_ii[i]; 28263 } 28264 extern int foo; 28265 28266 int 28267 main () 28268 { 28269 return use_ascii (foo) == use_ebcdic (foo); 28270 ; 28271 return 0; 28272 } 28273 _ACEOF 28274 if ac_fn_cxx_try_compile "$LINENO"; then : 28275 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 28276 ac_cv_c_bigendian=yes 28277 fi 28278 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 28279 if test "$ac_cv_c_bigendian" = unknown; then 28280 ac_cv_c_bigendian=no 28281 else 28282 # finding both strings is unlikely to happen, but who knows? 28283 ac_cv_c_bigendian=unknown 28284 fi 28285 fi 28286 fi 28287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28288 else 28289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28290 /* end confdefs.h. */ 28291 $ac_includes_default 28292 int 28293 main () 28294 { 28295 28296 /* Are we little or big endian? From Harbison&Steele. */ 28297 union 28298 { 28299 long int l; 28300 char c[sizeof (long int)]; 28301 } u; 28302 u.l = 1; 28303 return u.c[sizeof (long int) - 1] == 1; 28304 28305 ; 28306 return 0; 28307 } 28308 _ACEOF 28309 if ac_fn_cxx_try_run "$LINENO"; then : 28310 ac_cv_c_bigendian=no 28311 else 28312 ac_cv_c_bigendian=yes 28313 fi 28314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28315 conftest.$ac_objext conftest.beam conftest.$ac_ext 28316 fi 28317 28318 fi 28319 fi 28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 28321 $as_echo "$ac_cv_c_bigendian" >&6; } 28322 case $ac_cv_c_bigendian in #( 28323 yes) 28324 ENDIAN="big";; #( 28325 no) 28326 ENDIAN="little" ;; #( 28327 universal) 28328 ENDIAN="universal_endianness" 28329 ;; #( 28330 *) 28331 ENDIAN="unknown" ;; 28332 esac 28333 28334 28335 if test "x$ENDIAN" = xuniversal_endianness; then 28336 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 28337 fi 28338 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 28339 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 28340 fi 28341 28342 28343 # Configure flags for the tools 28344 28345 28346 ############################################################################### 28347 # 28348 # How to compile shared libraries. 28349 # 28350 28351 if test "x$GCC" = xyes; then 28352 COMPILER_NAME=gcc 28353 PICFLAG="-fPIC" 28354 LIBRARY_PREFIX=lib 28355 SHARED_LIBRARY='lib$1.so' 28356 STATIC_LIBRARY='lib$1.a' 28357 SHARED_LIBRARY_FLAGS="-shared" 28358 SHARED_LIBRARY_SUFFIX='.so' 28359 STATIC_LIBRARY_SUFFIX='.a' 28360 OBJ_SUFFIX='.o' 28361 EXE_SUFFIX='' 28362 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 28363 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 28364 C_FLAG_REORDER='' 28365 CXX_FLAG_REORDER='' 28366 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 28367 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 28368 LD="$CC" 28369 LDEXE="$CC" 28370 LDCXX="$CXX" 28371 LDEXECXX="$CXX" 28372 POST_STRIP_CMD="$STRIP -g" 28373 28374 # Linking is different on MacOSX 28375 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 28376 # Might change in the future to clang. 28377 COMPILER_NAME=gcc 28378 SHARED_LIBRARY='lib$1.dylib' 28379 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 28380 SHARED_LIBRARY_SUFFIX='.dylib' 28381 EXE_SUFFIX='' 28382 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 28383 SET_SHARED_LIBRARY_MAPFILE='' 28384 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 28385 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN" 28386 POST_STRIP_CMD="$STRIP -S" 28387 fi 28388 else 28389 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 28390 # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler 28391 COMPILER_NAME=ossc 28392 PICFLAG="-KPIC" 28393 LIBRARY_PREFIX=lib 28394 SHARED_LIBRARY='lib$1.so' 28395 STATIC_LIBRARY='lib$1.a' 28396 SHARED_LIBRARY_FLAGS="-G" 28397 SHARED_LIBRARY_SUFFIX='.so' 28398 STATIC_LIBRARY_SUFFIX='.a' 28399 OBJ_SUFFIX='.o' 28400 EXE_SUFFIX='' 28401 SET_SHARED_LIBRARY_NAME='' 28402 SET_SHARED_LIBRARY_MAPFILE='-M$1' 28403 C_FLAG_REORDER='-xF' 28404 CXX_FLAG_REORDER='-xF' 28405 SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1' 28406 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN" 28407 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 28408 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 28409 CFLAGS_JDKLIB_EXTRA='-xstrconst' 28410 POST_STRIP_CMD="$STRIP -x" 28411 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 28412 fi 28413 if test "x$OPENJDK_TARGET_OS" = xwindows; then 28414 # If it is not gcc, then assume it is the MS Visual Studio compiler 28415 COMPILER_NAME=cl 28416 PICFLAG="" 28417 LIBRARY_PREFIX= 28418 SHARED_LIBRARY='$1.dll' 28419 STATIC_LIBRARY='$1.lib' 28420 SHARED_LIBRARY_FLAGS="-LD" 28421 SHARED_LIBRARY_SUFFIX='.dll' 28422 STATIC_LIBRARY_SUFFIX='.lib' 28423 OBJ_SUFFIX='.obj' 28424 EXE_SUFFIX='.exe' 28425 SET_SHARED_LIBRARY_NAME='' 28426 SET_SHARED_LIBRARY_MAPFILE='' 28427 SET_SHARED_LIBRARY_ORIGIN='' 28428 SET_EXECUTABLE_ORIGIN='' 28429 fi 28430 fi 28431 28432 28433 28434 28435 28436 28437 28438 28439 28440 28441 28442 28443 28444 28445 28446 28447 28448 28449 # The (cross) compiler is now configured, we can now test capabilities 28450 # of the target platform. 28451 28452 28453 28454 ############################################################################### 28455 # 28456 # Setup the opt flags for different compilers 28457 # and different operating systems. 28458 # 28459 28460 # 28461 # NOTE: check for -mstackrealign needs to be below potential addition of -m32 28462 # 28463 if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" = xmacosx; then 28464 # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned. 28465 # While waiting for a better solution, the current workaround is to use -mstackrealign. 28466 CFLAGS="$CFLAGS -mstackrealign" 28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5 28468 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; } 28469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28470 /* end confdefs.h. */ 28471 int main() { return 0; } 28472 _ACEOF 28473 if ac_fn_cxx_try_link "$LINENO"; then : 28474 28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28476 $as_echo "yes" >&6; } 28477 28478 else 28479 28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28481 $as_echo "no" >&6; } 28482 as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5 28483 28484 fi 28485 rm -f core conftest.err conftest.$ac_objext \ 28486 conftest$ac_exeext conftest.$ac_ext 28487 fi 28488 28489 C_FLAG_DEPS="-MMD -MF" 28490 CXX_FLAG_DEPS="-MMD -MF" 28491 28492 case $COMPILER_TYPE in 28493 CC ) 28494 D_FLAG="-g" 28495 case $COMPILER_NAME in 28496 gcc ) 28497 case $OPENJDK_TARGET_OS in 28498 macosx ) 28499 # On MacOSX we optimize for size, something 28500 # we should do for all platforms? 28501 C_O_FLAG_HI="-Os" 28502 C_O_FLAG_NORM="-Os" 28503 C_O_FLAG_NONE="" 28504 ;; 28505 *) 28506 C_O_FLAG_HI="-O3" 28507 C_O_FLAG_NORM="-O2" 28508 C_O_FLAG_NONE="-O0" 28509 CFLAGS_DEBUG_SYMBOLS="-g" 28510 CXXFLAGS_DEBUG_SYMBOLS="-g" 28511 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 28512 CFLAGS_DEBUG_SYMBOLS="-g1" 28513 CXXFLAGS_DEBUG_SYMBOLS="-g1" 28514 fi 28515 ;; 28516 esac 28517 CXX_O_FLAG_HI="$C_O_FLAG_HI" 28518 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 28519 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 28520 ;; 28521 ossc ) 28522 # 28523 # Forte has different names for this with their C++ compiler... 28524 # 28525 C_FLAG_DEPS="-xMMD -xMF" 28526 CXX_FLAG_DEPS="-xMMD -xMF" 28527 28528 # Extra options used with HIGHEST 28529 # 28530 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 28531 # done with care, there are some assumptions below that need to 28532 # be understood about the use of pointers, and IEEE behavior. 28533 # 28534 # Use non-standard floating point mode (not IEEE 754) 28535 CC_HIGHEST="$CC_HIGHEST -fns" 28536 # Do some simplification of floating point arithmetic (not IEEE 754) 28537 CC_HIGHEST="$CC_HIGHEST -fsimple" 28538 # Use single precision floating point with 'float' 28539 CC_HIGHEST="$CC_HIGHEST -fsingle" 28540 # Assume memory references via basic pointer types do not alias 28541 # (Source with excessing pointer casting and data access with mixed 28542 # pointer types are not recommended) 28543 CC_HIGHEST="$CC_HIGHEST -xalias_level=basic" 28544 # Use intrinsic or inline versions for math/std functions 28545 # (If you expect perfect errno behavior, do not use this) 28546 CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all" 28547 # Loop data dependency optimizations (need -xO3 or higher) 28548 CC_HIGHEST="$CC_HIGHEST -xdepend" 28549 # Pointer parameters to functions do not overlap 28550 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 28551 # If you pass in multiple pointers to the same data, do not use this) 28552 CC_HIGHEST="$CC_HIGHEST -xrestrict" 28553 # Inline some library routines 28554 # (If you expect perfect errno behavior, do not use this) 28555 CC_HIGHEST="$CC_HIGHEST -xlibmil" 28556 # Use optimized math routines 28557 # (If you expect perfect errno behavior, do not use this) 28558 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 28559 #CC_HIGHEST="$CC_HIGHEST -xlibmopt" 28560 28561 if test "x$OPENJDK_TARGET_CPU" = xsparc; then 28562 CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 28563 CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 28564 fi 28565 28566 case $OPENJDK_TARGET_CPU_ARCH in 28567 x86) 28568 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 28569 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 28570 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 28571 C_O_FLAG_NONE="-xregs=no%frameptr" 28572 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 28573 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 28574 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 28575 CXX_O_FLAG_NONE="-xregs=no%frameptr" 28576 if test "x$OPENJDK_TARGET_CPU" = xx86; then 28577 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 28578 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 28579 fi 28580 ;; 28581 sparc) 28582 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 28583 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 28584 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 28585 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 28586 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 28587 C_O_FLAG_NONE="" 28588 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 28589 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 28590 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 28591 CXX_O_FLAG_NONE="" 28592 ;; 28593 esac 28594 28595 CFLAGS_DEBUG_SYMBOLS="-g -xs" 28596 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 28597 esac 28598 ;; 28599 CL ) 28600 D_FLAG= 28601 C_O_FLAG_HIGHEST="-O2" 28602 C_O_FLAG_HI="-O1" 28603 C_O_FLAG_NORM="-O1" 28604 C_O_FLAG_NONE="-Od" 28605 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 28606 CXX_O_FLAG_HI="$C_O_FLAG_HI" 28607 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 28608 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 28609 ;; 28610 esac 28611 28612 if test -z "$C_O_FLAG_HIGHEST"; then 28613 C_O_FLAG_HIGHEST="$C_O_FLAG_HI" 28614 fi 28615 28616 if test -z "$CXX_O_FLAG_HIGHEST"; then 28617 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI" 28618 fi 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 28634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 28635 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 28636 fi 28637 28638 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 28639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 28640 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 28641 fi 28642 28643 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 28644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 28645 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 28646 fi 28647 28648 28649 # Check whether --with-extra-cflags was given. 28650 if test "${with_extra_cflags+set}" = set; then : 28651 withval=$with_extra_cflags; 28652 fi 28653 28654 28655 28656 # Check whether --with-extra-cxxflags was given. 28657 if test "${with_extra_cxxflags+set}" = set; then : 28658 withval=$with_extra_cxxflags; 28659 fi 28660 28661 28662 28663 # Check whether --with-extra-ldflags was given. 28664 if test "${with_extra_ldflags+set}" = set; then : 28665 withval=$with_extra_ldflags; 28666 fi 28667 28668 28669 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 28670 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 28671 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 28672 28673 # Hotspot needs these set in their legacy form 28674 LEGACY_EXTRA_CFLAGS=$with_extra_cflags 28675 LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags 28676 LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags 28677 28678 28679 28680 28681 28682 ############################################################################### 28683 # 28684 # Now setup the CFLAGS and LDFLAGS for the JDK build. 28685 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 28686 # 28687 case $COMPILER_NAME in 28688 gcc ) 28689 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \ 28690 -pipe \ 28691 -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 28692 case $OPENJDK_TARGET_CPU_ARCH in 28693 arm ) 28694 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 28695 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 28696 ;; 28697 ppc ) 28698 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 28699 ;; 28700 * ) 28701 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 28702 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 28703 ;; 28704 esac 28705 ;; 28706 ossc ) 28707 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 28708 case $OPENJDK_TARGET_CPU_ARCH in 28709 x86 ) 28710 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 28711 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 28712 ;; 28713 esac 28714 28715 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 28716 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 28717 28718 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 28719 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 28720 ;; 28721 cl ) 28722 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 28723 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 28724 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 28725 -DWIN32 -DIAL" 28726 case $OPENJDK_TARGET_CPU in 28727 x86 ) 28728 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 28729 ;; 28730 x86_64 ) 28731 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 28732 ;; 28733 esac 28734 ;; 28735 esac 28736 28737 ############################################################################### 28738 28739 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 28740 28741 # The package path is used only on macosx? 28742 PACKAGE_PATH=/opt/local 28743 28744 28745 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 28746 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 28747 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 28748 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 28749 # Note: -Dmacro is the same as #define macro 1 28750 # -Dmacro= is the same as #define macro 28751 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 28752 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 28753 else 28754 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 28755 fi 28756 else 28757 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 28758 fi 28759 if test "x$OPENJDK_TARGET_OS" = xlinux; then 28760 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX" 28761 fi 28762 if test "x$OPENJDK_TARGET_OS" = xwindows; then 28763 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS" 28764 fi 28765 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 28766 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS" 28767 fi 28768 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 28769 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE" 28770 # Setting these parameters makes it an error to link to macosx APIs that are 28771 # newer than the given OS version and makes the linked binaries compatible even 28772 # if built on a newer version of the OS. 28773 # The expected format is X.Y.Z 28774 MACOSX_VERSION_MIN=10.7.0 28775 28776 # The macro takes the version with no dots, ex: 1070 28777 # Let the flags variables get resolved in make for easier override on make 28778 # command line. 28779 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 28780 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 28781 fi 28782 if test "x$OPENJDK_TARGET_OS" = xbsd; then 28783 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" 28784 fi 28785 if test "x$DEBUG_LEVEL" = xrelease; then 28786 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 28787 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 28788 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 28789 fi 28790 else 28791 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 28792 fi 28793 28794 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 28795 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'" 28796 28797 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 28798 -I${JDK_OUTPUTDIR}/include \ 28799 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 28800 -I${JDK_TOPDIR}/src/share/javavm/export \ 28801 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/javavm/export \ 28802 -I${JDK_TOPDIR}/src/share/native/common \ 28803 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 28804 28805 # The shared libraries are compiled using the picflag. 28806 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 28807 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 28808 28809 # Executable flags 28810 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 28811 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 28812 28813 # Now this is odd. The JDK native libraries have to link against libjvm.so 28814 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 28815 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 28816 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 28817 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 28818 # libraries will link to whatever is in memory. Yuck. 28819 # 28820 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 28821 if test "x$COMPILER_NAME" = xcl; then 28822 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 28823 if test "x$OPENJDK_TARGET_CPU" = xx86; then 28824 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 28825 fi 28826 # TODO: make -debug optional "--disable-full-debug-symbols" 28827 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 28828 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 28829 LDFLAGS_JDKLIB_SUFFIX="" 28830 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 28831 LDFLAGS_STACK_SIZE=1048576 28832 else 28833 LDFLAGS_STACK_SIZE=327680 28834 fi 28835 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 28836 else 28837 if test "x$COMPILER_NAME" = xgcc; then 28838 # If this is a --hash-style=gnu system, use --hash-style=both, why? 28839 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 28840 if test -n "$HAS_GNU_HASH"; then 28841 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 28842 fi 28843 if test "x$OPENJDK_TARGET_OS" = xlinux; then 28844 # And since we now know that the linker is gnu, then add -z defs, to forbid 28845 # undefined symbols in object files. 28846 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 28847 if test "x$DEBUG_LEVEL" = "xrelease"; then 28848 # When building release libraries, tell the linker optimize them. 28849 # Should this be supplied to the OSS linker as well? 28850 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 28851 fi 28852 fi 28853 fi 28854 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 28855 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 28856 28857 # On some platforms (mac) the linker warns about non existing -L dirs. 28858 # Add server first if available. Linking aginst client does not always produce the same results. 28859 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 28860 # Default to server for other variants. 28861 if test "x$JVM_VARIANT_SERVER" = xtrue; then 28862 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 28863 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 28864 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 28865 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 28866 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 28867 else 28868 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 28869 fi 28870 28871 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 28872 if test "x$COMPILER_NAME" = xossc; then 28873 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 28874 fi 28875 28876 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 28877 if test "x$OPENJDK_TARGET_OS" = xlinux; then 28878 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 28879 fi 28880 fi 28881 28882 # Adjust flags according to debug level. 28883 case $DEBUG_LEVEL in 28884 fastdebug ) 28885 CFLAGS="$CFLAGS $D_FLAG" 28886 JAVAC_FLAGS="$JAVAC_FLAGS -g" 28887 ;; 28888 slowdebug ) 28889 CFLAGS="$CFLAGS $D_FLAG" 28890 C_O_FLAG_HI="$C_O_FLAG_NONE" 28891 C_O_FLAG_NORM="$C_O_FLAG_NONE" 28892 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 28893 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 28894 JAVAC_FLAGS="$JAVAC_FLAGS -g" 28895 ;; 28896 esac 28897 28898 28899 28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 # Setup debug symbols (need objcopy from the toolchain for that) 28913 28914 # 28915 # ENABLE_DEBUG_SYMBOLS 28916 # This must be done after the toolchain is setup, since we're looking at objcopy. 28917 # 28918 # Check whether --enable-debug-symbols was given. 28919 if test "${enable_debug_symbols+set}" = set; then : 28920 enableval=$enable_debug_symbols; 28921 fi 28922 28923 28924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 28925 $as_echo_n "checking if we should generate debug symbols... " >&6; } 28926 28927 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 28928 # explicit enabling of enable-debug-symbols and can't find objcopy 28929 # this is an error 28930 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 28931 fi 28932 28933 if test "x$enable_debug_symbols" = "xyes"; then 28934 ENABLE_DEBUG_SYMBOLS=true 28935 elif test "x$enable_debug_symbols" = "xno"; then 28936 ENABLE_DEBUG_SYMBOLS=false 28937 else 28938 # default on macosx is false 28939 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 28940 ENABLE_DEBUG_SYMBOLS=false 28941 # Default is on if objcopy is found, otherwise off 28942 elif test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then 28943 ENABLE_DEBUG_SYMBOLS=true 28944 else 28945 ENABLE_DEBUG_SYMBOLS=false 28946 fi 28947 fi 28948 28949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 28950 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 28951 28952 # 28953 # ZIP_DEBUGINFO_FILES 28954 # 28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 28956 $as_echo_n "checking if we should zip debug-info files... " >&6; } 28957 # Check whether --enable-zip-debug-info was given. 28958 if test "${enable_zip_debug_info+set}" = set; then : 28959 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 28960 else 28961 enable_zip_debug_info="yes" 28962 fi 28963 28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 28965 $as_echo "${enable_zip_debug_info}" >&6; } 28966 28967 if test "x${enable_zip_debug_info}" = "xno"; then 28968 ZIP_DEBUGINFO_FILES=false 28969 else 28970 ZIP_DEBUGINFO_FILES=true 28971 fi 28972 28973 28974 28975 28976 28977 28978 28979 ############################################################################### 28980 # 28981 # Check dependencies for external and internal libraries. 28982 # 28983 ############################################################################### 28984 28985 28986 28987 ############################################################################### 28988 # 28989 # OS specific settings that we never will need to probe. 28990 # 28991 if test "x$OPENJDK_TARGET_OS" = xlinux; then 28992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 28993 $as_echo_n "checking what is not needed on Linux?... " >&6; } 28994 PULSE_NOT_NEEDED=yes 28995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 28996 $as_echo "pulse" >&6; } 28997 fi 28998 28999 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 29001 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 29002 ALSA_NOT_NEEDED=yes 29003 PULSE_NOT_NEEDED=yes 29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 29005 $as_echo "alsa pulse" >&6; } 29006 fi 29007 29008 if test "x$OPENJDK_TARGET_OS" = xwindows; then 29009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 29010 $as_echo_n "checking what is not needed on Windows?... " >&6; } 29011 CUPS_NOT_NEEDED=yes 29012 ALSA_NOT_NEEDED=yes 29013 PULSE_NOT_NEEDED=yes 29014 X11_NOT_NEEDED=yes 29015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 29016 $as_echo "alsa cups pulse x11" >&6; } 29017 fi 29018 29019 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 29021 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 29022 ALSA_NOT_NEEDED=yes 29023 PULSE_NOT_NEEDED=yes 29024 X11_NOT_NEEDED=yes 29025 FREETYPE2_NOT_NEEDED=yes 29026 # If the java runtime framework is disabled, then we need X11. 29027 # This will be adjusted below. 29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 29029 $as_echo "alsa pulse x11" >&6; } 29030 fi 29031 29032 if test "x$OPENJDK_TARGET_OS" = xbsd; then 29033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 29034 $as_echo_n "checking what is not needed on bsd?... " >&6; } 29035 ALSA_NOT_NEEDED=yes 29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 29037 $as_echo "alsa" >&6; } 29038 fi 29039 29040 if test "x$OPENJDK" = "xfalse"; then 29041 FREETYPE2_NOT_NEEDED=yes 29042 fi 29043 29044 if test "x$SUPPORT_HEADFUL" = xno; then 29045 X11_NOT_NEEDED=yes 29046 fi 29047 29048 ############################################################################### 29049 # 29050 # Check for MacOSX support for OpenJDK. If this exists, try to build a JVM 29051 # that uses this API. 29052 # 29053 # Check whether --enable-macosx-runtime-support was given. 29054 if test "${enable_macosx_runtime_support+set}" = set; then : 29055 enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}" 29056 else 29057 MACOSX_RUNTIME_SUPPORT="no" 29058 fi 29059 29060 29061 USE_MACOSX_RUNTIME_SUPPORT=no 29062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit Java runtime support in the OS" >&5 29063 $as_echo_n "checking for explicit Java runtime support in the OS... " >&6; } 29064 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then 29065 if test "x$MACOSX_RUNTIME_SUPPORT" != xno; then 29066 MACOSX_RUNTIME_SUPPORT=yes 29067 USE_MACOSX_RUNTIME_SUPPORT=yes 29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, does not need alsa freetype2 pulse and X11" >&5 29069 $as_echo "yes, does not need alsa freetype2 pulse and X11" >&6; } 29070 else 29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5 29072 $as_echo "yes, but explicitly disabled." >&6; } 29073 fi 29074 else 29075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29076 $as_echo "no" >&6; } 29077 fi 29078 29079 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then 29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5 29081 $as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; } 29082 X11_NOT_NEEDED= 29083 FREETYPE2_NOT_NEEDED= 29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 29085 $as_echo "alsa pulse" >&6; } 29086 fi 29087 29088 29089 29090 29091 ############################################################################### 29092 # 29093 # Check for X Windows 29094 # 29095 29096 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 29097 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 29098 # --x-libraries for the sysroot, if that seems to be correct. 29099 if test "x$SYS_ROOT" != "x/"; then 29100 if test "x$x_includes" = xNONE; then 29101 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then 29102 x_includes="$SYS_ROOT/usr/X11R6/include" 29103 fi 29104 fi 29105 if test "x$x_libraries" = xNONE; then 29106 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then 29107 x_libraries="$SYS_ROOT/usr/X11R6/lib" 29108 fi 29109 fi 29110 fi 29111 29112 # Now let autoconf do it's magic 29113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 29114 $as_echo_n "checking for X... " >&6; } 29115 29116 29117 # Check whether --with-x was given. 29118 if test "${with_x+set}" = set; then : 29119 withval=$with_x; 29120 fi 29121 29122 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 29123 if test "x$with_x" = xno; then 29124 # The user explicitly disabled X. 29125 have_x=disabled 29126 else 29127 case $x_includes,$x_libraries in #( 29128 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 29129 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 29130 $as_echo_n "(cached) " >&6 29131 else 29132 # One or both of the vars are not set, and there is no cached value. 29133 ac_x_includes=no ac_x_libraries=no 29134 rm -f -r conftest.dir 29135 if mkdir conftest.dir; then 29136 cd conftest.dir 29137 cat >Imakefile <<'_ACEOF' 29138 incroot: 29139 @echo incroot='${INCROOT}' 29140 usrlibdir: 29141 @echo usrlibdir='${USRLIBDIR}' 29142 libdir: 29143 @echo libdir='${LIBDIR}' 29144 _ACEOF 29145 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 29146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29147 for ac_var in incroot usrlibdir libdir; do 29148 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 29149 done 29150 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 29151 for ac_extension in a so sl dylib la dll; do 29152 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 29153 test -f "$ac_im_libdir/libX11.$ac_extension"; then 29154 ac_im_usrlibdir=$ac_im_libdir; break 29155 fi 29156 done 29157 # Screen out bogus values from the imake configuration. They are 29158 # bogus both because they are the default anyway, and because 29159 # using them would break gcc on systems where it needs fixed includes. 29160 case $ac_im_incroot in 29161 /usr/include) ac_x_includes= ;; 29162 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 29163 esac 29164 case $ac_im_usrlibdir in 29165 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 29166 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 29167 esac 29168 fi 29169 cd .. 29170 rm -f -r conftest.dir 29171 fi 29172 29173 # Standard set of common directories for X headers. 29174 # Check X11 before X11Rn because it is often a symlink to the current release. 29175 ac_x_header_dirs=' 29176 /usr/X11/include 29177 /usr/X11R7/include 29178 /usr/X11R6/include 29179 /usr/X11R5/include 29180 /usr/X11R4/include 29181 29182 /usr/include/X11 29183 /usr/include/X11R7 29184 /usr/include/X11R6 29185 /usr/include/X11R5 29186 /usr/include/X11R4 29187 29188 /usr/local/X11/include 29189 /usr/local/X11R7/include 29190 /usr/local/X11R6/include 29191 /usr/local/X11R5/include 29192 /usr/local/X11R4/include 29193 29194 /usr/local/include/X11 29195 /usr/local/include/X11R7 29196 /usr/local/include/X11R6 29197 /usr/local/include/X11R5 29198 /usr/local/include/X11R4 29199 29200 /usr/X386/include 29201 /usr/x386/include 29202 /usr/XFree86/include/X11 29203 29204 /usr/include 29205 /usr/local/include 29206 /usr/unsupported/include 29207 /usr/athena/include 29208 /usr/local/x11r5/include 29209 /usr/lpp/Xamples/include 29210 29211 /usr/openwin/include 29212 /usr/openwin/share/include' 29213 29214 if test "$ac_x_includes" = no; then 29215 # Guess where to find include files, by looking for Xlib.h. 29216 # First, try using that file with no special directory specified. 29217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29218 /* end confdefs.h. */ 29219 #include <X11/Xlib.h> 29220 _ACEOF 29221 if ac_fn_cxx_try_cpp "$LINENO"; then : 29222 # We can compile using X headers with no special include directory. 29223 ac_x_includes= 29224 else 29225 for ac_dir in $ac_x_header_dirs; do 29226 if test -r "$ac_dir/X11/Xlib.h"; then 29227 ac_x_includes=$ac_dir 29228 break 29229 fi 29230 done 29231 fi 29232 rm -f conftest.err conftest.i conftest.$ac_ext 29233 fi # $ac_x_includes = no 29234 29235 if test "$ac_x_libraries" = no; then 29236 # Check for the libraries. 29237 # See if we find them without any special options. 29238 # Don't add to $LIBS permanently. 29239 ac_save_LIBS=$LIBS 29240 LIBS="-lX11 $LIBS" 29241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29242 /* end confdefs.h. */ 29243 #include <X11/Xlib.h> 29244 int 29245 main () 29246 { 29247 XrmInitialize () 29248 ; 29249 return 0; 29250 } 29251 _ACEOF 29252 if ac_fn_cxx_try_link "$LINENO"; then : 29253 LIBS=$ac_save_LIBS 29254 # We can link X programs with no special library path. 29255 ac_x_libraries= 29256 else 29257 LIBS=$ac_save_LIBS 29258 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 29259 do 29260 # Don't even attempt the hair of trying to link an X program! 29261 for ac_extension in a so sl dylib la dll; do 29262 if test -r "$ac_dir/libX11.$ac_extension"; then 29263 ac_x_libraries=$ac_dir 29264 break 2 29265 fi 29266 done 29267 done 29268 fi 29269 rm -f core conftest.err conftest.$ac_objext \ 29270 conftest$ac_exeext conftest.$ac_ext 29271 fi # $ac_x_libraries = no 29272 29273 case $ac_x_includes,$ac_x_libraries in #( 29274 no,* | *,no | *\'*) 29275 # Didn't find X, or a directory has "'" in its name. 29276 ac_cv_have_x="have_x=no";; #( 29277 *) 29278 # Record where we found X for the cache. 29279 ac_cv_have_x="have_x=yes\ 29280 ac_x_includes='$ac_x_includes'\ 29281 ac_x_libraries='$ac_x_libraries'" 29282 esac 29283 fi 29284 ;; #( 29285 *) have_x=yes;; 29286 esac 29287 eval "$ac_cv_have_x" 29288 fi # $with_x != no 29289 29290 if test "$have_x" != yes; then 29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 29292 $as_echo "$have_x" >&6; } 29293 no_x=yes 29294 else 29295 # If each of the values was on the command line, it overrides each guess. 29296 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 29297 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 29298 # Update the cache value to reflect the command line values. 29299 ac_cv_have_x="have_x=yes\ 29300 ac_x_includes='$x_includes'\ 29301 ac_x_libraries='$x_libraries'" 29302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 29303 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 29304 fi 29305 29306 if test "$no_x" = yes; then 29307 # Not all programs may use this symbol, but it does not hurt to define it. 29308 29309 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 29310 29311 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 29312 else 29313 if test -n "$x_includes"; then 29314 X_CFLAGS="$X_CFLAGS -I$x_includes" 29315 fi 29316 29317 # It would also be nice to do this for all -L options, not just this one. 29318 if test -n "$x_libraries"; then 29319 X_LIBS="$X_LIBS -L$x_libraries" 29320 # For Solaris; some versions of Sun CC require a space after -R and 29321 # others require no space. Words are not sufficient . . . . 29322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 29323 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 29324 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 29325 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 29326 ac_cxx_werror_flag=yes 29327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29328 /* end confdefs.h. */ 29329 29330 int 29331 main () 29332 { 29333 29334 ; 29335 return 0; 29336 } 29337 _ACEOF 29338 if ac_fn_cxx_try_link "$LINENO"; then : 29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29340 $as_echo "no" >&6; } 29341 X_LIBS="$X_LIBS -R$x_libraries" 29342 else 29343 LIBS="$ac_xsave_LIBS -R $x_libraries" 29344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29345 /* end confdefs.h. */ 29346 29347 int 29348 main () 29349 { 29350 29351 ; 29352 return 0; 29353 } 29354 _ACEOF 29355 if ac_fn_cxx_try_link "$LINENO"; then : 29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29357 $as_echo "yes" >&6; } 29358 X_LIBS="$X_LIBS -R $x_libraries" 29359 else 29360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 29361 $as_echo "neither works" >&6; } 29362 fi 29363 rm -f core conftest.err conftest.$ac_objext \ 29364 conftest$ac_exeext conftest.$ac_ext 29365 fi 29366 rm -f core conftest.err conftest.$ac_objext \ 29367 conftest$ac_exeext conftest.$ac_ext 29368 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 29369 LIBS=$ac_xsave_LIBS 29370 fi 29371 29372 # Check for system-dependent libraries X programs must link with. 29373 # Do this before checking for the system-independent R6 libraries 29374 # (-lICE), since we may need -lsocket or whatever for X linking. 29375 29376 if test "$ISC" = yes; then 29377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 29378 else 29379 # Martyn Johnson says this is needed for Ultrix, if the X 29380 # libraries were built with DECnet support. And Karl Berry says 29381 # the Alpha needs dnet_stub (dnet does not exist). 29382 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 29383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29384 /* end confdefs.h. */ 29385 29386 /* Override any GCC internal prototype to avoid an error. 29387 Use char because int might match the return type of a GCC 29388 builtin and then its argument prototype would still apply. */ 29389 #ifdef __cplusplus 29390 extern "C" 29391 #endif 29392 char XOpenDisplay (); 29393 int 29394 main () 29395 { 29396 return XOpenDisplay (); 29397 ; 29398 return 0; 29399 } 29400 _ACEOF 29401 if ac_fn_cxx_try_link "$LINENO"; then : 29402 29403 else 29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 29405 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 29406 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 29407 $as_echo_n "(cached) " >&6 29408 else 29409 ac_check_lib_save_LIBS=$LIBS 29410 LIBS="-ldnet $LIBS" 29411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29412 /* end confdefs.h. */ 29413 29414 /* Override any GCC internal prototype to avoid an error. 29415 Use char because int might match the return type of a GCC 29416 builtin and then its argument prototype would still apply. */ 29417 #ifdef __cplusplus 29418 extern "C" 29419 #endif 29420 char dnet_ntoa (); 29421 int 29422 main () 29423 { 29424 return dnet_ntoa (); 29425 ; 29426 return 0; 29427 } 29428 _ACEOF 29429 if ac_fn_cxx_try_link "$LINENO"; then : 29430 ac_cv_lib_dnet_dnet_ntoa=yes 29431 else 29432 ac_cv_lib_dnet_dnet_ntoa=no 29433 fi 29434 rm -f core conftest.err conftest.$ac_objext \ 29435 conftest$ac_exeext conftest.$ac_ext 29436 LIBS=$ac_check_lib_save_LIBS 29437 fi 29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 29439 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 29440 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 29441 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 29442 fi 29443 29444 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 29445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 29446 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 29447 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 29448 $as_echo_n "(cached) " >&6 29449 else 29450 ac_check_lib_save_LIBS=$LIBS 29451 LIBS="-ldnet_stub $LIBS" 29452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29453 /* end confdefs.h. */ 29454 29455 /* Override any GCC internal prototype to avoid an error. 29456 Use char because int might match the return type of a GCC 29457 builtin and then its argument prototype would still apply. */ 29458 #ifdef __cplusplus 29459 extern "C" 29460 #endif 29461 char dnet_ntoa (); 29462 int 29463 main () 29464 { 29465 return dnet_ntoa (); 29466 ; 29467 return 0; 29468 } 29469 _ACEOF 29470 if ac_fn_cxx_try_link "$LINENO"; then : 29471 ac_cv_lib_dnet_stub_dnet_ntoa=yes 29472 else 29473 ac_cv_lib_dnet_stub_dnet_ntoa=no 29474 fi 29475 rm -f core conftest.err conftest.$ac_objext \ 29476 conftest$ac_exeext conftest.$ac_ext 29477 LIBS=$ac_check_lib_save_LIBS 29478 fi 29479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 29480 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 29481 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 29482 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 29483 fi 29484 29485 fi 29486 fi 29487 rm -f core conftest.err conftest.$ac_objext \ 29488 conftest$ac_exeext conftest.$ac_ext 29489 LIBS="$ac_xsave_LIBS" 29490 29491 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 29492 # to get the SysV transport functions. 29493 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 29494 # needs -lnsl. 29495 # The nsl library prevents programs from opening the X display 29496 # on Irix 5.2, according to T.E. Dickey. 29497 # The functions gethostbyname, getservbyname, and inet_addr are 29498 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 29499 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 29500 if test "x$ac_cv_func_gethostbyname" = xyes; then : 29501 29502 fi 29503 29504 if test $ac_cv_func_gethostbyname = no; then 29505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 29506 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 29507 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 29508 $as_echo_n "(cached) " >&6 29509 else 29510 ac_check_lib_save_LIBS=$LIBS 29511 LIBS="-lnsl $LIBS" 29512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29513 /* end confdefs.h. */ 29514 29515 /* Override any GCC internal prototype to avoid an error. 29516 Use char because int might match the return type of a GCC 29517 builtin and then its argument prototype would still apply. */ 29518 #ifdef __cplusplus 29519 extern "C" 29520 #endif 29521 char gethostbyname (); 29522 int 29523 main () 29524 { 29525 return gethostbyname (); 29526 ; 29527 return 0; 29528 } 29529 _ACEOF 29530 if ac_fn_cxx_try_link "$LINENO"; then : 29531 ac_cv_lib_nsl_gethostbyname=yes 29532 else 29533 ac_cv_lib_nsl_gethostbyname=no 29534 fi 29535 rm -f core conftest.err conftest.$ac_objext \ 29536 conftest$ac_exeext conftest.$ac_ext 29537 LIBS=$ac_check_lib_save_LIBS 29538 fi 29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 29540 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 29541 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 29542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 29543 fi 29544 29545 if test $ac_cv_lib_nsl_gethostbyname = no; then 29546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 29547 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 29548 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 29549 $as_echo_n "(cached) " >&6 29550 else 29551 ac_check_lib_save_LIBS=$LIBS 29552 LIBS="-lbsd $LIBS" 29553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29554 /* end confdefs.h. */ 29555 29556 /* Override any GCC internal prototype to avoid an error. 29557 Use char because int might match the return type of a GCC 29558 builtin and then its argument prototype would still apply. */ 29559 #ifdef __cplusplus 29560 extern "C" 29561 #endif 29562 char gethostbyname (); 29563 int 29564 main () 29565 { 29566 return gethostbyname (); 29567 ; 29568 return 0; 29569 } 29570 _ACEOF 29571 if ac_fn_cxx_try_link "$LINENO"; then : 29572 ac_cv_lib_bsd_gethostbyname=yes 29573 else 29574 ac_cv_lib_bsd_gethostbyname=no 29575 fi 29576 rm -f core conftest.err conftest.$ac_objext \ 29577 conftest$ac_exeext conftest.$ac_ext 29578 LIBS=$ac_check_lib_save_LIBS 29579 fi 29580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 29581 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 29582 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 29583 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 29584 fi 29585 29586 fi 29587 fi 29588 29589 # lieder@skyler.mavd.honeywell.com says without -lsocket, 29590 # socket/setsockopt and other routines are undefined under SCO ODT 29591 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 29592 # on later versions), says Simon Leinen: it contains gethostby* 29593 # variants that don't use the name server (or something). -lsocket 29594 # must be given before -lnsl if both are needed. We assume that 29595 # if connect needs -lnsl, so does gethostbyname. 29596 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 29597 if test "x$ac_cv_func_connect" = xyes; then : 29598 29599 fi 29600 29601 if test $ac_cv_func_connect = no; then 29602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 29603 $as_echo_n "checking for connect in -lsocket... " >&6; } 29604 if ${ac_cv_lib_socket_connect+:} false; then : 29605 $as_echo_n "(cached) " >&6 29606 else 29607 ac_check_lib_save_LIBS=$LIBS 29608 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 29609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29610 /* end confdefs.h. */ 29611 29612 /* Override any GCC internal prototype to avoid an error. 29613 Use char because int might match the return type of a GCC 29614 builtin and then its argument prototype would still apply. */ 29615 #ifdef __cplusplus 29616 extern "C" 29617 #endif 29618 char connect (); 29619 int 29620 main () 29621 { 29622 return connect (); 29623 ; 29624 return 0; 29625 } 29626 _ACEOF 29627 if ac_fn_cxx_try_link "$LINENO"; then : 29628 ac_cv_lib_socket_connect=yes 29629 else 29630 ac_cv_lib_socket_connect=no 29631 fi 29632 rm -f core conftest.err conftest.$ac_objext \ 29633 conftest$ac_exeext conftest.$ac_ext 29634 LIBS=$ac_check_lib_save_LIBS 29635 fi 29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 29637 $as_echo "$ac_cv_lib_socket_connect" >&6; } 29638 if test "x$ac_cv_lib_socket_connect" = xyes; then : 29639 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 29640 fi 29641 29642 fi 29643 29644 # Guillermo Gomez says -lposix is necessary on A/UX. 29645 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 29646 if test "x$ac_cv_func_remove" = xyes; then : 29647 29648 fi 29649 29650 if test $ac_cv_func_remove = no; then 29651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 29652 $as_echo_n "checking for remove in -lposix... " >&6; } 29653 if ${ac_cv_lib_posix_remove+:} false; then : 29654 $as_echo_n "(cached) " >&6 29655 else 29656 ac_check_lib_save_LIBS=$LIBS 29657 LIBS="-lposix $LIBS" 29658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29659 /* end confdefs.h. */ 29660 29661 /* Override any GCC internal prototype to avoid an error. 29662 Use char because int might match the return type of a GCC 29663 builtin and then its argument prototype would still apply. */ 29664 #ifdef __cplusplus 29665 extern "C" 29666 #endif 29667 char remove (); 29668 int 29669 main () 29670 { 29671 return remove (); 29672 ; 29673 return 0; 29674 } 29675 _ACEOF 29676 if ac_fn_cxx_try_link "$LINENO"; then : 29677 ac_cv_lib_posix_remove=yes 29678 else 29679 ac_cv_lib_posix_remove=no 29680 fi 29681 rm -f core conftest.err conftest.$ac_objext \ 29682 conftest$ac_exeext conftest.$ac_ext 29683 LIBS=$ac_check_lib_save_LIBS 29684 fi 29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 29686 $as_echo "$ac_cv_lib_posix_remove" >&6; } 29687 if test "x$ac_cv_lib_posix_remove" = xyes; then : 29688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 29689 fi 29690 29691 fi 29692 29693 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 29694 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 29695 if test "x$ac_cv_func_shmat" = xyes; then : 29696 29697 fi 29698 29699 if test $ac_cv_func_shmat = no; then 29700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 29701 $as_echo_n "checking for shmat in -lipc... " >&6; } 29702 if ${ac_cv_lib_ipc_shmat+:} false; then : 29703 $as_echo_n "(cached) " >&6 29704 else 29705 ac_check_lib_save_LIBS=$LIBS 29706 LIBS="-lipc $LIBS" 29707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29708 /* end confdefs.h. */ 29709 29710 /* Override any GCC internal prototype to avoid an error. 29711 Use char because int might match the return type of a GCC 29712 builtin and then its argument prototype would still apply. */ 29713 #ifdef __cplusplus 29714 extern "C" 29715 #endif 29716 char shmat (); 29717 int 29718 main () 29719 { 29720 return shmat (); 29721 ; 29722 return 0; 29723 } 29724 _ACEOF 29725 if ac_fn_cxx_try_link "$LINENO"; then : 29726 ac_cv_lib_ipc_shmat=yes 29727 else 29728 ac_cv_lib_ipc_shmat=no 29729 fi 29730 rm -f core conftest.err conftest.$ac_objext \ 29731 conftest$ac_exeext conftest.$ac_ext 29732 LIBS=$ac_check_lib_save_LIBS 29733 fi 29734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 29735 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 29736 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 29737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 29738 fi 29739 29740 fi 29741 fi 29742 29743 # Check for libraries that X11R6 Xt/Xaw programs need. 29744 ac_save_LDFLAGS=$LDFLAGS 29745 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 29746 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 29747 # check for ICE first), but we must link in the order -lSM -lICE or 29748 # we get undefined symbols. So assume we have SM if we have ICE. 29749 # These have to be linked with before -lX11, unlike the other 29750 # libraries we check for below, so use a different variable. 29751 # John Interrante, Karl Berry 29752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 29753 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 29754 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 29755 $as_echo_n "(cached) " >&6 29756 else 29757 ac_check_lib_save_LIBS=$LIBS 29758 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 29759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29760 /* end confdefs.h. */ 29761 29762 /* Override any GCC internal prototype to avoid an error. 29763 Use char because int might match the return type of a GCC 29764 builtin and then its argument prototype would still apply. */ 29765 #ifdef __cplusplus 29766 extern "C" 29767 #endif 29768 char IceConnectionNumber (); 29769 int 29770 main () 29771 { 29772 return IceConnectionNumber (); 29773 ; 29774 return 0; 29775 } 29776 _ACEOF 29777 if ac_fn_cxx_try_link "$LINENO"; then : 29778 ac_cv_lib_ICE_IceConnectionNumber=yes 29779 else 29780 ac_cv_lib_ICE_IceConnectionNumber=no 29781 fi 29782 rm -f core conftest.err conftest.$ac_objext \ 29783 conftest$ac_exeext conftest.$ac_ext 29784 LIBS=$ac_check_lib_save_LIBS 29785 fi 29786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 29787 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 29788 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 29789 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 29790 fi 29791 29792 LDFLAGS=$ac_save_LDFLAGS 29793 29794 fi 29795 29796 29797 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 29798 # this doesn't make sense so we remove it. 29799 if test "x$COMPILE_TYPE" = xcross; then 29800 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 29801 fi 29802 29803 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 29804 29805 # Print a helpful message on how to acquire the necessary build dependency. 29806 # x11 is the help tag: freetyp2, cups, pulse, alsa etc 29807 MISSING_DEPENDENCY=x11 29808 PKGHANDLER_COMMAND= 29809 29810 case $PKGHANDLER in 29811 apt-get) 29812 apt_help $MISSING_DEPENDENCY ;; 29813 yum) 29814 yum_help $MISSING_DEPENDENCY ;; 29815 port) 29816 port_help $MISSING_DEPENDENCY ;; 29817 pkgutil) 29818 pkgutil_help $MISSING_DEPENDENCY ;; 29819 pkgadd) 29820 pkgadd_help $MISSING_DEPENDENCY ;; 29821 * ) 29822 break ;; 29823 esac 29824 29825 if test "x$PKGHANDLER_COMMAND" != x; then 29826 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29827 fi 29828 29829 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 29830 fi 29831 29832 # Some of the old makefiles require a setting of OPENWIN_HOME 29833 # Since the X11R6 directory has disappeared on later Linuxes, 29834 # we need to probe for it. 29835 if test "x$OPENJDK_TARGET_OS" = xlinux; then 29836 if test -d "$SYS_ROOT/usr/X11R6"; then 29837 OPENWIN_HOME="$SYS_ROOT/usr/X11R6" 29838 fi 29839 if test -d "$SYS_ROOT/usr/include/X11"; then 29840 OPENWIN_HOME="$SYS_ROOT/usr" 29841 fi 29842 fi 29843 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29844 OPENWIN_HOME="/usr/openwin" 29845 fi 29846 29847 29848 29849 # 29850 # Weird Sol10 something check...TODO change to try compile 29851 # 29852 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 29853 if test "`uname -r`" = "5.10"; then 29854 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 29855 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 29856 fi 29857 fi 29858 fi 29859 29860 ac_ext=c 29861 ac_cpp='$CPP $CPPFLAGS' 29862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29864 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29865 29866 OLD_CFLAGS="$CFLAGS" 29867 CFLAGS="$CFLAGS $X_CFLAGS" 29868 29869 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 29870 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h 29871 do : 29872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " # include <X11/Xlib.h> 29874 # include <X11/Xutil.h> 29875 29876 " 29877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29878 cat >>confdefs.h <<_ACEOF 29879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29880 _ACEOF 29881 X11_A_OK=yes 29882 else 29883 X11_A_OK=no; break 29884 fi 29885 29886 done 29887 29888 29889 CFLAGS="$OLD_CFLAGS" 29890 ac_ext=cpp 29891 ac_cpp='$CXXCPP $CPPFLAGS' 29892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29895 29896 29897 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 29898 29899 # Print a helpful message on how to acquire the necessary build dependency. 29900 # x11 is the help tag: freetyp2, cups, pulse, alsa etc 29901 MISSING_DEPENDENCY=x11 29902 PKGHANDLER_COMMAND= 29903 29904 case $PKGHANDLER in 29905 apt-get) 29906 apt_help $MISSING_DEPENDENCY ;; 29907 yum) 29908 yum_help $MISSING_DEPENDENCY ;; 29909 port) 29910 port_help $MISSING_DEPENDENCY ;; 29911 pkgutil) 29912 pkgutil_help $MISSING_DEPENDENCY ;; 29913 pkgadd) 29914 pkgadd_help $MISSING_DEPENDENCY ;; 29915 * ) 29916 break ;; 29917 esac 29918 29919 if test "x$PKGHANDLER_COMMAND" != x; then 29920 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29921 fi 29922 29923 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5 29924 fi 29925 29926 29927 29928 29929 29930 29931 ############################################################################### 29932 # 29933 # The common unix printing system cups is used to print from java. 29934 # 29935 29936 # Check whether --with-cups was given. 29937 if test "${with_cups+set}" = set; then : 29938 withval=$with_cups; 29939 fi 29940 29941 29942 # Check whether --with-cups-include was given. 29943 if test "${with_cups_include+set}" = set; then : 29944 withval=$with_cups_include; 29945 fi 29946 29947 29948 if test "x$CUPS_NOT_NEEDED" = xyes; then 29949 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 29950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 29951 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 29952 fi 29953 CUPS_CFLAGS= 29954 else 29955 CUPS_FOUND=no 29956 29957 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 29958 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 29959 fi 29960 29961 if test "x${with_cups}" != x; then 29962 CUPS_CFLAGS="-I${with_cups}/include" 29963 CUPS_FOUND=yes 29964 fi 29965 if test "x${with_cups_include}" != x; then 29966 CUPS_CFLAGS="-I${with_cups_include}" 29967 CUPS_FOUND=yes 29968 fi 29969 if test "x$CUPS_FOUND" = xno; then 29970 29971 29972 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 29973 # Source the builddeps file again, to make sure it uses the latest variables! 29974 . $builddepsfile 29975 # Look for a target and build machine specific resource! 29976 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 29977 if test "x$resource" = x; then 29978 # Ok, lets instead look for a target specific resource 29979 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 29980 fi 29981 if test "x$resource" = x; then 29982 # Ok, lets instead look for a build specific resource 29983 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 29984 fi 29985 if test "x$resource" = x; then 29986 # Ok, lets instead look for a generic resource 29987 # (The cups comes from M4 and not the shell, thus no need for eval here.) 29988 resource=${builddep_cups} 29989 fi 29990 if test "x$resource" != x; then 29991 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 29992 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 29993 # If the resource in the builddeps.conf file is an existing directory, 29994 # for example /java/linux/cups 29995 if test -d ${resource}; then 29996 depdir=${resource} 29997 else 29998 29999 # cups is for example mymodule 30000 # $resource is for example libs/general/libmymod_1_2_3.zip 30001 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 30002 # $with_builddeps_dir is for example /localhome/builddeps 30003 # depdir is the name of the variable into which we store the depdir, eg MYMOD 30004 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 30005 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 30006 filename=`basename $resource` 30007 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 30008 filebase=${filename%%.*} 30009 extension=${filename#*.} 30010 installdir=$with_builddeps_dir/$filebase 30011 if test ! -f $installdir/$filename.unpacked; then 30012 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 30013 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 30014 if test ! -d $installdir; then 30015 mkdir -p $installdir 30016 fi 30017 if test ! -d $installdir; then 30018 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 30019 fi 30020 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 30021 touch $tmpfile 30022 if test ! -f $tmpfile; then 30023 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 30024 fi 30025 30026 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 30027 # $tmpfile is the local file name for the downloaded file. 30028 VALID_TOOL=no 30029 if test "x$BDEPS_FTP" = xwget; then 30030 VALID_TOOL=yes 30031 wget -O $tmpfile $with_builddeps_server/$resource 30032 fi 30033 if test "x$BDEPS_FTP" = xlftp; then 30034 VALID_TOOL=yes 30035 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 30036 fi 30037 if test "x$BDEPS_FTP" = xftp; then 30038 VALID_TOOL=yes 30039 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 30040 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 30041 FTPUSERPWD=${FTPSERVER%%@*} 30042 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 30043 FTPUSER=${userpwd%%:*} 30044 FTPPWD=${userpwd#*@} 30045 FTPSERVER=${FTPSERVER#*@} 30046 else 30047 FTPUSER=ftp 30048 FTPPWD=ftp 30049 fi 30050 # the "pass" command does not work on some 30051 # ftp clients (read ftp.exe) but if it works, 30052 # passive mode is better! 30053 (\ 30054 echo "user $FTPUSER $FTPPWD" ;\ 30055 echo "pass" ;\ 30056 echo "bin" ;\ 30057 echo "get $FTPPATH $tmpfile" ;\ 30058 ) | ftp -in $FTPSERVER 30059 fi 30060 if test "x$VALID_TOOL" != xyes; then 30061 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 30062 fi 30063 30064 mv $tmpfile $installdir/$filename 30065 if test ! -s $installdir/$filename; then 30066 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 30067 fi 30068 case "$extension" in 30069 zip) echo "Unzipping $installdir/$filename..." 30070 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 30071 ;; 30072 tar.gz) echo "Untaring $installdir/$filename..." 30073 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 30074 ;; 30075 tgz) echo "Untaring $installdir/$filename..." 30076 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 30077 ;; 30078 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 30079 ;; 30080 esac 30081 fi 30082 if test -f $installdir/$filename.unpacked; then 30083 depdir=$installdir 30084 fi 30085 30086 fi 30087 # Source the builddeps file again, because in the previous command, the depdir 30088 # was updated to point at the current build dependency install directory. 30089 . $builddepsfile 30090 # Now extract variables from the builddeps.conf files. 30091 theroot=${builddep_cups_ROOT} 30092 thecflags=${builddep_cups_CFLAGS} 30093 thelibs=${builddep_cups_LIBS} 30094 if test "x$depdir" = x; then 30095 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 30096 fi 30097 CUPS=$depdir 30098 if test "x$theroot" != x; then 30099 CUPS="$theroot" 30100 fi 30101 if test "x$thecflags" != x; then 30102 CUPS_CFLAGS="$thecflags" 30103 fi 30104 if test "x$thelibs" != x; then 30105 CUPS_LIBS="$thelibs" 30106 fi 30107 CUPS_FOUND=yes 30108 30109 fi 30110 30111 fi 30112 30113 fi 30114 if test "x$CUPS_FOUND" = xno; then 30115 # Are the cups headers installed in the default /usr/include location? 30116 for ac_header in cups/cups.h cups/ppd.h 30117 do : 30118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30119 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30121 cat >>confdefs.h <<_ACEOF 30122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30123 _ACEOF 30124 CUPS_FOUND=yes 30125 CUPS_CFLAGS= 30126 DEFAULT_CUPS=yes 30127 fi 30128 30129 done 30130 30131 fi 30132 if test "x$CUPS_FOUND" = xno; then 30133 # Getting nervous now? Lets poke around for standard Solaris third-party 30134 # package installation locations. 30135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 30136 $as_echo_n "checking for cups headers... " >&6; } 30137 if test -s /opt/sfw/cups/include/cups/cups.h; then 30138 # An SFW package seems to be installed! 30139 CUPS_FOUND=yes 30140 CUPS_CFLAGS="-I/opt/sfw/cups/include" 30141 elif test -s /opt/csw/include/cups/cups.h; then 30142 # A CSW package seems to be installed! 30143 CUPS_FOUND=yes 30144 CUPS_CFLAGS="-I/opt/csw/include" 30145 fi 30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 30147 $as_echo "$CUPS_FOUND" >&6; } 30148 fi 30149 if test "x$CUPS_FOUND" = xno; then 30150 30151 # Print a helpful message on how to acquire the necessary build dependency. 30152 # cups is the help tag: freetyp2, cups, pulse, alsa etc 30153 MISSING_DEPENDENCY=cups 30154 PKGHANDLER_COMMAND= 30155 30156 case $PKGHANDLER in 30157 apt-get) 30158 apt_help $MISSING_DEPENDENCY ;; 30159 yum) 30160 yum_help $MISSING_DEPENDENCY ;; 30161 port) 30162 port_help $MISSING_DEPENDENCY ;; 30163 pkgutil) 30164 pkgutil_help $MISSING_DEPENDENCY ;; 30165 pkgadd) 30166 pkgadd_help $MISSING_DEPENDENCY ;; 30167 * ) 30168 break ;; 30169 esac 30170 30171 if test "x$PKGHANDLER_COMMAND" != x; then 30172 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30173 fi 30174 30175 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 30176 fi 30177 fi 30178 30179 30180 30181 30182 30183 30184 ############################################################################### 30185 # 30186 # The ubiquitous freetype2 library is used to render fonts. 30187 # 30188 30189 # Check whether --with-freetype was given. 30190 if test "${with_freetype+set}" = set; then : 30191 withval=$with_freetype; 30192 fi 30193 30194 30195 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree 30196 USING_SYSTEM_FT_LIB=false 30197 30198 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then 30199 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 30200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 30201 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 30202 fi 30203 FREETYPE2_CFLAGS= 30204 FREETYPE2_LIBS= 30205 FREETYPE2_LIB_PATH= 30206 else 30207 FREETYPE2_FOUND=no 30208 30209 if test "x$with_freetype" != x; then 30210 30211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30212 30213 # Input might be given as Windows format, start by converting to 30214 # unix format. 30215 path="$with_freetype" 30216 new_path=`$CYGPATH -u "$path"` 30217 30218 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30219 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30220 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30221 # "foo.exe" is OK but "foo" is an error. 30222 # 30223 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30224 # It is also a way to make sure we got the proper file name for the real test later on. 30225 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30226 if test "x$test_shortpath" = x; then 30227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_freetype, which resolves as \"$path\", is invalid." >&5 30228 $as_echo "$as_me: The path of with_freetype, which resolves as \"$path\", is invalid." >&6;} 30229 as_fn_error $? "Cannot locate the the path of with_freetype" "$LINENO" 5 30230 fi 30231 30232 # Call helper function which possibly converts this using DOS-style short mode. 30233 # If so, the updated path is stored in $new_path. 30234 30235 input_path="$new_path" 30236 # Check if we need to convert this using DOS-style short mode. If the path 30237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30238 # take no chances and rewrite it. 30239 # Note: m4 eats our [], so we need to use [ and ] instead. 30240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30241 if test "x$has_forbidden_chars" != x; then 30242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30246 # Going to short mode and back again did indeed matter. Since short mode is 30247 # case insensitive, let's make it lowercase to improve readability. 30248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30249 # Now convert it back to Unix-stile (cygpath) 30250 input_path=`$CYGPATH -u "$shortmode_path"` 30251 new_path="$input_path" 30252 fi 30253 fi 30254 30255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30256 if test "x$test_cygdrive_prefix" = x; then 30257 # As a simple fix, exclude /usr/bin since it's not a real path. 30258 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30260 # a path prefixed by /cygdrive for fixpath to work. 30261 new_path="$CYGWIN_ROOT_PATH$input_path" 30262 fi 30263 fi 30264 30265 30266 if test "x$path" != "x$new_path"; then 30267 with_freetype="$new_path" 30268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_freetype to \"$new_path\"" >&5 30269 $as_echo "$as_me: Rewriting with_freetype to \"$new_path\"" >&6;} 30270 fi 30271 30272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30273 30274 path="$with_freetype" 30275 has_colon=`$ECHO $path | $GREP ^.:` 30276 new_path="$path" 30277 if test "x$has_colon" = x; then 30278 # Not in mixed or Windows style, start by that. 30279 new_path=`cmd //c echo $path` 30280 fi 30281 30282 30283 input_path="$new_path" 30284 # Check if we need to convert this using DOS-style short mode. If the path 30285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30286 # take no chances and rewrite it. 30287 # Note: m4 eats our [], so we need to use [ and ] instead. 30288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30289 if test "x$has_forbidden_chars" != x; then 30290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30291 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30292 fi 30293 30294 30295 windows_path="$new_path" 30296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30297 unix_path=`$CYGPATH -u "$windows_path"` 30298 new_path="$unix_path" 30299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30301 new_path="$unix_path" 30302 fi 30303 30304 if test "x$path" != "x$new_path"; then 30305 with_freetype="$new_path" 30306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_freetype to \"$new_path\"" >&5 30307 $as_echo "$as_me: Rewriting with_freetype to \"$new_path\"" >&6;} 30308 fi 30309 30310 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30311 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30312 30313 else 30314 # We're on a posix platform. Hooray! :) 30315 path="$with_freetype" 30316 30317 if test ! -f "$path" && test ! -d "$path"; then 30318 as_fn_error $? "The path of with_freetype, which resolves as \"$path\", is not found." "$LINENO" 5 30319 fi 30320 30321 has_space=`$ECHO "$path" | $GREP " "` 30322 if test "x$has_space" != x; then 30323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_freetype, which resolves as \"$path\", is invalid." >&5 30324 $as_echo "$as_me: The path of with_freetype, which resolves as \"$path\", is invalid." >&6;} 30325 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30326 fi 30327 fi 30328 30329 FREETYPE2_LIBS="-L$with_freetype/lib -lfreetype" 30330 FREETYPE2_LIB_PATH="$with_freetype/lib" 30331 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -d "$with_freetype/lib/amd64"; then 30332 FREETYPE2_LIBS="-L$with_freetype/lib/amd64 -lfreetype" 30333 FREETYPE2_LIB_PATH="$with_freetype/lib/amd64" 30334 fi 30335 if test "x$OPENJDK_TARGET_OS" = xwindows; then 30336 FREETYPE2_LIBS="$with_freetype/lib/freetype.lib" 30337 fi 30338 FREETYPE2_CFLAGS="-I$with_freetype/include" 30339 if test -s $with_freetype/include/ft2build.h && test -d $with_freetype/include/freetype2/freetype; then 30340 FREETYPE2_CFLAGS="-I$with_freetype/include/freetype2 -I$with_freetype/include" 30341 fi 30342 FREETYPE2_FOUND=yes 30343 if test "x$FREETYPE2_FOUND" = xyes; then 30344 # Verify that the directories exist 30345 if ! test -d "$with_freetype/lib" || ! test -d "$with_freetype/include"; then 30346 as_fn_error $? "Could not find the expected directories $with_freetype/lib and $with_freetype/include" "$LINENO" 5 30347 fi 30348 # List the contents of the lib. 30349 FREETYPELIB=`ls $with_freetype/lib/libfreetype.so $with_freetype/lib/freetype.dll 2> /dev/null` 30350 if test "x$FREETYPELIB" = x; then 30351 as_fn_error $? "Could not find libfreetype.so nor freetype.dll in $with_freetype/lib" "$LINENO" 5 30352 fi 30353 # Check one h-file 30354 if ! test -s "$with_freetype/include/ft2build.h"; then 30355 as_fn_error $? "Could not find $with_freetype/include/ft2build.h" "$LINENO" 5 30356 fi 30357 fi 30358 fi 30359 if test "x$FREETYPE2_FOUND" = xno; then 30360 30361 30362 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 30363 # Source the builddeps file again, to make sure it uses the latest variables! 30364 . $builddepsfile 30365 # Look for a target and build machine specific resource! 30366 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 30367 if test "x$resource" = x; then 30368 # Ok, lets instead look for a target specific resource 30369 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 30370 fi 30371 if test "x$resource" = x; then 30372 # Ok, lets instead look for a build specific resource 30373 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 30374 fi 30375 if test "x$resource" = x; then 30376 # Ok, lets instead look for a generic resource 30377 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 30378 resource=${builddep_freetype2} 30379 fi 30380 if test "x$resource" != x; then 30381 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 30382 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 30383 # If the resource in the builddeps.conf file is an existing directory, 30384 # for example /java/linux/cups 30385 if test -d ${resource}; then 30386 depdir=${resource} 30387 else 30388 30389 # freetype2 is for example mymodule 30390 # $resource is for example libs/general/libmymod_1_2_3.zip 30391 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 30392 # $with_builddeps_dir is for example /localhome/builddeps 30393 # depdir is the name of the variable into which we store the depdir, eg MYMOD 30394 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 30395 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 30396 filename=`basename $resource` 30397 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 30398 filebase=${filename%%.*} 30399 extension=${filename#*.} 30400 installdir=$with_builddeps_dir/$filebase 30401 if test ! -f $installdir/$filename.unpacked; then 30402 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 30403 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 30404 if test ! -d $installdir; then 30405 mkdir -p $installdir 30406 fi 30407 if test ! -d $installdir; then 30408 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 30409 fi 30410 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 30411 touch $tmpfile 30412 if test ! -f $tmpfile; then 30413 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 30414 fi 30415 30416 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 30417 # $tmpfile is the local file name for the downloaded file. 30418 VALID_TOOL=no 30419 if test "x$BDEPS_FTP" = xwget; then 30420 VALID_TOOL=yes 30421 wget -O $tmpfile $with_builddeps_server/$resource 30422 fi 30423 if test "x$BDEPS_FTP" = xlftp; then 30424 VALID_TOOL=yes 30425 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 30426 fi 30427 if test "x$BDEPS_FTP" = xftp; then 30428 VALID_TOOL=yes 30429 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 30430 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 30431 FTPUSERPWD=${FTPSERVER%%@*} 30432 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 30433 FTPUSER=${userpwd%%:*} 30434 FTPPWD=${userpwd#*@} 30435 FTPSERVER=${FTPSERVER#*@} 30436 else 30437 FTPUSER=ftp 30438 FTPPWD=ftp 30439 fi 30440 # the "pass" command does not work on some 30441 # ftp clients (read ftp.exe) but if it works, 30442 # passive mode is better! 30443 (\ 30444 echo "user $FTPUSER $FTPPWD" ;\ 30445 echo "pass" ;\ 30446 echo "bin" ;\ 30447 echo "get $FTPPATH $tmpfile" ;\ 30448 ) | ftp -in $FTPSERVER 30449 fi 30450 if test "x$VALID_TOOL" != xyes; then 30451 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 30452 fi 30453 30454 mv $tmpfile $installdir/$filename 30455 if test ! -s $installdir/$filename; then 30456 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 30457 fi 30458 case "$extension" in 30459 zip) echo "Unzipping $installdir/$filename..." 30460 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 30461 ;; 30462 tar.gz) echo "Untaring $installdir/$filename..." 30463 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 30464 ;; 30465 tgz) echo "Untaring $installdir/$filename..." 30466 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 30467 ;; 30468 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 30469 ;; 30470 esac 30471 fi 30472 if test -f $installdir/$filename.unpacked; then 30473 depdir=$installdir 30474 fi 30475 30476 fi 30477 # Source the builddeps file again, because in the previous command, the depdir 30478 # was updated to point at the current build dependency install directory. 30479 . $builddepsfile 30480 # Now extract variables from the builddeps.conf files. 30481 theroot=${builddep_freetype2_ROOT} 30482 thecflags=${builddep_freetype2_CFLAGS} 30483 thelibs=${builddep_freetype2_LIBS} 30484 if test "x$depdir" = x; then 30485 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 30486 fi 30487 FREETYPE2=$depdir 30488 if test "x$theroot" != x; then 30489 FREETYPE2="$theroot" 30490 fi 30491 if test "x$thecflags" != x; then 30492 FREETYPE2_CFLAGS="$thecflags" 30493 fi 30494 if test "x$thelibs" != x; then 30495 FREETYPE2_LIBS="$thelibs" 30496 fi 30497 FREETYPE2_FOUND=yes 30498 else FREETYPE2_FOUND=no 30499 30500 fi 30501 else FREETYPE2_FOUND=no 30502 30503 fi 30504 30505 USING_SYSTEM_FT_LIB=true 30506 fi 30507 if test "x$FREETYPE2_FOUND" = xno && test "x$OPENJDK_TARGET_OS" = xwindows; then 30508 FREETYPELOCATION="$PROGRAMFILES/GnuWin32" 30509 30510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30511 30512 # Input might be given as Windows format, start by converting to 30513 # unix format. 30514 path="$FREETYPELOCATION" 30515 new_path=`$CYGPATH -u "$path"` 30516 30517 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30518 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30519 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30520 # "foo.exe" is OK but "foo" is an error. 30521 # 30522 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30523 # It is also a way to make sure we got the proper file name for the real test later on. 30524 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30525 if test "x$test_shortpath" = x; then 30526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&5 30527 $as_echo "$as_me: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&6;} 30528 as_fn_error $? "Cannot locate the the path of FREETYPELOCATION" "$LINENO" 5 30529 fi 30530 30531 # Call helper function which possibly converts this using DOS-style short mode. 30532 # If so, the updated path is stored in $new_path. 30533 30534 input_path="$new_path" 30535 # Check if we need to convert this using DOS-style short mode. If the path 30536 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30537 # take no chances and rewrite it. 30538 # Note: m4 eats our [], so we need to use [ and ] instead. 30539 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30540 if test "x$has_forbidden_chars" != x; then 30541 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30542 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30543 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30544 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30545 # Going to short mode and back again did indeed matter. Since short mode is 30546 # case insensitive, let's make it lowercase to improve readability. 30547 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30548 # Now convert it back to Unix-stile (cygpath) 30549 input_path=`$CYGPATH -u "$shortmode_path"` 30550 new_path="$input_path" 30551 fi 30552 fi 30553 30554 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30555 if test "x$test_cygdrive_prefix" = x; then 30556 # As a simple fix, exclude /usr/bin since it's not a real path. 30557 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30558 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30559 # a path prefixed by /cygdrive for fixpath to work. 30560 new_path="$CYGWIN_ROOT_PATH$input_path" 30561 fi 30562 fi 30563 30564 30565 if test "x$path" != "x$new_path"; then 30566 FREETYPELOCATION="$new_path" 30567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPELOCATION to \"$new_path\"" >&5 30568 $as_echo "$as_me: Rewriting FREETYPELOCATION to \"$new_path\"" >&6;} 30569 fi 30570 30571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30572 30573 path="$FREETYPELOCATION" 30574 has_colon=`$ECHO $path | $GREP ^.:` 30575 new_path="$path" 30576 if test "x$has_colon" = x; then 30577 # Not in mixed or Windows style, start by that. 30578 new_path=`cmd //c echo $path` 30579 fi 30580 30581 30582 input_path="$new_path" 30583 # Check if we need to convert this using DOS-style short mode. If the path 30584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30585 # take no chances and rewrite it. 30586 # Note: m4 eats our [], so we need to use [ and ] instead. 30587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30588 if test "x$has_forbidden_chars" != x; then 30589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30590 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30591 fi 30592 30593 30594 windows_path="$new_path" 30595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30596 unix_path=`$CYGPATH -u "$windows_path"` 30597 new_path="$unix_path" 30598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30600 new_path="$unix_path" 30601 fi 30602 30603 if test "x$path" != "x$new_path"; then 30604 FREETYPELOCATION="$new_path" 30605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPELOCATION to \"$new_path\"" >&5 30606 $as_echo "$as_me: Rewriting FREETYPELOCATION to \"$new_path\"" >&6;} 30607 fi 30608 30609 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30610 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30611 30612 else 30613 # We're on a posix platform. Hooray! :) 30614 path="$FREETYPELOCATION" 30615 30616 if test ! -f "$path" && test ! -d "$path"; then 30617 as_fn_error $? "The path of FREETYPELOCATION, which resolves as \"$path\", is not found." "$LINENO" 5 30618 fi 30619 30620 has_space=`$ECHO "$path" | $GREP " "` 30621 if test "x$has_space" != x; then 30622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&5 30623 $as_echo "$as_me: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&6;} 30624 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30625 fi 30626 fi 30627 30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard windows locations" >&5 30629 $as_echo_n "checking for freetype in some standard windows locations... " >&6; } 30630 if test -s "$FREETYPELOCATION/include/ft2build.h" && test -d "$FREETYPELOCATION/include/freetype2/freetype"; then 30631 FREETYPE2_CFLAGS="-I$FREETYPELOCATION/include/freetype2 -I$FREETYPELOCATION/include" 30632 FREETYPE2_LIBS="$FREETYPELOCATION/lib/freetype.lib" 30633 FREETYPE2_LIB_PATH="$FREETYPELOCATION/lib" 30634 if ! test -s "$FREETYPE2_LIBS"; then 30635 as_fn_error $? "Could not find $FREETYPE2_LIBS" "$LINENO" 5 30636 fi 30637 if ! test -s "$FREETYPE2_LIB_PATH/freetype.dll"; then 30638 as_fn_error $? "Could not find $FREETYPE2_LIB_PATH/freetype.dll" "$LINENO" 5 30639 fi 30640 USING_SYSTEM_FT_LIB=true 30641 FREETYPE2_FOUND=yes 30642 fi 30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5 30644 $as_echo "$FREETYPE2_FOUND" >&6; } 30645 fi 30646 if test "x$FREETYPE2_FOUND" = xno; then 30647 30648 pkg_failed=no 30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5 30650 $as_echo_n "checking for FREETYPE2... " >&6; } 30651 30652 if test -n "$FREETYPE2_CFLAGS"; then 30653 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" 30654 elif test -n "$PKG_CONFIG"; then 30655 if test -n "$PKG_CONFIG" && \ 30656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 30657 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 30658 ac_status=$? 30659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30660 test $ac_status = 0; }; then 30661 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 30662 else 30663 pkg_failed=yes 30664 fi 30665 else 30666 pkg_failed=untried 30667 fi 30668 if test -n "$FREETYPE2_LIBS"; then 30669 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" 30670 elif test -n "$PKG_CONFIG"; then 30671 if test -n "$PKG_CONFIG" && \ 30672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 30673 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 30674 ac_status=$? 30675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30676 test $ac_status = 0; }; then 30677 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 30678 else 30679 pkg_failed=yes 30680 fi 30681 else 30682 pkg_failed=untried 30683 fi 30684 30685 30686 30687 if test $pkg_failed = yes; then 30688 30689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30690 _pkg_short_errors_supported=yes 30691 else 30692 _pkg_short_errors_supported=no 30693 fi 30694 if test $_pkg_short_errors_supported = yes; then 30695 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 30696 else 30697 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 30698 fi 30699 # Put the nasty error message in config.log where it belongs 30700 echo "$FREETYPE2_PKG_ERRORS" >&5 30701 30702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30703 $as_echo "no" >&6; } 30704 FREETYPE2_FOUND=no 30705 elif test $pkg_failed = untried; then 30706 FREETYPE2_FOUND=no 30707 else 30708 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS 30709 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS 30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30711 $as_echo "yes" >&6; } 30712 FREETYPE2_FOUND=yes 30713 fi 30714 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 30715 FREETYPE2_LIBS=`$ECHO $FREETYPE2_LIBS | $SED 's/-lz//g'` 30716 USING_SYSTEM_FT_LIB=true 30717 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 30718 if test "x$FREETYPE2_FOUND" = xyes && test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 30719 FREETYPE2_LIBS=`$ECHO $FREETYPE2_LIBS | $SED 's?/lib?/lib/amd64?g'` 30720 fi 30721 fi 30722 if test "x$FREETYPE2_FOUND" = xno; then 30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard locations" >&5 30724 $as_echo_n "checking for freetype in some standard locations... " >&6; } 30725 30726 if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then 30727 DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include" 30728 DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype" 30729 fi 30730 if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then 30731 DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2" 30732 DEFAULT_FREETYPE_LIBS="-lfreetype" 30733 fi 30734 30735 PREV_CXXCFLAGS="$CXXFLAGS" 30736 PREV_LDFLAGS="$LDFLAGS" 30737 CXXFLAGS="$CXXFLAGS $DEFAULT_FREETYPE_CFLAGS" 30738 LDFLAGS="$LDFLAGS $DEFAULT_FREETYPE_LIBS" 30739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30740 /* end confdefs.h. */ 30741 #include<ft2build.h> 30742 #include FT_FREETYPE_H 30743 int main() { return 0; } 30744 30745 _ACEOF 30746 if ac_fn_cxx_try_link "$LINENO"; then : 30747 30748 # Yes, the default cflags and libs did the trick. 30749 FREETYPE2_FOUND=yes 30750 FREETYPE2_CFLAGS="$DEFAULT_FREETYPE_CFLAGS" 30751 FREETYPE2_LIBS="$DEFAULT_FREETYPE_LIBS" 30752 30753 else 30754 30755 FREETYPE2_FOUND=no 30756 30757 fi 30758 rm -f core conftest.err conftest.$ac_objext \ 30759 conftest$ac_exeext conftest.$ac_ext 30760 CXXCFLAGS="$PREV_CXXFLAGS" 30761 LDFLAGS="$PREV_LDFLAGS" 30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5 30763 $as_echo "$FREETYPE2_FOUND" >&6; } 30764 USING_SYSTEM_FT_LIB=true 30765 fi 30766 if test "x$FREETYPE2_FOUND" = xno; then 30767 30768 # Print a helpful message on how to acquire the necessary build dependency. 30769 # freetype2 is the help tag: freetyp2, cups, pulse, alsa etc 30770 MISSING_DEPENDENCY=freetype2 30771 PKGHANDLER_COMMAND= 30772 30773 case $PKGHANDLER in 30774 apt-get) 30775 apt_help $MISSING_DEPENDENCY ;; 30776 yum) 30777 yum_help $MISSING_DEPENDENCY ;; 30778 port) 30779 port_help $MISSING_DEPENDENCY ;; 30780 pkgutil) 30781 pkgutil_help $MISSING_DEPENDENCY ;; 30782 pkgadd) 30783 pkgadd_help $MISSING_DEPENDENCY ;; 30784 * ) 30785 break ;; 30786 esac 30787 30788 if test "x$PKGHANDLER_COMMAND" != x; then 30789 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30790 fi 30791 30792 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5 30793 fi 30794 30795 if test "x$OPENJDK_TARGET_OS" != xwindows; then 30796 # AC_CHECK_LIB does not support use of cl.exe 30797 PREV_LDFLAGS="$LDFLAGS" 30798 LDFLAGS="$FREETYPE2_LIBS" 30799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 30800 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } 30801 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : 30802 $as_echo_n "(cached) " >&6 30803 else 30804 ac_check_lib_save_LIBS=$LIBS 30805 LIBS="-lfreetype $LIBS" 30806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30807 /* end confdefs.h. */ 30808 30809 /* Override any GCC internal prototype to avoid an error. 30810 Use char because int might match the return type of a GCC 30811 builtin and then its argument prototype would still apply. */ 30812 #ifdef __cplusplus 30813 extern "C" 30814 #endif 30815 char FT_Init_FreeType (); 30816 int 30817 main () 30818 { 30819 return FT_Init_FreeType (); 30820 ; 30821 return 0; 30822 } 30823 _ACEOF 30824 if ac_fn_cxx_try_link "$LINENO"; then : 30825 ac_cv_lib_freetype_FT_Init_FreeType=yes 30826 else 30827 ac_cv_lib_freetype_FT_Init_FreeType=no 30828 fi 30829 rm -f core conftest.err conftest.$ac_objext \ 30830 conftest$ac_exeext conftest.$ac_ext 30831 LIBS=$ac_check_lib_save_LIBS 30832 fi 30833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 30834 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } 30835 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : 30836 FREETYPE2_FOUND=true 30837 else 30838 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5 30839 fi 30840 30841 LDFLAGS="$PREV_LDFLAGS" 30842 fi 30843 fi 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 ############################################################################### 30854 # 30855 # Check for alsa headers and libraries. Used on Linux/GNU systems. 30856 # 30857 30858 # Check whether --with-alsa was given. 30859 if test "${with_alsa+set}" = set; then : 30860 withval=$with_alsa; 30861 fi 30862 30863 30864 # Check whether --with-alsa-include was given. 30865 if test "${with_alsa_include+set}" = set; then : 30866 withval=$with_alsa_include; 30867 fi 30868 30869 30870 # Check whether --with-alsa-lib was given. 30871 if test "${with_alsa_lib+set}" = set; then : 30872 withval=$with_alsa_lib; 30873 fi 30874 30875 30876 if test "x$ALSA_NOT_NEEDED" = xyes; then 30877 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 30878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 30879 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 30880 fi 30881 ALSA_CFLAGS= 30882 ALSA_LIBS= 30883 else 30884 ALSA_FOUND=no 30885 30886 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 30887 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 30888 fi 30889 30890 if test "x${with_alsa}" != x; then 30891 ALSA_LIBS="-L${with_alsa}/lib -lalsa" 30892 ALSA_CFLAGS="-I${with_alsa}/include" 30893 ALSA_FOUND=yes 30894 fi 30895 if test "x${with_alsa_include}" != x; then 30896 ALSA_CFLAGS="-I${with_alsa_include}" 30897 ALSA_FOUND=yes 30898 fi 30899 if test "x${with_alsa_lib}" != x; then 30900 ALSA_LIBS="-L${with_alsa_lib} -lalsa" 30901 ALSA_FOUND=yes 30902 fi 30903 if test "x$ALSA_FOUND" = xno; then 30904 30905 30906 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 30907 # Source the builddeps file again, to make sure it uses the latest variables! 30908 . $builddepsfile 30909 # Look for a target and build machine specific resource! 30910 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 30911 if test "x$resource" = x; then 30912 # Ok, lets instead look for a target specific resource 30913 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 30914 fi 30915 if test "x$resource" = x; then 30916 # Ok, lets instead look for a build specific resource 30917 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 30918 fi 30919 if test "x$resource" = x; then 30920 # Ok, lets instead look for a generic resource 30921 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 30922 resource=${builddep_alsa} 30923 fi 30924 if test "x$resource" != x; then 30925 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 30926 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 30927 # If the resource in the builddeps.conf file is an existing directory, 30928 # for example /java/linux/cups 30929 if test -d ${resource}; then 30930 depdir=${resource} 30931 else 30932 30933 # alsa is for example mymodule 30934 # $resource is for example libs/general/libmymod_1_2_3.zip 30935 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 30936 # $with_builddeps_dir is for example /localhome/builddeps 30937 # depdir is the name of the variable into which we store the depdir, eg MYMOD 30938 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 30939 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 30940 filename=`basename $resource` 30941 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 30942 filebase=${filename%%.*} 30943 extension=${filename#*.} 30944 installdir=$with_builddeps_dir/$filebase 30945 if test ! -f $installdir/$filename.unpacked; then 30946 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 30947 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 30948 if test ! -d $installdir; then 30949 mkdir -p $installdir 30950 fi 30951 if test ! -d $installdir; then 30952 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 30953 fi 30954 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 30955 touch $tmpfile 30956 if test ! -f $tmpfile; then 30957 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 30958 fi 30959 30960 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 30961 # $tmpfile is the local file name for the downloaded file. 30962 VALID_TOOL=no 30963 if test "x$BDEPS_FTP" = xwget; then 30964 VALID_TOOL=yes 30965 wget -O $tmpfile $with_builddeps_server/$resource 30966 fi 30967 if test "x$BDEPS_FTP" = xlftp; then 30968 VALID_TOOL=yes 30969 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 30970 fi 30971 if test "x$BDEPS_FTP" = xftp; then 30972 VALID_TOOL=yes 30973 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 30974 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 30975 FTPUSERPWD=${FTPSERVER%%@*} 30976 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 30977 FTPUSER=${userpwd%%:*} 30978 FTPPWD=${userpwd#*@} 30979 FTPSERVER=${FTPSERVER#*@} 30980 else 30981 FTPUSER=ftp 30982 FTPPWD=ftp 30983 fi 30984 # the "pass" command does not work on some 30985 # ftp clients (read ftp.exe) but if it works, 30986 # passive mode is better! 30987 (\ 30988 echo "user $FTPUSER $FTPPWD" ;\ 30989 echo "pass" ;\ 30990 echo "bin" ;\ 30991 echo "get $FTPPATH $tmpfile" ;\ 30992 ) | ftp -in $FTPSERVER 30993 fi 30994 if test "x$VALID_TOOL" != xyes; then 30995 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 30996 fi 30997 30998 mv $tmpfile $installdir/$filename 30999 if test ! -s $installdir/$filename; then 31000 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 31001 fi 31002 case "$extension" in 31003 zip) echo "Unzipping $installdir/$filename..." 31004 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 31005 ;; 31006 tar.gz) echo "Untaring $installdir/$filename..." 31007 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 31008 ;; 31009 tgz) echo "Untaring $installdir/$filename..." 31010 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 31011 ;; 31012 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 31013 ;; 31014 esac 31015 fi 31016 if test -f $installdir/$filename.unpacked; then 31017 depdir=$installdir 31018 fi 31019 31020 fi 31021 # Source the builddeps file again, because in the previous command, the depdir 31022 # was updated to point at the current build dependency install directory. 31023 . $builddepsfile 31024 # Now extract variables from the builddeps.conf files. 31025 theroot=${builddep_alsa_ROOT} 31026 thecflags=${builddep_alsa_CFLAGS} 31027 thelibs=${builddep_alsa_LIBS} 31028 if test "x$depdir" = x; then 31029 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 31030 fi 31031 ALSA=$depdir 31032 if test "x$theroot" != x; then 31033 ALSA="$theroot" 31034 fi 31035 if test "x$thecflags" != x; then 31036 ALSA_CFLAGS="$thecflags" 31037 fi 31038 if test "x$thelibs" != x; then 31039 ALSA_LIBS="$thelibs" 31040 fi 31041 ALSA_FOUND=yes 31042 else ALSA_FOUND=no 31043 31044 fi 31045 else ALSA_FOUND=no 31046 31047 fi 31048 31049 fi 31050 if test "x$ALSA_FOUND" = xno; then 31051 31052 pkg_failed=no 31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 31054 $as_echo_n "checking for ALSA... " >&6; } 31055 31056 if test -n "$ALSA_CFLAGS"; then 31057 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 31058 elif test -n "$PKG_CONFIG"; then 31059 if test -n "$PKG_CONFIG" && \ 31060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 31061 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 31062 ac_status=$? 31063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31064 test $ac_status = 0; }; then 31065 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 31066 else 31067 pkg_failed=yes 31068 fi 31069 else 31070 pkg_failed=untried 31071 fi 31072 if test -n "$ALSA_LIBS"; then 31073 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 31074 elif test -n "$PKG_CONFIG"; then 31075 if test -n "$PKG_CONFIG" && \ 31076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 31077 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 31078 ac_status=$? 31079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31080 test $ac_status = 0; }; then 31081 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 31082 else 31083 pkg_failed=yes 31084 fi 31085 else 31086 pkg_failed=untried 31087 fi 31088 31089 31090 31091 if test $pkg_failed = yes; then 31092 31093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31094 _pkg_short_errors_supported=yes 31095 else 31096 _pkg_short_errors_supported=no 31097 fi 31098 if test $_pkg_short_errors_supported = yes; then 31099 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 31100 else 31101 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 31102 fi 31103 # Put the nasty error message in config.log where it belongs 31104 echo "$ALSA_PKG_ERRORS" >&5 31105 31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31107 $as_echo "no" >&6; } 31108 ALSA_FOUND=no 31109 elif test $pkg_failed = untried; then 31110 ALSA_FOUND=no 31111 else 31112 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 31113 ALSA_LIBS=$pkg_cv_ALSA_LIBS 31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31115 $as_echo "yes" >&6; } 31116 ALSA_FOUND=yes 31117 fi 31118 fi 31119 if test "x$ALSA_FOUND" = xno; then 31120 for ac_header in alsa/asoundlib.h 31121 do : 31122 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 31123 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 31124 cat >>confdefs.h <<_ACEOF 31125 #define HAVE_ALSA_ASOUNDLIB_H 1 31126 _ACEOF 31127 ALSA_FOUND=yes 31128 ALSA_CFLAGS=-Iignoreme 31129 ALSA_LIBS=-lasound 31130 DEFAULT_ALSA=yes 31131 else 31132 ALSA_FOUND=no 31133 fi 31134 31135 done 31136 31137 fi 31138 if test "x$ALSA_FOUND" = xno; then 31139 31140 # Print a helpful message on how to acquire the necessary build dependency. 31141 # alsa is the help tag: freetyp2, cups, pulse, alsa etc 31142 MISSING_DEPENDENCY=alsa 31143 PKGHANDLER_COMMAND= 31144 31145 case $PKGHANDLER in 31146 apt-get) 31147 apt_help $MISSING_DEPENDENCY ;; 31148 yum) 31149 yum_help $MISSING_DEPENDENCY ;; 31150 port) 31151 port_help $MISSING_DEPENDENCY ;; 31152 pkgutil) 31153 pkgutil_help $MISSING_DEPENDENCY ;; 31154 pkgadd) 31155 pkgadd_help $MISSING_DEPENDENCY ;; 31156 * ) 31157 break ;; 31158 esac 31159 31160 if test "x$PKGHANDLER_COMMAND" != x; then 31161 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 31162 fi 31163 31164 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 31165 fi 31166 fi 31167 31168 31169 31170 31171 31172 31173 31174 ############################################################################### 31175 # 31176 # Check for the jpeg library 31177 # 31178 31179 USE_EXTERNAL_LIBJPEG=true 31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 31181 $as_echo_n "checking for main in -ljpeg... " >&6; } 31182 if ${ac_cv_lib_jpeg_main+:} false; then : 31183 $as_echo_n "(cached) " >&6 31184 else 31185 ac_check_lib_save_LIBS=$LIBS 31186 LIBS="-ljpeg $LIBS" 31187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31188 /* end confdefs.h. */ 31189 31190 31191 int 31192 main () 31193 { 31194 return main (); 31195 ; 31196 return 0; 31197 } 31198 _ACEOF 31199 if ac_fn_cxx_try_link "$LINENO"; then : 31200 ac_cv_lib_jpeg_main=yes 31201 else 31202 ac_cv_lib_jpeg_main=no 31203 fi 31204 rm -f core conftest.err conftest.$ac_objext \ 31205 conftest$ac_exeext conftest.$ac_ext 31206 LIBS=$ac_check_lib_save_LIBS 31207 fi 31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 31209 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 31210 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 31211 cat >>confdefs.h <<_ACEOF 31212 #define HAVE_LIBJPEG 1 31213 _ACEOF 31214 31215 LIBS="-ljpeg $LIBS" 31216 31217 else 31218 USE_EXTERNAL_LIBJPEG=false 31219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 31220 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 31221 31222 fi 31223 31224 31225 31226 ############################################################################### 31227 # 31228 # Check for the gif library 31229 # 31230 31231 31232 # Check whether --with-giflib was given. 31233 if test "${with_giflib+set}" = set; then : 31234 withval=$with_giflib; 31235 fi 31236 31237 31238 31239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 31240 $as_echo_n "checking for which giflib to use... " >&6; } 31241 31242 # default is bundled 31243 DEFAULT_GIFLIB=bundled 31244 31245 # 31246 # if user didn't specify, use DEFAULT_GIFLIB 31247 # 31248 if test "x${with_giflib}" = "x"; then 31249 with_giflib=${DEFAULT_GIFLIB} 31250 fi 31251 31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 31253 $as_echo "${with_giflib}" >&6; } 31254 31255 if test "x${with_giflib}" = "xbundled"; then 31256 USE_EXTERNAL_LIBGIF=false 31257 elif test "x${with_giflib}" = "xsystem"; then 31258 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 31259 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 31260 31261 else 31262 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 31263 fi 31264 31265 31266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 31267 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 31268 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 31269 $as_echo_n "(cached) " >&6 31270 else 31271 ac_check_lib_save_LIBS=$LIBS 31272 LIBS="-lgif $LIBS" 31273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31274 /* end confdefs.h. */ 31275 31276 /* Override any GCC internal prototype to avoid an error. 31277 Use char because int might match the return type of a GCC 31278 builtin and then its argument prototype would still apply. */ 31279 #ifdef __cplusplus 31280 extern "C" 31281 #endif 31282 char DGifGetCode (); 31283 int 31284 main () 31285 { 31286 return DGifGetCode (); 31287 ; 31288 return 0; 31289 } 31290 _ACEOF 31291 if ac_fn_cxx_try_link "$LINENO"; then : 31292 ac_cv_lib_gif_DGifGetCode=yes 31293 else 31294 ac_cv_lib_gif_DGifGetCode=no 31295 fi 31296 rm -f core conftest.err conftest.$ac_objext \ 31297 conftest$ac_exeext conftest.$ac_ext 31298 LIBS=$ac_check_lib_save_LIBS 31299 fi 31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 31301 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 31302 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 31303 cat >>confdefs.h <<_ACEOF 31304 #define HAVE_LIBGIF 1 31305 _ACEOF 31306 31307 LIBS="-lgif $LIBS" 31308 31309 else 31310 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 31311 fi 31312 31313 31314 USE_EXTERNAL_LIBGIF=true 31315 else 31316 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 31317 fi 31318 31319 31320 ############################################################################### 31321 # 31322 # Check for the zlib library 31323 # 31324 31325 31326 # Check whether --with-zlib was given. 31327 if test "${with_zlib+set}" = set; then : 31328 withval=$with_zlib; 31329 fi 31330 31331 31332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 31333 $as_echo_n "checking for compress in -lz... " >&6; } 31334 if ${ac_cv_lib_z_compress+:} false; then : 31335 $as_echo_n "(cached) " >&6 31336 else 31337 ac_check_lib_save_LIBS=$LIBS 31338 LIBS="-lz $LIBS" 31339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31340 /* end confdefs.h. */ 31341 31342 /* Override any GCC internal prototype to avoid an error. 31343 Use char because int might match the return type of a GCC 31344 builtin and then its argument prototype would still apply. */ 31345 #ifdef __cplusplus 31346 extern "C" 31347 #endif 31348 char compress (); 31349 int 31350 main () 31351 { 31352 return compress (); 31353 ; 31354 return 0; 31355 } 31356 _ACEOF 31357 if ac_fn_cxx_try_link "$LINENO"; then : 31358 ac_cv_lib_z_compress=yes 31359 else 31360 ac_cv_lib_z_compress=no 31361 fi 31362 rm -f core conftest.err conftest.$ac_objext \ 31363 conftest$ac_exeext conftest.$ac_ext 31364 LIBS=$ac_check_lib_save_LIBS 31365 fi 31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 31367 $as_echo "$ac_cv_lib_z_compress" >&6; } 31368 if test "x$ac_cv_lib_z_compress" = xyes; then : 31369 ZLIB_FOUND=yes 31370 else 31371 ZLIB_FOUND=no 31372 fi 31373 31374 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 31376 $as_echo_n "checking for which zlib to use... " >&6; } 31377 31378 DEFAULT_ZLIB=bundled 31379 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31380 # 31381 # On macosx default is system...on others default is 31382 # 31383 DEFAULT_ZLIB=system 31384 fi 31385 31386 if test "x${ZLIB_FOUND}" != "xyes"; then 31387 # 31388 # If we don't find any system...set default to bundled 31389 # 31390 DEFAULT_ZLIB=bundled 31391 fi 31392 31393 # 31394 # If user didn't specify, use DEFAULT_ZLIB 31395 # 31396 if test "x${with_zlib}" = "x"; then 31397 with_zlib=${DEFAULT_ZLIB} 31398 fi 31399 31400 if test "x${with_zlib}" = "xbundled"; then 31401 USE_EXTERNAL_LIBZ=false 31402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 31403 $as_echo "bundled" >&6; } 31404 elif test "x${with_zlib}" = "xsystem"; then 31405 if test "x${ZLIB_FOUND}" = "xyes"; then 31406 USE_EXTERNAL_LIBZ=true 31407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 31408 $as_echo "system" >&6; } 31409 else 31410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 31411 $as_echo "system not found" >&6; } 31412 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 31413 fi 31414 else 31415 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 31416 fi 31417 31418 31419 31420 ############################################################################### 31421 LIBZIP_CAN_USE_MMAP=true 31422 31423 31424 31425 ############################################################################### 31426 # 31427 # Check if altzone exists in time.h 31428 # 31429 31430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31431 /* end confdefs.h. */ 31432 #include <time.h> 31433 int 31434 main () 31435 { 31436 return (int)altzone; 31437 ; 31438 return 0; 31439 } 31440 _ACEOF 31441 if ac_fn_cxx_try_link "$LINENO"; then : 31442 has_altzone=yes 31443 else 31444 has_altzone=no 31445 fi 31446 rm -f core conftest.err conftest.$ac_objext \ 31447 conftest$ac_exeext conftest.$ac_ext 31448 if test "x$has_altzone" = xyes; then 31449 31450 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 31451 31452 fi 31453 31454 ############################################################################### 31455 # 31456 # Check the maths library 31457 # 31458 31459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 31460 $as_echo_n "checking for cos in -lm... " >&6; } 31461 if ${ac_cv_lib_m_cos+:} false; then : 31462 $as_echo_n "(cached) " >&6 31463 else 31464 ac_check_lib_save_LIBS=$LIBS 31465 LIBS="-lm $LIBS" 31466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31467 /* end confdefs.h. */ 31468 31469 /* Override any GCC internal prototype to avoid an error. 31470 Use char because int might match the return type of a GCC 31471 builtin and then its argument prototype would still apply. */ 31472 #ifdef __cplusplus 31473 extern "C" 31474 #endif 31475 char cos (); 31476 int 31477 main () 31478 { 31479 return cos (); 31480 ; 31481 return 0; 31482 } 31483 _ACEOF 31484 if ac_fn_cxx_try_link "$LINENO"; then : 31485 ac_cv_lib_m_cos=yes 31486 else 31487 ac_cv_lib_m_cos=no 31488 fi 31489 rm -f core conftest.err conftest.$ac_objext \ 31490 conftest$ac_exeext conftest.$ac_ext 31491 LIBS=$ac_check_lib_save_LIBS 31492 fi 31493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 31494 $as_echo "$ac_cv_lib_m_cos" >&6; } 31495 if test "x$ac_cv_lib_m_cos" = xyes; then : 31496 cat >>confdefs.h <<_ACEOF 31497 #define HAVE_LIBM 1 31498 _ACEOF 31499 31500 LIBS="-lm $LIBS" 31501 31502 else 31503 31504 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 31505 $as_echo "$as_me: Maths library was not found" >&6;} 31506 31507 fi 31508 31509 31510 31511 ############################################################################### 31512 # 31513 # Check for libdl.so 31514 31515 save_LIBS="$LIBS" 31516 LIBS="" 31517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 31518 $as_echo_n "checking for dlopen in -ldl... " >&6; } 31519 if ${ac_cv_lib_dl_dlopen+:} false; then : 31520 $as_echo_n "(cached) " >&6 31521 else 31522 ac_check_lib_save_LIBS=$LIBS 31523 LIBS="-ldl $LIBS" 31524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31525 /* end confdefs.h. */ 31526 31527 /* Override any GCC internal prototype to avoid an error. 31528 Use char because int might match the return type of a GCC 31529 builtin and then its argument prototype would still apply. */ 31530 #ifdef __cplusplus 31531 extern "C" 31532 #endif 31533 char dlopen (); 31534 int 31535 main () 31536 { 31537 return dlopen (); 31538 ; 31539 return 0; 31540 } 31541 _ACEOF 31542 if ac_fn_cxx_try_link "$LINENO"; then : 31543 ac_cv_lib_dl_dlopen=yes 31544 else 31545 ac_cv_lib_dl_dlopen=no 31546 fi 31547 rm -f core conftest.err conftest.$ac_objext \ 31548 conftest$ac_exeext conftest.$ac_ext 31549 LIBS=$ac_check_lib_save_LIBS 31550 fi 31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 31552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 31553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 31554 cat >>confdefs.h <<_ACEOF 31555 #define HAVE_LIBDL 1 31556 _ACEOF 31557 31558 LIBS="-ldl $LIBS" 31559 31560 fi 31561 31562 LIBDL="$LIBS" 31563 31564 LIBS="$save_LIBS" 31565 31566 31567 31568 ############################################################################### 31569 # 31570 # statically link libstdc++ before C++ ABI is stablized on Linux unless 31571 # dynamic build is configured on command line. 31572 # 31573 31574 # Check whether --with-stdc++lib was given. 31575 if test "${with_stdc__lib+set}" = set; then : 31576 withval=$with_stdc__lib; 31577 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 31578 && test "x$with_stdc__lib" != xdefault; then 31579 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 31580 fi 31581 31582 else 31583 with_stdc__lib=default 31584 31585 fi 31586 31587 31588 if test "x$OPENJDK_TARGET_OS" = xlinux; then 31589 # Test if -lstdc++ works. 31590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 31591 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 31592 ac_ext=cpp 31593 ac_cpp='$CXXCPP $CPPFLAGS' 31594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31597 31598 OLD_CXXFLAGS="$CXXFLAGS" 31599 CXXFLAGS="$CXXFLAGS -lstdc++" 31600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31601 /* end confdefs.h. */ 31602 31603 int 31604 main () 31605 { 31606 return 0; 31607 ; 31608 return 0; 31609 } 31610 _ACEOF 31611 if ac_fn_cxx_try_link "$LINENO"; then : 31612 has_dynamic_libstdcxx=yes 31613 else 31614 has_dynamic_libstdcxx=no 31615 fi 31616 rm -f core conftest.err conftest.$ac_objext \ 31617 conftest$ac_exeext conftest.$ac_ext 31618 CXXFLAGS="$OLD_CXXFLAGS" 31619 ac_ext=cpp 31620 ac_cpp='$CXXCPP $CPPFLAGS' 31621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31624 31625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 31626 $as_echo "$has_dynamic_libstdcxx" >&6; } 31627 31628 # Test if stdc++ can be linked statically. 31629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 31630 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 31631 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 31632 ac_ext=cpp 31633 ac_cpp='$CXXCPP $CPPFLAGS' 31634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31637 31638 OLD_LIBS="$LIBS" 31639 OLD_CXX="$CXX" 31640 LIBS="$STATIC_STDCXX_FLAGS" 31641 CXX="$CC" 31642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31643 /* end confdefs.h. */ 31644 31645 int 31646 main () 31647 { 31648 return 0; 31649 ; 31650 return 0; 31651 } 31652 _ACEOF 31653 if ac_fn_cxx_try_link "$LINENO"; then : 31654 has_static_libstdcxx=yes 31655 else 31656 has_static_libstdcxx=no 31657 fi 31658 rm -f core conftest.err conftest.$ac_objext \ 31659 conftest$ac_exeext conftest.$ac_ext 31660 LIBS="$OLD_LIBS" 31661 CXX="$OLD_CXX" 31662 ac_ext=cpp 31663 ac_cpp='$CXXCPP $CPPFLAGS' 31664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31667 31668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 31669 $as_echo "$has_static_libstdcxx" >&6; } 31670 31671 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 31672 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 31673 fi 31674 31675 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 31676 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 31677 fi 31678 31679 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 31680 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 31681 fi 31682 31683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 31684 $as_echo_n "checking how to link with libstdc++... " >&6; } 31685 # If dynamic was requested, it's available since it would fail above otherwise. 31686 # If dynamic wasn't requested, go with static unless it isn't available. 31687 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 31688 LIBCXX="$LIBCXX -lstdc++" 31689 LDCXX="$CXX" 31690 STATIC_CXX_SETTING="STATIC_CXX=false" 31691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 31692 $as_echo "dynamic" >&6; } 31693 else 31694 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 31695 LDCXX="$CC" 31696 STATIC_CXX_SETTING="STATIC_CXX=true" 31697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 31698 $as_echo "static" >&6; } 31699 fi 31700 fi 31701 31702 31703 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 31704 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 31705 31706 pkg_failed=no 31707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 31708 $as_echo_n "checking for LIBFFI... " >&6; } 31709 31710 if test -n "$LIBFFI_CFLAGS"; then 31711 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 31712 elif test -n "$PKG_CONFIG"; then 31713 if test -n "$PKG_CONFIG" && \ 31714 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 31715 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 31716 ac_status=$? 31717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31718 test $ac_status = 0; }; then 31719 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 31720 else 31721 pkg_failed=yes 31722 fi 31723 else 31724 pkg_failed=untried 31725 fi 31726 if test -n "$LIBFFI_LIBS"; then 31727 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 31728 elif test -n "$PKG_CONFIG"; then 31729 if test -n "$PKG_CONFIG" && \ 31730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 31731 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 31732 ac_status=$? 31733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31734 test $ac_status = 0; }; then 31735 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 31736 else 31737 pkg_failed=yes 31738 fi 31739 else 31740 pkg_failed=untried 31741 fi 31742 31743 31744 31745 if test $pkg_failed = yes; then 31746 31747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31748 _pkg_short_errors_supported=yes 31749 else 31750 _pkg_short_errors_supported=no 31751 fi 31752 if test $_pkg_short_errors_supported = yes; then 31753 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 31754 else 31755 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 31756 fi 31757 # Put the nasty error message in config.log where it belongs 31758 echo "$LIBFFI_PKG_ERRORS" >&5 31759 31760 as_fn_error $? "Package requirements (libffi) were not met: 31761 31762 $LIBFFI_PKG_ERRORS 31763 31764 Consider adjusting the PKG_CONFIG_PATH environment variable if you 31765 installed software in a non-standard prefix. 31766 31767 Alternatively, you may set the environment variables LIBFFI_CFLAGS 31768 and LIBFFI_LIBS to avoid the need to call pkg-config. 31769 See the pkg-config man page for more details. 31770 " "$LINENO" 5 31771 elif test $pkg_failed = untried; then 31772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31774 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31775 is in your PATH or set the PKG_CONFIG environment variable to the full 31776 path to pkg-config. 31777 31778 Alternatively, you may set the environment variables LIBFFI_CFLAGS 31779 and LIBFFI_LIBS to avoid the need to call pkg-config. 31780 See the pkg-config man page for more details. 31781 31782 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31783 See \`config.log' for more details" "$LINENO" 5; } 31784 else 31785 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 31786 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 31787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31788 $as_echo "yes" >&6; } 31789 : 31790 fi 31791 31792 fi 31793 31794 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 31795 # Extract the first word of "llvm-config", so it can be a program name with args. 31796 set dummy llvm-config; ac_word=$2 31797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31798 $as_echo_n "checking for $ac_word... " >&6; } 31799 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 31800 $as_echo_n "(cached) " >&6 31801 else 31802 if test -n "$LLVM_CONFIG"; then 31803 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 31804 else 31805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31806 for as_dir in $PATH 31807 do 31808 IFS=$as_save_IFS 31809 test -z "$as_dir" && as_dir=. 31810 for ac_exec_ext in '' $ac_executable_extensions; do 31811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31812 ac_cv_prog_LLVM_CONFIG="llvm-config" 31813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31814 break 2 31815 fi 31816 done 31817 done 31818 IFS=$as_save_IFS 31819 31820 fi 31821 fi 31822 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 31823 if test -n "$LLVM_CONFIG"; then 31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 31825 $as_echo "$LLVM_CONFIG" >&6; } 31826 else 31827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31828 $as_echo "no" >&6; } 31829 fi 31830 31831 31832 31833 if test "x$LLVM_CONFIG" != xllvm-config; then 31834 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 31835 fi 31836 31837 llvm_components="jit mcjit engine nativecodegen native" 31838 unset LLVM_CFLAGS 31839 for flag in $("$LLVM_CONFIG" --cxxflags); do 31840 if echo "${flag}" | grep -q '^-[ID]'; then 31841 if test "${flag}" != "-D_DEBUG" ; then 31842 if test "${LLVM_CFLAGS}" != "" ; then 31843 LLVM_CFLAGS="${LLVM_CFLAGS} " 31844 fi 31845 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 31846 fi 31847 fi 31848 done 31849 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 31850 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 31851 31852 unset LLVM_LDFLAGS 31853 for flag in $("${LLVM_CONFIG}" --ldflags); do 31854 if echo "${flag}" | grep -q '^-L'; then 31855 if test "${LLVM_LDFLAGS}" != ""; then 31856 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 31857 fi 31858 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 31859 fi 31860 done 31861 31862 unset LLVM_LIBS 31863 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 31864 if echo "${flag}" | grep -q '^-l'; then 31865 if test "${LLVM_LIBS}" != ""; then 31866 LLVM_LIBS="${LLVM_LIBS} " 31867 fi 31868 LLVM_LIBS="${LLVM_LIBS}${flag}" 31869 fi 31870 done 31871 31872 31873 31874 31875 fi 31876 31877 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 31878 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then 31879 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 31880 fi 31881 31882 # TODO better (platform agnostic) test 31883 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then 31884 LIBCXX="-lstdc++" 31885 fi 31886 31887 31888 31889 31890 31891 # After we have toolchain and the paths to all libraries (needed by msys), we can compile the fixpath helper 31892 31893 # When using cygwin or msys, we need a wrapper binary that renames 31894 # /cygdrive/c/ arguments into c:/ arguments and peeks into 31895 # @files and rewrites these too! This wrapper binary is 31896 # called fixpath. 31897 FIXPATH= 31898 if test "x$OPENJDK_BUILD_OS" = xwindows; then 31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 31900 $as_echo_n "checking if fixpath can be created... " >&6; } 31901 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 31902 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 31903 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 31904 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 31905 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 31906 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 31907 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 31908 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 31909 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 31910 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 31911 31912 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 31913 # @ was chosen as separator to minimize risk of other tools messing around with it 31914 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 31915 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 31916 31917 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 31918 fi 31919 rm -f $OUTPUT_ROOT/fixpath* 31920 cd $OUTPUT_ROOT 31921 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 31922 cd $CURDIR 31923 31924 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 31925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31926 $as_echo "no" >&6; } 31927 cat $OUTPUT_ROOT/fixpath1.log 31928 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 31929 fi 31930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31931 $as_echo "yes" >&6; } 31932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 31933 $as_echo_n "checking if fixpath.exe works... " >&6; } 31934 cd $OUTPUT_ROOT 31935 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 31936 cd $CURDIR 31937 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 31938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31939 $as_echo "no" >&6; } 31940 cat $OUTPUT_ROOT/fixpath2.log 31941 as_fn_error $? "fixpath did not work!" "$LINENO" 5 31942 fi 31943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31944 $as_echo "yes" >&6; } 31945 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 31946 fi 31947 31948 31949 31950 31951 ############################################################################### 31952 # 31953 # We need to do some final tweaking, when everything else is done. 31954 # 31955 ############################################################################### 31956 31957 31958 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 31959 31960 31961 # The name of the Service Agent jar. 31962 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 31963 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 31964 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 31965 fi 31966 31967 31968 31969 31970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 31971 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 31972 31973 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 31974 ENABLE_INTREE_EC=yes 31975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31976 $as_echo "yes" >&6; } 31977 else 31978 ENABLE_INTREE_EC=no 31979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31980 $as_echo "no" >&6; } 31981 fi 31982 31983 31984 31985 31986 ############################################################################### 31987 # 31988 # Configure parts of the build that only affect the build performance, 31989 # not the result. 31990 # 31991 ############################################################################### 31992 31993 31994 # How many cores do we have on this build system? 31995 31996 # Check whether --with-num-cores was given. 31997 if test "${with_num_cores+set}" = set; then : 31998 withval=$with_num_cores; 31999 fi 32000 32001 if test "x$with_num_cores" = x; then 32002 # The number of cores were not specified, try to probe them. 32003 32004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 32005 $as_echo_n "checking for number of cores... " >&6; } 32006 NUM_CORES=1 32007 FOUND_CORES=no 32008 32009 if test -f /proc/cpuinfo; then 32010 # Looks like a Linux (or cygwin) system 32011 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 32012 FOUND_CORES=yes 32013 elif test -x /usr/sbin/psrinfo; then 32014 # Looks like a Solaris system 32015 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 32016 FOUND_CORES=yes 32017 elif test -x /usr/sbin/system_profiler; then 32018 # Looks like a MacOSX system 32019 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 32020 FOUND_CORES=yes 32021 elif test -n "$NUMBER_OF_PROCESSORS"; then 32022 # On windows, look in the env 32023 NUM_CORES=$NUMBER_OF_PROCESSORS 32024 FOUND_CORES=yes 32025 fi 32026 32027 if test "x$FOUND_CORES" = xyes; then 32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 32029 $as_echo "$NUM_CORES" >&6; } 32030 else 32031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 32032 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 32033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 32034 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 32035 fi 32036 32037 32038 else 32039 NUM_CORES=$with_num_cores 32040 fi 32041 32042 32043 32044 # How much memory do we have on this build system? 32045 32046 # Check whether --with-memory-size was given. 32047 if test "${with_memory_size+set}" = set; then : 32048 withval=$with_memory_size; 32049 fi 32050 32051 if test "x$with_memory_size" = x; then 32052 # The memory size was not specified, try to probe it. 32053 32054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 32055 $as_echo_n "checking for memory size... " >&6; } 32056 # Default to 1024 MB 32057 MEMORY_SIZE=1024 32058 FOUND_MEM=no 32059 32060 if test -f /proc/meminfo; then 32061 # Looks like a Linux (or cygwin) system 32062 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 32063 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 32064 FOUND_MEM=yes 32065 elif test -x /usr/sbin/prtconf; then 32066 # Looks like a Solaris system 32067 MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'` 32068 FOUND_MEM=yes 32069 elif test -x /usr/sbin/system_profiler; then 32070 # Looks like a MacOSX system 32071 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 32072 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 32073 FOUND_MEM=yes 32074 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 32075 # Windows, but without cygwin 32076 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 32077 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 32078 FOUND_MEM=yes 32079 fi 32080 32081 if test "x$FOUND_MEM" = xyes; then 32082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 32083 $as_echo "$MEMORY_SIZE MB" >&6; } 32084 else 32085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 32086 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 32087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 32088 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 32089 fi 32090 32091 else 32092 MEMORY_SIZE=$with_memory_size 32093 fi 32094 32095 32096 32097 # Provide a decent default number of parallel jobs for make depending on 32098 # number of cores, amount of memory and machine architecture. 32099 32100 # Check whether --with-jobs was given. 32101 if test "${with_jobs+set}" = set; then : 32102 withval=$with_jobs; 32103 fi 32104 32105 if test "x$with_jobs" = x; then 32106 # Number of jobs was not specified, calculate. 32107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 32108 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 32109 # Approximate memory in GB, rounding up a bit. 32110 memory_gb=`expr $MEMORY_SIZE / 1100` 32111 # Pick the lowest of memory in gb and number of cores. 32112 if test "$memory_gb" -lt "$NUM_CORES"; then 32113 JOBS="$memory_gb" 32114 else 32115 JOBS="$NUM_CORES" 32116 # On bigger machines, leave some room for other processes to run 32117 if test "$JOBS" -gt "4"; then 32118 JOBS=`expr $JOBS '*' 90 / 100` 32119 fi 32120 fi 32121 # Cap number of jobs to 16 32122 if test "$JOBS" -gt "16"; then 32123 JOBS=16 32124 fi 32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 32126 $as_echo "$JOBS" >&6; } 32127 else 32128 JOBS=$with_jobs 32129 fi 32130 32131 32132 32133 # Setup smart javac (after cores and memory have been setup) 32134 32135 32136 # Check whether --with-sjavac-server-java was given. 32137 if test "${with_sjavac_server_java+set}" = set; then : 32138 withval=$with_sjavac_server_java; 32139 fi 32140 32141 32142 if test "x$with_sjavac_server_java" != x; then 32143 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 32144 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 32145 if test "x$FOUND_VERSION" = x; then 32146 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 32147 fi 32148 else 32149 SJAVAC_SERVER_JAVA="" 32150 # Hotspot specific options. 32151 32152 # Test if -verbosegc is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 32153 # If so, then append -verbosegc to SJAVAC_SERVER_JAVA 32154 FOUND_WARN=`$JAVA -verbosegc -version 2>&1 | grep -i warn` 32155 FOUND_VERSION=`$JAVA -verbosegc -version 2>&1 | grep " version \""` 32156 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32157 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 32158 fi 32159 32160 # JRockit specific options. 32161 32162 # Test if -Xverbose:gc is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 32163 # If so, then append -Xverbose:gc to SJAVAC_SERVER_JAVA 32164 FOUND_WARN=`$JAVA -Xverbose:gc -version 2>&1 | grep -i warn` 32165 FOUND_VERSION=`$JAVA -Xverbose:gc -version 2>&1 | grep " version \""` 32166 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32167 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 32168 fi 32169 32170 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 32171 fi 32172 32173 32174 32175 # Check whether --with-sjavac-server-cores was given. 32176 if test "${with_sjavac_server_cores+set}" = set; then : 32177 withval=$with_sjavac_server_cores; 32178 fi 32179 32180 if test "x$with_sjavac_server_cores" != x; then 32181 SJAVAC_SERVER_CORES="$with_sjavac_server_cores" 32182 else 32183 if test "$NUM_CORES" -gt 16; then 32184 # We set this arbitrary limit because we want to limit the heap 32185 # size of the javac server. 32186 # In the future we will make the javac compilers in the server 32187 # share more and more state, thus enabling us to use more and 32188 # more concurrent threads in the server. 32189 SJAVAC_SERVER_CORES="16" 32190 else 32191 SJAVAC_SERVER_CORES="$NUM_CORES" 32192 fi 32193 32194 if test "$MEMORY_SIZE" -gt "17000"; then 32195 MAX_HEAP_MEM=10000 32196 32197 # Test if -d64 is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32198 # If so, then append -d64 to SJAVAC_SERVER_JAVA 32199 FOUND_WARN=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1 | grep -i warn` 32200 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1 | grep " version \""` 32201 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32202 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 32203 fi 32204 32205 32206 # Test if -Xms10G -Xmx10G is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32207 # If so, then append -Xms10G -Xmx10G to SJAVAC_SERVER_JAVA 32208 FOUND_WARN=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep -i warn` 32209 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep " version \""` 32210 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32211 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 32212 fi 32213 32214 elif test "$MEMORY_SIZE" -gt "10000"; then 32215 MAX_HEAP_MEM=6000 32216 32217 # Test if -d64 is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32218 # If so, then append -d64 to SJAVAC_SERVER_JAVA 32219 FOUND_WARN=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1 | grep -i warn` 32220 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1 | grep " version \""` 32221 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32222 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 32223 fi 32224 32225 32226 # Test if -Xms6G -Xmx6G is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32227 # If so, then append -Xms6G -Xmx6G to SJAVAC_SERVER_JAVA 32228 FOUND_WARN=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep -i warn` 32229 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep " version \""` 32230 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32231 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 32232 fi 32233 32234 elif test "$MEMORY_SIZE" -gt "5000"; then 32235 MAX_HEAP_MEM=3000 32236 32237 # Test if -d64 is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32238 # If so, then append -d64 to SJAVAC_SERVER_JAVA 32239 FOUND_WARN=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1 | grep -i warn` 32240 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1 | grep " version \""` 32241 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32242 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 32243 fi 32244 32245 32246 # Test if -Xms1G -Xmx3G is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32247 # If so, then append -Xms1G -Xmx3G to SJAVAC_SERVER_JAVA 32248 FOUND_WARN=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep -i warn` 32249 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep " version \""` 32250 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32251 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 32252 fi 32253 32254 elif test "$MEMORY_SIZE" -gt "3800"; then 32255 MAX_HEAP_MEM=2500 32256 32257 # Test if -Xms1G -Xmx2500M is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32258 # If so, then append -Xms1G -Xmx2500M to SJAVAC_SERVER_JAVA 32259 FOUND_WARN=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep -i warn` 32260 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep " version \""` 32261 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32262 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 32263 fi 32264 32265 elif test "$MEMORY_SIZE" -gt "1900"; then 32266 MAX_HEAP_MEM=1200 32267 32268 # Test if -Xms700M -Xmx1400M is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32269 # If so, then append -Xms700M -Xmx1400M to SJAVAC_SERVER_JAVA 32270 FOUND_WARN=`$SJAVAC_SERVER_JAVA -Xms700M -Xmx1400M -version 2>&1 | grep -i warn` 32271 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -Xms700M -Xmx1400M -version 2>&1 | grep " version \""` 32272 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32273 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms700M -Xmx1400M" 32274 fi 32275 32276 elif test "$MEMORY_SIZE" -gt "1000"; then 32277 MAX_HEAP_MEM=900 32278 32279 # Test if -Xms400M -Xmx1100M is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32280 # If so, then append -Xms400M -Xmx1100M to SJAVAC_SERVER_JAVA 32281 FOUND_WARN=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1 | grep -i warn` 32282 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1 | grep " version \""` 32283 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32284 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 32285 fi 32286 32287 else 32288 MAX_HEAP_MEM=512 32289 32290 # Test if -Xms256M -Xmx512M is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32291 # If so, then append -Xms256M -Xmx512M to SJAVAC_SERVER_JAVA 32292 FOUND_WARN=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep -i warn` 32293 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep " version \""` 32294 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32295 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 32296 fi 32297 32298 fi 32299 32300 32301 # Test if -XX:PermSize=32m is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32302 # If so, then append -XX:PermSize=32m to SJAVAC_SERVER_JAVA 32303 FOUND_WARN=`$SJAVAC_SERVER_JAVA -XX:PermSize=32m -version 2>&1 | grep -i warn` 32304 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -XX:PermSize=32m -version 2>&1 | grep " version \""` 32305 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32306 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -XX:PermSize=32m" 32307 fi 32308 32309 32310 # Test if -XX:MaxPermSize=160m is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32311 # If so, then append -XX:MaxPermSize=160m to SJAVAC_SERVER_JAVA 32312 FOUND_WARN=`$SJAVAC_SERVER_JAVA -XX:MaxPermSize=160m -version 2>&1 | grep -i warn` 32313 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -XX:MaxPermSize=160m -version 2>&1 | grep " version \""` 32314 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32315 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -XX:MaxPermSize=160m" 32316 fi 32317 32318 32319 # Test if -XX:ThreadStackSize=$STACK_SIZE is a valid argument to $SJAVAC_SERVER_JAVA (often is $JAVA passed as $SJAVAC_SERVER_JAVA) 32320 # If so, then append -XX:ThreadStackSize=$STACK_SIZE to SJAVAC_SERVER_JAVA 32321 FOUND_WARN=`$SJAVAC_SERVER_JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep -i warn` 32322 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep " version \""` 32323 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32324 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -XX:ThreadStackSize=$STACK_SIZE" 32325 fi 32326 32327 32328 MAX_COMPILERS_IN_HEAP=`expr $MAX_HEAP_MEM / 501` 32329 if test "$SJAVAC_SERVER_CORES" -gt "$MAX_COMPILERS_IN_HEAP"; then 32330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if number of server cores must be reduced" >&5 32331 $as_echo_n "checking if number of server cores must be reduced... " >&6; } 32332 SJAVAC_SERVER_CORES="$MAX_COMPILERS_IN_HEAP" 32333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, to $SJAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&5 32334 $as_echo "yes, to $SJAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&6; } 32335 fi 32336 fi 32337 32338 32339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 32340 $as_echo_n "checking whether to use sjavac... " >&6; } 32341 # Check whether --enable-sjavac was given. 32342 if test "${enable_sjavac+set}" = set; then : 32343 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 32344 else 32345 ENABLE_SJAVAC='no' 32346 fi 32347 32348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 32349 $as_echo "$ENABLE_SJAVAC" >&6; } 32350 32351 32352 if test "x$ENABLE_SJAVAC" = xyes; then 32353 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 32354 else 32355 SJAVAC_SERVER_DIR= 32356 fi 32357 32358 32359 32360 32361 # Can the C/C++ compiler use precompiled headers? 32362 32363 32364 ############################################################################### 32365 # 32366 # Can the C/C++ compiler use precompiled headers? 32367 # 32368 # Check whether --enable-precompiled-headers was given. 32369 if test "${enable_precompiled_headers+set}" = set; then : 32370 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 32371 else 32372 ENABLE_PRECOMPH=yes 32373 fi 32374 32375 32376 USE_PRECOMPILED_HEADER=1 32377 if test "x$ENABLE_PRECOMPH" = xno; then 32378 USE_PRECOMPILED_HEADER=0 32379 fi 32380 32381 if test "x$ENABLE_PRECOMPH" = xyes; then 32382 # Check that the compiler actually supports precomp headers. 32383 if test "x$GCC" = xyes; then 32384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 32385 $as_echo_n "checking that precompiled headers work... " >&6; } 32386 echo "int alfa();" > conftest.h 32387 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 32388 if test ! -f conftest.hpp.gch; then 32389 USE_PRECOMPILED_HEADER=0 32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32391 $as_echo "no" >&6; } 32392 else 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32394 $as_echo "yes" >&6; } 32395 fi 32396 rm -f conftest.h conftest.hpp.gch 32397 fi 32398 fi 32399 32400 32401 32402 32403 # Setup use of ccache, if available 32404 32405 # Check whether --enable-ccache was given. 32406 if test "${enable_ccache+set}" = set; then : 32407 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache} 32408 else 32409 ENABLE_CCACHE=yes 32410 fi 32411 32412 if test "x$ENABLE_CCACHE" = xyes; then 32413 # Extract the first word of "ccache", so it can be a program name with args. 32414 set dummy ccache; ac_word=$2 32415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32416 $as_echo_n "checking for $ac_word... " >&6; } 32417 if ${ac_cv_path_CCACHE+:} false; then : 32418 $as_echo_n "(cached) " >&6 32419 else 32420 case $CCACHE in 32421 [\\/]* | ?:[\\/]*) 32422 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 32423 ;; 32424 *) 32425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32426 for as_dir in $PATH 32427 do 32428 IFS=$as_save_IFS 32429 test -z "$as_dir" && as_dir=. 32430 for ac_exec_ext in '' $ac_executable_extensions; do 32431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 32432 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 32433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32434 break 2 32435 fi 32436 done 32437 done 32438 IFS=$as_save_IFS 32439 32440 ;; 32441 esac 32442 fi 32443 CCACHE=$ac_cv_path_CCACHE 32444 if test -n "$CCACHE"; then 32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 32446 $as_echo "$CCACHE" >&6; } 32447 else 32448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32449 $as_echo "no" >&6; } 32450 fi 32451 32452 32453 else 32454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5 32455 $as_echo_n "checking for ccache... " >&6; } 32456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5 32457 $as_echo "explicitly disabled" >&6; } 32458 CCACHE= 32459 fi 32460 32461 32462 32463 # Check whether --with-ccache-dir was given. 32464 if test "${with_ccache_dir+set}" = set; then : 32465 withval=$with_ccache_dir; 32466 fi 32467 32468 32469 if test "x$with_ccache_dir" != x; then 32470 # When using a non home ccache directory, assume the use is to share ccache files 32471 # with other users. Thus change the umask. 32472 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 32473 fi 32474 CCACHE_FOUND="" 32475 if test "x$CCACHE" != x; then 32476 32477 if test "x$CCACHE" != x; then 32478 CCACHE_FOUND="true" 32479 # Only use ccache if it is 3.1.4 or later, which supports 32480 # precompiled headers. 32481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 32482 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 32483 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 32484 if test "x$HAS_GOOD_CCACHE" = x; then 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 32486 $as_echo "no, disabling ccache" >&6; } 32487 CCACHE= 32488 else 32489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32490 $as_echo "yes" >&6; } 32491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 32492 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 32493 PUSHED_FLAGS="$CXXFLAGS" 32494 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 32495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32496 /* end confdefs.h. */ 32497 32498 int 32499 main () 32500 { 32501 32502 ; 32503 return 0; 32504 } 32505 _ACEOF 32506 if ac_fn_cxx_try_compile "$LINENO"; then : 32507 CC_KNOWS_CCACHE_TRICK=yes 32508 else 32509 CC_KNOWS_CCACHE_TRICK=no 32510 fi 32511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32512 CXXFLAGS="$PUSHED_FLAGS" 32513 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 32514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32515 $as_echo "yes" >&6; } 32516 else 32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 32518 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 32519 CCACHE= 32520 fi 32521 fi 32522 fi 32523 32524 if test "x$CCACHE" != x; then 32525 CCACHE_SLOPPINESS=time_macros 32526 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 32527 CCACHE_FLAGS=-fpch-preprocess 32528 32529 if test "x$SET_CCACHE_DIR" != x; then 32530 mkdir -p $CCACHE_DIR > /dev/null 2>&1 32531 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 32532 fi 32533 fi 32534 32535 fi 32536 32537 32538 ############################################################################### 32539 # 32540 # And now the finish... 32541 # 32542 ############################################################################### 32543 32544 # Check for some common pitfalls 32545 32546 if test x"$OPENJDK_BUILD_OS" = xwindows; then 32547 file_to_test="$SRC_ROOT/LICENSE" 32548 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 32549 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 32550 fi 32551 fi 32552 32553 32554 32555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 32556 $as_echo_n "checking if build directory is on local disk... " >&6; } 32557 32558 # df -l lists only local disks; if the given directory is not found then 32559 # a non-zero exit code is given 32560 if test "x$DF" = x; then 32561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32562 # msys does not have df; use Windows "net use" instead. 32563 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 32564 if test "x$IS_NETWORK_DISK" = x; then 32565 OUTPUT_DIR_IS_LOCAL="yes" 32566 else 32567 OUTPUT_DIR_IS_LOCAL="no" 32568 fi 32569 else 32570 # No df here, say it's local 32571 OUTPUT_DIR_IS_LOCAL="yes" 32572 fi 32573 else 32574 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 32575 OUTPUT_DIR_IS_LOCAL="yes" 32576 else 32577 OUTPUT_DIR_IS_LOCAL="no" 32578 fi 32579 fi 32580 32581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 32582 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 32583 32584 32585 32586 # Check if the user has any old-style ALT_ variables set. 32587 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 32588 32589 # Before generating output files, test if they exist. If they do, this is a reconfigure. 32590 # Since we can't properly handle the dependencies for this, warn the user about the situation 32591 if test -e $OUTPUT_ROOT/spec.gmk; then 32592 IS_RECONFIGURE=yes 32593 else 32594 IS_RECONFIGURE=no 32595 fi 32596 32597 if test -e $SRC_ROOT/build/.hide-configure-performance-hints; then 32598 HIDE_PERFORMANCE_HINTS=yes 32599 else 32600 HIDE_PERFORMANCE_HINTS=no 32601 # Hide it the next time around... 32602 $TOUCH $SRC_ROOT/build/.hide-configure-performance-hints > /dev/null 2>&1 32603 fi 32604 32605 32606 32607 # At the end, call the custom hook. (Dummy macro if no custom sources available) 32608 32609 32610 # We're messing a bit with internal autoconf variables to put the config.status 32611 # in the output directory instead of the current directory. 32612 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 32613 # Create the actual output files. Now the main work of configure is done. 32614 cat >confcache <<\_ACEOF 32615 # This file is a shell script that caches the results of configure 32616 # tests run on this system so they can be shared between configure 32617 # scripts and configure runs, see configure's option --config-cache. 32618 # It is not useful on other systems. If it contains results you don't 32619 # want to keep, you may remove or edit it. 32620 # 32621 # config.status only pays attention to the cache file if you give it 32622 # the --recheck option to rerun configure. 32623 # 32624 # `ac_cv_env_foo' variables (set or unset) will be overridden when 32625 # loading this file, other *unset* `ac_cv_foo' will be assigned the 32626 # following values. 32627 32628 _ACEOF 32629 32630 # The following way of writing the cache mishandles newlines in values, 32631 # but we know of no workaround that is simple, portable, and efficient. 32632 # So, we kill variables containing newlines. 32633 # Ultrix sh set writes to stderr and can't be redirected directly, 32634 # and sets the high bit in the cache file unless we assign to the vars. 32635 ( 32636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32637 eval ac_val=\$$ac_var 32638 case $ac_val in #( 32639 *${as_nl}*) 32640 case $ac_var in #( 32641 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32642 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32643 esac 32644 case $ac_var in #( 32645 _ | IFS | as_nl) ;; #( 32646 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32647 *) { eval $ac_var=; unset $ac_var;} ;; 32648 esac ;; 32649 esac 32650 done 32651 32652 (set) 2>&1 | 32653 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32654 *${as_nl}ac_space=\ *) 32655 # `set' does not quote correctly, so add quotes: double-quote 32656 # substitution turns \\\\ into \\, and sed turns \\ into \. 32657 sed -n \ 32658 "s/'/'\\\\''/g; 32659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32660 ;; #( 32661 *) 32662 # `set' quotes correctly as required by POSIX, so do not add quotes. 32663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32664 ;; 32665 esac | 32666 sort 32667 ) | 32668 sed ' 32669 /^ac_cv_env_/b end 32670 t clear 32671 :clear 32672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32673 t end 32674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32675 :end' >>confcache 32676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32677 if test -w "$cache_file"; then 32678 if test "x$cache_file" != "x/dev/null"; then 32679 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32680 $as_echo "$as_me: updating cache $cache_file" >&6;} 32681 if test ! -f "$cache_file" || test -h "$cache_file"; then 32682 cat confcache >"$cache_file" 32683 else 32684 case $cache_file in #( 32685 */* | ?:*) 32686 mv -f confcache "$cache_file"$$ && 32687 mv -f "$cache_file"$$ "$cache_file" ;; #( 32688 *) 32689 mv -f confcache "$cache_file" ;; 32690 esac 32691 fi 32692 fi 32693 else 32694 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32695 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32696 fi 32697 fi 32698 rm -f confcache 32699 32700 test "x$prefix" = xNONE && prefix=$ac_default_prefix 32701 # Let make expand exec_prefix. 32702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32703 32704 DEFS=-DHAVE_CONFIG_H 32705 32706 ac_libobjs= 32707 ac_ltlibobjs= 32708 U= 32709 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32710 # 1. Remove the extension, and $U if already installed. 32711 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32712 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 32713 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32714 # will be set to the directory where LIBOBJS objects are built. 32715 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32716 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32717 done 32718 LIBOBJS=$ac_libobjs 32719 32720 LTLIBOBJS=$ac_ltlibobjs 32721 32722 32723 32724 : "${CONFIG_STATUS=./config.status}" 32725 ac_write_fail=0 32726 ac_clean_files_save=$ac_clean_files 32727 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 32728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 32729 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 32730 as_write_fail=0 32731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 32732 #! $SHELL 32733 # Generated by $as_me. 32734 # Run this file to recreate the current configuration. 32735 # Compiler output produced by configure, useful for debugging 32736 # configure, is in config.log if it exists. 32737 32738 debug=false 32739 ac_cs_recheck=false 32740 ac_cs_silent=false 32741 32742 SHELL=\${CONFIG_SHELL-$SHELL} 32743 export SHELL 32744 _ASEOF 32745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 32746 ## -------------------- ## 32747 ## M4sh Initialization. ## 32748 ## -------------------- ## 32749 32750 # Be more Bourne compatible 32751 DUALCASE=1; export DUALCASE # for MKS sh 32752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 32753 emulate sh 32754 NULLCMD=: 32755 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 32756 # is contrary to our usage. Disable this feature. 32757 alias -g '${1+"$@"}'='"$@"' 32758 setopt NO_GLOB_SUBST 32759 else 32760 case `(set -o) 2>/dev/null` in #( 32761 *posix*) : 32762 set -o posix ;; #( 32763 *) : 32764 ;; 32765 esac 32766 fi 32767 32768 32769 as_nl=' 32770 ' 32771 export as_nl 32772 # Printing a long string crashes Solaris 7 /usr/bin/printf. 32773 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 32774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 32775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 32776 # Prefer a ksh shell builtin over an external printf program on Solaris, 32777 # but without wasting forks for bash or zsh. 32778 if test -z "$BASH_VERSION$ZSH_VERSION" \ 32779 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 32780 as_echo='print -r --' 32781 as_echo_n='print -rn --' 32782 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 32783 as_echo='printf %s\n' 32784 as_echo_n='printf %s' 32785 else 32786 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 32787 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 32788 as_echo_n='/usr/ucb/echo -n' 32789 else 32790 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 32791 as_echo_n_body='eval 32792 arg=$1; 32793 case $arg in #( 32794 *"$as_nl"*) 32795 expr "X$arg" : "X\\(.*\\)$as_nl"; 32796 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 32797 esac; 32798 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 32799 ' 32800 export as_echo_n_body 32801 as_echo_n='sh -c $as_echo_n_body as_echo' 32802 fi 32803 export as_echo_body 32804 as_echo='sh -c $as_echo_body as_echo' 32805 fi 32806 32807 # The user is always right. 32808 if test "${PATH_SEPARATOR+set}" != set; then 32809 PATH_SEPARATOR=: 32810 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 32811 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 32812 PATH_SEPARATOR=';' 32813 } 32814 fi 32815 32816 32817 # IFS 32818 # We need space, tab and new line, in precisely that order. Quoting is 32819 # there to prevent editors from complaining about space-tab. 32820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 32821 # splitting by setting IFS to empty value.) 32822 IFS=" "" $as_nl" 32823 32824 # Find who we are. Look in the path if we contain no directory separator. 32825 as_myself= 32826 case $0 in #(( 32827 *[\\/]* ) as_myself=$0 ;; 32828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32829 for as_dir in $PATH 32830 do 32831 IFS=$as_save_IFS 32832 test -z "$as_dir" && as_dir=. 32833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 32834 done 32835 IFS=$as_save_IFS 32836 32837 ;; 32838 esac 32839 # We did not find ourselves, most probably we were run as `sh COMMAND' 32840 # in which case we are not to be found in the path. 32841 if test "x$as_myself" = x; then 32842 as_myself=$0 32843 fi 32844 if test ! -f "$as_myself"; then 32845 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 32846 exit 1 32847 fi 32848 32849 # Unset variables that we do not need and which cause bugs (e.g. in 32850 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 32851 # suppresses any "Segmentation fault" message there. '((' could 32852 # trigger a bug in pdksh 5.2.14. 32853 for as_var in BASH_ENV ENV MAIL MAILPATH 32854 do eval test x\${$as_var+set} = xset \ 32855 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 32856 done 32857 PS1='$ ' 32858 PS2='> ' 32859 PS4='+ ' 32860 32861 # NLS nuisances. 32862 LC_ALL=C 32863 export LC_ALL 32864 LANGUAGE=C 32865 export LANGUAGE 32866 32867 # CDPATH. 32868 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 32869 32870 32871 # as_fn_error STATUS ERROR [LINENO LOG_FD] 32872 # ---------------------------------------- 32873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 32874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 32875 # script with STATUS, using 1 if that was 0. 32876 as_fn_error () 32877 { 32878 as_status=$1; test $as_status -eq 0 && as_status=1 32879 if test "$4"; then 32880 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 32881 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 32882 fi 32883 $as_echo "$as_me: error: $2" >&2 32884 as_fn_exit $as_status 32885 } # as_fn_error 32886 32887 32888 # as_fn_set_status STATUS 32889 # ----------------------- 32890 # Set $? to STATUS, without forking. 32891 as_fn_set_status () 32892 { 32893 return $1 32894 } # as_fn_set_status 32895 32896 # as_fn_exit STATUS 32897 # ----------------- 32898 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 32899 as_fn_exit () 32900 { 32901 set +e 32902 as_fn_set_status $1 32903 exit $1 32904 } # as_fn_exit 32905 32906 # as_fn_unset VAR 32907 # --------------- 32908 # Portably unset VAR. 32909 as_fn_unset () 32910 { 32911 { eval $1=; unset $1;} 32912 } 32913 as_unset=as_fn_unset 32914 # as_fn_append VAR VALUE 32915 # ---------------------- 32916 # Append the text in VALUE to the end of the definition contained in VAR. Take 32917 # advantage of any shell optimizations that allow amortized linear growth over 32918 # repeated appends, instead of the typical quadratic growth present in naive 32919 # implementations. 32920 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 32921 eval 'as_fn_append () 32922 { 32923 eval $1+=\$2 32924 }' 32925 else 32926 as_fn_append () 32927 { 32928 eval $1=\$$1\$2 32929 } 32930 fi # as_fn_append 32931 32932 # as_fn_arith ARG... 32933 # ------------------ 32934 # Perform arithmetic evaluation on the ARGs, and store the result in the 32935 # global $as_val. Take advantage of shells that can avoid forks. The arguments 32936 # must be portable across $(()) and expr. 32937 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 32938 eval 'as_fn_arith () 32939 { 32940 as_val=$(( $* )) 32941 }' 32942 else 32943 as_fn_arith () 32944 { 32945 as_val=`expr "$@" || test $? -eq 1` 32946 } 32947 fi # as_fn_arith 32948 32949 32950 if expr a : '\(a\)' >/dev/null 2>&1 && 32951 test "X`expr 00001 : '.*\(...\)'`" = X001; then 32952 as_expr=expr 32953 else 32954 as_expr=false 32955 fi 32956 32957 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 32958 as_basename=basename 32959 else 32960 as_basename=false 32961 fi 32962 32963 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 32964 as_dirname=dirname 32965 else 32966 as_dirname=false 32967 fi 32968 32969 as_me=`$as_basename -- "$0" || 32970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 32971 X"$0" : 'X\(//\)$' \| \ 32972 X"$0" : 'X\(/\)' \| . 2>/dev/null || 32973 $as_echo X/"$0" | 32974 sed '/^.*\/\([^/][^/]*\)\/*$/{ 32975 s//\1/ 32976 q 32977 } 32978 /^X\/\(\/\/\)$/{ 32979 s//\1/ 32980 q 32981 } 32982 /^X\/\(\/\).*/{ 32983 s//\1/ 32984 q 32985 } 32986 s/.*/./; q'` 32987 32988 # Avoid depending upon Character Ranges. 32989 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 32990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 32992 as_cr_digits='0123456789' 32993 as_cr_alnum=$as_cr_Letters$as_cr_digits 32994 32995 ECHO_C= ECHO_N= ECHO_T= 32996 case `echo -n x` in #((((( 32997 -n*) 32998 case `echo 'xy\c'` in 32999 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33000 xy) ECHO_C='\c';; 33001 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33002 ECHO_T=' ';; 33003 esac;; 33004 *) 33005 ECHO_N='-n';; 33006 esac 33007 33008 rm -f conf$$ conf$$.exe conf$$.file 33009 if test -d conf$$.dir; then 33010 rm -f conf$$.dir/conf$$.file 33011 else 33012 rm -f conf$$.dir 33013 mkdir conf$$.dir 2>/dev/null 33014 fi 33015 if (echo >conf$$.file) 2>/dev/null; then 33016 if ln -s conf$$.file conf$$ 2>/dev/null; then 33017 as_ln_s='ln -s' 33018 # ... but there are two gotchas: 33019 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33020 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33021 # In both cases, we have to default to `cp -p'. 33022 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33023 as_ln_s='cp -p' 33024 elif ln conf$$.file conf$$ 2>/dev/null; then 33025 as_ln_s=ln 33026 else 33027 as_ln_s='cp -p' 33028 fi 33029 else 33030 as_ln_s='cp -p' 33031 fi 33032 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33033 rmdir conf$$.dir 2>/dev/null 33034 33035 33036 # as_fn_mkdir_p 33037 # ------------- 33038 # Create "$as_dir" as a directory, including parents if necessary. 33039 as_fn_mkdir_p () 33040 { 33041 33042 case $as_dir in #( 33043 -*) as_dir=./$as_dir;; 33044 esac 33045 test -d "$as_dir" || eval $as_mkdir_p || { 33046 as_dirs= 33047 while :; do 33048 case $as_dir in #( 33049 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33050 *) as_qdir=$as_dir;; 33051 esac 33052 as_dirs="'$as_qdir' $as_dirs" 33053 as_dir=`$as_dirname -- "$as_dir" || 33054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33055 X"$as_dir" : 'X\(//\)[^/]' \| \ 33056 X"$as_dir" : 'X\(//\)$' \| \ 33057 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33058 $as_echo X"$as_dir" | 33059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33060 s//\1/ 33061 q 33062 } 33063 /^X\(\/\/\)[^/].*/{ 33064 s//\1/ 33065 q 33066 } 33067 /^X\(\/\/\)$/{ 33068 s//\1/ 33069 q 33070 } 33071 /^X\(\/\).*/{ 33072 s//\1/ 33073 q 33074 } 33075 s/.*/./; q'` 33076 test -d "$as_dir" && break 33077 done 33078 test -z "$as_dirs" || eval "mkdir $as_dirs" 33079 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33080 33081 33082 } # as_fn_mkdir_p 33083 if mkdir -p . 2>/dev/null; then 33084 as_mkdir_p='mkdir -p "$as_dir"' 33085 else 33086 test -d ./-p && rmdir ./-p 33087 as_mkdir_p=false 33088 fi 33089 33090 if test -x / >/dev/null 2>&1; then 33091 as_test_x='test -x' 33092 else 33093 if ls -dL / >/dev/null 2>&1; then 33094 as_ls_L_option=L 33095 else 33096 as_ls_L_option= 33097 fi 33098 as_test_x=' 33099 eval sh -c '\'' 33100 if test -d "$1"; then 33101 test -d "$1/."; 33102 else 33103 case $1 in #( 33104 -*)set "./$1";; 33105 esac; 33106 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 33107 ???[sx]*):;;*)false;;esac;fi 33108 '\'' sh 33109 ' 33110 fi 33111 as_executable_p=$as_test_x 33112 33113 # Sed expression to map a string onto a valid CPP name. 33114 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33115 33116 # Sed expression to map a string onto a valid variable name. 33117 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33118 33119 33120 exec 6>&1 33121 ## ----------------------------------- ## 33122 ## Main body of $CONFIG_STATUS script. ## 33123 ## ----------------------------------- ## 33124 _ASEOF 33125 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33126 33127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33128 # Save the log message, to keep $0 and so on meaningful, and to 33129 # report actual input values of CONFIG_FILES etc. instead of their 33130 # values after options handling. 33131 ac_log=" 33132 This file was extended by OpenJDK $as_me jdk8, which was 33133 generated by GNU Autoconf 2.68. Invocation command line was 33134 33135 CONFIG_FILES = $CONFIG_FILES 33136 CONFIG_HEADERS = $CONFIG_HEADERS 33137 CONFIG_LINKS = $CONFIG_LINKS 33138 CONFIG_COMMANDS = $CONFIG_COMMANDS 33139 $ $0 $@ 33140 33141 on `(hostname || uname -n) 2>/dev/null | sed 1q` 33142 " 33143 33144 _ACEOF 33145 33146 case $ac_config_files in *" 33147 "*) set x $ac_config_files; shift; ac_config_files=$*;; 33148 esac 33149 33150 case $ac_config_headers in *" 33151 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33152 esac 33153 33154 33155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33156 # Files that config.status was made for. 33157 config_files="$ac_config_files" 33158 config_headers="$ac_config_headers" 33159 33160 _ACEOF 33161 33162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33163 ac_cs_usage="\ 33164 \`$as_me' instantiates files and other configuration actions 33165 from templates according to the current configuration. Unless the files 33166 and actions are specified as TAGs, all are instantiated by default. 33167 33168 Usage: $0 [OPTION]... [TAG]... 33169 33170 -h, --help print this help, then exit 33171 -V, --version print version number and configuration settings, then exit 33172 --config print configuration, then exit 33173 -q, --quiet, --silent 33174 do not print progress messages 33175 -d, --debug don't remove temporary files 33176 --recheck update $as_me by reconfiguring in the same conditions 33177 --file=FILE[:TEMPLATE] 33178 instantiate the configuration file FILE 33179 --header=FILE[:TEMPLATE] 33180 instantiate the configuration header FILE 33181 33182 Configuration files: 33183 $config_files 33184 33185 Configuration headers: 33186 $config_headers 33187 33188 Report bugs to <build-dev@openjdk.java.net>. 33189 OpenJDK home page: <http://openjdk.java.net>." 33190 33191 _ACEOF 33192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33194 ac_cs_version="\\ 33195 OpenJDK config.status jdk8 33196 configured by $0, generated by GNU Autoconf 2.68, 33197 with options \\"\$ac_cs_config\\" 33198 33199 Copyright (C) 2010 Free Software Foundation, Inc. 33200 This config.status script is free software; the Free Software Foundation 33201 gives unlimited permission to copy, distribute and modify it." 33202 33203 ac_pwd='$ac_pwd' 33204 srcdir='$srcdir' 33205 AWK='$AWK' 33206 test -n "\$AWK" || AWK=awk 33207 _ACEOF 33208 33209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33210 # The default lists apply if the user does not specify any file. 33211 ac_need_defaults=: 33212 while test $# != 0 33213 do 33214 case $1 in 33215 --*=?*) 33216 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33218 ac_shift=: 33219 ;; 33220 --*=) 33221 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33222 ac_optarg= 33223 ac_shift=: 33224 ;; 33225 *) 33226 ac_option=$1 33227 ac_optarg=$2 33228 ac_shift=shift 33229 ;; 33230 esac 33231 33232 case $ac_option in 33233 # Handling of the options. 33234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33235 ac_cs_recheck=: ;; 33236 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33237 $as_echo "$ac_cs_version"; exit ;; 33238 --config | --confi | --conf | --con | --co | --c ) 33239 $as_echo "$ac_cs_config"; exit ;; 33240 --debug | --debu | --deb | --de | --d | -d ) 33241 debug=: ;; 33242 --file | --fil | --fi | --f ) 33243 $ac_shift 33244 case $ac_optarg in 33245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33246 '') as_fn_error $? "missing file argument" ;; 33247 esac 33248 as_fn_append CONFIG_FILES " '$ac_optarg'" 33249 ac_need_defaults=false;; 33250 --header | --heade | --head | --hea ) 33251 $ac_shift 33252 case $ac_optarg in 33253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33254 esac 33255 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33256 ac_need_defaults=false;; 33257 --he | --h) 33258 # Conflict between --help and --header 33259 as_fn_error $? "ambiguous option: \`$1' 33260 Try \`$0 --help' for more information.";; 33261 --help | --hel | -h ) 33262 $as_echo "$ac_cs_usage"; exit ;; 33263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33264 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33265 ac_cs_silent=: ;; 33266 33267 # This is an error. 33268 -*) as_fn_error $? "unrecognized option: \`$1' 33269 Try \`$0 --help' for more information." ;; 33270 33271 *) as_fn_append ac_config_targets " $1" 33272 ac_need_defaults=false ;; 33273 33274 esac 33275 shift 33276 done 33277 33278 ac_configure_extra_args= 33279 33280 if $ac_cs_silent; then 33281 exec 6>/dev/null 33282 ac_configure_extra_args="$ac_configure_extra_args --silent" 33283 fi 33284 33285 _ACEOF 33286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33287 if \$ac_cs_recheck; then 33288 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33289 shift 33290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 33291 CONFIG_SHELL='$SHELL' 33292 export CONFIG_SHELL 33293 exec "\$@" 33294 fi 33295 33296 _ACEOF 33297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33298 exec 5>>config.log 33299 { 33300 echo 33301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33302 ## Running $as_me. ## 33303 _ASBOX 33304 $as_echo "$ac_log" 33305 } >&5 33306 33307 _ACEOF 33308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33309 _ACEOF 33310 33311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33312 33313 # Handling of arguments. 33314 for ac_config_target in $ac_config_targets 33315 do 33316 case $ac_config_target in 33317 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 33318 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 33319 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 33320 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 33321 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 33322 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 33323 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 33324 33325 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 33326 esac 33327 done 33328 33329 33330 # If the user did not use the arguments to specify the items to instantiate, 33331 # then the envvar interface is used. Set only those that are not. 33332 # We use the long form for the default assignment because of an extremely 33333 # bizarre bug on SunOS 4.1.3. 33334 if $ac_need_defaults; then 33335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 33336 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 33337 fi 33338 33339 # Have a temporary directory for convenience. Make it in the build tree 33340 # simply because there is no reason against having it here, and in addition, 33341 # creating and moving files from /tmp can sometimes cause problems. 33342 # Hook for its removal unless debugging. 33343 # Note that there is a small window in which the directory will not be cleaned: 33344 # after its creation but before its name has been assigned to `$tmp'. 33345 $debug || 33346 { 33347 tmp= ac_tmp= 33348 trap 'exit_status=$? 33349 : "${ac_tmp:=$tmp}" 33350 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 33351 ' 0 33352 trap 'as_fn_exit 1' 1 2 13 15 33353 } 33354 # Create a (secure) tmp directory for tmp files. 33355 33356 { 33357 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 33358 test -d "$tmp" 33359 } || 33360 { 33361 tmp=./conf$$-$RANDOM 33362 (umask 077 && mkdir "$tmp") 33363 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 33364 ac_tmp=$tmp 33365 33366 # Set up the scripts for CONFIG_FILES section. 33367 # No need to generate them if there are no CONFIG_FILES. 33368 # This happens for instance with `./config.status config.h'. 33369 if test -n "$CONFIG_FILES"; then 33370 33371 33372 ac_cr=`echo X | tr X '\015'` 33373 # On cygwin, bash can eat \r inside `` if the user requested igncr. 33374 # But we know of no other shell where ac_cr would be empty at this 33375 # point, so we can use a bashism as a fallback. 33376 if test "x$ac_cr" = x; then 33377 eval ac_cr=\$\'\\r\' 33378 fi 33379 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 33380 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 33381 ac_cs_awk_cr='\\r' 33382 else 33383 ac_cs_awk_cr=$ac_cr 33384 fi 33385 33386 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 33387 _ACEOF 33388 33389 33390 { 33391 echo "cat >conf$$subs.awk <<_ACEOF" && 33392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 33393 echo "_ACEOF" 33394 } >conf$$subs.sh || 33395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 33397 ac_delim='%!_!# ' 33398 for ac_last_try in false false false false false :; do 33399 . ./conf$$subs.sh || 33400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33401 33402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 33403 if test $ac_delim_n = $ac_delim_num; then 33404 break 33405 elif $ac_last_try; then 33406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33407 else 33408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33409 fi 33410 done 33411 rm -f conf$$subs.sh 33412 33413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33414 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 33415 _ACEOF 33416 sed -n ' 33417 h 33418 s/^/S["/; s/!.*/"]=/ 33419 p 33420 g 33421 s/^[^!]*!// 33422 :repl 33423 t repl 33424 s/'"$ac_delim"'$// 33425 t delim 33426 :nl 33427 h 33428 s/\(.\{148\}\)..*/\1/ 33429 t more1 33430 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 33431 p 33432 n 33433 b repl 33434 :more1 33435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33436 p 33437 g 33438 s/.\{148\}// 33439 t nl 33440 :delim 33441 h 33442 s/\(.\{148\}\)..*/\1/ 33443 t more2 33444 s/["\\]/\\&/g; s/^/"/; s/$/"/ 33445 p 33446 b 33447 :more2 33448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33449 p 33450 g 33451 s/.\{148\}// 33452 t delim 33453 ' <conf$$subs.awk | sed ' 33454 /^[^""]/{ 33455 N 33456 s/\n// 33457 } 33458 ' >>$CONFIG_STATUS || ac_write_fail=1 33459 rm -f conf$$subs.awk 33460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33461 _ACAWK 33462 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 33463 for (key in S) S_is_set[key] = 1 33464 FS = "" 33465 33466 } 33467 { 33468 line = $ 0 33469 nfields = split(line, field, "@") 33470 substed = 0 33471 len = length(field[1]) 33472 for (i = 2; i < nfields; i++) { 33473 key = field[i] 33474 keylen = length(key) 33475 if (S_is_set[key]) { 33476 value = S[key] 33477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 33478 len += length(value) + length(field[++i]) 33479 substed = 1 33480 } else 33481 len += 1 + keylen 33482 } 33483 33484 print line 33485 } 33486 33487 _ACAWK 33488 _ACEOF 33489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33490 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 33491 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 33492 else 33493 cat 33494 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 33495 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 33496 _ACEOF 33497 33498 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 33499 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 33500 # trailing colons and then remove the whole line if VPATH becomes empty 33501 # (actually we leave an empty line to preserve line numbers). 33502 if test "x$srcdir" = x.; then 33503 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 33504 h 33505 s/// 33506 s/^/:/ 33507 s/[ ]*$/:/ 33508 s/:\$(srcdir):/:/g 33509 s/:\${srcdir}:/:/g 33510 s/:@srcdir@:/:/g 33511 s/^:*// 33512 s/:*$// 33513 x 33514 s/\(=[ ]*\).*/\1/ 33515 G 33516 s/\n// 33517 s/^[^=]*=[ ]*$// 33518 }' 33519 fi 33520 33521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33522 fi # test -n "$CONFIG_FILES" 33523 33524 # Set up the scripts for CONFIG_HEADERS section. 33525 # No need to generate them if there are no CONFIG_HEADERS. 33526 # This happens for instance with `./config.status Makefile'. 33527 if test -n "$CONFIG_HEADERS"; then 33528 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 33529 BEGIN { 33530 _ACEOF 33531 33532 # Transform confdefs.h into an awk script `defines.awk', embedded as 33533 # here-document in config.status, that substitutes the proper values into 33534 # config.h.in to produce config.h. 33535 33536 # Create a delimiter string that does not exist in confdefs.h, to ease 33537 # handling of long lines. 33538 ac_delim='%!_!# ' 33539 for ac_last_try in false false :; do 33540 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 33541 if test -z "$ac_tt"; then 33542 break 33543 elif $ac_last_try; then 33544 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 33545 else 33546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33547 fi 33548 done 33549 33550 # For the awk script, D is an array of macro values keyed by name, 33551 # likewise P contains macro parameters if any. Preserve backslash 33552 # newline sequences. 33553 33554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 33555 sed -n ' 33556 s/.\{148\}/&'"$ac_delim"'/g 33557 t rset 33558 :rset 33559 s/^[ ]*#[ ]*define[ ][ ]*/ / 33560 t def 33561 d 33562 :def 33563 s/\\$// 33564 t bsnl 33565 s/["\\]/\\&/g 33566 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 33567 D["\1"]=" \3"/p 33568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 33569 d 33570 :bsnl 33571 s/["\\]/\\&/g 33572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 33573 D["\1"]=" \3\\\\\\n"\\/p 33574 t cont 33575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 33576 t cont 33577 d 33578 :cont 33579 n 33580 s/.\{148\}/&'"$ac_delim"'/g 33581 t clear 33582 :clear 33583 s/\\$// 33584 t bsnlc 33585 s/["\\]/\\&/g; s/^/"/; s/$/"/p 33586 d 33587 :bsnlc 33588 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 33589 b cont 33590 ' <confdefs.h | sed ' 33591 s/'"$ac_delim"'/"\\\ 33592 "/g' >>$CONFIG_STATUS || ac_write_fail=1 33593 33594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33595 for (key in D) D_is_set[key] = 1 33596 FS = "" 33597 } 33598 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 33599 line = \$ 0 33600 split(line, arg, " ") 33601 if (arg[1] == "#") { 33602 defundef = arg[2] 33603 mac1 = arg[3] 33604 } else { 33605 defundef = substr(arg[1], 2) 33606 mac1 = arg[2] 33607 } 33608 split(mac1, mac2, "(") #) 33609 macro = mac2[1] 33610 prefix = substr(line, 1, index(line, defundef) - 1) 33611 if (D_is_set[macro]) { 33612 # Preserve the white space surrounding the "#". 33613 print prefix "define", macro P[macro] D[macro] 33614 next 33615 } else { 33616 # Replace #undef with comments. This is necessary, for example, 33617 # in the case of _POSIX_SOURCE, which is predefined and required 33618 # on some systems where configure will not decide to define it. 33619 if (defundef == "undef") { 33620 print "/*", prefix defundef, macro, "*/" 33621 next 33622 } 33623 } 33624 } 33625 { print } 33626 _ACAWK 33627 _ACEOF 33628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33629 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 33630 fi # test -n "$CONFIG_HEADERS" 33631 33632 33633 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 33634 shift 33635 for ac_tag 33636 do 33637 case $ac_tag in 33638 :[FHLC]) ac_mode=$ac_tag; continue;; 33639 esac 33640 case $ac_mode$ac_tag in 33641 :[FHL]*:*);; 33642 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 33643 :[FH]-) ac_tag=-:-;; 33644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 33645 esac 33646 ac_save_IFS=$IFS 33647 IFS=: 33648 set x $ac_tag 33649 IFS=$ac_save_IFS 33650 shift 33651 ac_file=$1 33652 shift 33653 33654 case $ac_mode in 33655 :L) ac_source=$1;; 33656 :[FH]) 33657 ac_file_inputs= 33658 for ac_f 33659 do 33660 case $ac_f in 33661 -) ac_f="$ac_tmp/stdin";; 33662 *) # Look for the file first in the build tree, then in the source tree 33663 # (if the path is not absolute). The absolute path cannot be DOS-style, 33664 # because $ac_f cannot contain `:'. 33665 test -f "$ac_f" || 33666 case $ac_f in 33667 [\\/$]*) false;; 33668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 33669 esac || 33670 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 33671 esac 33672 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 33673 as_fn_append ac_file_inputs " '$ac_f'" 33674 done 33675 33676 # Let's still pretend it is `configure' which instantiates (i.e., don't 33677 # use $as_me), people would be surprised to read: 33678 # /* config.h. Generated by config.status. */ 33679 configure_input='Generated from '` 33680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 33681 `' by configure.' 33682 if test x"$ac_file" != x-; then 33683 configure_input="$ac_file. $configure_input" 33684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 33685 $as_echo "$as_me: creating $ac_file" >&6;} 33686 fi 33687 # Neutralize special characters interpreted by sed in replacement strings. 33688 case $configure_input in #( 33689 *\&* | *\|* | *\\* ) 33690 ac_sed_conf_input=`$as_echo "$configure_input" | 33691 sed 's/[\\\\&|]/\\\\&/g'`;; #( 33692 *) ac_sed_conf_input=$configure_input;; 33693 esac 33694 33695 case $ac_tag in 33696 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 33697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 33698 esac 33699 ;; 33700 esac 33701 33702 ac_dir=`$as_dirname -- "$ac_file" || 33703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33704 X"$ac_file" : 'X\(//\)[^/]' \| \ 33705 X"$ac_file" : 'X\(//\)$' \| \ 33706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 33707 $as_echo X"$ac_file" | 33708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33709 s//\1/ 33710 q 33711 } 33712 /^X\(\/\/\)[^/].*/{ 33713 s//\1/ 33714 q 33715 } 33716 /^X\(\/\/\)$/{ 33717 s//\1/ 33718 q 33719 } 33720 /^X\(\/\).*/{ 33721 s//\1/ 33722 q 33723 } 33724 s/.*/./; q'` 33725 as_dir="$ac_dir"; as_fn_mkdir_p 33726 ac_builddir=. 33727 33728 case "$ac_dir" in 33729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 33730 *) 33731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 33732 # A ".." for each directory in $ac_dir_suffix. 33733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 33734 case $ac_top_builddir_sub in 33735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 33736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 33737 esac ;; 33738 esac 33739 ac_abs_top_builddir=$ac_pwd 33740 ac_abs_builddir=$ac_pwd$ac_dir_suffix 33741 # for backward compatibility: 33742 ac_top_builddir=$ac_top_build_prefix 33743 33744 case $srcdir in 33745 .) # We are building in place. 33746 ac_srcdir=. 33747 ac_top_srcdir=$ac_top_builddir_sub 33748 ac_abs_top_srcdir=$ac_pwd ;; 33749 [\\/]* | ?:[\\/]* ) # Absolute name. 33750 ac_srcdir=$srcdir$ac_dir_suffix; 33751 ac_top_srcdir=$srcdir 33752 ac_abs_top_srcdir=$srcdir ;; 33753 *) # Relative name. 33754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 33755 ac_top_srcdir=$ac_top_build_prefix$srcdir 33756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 33757 esac 33758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 33759 33760 33761 case $ac_mode in 33762 :F) 33763 # 33764 # CONFIG_FILE 33765 # 33766 33767 _ACEOF 33768 33769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33770 # If the template does not know about datarootdir, expand it. 33771 # FIXME: This hack should be removed a few years after 2.60. 33772 ac_datarootdir_hack=; ac_datarootdir_seen= 33773 ac_sed_dataroot=' 33774 /datarootdir/ { 33775 p 33776 q 33777 } 33778 /@datadir@/p 33779 /@docdir@/p 33780 /@infodir@/p 33781 /@localedir@/p 33782 /@mandir@/p' 33783 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 33784 *datarootdir*) ac_datarootdir_seen=yes;; 33785 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 33786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 33787 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 33788 _ACEOF 33789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33790 ac_datarootdir_hack=' 33791 s&@datadir@&$datadir&g 33792 s&@docdir@&$docdir&g 33793 s&@infodir@&$infodir&g 33794 s&@localedir@&$localedir&g 33795 s&@mandir@&$mandir&g 33796 s&\\\${datarootdir}&$datarootdir&g' ;; 33797 esac 33798 _ACEOF 33799 33800 # Neutralize VPATH when `$srcdir' = `.'. 33801 # Shell code in configure.ac might set extrasub. 33802 # FIXME: do we really want to maintain this feature? 33803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33804 ac_sed_extra="$ac_vpsub 33805 $extrasub 33806 _ACEOF 33807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33808 :t 33809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 33810 s|@configure_input@|$ac_sed_conf_input|;t t 33811 s&@top_builddir@&$ac_top_builddir_sub&;t t 33812 s&@top_build_prefix@&$ac_top_build_prefix&;t t 33813 s&@srcdir@&$ac_srcdir&;t t 33814 s&@abs_srcdir@&$ac_abs_srcdir&;t t 33815 s&@top_srcdir@&$ac_top_srcdir&;t t 33816 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 33817 s&@builddir@&$ac_builddir&;t t 33818 s&@abs_builddir@&$ac_abs_builddir&;t t 33819 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 33820 $ac_datarootdir_hack 33821 " 33822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 33823 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33824 33825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 33826 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 33827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 33828 "$ac_tmp/out"`; test -z "$ac_out"; } && 33829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 33830 which seems to be undefined. Please make sure it is defined" >&5 33831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 33832 which seems to be undefined. Please make sure it is defined" >&2;} 33833 33834 rm -f "$ac_tmp/stdin" 33835 case $ac_file in 33836 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 33837 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 33838 esac \ 33839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33840 ;; 33841 :H) 33842 # 33843 # CONFIG_HEADER 33844 # 33845 if test x"$ac_file" != x-; then 33846 { 33847 $as_echo "/* $configure_input */" \ 33848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 33849 } >"$ac_tmp/config.h" \ 33850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33851 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 33852 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 33853 $as_echo "$as_me: $ac_file is unchanged" >&6;} 33854 else 33855 rm -f "$ac_file" 33856 mv "$ac_tmp/config.h" "$ac_file" \ 33857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33858 fi 33859 else 33860 $as_echo "/* $configure_input */" \ 33861 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 33862 || as_fn_error $? "could not create -" "$LINENO" 5 33863 fi 33864 ;; 33865 33866 33867 esac 33868 33869 done # for ac_tag 33870 33871 33872 as_fn_exit 0 33873 _ACEOF 33874 ac_clean_files=$ac_clean_files_save 33875 33876 test $ac_write_fail = 0 || 33877 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 33878 33879 33880 # configure is writing to config.log, and then calls config.status. 33881 # config.status does its own redirection, appending to config.log. 33882 # Unfortunately, on DOS this fails, as config.log is still kept open 33883 # by configure, so config.status won't be able to write to it; its 33884 # output is simply discarded. So we exec the FD to /dev/null, 33885 # effectively closing config.log, so it can be properly (re)opened and 33886 # appended to by config.status. When coming back to configure, we 33887 # need to make the FD available again. 33888 if test "$no_create" != yes; then 33889 ac_cs_success=: 33890 ac_config_status_args= 33891 test "$silent" = yes && 33892 ac_config_status_args="$ac_config_status_args --quiet" 33893 exec 5>/dev/null 33894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 33895 exec 5>>config.log 33896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 33897 # would make configure fail if this is the last instruction. 33898 $ac_cs_success || as_fn_exit 1 33899 fi 33900 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 33901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 33902 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 33903 fi 33904 33905 33906 # Make the compare script executable 33907 $CHMOD +x $OUTPUT_ROOT/compare.sh 33908 33909 # Finally output some useful information to the user 33910 33911 # Finally output some useful information to the user 33912 33913 if test "x$CCACHE_FOUND" != x; then 33914 if test "x$HAS_GOOD_CCACHE" = x; then 33915 CCACHE_STATUS="installed, but disabled (version older than 3.1.4)" 33916 CCACHE_HELP_MSG="You have ccache installed, but it is a version prior to 3.1.4. Try upgrading." 33917 else 33918 CCACHE_STATUS="installed and in use" 33919 fi 33920 else 33921 if test "x$GCC" = xyes; then 33922 CCACHE_STATUS="not installed (consider installing)" 33923 CCACHE_HELP_MSG="You do not have ccache installed. Try installing it." 33924 else 33925 CCACHE_STATUS="not available for your system" 33926 fi 33927 fi 33928 33929 printf "\n" 33930 printf "====================================================\n" 33931 printf "A new configuration has been successfully created in\n" 33932 printf "$OUTPUT_ROOT\n" 33933 if test "x$CONFIGURE_COMMAND_LINE" != x; then 33934 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 33935 else 33936 printf "using default settings.\n" 33937 fi 33938 33939 printf "\n" 33940 printf "Configuration summary:\n" 33941 printf "* Debug level: $DEBUG_LEVEL\n" 33942 printf "* JDK variant: $JDK_VARIANT\n" 33943 printf "* JVM variants: $with_jvm_variants\n" 33944 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 33945 33946 printf "\n" 33947 printf "Tools summary:\n" 33948 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 33949 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 33950 fi 33951 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 33952 printf "* C Compiler: $CC_VENDOR version $CC_VERSION (at $CC)\n" 33953 printf "* C++ Compiler: $CXX_VENDOR version $CXX_VERSION (at $CXX)\n" 33954 33955 printf "\n" 33956 printf "Build performance summary:\n" 33957 printf "* Cores to use: $JOBS\n" 33958 printf "* Memory limit: $MEMORY_SIZE MB\n" 33959 printf "* ccache status: $CCACHE_STATUS\n" 33960 printf "\n" 33961 33962 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then 33963 printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n" 33964 printf "$CCACHE_HELP_MSG\n" 33965 33966 # Print a helpful message on how to acquire the necessary build dependency. 33967 # ccache is the help tag: freetyp2, cups, pulse, alsa etc 33968 MISSING_DEPENDENCY=ccache 33969 PKGHANDLER_COMMAND= 33970 33971 case $PKGHANDLER in 33972 apt-get) 33973 apt_help $MISSING_DEPENDENCY ;; 33974 yum) 33975 yum_help $MISSING_DEPENDENCY ;; 33976 port) 33977 port_help $MISSING_DEPENDENCY ;; 33978 pkgutil) 33979 pkgutil_help $MISSING_DEPENDENCY ;; 33980 pkgadd) 33981 pkgadd_help $MISSING_DEPENDENCY ;; 33982 * ) 33983 break ;; 33984 esac 33985 33986 if test "x$PKGHANDLER_COMMAND" != x; then 33987 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33988 fi 33989 33990 printf "$HELP_MSG\n" 33991 printf "\n" 33992 fi 33993 33994 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 33995 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 33996 printf "will result in longer build times.\n" 33997 printf "\n" 33998 fi 33999 34000 if test "x$FOUND_ALT_VARIABLES" != "x"; then 34001 printf "WARNING: You have old-style ALT_ environment variables set.\n" 34002 printf "These are not respected, and will be ignored. It is recommended\n" 34003 printf "that you clean your environment. The following variables are set:\n" 34004 printf "$FOUND_ALT_VARIABLES\n" 34005 printf "\n" 34006 fi 34007 34008 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 34009 printf "WARNING: Your build output directory is not on a local disk.\n" 34010 printf "This will severely degrade build performance!\n" 34011 printf "It is recommended that you create an output directory on a local disk,\n" 34012 printf "and run the configure script again from that directory.\n" 34013 printf "\n" 34014 fi 34015 34016 if test "x$IS_RECONFIGURE" = "xyes"; then 34017 printf "WARNING: The result of this configuration has overridden an older\n" 34018 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 34019 printf "proper build. Failure to do so might result in strange build problems.\n" 34020 printf "\n" 34021 fi 34022